/* ============================================================================
   Lab Prep Guide — "field guide" theme.
   Warm off-white paper, charcoal text, one cobalt accent. Public Sans body,
   Newsreader for large editorial headings, the system monospace for index
   labels. Thin rules instead of boxes; numbered entries ("01 /") are CSS
   counters, so no markup or copy depends on them.
   Sizes are in rem off an 18px root, so they follow the browser text size.
   Light tokens on :root; dark under the system preference and again under
   [data-theme="dark"].
   ========================================================================= */

:root {
  --bg: #f7f4ee;
  --surface: #fdfbf7;
  --surface-2: #efebe3;
  --art: #f1ece2;
  --text: #1c1b19;
  --text-muted: #46423b;
  --border: #dcd5c8;
  --border-strong: #a9a193;
  --accent: #1f4ea1;
  --accent-hover: #163c7e;
  --accent-ink: #ffffff;
  --accent-soft: #e5ebf5;
  --good: #256236;
  --good-soft: #e3eee5;
  --bad: #a0301d;
  --bad-soft: #f6e3de;
  --warn: #7a4a06;
  --warn-soft: #f4ead8;
  --focus: #1f4ea1;
  --serif: Newsreader, "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 5px;
  --max-width: 1240px;
  --space-section: clamp(3.5rem, 7vw, 5.5rem);
  --ease: .18s ease;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151618; --surface: #1c1e21; --surface-2: #24272b; --art: #ece7dc;
    --text: #eeebe4; --text-muted: #c4bfb5; --border: #34373c; --border-strong: #5a5e66;
    --accent: #93b3ff; --accent-hover: #b6cbff; --accent-ink: #0e1730; --accent-soft: #1f2942;
    --good: #8fd0a1; --good-soft: #1b2e21; --bad: #f29d8c; --bad-soft: #3a211b;
    --warn: #e6b56b; --warn-soft: #33291a; --focus: #93b3ff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #151618; --surface: #1c1e21; --surface-2: #24272b; --art: #ece7dc;
  --text: #eeebe4; --text-muted: #c4bfb5; --border: #34373c; --border-strong: #5a5e66;
  --accent: #93b3ff; --accent-hover: #b6cbff; --accent-ink: #0e1730; --accent-soft: #1f2942;
  --good: #8fd0a1; --good-soft: #1b2e21; --bad: #f29d8c; --bad-soft: #3a211b;
  --warn: #e6b56b; --warn-soft: #33291a; --focus: #93b3ff;
  color-scheme: dark;
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
h1, h2 { font-family: var(--serif); letter-spacing: -.015em; }
h3 { font-family: var(--sans); font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
main { counter-reset: sec; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 46rem; }
.center { margin-top: 2.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; padding: .7rem 1.1rem; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 1rem; color: var(--bg); }

.icon { width: 22px; height: 22px; flex: none; }
.i-sm { width: 18px; height: 18px; }
.flip { transform: scaleX(-1); }

/* Index labels: monospace, uppercase, spaced. */
.kicker, .label, .eyebrow, .stats-title, .foot-title, .path-num, .col-title, .verdict, .deck-count, .count, .read-time {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.kicker::before { content: "LPG /"; content: "LPG /" / ""; color: var(--accent); }
.label { display: block; margin-bottom: .4rem; color: var(--text-muted); }
.lede { max-width: 38rem; margin-top: 1.25rem; color: var(--text-muted); font-size: 1.2rem; line-height: 1.55; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg); }
.brand-mark .icon { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--ease), color var(--ease); }
.nav a:hover { color: var(--accent); box-shadow: inset 0 -2px 0 var(--border-strong); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }

.bar-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text); cursor: pointer; transition: border-color var(--ease), color var(--ease); }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}
.menu-btn { display: none; }

/* Language toggle: both languages always visible; the current one is filled
   and bold, so it never depends on color alone. */
.lang-toggle {
  display: inline-flex; align-items: stretch; min-height: 44px; padding: 3px;
  border: 1.5px solid var(--text); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600; line-height: 1; white-space: nowrap;
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }
.lang-globe { align-self: center; margin: 0 .4rem 0 .45rem; color: var(--text-muted); }
.lang-opt { display: inline-flex; align-items: center; padding: 0 .8rem; border-radius: 3px; color: var(--text-muted); transition: background-color var(--ease), color var(--ease); }
.lang-toggle:hover .lang-opt:not(.is-on) { background: var(--accent-soft); color: var(--accent); text-decoration: underline; }
.lang-opt.is-on { background: var(--text); color: var(--bg); font-weight: 700; }
.lang-code { display: none; }

.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.read-progress span { display: block; width: 0; height: 100%; background: var(--accent); }

/* ----------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .6rem 1.3rem; border-radius: var(--radius-sm); border: 1.5px solid transparent; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-lg { min-height: 54px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-sm { min-height: 44px; padding: .45rem 1rem; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-disabled, .btn-disabled:hover { background: transparent; border: 1.5px dashed var(--border-strong); color: var(--text-muted); cursor: not-allowed; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.text-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
.link-btn { min-height: 44px; padding: .3rem .25rem; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

/* --------------------------------------------------------------- page head */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.page-head h1 { max-width: 44rem; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; }

/* -------------------------------------------------------------------- hero */
.hero { counter-increment: sec; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
.hero .kicker::before { content: "LPG / 01"; content: "LPG / 01" / ""; }
.hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.02; }
.hero .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2.25rem; }
.hero-actions .btn-outline { border-color: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: .22em; padding-left: .6rem; padding-right: .6rem; }
.hero-actions .btn-outline:hover { background: transparent; color: var(--accent-hover); text-decoration-thickness: 2px; }
.badges { display: grid; gap: .55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--text-muted); font-size: .92rem; }
.badges li { display: flex; align-items: flex-start; gap: .55rem; }
.badges .icon { margin-top: .2rem; color: var(--good); }

.stats { padding: 0 0 0 1.75rem; border-left: 1px solid var(--border-strong); }
.stats-title { margin-bottom: 1.1rem; color: var(--text-muted); }
.stats dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 0; }
.stats dl div { display: flex; flex-direction: column-reverse; padding-top: .7rem; border-top: 1px solid var(--border); }
.stats dt { color: var(--text-muted); font-size: .9rem; line-height: 1.35; }
.stats dd { margin: 0 0 .2rem; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stats .badges { border-top: 1px solid var(--border); padding-top: 1.1rem; }

/* ---------------------------------------------------------------- sections
   Each section head carries its index number and a thin rule: the
   recognizable "02 / ————" motif of the guide. */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 2.25rem; }
.section-head h2, .section-head p { max-width: 44rem; }
.section-head::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero) " /"; content: counter(sec, decimal-leading-zero) " /" / "";
  display: block; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--text);
  font-family: var(--mono); font-size: .85rem; font-weight: 600; letter-spacing: .06em; color: var(--accent);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; }
.section-head p { margin-top: .7rem; color: var(--text-muted); font-size: 1.05rem; }
.sub-title { margin: 2.5rem 0 1.25rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }

.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.tile-icon .icon { width: 22px; height: 22px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 2.25rem; }
.tile, .guide-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--text); color: var(--text); text-decoration: none; }
.tile:hover, .guide-card:hover { color: var(--text); }
.tile:hover .tile-title, .guide-card:hover .tile-title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.tile-title { margin-top: .35rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; transition: color var(--ease); }
.tile-text { color: var(--text-muted); font-size: 1rem; line-height: 1.55; }

/* Categories: an index list, numbered. */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 2.25rem; counter-reset: cat; }
.cat { counter-increment: cat; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: .8rem 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; transition: color var(--ease); }
.cat::before { content: counter(cat, decimal-leading-zero); content: counter(cat, decimal-leading-zero) / ""; flex: none; width: 2rem; font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--accent); }
.cat:hover { color: var(--accent); }
.cat:hover .cat-name { text-decoration: underline; text-underline-offset: .2em; }
.cat-icon { display: none; }
.cat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cat-name { font-size: 1.05rem; font-weight: 600; }
.cat-count { color: var(--text-muted); font-size: .88rem; }
.cat-arrow { margin-left: auto; color: var(--accent); transition: transform var(--ease); }
.cat:hover .cat-arrow { transform: translateX(3px); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.25rem; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.3rem 0 1rem; border-top: 1px solid var(--text); }
.step-num { display: block; margin-bottom: .8rem; font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--accent); }
.step-num::before { content: "0"; }
.step-num::after { content: " /"; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: .45rem; color: var(--text-muted); }
.step-link { margin-top: .5rem; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 0 2.25rem; margin: 0; padding: 0; list-style: none; }
.guide-grid .tile-icon { display: none; }
.read-time { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: auto; padding-top: .8rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ notice */
.notice { display: flex; gap: .9rem; align-items: flex-start; max-width: 52rem; margin: 2.5rem 0 0; padding: 1.1rem 1.35rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--text); font-size: .95rem; line-height: 1.6; }
.notice .icon { margin-top: .15rem; color: var(--accent); }
.notice strong { display: block; margin-bottom: .2rem; }
.notice .checklist { margin-top: .5rem; }
.notice h2.label { color: var(--text); }
.page-head + .wrap > .notice:first-child { margin-top: 0; }
.hint-bar { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 2rem; color: var(--text-muted); font-size: .95rem; }
.hint-bar .icon { margin-top: .2rem; }

/* ---------------------------------------------------------------- supplies */
.toolbar { margin-top: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.search { position: relative; flex: 1 1 20rem; max-width: 32rem; }
.search .icon { position: absolute; left: .95rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search input, .field input, .field select { width: 100%; min-height: 50px; padding: .6rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.search input { padding-left: 2.75rem; }
.search input::placeholder { color: var(--text-muted); opacity: 1; }
.search input:focus, .field input:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.count { margin-left: auto; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chip { min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: transparent; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color var(--ease), background-color var(--ease), color var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }

/* Product entries: numbered reference entries on thin rules, not boxed
   shop cards. .card-body is flattened so the index label can sit above the
   picture while the DOM order (and link order) stays the same. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 3.25rem 2.25rem; margin-top: 2rem; counter-reset: entry; }
.card { counter-increment: entry; display: flex; flex-direction: column; gap: .85rem; padding-top: .8rem; border-top: 1px solid var(--text); }
.card-body { display: contents; }
.card .eyebrow { order: -1; display: flex; gap: .45rem; color: var(--text-muted); }
.card .eyebrow::before { content: counter(entry, decimal-leading-zero) " /"; content: counter(entry, decimal-leading-zero) " /" / ""; color: var(--accent); }
.card-media-link { display: block; color: inherit; }
.card-media { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--art); overflow: hidden; transition: border-color var(--ease); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.4rem; transition: transform .22s ease; }
.card:hover .card-media { border-color: var(--border-strong); }
.card:hover .card-media img { transform: scale(1.025); }
.card-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface); color: #1f4ea1; }
.card-icon .icon { width: 30px; height: 30px; }
.card-title { margin-top: .35rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.card-title a, .mini-name a { color: inherit; text-decoration: none; }
.card-title a:hover, .mini-name a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.card-desc { color: var(--text-muted); }
.pick { padding: .15rem 0 .15rem 1rem; border-left: 2px solid var(--accent); font-size: .95rem; line-height: 1.55; }
.pick .label { margin-bottom: .2rem; color: var(--accent); }
.specs dl { margin: 0; font-size: .92rem; }
.specs dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid var(--border); }
.specs dt { color: var(--text-muted); }
.specs dd { margin: 0; text-align: right; font-weight: 600; }

/* "View on Amazon ↗": a clear, full-width outlined action at the end of
   each entry, filled on hover. */
.card-cta { margin-top: auto; width: 100%; justify-content: space-between; min-height: 52px; background: transparent; border: 1.5px solid var(--accent); color: var(--accent); font-size: .92rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.card-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.card-cta.btn-disabled { justify-content: center; border: 1.5px dashed var(--border-strong); color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.card-title + .card-desc { margin-top: -.3rem; }

#featured-wrap { margin-top: 2.5rem; }
.catalog-title { margin-top: 4rem; }
.empty { margin-top: 1.5rem; padding: 2.25rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; color: var(--text-muted); }
.empty p { margin-bottom: 1rem; color: var(--text); font-weight: 600; }
p.empty { margin-top: 1rem; }

/* -------------------------------------------------------------------- find */
.task { margin-top: 2rem; padding: 2rem 0 0; border-top: 1px solid var(--text); }
.task:focus { outline: none; }
.task-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.task-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }
.task-head p { margin-top: .35rem; color: var(--text-muted); }
.task-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.col-title { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--text); }
.col-title.need { color: var(--good); }
.col-title.nice { color: var(--text-muted); }

/* Product rows in lists: dividers, picture, name, reason and a text action. */
.mini-list { display: grid; margin: 0; padding: 0; list-style: none; }
.mini { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .35rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.mini-thumb-link { display: block; grid-row: span 2; color: inherit; }
.mini-thumb { width: 92px; height: 70px; flex: none; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--art); object-fit: contain; padding: 4px; }
.mini-icon { display: grid; place-items: center; grid-row: span 2; width: 60px; height: 60px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.mini-text { min-width: 0; }
.mini-name { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.mini-reason { margin-top: .2rem; color: var(--text-muted); font-size: .95rem; line-height: 1.5; }
.mini .btn { grid-column: 2; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .25em; }
.mini .btn:hover { background: none; color: var(--accent-hover); text-decoration-thickness: 2px; }
.mini .btn-disabled, .mini .btn-disabled:hover { color: var(--text-muted); text-decoration: none; text-transform: none; letter-spacing: 0; font-weight: 600; }

.skip-box { margin-top: 2rem; padding: .95rem 1.2rem; border-left: 3px solid var(--warn); background: var(--warn-soft); }
.skip-box .label { color: var(--warn); }
.task-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; }

.task-picker { display: flex; flex-wrap: wrap; gap: .55rem; }
.task-picker .tile { flex-direction: row; align-items: center; gap: .6rem; height: auto; min-height: 50px; padding: .35rem 1rem .35rem .4rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); transition: border-color var(--ease), background-color var(--ease); }
.task-picker .tile:hover { border-color: var(--accent); }
.task-picker .tile .tile-icon { width: 38px; height: 38px; }
.task-picker .tile .tile-icon .icon { width: 20px; height: 20px; }
.task-picker .tile .tile-title { margin: 0; font-family: var(--sans); font-size: .95rem; font-weight: 600; }
.task-picker .tile:hover .tile-title { text-decoration: none; }
.task-picker .tile .tile-text { display: none; }
.task-picker .tile[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.task-picker .tile[aria-selected="true"] .tile-title { color: var(--bg); font-weight: 700; }
.task-picker .tile[aria-selected="true"] .tile-icon { background: var(--bg); color: var(--text); }

.note-box { margin-top: 3rem; padding: 1.5rem 0 0; border-top: 1px solid var(--text); }
.note-box h2 { font-size: 1.5rem; }
.note-box p { margin-top: .5rem; color: var(--text-muted); }
.note-box .checklist { margin-top: 1rem; }

/* ------------------------------------------------------------------- tools */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 3rem 2.25rem; }
.tool { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 1.4rem; border-top: 1px solid var(--text); }
.tool-head { display: flex; gap: .9rem; align-items: flex-start; }
.tool-head h2 { font-size: 1.5rem; }
.tool-head p { margin-top: .3rem; color: var(--text-muted); font-size: .95rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.hint { color: var(--text-muted); font-size: .92rem; }
.error { color: var(--bad); font-size: .95rem; font-weight: 600; }
.result { display: grid; gap: .5rem; margin-top: auto; }
.result:empty { display: none; }
.result-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding: .85rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.result-row span { color: var(--text); font-weight: 600; }
.result-row strong { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- guides: progress */
.progress-card { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--border); }
.progress-card .label { grid-column: 1 / -1; margin: 0; }
.progress-text { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; white-space: nowrap; }
.progress-bar { height: 8px; border-radius: 2px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.progress-bar span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .25s ease; }
.progress-card .hint { grid-column: 1 / -1; }
.progress-top { display: contents; }

.path-num { color: var(--accent); }
.done-badge { display: none; align-items: center; gap: .3rem; margin-left: auto; padding: .15rem .55rem; border: 1px solid var(--good); border-radius: 3px; background: var(--good-soft); color: var(--good); }
.guide-card.is-done { border-top-color: var(--good); }
.guide-card.is-done .done-badge { display: inline-flex; }
.btn[data-done][aria-pressed="true"] { background: var(--good-soft); border-color: var(--good); color: var(--good); }

/* ------------------------------------------------------ guides: slide deck */
.deck { margin-top: 2rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.deck:focus { outline: none; }
.deck:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.deck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1.4rem 1.75rem 1.2rem; border-bottom: 1px solid var(--border); }
.deck-head .label { color: var(--accent); margin-bottom: .25rem; }
.deck-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.deck-bar { height: 3px; background: var(--surface-2); }
.deck-bar span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s ease; }
.deck-track { min-height: 380px; padding: 2.5rem 1.75rem; }
.slide { max-width: 42rem; margin: 0 auto; animation: fadein .18s ease; }
.slide h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; margin-bottom: .85rem; }
.slide-num { margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid var(--text); font-family: var(--mono); font-size: 1rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.slide-num::after { content: " /"; }
.slide-text { color: var(--text-muted); font-size: 1.1rem; line-height: 1.65; }
.slide-lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; margin-bottom: 1.75rem; }
.slide-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.25rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.slide-icon .icon { width: 28px; height: 28px; }
.slide .ticklist { margin-top: 1.25rem; }
.slide .mini-list { margin-top: .5rem; }
.learn-list { display: grid; margin: .3rem 0 0; padding: 0; list-style: none; counter-reset: learn; }
.learn-list li { counter-increment: learn; display: flex; align-items: baseline; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.learn-list li::before { content: counter(learn, decimal-leading-zero); flex: none; font-family: var(--mono); color: var(--accent); font-size: .85rem; font-weight: 600; }
.finish { text-align: center; }
.finish .slide-icon { margin: 0 auto 1.25rem; background: var(--good-soft); color: var(--good); }
.finish-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1rem; margin-top: 1.75rem; }
.deck-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem 1rem; padding: 1rem 1.75rem; border-top: 1px solid var(--border); background: var(--bg); }
.deck-nav .btn:first-child { justify-self: start; }
.deck-nav [data-next] { justify-self: end; grid-column: 3; }
.deck-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
/* Each dot is a 32px tap target with a small visible mark inside. */
.deck-dot { position: relative; width: 28px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.deck-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: 1.5px solid var(--border-strong); border-radius: 2px; background: transparent; transform: translate(-50%, -50%); transition: background-color var(--ease), border-color var(--ease), width var(--ease); }
.deck-dot:hover::before { border-color: var(--accent); }
.deck-dot[aria-current="step"]::before { width: 20px; border-color: var(--accent); background: var(--accent); }
.deck-count { grid-column: 1 / -1; grid-row: 2; justify-self: center; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.checklist { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: .65rem; }
.checklist .icon { margin-top: .25rem; color: var(--good); }

.ticklist { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.ticklist label { display: flex; align-items: flex-start; gap: .8rem; min-height: 48px; padding: .7rem .25rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background-color var(--ease); }
.ticklist label:hover { background: var(--accent-soft); }
.ticklist input { flex: none; width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--accent); cursor: pointer; }
.ticklist input:checked + span { color: var(--text-muted); text-decoration: line-through; }

.q { margin: 0; padding: 0; border: 0; }
.q legend { padding: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; }
.q-opts { display: grid; gap: .6rem; margin-top: 1.25rem; }
.q-opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 54px; padding: .75rem 1.1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
.q-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.q-opt:disabled { cursor: default; color: var(--text); }
.q-opt.is-correct { border-color: var(--good); background: var(--good-soft); font-weight: 600; }
.q-opt.is-correct::after { content: "✓"; content: "✓" / ""; color: var(--good); font-weight: 700; }
.q-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.q-opt.is-wrong::after { content: "✕"; content: "✕" / ""; color: var(--bad); font-weight: 700; }
.q-feedback { margin-top: 1.1rem; font-weight: 700; }
.q-feedback.ok { color: var(--good); }
.q-feedback.no { color: var(--bad); }
.q-why { margin-top: .3rem; color: var(--text-muted); }

.guide-supplies h3 { margin-bottom: .85rem; }

/* --------------------------------------------------------------- explorer */
.explorer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 2.5rem; align-items: start; }
.explorer-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--text); }
.explorer-tabs button { display: flex; align-items: center; gap: .75rem; min-height: 54px; padding: .6rem .9rem; border: 0; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 1rem; font-weight: 500; text-align: left; cursor: pointer; transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
.explorer-tabs button:hover { color: var(--accent); background: var(--accent-soft); }
.explorer-tabs button[aria-selected="true"] { border-left-color: var(--accent); background: var(--surface-2); color: var(--text); font-weight: 700; }
.explorer-tabs .icon { color: var(--accent); }
.explorer-panel { padding: 1.4rem 0 0; border-top: 1px solid var(--text); animation: fadein .18s ease; }
.ex-head h3 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
.ex-head p { margin-top: .4rem; color: var(--text-muted); }
.ex-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.25rem; margin-top: 1.5rem; }
.need-label { color: var(--good); }
.nice-label { color: var(--text-muted); }
.hero-list { margin: 0; padding: 0; list-style: none; display: grid; border-top: 1px solid var(--border); }
.hero-list li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.hero-thumb { width: 52px; height: 42px; flex: none; border: 1px solid var(--border); border-radius: 3px; background: var(--art); object-fit: contain; padding: 3px; }
.hero-list .icon { color: var(--good); }
.ex-skip { margin: 1.5rem 0 .75rem; padding: .8rem 1rem; border-left: 3px solid var(--warn); background: var(--warn-soft); color: var(--text); font-size: .95rem; }
.ex-skip strong { color: var(--warn); }

/* ------------------------------------------------------------ myth / fact */
.myths { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
button.myth { display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; min-height: 200px; padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--ease), background-color var(--ease); }
button.myth:hover { border-color: var(--accent); }
.myth-q { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.myth-hint { display: inline-flex; align-items: center; gap: .45rem; color: var(--accent); font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.myth-back { display: grid; gap: .5rem; animation: fadein .18s ease; }
.myth-back span:last-child { color: var(--text-muted); }
.verdict { justify-self: start; padding: .2rem .6rem; border: 1px solid currentColor; border-radius: 3px; }
.verdict.fact { background: var(--good-soft); color: var(--good); }
.verdict.myth { background: var(--bad-soft); color: var(--bad); }
button.myth.is-open { background: var(--bg); }

/* --------------------------------------------------------------------- faq */
.faq-search { max-width: none; margin: 0 0 .5rem; }
.faq { display: grid; margin-top: 1.25rem; border-top: 1px solid var(--text); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: 1rem .15rem; font-size: 1.1rem; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; transition: color var(--ease); }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { width: 22px; height: 22px; color: var(--accent); transition: transform var(--ease); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 .15rem 1.3rem; color: var(--text-muted); }
.faq-a p + p { margin-top: .4rem; }

/* ------------------------------------------------------------------- prose */
.prose { padding-bottom: 1rem; }
.prose h2 { margin: 2.75rem 0 .7rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 1.65rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose .checklist { color: var(--text-muted); }
.contact { margin-top: 1.5rem; color: var(--text-muted); }
.contact a { font-weight: 600; }
.updated { margin-top: 2.5rem; color: var(--text-muted); font-size: .9rem; }
.words li strong { color: var(--text); }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 3rem; padding: 3.5rem 0 2.75rem; border-top: 1px solid var(--text); background: var(--surface-2); color: var(--text-muted); font-size: .95rem; }
.site-footer .brand, .site-footer .brand:hover { color: var(--text); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.foot-brand p { margin-top: .9rem; max-width: 28rem; }
.foot-title { margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-strong); color: var(--text); }
.site-footer ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.foot-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-strong); font-size: .9rem; }
.foot-copy { margin-top: .6rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; }
.noscript { padding: 3rem 1.5rem; }

/* One-line Amazon disclosure placed just before a page's first affiliate links. */
.aff-line { display: flex; align-items: flex-start; gap: .5rem; max-width: 52rem; margin: -1rem 0 1.75rem; color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.aff-line .icon { margin-top: .15rem; color: var(--accent); }
.aff-line a { font-weight: 600; }
.task-picker + .aff-line { margin: 1.5rem 0 0; }
.slide .aff-line { margin: 0 0 .25rem; }
.foot-note strong { color: var(--text); }

/* -------------------------------------------------------------- responsive
   Breakpoints are in em, so they also react when a visitor enlarges text. */
@media (max-width: 75em) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: .5rem 1.5rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--text); }
  .nav a { min-height: 54px; padding: 0 .25rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; box-shadow: none; }
  .nav a:hover { box-shadow: none; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 1rem; }
  .site-header.nav-open .nav { display: flex; }
  .bar-actions { margin-left: auto; }
}

@media (max-width: 56em) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .stats { padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--text); }
  .steps { grid-template-columns: 1fr; }
  .task-cols, .ex-cols { grid-template-columns: 1fr; }
  .explorer { grid-template-columns: 1fr; gap: 1.5rem; }
  .explorer-tabs { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--border); }
  .explorer-tabs button { flex: none; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .explorer-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 40em) {
  html { font-size: 106.25%; }
  .wrap { padding: 0 1.1rem; }
  .bar { gap: .6rem; min-height: 68px; }
  .brand { font-size: .82rem; letter-spacing: .06em; gap: .5rem; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-mark .icon { width: 16px; height: 16px; }
  .bar-actions { gap: .35rem; }
  .lang-full { display: none; }
  .lang-code { display: inline; }
  .lang-opt { padding: 0 .6rem; }
  .lang-globe { display: none; }
  .hero h1 { max-width: none; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-outline { justify-content: center; }
  .deck { margin-left: -.35rem; margin-right: -.35rem; }
  .deck-head, .deck-nav { padding-left: 1rem; padding-right: 1rem; }
  .deck-track { min-height: 320px; padding: 1.75rem 1rem; }
  .deck-nav .btn span { display: none; }
  .deck-nav .btn { width: 48px; padding: 0; }
  .progress-card { grid-template-columns: 1fr; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .count { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .task-foot { flex-direction: column; }
}

@media (max-width: 26em) {
  .brand-mark { display: none; }
}

/* Very small phones: the header actions drop under the name instead of
   overflowing. */
@media (max-width: 22em) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-top: .35rem; padding-bottom: .5rem; }
  .brand { min-height: 44px; }
}
