:root {
  --navy-950: #0a2743;
  --navy-900: #103a63;
  --navy-800: #164a7d;
  --blue-700: #0d73b9;
  --blue-600: #0f87d3;
  --blue-100: #e9f4fb;
  --gold-500: #f7b619;
  --gold-400: #ffc62f;
  --gold-100: #fff6d5;
  --ink: #15314e;
  --muted: #627287;
  --line: #dce5ee;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --page: #f2f6fa;
  --success: #17795c;
  --shadow-sm: 0 8px 24px rgba(20, 55, 89, 0.08);
  --shadow-md: 0 18px 50px rgba(20, 55, 89, 0.12);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --shell: 1180px;
  --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 999; transform: translateY(-200%); background: #fff; color: var(--navy-900); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 26px; }
.brand { border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.brand img { width: 205px; height: auto; display: block; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link, .mobile-link {
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.nav-link { padding: 12px 14px; border-radius: 10px; }
.nav-link:hover, .nav-link.is-active { color: var(--navy-900); background: var(--surface-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .menu-button {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center;
}
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-button { display: none; gap: 4px; align-content: center; }
.menu-button span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu-inner { display: grid; padding: 8px 0 14px; }
.mobile-link { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.mobile-link:last-child { border-bottom: 0; }
.mobile-link.is-active { color: var(--blue-700); }

.view { display: none; }
.view.is-visible { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none; } }

.hero-wrap {
  position: relative;
  overflow: hidden;
  min-height: 665px;
  background:
    radial-gradient(circle at 15% 12%, rgba(247,182,25,.14), transparent 28%),
    linear-gradient(135deg, #f9fcff 0%, #f4f9fd 50%, #eef7fc 100%);
  border-bottom: 1px solid var(--line);
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(12px); pointer-events: none; }
.hero-glow-one { width: 420px; height: 420px; right: -120px; top: -160px; background: rgba(15,135,211,.08); }
.hero-glow-two { width: 300px; height: 300px; left: 20%; bottom: -180px; background: rgba(247,182,25,.10); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr); gap: 76px; align-items: center; padding: 88px 0 80px; }
.eyebrow, .kicker { font-size: .76rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-700); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow span { width: 30px; height: 3px; background: var(--gold-500); border-radius: 4px; }
.hero-copy h1, .page-hero h1 { margin: 14px 0 0; color: var(--navy-900); letter-spacing: -.045em; line-height: .98; }
.hero-copy h1 { font-size: clamp(3.7rem, 7vw, 6.3rem); }
.hero-tagline { margin: 18px 0 0; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.2; font-weight: 850; color: var(--gold-500); letter-spacing: -.02em; }
.hero-lede { max-width: 720px; margin: 22px 0 0; font-size: 1.12rem; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { border: 0; min-height: 52px; border-radius: 14px; padding: 0 20px; display: inline-flex; gap: 10px; align-items: center; justify-content: center; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--navy-900); color: white; box-shadow: 0 10px 26px rgba(16,58,99,.22); }
.button-primary:hover { background: var(--navy-800); }
.button-secondary { background: var(--surface); color: var(--navy-900); border: 1px solid var(--line); }
.button-gold { background: var(--gold-400); color: var(--navy-950); box-shadow: 0 10px 24px rgba(247,182,25,.18); }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--navy-900); }
.privacy-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 22px; color: var(--muted); font-size: .87rem; max-width: 580px; }
.privacy-note svg { width: 17px; min-width: 17px; margin-top: 2px; fill: none; stroke: var(--success); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.saved-path-card { margin-top: 18px; max-width: 600px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #cfe1ef; border-radius: 16px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.saved-path-card[hidden] { display: none !important; }
.saved-path-copy { display: grid; gap: 2px; }
.saved-path-label { color: var(--blue-700); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.saved-path-copy strong { color: var(--navy-900); font-size: 1.05rem; }
.saved-path-copy small { color: var(--muted); }
.saved-path-button { flex: 0 0 auto; border: 0; background: transparent; color: var(--navy-900); font-weight: 850; cursor: pointer; padding: 10px 0; }
.saved-path-button span { color: var(--blue-700); }
a.button { text-decoration: none; }


.hero-card { position: relative; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 28px; backdrop-filter: blur(8px); }
.hero-card:before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border-top: 4px solid var(--gold-400); pointer-events: none; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hero-card-label { font-size: .76rem; font-weight: 900; letter-spacing: .13em; color: var(--muted); }
.status-pill { font-size: .78rem; font-weight: 800; color: var(--blue-700); background: var(--blue-100); border-radius: 999px; padding: 7px 10px; }
.journey-list { position: relative; display: grid; gap: 10px; margin-top: 16px; }
.journey-item { position: relative; z-index: 2; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: 46px 1fr 22px; align-items: center; gap: 14px; text-align: left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.journey-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-color: #c6d8e8; }
.stage-number { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--navy-900); color: white; font-weight: 900; font-size: .8rem; }
.journey-item:nth-child(2) .stage-number, .journey-item:nth-child(4) .stage-number { background: var(--gold-400); color: var(--navy-950); }
.journey-text { display: grid; gap: 2px; }
.journey-text strong { font-size: 1.02rem; color: var(--navy-900); }
.journey-text small { color: var(--muted); }
.stage-arrow { font-size: 1.25rem; color: var(--blue-700); }

.section-pad { padding-top: 78px; padding-bottom: 84px; }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading h2, .cta-band h2 { margin: 9px 0 0; color: var(--navy-900); letter-spacing: -.035em; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
.section-heading p { color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.stage-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stage-card { position: relative; overflow: hidden; min-height: 330px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.stage-card:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--blue-600); }
.stage-card.stage-plan:after, .stage-card.stage-graduate:after { background: var(--gold-500); }
.stage-card-head { display: flex; align-items: center; justify-content: space-between; }
.stage-card-head > span { color: #9aabbb; font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.stage-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--blue-100); color: var(--blue-700); }
.stage-plan .stage-icon, .stage-graduate .stage-icon { background: var(--gold-100); color: #b67a00; }
.stage-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-card h3 { margin: 22px 0 2px; font-size: 1.55rem; color: var(--navy-900); }
.stage-question { margin: 0 0 14px; font-weight: 850; color: var(--blue-700); }
.stage-card > p:not(.stage-question) { margin-top: 0; color: var(--muted); line-height: 1.65; }
.text-link { margin-top: auto; align-self: flex-start; border: 0; background: transparent; padding: 10px 0 0; font-weight: 850; color: var(--navy-900); cursor: pointer; }
.text-link span { color: var(--blue-700); margin-left: 5px; }

.cta-band { background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: white; }
.cta-band-inner { min-height: 245px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.kicker-light { color: #8cd4ff; }
.cta-band h2 { color: white; }
.cta-band p { color: #c9daea; margin-bottom: 0; }

.page-hero { background: linear-gradient(135deg, #f8fbfe, #edf6fc); border-bottom: 1px solid var(--line); padding: 56px 0 54px; }
.compact-page-hero { padding-bottom: 42px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.8rem); margin-top: 10px; }
.page-hero p { max-width: 780px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 0; }
.back-link { display: inline-flex; margin-bottom: 24px; border: 0; background: transparent; padding: 0; color: var(--muted); font-weight: 800; cursor: pointer; }
.back-link:hover { color: var(--navy-900); }

.explore-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 26px; align-items: start; }
.stage-rail { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; }
.rail-item { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 15px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
.rail-item > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: .76rem; font-weight: 900; }
.rail-item div { display: grid; gap: 2px; }
.rail-item strong { color: var(--navy-900); }
.rail-item small { color: var(--muted); }
.rail-item.is-active { border-color: #b8d4ea; box-shadow: var(--shadow-sm); }
.rail-item.is-active > span { background: var(--navy-900); color: white; }
.stage-detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.detail-hero { padding: 36px 38px 34px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: white; }
.detail-hero.gold { background: linear-gradient(135deg, #b47700, #f0aa00); }
.detail-hero .detail-step { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.detail-hero h2 { margin: 14px 0 4px; font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.82); font-size: 1.13rem; font-weight: 750; }
.detail-body { padding: 34px 38px 38px; }
.detail-intro { font-size: 1.08rem; color: var(--muted); line-height: 1.7; max-width: 780px; }
.detail-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.detail-box { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 18px; padding: 20px; }
.detail-box h3 { margin: 0 0 10px; color: var(--navy-900); font-size: 1rem; }
.detail-box ul { margin: 0; padding-left: 20px; color: var(--muted); }
.detail-box li + li { margin-top: 7px; }
.source-box { margin-top: 20px; border-left: 4px solid var(--gold-500); background: var(--gold-100); border-radius: 0 14px 14px 0; padding: 17px 18px; color: var(--navy-900); }
.source-box strong { display: block; margin-bottom: 4px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.quiz-shell { max-width: 860px; }
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px; min-height: 480px; }
.quiz-progress-wrap { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.quiz-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; font-weight: 800; }
.quiz-progress { height: 8px; background: var(--surface-soft); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.quiz-progress span { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--gold-500)); border-radius: inherit; transition: width .28s ease; }
.quiz-question { padding-top: 30px; }
.quiz-question .mini-label { color: var(--blue-700); font-weight: 900; letter-spacing: .08em; font-size: .78rem; }
.quiz-question h2 { margin: 9px 0 8px; color: var(--navy-900); font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.03em; }
.quiz-question > p { color: var(--muted); margin-top: 0; }
.answer-list { display: grid; gap: 11px; margin-top: 25px; }
.answer-button { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; color: var(--navy-900); font-weight: 780; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.answer-button:hover { border-color: #a9cce5; background: #f8fcff; transform: translateY(-1px); }
.answer-button span:last-child { color: var(--blue-700); font-size: 1.15rem; }
.quiz-result { padding-top: 26px; }
.result-badge { display: inline-flex; border-radius: 999px; padding: 7px 11px; background: var(--blue-100); color: var(--blue-700); font-size: .76rem; font-weight: 900; letter-spacing: .08em; }
.quiz-result h2 { margin: 13px 0 5px; color: var(--navy-900); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; }
.result-subtitle { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.result-card { margin-top: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-soft); padding: 22px; }
.result-card h3 { margin: 0 0 8px; color: var(--navy-900); }
.result-card p { color: var(--muted); margin: 0; line-height: 1.7; }
.result-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.result-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.result-step span { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--navy-900); color: white; border-radius: 9px; font-size: .72rem; font-weight: 900; }
.result-step p { margin-top: 10px; font-size: .9rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.resource-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.featured-resource { grid-column: 1 / -1; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 20px; align-items: start; }
.featured-resource .resource-label, .featured-resource h2, .featured-resource p, .featured-resource .resource-callout { grid-column: 2; }
.resource-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); }
.resource-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resource-label { color: var(--blue-700); font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.resource-card h2, .resource-card h3 { margin: 8px 0 8px; color: var(--navy-900); }
.resource-card h2 { font-size: 1.9rem; }
.resource-card h3 { font-size: 1.25rem; }
.resource-card p { color: var(--muted); line-height: 1.68; }
.resource-callout { margin-top: 10px; background: var(--gold-100); border-radius: 13px; padding: 14px 16px; font-weight: 800; color: var(--navy-900); }

.print-resource { grid-column: 1 / -1; display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 20px; }
.print-resource .resource-icon { margin: 0; }
.print-resource h3 { margin-top: 4px; }
.print-resource p { margin: 0; }
.print-guide-button { white-space: nowrap; }


.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { min-height: 150px; display: grid; grid-template-columns: 190px 230px minmax(0,1fr); align-items: center; gap: 28px; }
.footer-inner img { width: 175px; }
.footer-copy { display: grid; gap: 3px; }
.footer-copy strong { color: var(--navy-900); }
.footer-copy span, .footer-note { color: var(--muted); font-size: .84rem; }
.footer-note { justify-self: end; max-width: 490px; text-align: right; line-height: 1.6; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold-400) 80%, white); outline-offset: 3px; }

body.dark {
  --ink: #eef6fd;
  --muted: #b8c8d7;
  --line: #31506c;
  --surface: #102f4d;
  --surface-soft: #0c2944;
  --page: #081f34;
  --blue-100: #143d5f;
  --gold-100: #443810;
  --shadow-sm: 0 8px 24px rgba(0,0,0,.20);
  --shadow-md: 0 18px 50px rgba(0,0,0,.28);
}
body.dark .hero-wrap,
body.dark .page-hero { background: linear-gradient(135deg, #0b2741, #103552); }
body.dark .hero-card { border-color: #31506c; background: rgba(16,47,77,.94); }
body.dark .site-header { background: rgba(8,31,52,.94); }
body.dark .mobile-menu { background: #0c2944; }
body.dark .nav-link:hover,
body.dark .nav-link.is-active { color: #ffffff; background: #173b5d; }
body.dark .mobile-link.is-active { color: #71c7f7; }
body.dark .hero-copy h1,
body.dark .page-hero h1,
body.dark .section-heading h2,
body.dark .stage-card h3,
body.dark .journey-text strong,
body.dark .rail-item strong,
body.dark .detail-box h3,
body.dark .quiz-question h2,
body.dark .answer-button,
body.dark .quiz-result h2,
body.dark .result-card h3,
body.dark .resource-card h2,
body.dark .resource-card h3,
body.dark .footer-copy strong,
body.dark .text-link,
body.dark .saved-path-copy strong,
body.dark .saved-path-button { color: var(--ink); }
body.dark .eyebrow,
body.dark .kicker,
body.dark .resource-label,
body.dark .quiz-question .mini-label,
body.dark .stage-question,
body.dark .stage-arrow,
body.dark .saved-path-label,
body.dark .saved-path-button span { color: #68c2f4; }
body.dark .source-box,
body.dark .resource-callout { color: #fff1bd; background: #443810; }
body.dark .answer-button:hover { background: #163c5d; border-color: #4b789c; }
body.dark .button-secondary,
body.dark .button-ghost { color: var(--ink); border-color: #3c5f7d; }
body.dark .button-secondary:hover,
body.dark .button-ghost:hover { background: #173b5d; }
body.dark .back-link:hover { color: #ffffff; }
body.dark .journey-item:hover { border-color: #4a7190; }
body.dark .rail-item.is-active { border-color: #4e7ca0; }
body.dark .rail-item.is-active > span,
body.dark .result-step span { background: #176da7; color: #ffffff; }
body.dark .saved-path-card { background: rgba(16,47,77,.78); border-color: #3b5f7d; }
body.dark .status-pill { color: #8bd6ff; background: #143d5f; }
body.dark .brand img,
body.dark .footer-inner img { filter: drop-shadow(0 0 0 transparent); }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 70px; }
  .hero-card { max-width: 720px; }
  .stage-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .explore-layout { grid-template-columns: 245px minmax(0,1fr); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .resource-card:last-child { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 160px 1fr; }
  .footer-note { grid-column: 1 / -1; justify-self: start; text-align: left; padding-bottom: 25px; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .shell { width: min(100% - 28px, var(--shell)); }
  .brand img { width: 170px; }
  .hero-wrap { min-height: 0; }
  .hero-grid { padding: 58px 0 60px; gap: 30px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .saved-path-card { align-items: flex-start; flex-direction: column; gap: 8px; }
  .saved-path-button { padding-top: 4px; }
  .button { width: 100%; }
  .hero-card { padding: 20px; border-radius: 24px; }
  .journey-item { grid-template-columns: 42px 1fr 20px; padding: 14px; }
  .section-pad { padding-top: 58px; padding-bottom: 62px; }
  .stage-card-grid { grid-template-columns: 1fr; }
  .stage-card { min-height: 280px; }
  .cta-band-inner { padding: 50px 0; display: grid; }
  .page-hero { padding: 42px 0 40px; }
  .page-hero h1 { line-height: 1.04; }
  .explore-layout { grid-template-columns: 1fr; }
  .stage-rail { position: static; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; overflow-x: auto; padding-bottom: 4px; }
  .rail-item { min-width: 130px; grid-template-columns: 1fr; gap: 7px; padding: 12px; }
  .rail-item > span { width: 34px; height: 34px; }
  .rail-item small { display: none; }
  .detail-hero, .detail-body { padding: 26px 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 22px; border-radius: 22px; }
  .result-steps { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .print-resource { grid-template-columns: 1fr; gap: 14px; }
  .print-resource .resource-icon { margin-bottom: 2px; }
  .print-guide-button { width: 100%; }
  .featured-resource, .resource-card:last-child { grid-column: auto; }
  .featured-resource { display: block; }
  .featured-resource .resource-icon { margin-bottom: 18px; }
  .footer-inner { padding: 30px 0; grid-template-columns: 1fr; gap: 16px; }
  .footer-note { grid-column: auto; padding-bottom: 0; }
}

@media print {
  .site-header, .site-footer, .page-hero, .quiz-progress-wrap, .result-actions { display: none !important; }
  body { background: white; color: #15314e; }
  .view { display: none !important; }
  .view[data-view="check"].is-visible { display: block !important; }
  .section-pad { padding: 0; }
  .quiz-shell { max-width: none; width: 100%; }
  .quiz-card { border: 0; box-shadow: none; padding: 0; }
  .quiz-result:before { content: "HIGHLANDS FORWARD — KNOW YOUR PATH"; display: block; color: #103a63; font-weight: 900; letter-spacing: .08em; margin-bottom: 24px; }
}

/* ===== v1.2: multilingual support + counselor/contact experience ===== */
.language-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy-900);
}
.language-icon { font-size: .78rem; font-weight: 900; color: var(--blue-700); }
.language-select {
  appearance: auto;
  max-width: 115px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}
.language-select option { color: #15314e; background: #fff; }

.support-stack { display: grid; gap: 28px; }
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, .95fr);
  gap: 36px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-md);
}
.contact-panel-copy h2, .site-routing-card h2, .counselor-section h2 {
  margin: 9px 0 8px;
  color: var(--navy-900);
  letter-spacing: -.025em;
}
.contact-panel-copy h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.contact-panel-copy p, .site-routing-card p, .counselor-section .section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.contact-actions-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.contact-action {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.contact-action:hover { transform: translateY(-1px); border-color: #b9d3e6; box-shadow: var(--shadow-sm); }
.contact-action-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-weight: 900; }
.contact-action > span:last-child { display: grid; gap: 2px; min-width: 0; }
.contact-action strong { color: var(--navy-900); font-size: .96rem; }
.contact-action small { color: var(--muted); overflow-wrap: anywhere; }
.ltr-text { direction: ltr; unicode-bidi: isolate; text-align: left; }

.site-routing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: 34px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.site-routing-card h2 { font-size: clamp(1.55rem, 2.4vw, 2.05rem); }
.site-routing-controls { display: grid; gap: 9px; }
.site-routing-controls label { font-size: .82rem; font-weight: 900; color: var(--navy-900); }
.site-select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 0 13px;
  font-weight: 700;
}
.selected-site { padding: 11px 13px; border-radius: 12px; background: var(--blue-100); color: var(--ink); font-size: .88rem; }
.selected-site strong { color: var(--navy-900); }

.counselor-section {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.counselor-section .section-heading { margin-bottom: 24px; }
.counselor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.counselor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.counselor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.counselor-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.counselor-copy { padding: 16px 17px 18px; }
.counselor-copy h3 { margin: 0; color: var(--navy-900); font-size: 1.06rem; line-height: 1.25; }
.counselor-copy p { margin: 5px 0 0; color: var(--blue-700); font-weight: 800; font-size: .86rem; }
.team-note { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 13px; background: var(--blue-100); color: var(--muted); }
.team-note > span { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-700); color: #fff; font-size: .72rem; font-weight: 900; }
.team-note p { margin: 0; font-size: .86rem; line-height: 1.55; }

.result-contact-strip {
  margin-top: 16px;
  padding: 17px;
  border: 1px solid #ead78d;
  border-radius: 16px;
  background: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.result-contact-strip > div { display: grid; gap: 3px; }
.result-contact-strip strong { color: var(--navy-900); }
.result-contact-strip span { color: var(--muted); font-size: .88rem; }
.result-contact-strip .button { flex: 0 0 auto; }

.help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 12px 34px rgba(8,31,52,.26);
  font-weight: 850;
  cursor: pointer;
}
.help-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-400); color: var(--navy-950); font-weight: 950; }
.help-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 61;
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(8,31,52,.25);
}
.help-panel[hidden] { display: none !important; }
.help-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-panel-head strong { color: var(--navy-900); font-size: 1.12rem; }
.help-panel-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); cursor: pointer; font-size: 1.3rem; }
.help-panel > p { color: var(--muted); margin: 8px 0 14px; }
.help-link { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.help-link > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; background: var(--blue-100); border-radius: 10px; color: var(--blue-700); font-weight: 900; }
.help-link > span:last-child { display: grid; }
.help-link strong { color: var(--navy-900); font-size: .9rem; }
.help-link small { color: var(--muted); }
.help-resource-button { width: 100%; margin-top: 10px; min-height: 44px; border: 0; border-radius: 12px; background: var(--gold-400); color: var(--navy-950); font-weight: 900; cursor: pointer; }

.quiz-back { margin-top: 22px; }

/* RTL support for Dari and Pashto */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .desktop-nav { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .mobile-link { text-align: right; }
html[dir="rtl"] .footer-note { text-align: left; justify-self: start; }
html[dir="rtl"] .journey-item,
html[dir="rtl"] .rail-item,
html[dir="rtl"] .answer-button { text-align: right; }
html[dir="rtl"] .stage-arrow,
html[dir="rtl"] .answer-arrow,
html[dir="rtl"] .text-link > span:last-child,
html[dir="rtl"] .saved-path-button > span:last-child { transform: scaleX(-1); display: inline-block; }
html[dir="rtl"] .button svg { transform: scaleX(-1); }
html[dir="rtl"] .resource-callout { border-radius: 13px; }
html[dir="rtl"] .help-fab { right: auto; left: 22px; }
html[dir="rtl"] .help-panel { right: auto; left: 22px; }
html[dir="rtl"] .ltr-text { text-align: right; }

/* Dark mode additions */
body.dark .language-control,
body.dark .site-routing-card,
body.dark .counselor-section,
body.dark .contact-panel,
body.dark .contact-action,
body.dark .counselor-card,
body.dark .help-panel { border-color: var(--line); background: var(--surface); }
body.dark .contact-panel { background: linear-gradient(135deg, #102f4d, #0c2944); }
body.dark .contact-panel-copy h2,
body.dark .site-routing-card h2,
body.dark .site-routing-controls label,
body.dark .counselor-section h2,
body.dark .counselor-copy h3,
body.dark .contact-action strong,
body.dark .selected-site strong,
body.dark .help-panel-head strong,
body.dark .help-link strong,
body.dark .result-contact-strip strong { color: var(--ink); }
body.dark .language-control { color: var(--ink); }
body.dark .site-select { background: #0c2944; color: var(--ink); border-color: var(--line); }
body.dark .selected-site,
body.dark .team-note { background: #143d5f; color: var(--muted); }
body.dark .counselor-card { background: #0c2944; }
body.dark .counselor-copy p { color: #78ccfb; }
body.dark .result-contact-strip { background: #443810; border-color: #6e5d1f; }
body.dark .result-contact-strip span { color: #d8d5c5; }
body.dark .help-fab { background: #176da7; }
body.dark .help-panel-head button { background: #0c2944; border-color: var(--line); color: var(--ink); }

@media (max-width: 1100px) {
  .contact-panel { grid-template-columns: 1fr; }
  .site-routing-card { grid-template-columns: 1fr; }
  .counselor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { gap: 10px; }
  .header-actions { margin-left: auto; }
  html[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
  .language-control { padding: 0 7px; }
  .language-icon { display: none; }
  .language-select { max-width: 88px; font-size: .82rem; }
  .contact-panel, .site-routing-card, .counselor-section { padding: 22px; border-radius: 22px; }
  .counselor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .counselor-copy { padding: 12px 12px 14px; }
  .counselor-copy h3 { font-size: .92rem; }
  .result-contact-strip { align-items: stretch; flex-direction: column; }
  .result-contact-strip .button { width: 100%; }
  .help-fab { right: 14px; bottom: 14px; }
  .help-panel { right: 14px; bottom: 72px; }
  html[dir="rtl"] .help-fab { left: 14px; right: auto; }
  html[dir="rtl"] .help-panel { left: 14px; right: auto; }
}

@media (max-width: 440px) {
  .brand img { width: 145px; }
  .language-select { max-width: 78px; }
  .icon-button, .menu-button { width: 38px; height: 38px; }
  .language-control { height: 38px; }
  .counselor-grid { grid-template-columns: 1fr 1fr; }
}

@media print {
  .help-fab, .help-panel, .language-control { display: none !important; }
}


/* ===== v1.3: production layout polish, privacy, and footer ===== */
:root {
  --shell: 1240px;
  --header-h: 84px;
}

body { min-height: 100vh; }
main { min-height: calc(100vh - var(--header-h)); }
.site-header { box-shadow: 0 1px 0 rgba(20,55,89,.03); }
.header-inner { gap: 22px; }
.brand img { width: 198px; }
.desktop-nav { gap: 2px; }
.nav-link { padding: 11px 13px; }

.hero-wrap { min-height: 610px; }
.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, .94fr);
  gap: clamp(42px, 5vw, 70px);
  padding: 72px 0 70px;
}
.hero-copy { min-width: 0; }
.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3.65rem, 5.2vw, 5rem);
  line-height: .98;
  text-wrap: balance;
}
.hero-tagline { margin-top: 16px; }
.hero-lede { max-width: 650px; margin-top: 20px; line-height: 1.68; }
.hero-actions { margin-top: 27px; }
.hero-card { padding: 27px; }
.journey-item { min-height: 78px; }

.section-pad { padding-top: 72px; padding-bottom: 76px; }
.section-heading h2 { text-wrap: balance; }
.stage-card { min-height: 315px; }

.page-hero { padding: 58px 0 56px; }
.page-hero .shell, .page-hero-content { max-width: var(--shell); }
.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1;
  text-wrap: balance;
}
.page-hero p { max-width: 850px; font-size: 1.04rem; line-height: 1.7; }
.compact-page-hero { padding-top: 50px; padding-bottom: 48px; }

.explore-layout { gap: 30px; }
.stage-rail { top: calc(var(--header-h) + 24px); }
.stage-detail-card { min-width: 0; }
.detail-hero h2 { text-wrap: balance; }

.quiz-shell { max-width: 920px; }
.quiz-card { padding: 36px; }
.quiz-question > p { max-width: 720px; line-height: 1.65; }
.answer-button { min-height: 68px; }
.result-actions { flex-wrap: wrap; }

.support-stack { display: grid; gap: 26px; }
.contact-panel, .site-routing-card, .counselor-section { margin: 0; }
.contact-panel { grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); }
.contact-panel-copy { align-self: center; }
.contact-actions-grid { align-self: stretch; }
.counselor-card img { aspect-ratio: 1 / .92; object-position: center 22%; }
.counselor-copy { min-height: 78px; }
.resource-grid { margin-top: 0; }

.inline-privacy-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue-700);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Privacy page */
.privacy-hero { background: linear-gradient(135deg, #f9fcff 0%, #f3f8fc 55%, #fff9e8 100%); }
.privacy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.privacy-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.privacy-summary h2 { margin: 8px 0 18px; color: var(--navy-900); font-size: 1.55rem; letter-spacing: -.025em; }
.privacy-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.privacy-checklist li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px; align-items: start; color: var(--ink); }
.privacy-checklist li > span:first-child { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e8f7f1; color: var(--success); font-weight: 950; font-size: .78rem; }
.privacy-contact-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.privacy-contact-box strong { color: var(--navy-900); }
.privacy-contact-box p { margin: 6px 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.privacy-contact-box .text-link { display: inline-block; }
.privacy-policy-card {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.policy-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; font-weight: 750; }
.policy-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.policy-section h2 { margin: 0 0 9px; color: var(--navy-900); font-size: 1.25rem; letter-spacing: -.015em; }
.policy-section p { margin: 0; color: var(--muted); line-height: 1.72; }
.policy-section-last { border-bottom: 0; padding-bottom: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(210px, .8fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 46px;
  padding-bottom: 42px;
}
.footer-brand-block { display: flex; align-items: center; gap: 18px; min-width: 0; }
.footer-brand-block img { width: 178px; flex: 0 0 auto; }
.footer-copy { display: grid; gap: 3px; min-width: 0; }
.footer-copy strong { color: var(--navy-900); font-size: 1rem; }
.footer-copy span { color: var(--muted); font-size: .82rem; }
.footer-support, .footer-guidance { display: grid; gap: 8px; }
.footer-heading { color: var(--navy-900); font-size: .78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.footer-support a { width: fit-content; color: var(--muted); text-decoration: none; font-size: .87rem; }
.footer-support a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.footer-guidance p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.62; }
.footer-link-button { width: fit-content; border: 0; background: transparent; color: var(--blue-700); padding: 2px 0; font: inherit; font-weight: 800; cursor: pointer; }
.footer-link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 70%, var(--surface)); }
.footer-bottom-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .78rem; }
.footer-powered strong { color: var(--navy-900); }

body.dark .inline-privacy-link,
body.dark .footer-link-button { color: #78ccfb; }
body.dark .privacy-hero { background: linear-gradient(135deg, #0b2741, #103552); }
body.dark .privacy-summary,
body.dark .privacy-policy-card { background: var(--surface); border-color: var(--line); }
body.dark .privacy-summary h2,
body.dark .privacy-contact-box strong,
body.dark .policy-section h2,
body.dark .footer-heading,
body.dark .footer-powered strong { color: var(--ink); }
body.dark .privacy-checklist li > span:first-child { background: #143d5f; color: #7fdfbd; }
body.dark .footer-bottom { background: #0c2944; }

@media (max-width: 1160px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(390px,.9fr); gap: 42px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-guidance { grid-column: 1 / -1; max-width: 760px; }
}

@media (max-width: 1040px) {
  .hero-wrap { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 66px; }
  .hero-copy h1 { max-width: 760px; font-size: clamp(3.6rem, 9vw, 5rem); }
  .hero-card { max-width: 760px; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-summary { position: static; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .shell { width: min(var(--shell), calc(100% - 28px)); }
  .header-inner { min-height: 72px; }
  .brand img { width: 158px; }
  .hero-grid { padding: 48px 0 52px; }
  .hero-copy h1 { font-size: clamp(3.1rem, 15vw, 4.55rem); }
  .hero-tagline { font-size: 1.28rem; }
  .hero-lede { line-height: 1.62; }
  .hero-card { padding: 18px; }
  .journey-item { min-height: 72px; }
  .section-pad { padding-top: 54px; padding-bottom: 58px; }
  .page-hero { padding: 40px 0 38px; }
  .page-hero h1 { font-size: clamp(2.4rem, 11vw, 3.65rem); }
  .quiz-card { padding: 20px; }
  .answer-button { min-height: 62px; }
  .contact-panel, .site-routing-card, .counselor-section { padding: 20px; }
  .counselor-card img { aspect-ratio: 1 / 1; }
  .privacy-policy-card, .privacy-summary { padding: 22px; border-radius: 22px; }
  .policy-meta { display: grid; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; padding-bottom: 30px; }
  .footer-guidance { grid-column: auto; }
  .footer-brand-block { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-brand-block img { width: 170px; }
  .footer-bottom-inner { min-height: 72px; padding: 14px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
}

@media (max-width: 440px) {
  .brand img { width: 142px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 15vw, 4rem); }
  .journey-item { grid-template-columns: 40px 1fr 18px; gap: 10px; padding: 12px; }
  .stage-number { width: 38px; height: 38px; }
  .counselor-grid { grid-template-columns: 1fr; }
  .counselor-card img { aspect-ratio: 4 / 3; object-position: center 20%; }
}

@media print {
  .inline-privacy-link, .footer-bottom { display: none !important; }
}

/* ===== v1.3.1: hero title / eyebrow alignment fix ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  line-height: 1.2;
}
.eyebrow > span:first-child {
  flex: 0 0 30px;
  width: 30px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 4px;
}
.eyebrow > span:last-child {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  display: inline-block;
  line-height: 1.25;
  white-space: normal;
}
.hero-copy h1 {
  margin-top: 16px;
}

@media (min-width: 761px) {
  .eyebrow > span:last-child { white-space: nowrap; }
}

@media (max-width: 760px) {
  .eyebrow { align-items: flex-start; }
  .eyebrow > span:first-child { margin-top: .42em; }
  .hero-copy h1 { margin-top: 14px; }
}


/* ===== v1.3.3: branded PDF / print exports ===== */
.print-export-header,
.print-export-footer { display: none; }

@page {
  size: Letter portrait;
  margin: 0.42in 0.48in 0.44in;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body { background: #fff !important; }
  body { font-size: 10.5pt; color: #15314e !important; }
  .site-header, .site-footer, .page-hero, .quiz-progress-wrap, .result-actions,
  .help-fab, .help-panel, .language-control, .inline-privacy-link, .footer-bottom {
    display: none !important;
  }
  .view { display: none !important; }
  .view[data-view="check"].is-visible { display: block !important; }
  .section-pad { padding: 0 !important; }
  .shell, .quiz-shell { width: 100% !important; max-width: none !important; margin: 0 !important; }
  .quiz-card { border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; background: #fff !important; }
  .quiz-result { padding: 0 !important; }
  .quiz-result:before { content: none !important; display: none !important; }

  .print-export-header { display: block !important; margin: 0 0 25px; }
  .print-export-brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .print-export-brand img { width: 178px; height: auto; display: block; }
  .print-export-brand-copy { margin-inline-start: auto; text-align: end; display: grid; gap: 2px; }
  .print-export-brand-copy span { color: #0d73b9; font-size: 7.4pt; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
  .print-export-brand-copy strong { color: #103a63; font-size: 14pt; line-height: 1.15; }
  .print-export-brand-copy small { color: #f0aa00; font-size: 8.3pt; font-weight: 800; }
  .print-export-rule { display: grid; grid-template-columns: 2fr 1fr; height: 5px; margin-top: 13px; border-radius: 99px; overflow: hidden; }
  .print-export-rule span:first-child { background: #0f87d3; }
  .print-export-rule span:last-child { background: #f7b619; }

  .result-badge { background: #e9f4fb !important; color: #0d73b9 !important; border: 1px solid #cfe6f5; font-size: 7.5pt; padding: 5px 9px; }
  .quiz-result > h2 { color: #103a63 !important; font-size: 28pt !important; line-height: 1 !important; margin: 10px 0 7px !important; letter-spacing: -.03em; }
  .result-subtitle { color: #4f667c !important; font-size: 11.4pt !important; line-height: 1.45; margin: 0 0 18px !important; max-width: 92%; }

  .result-card { margin-top: 0 !important; padding: 16px 17px 15px !important; border: 1px solid #d6e4ef !important; border-radius: 14px !important; background: #f6f9fc !important; break-inside: avoid; }
  .result-card h3 { color: #103a63 !important; font-size: 11.8pt; margin: 0 0 10px !important; }
  .result-steps { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 9px !important; margin-top: 0 !important; }
  .result-step { min-height: 100px; padding: 12px !important; border: 1px solid #dce5ee !important; border-radius: 11px !important; background: #fff !important; break-inside: avoid; }
  .result-step span { width: 24px !important; height: 24px !important; border-radius: 7px !important; background: #103a63 !important; color: #fff !important; font-size: 7pt !important; }
  .result-step p { color: #425b73 !important; font-size: 8.7pt !important; line-height: 1.45 !important; margin-top: 8px !important; }

  .source-box { margin-top: 14px !important; padding: 13px 14px !important; border-inline-start: 4px solid #f7b619 !important; border-radius: 0 10px 10px 0 !important; background: #fff8df !important; color: #103a63 !important; font-size: 8.7pt !important; line-height: 1.5 !important; break-inside: avoid; }
  html[dir="rtl"] .source-box { border-inline-start: 4px solid #f7b619 !important; border-left: 0 !important; border-radius: 10px 0 0 10px !important; }

  .result-contact-strip { margin-top: 14px !important; padding: 13px 14px !important; border: 1px solid #f0d36b !important; border-radius: 12px !important; background: #fffaf0 !important; gap: 12px !important; break-inside: avoid; }
  .result-contact-strip strong { color: #103a63 !important; font-size: 9pt !important; }
  .result-contact-strip span { color: #5b6f83 !important; font-size: 8pt !important; }
  .result-contact-strip .button { display: none !important; }

  .print-export-footer { display: block !important; margin-top: 18px; break-inside: avoid; }
  .print-export-contact { border-top: 1px solid #dbe5ed; border-bottom: 1px solid #dbe5ed; padding: 10px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
  .print-export-contact strong { color: #103a63; font-size: 8.4pt; }
  .print-export-contact span { color: #0d73b9; font-size: 7.8pt; font-weight: 750; direction: ltr; unicode-bidi: isolate; }
  .print-export-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 26px; align-items: end; margin-top: 10px; color: #6c7f92; font-size: 7pt; line-height: 1.4; }
  .print-export-bottom strong { color: #103a63; white-space: nowrap; font-size: 7.4pt; }

  html[dir="rtl"] .print-export-brand-copy { text-align: start; }
  html[dir="rtl"] .print-export-bottom { direction: rtl; }
  html[dir="rtl"] .print-export-contact { direction: rtl; }
}


/* ===== v1.3.4: page context / breadcrumb polish ===== */
.page-context-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 22px;
}
.page-context-row .back-link {
  margin: 0;
  min-height: 34px;
  padding: 6px 10px 6px 0;
  gap: 5px;
  border-radius: 9px;
}
.page-context-row .kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding-inline-start: 20px;
  border-inline-start: 1px solid var(--line);
}
body.dark .page-context-row .kicker {
  border-inline-start-color: var(--line);
}
html[dir="rtl"] .page-context-row .back-link {
  padding: 6px 0 6px 10px;
}
@media (max-width: 640px) {
  .page-context-row { gap: 8px 14px; margin-bottom: 18px; }
  .page-context-row .kicker { padding-inline-start: 14px; }
}
@media (max-width: 420px) {
  .page-context-row { align-items: flex-start; }
  .page-context-row .back-link, .page-context-row .kicker { min-height: 30px; }
}

/* ===== v1.4: final responsive hardening (mobile + tablet + desktop) ===== */
img { max-width: 100%; }
.view,
.shell,
.hero-grid,
.hero-copy,
.hero-card,
.stage-card,
.explore-layout,
.stage-detail-card,
.quiz-shell,
.quiz-card,
.support-stack,
.contact-panel,
.contact-panel > *,
.site-routing-card,
.site-routing-card > *,
.counselor-section,
.counselor-card,
.resource-grid,
.resource-card,
.privacy-layout,
.privacy-layout > *,
.footer-main,
.footer-main > * { min-width: 0; }

.contact-action,
.contact-action > span:last-child,
.footer-support a,
.footer-guidance p,
.policy-section p,
.privacy-contact-box,
.selected-site,
.team-note p { overflow-wrap: anywhere; }

/* Restore the intended single-column support layout on tablets. A later
   v1.3 desktop rule had been overriding the original responsive rule. */
@media (max-width: 1100px) {
  .contact-panel { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 760px) {
  /* Header: keep every control inside the viewport on real phones. */
  .header-inner {
    min-height: 72px;
    gap: 9px;
  }
  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  .brand img { width: 140px; }
  .header-actions {
    flex: 0 0 auto;
    gap: 7px;
    min-width: 0;
  }
  .language-control {
    flex: 0 1 92px;
    width: 92px;
    min-width: 0;
    padding-inline: 7px;
  }
  .language-select {
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: .82rem;
  }
  .icon-button,
  .menu-button { flex: 0 0 38px; width: 38px; height: 38px; }

  /* Page headers / breadcrumbs. */
  .page-context-row {
    gap: 8px 12px;
    margin-bottom: 18px;
  }
  .page-context-row .back-link {
    flex: 0 0 auto;
    padding-inline-end: 2px;
  }
  .page-context-row .kicker {
    min-width: 0;
    padding-inline-start: 12px;
    font-size: .68rem;
    letter-spacing: .14em;
  }
  .page-hero h1,
  .hero-copy h1,
  .section-heading h2,
  .contact-panel-copy h2,
  .site-routing-card h2,
  .counselor-section h2 { overflow-wrap: normal; word-break: normal; }

  /* Explore: four compact stage tabs that fit without horizontal page overflow. */
  .stage-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    width: 100%;
  }
  .rail-item {
    min-width: 0;
    width: 100%;
    padding: 10px 6px;
    justify-items: center;
    text-align: center;
  }
  .rail-item > span { width: 32px; height: 32px; }
  .rail-item div { min-width: 0; width: 100%; text-align: center; }
  .rail-item strong { font-size: .75rem; line-height: 1.15; }
  .rail-item small { display: none; }

  /* Student Support: stack the copy and actions. This is the main overlap fix. */
  .support-stack { gap: 20px; }
  .contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    align-items: stretch;
    padding: 20px;
    overflow: hidden;
  }
  .contact-panel-copy,
  .contact-actions-grid { width: 100%; min-width: 0; }
  .contact-panel-copy h2 {
    margin-top: 8px;
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1.08;
  }
  .contact-panel-copy p { font-size: .95rem; line-height: 1.62; }
  .contact-actions-grid { gap: 9px; }
  .contact-action {
    width: 100%;
    min-width: 0;
    min-height: 70px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 13px;
  }
  .contact-action-icon { width: 40px; height: 40px; }
  .contact-action strong { font-size: .94rem; line-height: 1.3; }
  .contact-action small { font-size: .8rem; line-height: 1.35; }

  .site-routing-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px;
    padding: 20px;
    overflow: hidden;
  }
  .site-routing-controls,
  .site-select { min-width: 0; width: 100%; }
  .site-select { font-size: 16px; }

  .counselor-section { padding: 20px; overflow: hidden; }
  .counselor-section .section-heading { margin-bottom: 20px; }
  .counselor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .counselor-card { min-width: 0; }
  .counselor-copy { min-height: 0; padding: 12px 12px 14px; }
  .counselor-copy h3 { font-size: .92rem; }
  .counselor-copy p { font-size: .78rem; line-height: 1.35; }

  .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .resource-card,
  .featured-resource,
  .print-resource {
    grid-column: auto;
    min-width: 0;
  }
  .featured-resource { display: block; }
  .print-resource {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .resource-card { padding: 20px; }
  .resource-card h2 { font-size: 1.65rem; line-height: 1.1; }
  .resource-card h3 { line-height: 1.25; }
  .resource-card p { line-height: 1.6; }

  /* Privacy / footer long strings. */
  .privacy-layout { grid-template-columns: minmax(0, 1fr); }
  .privacy-summary,
  .privacy-policy-card { min-width: 0; overflow: hidden; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-support a { max-width: 100%; }

  /* The floating help control should not cover card text on phones. */
  .help-fab {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 7px;
    border-radius: 50%;
    justify-content: center;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .help-fab > span:not(.help-dot) { display: none; }
  .help-dot { width: 34px; height: 34px; flex: 0 0 34px; }
  .help-panel {
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: min(350px, calc(100vw - 24px));
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  html[dir="rtl"] .help-fab { right: auto; left: 12px; }
  html[dir="rtl"] .help-panel { right: auto; left: 12px; }
}

@media (max-width: 440px) {
  .shell { width: min(100% - 24px, var(--shell)); }
  .brand img { width: 132px; }
  .language-control { width: 86px; flex-basis: 86px; }
  .page-hero { padding-top: 34px; padding-bottom: 34px; }
  .page-context-row .kicker { font-size: .64rem; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 3.65rem); }
  .hero-tagline { font-size: 1.18rem; }
  .hero-card { padding: 16px; }
  .journey-item { padding: 12px 10px; }
  .counselor-grid { grid-template-columns: minmax(0, 1fr); }
  .counselor-card img { aspect-ratio: 4 / 3; object-position: center 20%; }
}

@media (max-width: 360px) {
  .brand img { width: 120px; }
  .language-control { width: 78px; flex-basis: 78px; }
  .language-select { font-size: .76rem; }
  .header-inner { gap: 7px; }
  .header-actions { gap: 5px; }
  .icon-button,
  .menu-button { width: 36px; height: 36px; flex-basis: 36px; }
  .stage-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-item { grid-template-columns: 32px minmax(0,1fr); justify-items: start; text-align: start; }
  .rail-item div { text-align: start; }
}




/* v1.3.5 narrow-phone safeguard */
@media (max-width: 360px) {
  .page-context-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 4px;
  }
  .page-context-row .kicker {
    min-height: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}


/* ===== v1.6: compact flyer download + cross-page responsive polish ===== */
.flyer-menu { position: relative; flex: 0 0 auto; }
.flyer-menu > summary {
  list-style: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy-900);
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.flyer-menu > summary::-webkit-details-marker { display: none; }
.flyer-menu > summary::marker { content: ""; }
.flyer-menu > summary:hover,
.flyer-menu[open] > summary { border-color: #b9d2e5; background: var(--surface-soft); }
.flyer-menu > summary:focus-visible { outline: 3px solid rgba(15,135,211,.18); outline-offset: 2px; }
.flyer-menu > summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flyer-menu-short { display: none; }
.flyer-menu-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(15, 48, 80, .18);
}
.flyer-menu-heading { display: grid; gap: 2px; padding: 7px 9px 9px; border-bottom: 1px solid var(--line); }
.flyer-menu-heading strong { color: var(--navy-900); font-size: .9rem; }
.flyer-menu-heading span { color: var(--muted); font-size: .75rem; }
.flyer-menu-links { display: grid; gap: 3px; padding-top: 6px; }
.flyer-menu-links a {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 750;
}
.flyer-menu-links a:hover,
.flyer-menu-links a:focus-visible { background: var(--blue-100); color: var(--navy-900); outline: none; }
.flyer-menu-links a > span:last-child { color: var(--blue-700); font-weight: 900; }
html[dir="rtl"] .flyer-menu-panel { right: auto; left: 0; }
body.dark .flyer-menu > summary,
body.dark .flyer-menu-panel { background: var(--surface); border-color: var(--line); }
body.dark .flyer-menu-links a:hover,
body.dark .flyer-menu-links a:focus-visible { background: rgba(15,135,211,.14); }

/* Chip / label hygiene across every view and language. */
.eyebrow,
.kicker,
.resource-label,
.saved-path-label,
.hero-card-label,
.status-pill,
.detail-step,
.mini-label,
.result-badge {
  max-width: 100%;
  line-height: 1.28;
  text-wrap: balance;
}
.status-pill,
.detail-step,
.result-badge { white-space: normal; overflow-wrap: anywhere; }
.hero-card-top > * { min-width: 0; }
.status-pill { flex: 0 1 auto; text-align: center; }
.page-context-row .kicker { overflow-wrap: anywhere; }
.selected-site { line-height: 1.45; }

/* Consistent vertical rhythm so view transitions do not feel cramped. */
.support-stack { gap: 26px; }
.resource-grid { align-items: stretch; }
.resource-card { min-width: 0; }
.button { line-height: 1.2; text-align: center; }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .flyer-menu-full { display: none; }
  .flyer-menu-short { display: inline; }
  .flyer-menu > summary { width: 58px; padding-inline: 9px; gap: 5px; }
}

@media (max-width: 760px) {
  .header-inner { gap: 7px; }
  .brand img { width: 132px; }
  .header-actions { gap: 6px; }
  .flyer-menu > summary { width: 50px; min-height: 38px; padding: 0 7px; border-radius: 11px; font-size: .75rem; }
  .flyer-menu > summary svg { width: 15px; height: 15px; }
  .flyer-menu-panel {
    position: fixed;
    top: calc(var(--header-h) - 1px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100vh - var(--header-h) - 16px);
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 45px rgba(15, 48, 80, .18);
  }
  html[dir="rtl"] .flyer-menu-panel { left: 12px; right: 12px; }

  .language-control { flex-basis: 86px; width: 86px; }
  .icon-button,
  .menu-button { flex-basis: 38px; width: 38px; height: 38px; }

  .section-pad { padding-top: 48px; padding-bottom: 52px; }
  .page-hero { padding-top: 38px; padding-bottom: 38px; }
  .page-context-row { margin-bottom: 14px; }
  .page-context-row .kicker { letter-spacing: .11em; }
  .kicker,
  .resource-label,
  .saved-path-label,
  .hero-card-label,
  .mini-label,
  .result-badge { letter-spacing: .075em; }
  .hero-card-top { align-items: flex-start; gap: 8px; }
  .status-pill { max-width: 48%; padding: 6px 8px; font-size: .72rem; }
  .detail-hero .detail-step { min-width: 0; height: auto; min-height: 28px; padding: 6px 10px; }
  .quiz-card { padding: 22px 18px; }
  .answer-button { padding: 14px 14px; }
  .result-card { padding: 18px; }
  .result-actions .button,
  .detail-actions .button { flex: 1 1 190px; }
  .print-resource .button { width: 100%; white-space: normal; }
}

@media (max-width: 440px) {
  .shell { width: min(100% - 22px, var(--shell)); }
  .brand img { width: 118px; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 5px; }
  .flyer-menu > summary { width: 46px; padding-inline: 6px; }
  .flyer-menu-short { font-size: .7rem; }
  .language-control { width: 78px; flex-basis: 78px; }
  .language-select { font-size: .76rem; }
  .icon-button,
  .menu-button { width: 36px; height: 36px; flex-basis: 36px; }
  .page-context-row { display: grid; grid-template-columns: minmax(0,1fr); justify-items: start; gap: 4px; }
  .page-context-row .kicker { min-height: 0; padding-inline-start: 0; border-inline-start: 0; }
  .status-pill { max-width: 52%; }
  .hero-actions .button { width: 100%; }
  .saved-path-card { align-items: flex-start; flex-direction: column; gap: 8px; }
  .saved-path-button { padding: 4px 0; }
  .detail-body { padding: 24px 18px 26px; }
  .detail-grid { gap: 12px; }
  .detail-box { padding: 17px; }
  .quiz-card { border-radius: 20px; }
  .resource-card,
  .contact-panel,
  .site-routing-card,
  .counselor-section { padding: 18px; }
  .team-note { padding: 12px 13px; }
}

@media (max-width: 360px) {
  .brand img { width: 108px; }
  .flyer-menu > summary { width: 42px; }
  .flyer-menu-short { display: none; }
  .language-control { width: 72px; flex-basis: 72px; }
  .language-select { font-size: .72rem; }
  .icon-button,
  .menu-button { width: 34px; height: 34px; flex-basis: 34px; }
  .header-actions { gap: 4px; }
}


/* ===== v1.7: equal journey cards + refined flyer language menu ===== */

/* Flyer menu: compact, balanced, and visually consistent in every language. */
.flyer-menu-panel {
  width: 324px;
  padding: 13px;
  border-radius: 18px;
  border-color: #cadbe8;
  box-shadow: 0 22px 60px rgba(15, 48, 80, .20);
}
.flyer-menu-heading {
  gap: 3px;
  padding: 5px 6px 11px;
  margin-bottom: 2px;
}
.flyer-menu-heading strong {
  font-size: .86rem;
  letter-spacing: .02em;
}
.flyer-menu-heading span {
  font-size: .76rem;
  line-height: 1.35;
}
.flyer-menu-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}
.flyer-menu-links a {
  min-width: 0;
  min-height: 46px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
  direction: ltr;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.flyer-menu-links a:hover,
.flyer-menu-links a:focus-visible {
  transform: translateY(-1px);
  border-color: #b9d2e5;
  background: var(--blue-100);
  box-shadow: 0 6px 16px rgba(16, 58, 99, .08);
}
.flyer-language-name {
  min-width: 0;
  overflow-wrap: anywhere;
  unicode-bidi: isolate;
  line-height: 1.2;
  text-align: start;
}
.flyer-language-name[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
.flyer-download-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue-700);
  font-size: .82rem;
  font-weight: 900;
}
body.dark .flyer-menu-links a { background: rgba(255,255,255,.035); }
body.dark .flyer-download-icon { background: rgba(255,255,255,.045); }

/* Explore rail: equal cards instead of a clipped horizontal strip. */
@media (max-width: 760px) {
  .stage-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }
  .rail-item {
    min-width: 0;
    min-height: 112px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 15px;
    text-align: center;
  }
  .rail-item > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }
  .rail-item div {
    display: grid;
    gap: 3px;
    width: 100%;
    min-width: 0;
    text-align: center;
  }
  .rail-item strong {
    font-size: .84rem;
    line-height: 1.18;
  }
  .rail-item small {
    display: block;
    max-width: 160px;
    margin: 0 auto;
    font-size: .7rem;
    line-height: 1.28;
    color: var(--muted);
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  /* Home journey: four equal 2x2 cards with no clipped content. */
  .hero-card-top {
    align-items: center;
    margin-bottom: 14px;
  }
  .journey-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }
  .journey-item {
    min-width: 0;
    min-height: 132px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 16px;
    text-align: center;
  }
  .journey-item:hover { transform: translateY(-1px); }
  .journey-text {
    width: 100%;
    gap: 3px;
    text-align: center;
  }
  .journey-text strong {
    font-size: .9rem;
    line-height: 1.2;
  }
  .journey-text small {
    display: block;
    max-width: 170px;
    margin: 0 auto;
    font-size: .72rem;
    line-height: 1.3;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .stage-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
  }
  .stage-arrow { display: none; }

  .flyer-menu-panel {
    padding: 12px;
    border-radius: 0 0 18px 18px;
  }
  .flyer-menu-links { gap: 8px; }
}

@media (max-width: 440px) {
  .hero-card-top {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
  }
  .hero-card-label { font-size: .7rem; }
  .status-pill { max-width: none; font-size: .68rem; white-space: nowrap; }
  .journey-item { min-height: 126px; }
  .journey-text small { font-size: .68rem; }
  .rail-item { min-height: 108px; }
  .flyer-menu-links a {
    min-height: 44px;
    padding: 8px 8px 8px 10px;
    font-size: .8rem;
  }
  .flyer-download-icon {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 350px) {
  .flyer-menu-links { grid-template-columns: 1fr; }
  .journey-list,
  .stage-rail { gap: 8px; }
  .journey-item { min-height: 122px; padding-inline: 8px; }
  .rail-item { min-height: 104px; padding-inline: 7px; }
}

/* v1.7 narrow-phone header fit (320px class devices). */
@media (max-width: 350px) {
  .header-inner { gap: 4px; }
  .header-actions { gap: 3px; }
  .brand img { width: 96px; }
  .flyer-menu > summary { width: 38px; min-height: 34px; padding: 0 5px; }
  .language-control { width: 68px; flex-basis: 68px; padding-inline: 5px; }
  .language-select { font-size: .68rem; }
  .icon-button,
  .menu-button { width: 32px; height: 32px; flex-basis: 32px; }
}

/* ===== v1.8: header typography + multilingual readability ===== */
/* Use a native, script-aware font stack so Latin, Cyrillic, Dari, and Pashto
   render reliably without depending on a web-font download. */
body,
button,
input,
select,
textarea {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

/* Keep desktop navigation crisp and compact so every control stays visible. */
.header-inner { gap: 18px; }
.desktop-nav { gap: 2px; min-width: 0; }
.nav-link {
  padding: 11px 11px;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.flyer-menu > summary {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.language-control { min-width: 0; }
.language-select {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}

/* The flyer control was inheriting the dark navy text color in dark mode,
   making the label appear almost hidden. */
body.dark .flyer-menu > summary { color: var(--ink); }
body.dark .flyer-menu > summary svg { stroke: currentColor; }

/* Slightly tighten the full desktop header before the mobile menu breakpoint. */
@media (max-width: 1320px) and (min-width: 1181px) {
  .brand img { width: 188px; }
  .header-inner { gap: 14px; }
  .nav-link { padding-inline: 9px; font-size: .79rem; }
  .header-actions { gap: 6px; }
  .flyer-menu > summary { padding-inline: 11px; }
}


/* =========================================================
   KNOW YOUR PATH 2.0 — STUDENT ACTION HUB
   ========================================================= */
.desktop-nav { gap: 2px; }
.nav-link { padding-inline: 11px; }
.student-dashboard-preview { background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0 38px; }
.student-welcome-bar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:22px; }
.student-welcome-bar h2 { margin:6px 0 5px; color:var(--navy-900); font-size:clamp(1.8rem,3vw,2.7rem); letter-spacing:-.035em; }
.student-welcome-bar p { margin:0; color:var(--muted); }
.dashboard-preview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dashboard-preview-card { min-height:180px; display:flex; flex-direction:column; align-items:flex-start; border:1px solid var(--line); border-radius:20px; background:var(--surface-soft); padding:20px; }
.dashboard-preview-card.stage-preview-card { background:linear-gradient(145deg,#0c3459,#164f83); color:white; border-color:transparent; }
.dashboard-card-label { color:var(--blue-700); font-size:.7rem; font-weight:900; letter-spacing:.12em; }
.stage-preview-card .dashboard-card-label { color:#9fdcff; }
.dashboard-preview-card > strong { color:var(--navy-900); font-size:1.17rem; margin-top:10px; }
.stage-preview-card > strong { color:white; font-size:1.35rem; }
.dashboard-preview-card p { color:var(--muted); font-size:.9rem; line-height:1.5; margin:7px 0 0; }
.stage-preview-card p { color:#d4e8f6; }
.mini-action { margin-top:auto; border:0; background:transparent; padding:13px 0 0; color:var(--blue-700); font-weight:850; cursor:pointer; }
.stage-preview-card .mini-action { color:#ffd661; }
.mini-progress { width:100%; height:7px; margin:15px 0 8px; border-radius:999px; background:#dbe7f0; overflow:hidden; }
.mini-progress > span { display:block; height:100%; background:linear-gradient(90deg,var(--blue-600),var(--gold-500)); border-radius:inherit; }
.quick-chip-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }
.quick-chip-row a,.quick-chip-row button { border:1px solid var(--line); background:var(--surface); color:var(--navy-900); border-radius:999px; padding:8px 10px; font-weight:800; font-size:.82rem; text-decoration:none; cursor:pointer; }

.my-path-hero { background:linear-gradient(135deg,#f7fbfe 0%,#eef7fc 62%,#fff8dd 100%); }
.my-path-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.hub-card { border:1px solid var(--line); border-radius:24px; background:var(--surface); padding:25px; box-shadow:var(--shadow-sm); }
.hub-card-wide { grid-column:1 / -1; }
.hub-card h2 { margin:5px 0 0; color:var(--navy-900); font-size:1.55rem; letter-spacing:-.025em; }
.hub-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.hub-count,.account-save-pill { display:inline-flex; align-items:center; min-height:32px; padding:6px 10px; border-radius:999px; font-size:.76rem; font-weight:850; white-space:nowrap; }
.hub-count { background:var(--blue-100); color:var(--blue-700); }
.account-save-pill { background:var(--gold-100); color:#826000; }
.path-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:22px; }
.overview-stat { min-height:138px; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:18px; background:var(--surface-soft); padding:17px; }
.overview-stat > span { color:var(--muted); font-size:.75rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.overview-stat > strong { color:var(--navy-900); font-size:1.2rem; margin-top:8px; }
.overview-stat > small { color:var(--muted); margin-top:4px; line-height:1.45; }
.overview-next { background:linear-gradient(140deg,#0e3a63,#16558e); border-color:transparent; }
.overview-next > span,.overview-next > small { color:#c9e3f6; }
.overview-next > strong { color:#fff; }
.inline-hub-link { margin-top:auto; padding:10px 0 0; border:0; background:transparent; color:var(--blue-700); text-align:left; font-weight:800; cursor:pointer; }
.hub-progress { height:8px; background:var(--surface-soft); border-radius:999px; overflow:hidden; margin:19px 0 14px; }
.hub-progress > span { display:block; height:100%; background:linear-gradient(90deg,var(--blue-600),var(--gold-500)); border-radius:inherit; transition:width .2s ease; }
.path-checklist { display:grid; gap:9px; }
.checklist-row { position:relative; display:grid; grid-template-columns:28px 1fr; gap:11px; align-items:flex-start; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft); padding:13px 14px; cursor:pointer; transition:.15s ease; }
.checklist-row:hover { border-color:#b6d3e8; }
.checklist-row input { position:absolute; opacity:0; pointer-events:none; }
.custom-check { width:24px; height:24px; display:grid; place-items:center; border:2px solid #b8c9d8; border-radius:8px; color:transparent; font-weight:950; background:var(--surface); }
.checklist-row.is-complete { background:#f2faf7; border-color:#bcded1; }
.checklist-row.is-complete .custom-check { background:var(--success); border-color:var(--success); color:#fff; }
.checklist-row.is-complete > span:last-child { text-decoration:line-through; color:var(--muted); }
.compact-checklist .checklist-row { padding-block:11px; }
.hub-fine-print { margin:13px 0 0; color:var(--muted); font-size:.78rem; line-height:1.5; }
.official-data-notice { display:grid; gap:3px; margin-top:15px; padding:14px 15px; border-left:4px solid var(--gold-500); border-radius:0 14px 14px 0; background:var(--gold-100); }
.official-data-notice strong { color:var(--navy-900); }
.official-data-notice span { color:#5f5540; font-size:.86rem; line-height:1.5; }
.reminder-form { display:grid; grid-template-columns:180px minmax(0,1fr) 170px auto; gap:10px; align-items:end; margin-top:20px; }
.reminder-form label { display:grid; gap:6px; color:var(--muted); font-size:.78rem; font-weight:800; }
.reminder-form input,.reminder-form select { width:100%; min-height:49px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); padding:0 12px; }
.reminder-list { display:grid; gap:9px; margin-top:18px; }
.reminder-item { display:grid; grid-template-columns:32px 78px minmax(0,1fr) auto; gap:12px; align-items:center; border:1px solid var(--line); border-radius:15px; background:var(--surface-soft); padding:12px; }
.reminder-item.is-done { opacity:.68; }
.reminder-done { width:29px;height:29px;border:2px solid #b5c8d8;border-radius:9px;background:var(--surface);color:#fff;cursor:pointer;font-weight:900; }
.reminder-item.is-done .reminder-done { background:var(--success); border-color:var(--success); }
.reminder-date { display:grid; justify-items:center; border-right:1px solid var(--line); padding-right:12px; }
.reminder-date strong { color:var(--navy-900); font-size:.93rem; }
.reminder-date small { color:var(--muted); }
.reminder-copy { display:grid; gap:2px; }
.reminder-copy span { color:var(--blue-700); font-size:.72rem; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.reminder-copy strong { color:var(--navy-900); }
.reminder-item.is-done .reminder-copy strong { text-decoration:line-through; }
.reminder-remove { border:0; background:transparent; color:var(--muted); font-weight:800; cursor:pointer; }
.empty-reminders { display:grid; gap:3px; text-align:center; border:1px dashed var(--line); border-radius:15px; padding:26px; color:var(--muted); }
.empty-reminders strong { color:var(--navy-900); }
.personalized-link-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:18px; }
.personalized-link-grid a,.personalized-link-grid button { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--line); border-radius:16px; background:var(--surface-soft); color:var(--navy-900); text-decoration:none; padding:16px 18px; cursor:pointer; text-align:left; }
.personalized-link-grid span { color:var(--blue-700); font-size:1.15rem; }

.smart-support-card { border:1px solid #bdd7ea; border-radius:26px; padding:28px; background:linear-gradient(145deg,#f7fbfe,#eef7fd); box-shadow:var(--shadow-sm); }
.smart-support-copy { max-width:790px; }
.smart-support-copy h2,.student-tools-section h2,.career-next-card h2,.feedback-card h2 { color:var(--navy-900); margin:6px 0 8px; font-size:clamp(1.7rem,3.2vw,2.45rem); letter-spacing:-.03em; }
.smart-support-copy p,.career-next-card p,.feedback-card p { color:var(--muted); line-height:1.65; }
.support-topic-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:20px; }
.support-topic-grid button { min-height:64px; border:1px solid var(--line); border-radius:15px; background:var(--surface); color:var(--navy-900); padding:12px; text-align:left; font-weight:800; cursor:pointer; }
.support-topic-grid button.is-selected { border-color:var(--blue-600); background:var(--blue-100); box-shadow:0 0 0 2px rgba(15,135,211,.08); }
.support-topic-grid button span { margin-left:4px; }
.support-route-result { margin-top:18px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:22px; border:1px solid #c9dfef; border-radius:18px; background:var(--surface); padding:19px; }
.support-route-result[hidden] { display:none !important; }
.support-route-result h3 { margin:4px 0; color:var(--navy-900); font-size:1.35rem; }
.support-route-result p { margin:0; color:var(--muted); max-width:720px; }
.support-route-actions { display:flex; flex-wrap:wrap; gap:8px; flex:0 1 auto; min-width:0; }
.student-tools-section { padding:8px 0 0; }
.student-tool-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.student-tool-card { display:grid; grid-template-columns:48px minmax(0,1fr) 20px; align-items:center; gap:14px; border:1px solid var(--line); border-radius:18px; background:var(--surface); padding:17px; text-decoration:none; box-shadow:var(--shadow-sm); }
.student-tool-card:hover { border-color:#b7d3e7; }
.student-tool-card .tool-icon { width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:var(--blue-100);color:var(--blue-700);font-size:1.2rem; }
.student-tool-card div { display:grid; gap:3px; }
.student-tool-card strong { color:var(--navy-900); }
.student-tool-card small { color:var(--muted); line-height:1.4; }
.student-tool-card > span:last-child { color:var(--blue-700); }
.career-next-card { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(400px,.9fr); gap:28px; align-items:center; border:1px solid #2d587c; border-radius:26px; background:linear-gradient(135deg,var(--navy-950),var(--navy-800)); padding:28px; }
.career-next-card .resource-label { color:#8dd6ff; }
.career-next-card h2 { color:#fff; }
.career-next-card p { color:#c9ddec; }
.career-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.career-action-grid a,.career-action-grid button { min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid rgba(255,255,255,.17); border-radius:15px; background:rgba(255,255,255,.08); color:#fff; padding:14px 15px; text-decoration:none; text-align:left; cursor:pointer; }
.career-action-grid span { color:#ffd65d; }
.feedback-card { display:grid; grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr); gap:26px; align-items:center; border:1px solid var(--line); border-radius:24px; background:var(--surface); padding:26px; box-shadow:var(--shadow-sm); }
.feedback-form { display:grid; gap:10px; }
.feedback-choice { display:flex; gap:8px; }
.feedback-choice button { border:1px solid var(--line); border-radius:999px; background:var(--surface-soft); color:var(--navy-900); padding:9px 13px; font-weight:800; cursor:pointer; }
.feedback-choice button.is-selected { border-color:var(--blue-600); background:var(--blue-100); color:var(--blue-700); }
.feedback-form textarea { width:100%; resize:vertical; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft); color:var(--ink); padding:12px 13px; font:inherit; }

body.dark .student-dashboard-preview, body.dark .dashboard-preview-card, body.dark .hub-card, body.dark .smart-support-card, body.dark .student-tool-card, body.dark .feedback-card { background:var(--surface); }
body.dark .dashboard-preview-card:not(.stage-preview-card), body.dark .overview-stat, body.dark .personalized-link-grid a, body.dark .personalized-link-grid button, body.dark .reminder-item, body.dark .checklist-row { background:var(--surface-soft); }
body.dark .smart-support-card { border-color:#315a7b; }
body.dark .support-topic-grid button, body.dark .support-route-result { background:var(--surface-soft); }
body.dark .official-data-notice { background:#413718; }
body.dark .official-data-notice span { color:#e0d2a8; }
body.dark .account-save-pill { background:#3a321b; color:#f5d47c; }

@media (max-width: 1120px) {
  .brand img { width:175px; }
  .header-inner { gap:14px; }
  .nav-link { padding-inline:8px; font-size:.88rem; }
  .dashboard-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .path-overview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .support-topic-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .desktop-nav { display:none; }
  .menu-button { display:grid; }
  .student-welcome-bar,.support-route-result { align-items:flex-start; flex-direction:column; }
  .my-path-layout { grid-template-columns:1fr; }
  .hub-card-wide { grid-column:auto; }
  .reminder-form { grid-template-columns:1fr 1fr; }
  .reminder-form .button { width:100%; }
  .career-next-card,.feedback-card { grid-template-columns:1fr; }
  .student-tool-grid { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
  .student-dashboard-preview { padding:26px 0; }
  .student-welcome-bar { margin-bottom:16px; }
  .student-welcome-bar .button { width:100%; }
  .dashboard-preview-grid,.path-overview-grid,.personalized-link-grid,.support-topic-grid,.career-action-grid { grid-template-columns:1fr; }
  .dashboard-preview-card { min-height:150px; }
  .hub-card,.smart-support-card,.career-next-card,.feedback-card { padding:19px; border-radius:20px; }
  .hub-card-head { align-items:flex-start; flex-direction:column; gap:9px; }
  .account-save-pill { white-space:normal; }
  .reminder-form { grid-template-columns:1fr; }
  .reminder-item { grid-template-columns:32px 62px minmax(0,1fr); }
  .reminder-remove { grid-column:3; justify-self:start; padding:0; }
  .support-route-actions { width:100%; }
  .support-route-actions .button { width:100%; }
  .feedback-choice { flex-direction:column; }
}

/* ===== v2.1 production dark-mode contrast hardening ===== */
@media screen {
  body.dark {
    color: #ffffff;
  }

  /* Core page typography: bright, readable text on every dark surface. */
  body.dark .view,
  body.dark .view section,
  body.dark .view article,
  body.dark .view div,
  body.dark .site-footer,
  body.dark .site-header,
  body.dark .mobile-menu {
    color: #f7fbff;
  }

  body.dark .view h1,
  body.dark .view h2,
  body.dark .view h3,
  body.dark .view h4,
  body.dark .view h5,
  body.dark .view h6,
  body.dark .view strong,
  body.dark .view b,
  body.dark .view label,
  body.dark .footer-copy strong,
  body.dark .student-welcome-bar h2,
  body.dark .dashboard-preview-card > strong,
  body.dark .hub-card h2,
  body.dark .overview-stat > strong,
  body.dark .reminder-date strong,
  body.dark .reminder-copy strong,
  body.dark .empty-reminders strong,
  body.dark .student-tool-card strong,
  body.dark .smart-support-copy h2,
  body.dark .support-route-result h3,
  body.dark .feedback-card h2,
  body.dark .personalized-link-grid a,
  body.dark .personalized-link-grid button,
  body.dark .support-topic-grid button,
  body.dark .quick-chip-row a,
  body.dark .quick-chip-row button,
  body.dark .nav-link,
  body.dark .mobile-link {
    color: #ffffff;
  }

  body.dark .view p,
  body.dark .view li,
  body.dark .view small,
  body.dark .hero-lede,
  body.dark .section-heading p,
  body.dark .page-hero p,
  body.dark .detail-intro,
  body.dark .detail-box ul,
  body.dark .quiz-question > p,
  body.dark .result-subtitle,
  body.dark .result-card p,
  body.dark .resource-card p,
  body.dark .privacy-note,
  body.dark .journey-text small,
  body.dark .rail-item small,
  body.dark .student-welcome-bar p,
  body.dark .dashboard-preview-card p,
  body.dark .overview-stat > span,
  body.dark .overview-stat > small,
  body.dark .hub-fine-print,
  body.dark .reminder-form label,
  body.dark .reminder-date small,
  body.dark .empty-reminders,
  body.dark .smart-support-copy p,
  body.dark .support-route-result p,
  body.dark .student-tool-card small,
  body.dark .feedback-card p,
  body.dark .footer-copy span,
  body.dark .footer-note {
    color: #eef6fd;
  }

  /* Accent copy remains visually distinct but bright enough for dark mode. */
  body.dark .eyebrow,
  body.dark .kicker,
  body.dark .resource-label,
  body.dark .quiz-question .mini-label,
  body.dark .stage-question,
  body.dark .stage-arrow,
  body.dark .saved-path-label,
  body.dark .dashboard-card-label,
  body.dark .reminder-copy span,
  body.dark .student-tool-card > span:last-child,
  body.dark .personalized-link-grid span,
  body.dark .flyer-menu-links a > span:last-child {
    color: #8bdcff;
  }

  body.dark .hero-tagline,
  body.dark .career-action-grid span {
    color: #ffd65d;
  }

  /* Controls and cards. */
  body.dark .button-primary {
    color: #ffffff;
    background: #176da7;
  }
  body.dark .button-secondary,
  body.dark .button-ghost,
  body.dark .text-link,
  body.dark .inline-hub-link,
  body.dark .mini-action,
  body.dark .saved-path-button,
  body.dark .back-link,
  body.dark .reminder-remove {
    color: #ffffff;
  }
  body.dark .button-gold {
    color: #0a2743;
  }
  body.dark .answer-button,
  body.dark .support-topic-grid button,
  body.dark .personalized-link-grid a,
  body.dark .personalized-link-grid button,
  body.dark .quick-chip-row a,
  body.dark .quick-chip-row button,
  body.dark .feedback-choice button {
    color: #ffffff;
  }
  body.dark .answer-button span:last-child,
  body.dark .text-link span,
  body.dark .saved-path-button span,
  body.dark .inline-hub-link,
  body.dark .mini-action {
    color: #8bdcff;
  }

  body.dark input,
  body.dark select,
  body.dark textarea {
    color: #ffffff;
    caret-color: #ffffff;
  }
  body.dark input::placeholder,
  body.dark textarea::placeholder {
    color: #d1dfeb;
    opacity: 1;
  }
  body.dark option {
    color: #ffffff;
    background: #102f4d;
  }

  /* Selected/completed states need dark-safe surfaces. */
  body.dark .checklist-row.is-complete {
    background: #123c35;
    border-color: #2d7667;
  }
  body.dark .checklist-row.is-complete > span:last-child {
    color: #d7eee8;
  }
  body.dark .support-topic-grid button.is-selected,
  body.dark .feedback-choice button.is-selected {
    color: #ffffff;
    background: #174f77;
    border-color: #5ab6ea;
  }
  body.dark .official-data-notice strong,
  body.dark .source-box strong,
  body.dark .resource-callout strong {
    color: #fff4c9;
  }

  /* Keep intentionally dark hero/action surfaces on bright white typography. */
  body.dark .stage-preview-card > strong,
  body.dark .stage-preview-card p,
  body.dark .career-next-card h2,
  body.dark .career-next-card p,
  body.dark .career-action-grid a,
  body.dark .career-action-grid button,
  body.dark .detail-hero,
  body.dark .detail-hero h1,
  body.dark .detail-hero h2,
  body.dark .detail-hero p,
  body.dark .cta-band,
  body.dark .cta-band h2,
  body.dark .cta-band p {
    color: #ffffff;
  }

  /* Header/footer controls were the easiest place for inherited navy text to leak through. */
  body.dark .icon-button,
  body.dark .menu-button,
  body.dark .language-control,
  body.dark .language-select,
  body.dark .flyer-menu > summary,
  body.dark .flyer-menu-panel,
  body.dark .flyer-menu-links a {
    color: #ffffff;
  }
  body.dark .flyer-menu-heading strong { color: #ffffff; }
  body.dark .flyer-menu-heading span { color: #e3eef7; }
}



/* Robust light/dark brand lockups for header and footer. */
.brand-logo-dark { display: none !important; }
body.dark .brand-logo-light { display: none !important; }
body.dark .brand-logo-dark { display: block !important; }

/* Final dark-mode counter contrast. */
@media screen {
  body.dark .hub-count {
    color: #ffffff;
    background: #174f77;
  }
}

/* ===== v2.3: responsive navigation/header hardening ===== */
/* The main content shell intentionally stays narrow, but the global header
   needs more horizontal room because it contains primary navigation and
   account utilities. Giving the header its own shell prevents controls from
   shrinking into or painting over neighboring buttons on wide displays. */
.site-header .header-inner {
  width: min(1760px, calc(100% - 32px));
  gap: clamp(12px, 1.15vw, 22px);
}
.site-header .brand,
.site-header .header-actions,
.site-header .flyer-menu,
.site-header .language-control,
.site-header .student-signin-button,
.site-header .icon-button,
.site-header .menu-button {
  flex-shrink: 0;
}
.site-header .desktop-nav {
  min-width: 0;
  margin-left: auto;
}
.site-header .nav-link {
  padding-inline: 10px;
}
.site-header .header-actions {
  margin-left: 0;
}

/* Collapse to the menu before the full desktop header gets tight. This is a
   deliberate tablet layout, not an emergency text-shrinking breakpoint. */
@media (max-width: 1300px) {
  .site-header .desktop-nav { display: none; }
  .site-header .menu-button { display: grid; }
  .site-header .flyer-menu,
  .site-header .student-signin-button { display: none !important; }
  .site-header .header-actions { margin-left: auto; }
  html[dir="rtl"] .site-header .header-actions { margin-left: 0; margin-right: auto; }
}

/* Mobile utility controls: downloads move into the menu rather than fighting
   the logo for space in the top row. */
.mobile-flyer-menu {
  border-bottom: 1px solid var(--line);
}
.mobile-flyer-menu > summary {
  list-style: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-flyer-menu > summary::-webkit-details-marker { display: none; }
.mobile-flyer-menu > summary::marker { content: ""; }
.mobile-menu-chevron {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .16s ease;
}
.mobile-flyer-menu[open] .mobile-menu-chevron { transform: rotate(180deg); }
.mobile-flyer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 0 14px;
}
.mobile-flyer-links a {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--navy-900);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
}
.mobile-flyer-links a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mobile-flyer-links a > span:last-child {
  color: var(--blue-700);
  font-weight: 900;
}
body.dark .mobile-flyer-links a { background: var(--surface-soft); }

@media (max-width: 760px) {
  .site-header .header-inner {
    width: min(100% - 24px, 1760px);
    min-height: 68px;
    gap: 8px;
  }
  .site-header .brand img { width: 132px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .language-control {
    width: 104px;
    flex-basis: 104px;
    height: 38px;
    padding-inline: 9px;
  }
  .site-header .language-icon { display: none; }
  .site-header .language-select {
    width: 100%;
    max-width: none;
    font-size: .78rem;
  }
  .site-header .icon-button,
  .site-header .menu-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .mobile-menu-inner { padding-top: 6px; padding-bottom: 14px; }
  .mobile-link { min-height: 46px; padding: 12px 4px; }
}

@media (max-width: 440px) {
  .site-header .header-inner {
    width: min(100% - 20px, 1760px);
    min-height: 64px;
    gap: 6px;
  }
  .site-header .brand img { width: 112px; }
  .site-header .header-actions { gap: 5px; }
  .site-header .language-control {
    width: 94px;
    flex-basis: 94px;
    height: 36px;
    padding-inline: 7px;
  }
  .site-header .language-select { font-size: .74rem; }
  .site-header .icon-button,
  .site-header .menu-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .mobile-flyer-links { grid-template-columns: 1fr; }
}

@media (max-width: 350px) {
  .site-header .header-inner { width: min(100% - 16px, 1760px); gap: 4px; }
  .site-header .brand img { width: 98px; }
  .site-header .language-control { width: 88px; flex-basis: 88px; padding-inline: 6px; }
  .site-header .language-select { font-size: .72rem; }
  .site-header .icon-button,
  .site-header .menu-button { width: 34px; height: 34px; flex-basis: 34px; }
}

/* ===== v2.6: mobile menu typography + dark-mode flyer contrast ===== */
/* Keep the mobile download list visually consistent with the primary menu and
   prevent the light-mode navy label color from leaking into dark mode. */
@media (max-width: 760px) {
  .mobile-menu-inner .mobile-link,
  .mobile-flyer-links a {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .mobile-flyer-links a {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
  }
}

body.dark .mobile-flyer-links a,
body.dark .mobile-flyer-links a > span:first-child {
  color: #f7fbff;
}

body.dark .mobile-flyer-links a:visited {
  color: #f7fbff;
}

/* ===== Student Portal "Coming Soon" states =====
   The separate Student Portal is not yet available to students. Its label and
   card stay in the interface so the entry point is familiar when it launches,
   but every control is a non-navigating, disabled element: no href, no target,
   no click handler. These rules make that state read as deliberate rather than
   broken, and keep the Resource Center card legible down to 320px. */

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  border: 1px solid #ecd9a4;
  border-radius: 999px;
  background: #fff6d5;
  color: #7a5606;
  padding: 4px 11px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .03em;
  line-height: 1.25;
  white-space: nowrap;
  text-transform: none;
}
/* The tool card and personalized grid both paint their last-child span with an
   accent link color. Those selectors outrank a bare .coming-soon-badge, so the
   badge must restate its color at higher specificity or it renders as a link. */
.student-tool-card.is-coming-soon > .coming-soon-badge,
.personalized-link-grid button.is-coming-soon .coming-soon-badge {
  color: #7a5606;
  background: #fff6d5;
  border-color: #ecd9a4;
}

/* Shared disabled treatment for every Coming Soon control. */
.is-coming-soon {
  cursor: default;
  opacity: 1;
}
.is-coming-soon:hover,
.is-coming-soon:focus,
.is-coming-soon:focus-visible,
.is-coming-soon:active {
  transform: none;
  box-shadow: none;
  outline: none;
}

/* Student Resource Center card. */
.student-tool-card.is-coming-soon {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  background: var(--surface-soft);
  border-style: dashed;
}
.student-tool-card.is-coming-soon:hover {
  border-color: var(--line);
}
.student-tool-card.is-coming-soon .tool-icon {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}
.student-tool-card.is-coming-soon strong {
  color: var(--muted);
}

/* My Path personalized grid. */
.personalized-link-grid button.is-coming-soon {
  cursor: default;
  flex-wrap: wrap;
  row-gap: 8px;
  background: var(--surface-soft);
  border-style: dashed;
  color: var(--muted);
}
.personalized-link-grid button.is-coming-soon > strong {
  min-width: 0;
}

/* Home dashboard quick-action chip. */
.quick-chip-row button.is-coming-soon {
  cursor: default;
  max-width: 100%;
  background: var(--surface-soft);
  border-style: dashed;
  color: var(--muted);
  white-space: normal;
  text-align: left;
}

/* Student Services support-route action. */
.button.is-coming-soon {
  cursor: default;
  border-style: dashed;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .92rem;
}

/* Very small screens: give the badge its own row so the description column is
   never squeezed into a narrow ribbon of wrapped text. */
@media (max-width: 560px) {
  .student-tool-card.is-coming-soon {
    grid-template-columns: 48px minmax(0, 1fr);
    row-gap: 10px;
  }
  .student-tool-card.is-coming-soon .tool-icon {
    grid-column: 1;
    grid-row: 1;
  }
  .student-tool-card.is-coming-soon > div {
    grid-column: 2;
    grid-row: 1;
  }
  .student-tool-card.is-coming-soon .coming-soon-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

/* Dark mode. Specificity is raised past the existing
   `body.dark .student-tool-card > span:last-child` accent rule. */
@media screen {
  body.dark .coming-soon-badge,
  body.dark .student-tool-card.is-coming-soon > .coming-soon-badge,
  body.dark .personalized-link-grid button.is-coming-soon .coming-soon-badge {
    border-color: #6d5a22;
    background: #443810;
    color: #ffd98a;
  }
  body.dark .student-tool-card.is-coming-soon,
  body.dark .personalized-link-grid button.is-coming-soon,
  body.dark .quick-chip-row button.is-coming-soon,
  body.dark .button.is-coming-soon {
    background: var(--surface-soft);
    border-color: #3f6285;
  }
  body.dark .student-tool-card.is-coming-soon strong,
  body.dark .personalized-link-grid button.is-coming-soon,
  body.dark .quick-chip-row button.is-coming-soon,
  body.dark .button.is-coming-soon {
    color: #cdddea;
  }
  body.dark .student-tool-card.is-coming-soon .tool-icon {
    background: #0c2944;
    color: #cdddea;
  }
}

/* Long translated headings must wrap within small phone screens. */
@media (max-width: 760px) {
  .privacy-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
}

/* Static website QR in print-only export headers. */
@media print {
  .export-site-qr { display:flex;flex-direction:column;align-items:center;gap:2pt;flex:none;text-decoration:none;color:#163f6d;direction:ltr;unicode-bidi:isolate;break-inside:avoid; }
  .print-export-brand .export-site-qr img { display:block;width:.72in;height:.72in;background:#fff; }
  .export-site-qr span { font:700 7pt Arial,sans-serif;white-space:nowrap; }
}

/* Resources: compact student-focused spacing, scoped to this page only. */
@media screen {
  [data-view="resources"] .support-hero { padding:28px 0 26px; }
  [data-view="resources"] .page-context-row { margin-bottom:16px; }
  [data-view="resources"] .support-hero h1 { font-size:clamp(2rem,3.4vw,2.75rem);line-height:1.15;margin:8px 0 10px; }
  [data-view="resources"] .support-hero p { font-size:1rem;line-height:1.6;margin:0;max-width:760px; }
  [data-view="resources"] .support-stack { padding-top:28px;padding-bottom:44px;gap:24px; }
  [data-view="resources"] .smart-support-card { padding:24px; }
  [data-view="resources"] .smart-support-copy h2 { font-size:clamp(1.6rem,2.8vw,2rem);line-height:1.2; }
  [data-view="resources"] .smart-support-copy p { margin:8px 0 18px; }
  [data-view="resources"] .support-topic-grid { gap:10px; }
  [data-view="resources"] .support-topic-grid button { min-height:56px;padding:12px 14px;line-height:1.4; }
  [data-view="resources"] .student-tools-section { padding-top:0; }
  [data-view="resources"] .section-heading { margin-bottom:20px; }
}
@media screen and (max-width:680px) {
  [data-view="resources"] .support-hero { padding:20px 0; }
  [data-view="resources"] .support-stack { padding-top:20px;gap:20px; }
  [data-view="resources"] .smart-support-card { padding:18px; }
  [data-view="resources"] .page-context-row { margin-bottom:12px; }
}

/* Public-launch compatibility: scrolling menus, long translations and touch controls. */
#main { scroll-margin-top: calc(var(--header-h) + 12px); }
.student-tool-card, .student-tool-card > div, .support-route-result > div { min-width: 0; }
.student-tool-card strong, .student-tool-card small, .support-route-actions .button {
  overflow-wrap: anywhere;
}
.mobile-menu {
  max-height: calc(100vh - var(--header-h) - 8px);
  max-height: calc(100dvh - var(--header-h) - 8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 760px) {
  .site-header .icon-button, .site-header .menu-button {
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }
  .site-header .language-control { min-height: 44px; }
}
@supports not (color: color-mix(in srgb, white, black)) {
  .site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
  :focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view.is-visible { animation: none; }
  .button, .flyer-menu, .mobile-menu-chevron { transition: none; }
}
