/* Stratum self-check — ported from the "Autoevaluación Walmart (prueba)" artifact,
   restyled with the landing page's palette and type. */
:root {
  --bg: #F3F5FA; --surface: #FFFFFF; --ink: #16204F; --muted: #586187; --sep: #E2E5EC;
  --accent: #1E2B7E; --on-accent: #FFFFFF; --link: #266AB2; --track: #E2E5EC;
  --warn: #B3261E; --fill: #EEF0F8;
  --navy: #1E2B7E; --blue: #266AB2; --sky: #5FA3DA; --sand: #E6E09E; --sand-soft: #F6F3CF; --sand-ink: #5B5410;
  --ok: #1b7a4c;
  --grad: linear-gradient(135deg, #1E2B7E 0%, #266AB2 100%);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
button { font: inherit; color: inherit; }
.wrap { position: relative; max-width: 600px; margin: 0 auto; padding: 16px 20px 140px; }
body { position: relative; min-height: 100vh; min-height: 100dvh; }
/* Topographic texture, same as the landing page (mirrored tile, no seams) */
.texture { position: absolute; inset: 0; background: url("../assets/topo-tile.jpg") repeat; background-size: 1800px auto; opacity: .05; mix-blend-mode: multiply; pointer-events: none; }
.fine a { color: var(--link); text-decoration: underline; }

/* top bar */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; margin-bottom: 8px; }
.back { justify-self: start; background: none; border: 0; color: var(--link); font-size: 17px; font-weight: 600; padding: 8px 4px; cursor: pointer; visibility: hidden; }
.back.show { visibility: visible; }
.home img { height: 24px; width: auto; display: block; }
.seg { justify-self: end; display: inline-flex; background: var(--track); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 10px; min-width: 38px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(22, 32, 79, .15); }

/* progress */
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 6px 0 28px; }
.progress i { height: 4px; border-radius: 2px; background: var(--track); }
.progress i.on { background: var(--grad); }

.brand { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
h2 { font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; }
.testpill { display: inline-block; font-size: 12px; color: var(--muted); background: var(--track); border-radius: 999px; padding: 3px 10px; }

/* grouped lists */
.qtitle { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; margin: 34px 0 4px; }
.qtitle:first-of-type { margin-top: 20px; }
.qhelp { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.group { background: var(--surface); border: 1px solid var(--sep); border-radius: 16px; overflow: hidden; margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; position: relative; font-size: 17px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.row.multi { padding-left: 14px; }
.row .t { flex: 1; min-width: 0; }
.row .t small { display: block; font-size: 14px; color: var(--muted); margin-top: 1px; }
.row:hover { background: #F8F9FC; }
.row:active { background: var(--fill); }
.check { width: 22px; height: 22px; flex: none; color: var(--accent); opacity: 0; }
.row[aria-checked="true"] .check { opacity: 1; }
.row[aria-checked="true"] .t { font-weight: 600; }
.box { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--sep); display: grid; place-items: center; }
.row[aria-checked="true"] .box { background: var(--accent); border-color: var(--accent); }
.box svg { width: 14px; height: 14px; color: var(--on-accent); opacity: 0; }
.row[aria-checked="true"] .box svg { opacity: 1; }

/* intro form */
.field { display: block; padding: 10px 16px 12px; position: relative; }
.field + .field::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.field input { width: 100%; border: 0; background: none; font: 17px var(--font); color: var(--ink); padding: 2px 0; outline: none; }
.field:focus-within { background: var(--fill); }
.fine { font-size: 13px; color: var(--muted); margin: 12px 16px 0; }

/* sticky action */
.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.dock .in { max-width: 600px; margin: 0 auto; }
.primary { display: block; width: 100%; border: 0; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 700; padding: 16px; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(30, 43, 126, .6); }
.primary:hover { background: #141d5c; }
.primary:active { opacity: .85; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pass-top :focus-visible, .deck-fda :focus-visible, .cover :focus-visible { outline-color: var(--sand); }

/* intro cover */
.cover { background: var(--grad); color: #fff; border-radius: 24px; padding: 26px 22px 24px; margin: 6px 0 22px; position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 36px; transform: rotate(45deg); background: rgba(230, 224, 158, .18); }
.cover h1 { color: #fff; position: relative; }
.cover p { color: rgba(255, 255, 255, .82); font-size: 18px; margin: 0; position: relative; max-width: 26em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; position: relative; }
.chip { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 11px; background: var(--sand); color: #1E2B7E; }
.chip.ghost { background: rgba(255, 255, 255, .16); color: #fff; }
/* step header: small kicker label above a plain section title */
.step-head { margin-bottom: 4px; }
.step-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
h2.step { margin: 0; }

/* gift / guide */
.gift { background: var(--sand-soft); border-radius: 18px; padding: 18px 18px 16px; margin-top: 10px; }
.gift h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.gift p { margin: 4px 0 0; color: var(--sand-ink); font-size: 15px; }
.gift .mini { background: var(--navy); color: #fff; }
.links { margin-top: 12px; }
.links a { display: block; padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--sand-ink) 18%, transparent); color: var(--ink); text-decoration: none; font-size: 15px; }
.links a small { display: block; color: var(--sand-ink); font-size: 13px; }
.links a:first-child { border-top: 0; }

/* calculator (inside results) */
.calc { background: var(--surface); border-radius: 18px; padding: 18px; margin-top: 10px; border: 1.5px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.calc h3 { margin: 0; font-size: 18px; font-weight: 800; }
.calc .tag { display: inline-block; font-size: 12px; font-weight: 700; color: #1E2B7E; background: var(--sand); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 2px; }
.calc > p { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.cf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sep); }
.cf label { font-size: 15px; flex: 1; }
.cf .in { display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 10px; padding: 6px 10px; width: 120px; }
.cf input { width: 100%; border: 0; background: none; font: 17px var(--font); color: var(--ink); text-align: right; outline: none; }
.cf .u { color: var(--muted); font-size: 15px; }
.out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.out div { border-radius: 12px; padding: 12px; background: var(--fill); }
.out div.main { background: var(--grad); color: #fff; }
.out small { display: block; font-size: 13px; opacity: .8; }
.out b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.calc .fine { margin: 10px 0 0; }
.simbox { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sep); }
.simlabel { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.simrow { display: flex; flex-direction: column; gap: 8px; }
.simrow input { width: 100%; border: 1.5px solid var(--sep); border-radius: 10px; padding: 12px; font: 16px var(--font); background: var(--bg); color: var(--ink); outline: none; }
.simrow input:focus-visible { border-color: var(--blue); }
.simrow .mini { margin: 0; width: 100%; background: var(--navy); color: #fff; padding: 12px; }
.simcard { margin-top: 14px; background: var(--fill); border-radius: 14px; padding: 14px; }
.simcard h4 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.simmock { display: inline-block; font-size: 11px; font-weight: 700; color: var(--sand-ink); background: var(--sand-soft); border-radius: 6px; padding: 1px 7px; margin-bottom: 8px; }
.simlist { list-style: none; margin: 8px 0; padding: 0; }
.simlist li { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; border-top: 1px solid var(--sep); }
.simlist li:first-child { border-top: 0; }
.simfit { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.simfit.lo { color: var(--ok); }
.simfit.mid { color: var(--sand-ink); }
.simfit.hi { color: var(--warn); }
.simempty { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

/* results */
.hero { display: flex; align-items: center; gap: 22px; background: var(--grad); color: #fff; border-radius: 22px; padding: 22px; margin: 18px 0 12px; }
.hero .tiertext { color: rgba(255, 255, 255, .85); }
.hero .ring .num small { color: rgba(255, 255, 255, .85); }
.ring { width: 118px; height: 118px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring .num b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.ring .num small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.tiername { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.tiertext { font-size: 15px; color: var(--muted); margin: 0; }
.sectionhead { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 30px 4px 8px; }
.item { padding: 14px 16px; position: relative; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
.item h3 { font-size: 17px; font-weight: 700; margin: 0; }
.item p { font-size: 15px; color: var(--muted); margin: 3px 0 0; }
.item a { display: inline-block; margin-top: 6px; font-size: 15px; color: var(--link); text-decoration: none; font-weight: 600; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--sand-ink); background: var(--sand-soft); border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.mini { margin-top: 10px; border: 0; background: var(--fill); color: var(--accent); font-size: 15px; font-weight: 700; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.have { font-size: 15px; color: var(--muted); padding: 14px 16px; margin: 0; }
.ok { color: var(--accent); font-weight: 600; }
.link { background: none; border: 0; color: var(--link); font-size: 17px; font-weight: 600; padding: 14px 0; cursor: pointer; display: block; margin: 10px auto 0; }
.disc { font-size: 12px; color: var(--muted); margin: 22px 16px 0; }

@media (prefers-reduced-motion: no-preference) {
  .arc { transition: stroke-dashoffset 900ms cubic-bezier(.2, .8, .2, 1); }
  .screen.enter { animation: in 260ms ease-out both; }
  @keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   Results: Walmart passport (boarding-pass layout) + checklist
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.pass {
  --ease: cubic-bezier(.2, .8, .2, 1);
  position: relative; margin: 8px 0 14px;
  background: var(--surface); border-radius: 26px;
  box-shadow: 0 30px 60px -28px rgba(30, 43, 126, .45), 0 2px 6px rgba(22, 32, 79, .06);
  overflow: hidden;
}
.pass.play { animation: pass-in .7s var(--ease) both; }
@keyframes pass-in { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg) scale(.97); } to { opacity: 1; transform: none; } }

/* top band */
.pass-top { position: relative; background: var(--grad); color: #fff; padding: 20px 22px 24px; overflow: hidden; }
.pass-top::after {
  content: ""; position: absolute; right: -54px; top: -64px; width: 190px; height: 190px;
  border-radius: 40px; transform: rotate(45deg); background: rgba(230, 224, 158, .14);
}
.pass-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
.pass-logo { height: 22px; width: auto; display: block; }
.pass-id { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pass-title { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pass-no { white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.pass-holder { position: relative; margin: 18px 0 20px; }
.pass-holder small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.pass-holder b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }

/* route PR → WMT */
.route { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.route-end b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.route-end small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .9); margin-top: 4px; white-space: nowrap; }
.route-end.end { text-align: right; }
.route-track {
  position: relative; height: 22px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .38) 50%, transparent 0) left center / 10px 2px repeat-x;
}
.route-track::before, .route-track::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  border: 2px solid #fff; background: var(--navy);
}
.route-track::before { left: -2px; }
.route-track::after { right: -2px; }
.route-fill {
  position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
  width: calc(var(--pct) * 1%); background: var(--sand);
}
/* progress marker: a pill showing % complete, riding the line */
.route-mark {
  position: absolute; top: 50%; left: clamp(24px, calc(var(--pct) * 1%), calc(100% - 24px));
  transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 800; color: var(--navy); background: var(--sand);
  border-radius: 999px; padding: 3px 8px; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px rgba(230, 224, 158, .28), 0 4px 10px rgba(0, 0, 0, .2);
}
.play .route-fill { animation: grow 1.3s .25s var(--ease) both; }
.play .route-mark { animation: fly 1.3s .25s var(--ease) both; }
@keyframes grow { from { width: 0; } }
@keyframes fly { from { left: 24px; } }

/* body */
.pass-body { padding: 22px 22px 18px; }
.pass-score { display: flex; align-items: center; gap: 20px; }
.pass .ring { width: 112px; height: 112px; }
.pass .ring .num b { font-size: 36px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pass .arc { transition: stroke-dashoffset 1.1s var(--ease); }
.tier p { margin: 8px 0 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.tier-pill { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .02em; border-radius: 999px; padding: 4px 12px; }
.tier-ready { background: #E6F4EE; color: var(--ok); }
.tier-close { background: var(--sand-soft); color: var(--sand-ink); }
.tier-gaps { background: #FCECEA; color: var(--warn); }
.pass-fields { display: grid; grid-template-columns: auto auto 1fr; gap: 24px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--sep); }
.pass-fields div { min-width: 0; }
.pass-fields dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pass-fields dd { white-space: nowrap; margin: 2px 0 0; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pass-fields div:last-child { text-align: right; }

/* perforation with side notches */
.perf { position: relative; height: 24px; }
.perf::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 50%;
  border-top: 2px dashed var(--sep);
}
.perf::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0 50%, var(--bg) 11px, transparent 12px) left / 50% 100% no-repeat,
    radial-gradient(circle at 100% 50%, var(--bg) 11px, transparent 12px) right / 50% 100% no-repeat;
}

/* stamps */
.pass-stamps { padding: 6px 22px 24px; }
.stamps-h { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stamp-seal {
  width: min(72px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 1px;
  border: 2px dashed var(--sep); color: var(--muted);
}
.stamp-seal b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stamp.is-done .stamp-seal {
  border: 2.5px solid var(--navy); color: var(--navy); transform: rotate(var(--r));
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px color-mix(in srgb, var(--navy) 55%, transparent);
  background: color-mix(in srgb, var(--fill) 60%, #fff);
}
.stamp-seal svg { width: 24px; height: 24px; }
.stamp-seal em { font-style: normal; font-size: 7.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.stamp-name { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.play .stamp-seal { animation: fade .4s calc(1.25s + var(--i) * .16s) both; }
.play .stamp.is-done .stamp-seal { animation: press .5s calc(1.25s + var(--i) * .16s) cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes press {
  0% { opacity: 0; transform: rotate(var(--r)) scale(1.7); }
  60% { opacity: 1; transform: rotate(var(--r)) scale(.93); }
  100% { opacity: 1; transform: rotate(var(--r)) scale(1); }
}
@keyframes fade { from { opacity: 0; } }

/* save */
.save {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 1.5px solid var(--sep); background: var(--surface); color: var(--navy);
  font-weight: 700; font-size: 16px; border-radius: 14px; padding: 13px; cursor: pointer;
}
.save:hover { border-color: var(--sky); }
.save svg { width: 18px; height: 18px; }

/* ---------- Results layout: passport pinned left, content right (desktop) ---------- */
.wrap.wide { max-width: 1120px; }
.res { display: grid; gap: 28px; }
.res-side .save { margin-top: 0; }
.res-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 940px) {
  .res { grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
  .res-side { position: sticky; top: 16px; }
  .res-main { padding-top: 8px; }
}

/* ---------- To-do: filter chips + card grid + done chips ---------- */
.todo-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.todo-h { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.todo-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.todo-meter { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.todo-meter b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.todo-meter b small { font-size: 14px; color: var(--muted); font-weight: 700; }
.meter { width: 96px; height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }

.filters { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--sep); background: var(--surface); color: var(--ink);
  font-size: 14px; font-weight: 700; border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.filters button span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--fill); color: var(--navy); font-size: 12px; text-align: center; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters button[aria-pressed="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }

.tcards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--sep); border-radius: 18px; padding: 16px 16px 14px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tcard:hover { box-shadow: 0 14px 30px -20px rgba(30, 43, 126, .4); transform: translateY(-2px); }
.tcard { background: linear-gradient(180deg, #EEF2FB, #fff 70%); }
.tcard.is-prio { border-color: color-mix(in srgb, var(--sand) 80%, var(--sand-ink) 20%); background: linear-gradient(180deg, var(--sand-soft), #fff 70%); }
.tcard[hidden] { display: none; }
.tcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tcard-sec { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.tcard .badge { margin: 0; }
.tcard h4 { margin: 8px 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.tcard p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.tcard-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.tcard-foot a { font-size: 14.5px; font-weight: 700; color: var(--link); text-decoration: none; }
.tcard-foot a:hover { text-decoration: underline; }
.tcard-foot .mini { margin: 0; }
.tcard-foot .ok { font-size: 14.5px; }
.screen.enter .tcard { animation: rise .45s calc(.35s + var(--i) * .05s) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.done-row { margin-top: 18px; }
.done-h { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.done-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.done-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--sep); border-radius: 999px; padding: 5px 11px 5px 6px;
}
.done-chips svg { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--navy); color: #fff; }

/* ---------- Calculator spacing in the new column ---------- */
.res-main .calc { margin: 0; padding: 22px; border-radius: 20px; }

/* ---------- Official links guide: stacked category deck ---------- */
.guide-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.guide-ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: var(--sand); box-shadow: 0 10px 22px -12px rgba(30, 43, 126, .7);
}
.guide-ico svg { width: 24px; height: 24px; }
.guide-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.guide-head h3 { margin: 1px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.guide-sub { margin: 0; font-size: 14px; color: var(--muted); }

.deck { display: flex; flex-direction: column; }
.deck-card {
  --tint: var(--fill); --tx: var(--ink); --sub: var(--muted);
  position: relative; z-index: var(--z);
  background: var(--tint); color: var(--tx);
  border-radius: 22px; padding: 0 20px;
  box-shadow: 0 -10px 24px -18px rgba(22, 32, 79, .45);
}
.deck-card + .deck-card { margin-top: -18px; }
.deck-card:not(:last-child) { padding-bottom: 18px; }
.deck-walmart { --tint: #DCE8F8; }
.deck-registro { --tint: #F3EEBF; --sub: var(--sand-ink); }
.deck-fda { --tint: var(--navy); --tx: #fff; --sub: rgba(255, 255, 255, .9); background: var(--grad); }
.deck-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 20px 0; border-radius: 22px;
}
.deck-card summary::-webkit-details-marker { display: none; }
.deck-title { flex: 1; min-width: 0; }
.deck-title b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.deck-title small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--sub); font-weight: 600; }
.deck-pill {
  flex: none; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 11px;
  background: rgba(255, 255, 255, .72); color: var(--navy);
}
.deck-fda .deck-pill { background: var(--sand); color: var(--navy); }
.deck-chev {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .6); color: var(--navy); transition: transform .25s ease;
}
.deck-fda .deck-chev { background: rgba(255, 255, 255, .16); color: #fff; }
.deck-chev svg { width: 18px; height: 18px; }
.deck-card[open] .deck-chev { transform: rotate(180deg); }

.deck-links { list-style: none; margin: 0 0 18px; padding: 6px; border-radius: 16px; background: rgba(255, 255, 255, .7); }
.deck-fda .deck-links { background: rgba(255, 255, 255, .1); }
.deck-card[open] .deck-links { animation: rise .3s ease both; }
.deck-links a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  color: var(--tx); text-decoration: none;
}
.deck-links a:hover { background: rgba(255, 255, 255, .8); }
.deck-fda .deck-links a:hover { background: rgba(255, 255, 255, .12); }
.dl-text { flex: 1; min-width: 0; }
.dl-text b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.dl-text small { display: block; font-size: 12.5px; color: var(--sub); }
.dl-for { flex: none; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 2px 8px; background: var(--sand); color: var(--navy); }
.dl-go { flex: none; font-weight: 700; opacity: .7; }

/* ---------- Free review ---------- */
.review {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--sep); border-radius: 20px; padding: 20px 22px;
}
.review h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.review p { margin: 0; font-size: 15px; color: var(--muted); }
.btn-review {
  flex: none; border: 0; border-radius: 12px; background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 700; padding: 12px 18px; cursor: pointer;
}
.btn-review:hover { background: #141d5c; }
.res-main .link { margin-top: -8px; }
.res-main .disc { margin: -16px 0 0; }

@media (max-width: 560px) {
  .review { flex-direction: column; align-items: stretch; }
  .todo-meter .meter { width: 72px; }
}

@media (max-width: 420px) {
  .pass-top, .pass-body, .pass-stamps { padding-inline: 18px; }
  .pass .ring { width: 96px; height: 96px; }
  .pass .ring .num b { font-size: 30px; }
  .pass-score { gap: 16px; }
  .deck-card { padding: 0 16px; }
  .deck-title b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pass.play, .play .route-fill, .play .route-mark, .play .stamp-seal, .screen.enter .tcard, .deck-card[open] .deck-links { animation: none !important; }
  .pass .arc { transition: none; }
}

/* Save as PDF: passport + to-do only */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .dock, .save, .calc, .guide, .review, .filters, .link, .mini { display: none !important; }
  .wrap, .wrap.wide { max-width: none; padding: 0; }
  .res { display: block; }
  .res-side { position: static; margin-bottom: 20px; }
  .pass { box-shadow: none; border: 1px solid var(--sep); break-inside: avoid; }
  .perf::after { display: none; }
  .tcard[hidden] { display: flex !important; }
  .tcard { break-inside: avoid; }
  .tcard-foot a[target]::after { content: " (" attr(href) ")"; font-size: 11px; color: var(--muted); font-weight: 400; word-break: break-all; }
}

/* Headings receive focus programmatically on each new screen (for screen
   readers); they aren't interactive, so no focus ring. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* "Otro" free-text answer, shown inside the options group */
.other-field { border-top: 1px solid var(--sep); background: var(--fill); }
.other-field input { border-bottom: 1.5px solid var(--sep); padding-bottom: 4px; }
.other-field input:focus { border-bottom-color: var(--blue); }
