/* ============================================================================
   Lab Prep Guide — one stylesheet, no build step.
   Cool, professional palette: deep navy text, cyan-to-indigo accents.
   Light tokens on :root; dark under the system preference and again under
   [data-theme="dark"] so the toggle wins either way.
   ========================================================================= */

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #edf2f8;
  --text: #0f1b2d;
  --muted: #4f5e76;
  --line: #dbe3ee;
  --accent: #0e7490;
  --accent-hover: #155e75;
  --accent-soft: #e0f2f7;
  --accent-2: #4338ca;
  --accent-2-soft: #eceafd;
  --btn-grad: linear-gradient(135deg, #0e7490 0%, #4338ca 100%);
  --hero-glow: radial-gradient(60% 80% at 10% 0%, rgba(14, 116, 144, .14) 0%, rgba(14, 116, 144, 0) 70%),
               radial-gradient(50% 70% at 100% 10%, rgba(67, 56, 202, .12) 0%, rgba(67, 56, 202, 0) 70%);
  --good: #0f766e;
  --good-soft: #ddf3ef;
  --warn: #9a3412;
  --warn-soft: #fdeee4;
  --focus: #0891b2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 10px 30px rgba(15, 27, 45, .06);
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1120;
    --surface: #101a2c;
    --surface-2: #16223a;
    --text: #e8eef8;
    --muted: #a3b0c4;
    --line: #22314b;
    --accent: #22d3ee;
    --accent-hover: #67e8f9;
    --accent-soft: #0e2c3a;
    --accent-2: #a5b4fc;
    --accent-2-soft: #1c2152;
    --hero-glow: radial-gradient(60% 80% at 10% 0%, rgba(34, 211, 238, .12) 0%, rgba(34, 211, 238, 0) 70%),
                 radial-gradient(50% 70% at 100% 10%, rgba(99, 102, 241, .16) 0%, rgba(99, 102, 241, 0) 70%);
    --good: #5eead4;
    --good-soft: #0f2c2a;
    --warn: #fdba74;
    --warn-soft: #2e1c10;
    --focus: #67e8f9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a1120;
  --surface: #101a2c;
  --surface-2: #16223a;
  --text: #e8eef8;
  --muted: #a3b0c4;
  --line: #22314b;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --accent-soft: #0e2c3a;
  --accent-2: #a5b4fc;
  --accent-2-soft: #1c2152;
  --hero-glow: radial-gradient(60% 80% at 10% 0%, rgba(34, 211, 238, .12) 0%, rgba(34, 211, 238, 0) 70%),
               radial-gradient(50% 70% at 100% 10%, rgba(99, 102, 241, .16) 0%, rgba(99, 102, 241, 0) 70%);
  --good: #5eead4;
  --good-soft: #0f2c2a;
  --warn: #fdba74;
  --warn-soft: #2e1c10;
  --focus: #67e8f9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 90px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 2rem; }

.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: -4rem; z-index: 50; padding: .6rem 1rem;
  border-radius: var(--radius-sm); background: var(--accent-2); color: #fff; font-weight: 700;
}
.skip:focus { top: 1rem; color: #fff; }

.icon { width: 22px; height: 22px; flex: none; }
.i-sm { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -.01em; font-size: 1.05rem; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--btn-grad); color: #fff; box-shadow: 0 6px 16px rgba(67, 56, 202, .25); }
.brand-mark .icon { width: 20px; height: 20px; }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  padding: .5rem .75rem; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.bar-actions { display: flex; align-items: center; gap: .4rem; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .8rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--text); font-size: .9rem; font-weight: 700; text-decoration: none;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn .icon { width: 19px; height: 19px; }
.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; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: 0 6px 18px rgba(67, 56, 202, .22); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .45rem .8rem; font-size: .85rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.link-btn { padding: .3rem .2rem; border: 0; background: none; color: var(--accent); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* -------------------------------------------------------------- typography */
.kicker {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.lede { max-width: 44rem; margin-top: 1rem; color: var(--muted); font-size: 1.15rem; }
.label { margin-bottom: .35rem; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------- page head */
.page-head { padding: 3.5rem 0 2rem; background: var(--hero-glow); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 800; }

/* -------------------------------------------------------------------- hero */
.hero { padding: 4rem 0 3rem; background: var(--hero-glow); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 850; letter-spacing: -.03em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; font-weight: 600; }
.badges li { display: inline-flex; align-items: center; gap: .4rem; }
.badges .icon { color: var(--good); }

.hero-card {
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow);
}
.hero-card-top { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.hero-card-kicker { color: var(--muted); font-size: .8rem; font-weight: 700; }
.hero-card-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.hero-list { margin: 0 0 1.1rem; padding: 0; list-style: none; display: grid; gap: .45rem; }
.hero-list li { display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border-radius: 10px; background: var(--good-soft); font-size: .95rem; font-weight: 600; }
.hero-list li .icon { color: var(--good); }
.hero-list.soft li { background: var(--surface-2); font-weight: 500; }
.hero-list.soft li .icon { color: var(--accent-2); }
.need-label { color: var(--good); }
.nice-label { color: var(--accent-2); }

/* ---------------------------------------------------------------- sections */
.section { padding: 3.5rem 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.section-head p { margin-top: .5rem; color: var(--muted); font-size: 1.05rem; }
.sub-title { margin: .5rem 0 1rem; font-size: 1.25rem; }

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

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.tile, .guide-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover, .guide-card:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.tile-title { margin-top: .35rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.tile-text { color: var(--muted); font-size: .93rem; line-height: 1.5; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.cat {
  display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); text-decoration: none;
}
.cat:hover { color: var(--text); border-color: var(--accent); }
.cat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-2-soft); color: var(--accent-2); flex: none; }
.cat-text { display: flex; flex-direction: column; min-width: 0; }
.cat-name { font-weight: 700; }
.cat-count { color: var(--muted); font-size: .85rem; }
.cat-arrow { margin-left: auto; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .85rem; border-radius: 50%; background: var(--btn-grad); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.08rem; }
.steps p { margin-top: .4rem; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.read-time { margin-top: auto; padding-top: .5rem; color: var(--accent); font-size: .82rem; font-weight: 700; }

/* ------------------------------------------------------------------ notice */
.notice {
  display: flex; gap: .75rem; align-items: flex-start; max-width: 52rem; margin: 2rem 0 0;
  padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--muted); font-size: .92rem; line-height: 1.55;
}
.notice .icon { margin-top: .1rem; color: var(--accent); width: 20px; height: 20px; }
.notice a { font-weight: 700; }
.page-head + .wrap > .notice:first-child { margin-top: 0; }
.hint-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------------- shop */
.toolbar { margin-top: 1.75rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.search { position: relative; flex: 1 1 20rem; max-width: 30rem; }
.search .icon { position: absolute; left: .9rem; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .field input, .field select {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.search input { padding-left: 2.6rem; }
.search input::placeholder { color: var(--muted); }
.search input:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.count { margin-left: auto; color: var(--muted); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip {
  min-height: 40px; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--btn-grad); border-color: transparent; color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.card-media { display: grid; place-items: center; height: 150px; background: var(--hero-glow), var(--surface-2); border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.card-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.card-icon .icon { width: 34px; height: 34px; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: .9rem; padding: 1.25rem; }
.eyebrow { color: var(--accent-2); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.card-title { margin-top: -.5rem; font-size: 1.15rem; font-weight: 800; }
.card-desc { margin-top: -.4rem; color: var(--muted); font-size: .95rem; }
.pick { padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--good-soft); font-size: .92rem; line-height: 1.5; }
.pick .label { color: var(--good); }
.specs dl { margin: 0; font-size: .88rem; }
.specs dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-top: 1px dashed var(--line); }
.specs dt { color: var(--muted); flex: none; }
.specs dd { margin: 0; text-align: right; font-weight: 600; }
.card-cta { margin-top: auto; width: 100%; }
.btn-disabled, .btn-disabled:hover {
  background: var(--surface-2); border-color: var(--line); color: var(--muted);
  box-shadow: none; filter: none; transform: none; cursor: not-allowed;
}
#featured-wrap { margin-top: 2rem; }
.catalog-title { margin-top: 2.5rem; }
.notice strong { color: var(--text); }

.empty { margin-top: 1.75rem; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty p { margin-bottom: 1rem; color: var(--text); font-weight: 700; }

/* -------------------------------------------------------------------- find */
.task, .guide {
  margin-top: 2rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow);
}
.task:focus, .guide:focus { outline: none; }
.task-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.task-head h2 { font-size: 1.45rem; font-weight: 800; }
.task-head p { margin-top: .3rem; color: var(--muted); }
.task-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.col-title { display: flex; align-items: center; gap: .45rem; margin-bottom: .75rem; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.col-title.need { color: var(--good); }
.col-title.nice { color: var(--accent-2); }

.mini-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.mini { display: flex; align-items: center; gap: .85rem; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.mini-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.mini-text { flex: 1; min-width: 0; }
.mini-name { font-weight: 700; line-height: 1.3; }
.mini-reason { margin-top: .15rem; color: var(--muted); font-size: .85rem; line-height: 1.45; }

.skip-box { margin-top: 1.5rem; padding: .95rem 1.1rem; border-left: 4px solid var(--warn); border-radius: var(--radius-sm); background: var(--warn-soft); }
.skip-box .label { color: var(--warn); }
.task-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 1.25rem; }

.note-box { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.note-box h2 { font-size: 1.2rem; }
.note-box p { margin-top: .5rem; color: var(--muted); }

/* ------------------------------------------------------------------- tools */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }
.tool { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.tool-head { display: flex; gap: .9rem; align-items: flex-start; }
.tool-head h2 { font-size: 1.2rem; font-weight: 800; }
.tool-head p { margin-top: .25rem; color: var(--muted); font-size: .93rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.hint { color: var(--muted); font-size: .88rem; }
.error { color: var(--warn); font-size: .9rem; font-weight: 600; }
.result { display: grid; gap: .5rem; margin-top: auto; }
.result:empty { display: none; }
.result-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem .95rem; border-radius: var(--radius-sm); background: var(--accent-soft); }
.result-row span { color: var(--muted); font-weight: 600; }
.result-row strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ guides */
.guide-body { display: grid; gap: 1.4rem; }
.guide-sec h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.guide-sec p { color: var(--muted); }
.checklist { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; }
.checklist .icon { margin-top: .3rem; color: var(--good); }
.guide-supplies { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.guide-supplies h3 { margin-bottom: .85rem; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* --------------------------------------------------------------------- faq */
.faq { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; font-weight: 700; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--muted); transition: transform .2s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--accent); }
.faq-a { padding: 0 1.15rem 1.1rem; color: var(--muted); }
.faq-a p + p { margin-top: .6rem; }

/* ------------------------------------------------------------------- prose */
.prose { padding-bottom: 1rem; }
.prose h2 { margin: 2.2rem 0 .6rem; font-size: 1.25rem; }
.prose h2:first-child { margin-top: .5rem; }
.prose p { color: var(--muted); }
.prose .checklist { color: var(--muted); }
.contact { margin-top: 1.5rem; color: var(--muted); }
.contact a { font-weight: 700; }
.updated { margin-top: 2.5rem; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 4.5rem; padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.foot-brand p { margin-top: .85rem; max-width: 26rem; }
.foot-title { margin-bottom: .75rem; color: var(--text); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.foot-note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; }
.foot-copy { margin-top: .6rem; font-size: .82rem; }
.noscript { padding: 3rem 1.25rem; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .15rem; margin: 0; padding: .75rem 1.25rem 1.25rem;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav a { padding: .8rem .9rem; font-size: 1rem; }
  .site-header.nav-open .nav { display: flex; }
  .bar-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .task-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 2.5rem; }
  .page-head { padding-top: 2.5rem; }
  .brand-name { font-size: .98rem; }
  .lang-btn span { display: none; }
  .lang-btn { width: 40px; padding: 0; justify-content: center; }
  .hero-actions .btn { width: 100%; }
  .task, .guide, .tool { padding: 1.2rem; }
  .mini { flex-wrap: wrap; }
  .mini .btn { width: 100%; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .count { margin-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
