/* =============================================================
   GeoMapGuide — Design tokens
   Palette: Ink Navy / Parchment paper / Highway Gold / Trail Green / Route Red
   Type: Oswald (display, signage) + Source Serif 4 (body, atlas) + JetBrains Mono (data)
   ============================================================= */
:root{
  --ink:        #14161C;
  --navy:       #1B2A4A;
  --navy-light: #2C4270;
  --paper:      #E8E2D0;
  --paper-light:#F2EEE1;
  --white:      #FDFCF8;
  --gold:       #C89B3C;
  --gold-light: #E0BE6E;
  --green:      #3F6B4A;
  --red:        #B33A2E;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body:    "Source Serif 4", Georgia, serif;
  --font-mono:    "JetBrains Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 4px;
  --nav-height: 76px;

  --shadow-sm: 0 1px 2px rgba(20,22,28,0.08);
  --shadow-md: 0 8px 24px rgba(20,22,28,0.14);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper-light);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  text-transform:uppercase;
  letter-spacing:0.02em;
  color:var(--navy);
  margin:0 0 0.5em;
  line-height:1.15;
}
p{ margin:0 0 1em; }
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 24px; }
:focus-visible{ outline:3px solid var(--red); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* skip link — accessibility + perceived performance */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy); color:var(--white);
  padding:12px 20px; z-index:200; font-family:var(--font-display); letter-spacing:0.05em;
}
.skip-link:focus{ left:12px; top:12px; }

/* =============================================================
   Top Navigation
   ============================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--navy);
  border-bottom:3px solid var(--gold);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:var(--nav-height);
}
.nav-brand{
  display:flex; align-items:center; gap:12px;
  color:var(--white);
  font-family:var(--font-display);
  font-size:1.3rem;
  letter-spacing:0.03em;
}
.nav-brand img{ width:42px; height:42px; }
.nav-brand .brand-sub{
  display:block; font-family:var(--font-mono); font-size:0.6rem;
  letter-spacing:0.18em; color:var(--gold-light); text-transform:uppercase;
}

.nav-links{
  display:flex; align-items:center; gap:2px;
}
.nav-links a{
  display:inline-block;
  padding:10px 16px;
  color:var(--paper-light);
  font-family:var(--font-display);
  font-size:0.92rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  border-bottom:3px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"]{
  color:var(--gold-light);
  border-bottom-color:var(--gold);
}

.nav-cta{
  margin-left:8px;
  background:var(--red);
  color:var(--white) !important;
  padding:10px 18px !important;
  border-radius:var(--radius);
  border-bottom:none !important;
}
.nav-cta:hover{ background:#9c3226; }

/* Dropdown submenu (desktop: hover/focus + click toggle; mobile: accordion) */
.nav-item{ position:relative; display:flex; align-items:stretch; }
.nav-item > a{ padding-right:6px; }
.dropdown-toggle{
  background:transparent; border:none; color:var(--paper-light); cursor:pointer;
  padding:0 10px; display:flex; align-items:center; justify-content:center;
}
.dropdown-toggle svg{ width:11px; height:11px; fill:var(--gold-light); transition:transform .18s ease; }
.dropdown-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }

.dropdown-menu{
  list-style:none; margin:0; padding:10px 0;
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-md);
  min-width:240px;
}
.dropdown-menu a{
  display:block; padding:10px 20px; font-family:var(--font-body); font-size:0.92rem;
  text-transform:none; letter-spacing:normal; color:var(--ink); border-bottom:none;
}
.dropdown-menu a:hover, .dropdown-menu a:focus-visible{ background:var(--paper-light); color:var(--navy); border-bottom:none; }

@media (min-width:901px){
  .dropdown-menu{
    position:absolute; top:100%; left:0; z-index:50;
    opacity:0; visibility:hidden; transform:translateY(-6px);
    transition:opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu,
  .dropdown-menu.is-open{
    opacity:1; visibility:visible; transform:translateY(0);
  }
}
@media (max-width:900px){
  .nav-item{ flex-direction:column; align-items:stretch; }
  .dropdown-toggle{ position:absolute; right:0; top:0; height:100%; padding:0 14px; }
  .dropdown-menu{
    display:none; box-shadow:none; background:rgba(0,0,0,0.15); border-radius:0;
    padding:0 0 6px 16px;
  }
  .dropdown-menu.is-open{ display:block; }
  .dropdown-menu a{ color:var(--paper-light); padding:10px 4px; font-size:0.95rem; }
  .dropdown-menu a:hover, .dropdown-menu a:focus-visible{ background:transparent; color:var(--gold-light); }
}

/* Search widget */
.nav-search{ position:relative; display:flex; align-items:center; margin-left:6px; }
.search-toggle{
  width:40px; height:40px; border:2px solid var(--gold); background:transparent;
  border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer;
  flex-shrink:0;
}
.search-toggle svg{ width:17px; height:17px; fill:var(--gold-light); }
.search-toggle:hover{ background:rgba(200,155,60,0.15); }

.search-form{
  position:absolute; top:calc(100% + 12px); right:0; z-index:60;
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-md);
  padding:10px; display:flex; flex-direction:column; gap:8px; width:320px;
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.search-form.is-open{ opacity:1; visibility:visible; transform:translateY(0); }
.search-form-row{ display:flex; gap:6px; }
.search-form input[type="search"]{
  flex:1; border:1px solid rgba(20,22,28,0.2); border-radius:var(--radius);
  padding:9px 12px; font-family:var(--font-body); font-size:0.92rem; min-width:0;
}
.search-form input[type="search"]:focus{ outline:3px solid var(--gold); outline-offset:1px; }
.search-form button[type="submit"]{
  background:var(--navy); border:none; border-radius:var(--radius); width:40px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.search-form button[type="submit"] svg{ width:15px; height:15px; fill:var(--white); }
.search-form button[type="submit"]:hover{ background:var(--navy-light); }

.search-results-list{
  max-height:280px; overflow-y:auto;
}
.search-results-list:not(:empty){ border-top:1px solid rgba(20,22,28,0.1); padding-top:8px; }
.search-results-list a{
  display:block; padding:8px 6px; border-radius:var(--radius);
  font-family:var(--font-body); font-size:0.85rem; color:var(--navy); border-bottom:none;
}
.search-results-list a:hover, .search-results-list a.is-active{ background:var(--paper-light); }
.search-results-list .result-cat{
  font-family:var(--font-mono); font-size:0.62rem; text-transform:uppercase;
  letter-spacing:0.06em; color:var(--green); display:block; margin-bottom:1px;
}
.search-results-list .result-empty{ padding:8px 6px; font-size:0.82rem; color:#7a7d85; font-family:var(--font-body); }

@media (max-width:900px){
  .search-form{
    position:fixed; top:var(--nav-height); left:0; right:0; width:auto;
    border-radius:0; padding:16px 20px; box-shadow:var(--shadow-sm);
    max-height:calc(100vh - var(--nav-height)); overflow-y:auto;
  }
}

/* Search results page (search-results.html) */
.search-page-form{ display:flex; gap:10px; max-width:560px; margin-bottom:36px; }
.search-page-form input[type="search"]{
  flex:1; border:1px solid rgba(20,22,28,0.2); border-radius:var(--radius);
  padding:12px 16px; font-family:var(--font-body); font-size:1rem;
}
.search-page-form input[type="search"]:focus{ outline:3px solid var(--gold); outline-offset:1px; }
.search-page-form button{
  background:var(--navy); color:var(--white); border:none; border-radius:var(--radius);
  padding:0 22px; font-family:var(--font-display); text-transform:uppercase; letter-spacing:0.03em;
  cursor:pointer;
}
.search-page-form button:hover{ background:var(--navy-light); }
.search-result-card{
  display:block; background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-sm);
  padding:18px 22px; margin-bottom:14px; transition:transform .15s ease, box-shadow .15s ease;
}
.search-result-card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.search-result-card .result-cat{
  font-family:var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--green);
}
.search-result-card h3{ margin:6px 0 6px; font-size:1.1rem; }
.search-result-card p{ margin:0; color:#4b4e57; font-size:0.92rem; }
.search-no-results{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-sm);
  padding:32px; text-align:center; color:#4b4e57;
}

.hamburger{
  display:none;
  width:44px; height:44px;
  background:transparent; border:2px solid var(--gold);
  border-radius:var(--radius);
  position:relative; cursor:pointer;
}
.hamburger span{
  position:absolute; left:10px; right:10px; height:2px; background:var(--gold-light);
  transition:transform .2s ease, opacity .2s ease;
}
.hamburger span:nth-child(1){ top:14px; }
.hamburger span:nth-child(2){ top:21px; }
.hamburger span:nth-child(3){ top:28px; }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:900px){
  .nav-links{
    position:fixed; inset:var(--nav-height) 0 0 0;
    background:var(--navy);
    flex-direction:column; align-items:stretch;
    padding:12px 20px 32px;
    gap:0;
    transform:translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease, transform .2s ease, visibility .2s;
    overflow-y:auto;
  }
  .nav-links.is-open{
    transform:translateY(0); opacity:1; visibility:visible;
  }
  .nav-links a{
    padding:16px 4px; border-bottom:1px solid rgba(245,240,225,0.12);
    font-size:1.05rem;
  }
  .nav-cta{ margin:16px 4px 0; text-align:center; }
  .hamburger{ display:block; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero{
  background:var(--navy);
  color:var(--paper-light);
  position:relative;
  overflow:hidden;
}
.hero .container{
  display:grid; grid-template-columns:1.05fr 0.95fr; align-items:center; gap:48px;
  padding-top:72px; padding-bottom:72px;
}
.hero-eyebrow{
  font-family:var(--font-mono); text-transform:uppercase; letter-spacing:0.22em;
  color:var(--gold-light); font-size:0.75rem; margin-bottom:18px;
}
.hero h1{
  color:var(--white);
  font-size:clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom:0.4em;
}
.hero h1 em{ color:var(--gold-light); font-style:normal; }
.hero-lede{
  font-size:1.08rem; max-width:46ch; color:var(--paper);
}
.hero-actions{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.btn{
  font-family:var(--font-display); text-transform:uppercase; letter-spacing:0.04em;
  font-size:0.92rem; padding:14px 26px; border-radius:var(--radius);
  border:2px solid transparent; cursor:pointer; display:inline-block;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--gold); color:var(--navy); }
.btn-primary:hover{ background:var(--gold-light); }
.btn-outline{ background:transparent; border-color:var(--paper); color:var(--paper-light); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-light); }

.hero-stats{ display:flex; gap:28px; margin-top:36px; flex-wrap:wrap; }
.hero-stats div{ font-family:var(--font-mono); }
.hero-stats strong{ display:block; font-size:1.6rem; color:var(--gold-light); }
.hero-stats span{ font-size:0.72rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--paper); }

.hero-visual{ position:relative; }
.hero-visual img{ width:100%; height:auto; filter:drop-shadow(var(--shadow-md)); }

@media (max-width:900px){
  .hero .container{ grid-template-columns:1fr; padding-top:44px; padding-bottom:44px; }
  .hero-visual{ order:-1; max-width:420px; margin:0 auto; }
}

/* =============================================================
   Section shell
   ============================================================= */
.section{ padding:76px 0; }
.section-alt{ background:var(--paper); }
.section-navy{ background:var(--navy); color:var(--paper-light); }
.section-navy h2{ color:var(--white); }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head .eyebrow{
  font-family:var(--font-mono); text-transform:uppercase; letter-spacing:0.2em;
  font-size:0.72rem; color:var(--red);
}
.section-navy .section-head .eyebrow{ color:var(--gold-light); }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }
.section-head p{ color:#4b4e57; }
.section-navy .section-head p{ color:var(--paper); }

/* =============================================================
   Region / card grid
   ============================================================= */
.grid{ display:grid; gap:26px; }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:960px){ .grid-4{ grid-template-columns:repeat(2,1fr);} .grid-3{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .grid-4, .grid-3{ grid-template-columns:1fr; } }

.card{
  background:var(--white);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.card img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.card-body{ padding:20px 22px 24px; flex:1; display:flex; flex-direction:column; }
.card-tag{
  font-family:var(--font-mono); font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--green); margin-bottom:8px;
}
.card h3{ font-size:1.15rem; margin-bottom:8px; }
.card p{ color:#4b4e57; font-size:0.95rem; flex:1; }
.card-link{
  margin-top:12px; font-family:var(--font-display); font-size:0.82rem; letter-spacing:0.04em;
  text-transform:uppercase; color:var(--navy); border-bottom:2px solid var(--gold);
  align-self:flex-start; padding-bottom:2px;
}

/* Route / stat strip (signature element) */
.route-strip{ position:relative; padding:64px 0; }
.route-line{
  position:relative; height:2px; background:repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  margin:56px 0 0;
}
.route-points{ display:flex; justify-content:space-between; margin-top:-13px; }
.route-point{ text-align:center; width:120px; }
.route-marker{
  width:26px; height:26px; border-radius:50%; background:var(--navy); border:3px solid var(--gold);
  margin:0 auto 12px;
}
.route-point strong{ display:block; font-family:var(--font-display); text-transform:uppercase; font-size:0.85rem; color:var(--navy); }
.route-point span{ font-family:var(--font-mono); font-size:0.72rem; color:var(--green); }
@media (max-width:700px){
  .route-line{ display:none; }
  .route-points{ flex-direction:column; gap:22px; }
  .route-point{ width:auto; display:flex; align-items:center; gap:14px; text-align:left; }
  .route-marker{ margin:0; flex-shrink:0; }
}

/* Two-column feature */
.feature{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.feature img{ border-radius:var(--radius); box-shadow:var(--shadow-md); }
.feature-list li{
  display:flex; gap:12px; padding:12px 0; border-top:1px solid rgba(20,22,28,0.08);
}
.feature-list li:first-child{ border-top:none; }
.feature-list .mark{ color:var(--gold); font-family:var(--font-mono); font-weight:700; }
@media (max-width:860px){ .feature{ grid-template-columns:1fr; } }

/* CTA banner */
.cta-banner{
  background:var(--red); color:var(--white); text-align:center; padding:56px 24px; border-radius:var(--radius);
}
.cta-banner h2{ color:var(--white); }
.cta-banner p{ color:var(--paper-light); max-width:52ch; margin-left:auto; margin-right:auto; }

/* Breadcrumb (interlinking demo) */
.breadcrumb{
  font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.04em; color:var(--navy-light);
  padding:16px 0; border-bottom:1px solid rgba(20,22,28,0.08);
}
.breadcrumb a{ color:var(--green); }
.breadcrumb a:hover{ text-decoration:underline; }
.breadcrumb .sep{ margin:0 6px; opacity:0.5; }

/* Related links block (interlinking demo) */
.related{ border-top:1px solid rgba(20,22,28,0.1); padding-top:28px; margin-top:12px; }
.related ul{ display:flex; flex-wrap:wrap; gap:10px; }
.related a{
  display:inline-block; padding:9px 16px; background:var(--paper); border-radius:999px;
  font-family:var(--font-display); font-size:0.82rem; text-transform:uppercase; letter-spacing:0.03em;
  color:var(--navy);
}
.related a:hover{ background:var(--gold); }

/* =============================================================
   Footer
   ============================================================= */
.site-footer{ background:var(--navy); color:var(--paper); padding-top:64px; }
.footer-top{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:48px;
  border-bottom:1px solid rgba(245,240,225,0.14);
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-brand img{ width:38px; height:38px; }
.footer-brand span{ font-family:var(--font-display); font-size:1.15rem; color:var(--white); letter-spacing:0.03em; }
.footer-col h4{ color:var(--gold-light); font-size:0.85rem; letter-spacing:0.08em; margin-bottom:16px; }
.footer-col li{ margin-bottom:10px; }
.footer-col a{ color:var(--paper); font-size:0.92rem; }
.footer-col a:hover{ color:var(--gold-light); }
.footer-desc{ max-width:34ch; font-size:0.92rem; color:var(--paper); }

.social-row{ display:flex; gap:10px; margin-top:20px; }
.social-row a{
  width:38px; height:38px; border:1px solid rgba(245,240,225,0.3); border-radius:50%;
  display:flex; align-items:center; justify-content:center; transition:background .15s ease, border-color .15s ease;
}
.social-row a:hover{ background:var(--gold); border-color:var(--gold); }
.social-row svg{ width:17px; height:17px; fill:var(--paper-light); }
.social-row a:hover svg{ fill:var(--navy); }

.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  padding:22px 0; font-family:var(--font-mono); font-size:0.75rem; color:rgba(245,240,225,0.65);
}
.footer-bottom a{ color:rgba(245,240,225,0.75); }
.footer-bottom a:hover{ color:var(--gold-light); }
.footer-legal{ display:flex; gap:18px; flex-wrap:wrap; }

@media (max-width:860px){
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .footer-top{ grid-template-columns:1fr; }
}

/* =============================================================
   Reference / geo pages (country, state, county templates)
   ============================================================= */
.ref-header{ padding:36px 0 0; }
.ref-header h1{
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom:14px;
}
.ref-byline{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  font-family:var(--font-mono); font-size:0.78rem; color:var(--navy-light);
  padding-bottom:16px; border-bottom:1px solid rgba(20,22,28,0.1); margin-bottom:20px;
}
.ref-byline .author{ color:var(--green); font-weight:600; }
.ref-byline .dot{ opacity:0.5; }
.ref-summary{
  font-size:1.08rem; color:var(--ink); max-width:80ch; margin-bottom:28px;
}

/* Ad slots — clearly labeled placeholders */
.ad-slot{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:repeating-linear-gradient(45deg, #f2eee4, #f2eee4 10px, #ece6d7 10px, #ece6d7 20px);
  border:1px dashed rgba(20,22,28,0.3);
  border-radius:var(--radius);
  color:#7a7d85;
  margin:0 auto;
}
.ad-slot span{ font-family:var(--font-mono); font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase; }
.ad-slot small{ font-family:var(--font-mono); font-size:0.62rem; opacity:0.7; margin-top:4px; }
.ad-leaderboard{ width:100%; max-width:728px; height:90px; margin-bottom:36px; }
.ad-rectangle{ width:350px; height:250px; flex-shrink:0; }

/* Map frame — capped at 1000px per spec */
.map-frame{
  max-width:1000px; margin:0 auto 40px; background:var(--navy);
  border:1px solid rgba(200,155,60,0.4); border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow-md);
}
.map-frame img{ width:100%; height:auto; display:block; }
.map-frame-caption{
  text-align:center; font-family:var(--font-mono); font-size:0.72rem;
  color:var(--paper); letter-spacing:0.05em; margin-top:12px; opacity:0.85;
}

/* Facts + ad + content layout */
.facts-layout{ display:grid; grid-template-columns:1fr 350px; gap:32px; align-items:start; margin-bottom:48px; }
@media (max-width:900px){ .facts-layout{ grid-template-columns:1fr; } .ad-rectangle{ margin:0 auto; } }

.facts-panel{ background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; }
.facts-panel h2{ background:var(--navy); color:var(--white); font-size:1rem; padding:14px 20px; margin:0; }
.facts-panel dl{ margin:0; padding:6px 20px; }
.facts-panel .fact-row{
  display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-top:1px solid rgba(20,22,28,0.08);
}
.facts-panel .fact-row:first-child{ border-top:none; }
.facts-panel dt{ font-family:var(--font-display); text-transform:uppercase; font-size:0.82rem; color:var(--navy-light); }
.facts-panel dd{ margin:0; font-family:var(--font-mono); font-size:0.88rem; text-align:right; color:var(--ink); }

.ref-body p{ max-width:78ch; }

/* Link widget */
.link-widget{ background:var(--paper); border-radius:var(--radius); padding:22px 24px; margin-top:24px; }
.link-widget h3{ font-size:1rem; margin-bottom:14px; }
.link-widget ul{ display:flex; flex-direction:column; gap:8px; }
.link-widget a{
  font-family:var(--font-body); font-size:0.92rem; color:var(--navy-light);
  border-bottom:1px dotted rgba(27,42,74,0.3); padding-bottom:4px; display:inline-block;
}
.link-widget a:hover{ color:var(--red); border-color:var(--red); }

/* Tableizer-style data table (scrollable on small screens) */
.scrollTable{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin-bottom:16px; border-radius:var(--radius); }
table.tableizer-table{
  border-collapse:collapse; width:100%; font-size:0.92rem; background:var(--white);
  min-width:640px;
}
table.tableizer-table th{
  background:var(--navy); color:var(--white); font-family:var(--font-display);
  text-transform:uppercase; letter-spacing:0.03em; font-size:0.78rem;
  text-align:left; padding:12px 14px; border:1px solid var(--navy-light);
  position:sticky; top:0;
}
table.tableizer-table td{
  padding:11px 14px; border:1px solid rgba(20,22,28,0.1); color:var(--ink);
}
table.tableizer-table tbody tr:nth-child(even){ background:var(--paper-light); }
table.tableizer-table tbody tr:hover{ background:#f0e6c8; }
table.tableizer-table a{ color:var(--navy); text-decoration:underline; text-decoration-color:var(--gold); text-decoration-thickness:1.5px; }
table.tableizer-table a:hover{ color:var(--red); }
.table-note{ font-family:var(--font-mono); font-size:0.72rem; color:#7a7d85; margin-top:-6px; margin-bottom:32px; }

.ref-section-title{
  margin-top:48px; padding-bottom:10px; border-bottom:3px solid var(--gold);
}
.ref-subhead{ font-family:var(--font-display); text-transform:uppercase; font-size:1.15rem; color:var(--navy); margin:28px 0 12px; }

/* Utility */
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.mt-0{ margin-top:0; }
