/* Content-bank pages.
   Static HTML documents that reuse the SPA's design tokens from styles.css.
   Everything here is layout for long-form reference content — the tokens,
   buttons, .shell, .section, .h-* and .kicker classes all come from
   styles.css so the two surfaces stay visually identical. */

body { background: var(--bg); color: var(--text); font-family: var(--font-body); }

/* ---------- header / footer (static equivalents of the React Nav/Footer) --- */

.nav { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 40; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans);
  font-weight: 600; letter-spacing: -0.02em; color: var(--text); text-decoration: none; font-size: 17px; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
@media (max-width: 900px) { .nav-links { display: none; } }

.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-sunk); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
.foot-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); margin: 0 0 12px; font-weight: 600; }
.foot-col a { display: block; font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; }
.foot-col a:hover { color: var(--text); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-faint); }
.foot-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-badges a { color: var(--text-faint); }

/* ---------- page head ----------------------------------------------------- */

.page-head { border-top: 0; padding-top: 56px; padding-bottom: 8px; }
.crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumb-sep { margin: 0 8px; opacity: 0.5; }
.page-head .h-hero { max-width: 760px; margin-bottom: 20px; }
.page-head .h-sub { max-width: 680px; }
.page-meta { margin-top: 20px; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

/* ---------- long-form body ------------------------------------------------ */

.section p { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin: 0 0 18px; max-width: 680px; }
.section p strong { color: var(--text); font-weight: 600; }
.section ul, .section ol { margin: 0 0 20px; padding-left: 22px; max-width: 680px; }
.section li { font-size: 16px; line-height: 1.7; color: var(--text-muted); margin-bottom: 10px; }
.section li strong { color: var(--text); font-weight: 600; }
.section h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; letter-spacing: -0.01em; }
.section a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.section a:hover { border-bottom-color: currentColor; }
.section code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-sunk);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

/* ---------- the unique data asset every page must carry ------------------- */

.data-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-elevated); font-size: 14px; }
.data-table caption { caption-side: top; text-align: left; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint);
  padding-bottom: 10px; font-weight: 600; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.data-table thead th { background: var(--bg-sunk); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 500; color: var(--text); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yes { color: var(--success); font-weight: 600; }
.no  { color: var(--danger); font-weight: 600; }
.partial { color: var(--text-muted); font-weight: 600; }

.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--bg-sunk); border-radius: var(--radius); padding: 18px 20px;
  margin: 4px 0 22px; max-width: 680px; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--danger); }

/* ---------- FAQ ----------------------------------------------------------- */

.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; max-width: 680px; }
.faq-item summary { cursor: pointer; font-size: 16px; font-weight: 500; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-faint); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-a { padding: 0 0 18px; }
.faq-a p { margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- related + CTA ------------------------------------------------- */

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rel-card { display: block; padding: 16px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-elevated); font-size: 14px;
  color: var(--text) !important; text-decoration: none; }
.rel-card:hover { border-color: var(--border-strong); background: var(--bg-sunk); }

.cta-band { background: var(--bg-sunk); }
.cta-sub { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 660px; margin-bottom: 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- index / directory pages -------------------------------------- */

.idx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 40px; }
.idx-card { display: block; padding: 18px 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-elevated); text-decoration: none; }
.idx-card:hover { border-color: var(--border-strong); background: var(--bg-sunk); }
.idx-card .idx-t { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; display: block; }
.idx-card .idx-d { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.idx-group { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); font-weight: 600; margin: 36px 0 14px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
