/* DOST Scholarship Guide — independent scholarship information publication
   Shared stylesheet. System fonts only, no external assets, no images. */

:root {
  --navy: #102B50;
  --navy-deep: #0B1F3B;
  --blue: #2463B4;
  --royal: #316ED8;
  --emerald: #168B71;
  --gold: #C6A15F;
  --gold-soft: #E9D9B6;
  --sky: #EDF5FC;
  --warm: #FBFAF7;
  --white: #FFFFFF;
  --text: #273747;
  --muted: #6B7C8D;
  --border: #DDE7F0;
  --danger: #A8412F;
  --danger-bg: #FBF0EC;
  --ok-bg: #EAF6F2;
  --gold-bg: #FAF5EA;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 43, 80, .06), 0 8px 24px rgba(16, 43, 80, .07);
  --shadow-lg: 0 18px 48px rgba(11, 31, 59, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--warm);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.22; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { color: var(--navy); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--royal); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: .75rem; }

/* ---------- Disclosure bar ---------- */
.disclosure-bar { background: var(--navy-deep); color: #D8E3F0; font-size: .8125rem; line-height: 1.5; }
.disclosure-bar .wrap { padding: .5rem 0; display: flex; gap: .6rem; align-items: center; }
.disclosure-bar .tag { flex: none; background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: .6875rem; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border); backdrop-filter: saturate(160%) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand-mark { position: relative; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, var(--navy), var(--blue)); flex: none; box-shadow: inset 0 0 0 2px rgba(198, 161, 95, .55); }
.brand-mark::before { /* mortarboard */ content: ""; position: absolute; left: 50%; top: 12px; width: 26px; height: 26px; background: var(--white); transform: translateX(-50%) scaleY(.42) rotate(45deg); border-radius: 2px; }
.brand-mark::after { /* cap base + tassel */ content: ""; position: absolute; left: 50%; top: 21px; width: 16px; height: 9px; background: var(--gold-soft); transform: translateX(-50%); border-radius: 0 0 8px 8px; box-shadow: 12px -2px 0 -3px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; letter-spacing: .09em; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; margin-top: .2rem; }

.primary-nav .nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav a, .dropdown-toggle {
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
  padding: .55rem .62rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  color: var(--text); text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; line-height: 1.3;
}
.primary-nav a:hover, .dropdown-toggle:hover { background: var(--sky); color: var(--navy); }
.primary-nav a[aria-current="page"], .dropdown-toggle.is-current { color: var(--navy); background: var(--sky); box-shadow: inset 0 -2px 0 var(--gold); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dropdown-toggle[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }

.dropdown { list-style: none; margin: 0; padding: .5rem; position: absolute; right: 0; top: calc(100% + 8px); min-width: 300px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dropdown[hidden] { display: none; }
.dropdown li + li { margin-top: 0; }
.dropdown a { display: flex; width: 100%; padding: .6rem .75rem; font-weight: 600; white-space: normal; }
.dropdown a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); }

.nav-toggle { display: none; align-items: center; gap: .55rem; background: var(--navy); color: var(--white); border: 0; padding: .55rem .85rem; border-radius: var(--radius-sm); font: 600 .875rem var(--sans); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: .75rem 1.25rem 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .js .primary-nav:not(.is-open) { display: none; }
  .primary-nav .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav a, .dropdown-toggle { width: 100%; justify-content: space-between; padding: .8rem .75rem; font-size: 1rem; }
  .dropdown { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--gold-soft); border-radius: 0; margin: .2rem 0 .4rem .75rem; min-width: 0; padding: 0 0 0 .5rem; }
}
@media (max-width: 520px) { .brand-sub { display: none; } .brand { gap: .55rem; min-width: 0; flex: 1 1 auto; } .brand-name { font-size: .8rem; letter-spacing: .05em; } .brand-mark { width: 38px; height: 38px; } .brand-mark::before { top: 9px; } .brand-mark::after { top: 18px; } .nav-toggle { flex: none; } }
@media (max-width: 400px) { .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .nav-toggle { padding: .7rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; line-height: 1.2; }
.btn::after { content: "\2192"; font-weight: 400; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #D5B475; color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #E6EEF8; background: radial-gradient(120% 140% at 85% 0%, var(--royal) 0%, var(--blue) 30%, var(--navy) 68%, var(--navy-deep) 100%); isolation: isolate; }
.hero::before { /* subtle blueprint grid */ content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 44px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 44px); mask: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask: linear-gradient(100deg, transparent 20%, #000 75%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--emerald) 50%, var(--royal)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 3.4rem 0 3.8rem; }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero .lead { font-size: 1.15rem; color: #D2DFEE; max-width: 44rem; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; padding-left: 1.6rem; position: relative; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.1rem; height: 2px; background: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-meta { font-size: .85rem; color: #AFC3DA; margin: 1.2rem 0 0; }
.hero-meta time { color: var(--white); font-weight: 600; }

.hero-disclosure { margin-top: 1.8rem; display: flex; gap: .85rem; align-items: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .92rem; color: #E6EEF8; max-width: 44rem; }
.hero-disclosure p { margin: 0; }
.hero-disclosure strong { color: var(--white); }

.breadcrumbs { margin-bottom: 1.3rem; font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; color: #BFD0E4; }
.breadcrumbs li + li::before { content: "/"; color: var(--gold); }
.breadcrumbs a { color: var(--white); }
.breadcrumbs [aria-current="page"] { color: #BFD0E4; }

/* ---------- Hero art: CSS-only academic motifs ---------- */
.hero-art { position: relative; height: 330px; }
.art-panel { position: absolute; inset: 8% 4% 4% 10%; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 60px rgba(0, 0, 0, .18); }
/* campus façade: pediment + columns */
.art-campus { position: absolute; left: 18%; right: 14%; bottom: 12%; height: 52%; }
.art-campus .pediment { position: absolute; left: -6%; right: -6%; top: 0; height: 26%; background: linear-gradient(180deg, rgba(233, 217, 182, .95), rgba(198, 161, 95, .9)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.art-campus .entab { position: absolute; left: -3%; right: -3%; top: 26%; height: 7%; background: rgba(255, 255, 255, .85); }
.art-campus .cols { position: absolute; left: 2%; right: 2%; top: 33%; bottom: 9%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .82) 0 9%, transparent 9% 18.2%); }
.art-campus .steps { position: absolute; left: -6%; right: -6%; bottom: 0; height: 9%; background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0 50%, rgba(255, 255, 255, .6) 50%); }
/* graduation cap */
.art-cap { position: absolute; right: 6%; top: 2%; width: 128px; height: 100px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .25)); }
.art-cap .board { position: absolute; left: 50%; top: 10px; width: 92px; height: 92px; background: linear-gradient(135deg, #1A3D6E, var(--navy-deep)); transform: translateX(-50%) scaleY(.45) rotate(45deg); border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.art-cap .skull { position: absolute; left: 50%; top: 46px; width: 66px; height: 34px; background: linear-gradient(180deg, #16355F, var(--navy-deep)); transform: translateX(-50%); border-radius: 0 0 34px 34px / 0 0 22px 22px; }
.art-cap .tassel { position: absolute; left: 50%; top: 31px; width: 3px; height: 50px; background: var(--gold); transform: translateX(26px) rotate(-8deg); transform-origin: top; border-radius: 2px; }
.art-cap .tassel::after { content: ""; position: absolute; left: -5px; bottom: -14px; width: 13px; height: 18px; background: var(--gold); border-radius: 3px 3px 6px 6px; }
/* open book */
.art-book { position: absolute; left: 2%; top: 14%; width: 150px; height: 96px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .22)); }
.art-book .page { position: absolute; top: 0; width: 50%; height: 100%; background: repeating-linear-gradient(180deg, transparent 0 14px, rgba(16, 43, 80, .14) 14px 15px), var(--warm); }
.art-book .page.l { left: 0; border-radius: 10px 2px 2px 14px; transform: skewY(6deg); transform-origin: right; }
.art-book .page.r { right: 0; border-radius: 2px 10px 14px 2px; transform: skewY(-6deg); transform-origin: left; }
.art-book .spine { position: absolute; left: 50%; bottom: -10px; width: 112%; height: 16px; transform: translateX(-50%); background: var(--emerald); border-radius: 0 0 14px 14px; z-index: -1; }
/* orbit ring for science pages */
.art-orbit { position: absolute; right: 10%; bottom: 8%; width: 120px; height: 120px; border-radius: 50%; border: 2px dashed rgba(233, 217, 182, .55); }
.art-orbit::before { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 60%); }
.art-orbit::after { content: ""; position: absolute; top: 6px; left: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(22, 139, 113, .25); }
/* checklist sheet */
.art-sheet { position: absolute; right: 14%; top: 10%; width: 140px; height: 176px; background: var(--white); border-radius: 10px; transform: rotate(5deg); box-shadow: 0 20px 34px rgba(0, 0, 0, .22); background-image: linear-gradient(var(--navy), var(--navy)), repeating-linear-gradient(180deg, transparent 0 30px, var(--border) 30px 32px); background-size: 60% 8px, 100% 100%; background-position: 16px 18px, 0 34px; background-repeat: no-repeat, no-repeat; }
.art-sheet::before { content: ""; position: absolute; left: 16px; top: 46px; width: 14px; height: 100px; background: repeating-linear-gradient(180deg, var(--emerald) 0 12px, transparent 12px 32px); border-radius: 3px; }
/* award ribbon */
.art-medal { position: absolute; left: 10%; bottom: 10%; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F4E6C4, var(--gold) 55%, #9C7B3E); box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); }
.art-medal::before, .art-medal::after { content: ""; position: absolute; top: 72px; width: 24px; height: 44px; background: var(--emerald); z-index: -1; }
.art-medal::before { left: 18px; transform: rotate(14deg); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.art-medal::after { right: 18px; transform: rotate(-14deg); background: var(--royal); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
/* envelope */
.art-envelope { position: absolute; left: 22%; top: 26%; width: 190px; height: 126px; background: var(--warm); border-radius: 10px; box-shadow: 0 22px 40px rgba(0, 0, 0, .25); overflow: hidden; }
.art-envelope::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, transparent 49.5%, var(--border) 50%, transparent 51%), linear-gradient(30deg, transparent 49.5%, var(--border) 50%, transparent 51%); }
.art-envelope::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 62%; background: var(--gold-soft); clip-path: polygon(0 0, 100% 0, 50% 100%); }
/* stacked books */
.art-stack { position: absolute; left: 12%; bottom: 10%; width: 170px; }
.art-stack span { display: block; height: 22px; border-radius: 4px; margin-top: 4px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.art-stack span:nth-child(1) { width: 78%; margin-left: 10%; background: var(--gold); }
.art-stack span:nth-child(2) { width: 92%; background: var(--emerald); }
.art-stack span:nth-child(3) { width: 86%; margin-left: 6%; background: var(--royal); }
.art-stack span:nth-child(4) { width: 100%; background: var(--warm); }

.hero--compact .hero-art { height: 280px; }
.hero--v2 { background: radial-gradient(120% 140% at 10% 0%, var(--royal) 0%, var(--blue) 26%, var(--navy) 66%, var(--navy-deep) 100%); }
.hero--v3 { background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 42%, #1B4F8F 72%, var(--blue) 100%); }
.hero--v4 { background: radial-gradient(90% 120% at 90% 100%, #1D7A69 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.hero--v5 { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 70%, var(--royal) 100%); }
.hero--v6 { background: radial-gradient(110% 130% at 70% 10%, #3B4F86 0%, var(--navy) 50%, var(--navy-deep) 100%); }

/* ---------- Layout ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
.content { min-width: 0; }
.block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 2.2rem; margin-bottom: 1.4rem; box-shadow: var(--shadow); }
.block > h2 { position: relative; padding-bottom: .55rem; }
.block > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--emerald)); }
.block > :last-child { margin-bottom: 0; }
.block h3 { margin-top: 1.4rem; }
.section-num { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; margin-right: .55rem; border-radius: 50%; background: var(--sky); color: var(--blue); font: 700 .8rem var(--sans); vertical-align: .2em; }

.sidebar { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 1rem; }
.side-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); font-size: .92rem; }
.side-title { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0 0 .6rem; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; max-height: 46vh; overflow: auto; }
.toc li { counter-increment: toc; margin: 0; }
.toc a { display: flex; gap: .5rem; padding: .3rem 0; color: var(--text); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold); font: 700 .75rem var(--mono); padding-top: .15rem; }
.toc a:hover { color: var(--blue); }
.side-card--sources ul { list-style: none; padding: 0; margin: 0; }
.side-card--sources li { padding: .45rem 0; border-top: 1px dashed var(--border); margin: 0; line-height: 1.4; }
.side-card--sources li:first-child { border-top: 0; }
.plain-url { font-family: var(--mono); font-size: .82rem; color: var(--navy); background: var(--sky); padding: .05rem .35rem; border-radius: 4px; word-break: break-all; }
.side-card--next { background: linear-gradient(150deg, var(--navy), var(--blue)); color: #DCE7F4; border: 0; }
.side-card--next .side-title { color: var(--white); }
.side-card--next a { color: var(--gold-soft); font-weight: 700; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 2.6rem 0 3rem; }
  .hero-art { display: none; }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 2rem; }
  .sidebar { position: static; order: -1; }
  .side-card--sources, .side-card--next { display: none; }
  .toc ol { max-height: none; columns: 2; column-gap: 1.5rem; }
}
@media (max-width: 600px) {
  .block { padding: 1.4rem 1.2rem; }
  .toc ol { columns: 1; }
  body { font-size: 1rem; }
}

/* ---------- Components ---------- */
.notice { border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin: 1.2rem 0; border: 1px solid var(--border); background: var(--sky); border-left: 4px solid var(--blue); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice-title { font-weight: 800; color: var(--navy); margin: 0 0 .3rem; font-size: .95rem; letter-spacing: .01em; }
.notice--warn { background: var(--danger-bg); border-left-color: var(--danger); border-color: #F0D6CD; }
.notice--warn .notice-title { color: var(--danger); }
.notice--ok { background: var(--ok-bg); border-left-color: var(--emerald); border-color: #CDE8DF; }
.notice--gold { background: var(--gold-bg); border-left-color: var(--gold); border-color: #EFE2C6; }
.notice--status { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.status-pill { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: var(--white); white-space: nowrap; }
.status-pill--closed { background: var(--danger); }
.status-pill--history { background: var(--muted); }

.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
caption { text-align: left; padding: .8rem 1rem; font-weight: 700; color: var(--navy); background: var(--sky); border-bottom: 1px solid var(--border); font-family: var(--serif); }
th, td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--navy); color: var(--white); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
tbody th { color: var(--navy); background: #F7FAFD; font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 1.3rem 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.3rem 3.6rem; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font: 700 1rem var(--serif); box-shadow: 0 0 0 4px var(--sky); }
.steps > li::after { content: ""; position: absolute; left: 1.2rem; top: 2.8rem; bottom: .2rem; width: 2px; background: linear-gradient(var(--border), transparent); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.08rem; margin-bottom: .2rem; }
.steps p { margin: 0; }

.checklist { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: .55rem; }
.checklist li { position: relative; margin: 0; padding: .65rem .9rem .65rem 2.7rem; background: #F7FAFD; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.checklist li::before { content: ""; position: absolute; left: .9rem; top: .9rem; width: 1.05rem; height: 1.05rem; border-radius: 4px; border: 2px solid var(--emerald); background: var(--white); }
.checklist li::after { content: ""; position: absolute; left: 1.28rem; top: 1.02rem; width: .32rem; height: .6rem; border-right: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(45deg); }
.checklist--x li::before { border-color: var(--danger); }
.checklist--x li::after { content: "\00D7"; border: 0; transform: none; left: 1.13rem; top: .55rem; width: auto; height: auto; color: var(--danger); font-weight: 800; font-size: 1.1rem; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.mini { background: #F7FAFD; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.15rem; }
.mini h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.mini p:last-child { margin-bottom: 0; }

.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.25rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--emerald)); }
.card:nth-child(3n+2)::before { background: linear-gradient(90deg, var(--gold), var(--blue)); }
.card:nth-child(3n)::before { background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C9D9EA; }
.card h3 { margin: .2rem 0 .45rem; font-size: 1.15rem; }
.card p { font-size: .95rem; color: #3A4B5C; }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .card-link::after { content: " \2192"; }
.card .card-link::before { content: ""; position: absolute; inset: 0; }
.card-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); position: relative; margin-bottom: .5rem; }
.card-icon::before { content: ""; position: absolute; inset: 12px 10px; border: 2px solid var(--blue); border-radius: 3px 3px 6px 6px; border-top-width: 5px; }
.card-icon--book::before { inset: 13px 9px; border-radius: 2px; border: 2px solid var(--emerald); border-left-width: 5px; }
.card-icon--cap::before { inset: 14px 9px 18px; border: 0; background: var(--navy); transform: skewX(-25deg); border-radius: 2px; }
.card-icon--cap::after { content: ""; position: absolute; left: 15px; top: 25px; width: 16px; height: 8px; background: var(--blue); border-radius: 0 0 8px 8px; }
.card-icon--shield::before { inset: 11px 13px; border: 2px solid var(--gold); border-radius: 4px 4px 12px 12px; }
.card-icon--pen::before { inset: 10px 20px; border: 0; background: var(--gold); transform: rotate(35deg); border-radius: 2px 2px 6px 6px; }

.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: .65rem 0; background: #FCFDFE; }
.faq summary { cursor: pointer; list-style: none; padding: .95rem 3rem .95rem 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; background: var(--navy); color: var(--white); }
.faq summary h3 { margin: 0; font-size: 1.04rem; font-family: var(--sans); font-weight: 700; color: var(--navy); }
.faq .faq-a { padding: 0 1.1rem 1rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 0; }
.glossary div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; background: #F7FAFD; }
.glossary dt { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.glossary dd { margin: .25rem 0 0; font-size: .95rem; }
@media (max-width: 680px) { .glossary { grid-template-columns: 1fr; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0; }
.compare > div { border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; border: 1px solid var(--border); }
.compare .yes { background: var(--ok-bg); border-top: 4px solid var(--emerald); }
.compare .no { background: var(--danger-bg); border-top: 4px solid var(--danger); }
.compare h3 { margin-top: 0; font-size: 1.05rem; }
.compare ul { margin-bottom: 0; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

.practice { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin: 1rem 0; background: #FCFDFE; }
.practice h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.practice .q-tag { display: inline-block; font: 700 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: var(--blue); padding: .15rem .5rem; border-radius: 999px; margin-right: .5rem; vertical-align: .15em; }
.practice ol[type="A"] { margin-bottom: .6rem; }
.practice details summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.practice details p { margin: .6rem 0 0; }

.passage { font-family: var(--serif); background: var(--gold-bg); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1rem 0; }

/* ---------- Home ---------- */
.home-band { padding: 3.6rem 0; }
.home-band--sky { background: var(--sky); border-block: 1px solid var(--border); }
.home-band--navy { background: linear-gradient(140deg, var(--navy-deep), var(--navy) 55%, #18477F); color: #D6E2F0; }
.home-band--navy h2, .home-band--navy h3 { color: var(--white); }
.home-band--navy .mini { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); }
.home-band--navy a { color: var(--gold-soft); }
.band-head { max-width: 50rem; margin-bottom: 1.8rem; }
.band-head .kicker { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); margin-bottom: .5rem; }
.home-band--navy .band-head .kicker { color: var(--gold); }
.topic { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--border); }
.topic:first-of-type { border-top: 0; padding-top: .5rem; }
.topic-label { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); padding-top: .55rem; }
.topic-label span { display: block; font: 700 2.4rem/1 var(--serif); color: var(--gold); letter-spacing: 0; margin-bottom: .4rem; }
.topic h2 { margin-bottom: .45em; }
.topic p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .topic { grid-template-columns: 1fr; gap: .4rem; } }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .home-split { grid-template-columns: 1fr; } }
.home-section + .home-section { margin-top: 2.6rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.05rem; margin-top: 1rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }
.field .hint { display: block; font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--white); border: 1.5px solid #C8D6E4; border-radius: var(--radius-sm); padding: .75rem .9rem; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 99, 180, .16); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form button { justify-self: start; font: 700 1rem var(--sans); background: var(--navy); color: var(--white); border: 0; border-radius: 999px; padding: .9rem 1.6rem; cursor: pointer; }
.form button:hover { background: var(--blue); }
.form-status { margin: 0; }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C4D3E4; border-top: 4px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; padding: 2.6rem 0 1.8rem; align-items: start; }
.footer-brand { font-family: var(--serif); color: var(--white); font-weight: 700; letter-spacing: .09em; font-size: 1.1rem; margin: 0; }
.footer-sub { color: var(--gold-soft); font-size: .9rem; margin: .2rem 0 1rem; }
.footer-note { font-size: .88rem; max-width: 34rem; border-left: 3px solid var(--royal); padding-left: .9rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: flex-end; }
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0 1.4rem; font-size: .82rem; color: #9DB1C8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-nav ul { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .disclosure-bar, .site-header, .sidebar, .hero-art, .site-footer .footer-nav { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
  .page-grid { display: block; }
  .block { box-shadow: none; break-inside: avoid; }
}
@media (max-width: 600px) { .disclosure-bar .tag { display: none; } .disclosure-bar { font-size: .75rem; } }
