
:root {
  --ink: #101722;
  --ink-2: #2b3442;
  --muted: #667085;
  --paper: #f7f3eb;
  --paper-2: #fffdf8;
  --night: #0b1320;
  --night-2: #131f30;
  --red: #a3272f;
  --red-2: #7f1d25;
  --gold: #c49a4a;
  --blue: #235a83;
  --green: #2f6f59;
  --line: #d7d0c4;
  --shadow: 0 14px 40px rgba(11, 19, 32, .10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--blue); }
a:hover { color: var(--red); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .8rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,19,32,.97); color: #fff; border-bottom: 3px solid var(--red); backdrop-filter: blur(12px); }
.header-inner { max-width: 1240px; margin: auto; min-height: 76px; padding: .65rem 1.1rem; display: flex; align-items: center; gap: 1.2rem; }
.brand { text-decoration: none; color: #fff; display: flex; align-items: center; gap: .8rem; min-width: 260px; }
.brand-mark { width: 48px; height: 48px; display: block; flex: 0 0 auto; filter: drop-shadow(0 5px 12px rgba(0,0,0,.28)); }
.brand strong { display: block; letter-spacing: .12em; font-size: .92rem; }
.brand span { display: block; color: #b8c2cf; font-size: .73rem; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid #536175; border-radius: 10px; padding: .5rem .7rem; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: .15rem; }
.primary-nav a { color: #dbe3ec; text-decoration: none; padding: .55rem .65rem; border-radius: 8px; font-size: .82rem; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: #24344a; }
.update-badge { color: #fff; border: 1px solid #526176; border-radius: 999px; padding: .35rem .65rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; white-space: nowrap; }
main { min-height: 70vh; }
.hero { background: radial-gradient(circle at 80% 10%, rgba(196,154,74,.22), transparent 32%), linear-gradient(145deg, var(--night), var(--night-2)); color: #fff; border-bottom: 1px solid #28374a; }
.hero-inner { max-width: 1240px; margin: auto; padding: 5rem 1.2rem 4.5rem; display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: end; }
.kicker, .eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--red); }
.hero .kicker { color: #e7c989; }
h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .98; margin: .5rem 0 1.2rem; letter-spacing: -.045em; }
.hero p { color: #c7d0dc; max-width: 760px; font-size: 1.12rem; }
.hero-actions, .card-actions, .button-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; border-radius: 10px; padding: .72rem .95rem; font-weight: 750; font-size: .86rem; cursor: pointer; border: 1px solid transparent; }
.button--primary { background: var(--red); color: #fff; }
.button--primary:hover { background: var(--red-2); color: #fff; }
.button--secondary { background: var(--gold); color: var(--night); }
.button--secondary:hover { background: #d7b66b; color: var(--night); }
.button--ghost { background: transparent; border-color: #aab4c1; color: var(--ink-2); }
.hero .button--ghost { border-color: #5c6a7d; color: #fff; }
.hero .button--ghost:hover { background: #26364a; color: #fff; }
.hero-stamp { border: 1px solid #405069; border-radius: var(--radius); padding: 1.4rem; background: rgba(255,255,255,.04); }
.hero-stamp strong { display: block; font-size: 1.25rem; }
.hero-stamp p { font-size: .85rem; margin: .45rem 0 0; }
.hero-art { max-width: 1240px; margin: -1.3rem auto 0; padding: 0 1.2rem 3rem; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #405069; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.container { max-width: 1240px; margin: auto; padding: 3rem 1.2rem; }
.page-head { padding: 4rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-head h1 { color: var(--night); font-size: clamp(2.5rem, 5vw, 4.6rem); margin: .5rem 0 1rem; }
.page-head p { max-width: 850px; color: var(--ink-2); font-size: 1.08rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: -2rem; position: relative; }
.stat { background: var(--paper-2); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; padding: 1.15rem; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 2rem; line-height: 1; }
.stat span { color: var(--muted); font-size: .8rem; }
.weekly-highlight { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: start; margin: 2rem 0; padding: 1.5rem; color: #fff; background: linear-gradient(145deg, var(--night), #192b42); border: 1px solid #34475f; border-left: 5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.weekly-highlight h2 { margin: .35rem 0 .5rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.weekly-highlight p { margin: 0 0 1rem; color: #c7d0dc; }
.weekly-highlight ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.weekly-highlight li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; padding: .65rem .75rem; background: rgba(255,255,255,.055); border: 1px solid #34475f; border-radius: 10px; }
.weekly-highlight a { color: #fff; text-decoration: none; font-weight: 700; }
.weekly-highlight a:hover { color: #e7c989; }
.weekly-highlight .chip { margin-top: .1rem; color: var(--night); background: var(--gold); }
.archive-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; margin: 3rem 0 2rem; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; background: radial-gradient(circle at 100% 0, rgba(196,154,74,.18), transparent 35%), linear-gradient(145deg, #0b1320, #15263b); border: 1px solid #34475f; border-top: 5px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.archive-feature h2 { margin: .4rem 0 .9rem; max-width: 650px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; }
.archive-feature p { color: #c7d0dc; max-width: 680px; }
.archive-feature .button--ghost { color: #fff; border-color: #64738a; }
.archive-feature .button--ghost:hover { color: #fff; background: #26364a; }
.archive-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.archive-paths a { display: block; min-height: 126px; padding: 1rem; color: #fff; text-decoration: none; background: rgba(255,255,255,.055); border: 1px solid #3d4f68; border-radius: 12px; transition: transform .15s, border-color .15s, background .15s; }
.archive-paths a:hover { color: #fff; background: rgba(255,255,255,.09); border-color: var(--gold); transform: translateY(-2px); }
.archive-paths strong { display: block; margin-bottom: .3rem; color: #e7c989; font-size: 1rem; }
.archive-paths span { display: block; color: #bdc9d6; font-size: .78rem; line-height: 1.45; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 3rem 0 1.2rem; }
.section-head h2 { margin: 0; font-size: 2rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.route-grid, .download-grid, .institution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.route-card, .download-card, .institution-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: 0 8px 24px rgba(11,19,32,.06); }
.route-card { display: flex; flex-direction: column; }
.route-card h3, .download-card h3, .institution-card h3 { margin: .25rem 0 .55rem; font-size: 1.2rem; }
.route-card p, .download-card p, .institution-card p { color: var(--ink-2); margin: 0 0 1rem; }
.route-card .button, .download-card .button { margin-top: auto; align-self: flex-start; }
.integrity-note { background: #fff8e7; border: 1px solid #d7b66b; border-left: 5px solid var(--gold); border-radius: 14px; padding: 1.2rem 1.3rem; margin: 2rem 0; }
.integrity-note h2, .integrity-note h3 { margin-top: 0; }
.search-panel { display: flex; gap: .7rem; align-items: center; background: var(--paper-2); border: 1px solid var(--line); padding: .8rem; border-radius: 14px; position: sticky; top: 90px; z-index: 20; box-shadow: 0 8px 22px rgba(11,19,32,.08); margin-bottom: 1.4rem; }
.search-panel input { flex: 1; min-width: 0; border: 1px solid #b8b1a5; background: #fff; padding: .75rem .85rem; border-radius: 9px; }
.search-count { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.scope-filter { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.scope-filter .button { min-width: 8.5rem; }
.record-list { display: grid; gap: 1.4rem; }
.record-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.45rem; box-shadow: var(--shadow); scroll-margin-top: 130px; }
.record-card__head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.record-card h2 { margin: .35rem 0 .5rem; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.15; }
.dek { color: var(--ink-2); font-size: 1rem; margin: 0; }
.status-pill { max-width: 235px; background: #e7f1ec; color: #255a48; border: 1px solid #b9d5c8; border-radius: 999px; padding: .4rem .65rem; font-size: .68rem; line-height: 1.2; font-weight: 700; text-align: center; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.chip { background: #ebe6dc; color: #3f4854; border-radius: 999px; padding: .26rem .55rem; font-size: .68rem; font-weight: 650; }
.three-layer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.layer { border-radius: 12px; padding: 1rem; border: 1px solid var(--line); background: #fff; }
.layer h3 { margin: 0 0 .65rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.layer p, .layer li { color: var(--ink-2); font-size: .9rem; }
.layer ul { padding-left: 1.15rem; margin: 0; }
.layer li + li { margin-top: .55rem; }
.layer--facts { border-top: 4px solid var(--blue); }
.layer--significance { border-top: 4px solid var(--gold); }
.layer--goalpost { border-top: 4px solid var(--red); }
.sources { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.sources summary { cursor: pointer; font-weight: 750; color: var(--ink-2); }
.sources ul { padding-left: 1.1rem; }
.sources li { margin: .45rem 0; }
.sources li span { display: block; color: var(--muted); font-size: .75rem; }
.micro { color: var(--muted); font-size: .76rem; }
.record-card[hidden], .institution-card[hidden] { display: none; }
.institution-card ul { padding-left: 1.1rem; color: var(--ink-2); }
.agency-section + .agency-section { margin-top: 3.5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #ece7dc; position: sticky; top: 0; }
.code-note { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--night); color: #dbe5ef; border-radius: 12px; padding: 1rem; overflow-x: auto; font-size: .78rem; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.method-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.method-card h2, .method-card h3 { margin-top: 0; }
.site-footer { background: var(--night); color: #cad3df; margin-top: 4rem; border-top: 4px solid var(--red); }
.footer-inner { max-width: 1240px; margin: auto; padding: 2.4rem 1.2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer a { color: #e7c989; }
.site-footer p, .site-footer li { font-size: .82rem; }
.footer-bottom { border-top: 1px solid #354357; padding: 1rem 1.2rem; text-align: center; font-size: .72rem; color: #9aa7b7; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: var(--night); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: var(--shadow); transform: translateY(150%); transition: transform .2s; z-index: 300; }
.toast.show { transform: translateY(0); }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--night); padding: .75rem; flex-direction: column; align-items: stretch; border-bottom: 3px solid var(--red); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .75rem; }
  .update-badge { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .weekly-highlight { grid-template-columns: 1fr; }
  .archive-feature { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .route-grid, .download-grid, .institution-grid { grid-template-columns: repeat(2, 1fr); }
  .three-layer { grid-template-columns: 1fr; }
  .record-card__head { grid-template-columns: 1fr; }
  .status-pill { max-width: none; justify-self: start; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 68px; }
  .brand { min-width: 0; }
  .brand span { display: none; }
  .primary-nav { top: 68px; }
  .hero-inner { padding: 3.4rem 1rem 3rem; }
  .container { padding: 2rem 1rem; }
  .stats, .route-grid, .download-grid, .institution-grid, .method-grid, .footer-inner { grid-template-columns: 1fr; }
  .stats { margin-top: -1rem; }
  .search-panel { top: 78px; }
  .record-card { padding: 1rem; }
  .card-actions .button, .hero-actions .button { width: 100%; }
  .scope-filter .button { flex: 1; min-width: 0; }
  .archive-paths { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .search-panel, .card-actions, .hero-art, .site-footer { display: none !important; }
  body { background: #fff; }
  .record-card { box-shadow: none; break-inside: avoid; }
}
