/* Scholarship.Guide interim stylesheet.
   Editorial and authoritative, never official: no seals, crests, flags or agency colors (D14, 16 CFR 461).
   No web fonts and no JavaScript (Core Web Vitals). All text colors meet WCAG 2.1 AA on their backgrounds. */
:root {
  --ink: #15202b;
  --ink-2: #374352;
  --muted: #56616f;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --line: #e2ddd2;
  --line-2: #eeeae2;
  --brand: #0e4a45;
  --brand-700: #0a3834;
  --brand-600: #13605a;
  --brand-50: #ebf3f1;
  --brand-100: #d6e9e5;
  --accent: #e3a14b;
  --accent-ink: #8a4b12;
  --open-bg: #e5f3ea; --open-ink: #145a2c; --open-dot: #2f9a55;
  --closed-bg: #fbe8e5; --closed-ink: #8a2215; --closed-dot: #d0503b;
  --notice-bg: #fff2d4; --notice-ink: #664000; --notice-dot: #d99a1e;
  --soon-bg: #e9ebfa; --soon-ink: #30348a; --soon-dot: #5a62d6;
  --focus: #b35c00;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(21, 32, 43, .05), 0 4px 14px rgba(21, 32, 43, .06);
  --shadow-lg: 0 2px 4px rgba(21, 32, 43, .06), 0 14px 34px rgba(21, 32, 43, .10);
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 74rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); letter-spacing: -.005em; }
strong { font-weight: 650; }

/* ---------- Independence strip + header ---------- */
.indep-strip { background: var(--brand-700); color: #dcebe8; font-size: .8rem; line-height: 1.4; }
.indep-strip .wrap { padding-top: .4rem; padding-bottom: .4rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); padding: .5rem 0; }
.brand:hover { color: var(--ink); }
.logo { flex: none; display: block; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; }
.brand-name .dot { color: var(--accent-ink); }
.brand-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: .1rem .55rem; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .45rem .75rem; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: var(--brand-50); color: var(--brand); }
.site-nav a[aria-current] { color: var(--brand); background: var(--brand-50); box-shadow: inset 0 -2px 0 var(--brand); }
@media (max-width: 60rem) {
  .header-row { padding-top: .25rem; }
  .site-nav { width: calc(100% + 2.5rem); margin: 0 -1.25rem; border-top: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding: .4rem 1.25rem; }
}

/* ---------- Title band ---------- */
.page-hero { background: linear-gradient(180deg, #e8f1ee 0%, #f2f5f1 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 1.25rem 0 1.6rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #9aa4af; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--brand); }
.eyebrow { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.page-hero h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.85rem); line-height: 1.12; margin: 0 0 .6rem; max-width: 46rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 .8rem; max-width: 44rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; text-decoration: none; }
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-check::before { content: ""; width: .9rem; height: .9rem; border-radius: 50%; background: var(--open-dot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.3L12 5.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.chip-muted { color: var(--muted); background: transparent; }

/* ---------- Content grid ---------- */
.page-grid { padding-top: 1.75rem; padding-bottom: 3.5rem; }
.content { max-width: 46rem; min-width: 0; }
@media (min-width: 68rem) {
  .page-grid.has-toc { display: grid; grid-template-columns: minmax(0, 46rem) 15.5rem; gap: 3.5rem; justify-content: space-between; }
}
.toc-side { display: none; }
@media (min-width: 68rem) {
  .toc-side { display: block; }
  .toc-side nav { position: sticky; top: 1.25rem; border-left: 2px solid var(--line); padding: .25rem 0 .25rem 1rem; }
  .toc-title { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .toc-side ol { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 1.35; }
  .toc-side li { margin: 0 0 .55rem; }
  .toc-side a { color: var(--ink-2); text-decoration: none; }
  .toc-side a:hover { color: var(--brand); text-decoration: underline; }
}
.content h2 { font-size: 1.6rem; line-height: 1.25; margin: 2.4rem 0 .7rem; padding-top: .2rem; }
.content h3 { font-size: 1.2rem; margin: 1.6rem 0 .45rem; }
.content p, .content li { color: var(--ink); }
.content ul, .content ol { padding-left: 1.3rem; }
.content li { margin: .3rem 0; }
.content li::marker { color: var(--brand-600); }
.small, .table-note { font-size: .9rem; color: var(--muted); }

/* ---------- Answer, status, callouts ---------- */
.answer { position: relative; font-size: 1.12rem; line-height: 1.6; background: var(--surface); border: 1px solid var(--brand-100); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 2.1rem 1.35rem 1.15rem; margin: 0 0 1.6rem; box-shadow: var(--shadow); }
.answer::before { content: "In short"; position: absolute; top: .75rem; left: 1.35rem; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; border-radius: 999px; padding: .55rem 1.1rem; margin: 0 0 1.1rem; font-weight: 600; font-size: .98rem; width: fit-content; max-width: 100%; }
.status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; flex: none; }
.status strong { font-weight: 700; }
.status-open { background: var(--open-bg); color: var(--open-ink); } .status-open::before { background: var(--open-dot); box-shadow: 0 0 0 3px rgba(47, 154, 85, .2); }
.status-closed { background: var(--closed-bg); color: var(--closed-ink); } .status-closed::before { background: var(--closed-dot); }
.status-notice { background: var(--notice-bg); color: var(--notice-ink); } .status-notice::before { background: var(--notice-dot); }
.status-soon { background: var(--soon-bg); color: var(--soon-ink); } .status-soon::before { background: var(--soon-dot); }
.status a { color: inherit; }
.status-asof { font-weight: 400; font-size: .86rem; opacity: .9; }
@media (max-width: 40rem) { .status { border-radius: 12px; } }
.disclaimer-top { font-size: .95rem; background: var(--notice-bg); color: var(--notice-ink); padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid #f0d9a2; margin: 0 0 1.25rem; }
.callout { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: .9rem 1.1rem .9rem 3rem; margin: 1.25rem 0; position: relative; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 9v5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='6' r='1.3' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat; }
.callout-info { background: var(--brand-50); border-color: var(--brand-100); }
.callout-warn { background: var(--notice-bg); border-color: #f0d9a2; }
.callout-warn::before { background-color: var(--notice-dot); }

/* ---------- Citations and facts ---------- */
sup.cite { font-size: .62em; line-height: 0; margin-left: 2px; vertical-align: super; }
sup.cite a { display: inline-block; min-width: 1.35em; padding: .12em .32em; border-radius: 999px; background: var(--brand-50); color: var(--brand); text-decoration: none; text-align: center; font-weight: 700; line-height: 1.2; }
sup.cite a:hover { background: var(--brand); color: #fff; }
.fact { font-variant-numeric: tabular-nums; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; padding: .85rem 1rem .7rem; color: var(--ink); }
th, td { padding: .6rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
thead th { background: var(--brand-50); color: var(--brand-700); font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-top: 1px solid var(--brand-100); border-bottom: 1px solid var(--brand-100); white-space: nowrap; }
tbody tr:nth-child(even) { background: #fbfaf7; }
tbody tr:hover { background: #f3f8f6; }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { padding: .65rem 1rem .8rem; margin: 0; border-top: 1px solid var(--line-2); background: #fbfaf7; }

/* ---------- Law vs SFO ---------- */
.lvs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .4rem 1.25rem 1rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.lvs-title { margin: .7rem 0 .5rem; font-size: 1.1rem; }
.lvs-row { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line-2); }
.lvs-who { font-weight: 700; font-size: .92rem; color: var(--brand-700); }
.lvs-row:first-of-type .lvs-who { color: var(--accent-ink); }
.lvs-note { font-size: .88rem; color: var(--muted); margin: .5rem 0 0; }
@media (max-width: 40rem) { .lvs-row { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Cards, lists ---------- */
.cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.cards li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem 1.1rem; margin: 0; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cards li:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.cards li > a:first-child { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink); text-decoration: none; }
.cards li > a:first-child::after { content: "\00a0→"; color: var(--brand); }
.cards li > a:first-child:hover { color: var(--brand); text-decoration: underline; }
.cards p { margin: .35rem 0 0; font-size: .95rem; color: var(--ink-2); }
.cols { columns: 3 11rem; column-gap: 2rem; padding-left: 1.1rem; }
.cols li { break-inside: avoid; }
.tags { font-size: .84rem; color: var(--muted); margin: .1rem 0 .5rem; }
.faq-item { border-top: 1px solid var(--line); padding-top: .35rem; }
.faq-item h2 { font-size: 1.25rem; margin-top: 1.5rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1.25rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
.toc ol { margin: .25rem 0; padding-left: 1.4rem; columns: 2 18rem; column-gap: 2rem; }
.toc li { break-inside: avoid; font-size: .95rem; }
.official-links { background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.5rem; box-shadow: var(--shadow); }
.official-links h2 { margin-top: .1rem !important; font-size: 1.25rem; }

/* ---------- Sources ---------- */
.sources { margin-top: 3rem; padding: 1.1rem 1.35rem 1.25rem; background: #f1efe9; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; color: var(--ink-2); }
.sources h2 { font-size: 1.15rem !important; margin: 0 0 .5rem !important; }
.sources ol { padding-left: 1.6rem; margin: 0; }
.sources li { margin: .4rem 0; overflow-wrap: anywhere; color: var(--ink-2); }
.sources li:target { background: #fff6dd; border-radius: 6px; outline: 2px solid #f0d9a2; outline-offset: 2px; }
.conf { font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-700); color: #cfe0dc; padding: 2.5rem 0 2rem; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 1.25rem; }
@media (min-width: 60rem) { .footer-top { grid-template-columns: 18rem 1fr; gap: 3rem; } }
.footer-brand p { margin: .6rem 0 0; color: #cfe0dc; max-width: 22rem; }
.brand-invert, .brand-invert:hover { color: #fff; padding: 0; }
.brand-invert .dot { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; }
.footer-h { margin: 0 0 .5rem; color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: .35rem 0; }
.footer-cols a { color: #e3eeeb; }
.site-footer .disclaimer { max-width: 56rem; color: #c2d6d1; margin: .6rem 0; font-size: .84rem; }
.site-footer .small { color: #a9c3bd; }

/* ---------- Home ---------- */
.home-hero { background: radial-gradient(1200px 500px at 85% -10%, #1f7a70 0%, transparent 60%), linear-gradient(135deg, #0b3d39 0%, #0e4a45 55%, #135f58 100%); color: #e6f1ee; padding: 3rem 0 3.25rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.hero-kicker { margin: 0 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f2c88a; }
.home-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.015em; }
.hero-sub { font-size: 1.18rem; line-height: 1.55; margin: 0 0 1.5rem; color: #d7e8e4; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 1rem; padding: .75rem 1.2rem; border-radius: 10px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: #f2b766; color: #2a1a05; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.btn-primary:hover { background: #f6c47d; color: #2a1a05; transform: translateY(-1px); text-decoration: none; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.hero-note { margin: 1.1rem 0 0; font-size: .86rem; color: #b9d3cd; }
.stat-card { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 1.25rem 1.35rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.stat-card h2 { font-size: 1rem; margin: 0 0 .8rem; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.25rem; }
.stats li { border-top: 1px solid var(--line-2); padding-top: .7rem; }
.stat-v { display: block; font-family: var(--serif); font-size: clamp(1.15rem, .95rem + .7vw, 1.4rem); font-weight: 700; line-height: 1.2; color: var(--brand-700); white-space: nowrap; }
.stat-l { display: block; font-size: .86rem; color: var(--ink-2); margin-top: .2rem; line-height: 1.35; }
.stat-card .small { margin: .9rem 0 0; }
.home .page-grid { padding-top: .5rem; }
.home .content { max-width: none; }
.section { margin: 2.5rem 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.section-head h2 { margin: 0 0 .25rem !important; }
.section-head a { font-weight: 600; }
.section-intro { color: var(--ink-2); margin: .25rem 0 0; max-width: 44rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .2rem .65rem; margin-top: .6rem; }
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; }
.pill-open { background: var(--open-bg); color: var(--open-ink); } .pill-open::before { background: var(--open-dot); }
.pill-closed { background: var(--closed-bg); color: var(--closed-ink); } .pill-closed::before { background: var(--closed-dot); }
.pill-notice { background: var(--notice-bg); color: var(--notice-ink); } .pill-notice::before { background: var(--notice-dot); }
.pill-soon { background: var(--soon-bg); color: var(--soon-ink); } .pill-soon::before { background: var(--soon-dot); }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; }
.chips li { margin: 0; }
.chips a { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.chips a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.trust { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0 0; padding: 0 !important; list-style: none; }
.trust li { margin: 0; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink); font-size: .96rem; }
.trust strong { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--brand-700); margin-bottom: .2rem; }

@media print { .site-nav, .skip, .indep-strip, .toc-side { display: none; } a { color: inherit; } .page-hero, .home-hero { background: none; color: inherit; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Narrow screens ---------- */
.hero-grid > * { min-width: 0; }
@media (max-width: 34rem) {
  .stats { grid-template-columns: 1fr; gap: .6rem; }
  .stat-v { white-space: normal; }
  .indep-strip { font-size: .74rem; }
  .home-hero { padding: 2rem 0 2.25rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .content h2 { font-size: 1.4rem; }
  .answer { font-size: 1.05rem; }
}
