:root {
  --page: #f2f2f2;
  --surface: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #43454b;
  --heading: #25272b;
  --muted: #71757d;
  --gold: #f0b849;
  --gold-hover: #e6a93a;
  --gold-dark: #a16207;
  --success: #287a50;
  --warning: #9a6700;
  --danger: #b42318;
  --radius-panel: 8px;
  --radius-control: 4px;
  --shadow-panel: 0 1px 2px rgb(37 39 43 / 0.04), 0 4px 12px rgb(37 39 43 / 0.03);
}

* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: 'Geist Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: rgb(240 184 73 / 0.35); }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(240 184 73 / 0.22);
}
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace; }
.shell { width: min(100% - 64px, 980px); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { position: relative; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { color: var(--heading); font-size: 18px; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--gold-dark); }
.nav-toggle { display: none; width: 44px; min-height: 44px; padding: 0; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--heading); cursor: pointer; }
.nav-toggle:hover { border-color: var(--gold-dark); }
.menu-glyph { display: block; fill: currentColor; overflow: visible; }
.menu-glyph path { transform-box: fill-box; transform-origin: center; transition: opacity 180ms ease, transform 180ms cubic-bezier(.2,.8,.2,1); }
.menu-glyph-close { opacity: 0; transform: rotate(-45deg) scale(.78); }
.nav-toggle[aria-expanded="true"] .menu-glyph-menu { opacity: 0; transform: rotate(45deg) scale(.78); }
.nav-toggle[aria-expanded="true"] .menu-glyph-close { opacity: 1; transform: rotate(0) scale(1); }
.topnav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
.topnav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--heading); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.topnav a[aria-current="page"] { font-weight: 700; }
main { padding: 56px 0 56px; }
h1, h2, h3 { color: var(--heading); letter-spacing: -0.035em; line-height: 1.12; }
h1 { max-width: 680px; margin: 0 0 16px; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
h2 { margin: 30px 0 6px; font-size: 20px; }
h3 { margin: 0 0 8px; font-size: 16px; }
p, li, dd { max-width: 70ch; }
.lede { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.cta, .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-control);
  background: var(--gold);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}
.cta:hover, .button-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--heading); }
.card {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.card ol, .card ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.card li + li { margin-top: 0; }
.faq dt { margin-top: 12px; color: var(--heading); font-weight: 700; }
.faq dd { margin: 2px 0 0; }
footer { padding: 8px 0 36px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; border-top: 1px solid var(--line); background: var(--surface); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 10px; }
.footer-nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-nav a:hover { color: var(--heading); text-decoration: underline; }
footer .shell > div:nth-child(2) a { color: var(--gold-dark); }
.footer-health { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--success); }
.health-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--success); }
.directory-intro { display: grid; gap: 16px; }
.directory-tools { display: flex; align-items: end; gap: 8px; margin: 24px 0 12px; }
.directory-tools label { display: grid; gap: 6px; flex: 1; color: var(--heading); font-weight: 700; font-size: 14px; }
.directory-tools input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--heading); font: inherit; font-size: 13px; }
.directory-tools input:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgb(240 184 73 / 0.22); }
.clear-filter { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.clear-filter:hover { background: #fafafa; border-color: #9ca3af; }
.directory-status { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; list-style: none; }
.source-item { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-control); border-top: 3px solid var(--gold); background: var(--surface); font-size: 14px; overflow-wrap: anywhere; }
.source-item[hidden] { display: none; }
.alpha-index { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 16px 0 4px; }
.alpha-index a { min-width: 32px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); color: var(--heading); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.alpha-index a:hover { border-color: var(--gold-dark); }
.alpha-group { margin-top: 20px; }
.alpha-group h2 { font-size: 20px; }
.alpha-group[hidden] { display: none; }
.no-results { margin: 12px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: #fafafa; color: var(--muted); }
@media (max-width: 719px) {
  .shell { width: min(100% - 40px, 980px); }
  .topbar-inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .topnav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-panel); }
  .topnav-open { display: flex; }
  .topnav a { width: 100%; padding: 0 12px; border-radius: var(--radius-control); }
  .topnav a:hover, .topnav a[aria-current="page"] { background: #fafafa; text-decoration: none; }
  main { padding: 40px 0 40px; }
  h1 { font-size: 34px; line-height: 1.12; }
  .card { padding: 18px; }
  .source-grid { grid-template-columns: 1fr; }
  .directory-tools { align-items: stretch; flex-direction: column; }
  .clear-filter { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .menu-glyph path { transition: none; } }
