/* Cerritos Turtles — mobile-first public stylesheet, release 20261102 (mobile redesign).
   Buildless, self-contained, no external fonts or images.
   CSP-safe: no inline styles are required anywhere in the HTML or set by script.
   Layout model: with JavaScript the page is a set of route "panels" (one visible at a time) plus a
   thumb-reach tab bar; without JavaScript (no "js" class on <html>) every panel simply stacks as a
   normal long page and the tab bar acts as plain anchor links. */

:root {
  --ink: #0a2b30;
  --ink-2: #29484c;
  --teal-900: #072d32;
  --teal-800: #0b3a40;
  --teal-700: #0f4c52;
  --teal-600: #136469;
  --teal-500: #1a7f80;
  --sea-300: #8fd3c3;
  --sea-200: #bfe6dc;
  --sea-100: #e2f4ee;
  --sea-50: #f0faf7;
  --sand-50: #fbf6ea;
  --sand-100: #f5ecd9;
  --sand-200: #ebdcbc;
  --sand-300: #d9c498;
  --sand-500: #a88a52;
  --paper: #fffdf7;
  --amber: #7a3410;
  --amber-bg: #fbeacf;
  --amber-line: #d98a3a;
  --danger: #9a2410;
  --focus: #0a5a78;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 18px;
  --gutter: 1rem;
  --tabbar-h: calc(4.1rem + env(safe-area-inset-bottom, 0px));
  --shadow: 0 1px 2px rgba(7, 45, 50, 0.08), 0 8px 24px rgba(7, 45, 50, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  padding-bottom: var(--tabbar-h);
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg { max-width: 100%; }
main:focus { outline: none; }
.panel-title:focus, .sit-title:focus, #draft-title:focus, .form legend:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6em; color: var(--teal-900); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25rem; }
a { color: var(--teal-600); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal-800); }
strong { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark { --focus: #ffd98a; }
.on-dark :focus-visible { outline-color: var(--focus); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--teal-900);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline-color: #ffd98a; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

/* Icons: a hidden SVG sprite is referenced with <use>. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Notice bar ---------- */
.notice-bar {
  background: var(--teal-900);
  color: var(--sea-100);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.notice-bar p { margin: 0; padding: 0.5rem 0; width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.notice-bar strong { color: #fff; }
.notice-bar a { color: #ffd98a; font-weight: 700; white-space: nowrap; }
.notice-bar a:hover { color: #fff; }
.notice-bar :focus-visible { outline-color: #ffd98a; }

/* ---------- Header + tab bar ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--sand-50);
  border-bottom: 1px solid var(--sand-300);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--teal-800); min-width: 0; }
.brand:hover { color: var(--teal-900); }
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-name { display: block; font: 700 1.2rem/1.05 var(--serif); letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-top: 0.15rem; }
.header-tools { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch {
  display: none;
  border: 1.5px solid var(--teal-700);
  border-radius: 999px;
  padding: 2px;
  background: var(--paper);
}
.js .lang-switch { display: inline-flex; }
.lang-btn {
  min-width: 2.75rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-800);
  font: 700 0.85rem/1 var(--sans);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-btn:hover { background: var(--sea-100); }
.lang-btn[aria-pressed="true"] { background: var(--teal-700); color: #fff; }

/* Tab bar: fixed to the bottom on phones (thumb reach), inline in the header on wide screens. */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--paper);
  border-top: 1px solid var(--sand-300);
  box-shadow: 0 -6px 20px rgba(7, 45, 50, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.1rem;
  padding: 0.45rem 0.1rem;
  color: var(--ink-2);
  font: 650 0.72rem/1.1 var(--sans);
  text-align: center;
  text-decoration: none;
}
.tabbar a .ico { width: 1.55rem; height: 1.55rem; }
.tabbar a:hover { color: var(--teal-800); }
.tabbar a[aria-current="page"] { color: var(--teal-700); }
.tabbar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0; left: 22%; right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--teal-600);
}
.tabbar a[aria-current="page"] .ico { stroke-width: 2.5; }
.tabbar :focus-visible { outline-offset: -4px; }

@media (min-width: 52rem) {
  :root { --gutter: 1.5rem; --tabbar-h: 0px; }
  html { scroll-padding-top: 5.5rem; }
  body { font-size: 1.0625rem; }
  .site-header { position: sticky; top: 0; }
  .header-row { padding: 0.6rem 0; }
  .brand-name { font-size: 1.3rem; }
  .brand-mark { width: 2.6rem; height: 2.6rem; }
  .brand-sub { font-size: 0.72rem; }
  .tabbar { position: static; background: none; border: 0; box-shadow: none; padding: 0; flex: 1; }
  .tabbar ul { display: flex; justify-content: center; gap: 0.25rem; }
  .tabbar a { flex-direction: row; gap: 0.45rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; font-size: 0.95rem; }
  .tabbar a .ico { width: 1.15rem; height: 1.15rem; }
  .tabbar a:hover { background: var(--sea-100); }
  .tabbar a[aria-current="page"] { background: var(--teal-700); color: #fff; }
  .tabbar a[aria-current="page"]::before { display: none; }
  .tabbar :focus-visible { outline-offset: 2px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 650 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--teal-800); border-color: var(--teal-700); }
.btn-secondary:hover { background: var(--sea-100); color: var(--teal-900); }
.btn-sand { background: var(--sand-200); color: var(--teal-900); }
.btn-sand:hover { background: #fff; color: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--sea-100); border-color: var(--sea-300); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-alert { background: var(--danger); color: #fff; }
.btn-alert:hover { background: #6f1808; color: #fff; }
.btn-block { display: flex; width: 100%; margin: 0.9rem 0 0.25rem; }
.btn-quiet { background: transparent; color: var(--teal-800); text-decoration: underline; text-underline-offset: 0.2em; }
.btn-quiet:hover { background: var(--sea-100); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-link {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: transparent;
  color: var(--teal-700);
  font: 650 0.92rem/1.2 var(--sans);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.btn-link:hover { color: var(--teal-900); }
.icon-btn {
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;
  border: 1.5px solid var(--teal-700);
  border-radius: 50%;
  background: var(--paper);
  color: var(--teal-800);
  cursor: pointer;
}
.icon-btn:hover { background: var(--sea-100); }

/* ---------- Panels (routes) ---------- */
.js .panel { display: none; }
.js .panel.is-active { display: block; }
.panel { padding: 0 0 1.5rem; }
.panel-pad { padding-top: 0.25rem; }

.eyebrow, .kicker, .block-title {
  font: 700 0.75rem/1.3 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 0.4rem; color: var(--teal-600); }
.panel-head { margin: 0.75rem 0 1rem; }
.panel-head h2, .panel-title { font-size: clamp(1.75rem, 7.4vw, 2.7rem); letter-spacing: -0.025em; margin: 0 0 0.4rem; }
.section-lede { font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.block-title { margin: 0 0 0.6rem; color: var(--teal-600); font-family: var(--sans); letter-spacing: 0.15em; }

/* Sub navigation: scrollable pill row inside a group of panels. */
.subnav {
  display: flex;
  gap: 0.5rem;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.75rem var(--gutter) 0.15rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1.5px solid var(--sand-300);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal-800);
  font: 650 0.92rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
}
.subnav a:hover { background: var(--sea-100); }
.subnav a[aria-current="page"] { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.subnav a.subnav-alert { border-color: var(--amber-line); color: var(--amber); background: var(--amber-bg); }
.subnav a.subnav-alert[aria-current="page"] { background: var(--amber); border-color: var(--amber); color: #fff; }
@media (min-width: 52rem) { .subnav { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; } }

/* ---------- Home ---------- */
.hero {
  position: relative;
  background: var(--teal-800);
  color: var(--sea-100);
  border-radius: 0 0 1.75rem 1.75rem;
  overflow: hidden;
}
.hero :where(a:not(.btn)) { color: var(--sea-200); }
.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  max-height: min(16.5rem, 36vh);
  min-height: 11rem;
  width: 100%;
  background: var(--teal-700);
}
.hero-art svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to bottom, rgba(11, 58, 64, 0), var(--teal-800));
  pointer-events: none;
}
.hero-copy { position: relative; margin-top: -3rem; padding: 0 var(--gutter) 1.4rem; }
.kicker { color: var(--sea-300); margin: 0 0 0.45rem; }
.display {
  font-size: clamp(2rem, 9.6vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.display em { display: block; font-style: italic; font-weight: 500; color: var(--sea-300); }
.lede { font-size: 1rem; line-height: 1.5; max-width: 38rem; color: var(--sea-100); margin: 0 0 1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.cta-row .btn { flex: 1 1 9.5rem; }

@media (min-width: 60rem) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 3rem;
    width: min(100% - 2 * var(--gutter), 72rem);
    margin: 1.25rem auto 0;
    padding: 3rem;
    border-radius: 2rem;
    background: radial-gradient(120% 90% at 85% 10%, var(--teal-600) 0%, var(--teal-800) 45%, var(--teal-900) 100%);
  }
  .hero-art {
    order: 2;
    aspect-ratio: 5 / 6;
    max-height: none;
    min-height: 0;
    max-width: 26rem;
    margin-inline: auto;
    border-radius: 999px 999px 28px 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(191, 230, 220, 0.14);
  }
  .hero-art::after { display: none; }
  .hero-copy { margin: 0; padding: 0; }
  .display { font-size: clamp(3rem, 5vw, 4.4rem); }
  .lede { font-size: 1.2rem; }
}

.home-body > * { min-width: 0; }
.home-body { display: grid; gap: 1.5rem; padding: 1.25rem 0 0.5rem; }
@media (min-width: 60rem) { .home-body { padding-top: 2rem; } }

/* Situation chips: one scrollable row on phones */
.chips {
  display: flex;
  gap: 0.55rem;
  list-style: none;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.15rem var(--gutter) 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; scroll-snap-align: start; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.05rem 0 0.85rem;
  border: 1.5px solid var(--sand-300);
  border-radius: 999px;
  background: var(--paper);
  color: var(--teal-900);
  font: 650 0.95rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(7, 45, 50, 0.06);
}
.chip:hover { background: var(--sea-100); }
.chip .ico { color: var(--teal-600); }
.chip-alert { border-color: var(--amber-line); background: var(--amber-bg); color: var(--amber); }
.chip-alert .ico { color: var(--amber); }
.chip-all { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.chip-all .ico { color: #fff; }
.chip-all:hover { background: var(--teal-900); }
@media (min-width: 52rem) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
@media (min-width: 52rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.9rem;
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.tile:hover { border-color: var(--teal-500); color: var(--ink); }
.tile-ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.2rem; border-radius: 12px; background: var(--sea-100); color: var(--teal-700); }
.tile-ico .ico { width: 1.4rem; height: 1.4rem; }
.tile strong { font: 650 1rem/1.2 var(--sans); color: var(--teal-900); }
.tile .tile-d { font-size: 0.85rem; line-height: 1.35; color: var(--ink-2); }

.tipcard { background: var(--sea-100); border-radius: var(--radius); padding: 1rem 1rem 0.8rem; }
.tip-list { list-style: none; margin: 0 0 0.5rem; padding: 0; font: 500 1.1rem/1.4 var(--serif); color: var(--teal-900); }
.tip-list li { margin-bottom: 0.6rem; }
.tip-ctrl { display: none; align-items: center; justify-content: space-between; gap: 0.75rem; }
.js .tip-ctrl { display: flex; }
.js .tip-list { min-height: 7.2rem; margin-bottom: 0.25rem; }
.js .tip-list li { margin: 0; }
.tip-count { font-size: 0.88rem; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tip-btns { display: flex; gap: 0.5rem; }

.truth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.truth-list li { padding: 0.7rem 0.9rem; border: 1px solid var(--sand-200); border-radius: 14px; background: var(--paper); font-size: 0.93rem; line-height: 1.45; }
.truth-list strong { color: var(--teal-900); }
@media (min-width: 52rem) { .truth-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pullcard { background: var(--teal-800); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.2rem; text-align: center; }
.pull { font: italic 500 clamp(1.5rem, 6vw, 2.4rem)/1.15 var(--serif); letter-spacing: -0.02em; max-width: 24ch; margin: 0 auto 0.6rem; color: #fff; }
.pull-sub { color: var(--sea-200); font-size: 0.88rem; margin: 0; }

/* ---------- Cards, lists, callouts ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 0.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card-grid { display: grid; gap: 0.9rem; }
@media (min-width: 52rem) { .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--teal-500);
  background: var(--sea-100);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}
.field-note p { margin: 0; }

.callout {
  background: var(--paper);
  border: 1.5px solid var(--teal-600);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.callout p { margin: 0; }
.callout-warm { border-color: var(--amber-line); background: var(--amber-bg); color: #3d1a07; }

.list-mark { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.list-mark li { position: relative; padding: 0.6rem 0 0.6rem 2.1rem; border-top: 1px solid var(--sand-200); }
.list-mark li:first-child { border-top: 0; }
.list-mark li::before {
  position: absolute;
  left: 0; top: 0.6rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 700 0.8rem/1 var(--sans);
}
.list-do li::before { content: "✓"; background: var(--sea-200); color: var(--teal-800); }
.list-dont li::before { content: "✕"; background: var(--amber-bg); color: var(--amber); }

/* Accordions (details/summary) */
.acc { border-top: 1px solid var(--sand-300); }
.acc details { border-bottom: 1px solid var(--sand-300); }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.85rem 0;
  font: 600 1.1rem/1.3 var(--serif);
  color: var(--teal-900);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; font: 400 1.7rem/1 var(--sans); color: var(--teal-600); }
.acc details[open] > summary::after { content: "−"; }
.acc summary:hover { color: var(--teal-600); }
.acc .answer { padding: 0 0 1rem; }
.acc .answer p:last-child { margin-bottom: 0; }
@media (min-width: 52rem) { .acc { max-width: 52rem; } }

/* Tabs (segmented control). The tab list only exists with JavaScript; without it all panels show. */
.tabs-list {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.25rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--sand-200);
}
.js .tabs-list { display: grid; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--teal-900);
  font: 650 0.97rem/1.1 var(--sans);
  cursor: pointer;
}
.tab:hover { background: rgba(255, 255, 255, 0.6); }
.tab[aria-selected="true"] { background: var(--teal-700); color: #fff; box-shadow: 0 1px 4px rgba(7, 45, 50, 0.25); }
.js .tp-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.tabpanel { margin-bottom: 0.9rem; }
.tabpanel .card { margin: 0; }
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin-bottom: 0.55rem; }
.step-label { font: 700 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 0.45rem; }
.js .tabpanel .step-label { display: none; }
.cleanup-leave { margin-top: 0.5rem; }

/* ---------- Situation guide ---------- */
.sit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
@media (min-width: 52rem) { .sit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; } }
.sit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  height: 100%;
  min-height: 7rem;
  padding: 0.85rem;
  border: 1px solid var(--sand-200);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.sit-card:hover { border-color: var(--teal-500); color: var(--ink); }
.sit-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--sea-100); color: var(--teal-700); }
.sit-ico .ico { width: 1.35rem; height: 1.35rem; }
.sit-name { font: 650 1rem/1.2 var(--sans); color: var(--teal-900); }
.sit-card-911 { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; background: var(--amber-bg); border: 2px solid var(--amber-line); }
.sit-card-911 .sit-ico { background: var(--danger); color: #fff; }
.sit-card-911 .sit-name { color: var(--amber); }
.sit-card-911 .sit-text { display: grid; gap: 0.3rem; justify-items: start; }
@media (min-width: 52rem) { .sit-card-911 { grid-column: auto; flex-direction: column; align-items: flex-start; } }

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font: 700 0.68rem/1.3 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-watch { background: var(--sea-200); color: var(--teal-900); }
.badge-note { background: var(--sand-200); color: #3d2c0a; }
.badge-auth { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-line); }
.badge-911 { background: var(--danger); color: #fff; }

.sit { padding: 0.25rem 0 0.5rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2.75rem; font-weight: 650; text-decoration: none; }
.sit-title { font-size: clamp(1.8rem, 7.4vw, 2.5rem); margin: 0.5rem 0 0.4rem; letter-spacing: -0.02em; }
.sit-lead { font-size: 1.04rem; line-height: 1.5; color: var(--ink-2); }
.sit-cols { display: grid; gap: 0.75rem; margin: 0.9rem 0 0.75rem; }
@media (min-width: 52rem) { .sit-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini { background: var(--paper); border: 1px solid var(--sand-200); border-radius: 16px; padding: 0.9rem 1rem 0.4rem; }
.mini h4 { font: 700 0.75rem/1.2 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; margin: 0 0 0.4rem; color: var(--teal-700); }
.mini-dont h4, .mini-tell h4 { color: var(--amber); }
.mini-tell { margin-bottom: 0.75rem; background: var(--amber-bg); border-color: #ecc794; color: #3d1a07; padding-bottom: 0.1rem; }
.mini-tell a { color: #6a2a08; font-weight: 650; }
.sit-actions { display: grid; gap: 0.6rem; margin: 0.9rem 0; }
@media (min-width: 40rem) { .sit-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.pager a {
  display: flex; align-items: center; gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--sand-300);
  border-radius: 14px;
  background: var(--paper);
  color: var(--teal-900);
  font: 650 0.9rem/1.2 var(--sans);
  text-decoration: none;
}
.pager a:hover { background: var(--sea-100); }
.pager a[rel="next"] { justify-content: flex-end; text-align: right; }

/* ---------- Urgent ---------- */
.urgent {
  margin-top: 0.75rem;
  background: var(--amber-bg);
  border: 2px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 1.1rem;
  color: #3d1a07;
}
.urgent h2 { color: var(--amber); font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
.urgent-steps { display: grid; gap: 0.75rem; margin: 1rem 0; }
@media (min-width: 52rem) { .urgent-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.urgent-step { background: var(--paper); border-radius: 14px; padding: 1rem 1rem 0.4rem; border: 1px solid #ecc794; }
.urgent-step h3 { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.4em; color: var(--amber); }
.urgent a:not(.btn) { color: #6a2a08; font-weight: 650; }
.urgent .btn { width: 100%; margin: 0 0 0.9rem; }
.urgent-foot { font-weight: 600; margin: 0; }

/* ---------- Composer ---------- */
.note-card { background: var(--paper); border: 1px solid var(--sand-300); border-radius: 14px; margin: 0 0 1rem; }
.note-card summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: 0.6rem 1rem; list-style: none; cursor: pointer; font: 650 1rem/1.3 var(--sans); color: var(--teal-900); }
.note-card summary::-webkit-details-marker { display: none; }
.note-card summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--teal-600); }
.note-card[open] > summary::after { content: "−"; }
.note-card .note-body { padding: 0 1rem 0.5rem; }
.checklist { list-style: none; counter-reset: item; margin: 0 0 0.5rem; padding: 0; }
.checklist li { counter-increment: item; position: relative; padding: 0.65rem 0 0.65rem 2.6rem; border-top: 1px solid var(--sea-200); font-size: 0.95rem; }
.checklist li::before {
  content: counter(item);
  position: absolute; left: 0; top: 0.6rem;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal-700);
  color: #fff;
  font: italic 600 1rem/1 var(--serif);
}
.leave-out { background: var(--amber-bg); border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.93rem; color: #3d1a07; margin-top: 0.75rem; }
.leave-out p { margin: 0; }

.form {
  background: var(--paper);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.5rem;
  box-shadow: var(--shadow);
}
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.form-top h3 { font-size: 1.35rem; margin: 0; }
.stepper { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; list-style: none; margin: 0 0 0.9rem; padding: 0; }
.js .stepper { display: grid; }
.step-btn {
  width: 100%;
  min-height: 3.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.2rem;
  padding: 0.4rem 0.15rem 0.2rem;
  border: 0;
  border-top: 4px solid var(--sand-300);
  background: transparent;
  color: var(--ink-2);
  font: 650 0.72rem/1.15 var(--sans);
  text-align: center;
  cursor: pointer;
}
.step-btn.is-done { border-top-color: var(--teal-500); }
.step-btn[aria-current="step"] { border-top-color: var(--teal-700); color: var(--teal-900); }
.step-num { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sand-200); color: var(--teal-900); font: 700 0.78rem/1 var(--sans); }
.step-btn[aria-current="step"] .step-num { background: var(--teal-700); color: #fff; }
.step-btn.is-done .step-num { background: var(--sea-200); }

.form fieldset { border: 0; border-top: 1px solid var(--sand-200); margin: 0.5rem 0 0; padding: 1rem 0 0; min-width: 0; }
.js .form fieldset { border-top: 0; padding-top: 0.25rem; }
.form legend { padding: 0 0 0.5rem; font: italic 600 1.2rem/1.2 var(--serif); color: var(--teal-700); }
.field { margin: 0 0 1.1rem; }
.field > label, .label { display: block; font-weight: 650; font-size: 0.97rem; margin-bottom: 0.35rem; color: var(--teal-900); }
.req { color: var(--danger); font-weight: 700; }
.field-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; margin: 0 0 1rem; padding: 0.4rem 0.4rem 0.4rem 0.9rem; border-radius: 12px; background: var(--sea-100); font-size: 0.95rem; }
.chosen p { margin: 0; }

input[type="text"], input[type="date"], input[type="time"], select, textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #567477;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
select { appearance: auto; }
input:hover, select:hover, textarea:hover { border-color: var(--teal-600); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }

.hint { font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); margin: 0.35rem 0 0; }
.hint-warn { background: var(--amber-bg); border-left: 4px solid var(--amber-line); border-radius: 0 10px 10px 0; padding: 0.6rem 0.85rem; color: #3d1a07; }
.hint-info { background: var(--sea-100); border-left: 4px solid var(--teal-500); border-radius: 0 10px 10px 0; padding: 0.6rem 0.85rem; }
.type-hints .hint { margin-top: 0.6rem; font-size: 0.93rem; }
.count { float: right; font-variant-numeric: tabular-nums; }
.field-error { color: var(--danger); font-weight: 600; font-size: 0.92rem; margin: 0.4rem 0 0; }
.field-error::before { content: "⚠ "; }
.form-summary { margin: 0 0 1rem; padding: 0.7rem 1rem; border-radius: 10px; background: #fbe3dc; color: var(--danger); font-weight: 650; border: 1px solid #e6a898; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 0.9rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--teal-700); }
.check label { font-weight: 550; font-size: 0.97rem; }
.check .hint { margin-top: 0.15rem; }

/* Back/Next bar sticks just above the tab bar so it stays in thumb reach. */
.form-actions {
  position: sticky;
  bottom: var(--tabbar-h);
  z-index: 5;
  display: flex;
  gap: 0.6rem;
  margin: 0.75rem -1rem 0;
  padding: 0.7rem 1rem;
  background: var(--paper);
  border-top: 1px solid var(--sand-200);
  border-radius: 0 0 var(--radius) var(--radius);
}
.form-actions .btn { flex: 1; }
.form-actions .btn-primary:only-child { flex: 1; }
.form-privacy { margin: 0.75rem 0 0.75rem; font-size: 0.88rem; color: var(--ink-2); }

.draft-panel {
  background: var(--sea-50);
  border: 2px solid var(--teal-600);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.draft-panel h3 { font-size: 1.5rem; outline: none; }
.draft-panel label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
#draft-output { font-family: var(--mono); font-size: 0.88rem; line-height: 1.5; min-height: 16rem; background: #fff; white-space: pre-wrap; }
.actions { display: grid; gap: 0.6rem; margin: 1rem 0 0.5rem; }
@media (min-width: 40rem) { .actions { display: flex; flex-wrap: wrap; } }
.status { min-height: 1.5rem; margin: 0.5rem 0; font-weight: 600; color: var(--teal-700); }

@media (min-width: 52rem) {
  .form, .draft-panel { padding: 1.5rem; }
  .form-actions { position: static; margin: 1rem 0 0; padding: 1rem 0 0; background: none; border-radius: 0; }
  .form-actions .btn { flex: 0 1 auto; min-width: 9rem; }
  .report-wrap { max-width: 46rem; }
}

/* ---------- Map ---------- */
.map-card { display: grid; gap: 1.1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--teal-800); color: var(--sea-100); }
.map-card h2 { color: #fff; font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
.map-card .eyebrow { color: var(--sea-300); }
.map-card a:not(.btn) { color: var(--sea-200); }
.map-links { display: grid; gap: 0.7rem; }
.map-note { font-size: 0.9rem; color: var(--sea-200); margin: 0; }
@media (min-width: 52rem) { .map-card { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 2rem; } }

/* ---------- About ---------- */
.prose { max-width: 46rem; }
.principles { display: grid; gap: 0.7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; padding: 0; list-style: none; counter-reset: p; }
@media (min-width: 52rem) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principles li { counter-increment: p; padding: 0.8rem; border: 1px solid var(--sand-200); border-top: 3px solid var(--teal-600); border-radius: 12px; background: var(--paper); }
.principles li::before { content: "0" counter(p); display: block; font: italic 500 1.3rem/1 var(--serif); color: var(--teal-500); margin-bottom: 0.3rem; }
.principles h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.principles p { font-size: 0.88rem; line-height: 1.4; margin: 0; color: var(--ink-2); }
.status-box { background: var(--paper); border: 1.5px dashed var(--teal-600); border-radius: var(--radius); padding: 1rem 1.1rem 0.4rem; max-width: 52rem; }
.status-box h3 { font-size: 1.2rem; }

/* ---------- Contact ---------- */
.contact-card { background: var(--teal-800); color: var(--sea-100); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 0.9rem; }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a:not(.btn) { color: var(--sea-200); }
.email-link { display: inline-block; font: 600 clamp(1.4rem, 6.4vw, 2.3rem)/1.2 var(--serif); color: #fff !important; text-decoration-color: var(--sea-300); margin: 0.25rem 0 0.75rem; word-break: break-all; }
.email-link:hover { color: var(--sea-200) !important; }
.res-card { background: var(--paper); border: 1px solid var(--sand-300); border-radius: var(--radius); padding: 1.1rem 1.1rem 0.4rem; margin-bottom: 0.9rem; }
.res-card h3 { font-size: 1.15rem; }
.sources { font-size: 0.93rem; }
.sources ul { padding-left: 1.1rem; }
.sources li { margin-bottom: 0.4rem; }
@media (min-width: 52rem) { .contact-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.25rem; align-items: start; } .contact-wrap > * { margin-bottom: 0; } }

/* ---------- Footer ---------- */
.site-footer { --focus: #ffd98a; margin-top: 0.5rem; background: var(--teal-900); color: var(--sea-200); padding: 1.5rem 0 1.75rem; font-size: 0.88rem; }
.site-footer a { color: var(--sea-100); }
.footer-grid { display: grid; gap: 1.1rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; font: 700 1.15rem/1 var(--serif); margin-bottom: 0.6rem; }
.footer-brand svg { width: 2rem; height: 2rem; }
.footer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
@media (min-width: 52rem) { .footer-tools { justify-content: flex-end; } }
.footer-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer .lang-switch { background: transparent; border-color: var(--sea-300); }
.site-footer .lang-btn { color: var(--sea-100); }
.site-footer .lang-btn:hover { background: rgba(255, 255, 255, 0.12); }
.site-footer .lang-btn[aria-pressed="true"] { background: var(--sea-200); color: var(--teal-900); }
.site-footer p { margin: 0 0 0.5rem; }

/* ---------- 404 ---------- */
body.page-404 { padding-bottom: 0; }
.notfound { position: relative; min-height: 60vh; display: grid; align-items: center; padding: clamp(2.5rem, 8vw, 6rem) 0; background: var(--teal-800); color: var(--sea-100); }
.notfound .display { margin-bottom: 1rem; }
.notfound .lede { max-width: 38rem; }
.notfound .cta-row { margin: 1.25rem 0; }
.notfound .code { font: italic 500 clamp(5rem, 18vw, 11rem)/0.9 var(--serif); color: var(--sea-300); margin: 0 0 0.5rem; letter-spacing: -0.04em; }

/* ---------- Illustration animation + panel transitions (only when motion is welcome) ---------- */
.art-flip-l, .art-flip-r { transform-origin: -64px -30px; }
@media (prefers-reduced-motion: no-preference) {
  .art-bob { animation: ct-bob 7s ease-in-out infinite; }
  .art-flip-l { animation: ct-flap-l 3.5s ease-in-out infinite; }
  .art-flip-r { animation: ct-flap-r 3.5s ease-in-out infinite; }
  .art-wave { animation: ct-drift 9s ease-in-out infinite alternate; }
  .art-wave-2 { animation-duration: 12s; animation-direction: alternate-reverse; }
  .art-foam { animation: ct-foam 6s ease-in-out infinite alternate; }
  .art-glints { animation: ct-glint 5s ease-in-out infinite alternate; }
  .art-ring { transform-box: fill-box; transform-origin: center; animation: ct-ring 5s ease-out infinite; }
  .art-ring-2 { animation-delay: 2.5s; }
  .btn:hover { transform: translateY(-1px); }
  .tile:active, .sit-card:active, .chip:active, .btn:active { transform: scale(0.98); }
  .js .panel.is-active { animation: ct-panel 0.26s ease-out; }
  .sit:not([hidden]), .tabpanel:not([hidden]) { animation: ct-panel 0.22s ease-out; }
}
@keyframes ct-panel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ct-bob { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(3px, -6px) rotate(1.2deg); } }
@keyframes ct-flap-l { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-7deg); } }
@keyframes ct-flap-r { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-7deg); } }
@keyframes ct-drift { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes ct-foam { from { transform: translate(-10px, 0); } to { transform: translate(-2px, 3px); } }
@keyframes ct-glint { from { opacity: 0.25; } to { opacity: 0.7; } }
@keyframes ct-ring { 0% { transform: scale(0.6); opacity: 0.45; } 100% { transform: scale(1.35); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .btn, .lang-btn, .tab, .chip, .tile, .sit-card, .subnav a, .step-btn, .icon-btn { border: 2px solid ButtonText; }
  .lang-btn[aria-pressed="true"], .tab[aria-selected="true"], .subnav a[aria-current="page"], .tabbar a[aria-current="page"] { border-color: Highlight; outline: 2px solid Highlight; }
  .list-mark li::before { border: 1px solid CanvasText; }
}

@media print {
  .notice-bar, .site-header, .hero-art, .form, .draft-panel, .lang-switch, .tabbar, .subnav, .tabs-list, .tip-ctrl, .skip-link, .cta-row, .site-footer .footer-tools, .chips, .pager { display: none !important; }
  .js .panel, .js .tabpanel, .js .sit { display: block !important; }
  .js .tp-title { position: static; width: auto; height: auto; clip: auto; margin: 0; }
  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0; }
  .hero, .pullcard, .map-card, .contact-card { background: #fff !important; color: #000 !important; }
  .hero *, .pullcard *, .map-card *, .contact-card * { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  details { display: block; }
  details > * { display: block; }
}
