/* Prepare Utah - calm, Utah-inspired, mobile-first. */
:root {
  --bg: #F7F1E6; --bg-2: #EFE4D2; --card: #FFFCF6; --line: #E2D4BD;
  --ink: #1E2A33; --muted: #4F5B65;
  --rock: #B8683D; --rock-dark: #8A4524; --sand: #E7CFA8;
  --sage: #8FA382; --sage-dark: #46603F; --sage-light: #E3EADB;
  --blue: #1F3A5F; --blue-2: #2B5079; --blue-light: #E1E9F2;
  --gold: #D9A441; --gold-dark: #8C6417; --gold-light: #F6E3B5;
  --radius: 14px; --shadow: 0 1px 2px rgba(30,42,51,.06), 0 6px 18px rgba(30,42,51,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--blue-2); text-underline-offset: 2px; }
a:hover { color: var(--rock-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--blue); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: .35em 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.25em; flex: none; }

/* --- top strip & header --- */
.strip { background: var(--blue); color: #F3EBDD; font-size: .82rem; text-align: center; padding: 6px 12px; }
.strip strong { color: #fff; }
.strip a { color: var(--gold-light); }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: var(--blue); display: grid; place-items: center; }
.brand .logo .icon { width: 26px; height: 26px; }
.brand b { font-family: var(--serif); font-size: 1.25rem; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--blue); cursor: pointer; min-height: 44px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 8px 18px 14px; }
.site-nav a { display: block; padding: 12px 6px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--bg-2); }
.site-nav a[aria-current="page"] { color: var(--rock-dark); }
.site-nav .cta { background: var(--blue); color: #fff; border-radius: 999px; text-align: center; margin-top: 10px; border: 0; }
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: 4px; padding: 0; align-items: center; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 999px; }
  .site-nav a:hover { background: var(--bg-2); }
  .site-nav .cta { margin: 0 0 0 8px; padding: 9px 18px; }
  .site-nav .cta:hover { background: var(--blue-2); color: #fff; }
}

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn.secondary { background: transparent; color: var(--blue); }
.btn.secondary:hover { background: var(--blue-light); color: var(--blue); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #E4B458; color: var(--ink); }
.btn.danger { background: transparent; color: var(--rock-dark); border-color: var(--rock); }
.btn.danger:hover { background: #F8E6DA; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- hero --- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F3E3C7 0%, #F7F1E6 70%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 150px; }
.hero p.lede { font-size: 1.15rem; max-width: 40em; color: #33414C; }
.hero .eyebrow, .eyebrow { display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--rock-dark); margin-bottom: 10px; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 180px; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.hero .trust span { display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { padding-top: 70px; padding-bottom: 190px; } .hero-art { height: 220px; } }

/* --- sections & cards --- */
section.block { padding: 40px 0; }
section.block.alt { background: var(--bg-2); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.hazard-card { display: flex; gap: 14px; text-decoration: none; color: var(--ink); align-items: flex-start; transition: transform .15s ease, box-shadow .15s ease; }
.hazard-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,42,51,.1); color: var(--ink); }
.hazard-card .hz-icon, .hz-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.hz-icon .icon { width: 26px; height: 26px; }
.hazard-card h3 { font-size: 1.08rem; margin: 0 0 2px; }
.hazard-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin: 0 0 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 1.05rem var(--serif); display: grid; place-items: center; }
.note { background: var(--blue-light); border-left: 4px solid var(--blue-2); padding: 14px 16px; border-radius: 0 10px 10px 0; font-size: .95rem; }
.note.warm { background: var(--gold-light); border-color: var(--gold-dark); }
.note.sage { background: var(--sage-light); border-color: var(--sage-dark); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink); letter-spacing: .02em; white-space: nowrap; }

/* citations & flags */
a.cite { display: inline-block; font-size: .72em; font-weight: 600; line-height: 1.3; padding: 1px 7px; margin: 0 1px; border-radius: 999px; background: var(--blue-light); color: var(--blue); text-decoration: none; vertical-align: .12em; white-space: nowrap; }
a.cite::after { content: " \2197"; }
a.cite:hover { background: var(--blue); color: #fff; }
.cite-missing { color: #A11; font-weight: 700; }
.flag { font-size: .85em; color: var(--gold-dark); font-style: italic; }
.est { font-size: .9em; color: var(--muted); font-style: italic; }

/* bands */
.band { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.band::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.band-3 { background: #F6DCCB; color: #7E3A1B; }
.band-2 { background: var(--gold-light); color: #6E4E10; }
.band-1 { background: var(--sage-light); color: #3D5537; }
.band-0 { background: #E6E9EC; color: #4A5560; }

/* --- hazard page --- */
.hz-hero { padding: 36px 0 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.hz-hero .head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.hz-hero .hz-icon { width: 60px; height: 60px; border-radius: 16px; }
.hz-hero .hz-icon .icon { width: 34px; height: 34px; }
.hz-hero h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 2.7rem); }
.hz-body { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 40px; }
@media (min-width: 980px) { .hz-body { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .hz-aside { position: sticky; top: 84px; } }
.bda { display: grid; gap: 14px; }
@media (min-width: 760px) { .bda { grid-template-columns: repeat(3, 1fr); } }
.bda .card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.bda .card h3 .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; color: #fff; background: var(--blue); }
.bda .card ul { padding-left: 1.05em; font-size: .95rem; }
.live-list { list-style: none; padding: 0; margin: 0; }
.live-list li { margin: 0; border-top: 1px solid var(--bg-2); }
.live-list a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; text-decoration: none; font-weight: 600; }
.live-list .dot { width: 9px; height: 9px; border-radius: 50%; background: #2F8F5B; box-shadow: 0 0 0 4px rgba(47,143,91,.15); flex: none; }
details.science { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 4px 18px; }
details.science summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--blue); }
details.science[open] summary { border-bottom: 1px solid var(--bg-2); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--card); }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-weight: 700; }
.lvl { display: inline-block; font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .82rem; }
.lvl-normal { background: var(--sage-light); color: #3D5537; } .lvl-watch { background: var(--blue-light); color: var(--blue); }
.lvl-prepare { background: var(--gold-light); color: #6E4E10; } .lvl-act { background: #F6DCCB; color: #7E3A1B; }

/* quake widget */
.quakes ol { list-style: none; padding: 0; margin: 0; }
.quakes li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bg-2); margin: 0; }
.quakes .mag { min-width: 46px; text-align: center; font: 700 1rem var(--serif); background: var(--sand); color: var(--rock-dark); border-radius: 8px; padding: 4px 6px; }
.quakes .where { font-size: .92rem; line-height: 1.3; }
.quakes .when { font-size: .8rem; color: var(--muted); }

/* --- questionnaire --- */
.q-shell { max-width: 760px; margin: 0 auto; padding: 26px 18px 60px; }
.q-progress { display: flex; gap: 6px; margin: 6px 0 20px; }
.q-progress span { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.q-progress span.on { background: var(--gold); }
.q-progress span.done { background: var(--sage-dark); }
.q-step { display: none; }
.q-step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-step.active { animation: none; } html { scroll-behavior: auto; } .hazard-card { transition: none; } }
fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
legend, .q-label { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; color: var(--ink); padding: 0; }
.hint { font-size: .9rem; color: var(--muted); margin: -4px 0 10px; }
select, input[type="number"], input[type="text"] { font: inherit; font-size: 1rem; width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #C9B89C; border-radius: 10px; background: #fff; color: var(--ink); }
select:focus, input:focus { border-color: var(--blue-2); }
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span.box { display: flex; gap: 12px; align-items: flex-start; min-height: 52px; padding: 13px 14px; border: 1.5px solid #D6C6AB; border-radius: 12px; background: #fff; cursor: pointer; }
.choice span.box b { display: block; font-weight: 650; }
.choice span.box small { display: block; color: var(--muted); font-size: .86rem; }
.choice span.box::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #A8957A; border-radius: 50%; background: #fff; }
.choice input[type="checkbox"] + span.box::before { border-radius: 6px; }
.choice input:checked + span.box { border-color: var(--blue-2); background: var(--blue-light); }
.choice input:checked + span.box::before { border-color: var(--blue-2); background: var(--blue-2); box-shadow: inset 0 0 0 3px #fff; }
.choice input[type="checkbox"]:checked + span.box::before { box-shadow: none; background: var(--blue-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.choice input:focus-visible + span.box { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice .rel { margin-left: auto; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-2); }
.counter .lbl b { display: block; } .counter .lbl small { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #C9B89C; background: #fff; font-size: 1.3rem; color: var(--blue); cursor: pointer; }
.stepper button:hover { background: var(--blue-light); }
.stepper input { width: 64px; text-align: center; padding: 8px 4px; }
.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 12px; }
.q-error { color: #8A1F11; font-weight: 600; margin-top: 8px; min-height: 1.4em; }
.reveal { margin: -2px 0 6px; padding: 12px 0 6px 16px; border-left: 3px solid var(--blue-light); }
.reveal[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice.chip span.box { min-height: 40px; padding: 8px 12px; gap: 8px; }
.choice.chip span.box::before { width: 18px; height: 18px; margin-top: 1px; }
.text-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #D6C6AB; border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.text-input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--blue-2); }
.detect { color: var(--sage-dark); font-weight: 600; margin: 8px 0 0; min-height: 1.3em; }
.first-hour { border: 2px solid var(--gold); }
.alerts-card h3 { margin-bottom: .3em; }
.alerts-card .alerts-main { margin: 0; font-size: 1.05rem; }
.alerts-card .icon { color: var(--rock-dark); }
.alerts-card .btn .icon { color: inherit; }
.alert-steps { padding-left: 1.3em; }
.alert-steps li { margin: 0 0 .7em; }
.rsg summary { cursor: pointer; font-weight: 650; color: var(--blue); margin-top: 6px; }
.rsg dl, .rsg-list { margin: 8px 0 0; }
.rsg dt, .rsg-list dt { font-weight: 700; color: var(--blue); margin-top: 8px; }
.rsg dd, .rsg-list dd { margin: 2px 0 0; }
.county-list { display: grid; gap: 12px; }
.county-list .alerts-card { scroll-margin-top: 90px; }
select[data-jump] { width: 100%; max-width: 360px; }
.first-hour h2 { display: flex; align-items: center; gap: 10px; margin-bottom: .3em; }
.fh-list { margin-top: 10px; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }

/* --- dashboard --- */
.dash-hero { background: linear-gradient(135deg, var(--blue) 0%, #2C4F73 100%); color: #EEF2F6; padding: 30px 0 28px; }
.dash-hero h1 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.5rem); }
.dash-hero p { color: #D9E2EC; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font: 700 1.5rem var(--serif); color: #fff; }
.stat span { font-size: .82rem; color: #D2DCE6; }
.dash-section { padding: 28px 0 8px; }
.dash-section > .wrap > h2 { display: flex; align-items: center; gap: 10px; }
.prio-list { display: grid; gap: 10px; }
@media (min-width: 760px) { .prio-list { grid-template-columns: 1fr 1fr; } }
.prio { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.prio summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.prio summary::-webkit-details-marker { display: none; }
.prio .hz-icon { width: 38px; height: 38px; border-radius: 10px; }
.prio .hz-icon .icon { width: 22px; height: 22px; }
.prio .nm { font-weight: 700; flex: 1; }
.prio .why { padding: 0 14px 12px 64px; font-size: .9rem; color: var(--muted); }
.prio .why ul { margin: 0; padding-left: 1em; }
.progress { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 12px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage-dark), var(--sage)); border-radius: 999px; transition: width .3s ease; }
.progress .pct { font-weight: 700; font-size: .9rem; min-width: 3.2em; text-align: right; }
.tier-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.tier-tabs button { flex: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 14px; font: 600 .92rem var(--sans); color: var(--ink); cursor: pointer; min-height: 44px; }
.tier-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.tier-tabs .mini { font-weight: 500; opacity: .85; margin-left: 4px; font-size: .8rem; }
.tier-panel { display: none; }
.tier-panel.active { display: block; }
.cat-h { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--rock-dark); margin: 18px 0 6px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; padding: 0; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 4px; cursor: pointer; }
.checklist input[type="checkbox"] { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--sage-dark); flex: none; cursor: pointer; }
.checklist .nm { font-weight: 600; }
.checklist li.done .nm { text-decoration: line-through; text-decoration-color: var(--sage-dark); color: var(--muted); }
.checklist li.done { background: #F4F6EF; }
.checklist .meta { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 4px 50px; }
.checklist .det { padding: 0 14px 12px 50px; font-size: .88rem; color: var(--muted); }
.tag { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: #3F4A53; }
.tag.all { background: var(--sage-light); color: #3D5537; }
.tag.cost { background: #fff; border: 1px solid var(--line); }
.tag.free { background: #E4F1E8; color: #23603C; }
.tag.kind { background: var(--blue-light); color: var(--blue); }
.buy-list { counter-reset: b; list-style: none; padding: 0; margin: 0; }
.buy-list li { counter-increment: b; display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--bg-2); margin: 0; }
.buy-list li::before { content: counter(b); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.add-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .add-grid { grid-template-columns: 1fr 1fr; } }
.add-card h3 { display: flex; gap: 10px; align-items: center; }
.add-card h3 .icon { color: var(--rock-dark); width: 26px; height: 26px; }
.add-card ul { font-size: .94rem; padding-left: 1.1em; margin: 0; }
details.action { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.action > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; list-style: none; }
details.action > summary::-webkit-details-marker { display: none; }
details.action > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--muted); }
details.action[open] > summary::after { content: "\2212"; }
details.action .inner { padding: 0 14px 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.empty { text-align: center; padding: 60px 18px; }

/* --- footer --- */
.site-footer { background: #22323F; color: #D7DEE4; padding: 34px 0 28px; margin-top: 30px; font-size: .92rem; }
.site-footer a { color: var(--gold-light); }
.site-footer h2 { color: #fff; font-size: 1.1rem; }
.site-footer .cols { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .disclaimer { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.04); }
.site-footer .erase { background: none; border: 1px solid var(--gold-light); color: var(--gold-light); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; min-height: 40px; }
.site-footer .fine { margin-top: 18px; font-size: .8rem; color: #AAB6C0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); font-size: .95rem; }

/* sources page */
.src-group { margin-bottom: 26px; }
.src-group ul { list-style: none; padding: 0; }
.src-group li { padding: 8px 0; border-top: 1px solid var(--bg-2); margin: 0; }
.src-group li small { display: block; color: var(--muted); word-break: break-all; }

/* --- print --- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .strip, .site-header, .site-footer .cols > div:not(.disclaimer-col), .no-print, .tier-tabs, .q-nav, .hero-art, .nav-toggle, .toast { display: none !important; }
  .print-only { display: block; }
  .site-footer { background: #fff; color: #000; margin: 0; padding: 10px 0 0; border-top: 1px solid #999; }
  .site-footer .disclaimer { border-color: #999; }
  .dash-hero { background: #fff; color: #000; padding: 0 0 10px; border-bottom: 2px solid #000; }
  .dash-hero h1, .dash-hero p, .stat b, .stat span { color: #000 !important; }
  .stat { border-color: #999; background: #fff; }
  .tier-panel { display: block !important; break-before: auto; }
  .tier-panel h3.print-only { display: block; margin-top: 14px; }
  .card, .checklist li, details.action, .prio { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  details.action > summary::after { content: ""; }
  a.cite { background: none; color: #000; padding: 0; border: 0; }
  a.cite::after { content: ""; }
  a { color: #000; text-decoration: none; }
  .checklist input[type="checkbox"] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .band, .tag, .hz-icon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dash-section { padding: 10px 0 0; }
  h2 { break-after: avoid; }
}

/* --- refinements after device testing --- */
[id] { scroll-margin-top: 84px; }
.choice .rel { flex: none; white-space: nowrap; }
@media (max-width: 520px) {
  .choice .rel { font-size: .7rem; padding: 3px 8px; }
  .q-step[data-step="6"] .choice small { display: none; }
  .q-step[data-step="6"] .choice span.box { align-items: center; }
}

/* --- guides and guide tools (family plan, neighborhood worksheet) --- */
.guide-body > h2 { margin-top: 28px; }
.tool-form { margin: 8px 0 20px; }
.tool-form h2 { font-size: 1.25rem; margin: 22px 0 8px; }
.tool-rows, .tool-grid { display: grid; gap: 10px; }
.tool-row { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; display: grid; gap: 8px; margin: 0; min-width: 0; }
.tool-row legend { font-weight: 700; font-size: .88rem; color: var(--muted); padding: 0 4px; margin: 0; }
@media (min-width: 640px) { .tool-row, .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-field { display: block; }
.tool-field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.tool-field small { font-weight: 400; color: var(--muted); }
.tool-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .9rem; }
.tool-table th { text-align: left; padding: 6px; border-bottom: 2px solid var(--line); }
.tool-table td { padding: 4px; border-bottom: 1px solid var(--bg-2); }
.tool-table .text-input { min-height: 38px; padding: 6px 8px; border-radius: 8px; }
.tool-table input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--sage-dark); }
.reminder-list { padding-left: 1.2em; }
.reminder-list li { margin: 0 0 .4em; }
.wallet-sheet { display: none; }
@media print {
  body.print-cards .hz-hero, body.print-cards .hz-aside, body.print-cards .site-footer, body.print-cards .guide-body > :not(.wallet-sheet) { display: none !important; }
  body.print-cards .wallet-sheet { display: block; }
  body.print-cards .hz-body { display: block; padding: 0; }
  .wc-help { font-size: 9pt; margin: 0 0 .15in; }
  .wallet-card { width: 6.75in; height: 2.125in; display: flex; border: 1px dashed #777; margin: 0 0 .2in; break-inside: avoid; font: 7.2pt/1.25 var(--sans); color: #000; }
  .wallet-card .wc-side { width: 50%; padding: .07in .12in; overflow: hidden; }
  .wallet-card .wc-side + .wc-side { border-left: 1px dashed #777; }
  .wallet-card p, .wallet-card ul { margin: 0 0 2px; }
  .wallet-card ul { padding-left: 1.1em; }
  .wallet-card .wc-title { font: 700 8.5pt var(--serif); margin-bottom: 3px; }
  .wallet-card .wc-foot { margin-top: 3px; color: #555; }
  .tool-form .text-input { border: 0; border-bottom: 1px solid #999; border-radius: 0; min-height: 0; padding: 2px 0; }
}
/* Grid columns may not grow past the screen; wide tables scroll inside .table-wrap instead. */
.hz-body > * { min-width: 0; }
