/* Weldon Computer Step Cards — "index card and highlighter". Own design system (SPEC 4); nothing from sister kits. */
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/atkinson-next-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("/assets/fonts/atkinson-mono-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("/assets/fonts/patrick-hand.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f6f1e6;
  --paper-2: #efe7d6;
  --card: #fffdf7;
  --ink: #1d2330;
  --ink-2: #3c4456;
  --muted: #5d6474;
  --rule: #a9c9e8;
  --rule-soft: #d7e6f4;
  --margin: #d9604c;
  --hl: #ffe45c;
  --act: #0b5f5a;
  --act-2: #08443f;
  --act-soft: #dcefeb;
  --line: #d9cfbb;
  --danger: #a33a2b;
  --r: 6px;
  --shadow: 0 1px 0 rgba(29, 35, 48, .06), 0 10px 28px -12px rgba(29, 35, 48, .28);
  --f: "Atkinson Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --hand: "Patrick Hand", "Comic Neue", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--f); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--act); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--act-2); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--hl); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 750; }
code { font-family: var(--mono); }
.num { font-family: var(--mono); font-weight: 650; font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.shell { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 940px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: .01em; }
.kicker { color: var(--margin); font-size: 1.35rem; margin: 0 0 .2em; line-height: 1.2; }
.kicker--light { color: var(--hl); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.hl { background: linear-gradient(transparent 8%, var(--hl) 8%, var(--hl) 88%, transparent 88%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .12em; }
mark { background: var(--hl); color: inherit; padding: 0 .1em; border-radius: 2px; box-shadow: inset 0 -.12em 0 rgba(0, 0, 0, .06); cursor: help; }
.lbl { display: inline-block; font-family: var(--mono); font-size: .72em; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: .35em; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: .55em 1.25em; border-radius: var(--r);
  background: var(--act); color: #fff; border: 2px solid var(--act); font: 700 1.02rem/1.2 var(--f); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--act-2); border-color: var(--act-2); color: #fff; text-decoration: none; }
.btn--quiet { background: transparent; color: var(--act); }
.btn--quiet:hover { background: var(--act-soft); color: var(--act-2); }
.btn--ink { background: var(--ink); border-color: var(--ink); }
.btn--small { min-height: 40px; padding: .35em .9em; font-size: .95rem; }
.btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; }

/* ---- masthead with folder tabs ---- */
.mast { background: var(--paper); border-bottom: 2px solid var(--ink); position: relative; }
.mast__in { display: flex; align-items: flex-end; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; padding: .7rem 0; margin-right: auto; }
.brand:hover { color: var(--ink); }
.mark { width: 44px; height: 33px; color: var(--ink); flex: none; }
.mark--sm { width: 30px; height: 22px; vertical-align: -5px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.01em; }
.brand__sub { font-family: var(--hand); font-size: 1.05rem; color: var(--margin); }
.tabs { display: none; align-items: flex-end; gap: 4px; }
.tab { position: relative; display: block; padding: .55rem 1rem .5rem; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .98rem;
  background: var(--paper-2); border: 2px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; margin-bottom: -2px; }
.tab:hover { color: var(--ink); background: var(--card); text-decoration: none; }
.tab[aria-current="page"] { background: var(--card); color: var(--ink); border-color: var(--ink); padding-bottom: .62rem; z-index: 1; }
.mast__cta { display: none; align-self: center; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: .6rem 1.1rem; border-radius: var(--r); }
.mast__cta:hover { background: var(--act); color: #fff; text-decoration: none; }
.drawer { align-self: center; position: relative; }
.drawer summary { list-style: none; cursor: pointer; font-weight: 700; padding: .55rem .9rem; border: 2px solid var(--ink); border-radius: var(--r); min-height: 44px; display: flex; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer[open] summary { background: var(--ink); color: #fff; }
.drawer__list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); min-width: 230px; z-index: 20; box-shadow: var(--shadow); padding: .4rem; }
.drawer__list a { display: block; padding: .7rem .8rem; color: var(--ink); text-decoration: none; font-weight: 650; border-radius: 4px; }
.drawer__list a:hover { background: var(--act-soft); }
@media (min-width: 980px) {
  .tabs { display: flex; }
  .mast__cta { display: inline-block; }
  .drawer { display: none; }
}

/* ---- index card ---- */
.icard { position: relative; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); padding: 1.2rem 1.1rem 1.3rem 2.7rem;
  background-image: linear-gradient(90deg, transparent 1.85rem, var(--margin) 1.85rem, var(--margin) calc(1.85rem + 2px), transparent calc(1.85rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0, transparent calc(2.05rem - 1px), var(--rule-soft) calc(2.05rem - 1px), var(--rule-soft) 2.05rem);
  background-position: 0 0, 0 4.1rem; }
.icard__head { border-bottom: 2px solid var(--rule); padding-bottom: .7rem; margin-bottom: .9rem; background: var(--card); }
.icard__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin: .35rem 0 .2rem; }
.icard__intro { color: var(--ink-2); margin: 0; }
.icard__empty { color: var(--muted); font-style: italic; }
.icard--ghost { display: grid; place-content: center; min-height: 220px; padding: 1.6rem 1.4rem 1.6rem 2.8rem; color: var(--ink-2); font-size: 1.25rem; }
.icard--ghost .hand { font-size: 1.5rem; }
.chip { display: inline-block; font-family: var(--mono); font-size: .76rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid var(--ink-2); color: var(--ink-2); border-radius: 999px; padding: .12em .65em; margin: 0; background: var(--card); white-space: nowrap; }

/* the numbered step rail (GOV.UK step-by-step idea, IKEA numerals) */
.rail { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rail__step { position: relative; display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; padding: 0 0 1.1rem; }
.rail__step:not(:last-child)::before { content: ""; position: absolute; left: 1.25rem; top: 2.7rem; bottom: .2rem; width: 2px; background: var(--rule); }
.rail__no { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; font: 800 1.25rem/1 var(--f);
  background: var(--card); font-variant-numeric: tabular-nums; }
.rail__body { min-width: 0; padding-top: .25rem; }
.rail__do { font-size: 1.12rem; font-weight: 650; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.rail__see, .rail__oops { margin: 0 0 .25rem; color: var(--ink-2); overflow-wrap: anywhere; }
.rail__oops .lbl { color: var(--margin); }
.rail__pic { display: block; margin: .5rem 0 .2rem; border: 2px solid var(--line); border-radius: 4px; max-height: 360px; width: auto; }
.margin-notes { list-style: none; margin: .45rem 0 0; padding: 0; }
.mn { position: relative; font-family: var(--hand); font-size: 1.12rem; line-height: 1.3; color: #8a2f22; margin: .2rem 0; padding-left: 1.3rem; }
.mn::before { content: "✎"; position: absolute; left: 0; top: 0; font-family: var(--f); }
.mn--see { color: var(--act-2); }
.mn--grade, .mn--many { color: var(--ink-2); }

/* ---- hero ---- */
.hero { padding: 2.4rem 0 3rem; background:
  radial-gradient(1200px 400px at 85% 10%, rgba(255, 228, 92, .35), transparent 60%), var(--paper); }
.hero__grid { display: grid; gap: 2.4rem; align-items: center; }
.hero__kicker { color: var(--margin); font-size: 1.4rem; margin: 0 0 .4rem; }
.hero__h { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); line-height: 1.04; letter-spacing: -.025em; margin-bottom: .45em; }
.hero__price { font-size: .98rem; color: var(--muted); margin-top: 1rem; }
/* v1.0.1 (WC-B3): Atkinson's slashed zero read as a struck-out price at phone width; prices here use the hand face's plain 0 */
.hero__price .amt { font-family: var(--hand); font-size: 1.22em; color: var(--ink); letter-spacing: .02em; }
/* v1.0.1 (WC-B1): the hero line gets a hand-drawn red pen underline, not a highlighter */
.ul { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 60 2, 120 11, 180 6 S 270 3, 298 7' fill='none' stroke='%23d9604c' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .32em no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; padding-bottom: .14em; }
.hero__art { position: relative; padding: 0 0 1.5rem; }
.stack { position: relative; max-width: 520px; margin: 0 auto; }
.stack__under { position: absolute; inset: 14px -10px -14px 14px; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); transform: rotate(3.2deg);
  background-image: repeating-linear-gradient(180deg, transparent 0, transparent calc(2.05rem - 1px), var(--rule-soft) calc(2.05rem - 1px), var(--rule-soft) 2.05rem); }
.icard--hero { transform: rotate(-1.6deg); }
.sticky { position: absolute; right: -6px; bottom: -14px; width: 170px; background: var(--hl); padding: .8rem .9rem; font-size: 1.25rem; line-height: 1.15; transform: rotate(4deg);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); margin: 0; color: var(--ink); }
@media (min-width: 900px) {
  .hero { padding: 4rem 0 4.6rem; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .sticky { right: -30px; }
}

/* ---- bands / sections ---- */
.band { padding: 3.2rem 0; }
.band--rule { background: var(--card); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band--ink { background: var(--ink); color: #eef0f4; }
.band--ink .sect-h { color: #fff; }
.band--ink b { color: var(--hl); }
.sect-h { max-width: 24em; }
.sect-h .muted { color: var(--muted); font-weight: 600; }
.sect-lede { font-size: 1.12rem; color: var(--ink-2); max-width: 44em; }
.split { display: grid; gap: 2.2rem; align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.2rem; }
  .split--flip .split__art { order: 0; }
}
.trail { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.trail__step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: start; }
.trail__no { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; font: 800 1.7rem/1 var(--f); color: var(--ink);
  border: 3px solid var(--ink); background: var(--hl); }
.trail__step h3, .trail__step h2 { margin: .45rem 0 .3rem; font-size: 1.3rem; }
.trail--long .trail__step { padding-bottom: .4rem; border-bottom: 1px dashed var(--line); }
@media (min-width: 900px) { .trail:not(.trail--long) { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* phone frame for the walk preview */
.phone { width: min(320px, 100%); margin: 0 auto; border-radius: 38px; background: #0e1219; padding: 14px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); border: 2px solid #3a4152; }
.phone__screen { background: var(--card); color: var(--ink); border-radius: 26px; min-height: 470px; padding: 2rem 1.3rem 1.3rem; display: flex; flex-direction: column; }
.phone__count { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.phone__do { font-size: 1.65rem; line-height: 1.2; font-weight: 800; }
.phone__see { color: var(--ink-2); font-size: 1.08rem; }
.phone__nav { margin-top: auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; }
.phone__btn { display: grid; place-items: center; min-height: 58px; border-radius: 12px; background: var(--act); color: #fff; font-weight: 800; font-size: 1.15rem; }
.phone__btn--back { background: transparent; color: var(--act); border: 2px solid var(--act); }

/* starter shelf */
.shelf { list-style: none; margin: 1.4rem 0 1.4rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.shelf__card { display: flex; flex-direction: column; gap: .55rem; height: 100%; padding: 1rem 1rem 1rem 1.5rem; background: var(--card); color: var(--ink); text-decoration: none;
  border-radius: 4px; box-shadow: var(--shadow); border-left: 4px solid var(--margin); transition: transform .12s ease; }
.shelf__card:hover { transform: translateY(-3px) rotate(-.4deg); color: var(--ink); text-decoration: none; }
.shelf__card .chip { align-self: flex-start; }
.shelf__t { font-weight: 750; font-size: 1.12rem; line-height: 1.25; }
.shelf__n { color: var(--muted); font-size: .92rem; margin-top: auto; }

/* price tags */
.tags { display: grid; gap: 1.2rem; margin: 1.6rem 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tag { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 6px 6px 6px 6px; padding: 1.4rem 1.2rem 1.2rem; }
.tag::before { content: ""; position: absolute; top: 14px; right: 16px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.tag--pass { background: #fff8d0; box-shadow: 8px 8px 0 var(--ink); }
.tag__name { font-weight: 800; font-size: 1.3rem; margin: 0 0 .2rem; }
.tag__price { font-size: 1.05rem; margin: 0 0 .8rem; }
.tag__price .num { font-size: 1.9rem; }
.tag__or { display: block; color: var(--ink-2); }
.tag__or .num { font-size: 1.05rem; }
.tag__preview { display: inline-block; font-family: var(--hand); font-size: 1.2rem; background: var(--hl); padding: .05em .5em; transform: rotate(-2deg); margin: .4rem 0 0; }
.ticks { list-style: none; margin: 0 0 1rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin: .35rem 0; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .75rem; height: .42rem; border-left: 2.5px solid var(--act); border-bottom: 2.5px solid var(--act); transform: rotate(-45deg); }
.price-line { font-weight: 700; }
.price-line--pou { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r); padding: .55rem .9rem; display: inline-block; font-size: .98rem; }

/* help band */
.helpband { background: var(--act); color: #fff; padding: 2.4rem 0; }
.helpband h2 { color: #fff; }
.helpband p { color: #e3f1ee; max-width: 40em; }
.helpband__in { display: grid; gap: 1.2rem; align-items: center; }
.helpband .btn--ink { border-color: #fff; }
@media (min-width: 900px) { .helpband__in { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---- inner pages ---- */
.sheet { padding: 2.4rem 0 3.4rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.h-card { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.callout { background: #fff8d0; border-left: 5px solid var(--hl); padding: .9rem 1rem; border-radius: 4px; }
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.2rem 1.1rem; margin: 0 0 1.2rem; }
.panel__h { font-size: 1.2rem; margin-bottom: .6rem; }
.panels { display: grid; gap: 1.2rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.panels .panel { margin: 0; }
.field { display: block; margin: 0 0 .9rem; }
.field__l { display: block; font-weight: 700; margin-bottom: .25rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], textarea, select { width: 100%; font: 400 1.05rem/1.45 var(--f); color: var(--ink); background: #fff; border: 2px solid #8d8778; border-radius: 4px; padding: .6rem .7rem; min-height: 48px; }
textarea { resize: vertical; }
input[type=text]:focus, textarea:focus, select:focus { border-color: var(--ink); outline: 3px solid var(--hl); outline-offset: 0; box-shadow: none; }
input[type=file] { max-width: 100%; font: inherit; }
.errors { background: #fbe6e1; border: 2px solid var(--danger); color: #5f1d14; padding: .8rem 1rem; border-radius: var(--r); margin-bottom: 1rem; }
.errors p { margin: .2rem 0; }
.flash { display: inline-block; background: var(--act-soft); border: 2px solid var(--act); color: var(--act-2); padding: .5rem .9rem; border-radius: var(--r); font-weight: 700; }
.crumbs { margin-bottom: 1rem; font-weight: 650; }
.note-card { max-width: 640px; margin: 1rem auto; background: var(--card); box-shadow: var(--shadow); border-top: 6px solid var(--margin); padding: 1.6rem 1.4rem; border-radius: 4px; }
.note-card__no { font-family: var(--mono); color: var(--margin); font-weight: 700; margin: 0 0 .4rem; }
.note-card--done { border-top-color: var(--act); }
.result__grade { font-size: 1.15rem; margin: 0 0 .6rem; }
.result__grade .num { font-size: 1.8rem; padding: 0 .2em; }
.result__grade span { color: var(--muted); }
.result .icard { margin-top: 1rem; }
.chipline { background: var(--act-soft); padding: .5rem .7rem; border-radius: 4px; }

/* deck */
.keep { background: #fff8d0; border: 2px solid var(--ink); border-radius: var(--r); padding: 1.1rem 1.1rem .4rem; margin: 0 0 1.6rem; box-shadow: 6px 6px 0 var(--ink); }
.keep__h { font-size: 1.25rem; }
.keep__url { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.keep__url code { background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: .35rem .55rem; font-size: .95rem; overflow-wrap: anywhere; word-break: break-all; max-width: 100%; }
.deckhead { display: grid; gap: 1rem; align-items: end; margin: .5rem 0 1rem; }
.deckhead h1 { margin-bottom: .2rem; }
.deckhead__new { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.deckhead__new .field { flex: 1 1 240px; margin: 0; }
@media (min-width: 900px) { .deckhead { grid-template-columns: 1fr minmax(380px, 460px); } }
.deckgrid { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.deckcard { display: flex; flex-direction: column; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); border-left: 4px solid var(--margin); }
.deckcard__main { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem .6rem 1.2rem; color: var(--ink); text-decoration: none; flex: 1; }
.deckcard__main:hover { color: var(--ink); background: #fffbe9; }
.deckcard__main .chip { align-self: flex-start; }
.deckcard__t { font-weight: 750; font-size: 1.12rem; line-height: 1.25; overflow-wrap: anywhere; }
.deckcard__n { color: var(--muted); font-size: .92rem; }
.deckcard__links { display: flex; border-top: 1.5px solid var(--rule-soft); }
.deckcard__links a { flex: 1; text-align: center; padding: .6rem .3rem; font-weight: 700; text-decoration: none; min-height: 44px; }
.deckcard__links a + a { border-left: 1.5px solid var(--rule-soft); }
.deckcard__links a:hover { background: var(--act-soft); }
.fold { margin: 1.2rem 0; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); }
.fold summary { cursor: pointer; padding: .9rem 1rem; font-weight: 750; min-height: 48px; }
.starters-pick { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: .5rem; }
.starters-pick form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.sp__t { flex: 1 1 200px; font-weight: 650; }
.inline-forms { display: flex; flex-wrap: wrap; gap: .5rem; }
.cardview { display: grid; gap: 1.6rem; }
@media (min-width: 980px) { .cardview { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .cardview__side { position: sticky; top: 1rem; } }
.stackbtns { display: grid; gap: .5rem; }
.danger-zone { margin-top: 1rem; }

/* editor */
.editor__top { display: grid; gap: 0 1rem; }
@media (min-width: 720px) { .editor__top { grid-template-columns: 1fr 230px; } }
.rows { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .9rem; }
.row { display: grid; grid-template-columns: 2.4rem 1fr; gap: .7rem; background: var(--card); border: 1.5px solid var(--line); border-left: 4px solid var(--rule); border-radius: 4px; padding: .9rem .9rem .1rem .7rem; }
.row__no { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; font-weight: 800; background: var(--card); }
.row__f { border: 0; margin: 0; padding: 0; min-width: 0; }
.row__pair { display: grid; gap: 0 .8rem; }
@media (min-width: 720px) { .row__pair { grid-template-columns: 1fr 1fr; } }
.picrows { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.picrow { display: grid; gap: .5rem; padding: .7rem 0; border-top: 1px dashed var(--line); }
.picrow__no { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 2px solid var(--ink); font-weight: 800; font-size: .9rem; margin-right: .3rem; }
.picrow__img { max-height: 160px; width: auto; border: 2px solid var(--line); border-radius: 4px; }
.picrow__acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.picrow__acts form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; }
.upl__l { max-width: 100%; }

/* ---- walk me through it ---- */
.is-walk { background: var(--card); }
.walk { padding: 1.4rem 0 3rem; }
.walk__in { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.walk__top { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; font-weight: 700; margin-bottom: 2rem; }
.walk__title { color: var(--muted); font-weight: 600; }
.walk__count { font-family: var(--mono); font-weight: 650; color: var(--margin); font-size: 1.05rem; margin-bottom: .5rem; }
.walk__bar { display: block; width: 100%; height: 10px; border: 0; border-radius: 99px; background: var(--rule-soft); overflow: hidden; margin: 0 0 1.6rem; appearance: none; -webkit-appearance: none; }
.walk__bar::-webkit-progress-bar { background: var(--rule-soft); border-radius: 99px; }
.walk__bar::-webkit-progress-value { background: var(--act); border-radius: 99px; }
.walk__bar::-moz-progress-bar { background: var(--act); border-radius: 99px; }
.walk__do { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); line-height: 1.15; font-weight: 800; margin-bottom: .8em; overflow-wrap: anywhere; }
.walk__see, .walk__oops { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); line-height: 1.4; color: var(--ink-2); }
.walk__oops .lbl { color: var(--margin); }
.walk__see .lbl, .walk__oops .lbl { display: block; font-size: .9rem; margin-bottom: .2rem; }
.walk__tip { font-size: 1.3rem; color: var(--ink-2); }
.walk__pic { display: block; margin: 0 0 1.4rem; border: 3px solid var(--line); border-radius: 6px; max-height: 60vh; width: auto; }
.walk__note { font-size: 2rem; background: var(--hl); display: inline-block; padding: .2em .6em; transform: rotate(-1.2deg); }
.walk__nav { display: grid; grid-template-columns: 1fr 1.5fr; gap: .8rem; margin-top: 2.2rem; }
.walk__btn { display: grid; place-items: center; min-height: 72px; border-radius: 14px; font-size: 1.45rem; font-weight: 800; text-decoration: none; background: transparent; color: var(--act); border: 3px solid var(--act); }
.walk__btn:hover { background: var(--act-soft); text-decoration: none; }
.walk__btn--go { background: var(--act); color: #fff; }
.walk__btn--go:hover { background: var(--act-2); color: #fff; }
.walklist { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .8rem; }
.walklist li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.walklist__a { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; min-height: 72px; border: 3px solid var(--act);
  border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.walklist__a:hover { background: var(--act-soft); color: var(--ink); }
.walklist__t { font-size: 1.45rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.walklist__p { display: grid; place-items: center; padding: 0 1rem; font-weight: 700; border: 2px solid var(--line); border-radius: 14px; text-decoration: none; }

/* ---- print pages ---- */
.printbar { background: var(--ink); color: #fff; padding: .7rem 0; }
.printbar a { color: #fff; font-weight: 700; }
.printbar__in { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.printbar__pick { display: flex; gap: .3rem; flex-wrap: wrap; }
.printbar__pick a { padding: .35rem .7rem; border-radius: 4px; border: 1.5px solid #6b7488; text-decoration: none; }
.printbar__pick a[aria-current="page"] { background: var(--hl); color: var(--ink); border-color: var(--hl); }
.printbar .muted { color: #c4cad6; }
.is-print .mast, .is-print .base { display: none; }
.is-print { background: #e9e4d8; }
.paper { background: #fff; color: #000; margin: 1.6rem auto; box-shadow: var(--shadow); padding: 1.4rem 1.2rem; }
.paper--big { max-width: 8.5in; }
.paper--pocket { max-width: 6in; border: 1px dashed #999; background-image: repeating-linear-gradient(180deg, transparent 0, transparent 23px, #dbe8f5 23px, #dbe8f5 24px); }
.paper__head { border-bottom: 3px solid #000; margin-bottom: 1rem; padding-bottom: .6rem; }
.paper__title { font-size: 2.2rem; margin: .4rem 0 .2rem; }
.paper__intro { font-size: 1.3rem; margin: 0; }
.paper__steps { list-style: none; margin: 0; padding: 0; }
.pstep { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #bbb; break-inside: avoid; page-break-inside: avoid; }
.pstep__no { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border: 3px solid #000; border-radius: 50%; font: 800 1.8rem/1 var(--f); -webkit-text-stroke: 0; }
.pstep__do { font-size: 1.55rem; font-weight: 750; line-height: 1.25; margin: .3rem 0 .4rem; }
.pstep__see, .pstep__oops { font-size: 1.25rem; margin: 0 0 .3rem; }
.pstep__pic { max-height: 3.2in; width: auto; border: 1px solid #888; margin-top: .3rem; }
.paper__note { font-size: 1.7rem; margin: 1rem 0 0; }
.paper__foot { font-size: .8rem; color: #555; margin: 1rem 0 0; }
.paper--pocket .paper__title { font-size: 1.35rem; }
.paper--pocket .paper__intro { font-size: 1rem; }
.paper--pocket .pstep { grid-template-columns: 1.9rem 1fr; gap: .5rem; padding: .25rem 0; border: 0; }
.paper--pocket .pstep__no { width: 1.7rem; height: 1.7rem; font-size: 1rem; border-width: 2px; }
.paper--pocket .pstep__do { font-size: 1.02rem; margin: .1rem 0; }
.paper--pocket .paper__note { font-size: 1.15rem; }

/* ---- footer ---- */
.base { background: var(--paper-2); border-top: 2px solid var(--ink); padding: 2.4rem 0 1.6rem; color: var(--ink-2); font-size: .98rem; }
.base__grid { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .base__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.base__name { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.base__price { font-weight: 700; color: var(--ink); }
.base__links { list-style: none; margin: 0; padding: 0; }
.base__links li { margin: .35rem 0; }
.base__made { border-top: 1px solid var(--line); margin: 1.6rem 0 0; padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .shelf__card:hover { transform: none; } }

@media print {
  @page { margin: .5in; }
  .noprint, .mast, .base, .skip, .helpband { display: none !important; }
  body, .is-print { background: #fff; }
  .paper { box-shadow: none; margin: 0 auto; padding: 0; max-width: none; }
  .paper--pocket { width: 6in; height: 4in; overflow: hidden; border: 1px dashed #999; padding: .2in; }
  a { color: #000; text-decoration: none; }
}

/* 390 px: the tilted under-card and sticky note stay inside the page; file pickers wrap */
.hero { overflow-x: clip; }
.picrow, .picrow__acts, .picrow__acts form, .upl__l { min-width: 0; max-width: 100%; }
.upl__l input[type=file] { width: 100%; }
.picrow__txt { overflow-wrap: anywhere; }
@media (max-width: 899px) { .sticky { position: relative; right: auto; bottom: auto; display: block; margin: 1rem 0 0 auto; } }
