/* IDIDATOKE design system
   Bay blues, logo tans and browns. System fonts only (no remote assets). */

:root {
  --bay-ink: #072033;
  --bay: #0c4a6e;
  --bay-deep: #083552;
  --bay-bright: #1a6f9a;
  --foam: #e7f2f8;
  --tan-50: #fffdf9;
  --tan-100: #fbf6ee;
  --tan-200: #f4ead6;
  --tan-300: #e8d4a8;
  --tan-400: #c4924f;
  --tan-500: #e0a060;
  --brown-700: #704020;
  --brown-800: #5c3317;
  --brown-900: #3a2212;
  --ink: #1c1612;
  --ink-soft: #3f342c;
  --muted: #4a4038;
  --line: #e4d8c6;
  --paper: #fffdf9;
  --deal: #0d5c40;
  --deal-soft: #e7f4ee;
  --danger: #8f1d1d;
  --danger-soft: #fdecec;
  --shadow: 0 16px 40px rgba(7, 32, 51, 0.22);
  --shadow-sm: 0 8px 22px rgba(7, 32, 51, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: 0.75rem;
  --step-1: 0.875rem;
  --step-2: 1rem;
  --step-3: 1.0625rem;
  --step-4: 1.25rem;
  --step-5: 1.5rem;
  --step-6: clamp(1.75rem, 4vw, 2.35rem);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --header-pad: 84px;
  --chrome: 76px;
  --focus-ring: 0 0 0 3px #072033, 0 0 0 6px #e0a060;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Average color of the Tutka Bay photo. State pages replace this with their own. */
  background-color: #637e9f;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-position: center 60%;
  background-size: cover;
  background-repeat: no-repeat;
  /* Tutka Bay sits on the solid color. A loaded photo fades in over 200ms.
     A cached photo is shown at once, with no fade. */
}
html.bg-pending:not(.bg-ready):not(.bg-cached)::before {
  opacity: 0;
}
html.bg-ready:not(.bg-cached)::before {
  opacity: 1;
  transition: opacity 200ms linear;
}
html.bg-cached::before {
  opacity: 1;
  transition: none;
}
@media (max-width: 359px) {
  html:not(:has(body.nation-home))::before {
    background-image: url("/.netlify/images?url=/img/ocean-1920.webp&w=640&fm=avif&q=50");
  }
}
@media (min-width: 360px) and (max-width: 899px) {
  html:not(:has(body.nation-home))::before {
    background-image: url("/.netlify/images?url=/img/ocean-1920.webp&w=828&fm=avif&q=50");
  }
}
@media (min-width: 900px) and (max-width: 1199px) {
  html:not(:has(body.nation-home))::before {
    background-image: url("/.netlify/images?url=/img/ocean-1920.webp&w=1080&fm=avif&q=50");
  }
}
@media (min-width: 1200px) {
  html:not(:has(body.nation-home))::before {
    background-image: url("/img/ocean-1920.webp?v=20261026a");
  }
}
/* The map covers the screen, so it does not download the wallpaper. */
html:has(body.map-page)::before {
  background-image: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--step-3);
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
}

img { border: 0; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid #e0a060;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--bay-ink);
}

/* Out of flow from the first paint. A static "Skip to content" line sits
   above the header and drops Change state until this rule arrives. */
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip:focus-visible {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 40000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--paper);
  color: var(--bay-ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

/* Header and nav */
.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(7, 32, 51, 0.96);
  border-bottom: 3px solid var(--tan-400);
  color: var(--tan-50);
}

.site-logo {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  border-radius: 12px;
}
.site-logo picture {
  display: block;
  width: max-content;
  max-width: 100%;
}
.site-logo img {
  display: block;
  height: 64px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.site-nav a {
  color: var(--tan-200);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover { background: rgba(255, 253, 249, 0.12); color: #fff; }
.site-nav a[aria-current="page"] {
  background: var(--tan-300);
  color: var(--brown-900);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--tan-300);
  background: var(--bay-ink);
  color: var(--tan-50);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle-bars {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--tan-50), var(--tan-50)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--tan-50), var(--tan-50)) 0 50% / 100% 2px no-repeat,
    linear-gradient(var(--tan-50), var(--tan-50)) 0 100% / 100% 2px no-repeat;
}

@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px 12px 14px;
    background: var(--bay-ink);
    border-bottom: 3px solid var(--tan-400);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    font-size: 1.05rem;
    padding: 12px 14px;
    min-height: 48px;
    border-radius: 12px;
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: rgba(7, 32, 51, 0.94);
  color: var(--tan-200);
  padding: 18px 20px 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 8px;
}
.footer-nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
/* Lock every state. A bare `a` color loses to the browser's blue :visited rule. */
.site-footer .footer-nav a:link,
.site-footer .footer-nav a:visited,
.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus,
.site-footer .footer-nav a:focus-visible,
.site-footer .footer-nav a:active {
  color: #fff;
  font-weight: 700;
  text-decoration-color: #fff;
}
.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus,
.site-footer .footer-nav a:focus-visible,
.site-footer .footer-nav a:active {
  text-decoration: underline;
}
.site-footer .credits {
  margin: 0;
  max-width: 75ch;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--tan-300);
}
.site-footer .credits a:link,
.site-footer .credits a:visited,
.site-footer .credits a:hover,
.site-footer .credits a:focus,
.site-footer .credits a:focus-visible,
.site-footer .credits a:active {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #fff;
}
.site-feedback {
  margin: 0 0 12px;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--tan-200);
}
/* Cream on the dark footer in every state, including :visited. Literal colors so a cached or variable-based rule cannot fall back to default blue. */
.site-footer .site-feedback a:link,
.site-footer .site-feedback a:visited,
.site-footer .site-feedback a:hover,
.site-footer .site-feedback a:focus,
.site-footer .site-feedback a:focus-visible,
.site-footer .site-feedback a:active {
  color: #fffdf9;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #fffdf9;
  text-underline-offset: 0.15em;
}
.copy-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  vertical-align: middle;
  position: relative;
  max-width: 100%;
}
.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 2px solid #e8d4a8;
  border-radius: 999px;
  background: transparent;
  color: #fffdf9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.site-footer .copy-email:link,
.site-footer .copy-email,
.site-footer .copy-email:visited,
.site-footer .copy-email:hover,
.site-footer .copy-email:focus,
.site-footer .copy-email:focus-visible,
.site-footer .copy-email:active {
  color: #fffdf9;
  background: transparent;
  border-color: #e8d4a8;
  text-decoration: none;
}
.site-footer .copy-email:hover,
.site-footer .copy-email:focus,
.site-footer .copy-email:focus-visible,
.site-footer .copy-email:active {
  color: #072033;
  background: #fffdf9;
  border-color: #fffdf9;
}
.copy-email-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #e8d4a8;
  border-radius: 999px;
  background: transparent;
  color: #fffdf9;
  text-decoration: none;
}
.site-footer .footer-social a:link,
.site-footer .footer-social a:visited,
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus,
.site-footer .footer-social a:focus-visible,
.site-footer .footer-social a:active {
  color: #fffdf9;
  text-decoration: none;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus,
.site-footer .footer-social a:focus-visible,
.site-footer .footer-social a:active {
  color: #072033;
  background: #fffdf9;
  border-color: #fffdf9;
}
.site-footer .footer-social a:focus-visible {
  outline: 3px solid #e0a060;
  outline-offset: 2px;
}
body.map-page .site-footer .footer-social {
  margin-top: 14px;
}

/* Homepage */
body.home .site-header {
  background: linear-gradient(180deg, rgba(7, 32, 51, 0.55), rgba(7, 32, 51, 0));
  border-bottom: 0;
  padding: 16px 18px 0;
  align-items: center;
}
body.home .site-logo {
  display: block;
  width: clamp(168px, 32vw, 240px);
  background: rgba(255, 253, 249, 0.94);
  padding: 8px 10px 6px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
body.home .site-logo picture {
  width: 100%;
}
@media (max-width: 859px) {
  .site-logo picture,
  body.home .site-logo picture {
    width: max-content;
    max-width: 100%;
  }
}
body.home .site-logo img {
  width: 100%;
  height: auto;
}
body.home .site-nav {
  background: rgba(7, 32, 51, 0.9);
  border: 1px solid rgba(232, 212, 168, 0.4);
  border-radius: 999px;
  padding: 4px;
}
@media (max-width: 859px) {
  body.home .site-nav {
    border-radius: 0;
    border: 0;
    border-bottom: 3px solid var(--tan-400);
    padding: 8px 12px 14px;
  }
}
body.home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 32, 51, 0.28) 0%, rgba(7, 32, 51, 0.05) 24%, rgba(7, 32, 51, 0.08) 62%, rgba(7, 32, 51, 0.45) 100%);
}

.hero {
  flex: 1;
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-copy {
  width: min(44rem, 100%);
  background: rgba(255, 253, 249, 0.96);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 253, 249, 0.7);
  padding: 26px 26px 20px;
  text-align: center;
}
.hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bay-ink);
}
.hero-copy p { margin: 0 auto 10px; max-width: var(--measure); }
.hero-copy .intro {
  text-align: left;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}
.hero-copy .updated { margin: 4px 0 0; color: var(--muted); font-size: var(--step-1); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 16px 0 6px;
}
.hero-cta .btn-primary:link,
.hero-cta .btn-primary:visited,
.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:focus,
.hero-cta .btn-primary:focus-visible,
.hero-cta .btn-primary:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid #5c3317;
  background: #e8d4a8;
  color: #3a2212;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}
.hero-cta .btn-primary:hover,
.hero-cta .btn-primary:active {
  background: #c4924f;
  color: #3a2212;
  border-color: #3a2212;
}
.hero-cta .btn-primary:focus,
.hero-cta .btn-primary:focus-visible {
  outline: 3px solid #0c4a6e;
  outline-offset: 3px;
}
.hero-cta .text-link:link,
.hero-cta .text-link:visited,
.hero-cta .text-link:hover,
.hero-cta .text-link:focus,
.hero-cta .text-link:focus-visible,
.hero-cta .text-link:active {
  color: #0c4a6e;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.hero-cta .text-link:hover,
.hero-cta .text-link:active {
  color: #5c3317;
}

.portals {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 32px);
  justify-items: center;
  align-items: stretch;
}
.portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  min-height: 280px;
  padding: 18px 14px 16px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--brown-900);
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 253, 249, 0.8);
  box-shadow: var(--shadow);
}
.portal img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  filter: drop-shadow(0 8px 14px rgba(58, 34, 18, 0.2));
}
.portal .cap {
  display: block;
  max-width: 16ch;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
  color: #3a2212;
}
.portal:hover { transform: translateY(-3px); }

@media (max-width: 760px) {
  .hero { justify-content: flex-start; padding-top: 18px; gap: 18px; }
  .hero-copy { padding: 20px 16px 16px; text-align: left; }
  .hero-cta { justify-content: flex-start; }
  .portal { min-height: 0; padding: 12px 10px; }
  .portal img { max-height: 150px; }
}
@media (max-width: 520px) {
  .portals { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1280px) {
  .hero { gap: 36px; padding-top: 18px; padding-bottom: 48px; }
}
@media (min-width: 1440px) {
  body.home .site-logo { width: 260px; }
  .portals { width: min(1020px, 100%); }
}

/* Guide pages */
body.guide main {
  flex: 1;
  width: min(72rem, calc(100% - 24px));
  margin: 20px auto 32px;
}
body.tutorial main { width: min(76rem, calc(100% - 24px)); }

.card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 40px);
  line-height: 1.6;
}
.card h1 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--step-6);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bay-ink);
}
.card h2 {
  margin: 2rem 0 0.55rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--tan-300);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--bay);
  scroll-margin-top: var(--header-pad);
}
.card h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.08rem;
  color: var(--brown-900);
  scroll-margin-top: var(--header-pad);
}
.card p { margin: 0 0 12px; max-width: var(--measure); }
.card .lead { font-size: 1.08rem; }
.card ul, .card ol { padding-left: 1.25rem; margin: 6px 0 14px; max-width: var(--measure); }
.card li { margin: 5px 0; }
.card a { color: #0b4f78; text-underline-offset: 0.15em; }
.card a:hover { color: var(--brown-700); }
.card a.fb-link { display: inline-block; margin-top: 4px; font-size: 0.82rem; font-weight: 700; }
.updated { margin: 0 0 12px; color: var(--muted); font-size: var(--step-1); }
.count { margin: 0 0 10px; color: var(--muted); font-size: var(--step-1); }
.detail, .kind, .small, .towns { color: var(--muted); font-size: 0.92rem; }
.kind { display: inline-block; }
.card td, .card .lead, .card .notice, .card h1 { overflow-wrap: break-word; }
.small { margin-top: 8px; }
.dont { color: var(--danger); }

.title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
}
.title img { width: 72px; height: auto; flex: none; }
.title h1, .title .updated { max-width: none; }
.page-actions { margin: 8px 0 0; }

.cta, a.cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--bay);
  background: var(--paper);
  color: var(--bay);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.cta, a.cta, .btn.primary {
  background: var(--bay);
  color: #fff;
}
a.cta, .card a.cta, .card a.btn.primary { color: #fff; }
.cta:hover, a.cta:hover, .btn.primary:hover { background: var(--bay-deep); border-color: var(--bay-deep); color: #fff; }
.btn:hover { background: var(--foam); }
.cta.alt {
  background: var(--paper);
  color: var(--bay);
}
.card a.cta.alt, .cta.alt { color: var(--bay); }
.cta.alt:hover { background: var(--foam); color: var(--bay-deep); }
.btn:disabled { opacity: 0.4; cursor: default; background: var(--paper); color: var(--muted); }
.links { margin: 12px 0 0; font-size: 0.95rem; }
.back { font-weight: 700; }

.notice, .disclaimer, .tip, .card .tip {
  background: #fff6e4;
  border-left: 4px solid var(--tan-400);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 16px;
  max-width: none;
}
.tip { color: #5a3d12; }

nav.toc {
  background: var(--tan-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  max-width: none;
}
nav.toc strong { display: block; margin-bottom: 6px; color: var(--brown-800); }
nav.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
}
nav.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  background: var(--paper);
  border: 1px solid #d7c4a3;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 700;
  color: var(--brown-900);
}
nav.toc a:hover { border-color: var(--bay); color: var(--bay); background: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
  max-width: none;
}
.fact {
  background: var(--tan-100);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.fact b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--bay);
  line-height: 1.15;
  margin-bottom: 4px;
}
.fact span { font-size: 0.92rem; color: var(--ink-soft); }

.card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 8px 0 16px;
}
.card th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--tan-300);
  padding: 8px 10px;
}
.card td {
  vertical-align: top;
  border-bottom: 1px solid #efe6d6;
  padding: 12px 10px;
}
.card tbody tr:hover td { background: var(--tan-100); }
.card td .note { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 700px) {
  .title img { width: 56px; }
  .card thead { display: none; }
  .card table, .card tbody, .card tr, .card td { display: block; width: 100%; }
  .card tr {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 0 0 12px;
    background: #fff;
  }
  .card td { border: 0; padding: 6px 0; }
  .card tbody tr:hover td { background: transparent; }
  .card td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brown-700);
    margin-bottom: 2px;
  }
  .card td:not([data-label])::before { content: none; }
}

.region {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 18px 12px;
  margin: 14px 0;
  background: #fff;
  scroll-margin-top: var(--header-pad);
}
.region h3 { margin-top: 12px; color: var(--bay); font-size: 1.15rem; }
.region ul { max-width: none; }

.lawyers {
  background: linear-gradient(180deg, var(--tan-100), var(--paper));
  border: 1px solid var(--tan-300);
  border-radius: 18px;
  padding: 18px 16px 8px;
  margin: 0 0 8px;
  scroll-margin-top: var(--header-pad);
}
.lawyers h2 { margin: 0 0 4px; border-bottom: 0; padding-bottom: 0; }
.lawyers .listed { margin: 0 0 8px; font-size: 0.86rem; font-weight: 700; color: var(--deal); }
.lawyers h3 { margin: 16px 0 8px; color: var(--brown-800); }
.lawyer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 8px 0 6px;
}
@media (min-width: 760px) {
  .lawyer-grid { grid-template-columns: 1fr 1fr; }
}
.lawyer {
  background: #fff;
  border: 1px solid #dccdb4;
  border-left: 4px solid var(--brown-700);
  border-radius: 14px;
  padding: 14px 16px 8px;
  box-shadow: 0 4px 14px rgba(58, 34, 18, 0.05);
}
.lawyer h4 {
  margin: 0 0 2px;
  font-size: 1.05rem;
  color: var(--bay-ink);
  line-height: 1.35;
}
.lawyer .who { margin: 0 0 6px; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
.lawyer p { font-size: 0.95rem; max-width: none; }
.lawyer .reach { margin: 0 0 6px; }
.lawyer .reach a { font-weight: 700; }
.lawyer .src { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); }
.norml {
  display: inline-block;
  margin: 0 0 0 6px;
  background: var(--bay);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  vertical-align: middle;
}
.lawyers .disclaimer { margin: 14px 0 10px; font-size: 0.9rem; }

ol.tl {
  list-style: none;
  margin: 12px 0 18px 4px;
  padding: 0;
  border-left: 3px solid var(--tan-300);
  max-width: none;
}
ol.tl li { position: relative; margin: 0; padding: 0 0 16px 22px; }
ol.tl li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--bay);
}
ol.tl li.key::before { background: var(--tan-500); border-color: var(--brown-700); }
ol.tl time {
  display: block;
  font-weight: 700;
  color: var(--bay);
  font-size: 0.92rem;
}
.legal {
  background: var(--foam);
  border-left: 4px solid var(--bay);
  border-radius: var(--radius-sm);
  padding: 4px 16px 8px;
  margin: 0 0 18px;
}
.legal h3 { margin-top: 12px; color: var(--bay); }
.legal blockquote {
  margin: 8px 0 12px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--tan-300);
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
}
.clip {
  margin: 4px 0 16px;
  max-width: 36rem;
}
.clip img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.clip figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Tutorial */
.card p, .card li { font-size: 1rem; }
.key {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border: 1px solid #c9d2da;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--tan-100);
  font: 600 13px/1.6 var(--font-sans);
  text-align: center;
  color: var(--ink);
}
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.dot.green { background: #1a9641; }
.dot.blue { background: #2b6cb0; }
code { background: var(--tan-100); padding: 1px 5px; border-radius: 4px; font-size: 0.86rem; }

.stepper { margin: 18px 0 6px; position: relative; }
.stepper ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; max-width: none; }
.stepper li { flex: 1 1 0; min-width: 84px; position: relative; margin: 0 !important; }
.stepper li::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 3px; background: var(--line); border: 0; width: auto; border-radius: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.cur::before { background: var(--bay); }
.stepper a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 4px 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  border-radius: 10px;
  min-height: 0;
}
.stepper .n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 16px;
}
.stepper a:hover .n { border-color: var(--tan-400); }
.stepper li.done .n { background: var(--bay); border-color: var(--bay); color: #fff; }
.stepper li.cur .n { border-color: var(--bay); color: var(--bay); transform: scale(1.08); box-shadow: 0 0 0 5px rgba(12, 74, 110, 0.15); }
.stepper li.cur a { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) {
  .stepper .lbl { display: none; }
  .stepper li { min-width: 44px; }
  .stepper .n { width: 36px; height: 36px; font-size: 14px; }
  .stepper li::before { top: 16px; }
}
.progress { display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.progress .bar { flex: 1 1 160px; height: 6px; border-radius: 3px; background: #efe6d6; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bay-bright), var(--bay)); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #0b4f78; text-decoration: underline; cursor: pointer; }
.js .progress { display: flex; }
.js .pager { display: flex; }
.js.all .pager { display: none; }

.step { border-top: 1px solid #efe6d6; padding: 22px 0 6px; margin-top: 18px; scroll-margin-top: var(--header-pad); }
.js .step { border-top: 0; margin-top: 6px; padding-top: 12px; }
.js.all .step { border-top: 1px solid #efe6d6; margin-top: 18px; }
.step-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.step-head .n {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bay);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
.step-head h2 { margin: 0; font-size: 1.35rem; color: var(--bay-ink); outline: none; border: 0; padding: 0; }
.step-head .of { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bay); font-family: var(--font-sans); }
.step-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 820px) { .step-body { grid-template-columns: 1fr; } }
.shot { margin: 0; position: sticky; top: 96px; }
@media (max-width: 820px) { .shot { position: static; } }
.shot svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #cde3f2;
}
.shot figcaption { margin-top: 6px; font-size: 0.8rem; color: var(--muted); text-align: center; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .step.enter { animation: stepIn 0.28s ease-out; }

ol.callouts { list-style: none; counter-reset: co; padding: 0; margin: 8px 0 12px; max-width: none; }
ol.callouts > li { counter-increment: co; position: relative; padding-left: 36px; margin: 10px 0; }
ol.callouts > li::before {
  content: counter(co);
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d9480f;
  border: 0;
  color: #fff;
  font: 800 13px/24px var(--font-sans);
  text-align: center;
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, 0.25);
}

.flow { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: none; }
.flow li {
  margin: 0;
  background: var(--tan-100);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3;
  position: relative;
}
.flow li b { display: block; color: var(--bay); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 2px; background: var(--tan-400); border: 0; border-radius: 0; }
.flow svg { display: block; margin: 0 auto 4px; width: 28px; height: 28px; }
.starts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 12px; }
.starts div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 0.9rem; line-height: 1.35; background: #fff; }
.starts b { display: block; color: var(--ink); }
@media (max-width: 520px) {
  .flow, .starts { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { display: none; }
}

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .tips { grid-template-columns: 1fr; } }
.tips > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; background: linear-gradient(180deg, var(--tan-100), #fff); }
.tips svg { width: 44px; height: 44px; display: block; margin-bottom: 6px; }
.tips h3 { margin: 0 0 4px; }
.tips p { margin: 0 0 6px; }

.pager {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #efe6d6;
  margin-top: 20px;
  padding-top: 16px;
}
.pager .nav { display: flex; gap: 10px; margin-left: auto; }
.hint { font-size: 0.8rem; color: var(--muted); }
@media (hover: none) { .hint .kb { display: none; } }
.end { margin-top: 22px; }
.js:not(.all) .end { display: none; }

.fig text { font-family: var(--font-sans); fill: var(--ink); }
.fig .ui { fill: #fff; stroke: #9aa5b1; stroke-width: 1; }
.fig .glyph { font-size: 18px; font-weight: 700; text-anchor: middle; }
.fig .t { font-size: 10px; }
.fig .ts { font-size: 9px; fill: #5a6773; }
.fig .tb { font-weight: 700; }
.fig .tg { fill: var(--deal); font-weight: 700; }
.fig .tw { fill: #fff; }
.fig .mid { text-anchor: middle; }
.fig .m-g { fill: #1a9641; stroke: #fff; stroke-width: 2; }
.fig .m-b { fill: #2b6cb0; stroke: #fff; stroke-width: 2; }
.fig .arrow { stroke: var(--deal); stroke-width: 2.5; fill: none; }
.fig .co circle { fill: #d9480f; stroke: #fff; stroke-width: 2; }
.fig .co text { fill: #fff; font-size: 12px; font-weight: 800; text-anchor: middle; }
.fig .pulse { fill: none; stroke: #d9480f; stroke-width: 2; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .fig .pulse { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.6); opacity: 0; } }

/* Age gate */
html.ag-locked, html.ag-locked body { overflow: hidden !important; }
#ag-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 32, 51, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  color: var(--ink);
}
#ag-gate[hidden], #ag-gate [hidden] { display: none !important; }
#ag-gate, #ag-gate * { box-sizing: border-box; }
#ag-gate .ag-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--tan-300);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 28px 24px 20px;
  text-align: center;
  line-height: 1.45;
}
#ag-gate .ag-brand {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--brown-700);
  margin: 0 0 10px;
}
#ag-gate .ag-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 5vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--bay-ink);
  border: 0;
  padding: 0;
}
#ag-gate p.ag-text { margin: 0 0 20px; font-size: 1rem; color: var(--ink-soft); max-width: none; }
#ag-gate .ag-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#ag-gate button {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  min-width: 140px;
  min-height: 48px;
  cursor: pointer;
  border: 2px solid transparent;
}
#ag-gate button:active { transform: scale(0.98); }
#ag-gate .ag-yes { background: var(--bay); color: #fff; }
#ag-gate .ag-yes:hover { background: var(--bay-deep); }
#ag-gate .ag-no { background: var(--paper); color: var(--brown-900); border-color: #c9b89a; }
#ag-gate .ag-no:hover { background: var(--tan-100); }
#ag-gate .ag-deny {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.95rem;
}
#ag-gate .ag-note { margin: 18px 0 0; font-size: 0.8rem; color: var(--muted); }

/* Map chrome. Panel behavior (drag, minimize, routes) stays in map.html.
   The map's rem sizes were written against a 10px root, so keep it. */
html:has(body.map-page) {
  font-size: 62.5%;
}
/* Form controls on the map use the page font. Without this reset,
   checkbox and field margins push the deals list and trip-cost rows down by a few pixels. */
body.map-page button,
body.map-page input,
body.map-page select,
body.map-page textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
body.map-page {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 100%;
}
body.map-page .map-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
body.map-page .folium-map {
  position: absolute !important;
  top: var(--chrome) !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
}
/* Footer stays in normal flow under the map. Fixed panels stop above it. */
body.map-page .site-footer {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 16px 12px;
  font-size: 14px;
  line-height: 1.45;
}
body.map-page .site-footer .site-feedback {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.45;
}
body.map-page .site-footer .copy-email-wrap {
  white-space: normal;
}
body.map-page .site-footer .copy-email {
  font-size: 14px;
  min-height: 40px;
}
body.map-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30000;
  height: var(--chrome);
  padding: 6px 12px;
}
body.map-page .site-logo img { height: 56px; }
body.map-page .leaflet-top { top: 8px; }
body.map-page .leaflet-bar a {
  background: var(--paper);
  color: var(--brown-900);
  border-color: var(--line);
}
body.map-page .leaflet-bar a:hover { background: var(--tan-100); }
body.map-page .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: var(--shadow);
}
body.map-page .leaflet-popup-content { margin: 12px 14px; line-height: 1.4; }
body.map-page .store-approx { color: #9a4700; font-size: 12px; }
body.map-page .store-phone { margin-top: 2px; }
body.map-page .store-web { margin-top: 2px; }
body.map-page .store-web a { color: #0b5ea8; }
body.map-page .store-socs { display: flex; gap: 8px; margin-top: 4px; }
body.map-page a.store-soc {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: #002868;
}
body.map-page a.store-soc svg { width: 16px; height: 16px; display: block; }
body.map-page .leaflet-popup-tip { box-shadow: none; }

body.map-page #sw-title {
  top: calc(var(--chrome) + 8px);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  padding: 8px 14px 8px;
}
body.map-page #sw-title h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--bay-ink);
}
body.map-page #sw-title .sw-sub { font: 400 0.75rem/1.3 var(--font-sans); color: var(--muted); }
body.map-page #sw-title .sw-reg { font: 700 0.8rem/1.2 var(--font-sans); color: var(--brown-800); }
body.map-page #sw-title select {
  width: auto;
  max-width: min(220px, 100%);
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  flex: 0 1 auto;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  padding: 3px 8px;
  border: 2px solid var(--bay);
  border-radius: 8px;
  background: var(--foam);
  color: var(--bay-ink);
}
@media (max-width: 719px) {
  body.map-page #sw-title {
    left: 52px;
    right: 54px;
    transform: none;
    max-width: none;
    padding: 6px 8px;
  }
  body.map-page #sw-title h1 { font-size: 0.92rem; }
  body.map-page #sw-title .sw-sub { display: none; }
  body.map-page #sw-title select {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    min-height: 40px;
    padding: 6px 10px;
    max-width: calc(100vw - 148px);
  }
}

body.map-page #sw-legend {
  background: var(--paper) !important;
  color: var(--ink);
  padding: 8px 12px 10px !important;
  border-radius: 14px !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm) !important;
  font: 13px/1.45 var(--font-sans) !important;
  max-width: calc(100vw - 20px);
  bottom: calc(var(--map-footer, 120px) + 10px) !important;
}
body.map-page #sw-legend-handle { font-weight: 700; color: var(--brown-900); }
body.map-page #sw-legend a { color: var(--bay); font-weight: 700; }

body.map-page #bd-deals-panel,
body.map-page #gas-cost-panel {
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
  color: var(--ink);
  border: 1px solid var(--line);
}
body.map-page #bd-deals-panel {
  top: calc(var(--chrome) + 96px);
  width: min(340px, calc(100vw - 68px));
  max-width: calc(100vw - 68px);
  /* Fit under the default top so the route buttons stay on screen. The store list scrolls inside. */
  max-height: calc(100vh - var(--chrome) - 104px);
  max-height: calc(100dvh - var(--chrome) - 104px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.map-page #bd-deals-panel .bd-head,
body.map-page #bd-deals-panel .bd-actions,
body.map-page #gas-cost-panel .gc-head {
  flex: 0 0 auto;
}
body.map-page #bd-deals-panel .bd-head,
body.map-page #bd-deals-panel .bd-head *,
body.map-page #bd-deals-panel .bd-actions,
body.map-page #bd-deals-panel .bd-actions *,
body.map-page #gas-cost-panel .gc-head,
body.map-page #gas-cost-panel .gc-head * {
  touch-action: none;
}
body.map-page #bd-deals-panel .bd-head button,
body.map-page #bd-deals-panel .bd-head a,
body.map-page #bd-deals-panel .bd-actions button,
body.map-page #bd-deals-panel .bd-actions a,
body.map-page #bd-deals-panel .bd-actions input,
body.map-page #bd-deals-panel .bd-actions label,
body.map-page #gas-cost-panel .gc-head button,
body.map-page #gas-cost-panel .gc-head a {
  touch-action: manipulation;
}
body.map-page #bd-deals-panel .bd-body {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}
body.map-page #bd-deals-panel .bd-list-wrap {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  flex: 1 1 auto;
  min-height: 0;
}
body.map-page #bd-deals-panel .bd-list-wrap * {
  touch-action: pan-y;
}
body.map-page #bd-deals-panel .bd-list-wrap a,
body.map-page #bd-deals-panel .bd-list-wrap button,
body.map-page #bd-deals-panel .bd-list-wrap input,
body.map-page #bd-deals-panel .bd-list-wrap select,
body.map-page #bd-deals-panel .bd-list-wrap textarea,
body.map-page #bd-deals-panel .bd-list-wrap label,
body.map-page #gas-cost-panel .gc-body a,
body.map-page #gas-cost-panel .gc-body button,
body.map-page #gas-cost-panel .gc-body input,
body.map-page #gas-cost-panel .gc-body select,
body.map-page #gas-cost-panel .gc-body textarea,
body.map-page #gas-cost-panel .gc-body label {
  touch-action: manipulation;
}
body.map-page #bd-deals-panel .bd-route-sum {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
body.map-page #gas-cost-panel {
  /* Fit under the default top. The form scrolls inside that height. */
  max-height: calc(100vh - var(--chrome) - 164px);
  max-height: calc(100dvh - var(--chrome) - 164px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.map-page #gas-cost-panel .gc-body {
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
body.map-page #gas-cost-panel .gc-body * {
  touch-action: pan-y;
}
body.map-page #bd-reopen-btn { top: calc(var(--chrome) + 96px); }
body.map-page #gas-cost-panel,
body.map-page #gas-reopen-btn { top: calc(var(--chrome) + 156px); }
body.map-page #bd-pick-banner { top: calc(var(--chrome) + 72px); }
body.map-page #bd-deals-panel .bd-head {
  background: var(--deal);
  border-radius: 13px 13px 0 0;
  font-family: var(--font-sans);
}
body.map-page #gas-cost-panel .gc-head {
  background: var(--brown-700);
  border-radius: 13px 13px 0 0;
  font-family: var(--font-sans);
}
body.map-page #bd-reopen-btn { background: var(--deal); border-radius: 12px; font-family: var(--font-sans); min-height: 40px; }
body.map-page #gas-reopen-btn { background: var(--brown-700); border-radius: 12px; font-family: var(--font-sans); min-height: 40px; }
body.map-page #bd-deals-panel .bd-btns button,
body.map-page #gas-cost-panel .gc-btns button { min-width: 28px; min-height: 28px; border-radius: 6px; }
body.map-page #bd-deals-panel .bd-route-btn,
body.map-page #bd-deals-panel .bd-map-start-btn,
body.map-page #bd-deals-panel .bd-clear-route,
body.map-page #bd-deals-panel .bd-cancel-geo,
body.map-page #bd-deals-panel .bd-ext-link,
body.map-page #bd-deals-panel .bd-copy-btn {
  font-family: var(--font-sans);
  border-radius: 8px;
  min-height: 34px;
}
body.map-page #bd-deals-panel .bd-route-btn { background: var(--deal); }
body.map-page #bd-deals-panel .bd-route-btn:not(:disabled):hover { background: #094a32; }
body.map-page #bd-deals-panel .bd-map-start-btn { background: var(--bay); }
body.map-page #bd-deals-panel .bd-map-start-btn:not(:disabled):hover { background: var(--bay-deep); }
body.map-page #bd-deals-panel .site-feedback {
  flex: 0 0 auto;
  margin: 8px 0 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  max-width: none;
  color: var(--brown-800);
  font-size: 12px;
  line-height: 1.4;
  user-select: text;
  -webkit-user-select: text;
  touch-action: auto;
}
body.map-page #bd-deals-panel .site-feedback a:link,
body.map-page #bd-deals-panel .site-feedback a:visited,
body.map-page #bd-deals-panel .site-feedback a:hover,
body.map-page #bd-deals-panel .site-feedback a:focus,
body.map-page #bd-deals-panel .site-feedback a:focus-visible,
body.map-page #bd-deals-panel .site-feedback a:active {
  color: #5c3317;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #5c3317;
  text-underline-offset: 0.12em;
  pointer-events: auto;
  cursor: pointer;
}
body.map-page #bd-deals-panel .copy-email-wrap {
  gap: 6px;
  margin-top: 2px;
}
body.map-page #bd-deals-panel .copy-email,
body.map-page #bd-deals-panel .copy-email:hover,
body.map-page #bd-deals-panel .copy-email:focus,
body.map-page #bd-deals-panel .copy-email:focus-visible,
body.map-page #bd-deals-panel .copy-email:active {
  min-height: 40px;
  padding: 0 10px;
  border: 2px solid #5c3317;
  background: #fff;
  color: #5c3317;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}
body.map-page #bd-deals-panel .copy-email:hover,
body.map-page #bd-deals-panel .copy-email:focus,
body.map-page #bd-deals-panel .copy-email:focus-visible,
body.map-page #bd-deals-panel .copy-email:active {
  background: #5c3317;
  color: #fffdf9;
  border-color: #5c3317;
}
body.map-page #bd-deals-panel .bd-name { color: var(--deal); }
body.map-page #bd-deals-panel li.bd-store:not(.bd-has-deal) .bd-name { color: #1f4f86; }
body.map-page #bd-deals-panel li.bd-grp-region { background: var(--deal); }
body.map-page #gas-cost-panel .gc-total .gc-cost { color: var(--brown-700); }
body.map-page #gas-cost-panel .gc-sect { color: var(--brown-700); border-bottom-color: #f0d3b4; }
body.map-page #bd-pick-banner {
  background: var(--bay);
  border-radius: 12px;
  font-family: var(--font-sans);
}
body.map-page #sw-legend-handle:focus-visible,
body.map-page #bd-deals-panel button:focus-visible,
body.map-page #gas-cost-panel button:focus-visible,
body.map-page #gas-cost-panel input:focus-visible,
body.map-page #gas-cost-panel select:focus-visible,
body.map-page #sw-title select:focus-visible {
  outline: 3px solid #e0a060;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portal, .js .step.enter, .stepper .n, .progress .bar i, .fig .pulse { animation: none; transition: none; }
  .portal:hover { transform: none; }
}

/* Home Screen prompt. Stays under the age gate. */
.footer-app {
  display: none;
  margin: 0 0 8px;
}
.get-app {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffdf9;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: #fffdf9;
  text-underline-offset: 0.16em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.get-app:hover,
.get-app:focus-visible {
  color: #fff;
}
.get-app:focus-visible {
  outline: 3px solid #e0a060;
  outline-offset: 3px;
  border-radius: 6px;
}
@media (max-width: 860px) {
  .footer-app { display: block; }
}
html.install-mobile .footer-app { display: block; }
html.install-installed .footer-app { display: none !important; }

.install-prompt {
  position: fixed;
  z-index: 40000;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 16px 16px;
  background: #fffdf9;
  color: #072033;
  border: 2px solid #072033;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(7, 32, 51, 0.32);
  font-family: var(--font-sans);
}
.install-prompt[hidden] { display: none !important; }
html.ag-locked .install-prompt { display: none !important; }
.install-prompt h2 {
  margin: 0 48px 8px 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.15;
  color: #072033;
}
.install-lead {
  margin: 0 0 12px;
  color: #1c1612;
  font-size: 1rem;
  line-height: 1.45;
}
.install-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #072033;
  background: #fffdf9;
  color: #072033;
  cursor: pointer;
  padding: 0;
}
.install-x:hover { background: #072033; color: #fffdf9; }
.install-x:focus-visible,
.install-go:focus-visible {
  outline: 3px solid #e0a060;
  outline-offset: 2px;
}
.install-actions { margin: 4px 0 0; }
.install-go {
  min-height: 48px;
  min-width: 132px;
  padding: 0 22px;
  border: 2px solid #072033;
  border-radius: 999px;
  background: #072033;
  color: #fffdf9;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.install-go:hover { background: #0c4a6e; border-color: #0c4a6e; }
.install-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.install-steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: #072033;
  font-size: 1rem;
  line-height: 1.35;
}
.install-step-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #072033;
  color: #fffdf9;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (prefers-reduced-motion: no-preference) {
  .install-prompt { animation: install-in 0.22s ease-out; }
}
@keyframes install-in {
  from { transform: translateY(14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Footer merch link (sits with the social icons) */
.site-footer .footer-social a.footer-merch {
  width: auto;
  gap: 6px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Merch page */
.merch-tagline { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--brown-800); margin: 0 0 6px; }
.merch-grid {
  list-style: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  margin: 20px 0 8px !important;
  max-width: 100% !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: clamp(10px, 2vw, 18px);
}
.merch-grid li { margin: 0; min-width: 0; box-sizing: border-box; }
.merch-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--tan-200);
  border-radius: 14px;
  overflow: hidden;
}
.merch-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.merch-card .merch-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card .merch-card h2 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; line-height: 1.3; margin: 0; padding: 0; border: 0; color: var(--bay-ink); }
.merch-card .merch-price { margin: 0 0 8px; font-weight: 700; color: var(--brown-700); }
.merch-card .merch-buy {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--bay);
  background: var(--bay);
  color: #fffdf9;
  font: 700 0.95rem/1 var(--font-sans);
  text-decoration: none;
}
.card a.merch-buy:hover { background: var(--bay-ink); color: #fffdf9; }
.merch-card .merch-buy[aria-disabled="true"] {
  background: var(--tan-100);
  border-color: var(--tan-300);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

@media print {
  html { background: #fff !important; }
  html::before, body.home::after { display: none; }
  body { background: #fff; }
  .site-header, .site-footer, .nav-toggle, nav.toc, .stepper, .pager, .progress, .install-prompt { display: none !important; }
  .card { box-shadow: none; }
  .js .step[hidden] { display: block !important; }
}
