/* NLM Dark Register — Shared Stylesheet
   Extracted 2026-05-19 from crisis.html canonical inline <style>.

   v1.2 — 2026-05-19 19:54 ET: Inter font on h1/h2/h3 for consistency with
   polish-wired pages per Consul directive. Body stays monospace (research-
   tool register); headers go Inter (matches polish-page header rendering).
   Brand anchor (NLM red) preserved.

   Pages on this register: 16 dark-register pages. map.html excluded —
   build_map.py generates its own structure.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0A0A0A;
  color: #D4D4D4;
  font-family: 'Consolas', 'SF Mono', 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  padding: 32px 48px;
  padding-top: 80px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;  /* v1.11 2026-05-19: prevent wide children from
     triggering mobile zoom-out (was making text/nav render smaller on
     pages with wide tables/bill-text). */
}

a {
  color: #6B9BD2;
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 155, 210, 0.3);
}
a:hover {
  color: #93C5FD;
  border-bottom-color: rgba(147, 197, 253, 0.5);
}

strong { color: #FAFAFA; }

/* v1.2: Headers use Inter for cross-register consistency with polish pages.
   v1.4 (2026-05-19 20:03 ET): line-heights tightened to match polish CSS
   values — 07-model-legislation's h1 underline rendered higher because
   polish CSS line-height: 1.15 was leaking through (OG inline didn't
   override line-height on h1/h2/h3). Per Consul directive "make all pages
   like the legislation page," dark CSS now uses same tight line-heights. */
h1, h2, h3 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

h1 {
  color: #FAFAFA;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 3px;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
  margin: 16px 0 8px 0 !important;  /* v1.18 2026-05-19: 16px top
     margin for breathing room between nav border and h1 text; matches
     map.html .section-title spacing; !important overrides per-page inline. */
}
h2 {
  color: #E5E5E5;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 1px;
  margin: 28px 0 6px 0;
  border-bottom: 1px solid #222;
  padding-bottom: 4px;
}
h3 {
  color: #E5E5E5;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 1px;
  margin: 20px 0 6px 0;
  text-transform: uppercase;
}

.page-intro {
  color: #A3A3A3;
  margin-bottom: 32px;
  line-height: 1.8;
}

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #0A0A0A;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 48px;
}
/* v1.2 (2026-05-19 19:57 ET): Inter on nav for cross-register consistency.
   OG inline didn't override font-family on .nav-title or .nav-links a, so
   polish CSS was leaking Inter on polish-wired pages and Consolas was
   inheriting on dark pages — visible inconsistency. Force Inter
   everywhere via dark CSS. */
.site-nav .nav-title {
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  margin-right: auto;
  white-space: nowrap;
}
.site-nav .nav-title:hover { color: #fff; }

.nav-links { display: flex; gap: 0; }
.nav-links a {
  color: #737373;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 14px 14px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover {
  color: #FAFAFA;
  border-bottom-color: #DC2626;
}
.nav-links a.active {
  color: #FAFAFA;
  border-bottom-color: #DC2626;
}

.nav-search { margin-left: 14px; flex-shrink: 0; }
.nav-search input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #333;
  border-radius: 4px;  /* v1.10: rounded edges for consistency across pages */
  color: #D4D4D4;
  font-family: inherit;
  font-size: 10px;
  padding: 5px 10px;
  width: 140px;
  outline: none;
  letter-spacing: 1px;
}
.nav-search input::placeholder { color: #525252; }
.nav-search input:focus { border-color: #6B9BD2; }

.nav-search-toggle {
  display: none;
  background: none;
  border: 1px solid #333;
  color: #737373;
  cursor: pointer;
  padding: 0;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-search-toggle:hover {
  color: #FAFAFA;
  border-color: #6B9BD2;
}

.stat-row {
  display: flex;
  gap: 16px;
  margin: 12px 0 20px 0;
  flex-wrap: wrap;
}
.stat-box {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #222;
  min-width: 120px;
  flex: 1;
}
.stat-num {
  color: #DC2626;
  font-size: 18px;
  font-weight: 700;
}
.stat-num.green { color: #059669; }
.stat-num.amber { color: #D97706; }
.stat-num.blue  { color: #3B82F6; }
.stat-label {
  color: #737373;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.finding-box {
  margin: 12px 0;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid #DC2626;
  color: #E5E5E5;
  font-weight: 400;
}
.finding-box.amber {
  background: rgba(217, 119, 6, 0.08);
  border-left-color: #D97706;
}
.finding-box.blue {
  background: rgba(59, 130, 246, 0.08);
  border-left-color: #3B82F6;
}
.finding-box.green {
  background: rgba(5, 150, 105, 0.08);
  border-left-color: #059669;
}

.doc-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #222;
  padding: 24px;
  margin: 24px 0;
}
.doc-card h2 { margin-top: 0; }
.doc-link {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 32px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid #DC2626;
  color: #FAFAFA;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.doc-link:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #FAFAFA;
  border-color: #DC2626;
}

.footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #222;
  color: #525252;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

/* v1.8 (2026-05-19 21:10 ET): Intermediate breakpoint for narrower
   desktop windows (769-1099px). Nav-links can overflow horizontally
   when fixed-height 48px nav can't fit them all. Allow wrap + grow
   vertically; bump body padding-top to accommodate. */
@media (max-width: 1099px) and (min-width: 769px) {
  .site-nav {
    height: auto;
    min-height: 48px;
    flex-wrap: wrap;
    padding: 4px 24px;
  }
  .nav-links {
    flex-wrap: wrap;
  }
  body {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 16px;
    font-size: 14px;
    max-width: 100%;
  }
  .site-nav {
    padding: 0 12px;
    height: auto;
    flex-wrap: wrap;
    position: relative;
  }
  .site-nav .nav-title {
    padding: 10px 0;
    width: 100%;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* v1.13 2026-05-19: REVERTED v1.12 horizontal-scroll experiment. Back
     to wrap behavior — all pages should look identical now that polish
     CSS is unwired (v1.10) and shared dark CSS is the only source. */
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-links a {
    padding: 8px 8px;
    font-size: 9px;
    letter-spacing: 1px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav-search {
    display: none;
    width: 100%;
    margin: 0 0 8px 0;
    order: 99;
  }
  .nav-search.open { display: block; }
  .nav-search input {
    width: 100%;
    min-height: 36px;
    font-size: 14px;
  }
  .nav-search-toggle {
    display: flex;
    position: absolute;
    top: 6px;
    right: 12px;
  }
  h1 {
    font-size: 15px;
    letter-spacing: 2px;
    margin-top: 16px;
  }
  .stat-row { gap: 8px; }
  .stat-box {
    min-width: 90px;
    flex-basis: calc(50% - 8px);
  }
  .stat-num { font-size: 16px; }
}
@media (max-width: 480px) {
  body { padding: 12px; }
  .stat-box {
    min-width: 80px;
    flex-basis: calc(50% - 6px);
    padding: 8px 10px;
  }
  .stat-num { font-size: 15px; }
  .stat-label { font-size: 9px; }
  .doc-card { padding: 16px; }
  .doc-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
  }
  .finding-box {
    padding: 10px 12px;
    word-break: break-word;
  }
  .page-intro { word-break: break-word; }
}
