/* New House Checklist. Mobile-first; the desktop arrangement starts at 960px.
   The brand is the logo: heavy orange capitals and a black brush script. Pages are white with black ink,
   orange for what matters, a real photo on everything, and a paint chip (colour + icon) for every stage, season and tier.
   Two kinds of page share it: checklists (app-like) and buying guides (editorial). */
:root {
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --sage: #FAF5F1;
  --mint: #FCE9DF;
  --line: #ECE4DD;
  --line-2: #D8CEC5;
  --ink: #1A1714;
  --ink-2: #3D3732;
  --muted: #6B625A;
  --pine: #1A1714;
  --pine-d: #000000;
  --mari: #F47C48;
  --mari-d: #E0632C;
  --cream: #FFF1E8;
  --cream-line: #F8C9AF;
  --amber-ink: #9A3F12;
  --rust: #A3302F;
  --rust-bg: #FBECEA;
  --night: #1A1714;
  --night-line: #38322C;
  --night-ink: #E8E1DA;
  --night-muted: #A89F96;
  --on-pine: #FFFFFF;
  --on-pine-2: #EFE7E0;
  --flash: #FFE3D3;
  --lot: #E6EEE3;
  --lot-ink: #3E5A38;
  --tick: #A89F96;
  --logo-house: var(--pine);
  --logo-wall: rgba(255, 255, 255, 0.5);
  --logo-check: var(--mari);
  --f-disp: "League Spartan", "Arial Black", system-ui, sans-serif;
  --f-hand: "Kaushan Script", "Brush Script MT", cursive;
  --brand: #F47C48;
  --brand-ink: #B4481A;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 14px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: var(--pine); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mari); outline-offset: 2px; }
input[type=checkbox] { accent-color: var(--pine); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pine); color: var(--on-pine); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.page { overflow-x: clip; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
.p-checklist { --tabbar-h: 150px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.disp { font-family: var(--f-disp); font-weight: 800; font-synthesis: none; letter-spacing: -0.022em; line-height: 1.02; margin: 0; text-wrap: balance; }
.kick { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--pine); }
.tape { display: inline-block; background: var(--mari); color: var(--ink); font-family: var(--f-hand); font-weight: 400; font-size: 17px; line-height: 1.2; padding: 3px 12px; border-radius: 2px; transform: rotate(-1.5deg); box-shadow: 0 1px 0 rgba(22, 35, 61, 0.12); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; max-width: 62ch; }
.see { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.label { font-weight: 800; font-size: 15px; }
.sec { margin-top: 44px; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sh h2 { font-size: 26px; margin-top: 4px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.role { display: inline-block; font-size: 12px; font-weight: 700; color: var(--pine); background: var(--mint); border-radius: 6px; padding: 2px 9px; white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform 120ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out; }
.btn:active { transform: scale(0.96); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-pine { background: var(--pine); color: var(--on-pine); }
.btn-mari { background: var(--mari); color: var(--ink); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-check { background: var(--mari); color: var(--ink); gap: 5px; }
.btn-check .at { font-weight: 500; opacity: 0.85; }
.also-at { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; }
.also-at a { font-weight: 700; }
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; transition: border-color 150ms ease-out; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 12px; border-radius: 10px; font-weight: 700; font-size: 14.5px; white-space: nowrap; cursor: pointer; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.chip .ico { color: var(--c, var(--pine)); }
.chip[aria-pressed=true] { background: var(--c, var(--pine)); border-color: var(--c, var(--pine)); color: var(--on-pine); }
.chip[aria-pressed=true] .ico { color: var(--on-pine); }
.rail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gut-l); scrollbar-width: none; margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r)); padding: 2px var(--gut-r) 6px var(--gut-l); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* thumbnails: stand-in photo of the product type, or an icon tile */
.thumb { display: grid; place-items: center; overflow: hidden; background: var(--mint); color: var(--pine); border-radius: 12px; width: 56px; height: 56px; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 88px; height: 88px; border-radius: 16px; }

/* header + search */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { width: 190px; height: auto; }
.mainnav { display: none; }
.search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px; min-height: 52px; padding: 0 14px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search:focus-within { border-color: var(--pine); }
.search-top { display: none; }
.top.searching .search-top { display: flex; order: 5; flex-basis: 100%; margin-bottom: 10px; }
.results { position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 6px); z-index: 40; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 16px 40px rgba(23, 32, 27, 0.16); padding: 6px; max-height: 60vh; overflow-y: auto; }
.results a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.results a small { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.results a.on, .results a:hover { background: var(--sage); }
.noresult { margin: 0; padding: 12px; color: var(--muted); font-size: 14px; }

/* mobile tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--night); box-shadow: 0 -6px 18px rgba(26, 23, 20, 0.22); padding: 7px var(--gut-r) calc(7px + env(safe-area-inset-bottom, 0px)) var(--gut-l); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabbar .ico { width: 26px; height: 26px; padding: 3px 14px; box-sizing: content-box; border-radius: 999px; stroke-width: 2.2; }
.tabbar [aria-current=page] { color: var(--brand); }
.tabbar [aria-current=page] .ico { background: var(--brand); color: var(--night); }

/* hero */
.hero { display: grid; grid-template-areas: "txt" "photo" "stage"; gap: 18px; padding-top: 16px; }
.hero-txt { grid-area: txt; }
.hero h1 { font-size: clamp(38px, 10.5vw, 72px); margin-top: 8px; }
.lede { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; max-width: 36em; }
.hero-photo { grid-area: photo; position: relative; border-radius: 26px; overflow: hidden; min-height: 360px; background: var(--line-2); isolation: isolate; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
.hero-tape { position: absolute; left: 14px; top: 14px; }
.plan { position: absolute; left: 10px; right: 10px; bottom: 10px; background: color-mix(in srgb, var(--card) 97%, transparent); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; box-shadow: 0 10px 30px rgba(23, 32, 27, 0.18); }
.plan-txt { display: grid; gap: 2px; min-width: 0; }
.plan-txt b { font-size: 16px; }
.plan-txt > span { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-date { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.plan-date input { font: inherit; font-size: 14px; color: var(--ink); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 4px 8px; background: var(--card); min-height: 34px; }
.plan-go { grid-column: 1 / -1; }
.hero-stage { grid-area: stage; display: grid; gap: 10px; min-width: 0; }

/* progress ring */
.ring { position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { display: block; }
.ring circle { fill: none; }
.ring-bg { stroke: var(--mint); }
.ring-fg[stroke-dasharray^="0 "] { stroke-opacity: 0; }
.ring-fg { stroke: var(--pine); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dasharray 400ms ease-out; }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; font-family: var(--f-body); font-weight: 800; font-size: calc(var(--size) * 0.26); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-label small { font-size: 0.65em; margin-left: 1px; }
.ring-sm .ring-label { display: none; }

/* home: up next */
.dash { display: grid; gap: 16px; margin-top: 32px; }
.upnext { padding: 18px 16px 4px; }
.upnext h2 { font-size: 26px; }
.task { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.task input, .item > input { width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer; }
.task-txt { display: block; min-width: 0; align-self: start; }
/* each task reads as an item: a heading, then smaller supporting text */
.task-title, .item-title { margin: 0; font-family: var(--f-body); font-weight: 700; font-size: 18.5px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.task-title label, .item-title label { cursor: pointer; }
.task-why, .item-why { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 68ch; }
.task.done .task-title, .item.done .item-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.task.done .gear { display: none; }
.free { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13.5px; color: var(--pine); font-weight: 700; text-decoration: none; justify-self: start; }

/* the editorial pick attached to a task: one quiet row */
.gear { clear: both; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; background: var(--sage); border-radius: 14px; padding: 8px 12px 8px 8px; margin-top: 14px; }
.gear-img { display: block; text-decoration: none; }
.gear .thumb { width: 56px; height: 56px; border-radius: 10px; }
.gear-txt { display: grid; gap: 1px; min-width: 0; }
.gear-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.gear-sub { font-size: 12.5px; color: var(--muted); }
.gear-sub a { color: var(--muted); }
.gear .btn-check { min-height: 36px; padding: 0 12px 0 14px; font-size: 13.5px; }
.gear .btn-check .at, .gcard .btn-check .at { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gear-also { margin: 12px 0 0; font-size: 13.5px; }
.gear-also a { font-weight: 700; }
@media (max-width: 599px) {
  .gear { grid-template-columns: 56px minmax(0, 1fr); }
  .gear .btn-check { grid-column: 2; justify-self: start; margin-top: 4px; }
}

/* home: start-here + phases */
.dash-side { display: grid; gap: 16px; align-content: start; }
.crit-card { padding: 18px 16px; background: var(--cream); border-color: var(--cream-line); }
.crit-card .kick { color: var(--amber-ink); }
.crit-card h2 { font-size: 24px; margin-top: 6px; }
.crit-list { list-style: none; counter-reset: c; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.crit-list li { counter-increment: c; }
.crit-list a { display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 9px 0; color: var(--ink); text-decoration: none; border-top: 1px solid var(--cream-line); }
.crit-list a::before { content: counter(c); grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 6px; background: var(--card); color: var(--amber-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.crit-list b { font-size: 15px; line-height: 1.25; }
.crit-list span { font-size: 13px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.phases { display: grid; gap: 8px; }
.phase { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); }
.phase > span:nth-child(2) { flex: 1; display: grid; line-height: 1.25; }
.phase small { font-size: 13px; color: var(--muted); }
.phase .ico { color: var(--pine); }
.num { width: 36px; height: 36px; border-radius: 8px; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; font-size: 16px; flex: none; }

/* guide cards (home tabs, hub, related) */
.cats { margin-bottom: 12px; }
.cat { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 6px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.cat-ico { width: 30px; height: 30px; border-radius: 7px; background: var(--sage); color: var(--pine); display: grid; place-items: center; }
.cat[aria-selected=true] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.cat[aria-selected=true] .cat-ico { background: rgba(255, 255, 255, 0.14); color: var(--mari); }
.hub-grid { display: grid; gap: 8px; }
.gc { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); min-width: 0; }
.gc .thumb { width: 64px; height: 64px; border-radius: 14px; }
.gc-txt { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.gc-txt b { font-size: 16px; }
.gc-txt span { font-size: 13px; color: var(--ink-2); }
.gc-txt small { font-size: 12px; color: var(--muted); font-weight: 700; }

/* season + maintenance */
.season { display: grid; gap: 14px; }
.season-card { position: relative; display: block; min-height: 320px; border-radius: 14px; overflow: hidden; color: #FFFFFF; text-decoration: none; isolation: isolate; background: var(--night); }
.season-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.season-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 32, 27, 0.05) 0%, rgba(23, 32, 27, 0.45) 35%, rgba(23, 32, 27, 0.9) 100%); }
.season-txt { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: grid; justify-items: start; gap: 8px; }
.season-txt h2 { font-size: 30px; color: #FFFFFF; }
.season-txt p { margin: 0; color: #EEF2ED; font-size: 15px; max-width: 34ch; }
.maint { padding: 18px; background: var(--cream); border-color: var(--cream-line); display: grid; gap: 14px; align-content: start; }
.maint-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.maint .kick { color: var(--amber-ink); }
.maint h3 { font-size: 23px; margin-top: 4px; }
.maint-top img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; }
.maint ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.maint li a { color: var(--ink); font-weight: 600; }

/* trust */
.trust h2 { font-size: 26px; }
.trust-list { list-style: none; counter-reset: t; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.trust-list li { counter-increment: t; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; }
.trust-list li > .ico { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--mint); color: var(--pine); }
.trust-list b { font-size: 15.5px; }
.trust-list span { font-size: 14px; color: var(--muted); }

/* footer */
.foot { margin-top: 56px; background: var(--night); color: var(--night-ink); padding-block: 28px 24px; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; }
.foot-brand { grid-column: 1 / -1; }
.logo-inv img { width: 170px; }
.foot-brand p { color: var(--night-muted); font-size: 14px; margin: 10px 0 14px; max-width: 34ch; }
.foot-h { font-size: 14px; font-weight: 700; color: #FFFFFF; margin: 0 0 6px; }
.foot-in a:not(.logo) { display: block; color: var(--night-ink); text-decoration: none; font-size: 14px; padding: 5px 0; }
.foot-legal { border-top: 1px solid var(--night-line); margin-top: 20px; padding-top: 14px; font-size: 12.5px; color: var(--night-muted); }

/* ---------- checklist pages ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.crumbs a { text-decoration: none; }
.cl-head { display: grid; gap: 16px; padding-top: 14px; }
.cl-head h1 { font-size: clamp(36px, 9.5vw, 62px); margin-top: 8px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.meta-line { display: inline-flex; align-items: center; gap: 6px; }
.meta-actions { display: flex; gap: 8px; }
.cl-photo { position: relative; height: 200px; border-radius: 24px; overflow: hidden; isolation: isolate; }
.cl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cl-photo .tape { position: absolute; left: 12px; bottom: 12px; }
.howto { list-style: none; counter-reset: h; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 32px 1fr; gap: 0 10px; font-size: 14px; color: var(--ink-2); }
.howto-ico { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 8px; background: var(--mint); color: var(--pine); display: grid; place-items: center; }
.howto b { color: var(--ink); font-size: 15px; }

.cl { margin-top: 20px; }
.cl-aside { display: contents; }
.progress { padding: 16px; display: grid; gap: 12px; }
.progress-top { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.progress-top b { display: block; font-family: var(--f-body); font-weight: 800; letter-spacing: -0.02em; font-size: 22px; font-variant-numeric: tabular-nums; }
.next { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.next a { font-weight: 700; }
.crit { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.crit input { width: 20px; height: 20px; flex: none; }
.crit small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.crit .crit-sub { display: block; margin: 2px 0 0; font-size: 12.5px; }
.reset { justify-self: start; background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filters { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 15; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); margin-top: 8px; padding-top: 10px; }
.flt { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 8px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.flt .n { min-width: 24px; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 800; background: var(--sage); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.flt[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.flt[aria-pressed=true] .n { background: var(--mari); color: var(--ink); }

.profile { margin-top: 8px; overflow: hidden; }
.profile summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; color: var(--pine); }
.profile summary::-webkit-details-marker { display: none; }
.profile summary > span { flex: 1; display: grid; color: var(--ink); line-height: 1.25; }
.profile summary small { font-size: 13px; color: var(--muted); }
.profile .chev { color: var(--muted); transition: transform 200ms ease-out; }
.profile[open] .chev { transform: rotate(180deg); }
.prof-in { padding: 0 16px 14px; border-top: 1px solid var(--line); }
.prof-in > p { margin: 12px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.prof-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.yn { display: flex; gap: 4px; background: var(--sage); border-radius: 6px; padding: 3px; flex: none; }
.yn button { border: 0; background: transparent; border-radius: 6px; min-width: 46px; min-height: 32px; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; }
.yn button[aria-pressed=true] { background: var(--pine); color: var(--on-pine); }
.yn button[data-v="0"][aria-pressed=true] { background: var(--ink-2); }
.prof-hidden { font-size: 13px; color: var(--pine); font-weight: 700; margin: 8px 0 0; }
.prof-hidden:empty { display: none; }

.cl-main { display: grid; gap: 12px; margin-top: 8px; min-width: 0; }
.cl-sec { overflow: hidden; scroll-margin-top: 130px; }
.cl-sec-ph { height: 112px; overflow: hidden; }
.cl-sec-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cl-sec.closed .cl-sec-ph { display: none; }
.task-txt .item-ph { width: 76px; height: 76px; }
.item-ph { float: right; width: 76px; height: 76px; margin: 2px 0 8px 14px; border-radius: 12px; overflow: hidden; background: var(--sage); }
.item-ph img { width: 100%; height: 100%; object-fit: cover; }
.item.done .item-ph img, .it.done .item-ph img { filter: grayscale(1); opacity: 0.55; }
.ht-hero { position: relative; margin: 16px 0 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--sage); }
.ht-hero img { width: 100%; height: 100%; object-fit: cover; }
.ht-hero .tape { position: absolute; left: 14px; bottom: 14px; }
.nf-photo { max-width: 620px; margin-bottom: 20px; }
.ht-prose p, .ht-faq p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 12px 0 0; }
.ht-prose ul { margin: 12px 0 0; padding-left: 20px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ht-prose li { margin-top: 6px; }
.ht-prose .tbl { overflow-x: auto; margin: 14px 0 0; }
.ht-prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.ht-prose th { background: var(--cream); text-align: left; }
.ht-prose th, .ht-prose td { border: 1px solid var(--line); padding: 9px 11px; vertical-align: top; }
.ht-faq h3 { font-size: 18px; margin: 20px 0 0; }
.ht-fig { margin: 18px 0 0; }
.ht-fig img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 14px; }
.ht-fig figcaption { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.ht-prose strong, .ht-steps-rich strong, .ht-faq strong, .lede strong { color: var(--ink); font-weight: 700; }
.ht-steps-rich b { display: block; font-size: 17px; color: var(--ink); }
.ht-steps-rich p { margin: 4px 0 0; }
.legacy-body { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--ink-2); overflow-wrap: break-word; }
.legacy-body h2 { font-family: var(--f-disp); font-weight: 800; font-size: 28px; line-height: 1.1; color: var(--ink); margin: 34px 0 10px; }
.legacy-body h3 { font-size: 20px; color: var(--ink); margin: 26px 0 8px; }
.legacy-body h4 { font-size: 17px; color: var(--ink); margin: 20px 0 6px; }
.legacy-body img { height: auto; border-radius: 12px; margin: 14px 0; }
.legacy-body figure { margin: 14px 0; }
.legacy-body figcaption { font-size: 13px; color: var(--muted); }
.legacy-body a:not(.btn) { color: var(--brand-ink); }
.legacy-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.legacy-body .tbl { overflow-x: auto; margin: 16px 0; }
.legacy-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legacy-body th, .legacy-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.arch-card { display: grid; gap: 6px; align-content: start; color: var(--ink); text-decoration: none; }
.arch-ph { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--sage); }
.arch-ph img { width: 100%; height: 100%; object-fit: cover; }
.arch-tag { font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.arch-t { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; }
.arch-h { font-size: 26px; margin-bottom: 14px; }
.cl-sec.is-now { border-color: var(--mari); box-shadow: 0 0 0 2px var(--cream-line); }
.cl-sec-h { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; background: var(--card); }
.sec-toggle { display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.sec-toggle::after { content: ""; position: absolute; inset: 0; }
.sec-toggle:focus-visible { outline: none; }
.sec-toggle:focus-visible::after { outline: 3px solid var(--mari); outline-offset: -3px; border-radius: inherit; }
.cl-sec-t { flex: 1; display: grid; min-width: 0; }
.cl-sec-t h2 { font-size: 21px; }
.cl-sec-t p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.now { font-size: 12.5px; font-weight: 700; background: var(--mari); color: var(--ink); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.count { font-size: 13px; font-weight: 800; color: var(--pine); background: var(--mint); border-radius: 6px; padding: 4px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chev { color: var(--muted); transition: transform 200ms ease-out; }
.sec-toggle[aria-expanded=true] .chev { transform: rotate(180deg); }
.cl-sec.closed .cl-body { display: none; }
.cl-body { padding: 0 16px 4px; border-top: 1px solid var(--line); }
.sec-intro { margin: 14px 0 2px; font-size: 14.5px; color: var(--ink-2); max-width: 68ch; }
.empty { color: var(--muted); font-size: 14px; padding: 14px 0; margin: 0; }

.item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.sec-intro + .item { border-top: 0; }
.item.flash { animation: flash 1600ms ease-out; }
@keyframes flash { 0%, 30% { background: var(--flash); } 100% { background: transparent; } }
.item-main { min-width: 0; overflow-wrap: break-word; }
.done-on { margin-left: 8px; font-family: var(--f-body); font-size: 12px; font-weight: 800; letter-spacing: 0; color: var(--pine); white-space: nowrap; vertical-align: 2px; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.item-meta > span { display: inline-flex; align-items: center; }
.item-meta { column-gap: 14px; }
.item-meta .due { color: var(--amber-ink); }
.item-meta .if { color: var(--pine); font-weight: 600; }
.item.done .item-why, .item.done .item-meta, .item.done .how { opacity: 0.6; }
.item.done .gear { display: none; }
.how { margin-top: 4px; }
.how summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; font-weight: 700; font-size: 13.5px; color: var(--pine); cursor: pointer; min-height: 32px; }
.how summary::-webkit-details-marker { display: none; }
.how summary .ico { transform: rotate(-90deg); transition: transform 200ms ease-out; }
.how[open] summary .ico { transform: none; }
.how-in { margin-top: 6px; padding: 12px 14px; background: var(--sage); border-radius: 14px; font-size: 14.5px; color: var(--ink-2); }
.how-in ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.mistakes { margin-top: 12px; }
.mistakes b { font-size: 13px; color: var(--rust); }
.mistakes ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.src { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.src a { color: var(--muted); }

/* gear list */
.gear-count { font-weight: 800; font-size: 14px; color: var(--pine); background: var(--mint); border-radius: 6px; padding: 6px 12px; }
.gear-grid { display: grid; gap: 10px; }
.gcard { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; align-items: start; transition: opacity 150ms ease-out; }
.gcard-img .thumb { width: 64px; height: 64px; }
.gcard-txt { display: grid; gap: 3px; min-width: 0; }
.gcard-for { font-size: 12px; font-weight: 700; color: var(--muted); }
.gcard h3 { margin: 0; font-size: 17px; }
.gcard h3 a { color: var(--ink); text-decoration: none; }
.gcard-pick { font-size: 14px; font-weight: 700; }
.gcard-alt { font-size: 13px; color: var(--muted); }
.gcard-act { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.have { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.have input { width: 20px; height: 20px; }
.gcard.had { opacity: 0.55; }
.gcard.had .btn-check { display: none; }

.srcs h2 { font-size: 24px; }
.srcs p { color: var(--ink-2); font-size: 14.5px; max-width: 75ch; }
.src-list { font-size: 13.5px; line-height: 1.7; }
.src-list a { color: var(--ink-2); }

.next-cl { display: grid; grid-template-columns: 1fr 120px; min-height: 150px; border-radius: 14px; overflow: hidden; background: var(--pine); color: var(--on-pine); text-decoration: none; isolation: isolate; }
.next-cl > span { padding: 18px; display: grid; align-content: center; gap: 6px; }
.next-cl .kick { color: var(--mari); }
.next-cl b { font-size: 23px; }
.next-cl > span > span:last-child { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--on-pine-2); }
.next-cl img { width: 100%; height: 100%; object-fit: cover; contain: size; }

.actionbar { position: fixed; left: 0; right: 0; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 29; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px var(--gut-r) 8px var(--gut-l); }
.actionbar-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.actionbar-txt b { font-variant-numeric: tabular-nums; }
.actionbar-txt > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- buying guides ---------- */
.guide-page { display: grid; gap: 28px; padding-top: 14px; }
.g-article { min-width: 0; overflow-wrap: break-word; }
.g-head h1 { font-size: clamp(34px, 8.5vw, 56px); margin-top: 8px; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.byline > span { display: inline-flex; align-items: center; gap: 6px; }
.byline a { font-weight: 800; }
.disclose { margin: 12px 0 0; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; max-width: 70ch; }
.g-photo { margin: 20px 0 0; }
.g-photo img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; }
.g-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.quick { margin-top: 24px; }
.quick > h2 { margin: 0 0 10px; }
.g-sec { margin-top: 36px; }
.g-sec > h2, .pick-sec h2 { font-size: 28px; }
.look { list-style: none; counter-reset: l; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.look li { counter-increment: l; display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; }
.look li::before { content: counter(l); grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 8px; background: var(--mint); color: var(--pine); display: grid; place-items: center; font-weight: 800; }
.look b { font-size: 17px; }
.look span { font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.cite { font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cite::before { content: "Source: "; font-weight: 600; }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 12px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 18px; padding: 16px; }
.callout .ico { color: var(--brand-ink); }
.callout p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.pick-sec { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--ink); scroll-margin-top: 90px; }
.best-for { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.mno { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.why li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.why .ico { color: var(--pine); margin-top: 3px; }
.flaws { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.endorse { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.endorse ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.endorse a { font-weight: 700; }
.pick-buy { margin-top: 18px; }
.warnbox { background: var(--rust-bg); border-radius: 20px; padding: 18px; }
.warnbox h2 { font-size: 24px; }
.warnbox p, .warnbox ul { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.warnbox ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0 0; }
.method p { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 70ch; }
.g-aside { display: grid; gap: 14px; align-content: start; min-width: 0; }
.g-aside h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 10px; }
.g-tasks, .g-related { padding: 16px; }
.g-tasks ul { list-style: none; margin: 0; padding: 0; display: grid; }
.g-tasks li { display: grid; padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.3; }
.g-tasks a { font-weight: 800; font-size: 15px; text-decoration: none; color: var(--ink); }
.g-tasks li span { font-size: 12.5px; color: var(--muted); }
.g-related { display: grid; gap: 8px; }
.g-related .gc { border: 0; background: var(--sage); }
.g-related .gc .thumb { width: 48px; height: 48px; border-radius: 12px; }
.g-related .gc-txt > span { display: none; }

.hub-head { padding-top: 14px; }
.hub-head h1 { font-size: clamp(36px, 9vw, 60px); margin-top: 8px; }
.hub-sec { margin-top: 36px; }
.hub-sec h2 { font-size: 24px; margin-bottom: 12px; }

.prose-page { padding-top: 14px; max-width: 860px; }
.prose-page h1 { font-size: clamp(36px, 9vw, 60px); margin-top: 8px; }
.prose { margin-top: 20px; }
.prose h2 { font-family: var(--f-disp); font-weight: 400; letter-spacing: -0.01em; font-size: 26px; margin: 32px 0 8px; scroll-margin-top: 90px; }
.prose p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; max-width: 68ch; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--night); color: #FFFFFF; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(23, 32, 27, 0.3); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* checklist extras */
.how-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 700; font-size: 14px; text-decoration: none; }
.more-lists { margin-top: 12px; }
.filters-h { display: block; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 12px 4px; }
a.flt { text-decoration: none; color: var(--ink); }

/* how-to pages */
.howto-page { display: grid; gap: 28px; padding-top: 14px; }
.ht-article { min-width: 0; max-width: 760px; }
.ht-article h1 { font-size: clamp(32px, 8vw, 52px); margin-top: 8px; }
.ht-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ht-flags .pri { font-size: 12.5px; font-weight: 800; color: var(--rust); background: var(--rust-bg); border-radius: 6px; padding: 3px 10px; }
.ht-flags .if { font-size: 12.5px; font-weight: 700; color: var(--pine); background: var(--mint); border-radius: 6px; padding: 3px 10px; }
.ht-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ht-meta > div { background: var(--card); padding: 12px 14px; }
.ht-meta .ico { color: var(--pine); margin-bottom: 6px; }
.ht-meta dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.ht-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.ht-done { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--mint); font-weight: 700; cursor: pointer; }
.ht-done input { width: 22px; height: 22px; }
.ht-done.done { color: var(--pine); }
.ht-sec { margin-top: 32px; }
.ht-sec > h2 { font-size: 26px; }
.ht-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.ht-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.ht-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 8px; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.ht-gear { margin-top: 14px; display: grid; gap: 8px; }
.ht-gear-h { display: grid; gap: 2px; }
.ht-gear-h b { font-size: 17px; }
.ht-gear-h a { color: var(--ink); }
.ht-gear-h span { font-size: 14px; color: var(--muted); }
.ht-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ht-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ht-list li:first-child { border-top: 0; }
.ht-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.ht-list span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* things-to-buy lists */
.it-sec { margin-bottom: 12px; }
.cl-sec-h.it-h { padding: 16px 16px 4px; min-height: 0; }
.it-list { list-style: none; margin: 0; padding: 0 16px 4px; }
.it { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.it:first-child { border-top: 0; }
.it > input { width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer; }
.it-main { min-width: 0; }
.it-name { margin: 0; font-family: var(--f-body); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -0.015em; }
.it-name label { cursor: pointer; }
.it-why { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 68ch; }
.it.done .it-name { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.it.done .it-why, .it.done .item-meta, .it.done .it-pick { display: none; }
.it.flash { animation: flash 1600ms ease-out; }
.it-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.it-pick a:not(.btn) { font-weight: 700; color: var(--ink); }
.it-pick .btn-check { min-height: 34px; padding: 0 12px; font-size: 13px; }
.it-pick .btn-check .at { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { position: relative; display: block; aspect-ratio: 1 / 1.05; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--line-2); color: #FFFFFF; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 32, 27, 0) 38%, rgba(23, 32, 27, 0.8) 100%); }
.tile-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: grid; line-height: 1.15; }
.tile-cap b, .tile-name { margin: 0; font-size: 16px; font-weight: 700; }
.tile-cap span { font-size: 12.5px; font-weight: 600; opacity: 0.92; }
.tile-ico { position: absolute; left: 10px; top: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--card); color: var(--pine); }
.rooms-grid { margin-top: 24px; }
.buy-grid { display: grid; gap: 14px; }
.day1-list { margin: 10px 0 14px; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.day1-list a { color: var(--ink); font-weight: 600; }
.day1 { background: var(--cream); border-color: var(--cream-line); }

/* my checklist */
.my-grid { display: grid; gap: 14px; margin-top: 24px; }
.my-card { padding: 20px; display: grid; gap: 12px; align-content: start; }
.my-title { font-size: 24px; }
.my-h { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.my-next { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.my-next a { color: var(--ink); font-weight: 600; }
.my-card .btn { justify-self: start; }
.profile-card { padding: 20px; }
.profile-card h2 { font-size: 26px; }
.prof-cols { border: 0; padding: 12px 0 0; display: grid; gap: 2px 32px; }

/* print + app */
.app-top { display: none; }
.progress-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.progress-btns .btn { padding: 0 10px; font-size: 13.5px; }
.take { display: grid; gap: 14px; }
.take-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; align-items: start; }
.take-card h2 { font-size: 24px; }
.take-card p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.take-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--pine); display: grid; place-items: center; }
.take-app { width: 56px; height: 56px; border-radius: 14px; }
.take-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.modal { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(23, 32, 27, 0.35); }
.modal::backdrop { background: rgba(23, 32, 27, 0.55); }
.modal-in { position: relative; padding: 28px 24px 24px; }
.modal-x { position: absolute; right: 14px; top: 14px; }
.app-ico { width: 64px; height: 64px; border-radius: 16px; }
.modal h2 { font-size: 28px; margin-top: 14px; }
.modal-lede { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.app-steps { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }


/* ---------- identity: paint chips, the floor plan, ticks ---------- */
.swatch { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--c); color: #FFFFFF; flex: none; }
.swatch-ink { background: var(--pine); }
.dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--c); color: #FFFFFF; flex: none; }
.hub-h { display: flex; align-items: center; gap: 12px; }
.hub-h .swatch { width: 36px; height: 36px; }

/* custom tick boxes: a drawn square that fills with ink */
.item > input, .task input, .it > input, .ht-done input, .have input, .crit input {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--tick); border-radius: 6px; background: var(--card) center / 16px no-repeat; cursor: pointer; transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.item > input:checked, .task input:checked, .it > input:checked, .ht-done input:checked, .have input:checked, .crit input:checked {
  background-color: var(--pine); border-color: var(--pine);
  background-image: 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.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.crit input, .have input { width: 22px; height: 22px; }

/* task meta: the must-do tag reads like caution tape, the category carries its icon */
.item-meta .pri, .ht-flags .pri { display: inline-flex; align-items: center; padding: 1px 8px 1px 14px; border-radius: 4px; font-size: 12px; font-weight: 800; color: var(--ink); background: linear-gradient(90deg, transparent 6px, var(--mari) 6px), repeating-linear-gradient(135deg, var(--ink) 0 3px, var(--mari) 3px 6px); margin-right: 0; }
.cat-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink-2); }
.cat-tag .ico { color: var(--pine); }
.cat-tag a { color: inherit; }
.ht-flags .cat-tag { font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; }

/* section headers take their chip colour */
.cl-sec { border-top: 4px solid var(--c, var(--line)); }
.cl-sec .count { color: var(--c, var(--pine)); background: color-mix(in srgb, var(--c, var(--pine)) 11%, #FFFFFF); }
.cl-sec-h .swatch { width: 40px; height: 40px; }
.it-h .swatch { width: 36px; height: 36px; }
.flt > .ico { color: var(--muted); margin-left: 4px; }
.flt > span:not(.n):not(.dot) { flex: 1; text-align: left; }
.flt[aria-pressed=true] > .ico { color: var(--on-pine); }
.flt[aria-pressed=true] .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }

/* the paint-chip strip under a list's title: one band per section, in order */
.strip { display: none; }
.strip-band { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 50px; padding: 0 12px; background: var(--c); color: #FFFFFF; text-decoration: none; font-size: 13.5px; line-height: 1.2; }
.strip-band b { font-weight: 700; }
.strip-band span { font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0.85; }

/* the move-in stages as a deck of paint chips */
.pstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l)); padding: 2px var(--gut-r) 6px var(--gut-l); scroll-padding-inline: var(--gut-l); scroll-snap-type: x proximity; }
.pstrip::-webkit-scrollbar { display: none; }
.pchip { scroll-snap-align: start; display: grid; grid-template-rows: 104px auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; }
.pchip-top { position: relative; background: var(--c); color: #FFFFFF; padding: 12px; overflow: hidden; isolation: isolate; }
.pchip-top img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pchip-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 23, 20, 0.28), rgba(26, 23, 20, 0.62)); }
.pchip-no { position: absolute; right: 12px; bottom: 0; font-family: var(--f-disp); font-weight: 800; font-size: 44px; line-height: 1; opacity: 0.92; }
.pchip-txt { display: grid; gap: 2px; padding: 12px; line-height: 1.25; }
.pchip-txt b { font-size: 15px; }
.pchip-txt small { font-size: 13px; color: var(--muted); }
.more-lists { margin-top: 12px; }

/* the floor plan: rooms are links, the grid's gaps are the walls */
.lot { position: relative; display: grid; padding: 44px 14px 14px; border-radius: 16px; background-color: var(--lot); background-image: radial-gradient(color-mix(in srgb, var(--lot-ink) 22%, transparent) 1px, transparent 1.4px); background-size: 12px 12px; }
.fp-yard { position: absolute; left: 14px; top: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--lot-ink); text-decoration: none; font-size: 14px; }
.fp-yard span { font-size: 12.5px; opacity: 0.85; }
.fp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto; grid-template-areas: "bed bed bath office" "living living kitchen kitchen" "entry laundry garage garage"; gap: 3px; padding: 5px; background: var(--ink); border-radius: 2px; box-shadow: 0 1px 0 rgba(22, 35, 61, 0.2), 0 12px 28px -14px rgba(22, 35, 61, 0.45); }
.fp-room { position: relative; display: grid; align-content: start; gap: 1px; min-width: 0; min-height: 82px; padding: 9px 8px; background: var(--card); color: var(--ink); text-decoration: none; transition: background-color 150ms ease-out; }
.fp-room .ico { color: var(--pine); margin-bottom: 4px; }
.fp-room b { font-size: 13px; line-height: 1.15; overflow-wrap: anywhere; }
.fp-room span { font-size: 11.5px; color: var(--muted); }
.fp-room i { display: none; }
.fp-bed { grid-area: bed; } .fp-bath { grid-area: bath; } .fp-office { grid-area: office; } .fp-living { grid-area: living; min-height: 118px; }
.fp-kitchen { grid-area: kitchen; min-height: 118px; } .fp-entry { grid-area: entry; } .fp-laundry { grid-area: laundry; } .fp-garage { grid-area: garage; }
.fp-room::after, .fp-entry::before { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.fp-bed::after { left: 30%; bottom: -3px; width: 30px; height: 3px; background: var(--card); }
.fp-bath::after { left: -3px; bottom: 14px; width: 3px; height: 24px; background: var(--card); }
.fp-kitchen::after { left: -3px; top: 38%; width: 3px; height: 36px; background: var(--card); }
.fp-garage::after { right: 22%; top: -3px; width: 30px; height: 3px; background: var(--card); }
.fp-entry::after { right: 10px; bottom: -5px; width: 26px; height: 5px; background: var(--lot); }
.fp-entry::before { right: 10px; bottom: 0; width: 26px; height: 26px; border: 1.5px solid var(--line-2); border-bottom: 0; border-top-left-radius: 100%; }

.rooms-grid { margin-top: 24px; }

.mainnav a .ico { color: var(--muted); }
.mainnav [aria-current=page] .ico { color: var(--pine); }
.phase .num { background: var(--mint); color: var(--pine); }

/* what owners say: experience next to the official advice */
.owner { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--mari); background: var(--cream); border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 68ch; }
.owner p { margin: 4px 0 0; }
.owner-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--amber-ink); }
.owner-src, .owner-src a { color: var(--muted); font-size: 12px; }
.owner-lg { font-size: 16px; padding: 14px 18px; margin-top: 12px; }
.owner-lg .owner-h { display: none; }
.owner-buy { margin: 0 0 18px; font-size: 14.5px; max-width: none; }
.owner-buy p { margin-top: 8px; }
.it-owner { display: flex; gap: 6px; margin: 8px 0 0; padding: 6px 10px; border-left: 3px solid var(--mari); background: var(--cream); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); max-width: 68ch; }
.it-owner svg { flex: none; margin-top: 2px; color: var(--amber-ink); }
.it.done .it-owner { display: none; }
.item.done .owner { display: none; }

/* product links: bulk packs and supplies-only picks */
.bulk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--pine); }
.it-pick .bulk { flex-basis: 100%; }
.pick-buy .bulk { display: flex; margin-top: 10px; }
.gear-for { font-size: 12px; font-weight: 700; color: var(--muted); }
.gear-solo .gear-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gear-solo .bulk { margin-top: 4px; }

/* "About your house" quiz and its prompt */
.tailor { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 16px; background: var(--cream); border-color: var(--cream-line); }
.tailor.is-set { background: var(--card); border-color: var(--line); }
.tailor-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--pine); color: var(--mari); }
.tailor-txt { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.tailor-txt b { font-size: 16px; }
.tailor-txt span { font-size: 14px; color: var(--ink-2); }
.tailor .btn { grid-column: 1 / -1; justify-self: start; }
.dash-side .tailor { grid-template-columns: 44px minmax(0, 1fr); }
.qz .modal-in { max-height: min(86vh, 760px); overflow-y: auto; }
.qz { width: min(560px, calc(100vw - 32px)); }
.qz-dots { display: flex; gap: 6px; margin: 16px 0 4px; }
.qz-dots span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.qz-dots span.on { background: var(--pine); }
.qz-step-h { margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.qz-q { border: 0; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.qz-q:first-of-type { border-top: 0; }
.qz-q legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 15.5px; margin-bottom: 8px; }
.qz-q legend + .qz-opts { clear: both; }
.qz-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-opt { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 8px; background: var(--card); font-weight: 600; font-size: 14px; cursor: pointer; }
.qz-opt[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.qz-unsure { color: var(--muted); border-style: dashed; }
.qz-result { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--sage); font-size: 15px; line-height: 1.5; }
.qz-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; position: sticky; bottom: -24px; background: var(--card); padding: 10px 0 0; }
.qz-nav [data-qz-next] { margin-left: auto; }
.saved { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2D8A57; flex: none; }
.backup { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; padding: 16px; margin-top: 18px; max-width: 760px; }
.backup .tailor-txt span[data-saved] { font-weight: 700; color: var(--pine); }
.backup-btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.backup-btns label { cursor: pointer; }
@media (min-width: 960px) {
  .tailor { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 18px 22px; }
  .tailor .btn { grid-column: auto; }
  .dash-side .tailor { grid-template-columns: 44px minmax(0, 1fr); }
  .dash-side .tailor .btn { grid-column: 1 / -1; }
}

/* ---------- hover (pointer devices) ---------- */
@media (hover: hover) {
  .btn-pine:hover, .btn-check:hover { background: var(--pine-d); }
  .btn-mari:hover { background: var(--mari-d); }
  .btn-ghost:hover, .iconbtn:hover, .chip:hover, .flt:hover, .cat:hover { border-color: var(--pine); }
  .gc:hover, .phase:hover { border-color: var(--line-2); }
  .tile:hover img { transform: scale(1.04); }
  .fp-room:hover { background: var(--flash); }
  .fp-room:hover .ico { color: var(--ink); }
  .fp-yard:hover b { text-decoration: underline; text-underline-offset: 3px; }
  .strip-band:hover { filter: brightness(1.1); }
  .crit-list a:hover b, .g-tasks a:hover, .gcard h3 a:hover, .lc b a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .mainnav a:hover { color: var(--pine); }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  :root { --gut-l: max(40px, env(safe-area-inset-left, 0px)); --gut-r: max(40px, env(safe-area-inset-right, 0px)); }
  .page, .p-checklist { --tabbar-h: 0px; }
  .tabbar, .actionbar { display: none; }
  .sec { margin-top: 72px; }
  .sh { margin-bottom: 22px; }
  .sh h2 { font-size: 36px; }
  .sub { font-size: 16px; }
  .rail { overflow: visible; margin: 0; padding: 0; }

  .top-in { gap: 16px 24px; min-height: 76px; }
  .logo { margin-right: 0; }
  .logo img { width: 204px; }
  .mainnav { display: flex; gap: 20px; margin-left: 8px; }
  .search-toggle { margin-left: auto; }
  .mainnav a { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; padding: 8px 0; white-space: nowrap; }
  .mainnav [aria-current=page] { color: var(--pine); box-shadow: inset 0 -2.5px 0 var(--mari); }
  .top.searching .search-top { max-width: 640px; margin: 0 auto 14px; border-radius: 12px; min-height: 48px; }
  .top-in { flex-wrap: wrap; }
  .search-top input { font-size: 15px; }
  .app-top { display: inline-flex; flex: none; }
  .take { grid-template-columns: 1fr 1fr; gap: 20px; }
  .howto-page { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; align-items: start; }
  .ht-meta { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .rooms-grid { grid-template-columns: repeat(3, 1fr); }
  .buy-grid { grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
  .my-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .prof-cols { grid-template-columns: 1fr 1fr; }
  .cl-sec-h.it-h { padding: 20px 24px 4px; }
  .it-list { padding: 0 24px 6px; }
  .it-name { font-size: 20px; }
  .take-card { padding: 28px; }
  .take-card h2 { font-size: 28px; }


  .hero { grid-template-columns: 1fr 1.12fr; grid-template-areas: "txt photo" "stage photo"; column-gap: 48px; row-gap: 28px; align-items: end; padding-top: 44px; }
  .hero-stage { align-self: start; }
  .lede { font-size: 19px; margin-top: 18px; }
  .hero-photo { min-height: 560px; border-radius: 32px; }
  .hero-tape { left: 20px; top: 20px; }
  .plan { left: 20px; right: 20px; bottom: 20px; padding: 20px; grid-template-columns: auto 1fr auto; gap: 18px; border-radius: 24px; }
  .plan-txt b { font-size: 19px; }
  .plan-txt > span { font-size: 15px; }
  .plan-go { grid-column: auto; }
  .hero-stage .chips { flex-wrap: wrap; }

  .dash { grid-template-columns: 1fr 380px; gap: 24px; align-items: start; margin-top: 64px; }
  .upnext { padding: 26px 28px 8px; }
  .upnext h2 { font-size: 32px; }
  .task { grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .task-title { font-size: 20px; }
  .crit-card { padding: 24px; }
  .crit-card h2 { font-size: 28px; }
  .phases { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .phase { padding: 18px 20px; border-radius: 20px; }
  .phase b { font-size: 17px; }

  .browse { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
  .cats { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px; margin: 0; }
  .cat { border: 0; border-radius: 14px; min-height: 52px; padding: 0 14px 0 8px; font-size: 15.5px; background: transparent; }
  .cat-ico { width: 34px; height: 34px; border-radius: 10px; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gc { padding: 12px; border-radius: 20px; }
  .gc .thumb { width: 76px; height: 76px; }

  .season { grid-template-columns: 1.5fr 1fr; gap: 24px; }
  .season-card { min-height: 420px; border-radius: 16px; }
  .season-card::after { background: linear-gradient(90deg, rgba(23, 32, 27, 0.92) 0%, rgba(23, 32, 27, 0.78) 50%, rgba(23, 32, 27, 0.15) 100%); }
  .season-txt { left: 36px; bottom: 36px; right: auto; max-width: 400px; gap: 12px; }
  .season-txt h2 { font-size: 42px; }
  .maint { padding: 26px; }
  .maint h3 { font-size: 28px; }

  .trust { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
  .trust h2 { font-size: 30px; }
  .trust-list { grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
  .trust-list li { display: grid; grid-template-columns: 1fr; gap: 6px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
  .trust-list li > .ico { grid-row: auto; margin-bottom: 8px; }

  .foot { margin-top: 80px; padding-block: 52px 32px; }
  .foot-in { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
  .foot-brand { grid-column: auto; }

  /* checklist */
  .cl-head { grid-template-columns: 1fr 440px; gap: 48px; align-items: center; padding-top: 36px; }
  .cl-photo { height: 280px; border-radius: 28px; }
  .cl-sec-ph { height: 170px; }
  .item-ph { width: 116px; height: 116px; margin-left: 22px; }
  .meta { margin-top: 20px; }
  .howto { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
  .howto li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
  .cl { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; margin-top: 28px; }
  .cl-aside { display: grid; gap: 14px; position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
  .progress { padding: 20px; }
  .filters { position: static; background: none; backdrop-filter: none; margin: 0; padding: 0; }
  .filters-in { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px; }
  .flt { border: 0; border-radius: 12px; min-height: 44px; justify-content: space-between; padding: 0 10px 0 12px; font-size: 15px; background: transparent; }
  .flt:hover { background: var(--sage); }
  .flt[aria-pressed=true]:hover { background: var(--pine); }
  .profile { margin: 0; }
  .cl-main { gap: 16px; margin: 0; }
  .cl-sec-h { padding: 18px 24px; min-height: 76px; gap: 14px; }
  .num { width: 36px; height: 36px; font-size: 17px; }
  .cl-sec-t h2 { font-size: 25px; }
  .cl-body { padding: 0 24px 6px; }
  .item { grid-template-columns: 30px 1fr; gap: 14px 22px; padding: 26px 0; }
  .item-title { font-size: 21px; }
  .item-why { font-size: 14px; }
  .gear-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .next-cl { grid-template-columns: 1fr 1fr; grid-template-rows: 240px; border-radius: 16px; }
  .next-cl > span { padding: 0 40px; }
  .next-cl b { font-size: 38px; }

  /* guides */
  .g-photo img { height: 380px; border-radius: 16px; }
  .hub-head { padding-top: 40px; }
  .hub-sec { margin-top: 48px; }
  .hub-sec .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .prose-page { padding-top: 40px; }
}

/* identity, desktop */
@media (min-width: 960px) {
  .mainnav { gap: 0; margin-left: 4px; }
  .mainnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 9px; border-radius: 8px; font-size: 14.5px; }
  .mainnav [aria-current=page] { box-shadow: none; background: var(--card); color: var(--pine); box-shadow: inset 0 -3px 0 var(--mari); border-radius: 8px 8px 0 0; }

  .lot { padding: 52px 22px 22px; border-radius: 20px; }
  .fp-yard { left: 22px; top: 16px; font-size: 15px; }
  .fp { gap: 4px; padding: 7px; }
  .fp-room { min-height: 112px; padding: 14px 14px 26px; }
  .fp-living, .fp-kitchen { min-height: 150px; }
  .fp-room b { font-size: 15.5px; }
  .fp-room span { font-size: 13px; }
  .fp-room i { display: block; position: absolute; right: 10px; bottom: 7px; font-style: normal; font-size: 11.5px; color: var(--tick); letter-spacing: 0.02em; }
  .fp-bed::after, .fp-garage::after { height: 4px; bottom: -4px; }
  .fp-garage::after { top: -4px; bottom: auto; }
  .fp-bath::after, .fp-kitchen::after { width: 4px; left: -4px; }
  .fp-entry::after { bottom: -7px; height: 7px; right: 14px; width: 34px; }
  .fp-entry::before { right: 14px; width: 34px; height: 34px; }
  .fp-entry i { display: none !important; }

  .pstrip { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 10px; }
  .pchip { grid-template-rows: 132px auto; }
  .pchip-top { padding: 14px; }
  .pchip-no { font-size: 60px; right: 14px; bottom: 2px; }
  .pchip-txt { padding: 14px; }
  .more-lists { margin-top: 14px; }

  .rooms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rooms-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; }

  .strip { display: flex; margin-top: 28px; border-radius: 12px; overflow: hidden; }
  .strip + .howto { margin-top: 16px; }
  .cl-head + .wrap > .strip { margin-top: 32px; }
  .cl-sec-h .swatch { width: 44px; height: 44px; }
  .item > input, .task input { margin-top: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* the header row runs out of room on small laptops; the footer still has the app button */
@media (min-width: 900px) and (max-width: 1240px) { .app-top { display: none; } }

/* buying guides: the product is the page */
.thumb.prod { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.thumb.prod img { object-fit: contain; padding: 3px; }
.guide-page { max-width: 1080px; }
.lineup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lineup.n1 { grid-template-columns: minmax(0, 1fr); }
.lc { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lc-shot { display: block; }
.pp { display: grid; place-items: center; aspect-ratio: 1; width: 100%; background: #fff; padding: 10px; box-sizing: border-box; }
.pp img { width: 100%; height: 100%; object-fit: contain; }
.pp-none { background: var(--sage); text-align: center; color: var(--muted); font-size: 16px; }
.lc-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; padding: 4px 12px 14px; }
.lc-txt b { font-size: 16px; line-height: 1.25; }
.lc-txt b a { color: var(--ink); text-decoration: none; }
.lc-for { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.lc-act { margin-top: auto; padding-top: 10px; }
.lc .btn-check .at { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pick-top { display: grid; gap: 16px; }
.pick-shot { display: block; max-width: 340px; width: 100%; justify-self: center; }
.pick-info { min-width: 0; }
.pick-info h2 { margin-top: 6px; }
.pick-info .why { margin-top: 14px; }
.pick-more { display: grid; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pick-more h3 { font-size: 15px; margin: 0 0 8px; letter-spacing: 0.02em; }
.pick-more .endorse { margin-top: 0; }
.item-ph.prod { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.item-ph.prod img { object-fit: contain; padding: 5px; box-sizing: border-box; }
@media (min-width: 900px) {
  .guide-page { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .lineup.n1 { grid-template-columns: minmax(0, 360px); }
  .lineup.n2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
  .lineup.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp { padding: 16px; }
  .lc-txt { padding: 4px 16px 16px; }
  .pick-top { grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
  .pick-info h2 { font-size: 34px; }
  .pick-more { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pick-more:has(> :only-child) { grid-template-columns: 1fr; }
  .g-aside { grid-template-columns: 1fr 2fr; gap: 16px; align-items: start; }
  .g-related { min-width: 0; }
}

/* task card: every block shares the same left and right edge */
.item-top { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 14px; align-items: start; }
.item-head { min-width: 0; }
.item-top .item-ph { float: none; display: block; width: 100%; height: auto; aspect-ratio: 1; margin: 0; }
.item-head .item-why, .item-head .task-why { max-width: none; }
.item .owner { max-width: none; margin-top: 14px; border-radius: 0 14px 14px 0; padding: 12px 16px; }
.item .how { margin-top: 8px; }
/* phones: only the title sits beside the photo, so the text below uses the full width */
@media (max-width: 899px) {
  .item-head { display: contents; }
  .item-top { row-gap: 8px; }
  .item-top .item-title, .item-top .task-title { grid-column: 1; grid-row: 1; }
  .item-top .item-ph { grid-column: 2; grid-row: 1; }
  .item-top .item-why, .item-top .task-why, .item-top .item-meta { grid-column: 1 / -1; margin-top: 0; }
}
@media (min-width: 900px) {
  .item .item-top { grid-template-columns: minmax(0, 1fr) 124px; gap: 24px; }
  .item .owner-body { columns: 2; column-gap: 28px; margin-top: 4px; }
  .item .owner-body p { margin: 0 0 8px; orphans: 2; widows: 2; }
  .item .owner-body p:last-child { margin-bottom: 0; }
  .task .item-top { grid-template-columns: minmax(0, 1fr) 88px; gap: 20px; }
}

/* interface polish */
:root {
  --sh-ring: 0 0 0 1px oklch(0 0 0 / 0.08), 0 1px 2px -1px oklch(0 0 0 / 0.08), 0 2px 6px -2px oklch(0 0 0 / 0.06);
  --sh-ring-up: 0 0 0 1px oklch(0 0 0 / 0.12), 0 2px 4px -1px oklch(0 0 0 / 0.1), 0 8px 16px -6px oklch(0 0 0 / 0.1);
  --img-line: 1px solid oklch(0 0 0 / 0.1);
}

/* type: no stranded last words, headings break evenly, counters don't jiggle */
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, .task-title, .item-title { text-wrap: balance; }
.gear-count { font-variant-numeric: tabular-nums; }

/* depth comes from shadow, so edges stay soft on any background */
.card, .gc, .lc, .iconbtn, .btn-ghost, .chip { border-color: transparent; box-shadow: var(--sh-ring); }
.chip[aria-pressed=true] { box-shadow: none; }
.gc, .lc { transition: box-shadow 150ms ease-out; }
.btn { transition: transform 120ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out; }
.iconbtn, .chip, .flt, .cat { transition: transform 120ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out; }
.tabbar a { transition: transform 120ms ease-out, color 150ms ease-out; }
.tabbar .ico { transition: background-color 150ms ease-out; }
@media (hover: hover) {
  .gc:hover, .lc:hover, .iconbtn:hover, .btn-ghost:hover { box-shadow: var(--sh-ring-up); }
  .chip:not([aria-pressed=true]):hover { box-shadow: var(--sh-ring-up); }
}
@media (max-width: 959px) {
  .flt, .cat { border-color: transparent; box-shadow: var(--sh-ring); }
  .flt[aria-pressed=true], .cat[aria-pressed=true] { box-shadow: none; }
}

/* every control answers a press */
.iconbtn:active, .chip:active, .flt:active, .cat:active, .tabbar a:active { transform: scale(0.96); }
.btn, .iconbtn, .chip, .flt, .cat, .tabbar a { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .btn:active, .iconbtn:active, .chip:active, .flt:active, .cat:active, .tabbar a:active { transform: none; }
}

/* a trailing or leading icon looks lighter than text, so that side gets less padding */
.btn:has(> .ico:last-child) { padding-right: 16px; }
.btn:has(> .ico:first-child) { padding-left: 16px; }
.btn.sm:has(> .ico:last-child) { padding-right: 12px; }
.btn.sm:has(> .ico:first-child) { padding-left: 12px; }

/* nested corners: outer radius = inner radius + the gap between them */
.gear { border-radius: 18px; }
.plan { border-radius: 16px; }
@media (min-width: 960px) {
  .plan { border-radius: 12px; }
  .cats, .filters-in { border-color: transparent; box-shadow: var(--sh-ring); border-radius: 22px; }
  .flt { border-radius: 12px; }
  .cats { border-radius: 24px; }
  /* the sidebar scrolls, so give its cards room for their edges and keep long filter names inside */
  .cl-aside { padding: 3px; margin: -3px; grid-template-columns: minmax(0, 1fr); }
  .filters-in { grid-template-columns: minmax(0, 1fr); }
  .filters, .filters-in { min-width: 0; }
  .flt { min-width: 0; white-space: normal; text-align: left; }
}

/* photos get a faint edge so pale ones don't melt into the white page */
.thumb:not(.prod) img, .item-ph:not(.prod) img, .hero-photo img, .ht-hero img, .arch-ph img { border-radius: inherit; outline: var(--img-line); outline-offset: -1px; }
.ht-fig img, .legacy-body img, .g-photo img, .maint-top img { outline: var(--img-line); outline-offset: -1px; }

/* touch: small controls keep their look but get a 44px target */
@media (pointer: coarse) {
  .btn.sm, .gear .btn-check { position: relative; }
  .btn.sm::after, .gear .btn-check::after { content: ""; position: absolute; inset: -4px 0; }
  .how summary, .free { min-height: 44px; }
  .free { margin-top: 2px; }
  .chip, .flt, .cat { min-height: 44px; }
  .item > input, .task input, .it > input, .ht-done input, .have input, .crit input { position: relative; }
  .item > input::before, .task input::before, .it > input::before, .ht-done input::before, .have input::before, .crit input::before { content: ""; position: absolute; inset: -10px; }
}

/* ---------- finished guides ---------- */
.answer { margin-top: 20px; max-width: 68ch; }
.answer p { margin: 0 0 12px; font-size: 18.5px; line-height: 1.55; color: var(--ink); }
.refs { font-size: 11.5px; line-height: 0; margin-left: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.refs a { color: var(--muted); text-decoration: none; padding: 2px 1px; }
.refs a:hover { color: var(--brand-ink); text-decoration: underline; }
.cmp-wrap { margin-top: 14px; overflow-x: auto; }
.cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.cmp th, .cmp td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.cmp thead th { font-size: 15px; color: var(--ink); border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.proscons { display: grid; gap: 8px; margin-top: 20px; }
.pc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.pc li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.pc .ico { margin-top: 1px; }
.pc-pro .ico { color: var(--pine); }
.pc-con .ico { color: var(--brand-ink); }
.rv { margin-top: 18px; max-width: 68ch; }
.rv p, .choose p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.verdict { margin: 16px 0 0; padding: 14px 16px; background: var(--cream); border-radius: 12px; font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 68ch; }
.choose { max-width: 68ch; }
.choose h3 { margin: 22px 0 6px; font-size: 19px; }
.alts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; max-width: 68ch; }
.alts b { display: block; font-size: 17px; }
.alts span { display: block; margin-top: 3px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.g-sources h3 { margin: 22px 0 8px; font-size: 16px; }
.srcs { margin: 0; padding-left: 28px; display: grid; gap: 5px; font-size: 14px; line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.srcs li { scroll-margin-top: 90px; }
.srcs li:target { background: var(--cream); }
.srcs a { overflow-wrap: anywhere; }
.srcs span { color: var(--muted); }
@media (min-width: 760px) {
  .proscons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
