:root {
  color-scheme: light;
  --navy: #142f4a;
  --navy-2: #24465f;
  --ink: #1f2d3a;
  --muted: #5f6d78;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --sage: #c6d3ca;
  --sage-dark: #5e786d;
  --gold: #b9823e;
  --cream: #ece8de;
  --line: #d9e0db;
  --shadow: 0 14px 34px rgba(20, 47, 74, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Aptos, "Aptos Display", "Segoe UI Variable", "Segoe UI", "Helvetica Neue",
    Arial, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 245, 0.96);
  border-bottom: 1px solid rgba(217, 224, 219, 0.95);
  backdrop-filter: blur(12px);
}

.brand,
nav,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  color: var(--navy);
  font-weight: 760;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

nav {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 2.1vw, 22px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

nav a {
  padding-block: 8px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: min(700px, calc(100vh - 64px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(52px, 7vw, 88px) clamp(18px, 5vw, 72px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(251, 250, 245, 0.98) 0%,
    rgba(251, 250, 245, 0.88) 43%,
    rgba(251, 250, 245, 0.28) 72%
  );
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  width: min(700px, 100%);
  padding-bottom: 6vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-family:
    "Aptos Display", Aptos, "Segoe UI Variable Display", "Segoe UI",
    "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  font-weight: 730;
}

h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy p:not(.eyebrow),
.page-hero p,
.intro > p,
.about-layout p,
.contact-card p,
.access-copy p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 11px 17px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.primary,
button {
  color: white;
  background: var(--navy);
}

.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
}

.band {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.intro,
.access-panel,
.service-format,
.contact-page,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(290px, 1.1fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

.intro {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.access-panel {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.access-copy {
  display: grid;
  gap: 18px;
}

.inline-link,
.card-link {
  width: fit-content;
  color: var(--navy);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(201, 153, 77, 0.75);
  text-underline-offset: 5px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.split-feature {
  background: #eef4ee;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pill-grid span {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(94, 120, 109, 0.22);
  border-radius: 8px;
  font-weight: 760;
}

.services-preview,
.service-list {
  background: var(--paper);
}

.service-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

article,
.credential-panel,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

article {
  padding: 24px;
}

article p,
.best-for {
  color: var(--muted);
}

.service-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.statement {
  background: var(--navy);
}

.statement p {
  width: min(980px, 100%);
  margin: 0 auto;
  color: white;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.22;
  text-align: center;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background: var(--cream);
}

.contact-strip h2 {
  margin-bottom: 0;
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.45fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: end;
  padding: clamp(46px, 6vw, 76px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.98), rgba(251, 250, 245, 0.9)),
    url("assets/advising-workspace.png") center / cover;
  border-bottom: 1px solid var(--line);
}

.home-intro {
  max-width: 880px;
}

.home-intro h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.06;
}

.home-intro p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-note {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 229, 223, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-note span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-note strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.home-note p {
  margin: 0;
  color: var(--muted);
}

.option-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

.option-card {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding: 24px;
  background: var(--card-bg, var(--surface));
  border: 1px solid var(--card-line, var(--line));
  border-top: 5px solid var(--card-accent, var(--gold));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.option-card:hover {
  border-color: rgba(23, 49, 79, 0.35);
  transform: translateY(-2px);
}

.option-card h2 {
  margin-bottom: 0;
  font-size: 1.32rem;
  line-height: 1.12;
}

.option-card p {
  color: var(--muted);
}

.primary-option {
  background: var(--card-bg, var(--surface));
  border-color: var(--card-line, var(--line));
  border-top-color: var(--card-accent, var(--navy));
}

.primary-option h2,
.primary-option p {
  color: inherit;
}

.primary-option .service-number {
  color: var(--card-accent, var(--gold));
}

.primary-option .option-action {
  color: var(--navy);
}

.option-card:nth-child(1) {
  --card-bg: #fffaf0;
  --card-accent: #b9823e;
  --card-line: #eadbc4;
}

.option-card:nth-child(2) {
  --card-bg: #f0f8f6;
  --card-accent: #2f7b74;
  --card-line: #cfe3df;
}

.option-card:nth-child(3) {
  --card-bg: #eef5fb;
  --card-accent: #3d6f9c;
  --card-line: #cfdfec;
}

.option-card:nth-child(4) {
  --card-bg: #fbf2ee;
  --card-accent: #9c5a48;
  --card-line: #ead6ce;
}

.option-card:nth-child(5) {
  --card-bg: #f1f8f0;
  --card-accent: #4f7f55;
  --card-line: #d1e4cf;
}

.option-card:nth-child(6) {
  --card-bg: #f2f3f5;
  --card-accent: #64717d;
  --card-line: #d8dde1;
}

.option-card:nth-child(7) {
  --card-bg: #f8f1f7;
  --card-accent: #7f5c7a;
  --card-line: #e1d2df;
}

.option-action {
  margin-top: auto;
  color: var(--navy);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(201, 153, 77, 0.75);
  text-underline-offset: 5px;
}

.home-context {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(40px, 5vw, 64px) clamp(18px, 5vw, 72px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.home-context h2 {
  margin-bottom: 0;
  font-size: 1.9rem;
}

.context-list {
  display: grid;
  gap: 12px;
}

.context-list p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.context-list strong {
  display: block;
  color: var(--navy);
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.08)),
    var(--hero-base, var(--paper));
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 47, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 47, 74, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000 100%);
  pointer-events: none;
}

.hero-copy-block,
.hero-visual {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  width: min(930px, 100%);
  max-width: none;
  font-size: clamp(2.35rem, 4.8vw, 4.45rem);
}

.page-hero p:not(.eyebrow) {
  width: min(720px, 100%);
}

.hero-visual {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(20, 47, 74, 0.12);
}

.hero-visual span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: var(--hero-ink, var(--navy));
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 47, 74, 0.08);
  border-left: 5px solid var(--hero-accent, var(--gold));
  border-radius: 8px;
  font-weight: 720;
}

.resources-hero {
  --hero-base: #f6f0e5;
  --hero-accent: #b9823e;
  --hero-ink: #4b3520;
}

.majors-hero {
  --hero-base: #e9f3f1;
  --hero-accent: #2f7b74;
  --hero-ink: #173f3c;
}

.colleges-hero {
  --hero-base: #eaf1f8;
  --hero-accent: #3d6f9c;
  --hero-ink: #183954;
}

.projects-hero {
  --hero-base: #f3eee9;
  --hero-accent: #9c5a48;
  --hero-ink: #4a2c24;
}

.competitions-hero {
  --hero-base: #edf4ec;
  --hero-accent: #4f7f55;
  --hero-ink: #253f29;
}

.news-hero {
  --hero-base: #eef0f3;
  --hero-accent: #64717d;
  --hero-ink: #25313d;
}

.requests-hero {
  --hero-base: #f2eef3;
  --hero-accent: #7f5c7a;
  --hero-ink: #423241;
}

.major-visual,
.college-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-visual span:nth-child(2),
.calendar-visual span:nth-child(2),
.competition-visual span:nth-child(2),
.news-visual span:nth-child(2) {
  transform: translateX(12px);
}

.project-visual span:nth-child(4),
.competition-visual span:nth-child(4),
.request-visual span:nth-child(4) {
  transform: translateX(20px);
}

.calendar-visual span:nth-child(1) {
  border-left-color: #2f8f6b;
}

.calendar-visual span:nth-child(2) {
  border-left-color: #b85151;
}

.calendar-visual span:nth-child(3) {
  border-left-color: #4f6fa8;
}

.about-layout {
  background: var(--surface);
}

.credential-panel,
.contact-card {
  padding: clamp(22px, 4vw, 34px);
}

.credential-panel h2,
.contact-card h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-panel ul,
.service-format ul {
  display: grid;
  gap: 12px;
}

.credential-panel li,
.service-format li {
  padding: 14px 16px;
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 680;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #eef4ee;
}

.service-list,
.resource-list,
.major-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-list article,
.resource-list article,
.major-grid article {
  min-height: 260px;
}

.service-list article:last-child {
  grid-column: 1 / -1;
}

.major-tools {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.major-filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 0.8fr) auto auto;
  align-items: end;
  gap: 14px;
}

.major-filter-panel button {
  grid-column: auto;
}

.major-library {
  background: var(--paper);
}

.major-list {
  display: grid;
  gap: 16px;
}

.major-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.major-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.major-card h2 {
  margin-bottom: 0;
  font-size: 1.48rem;
}

.major-fit {
  max-width: 980px;
  color: var(--ink);
  font-size: 1rem;
}

.major-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.major-details p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.major-details strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.major-details span {
  display: block;
}

.best-for {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 760;
}

.service-format {
  background: var(--cream);
}

.colleges-hero h1 {
  width: min(1040px, 100%);
}

.college-overview {
  background: var(--surface);
}

.college-principles,
.college-type-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.college-principles article {
  min-height: 230px;
}

.college-types-section,
.college-metrics-section {
  background: var(--paper);
}

.college-type-grid article,
.metric-grid article {
  min-height: 250px;
}

.college-resource-section,
.college-search-workflow {
  background: #eef4ee;
}

.college-resource-grid,
.california-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.college-resource-grid article,
.california-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 270px;
}

.college-resource-grid h3,
.california-grid h3,
.college-type-grid h3,
.metric-grid h3 {
  margin-bottom: 0;
}

.college-resource-grid p,
.california-grid p {
  margin-bottom: 4px;
}

.california-section {
  background: var(--surface);
}

.college-search-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.college-search-workflow h2 {
  margin-bottom: 0;
  font-size: 1.9rem;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-list p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.workflow-list strong {
  display: block;
  color: var(--navy);
}

.projects-hero h1 {
  width: min(1080px, 100%);
}

.project-start {
  background: var(--surface);
}

.project-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-principles article {
  min-height: 230px;
}

.project-examples {
  background: var(--paper);
}

.project-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-example-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.project-card-top h2,
.project-example-card h2 {
  margin-bottom: 0;
  font-size: 1.38rem;
  line-height: 1.15;
}

.project-takeaway {
  margin-top: auto;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.project-takeaway strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.project-takeaway span {
  display: block;
}

.project-pathways {
  background: #eef4ee;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pathway-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 270px;
}

.pathway-grid h3 {
  margin-bottom: 0;
}

.pathway-grid p {
  margin-bottom: 4px;
}

.question-workshop {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: var(--surface);
}

.question-workshop h2 {
  margin-bottom: 0;
  font-size: 1.9rem;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-list p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.question-list strong {
  display: block;
  color: var(--navy);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: var(--navy);
  background: #f6f8f4;
  border: 1px solid rgba(94, 120, 109, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 680;
}

.news-teaser {
  background: #eef4ee;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-grid.full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--paper);
}

.news-grid article {
  min-height: 250px;
}

.news-feed {
  background: var(--paper);
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.news-item-header {
  max-width: 920px;
}

.news-item p {
  max-width: 980px;
}

.news-why {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.news-why strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.source-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--navy);
  background: #fbfcfa;
  border: 1px solid rgba(94, 120, 109, 0.28);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 720;
}

.source-link:hover {
  border-color: var(--navy);
}

.update-meta {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.major-grid h2,
.resource-list h2,
.news-grid h2,
.competition-card h2 {
  font-size: 1.48rem;
}

.competitions-hero h1 {
  width: min(1050px, 100%);
}

.competition-tools {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(190px, 1fr));
  gap: 16px;
  align-items: start;
}

.filter-menu {
  position: relative;
  min-width: 0;
}

.filter-trigger {
  min-height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  color: var(--navy);
  background: #fbfcfa;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  font-weight: 680;
  cursor: pointer;
}

.filter-trigger::after {
  content: "v";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-trigger[aria-expanded="true"] {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23, 49, 79, 0.08);
}

.filter-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 680;
}

.filter-popover {
  position: absolute;
  inset: calc(100% + 8px) 0 auto 0;
  z-index: 10;
}

.checkbox-group {
  max-height: 310px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px;
  background: var(--surface);
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.checkbox-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 620;
}

.checkbox-option input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--navy);
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-summary {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 680;
}

.competition-list-section {
  background: var(--paper);
}

.competition-list {
  display: grid;
  gap: 16px;
}

.competition-card {
  min-height: 0;
  padding: 26px;
}

.competition-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.competition-card h2 {
  margin-bottom: 0;
}

.competition-summary-line {
  max-width: 980px;
  color: var(--ink);
  font-size: 1rem;
}

.competition-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.competition-meta p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: #f6f8f4;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.competition-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.competition-meta span {
  display: block;
}

.empty-state {
  border-style: dashed;
  box-shadow: none;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.compact-actions {
  margin-top: 24px;
}

.calendar-tools {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.calendar-filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(190px, 0.75fr) minmax(170px, 0.55fr) auto auto;
  gap: 14px;
  align-items: end;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.calendar-filter-panel button {
  grid-column: auto;
  min-height: 48px;
  white-space: nowrap;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 780;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 999px;
}

.legend-open {
  background: #2f8f6b;
}

.legend-due {
  background: #b85151;
}

.legend-event {
  background: #4f6fa8;
}

.calendar-section {
  background: var(--paper);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-header h2 {
  margin: 0;
  font-size: 1.75rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-day-name {
  padding: 8px;
  color: var(--navy);
  font-weight: 860;
  text-align: center;
}

.calendar-day {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.muted-day {
  background: rgba(255, 255, 255, 0.45);
}

.day-number {
  color: var(--navy);
  font-weight: 760;
}

.calendar-marker {
  display: block;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-marker.open {
  background: #2f8f6b;
}

.calendar-marker.due {
  background: #b85151;
}

.calendar-marker.event {
  background: #4f6fa8;
}

.calendar-marker:hover {
  filter: brightness(0.94);
}

.event-list-section {
  background: #eef4ee;
}

.calendar-event-list,
.variable-date-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calendar-event-card,
.variable-date-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.calendar-event-card h2,
.variable-date-card h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
}

.variable-date-section {
  background: var(--paper);
}

.contact-page {
  background: #eef4ee;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(20, 47, 74, 0.06);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 680;
}

label:has(textarea),
form button {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd8d0;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-card a {
  color: var(--navy);
  font-weight: 820;
  text-decoration: underline;
  text-decoration-color: rgba(201, 153, 77, 0.7);
  text-underline-offset: 4px;
}

.contact-card strong {
  display: block;
  color: var(--navy);
}

footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer span:first-child {
  color: var(--navy);
  font-weight: 820;
}

@media (max-width: 1120px) {
  .service-grid,
  .feature-grid,
  .option-board,
  .news-grid,
  .news-grid.full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .hero {
    min-height: 700px;
    align-items: end;
  }

  .hero::before {
    background: linear-gradient(
      0deg,
      rgba(251, 250, 245, 0.99) 0%,
      rgba(251, 250, 245, 0.9) 52%,
      rgba(251, 250, 245, 0.22) 100%
    );
  }

  .hero img {
    object-position: 62% center;
  }

  .intro,
  .access-panel,
  .service-format,
  .contact-page,
  .about-layout,
  .home-dashboard,
  .home-context,
  .page-hero,
  .college-search-workflow,
  .question-workshop,
  .values,
  .service-list,
  .resource-list,
  .major-grid,
  .feature-grid,
  .news-grid,
  .news-grid.full,
  .pill-grid,
  .college-principles,
  .college-type-grid,
  .college-resource-grid,
  .california-grid,
  .metric-grid,
  .project-principles,
  .project-example-grid,
  .pathway-grid,
  .major-filter-panel,
  .major-details,
  .calendar-filter-panel,
  .calendar-event-list,
  .variable-date-list,
  .filter-panel,
  .competition-meta {
    grid-template-columns: 1fr;
  }

  .home-intro h1 {
    font-size: 2.65rem;
  }

  .project-example-card {
    min-height: 0;
  }

  .hero-visual {
    width: min(520px, 100%);
  }

  .project-visual span:nth-child(2),
  .calendar-visual span:nth-child(2),
  .competition-visual span:nth-child(2),
  .news-visual span:nth-child(2),
  .project-visual span:nth-child(4),
  .competition-visual span:nth-child(4),
  .request-visual span:nth-child(4) {
    transform: none;
  }

  .college-principles article,
  .college-type-grid article,
  .college-resource-grid article,
  .california-grid article,
  .metric-grid article {
    min-height: 0;
  }

  .competition-card-header {
    flex-direction: column;
  }

  .calendar-header {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-popover {
    position: static;
    margin-top: 8px;
  }

  .service-list article:last-child {
    grid-column: auto;
  }

  .contact-strip,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: calc(100vw - 92px);
  }

  .service-grid,
  .feature-grid,
  .option-board,
  form {
    grid-template-columns: 1fr;
  }

  .button,
  button,
  .hero-actions {
    width: 100%;
  }

  .calendar-grid {
    display: block;
  }

  .calendar-day-name,
  .muted-day {
    display: none;
  }

  .calendar-day {
    min-height: auto;
    margin-bottom: 8px;
  }

  .calendar-marker {
    white-space: normal;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }
}
