/* ==========================================================================
   Culture & Clay — Kombucha Brewing Tools & Journal
   Natural fermentation aesthetic: organic, soft, airy, generous whitespace.
   Palette: Sage Green #6B8F71 · Cream #F7F4EC · Terracotta Clay #C97B5A
            Charcoal #2F2E2A · Soft Amber #D9A441
   Deliberately unlike the industrial gray / deep blue / amber-gold brewery
   site: light cream grounds, serif display headings, pill buttons,
   16px card radius, whisper-soft shadows, no heavy borders anywhere.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Sage green — primary natural accent */
  --sage-900: #33472F;
  --sage-800: #435F3F;
  --sage-700: #55764F;
  --sage-600: #6B8F71;   /* sage green — primary */
  --sage-500: #85A489;
  --sage-400: #A5BEA7;
  --sage-300: #C3D6C4;
  --sage-200: #DDE8DD;
  --sage-100: #EDF3EC;
  --sage-50:  #F4F8F3;

  /* Cream — page ground */
  --cream-900: #E5DFCE;
  --cream-700: #EFE8D8;
  --cream-500: #F7F4EC;   /* cream — page background */
  --cream-300: #FAF8F2;
  --cream-100: #FDFCF8;
  --cream-0:   #FFFFFF;

  /* Terracotta clay — action accent */
  --clay-900: #7E4529;
  --clay-800: #9A5637;
  --clay-700: #B06646;
  --clay-600: #C97B5A;   /* terracotta clay — accent */
  --clay-500: #D68F72;
  --clay-400: #E2AD95;
  --clay-300: #EDCBB8;
  --clay-200: #F5DFD3;
  --clay-100: #FAEDE5;
  --clay-50:  #FDF6F1;

  /* Soft amber — warm secondary */
  --amber-900: #7A5714;
  --amber-700: #A97C1E;
  --amber-600: #D9A441;   /* soft amber — accent 2 */
  --amber-500: #E2B65F;
  --amber-400: #EBC982;
  --amber-300: #F2DCAE;
  --amber-200: #F8EBD0;
  --amber-100: #FCF5E4;
  --amber-50:  #FEFAF0;

  /* Charcoal ink — text */
  --ink-900: #2F2E2A;   /* charcoal — headings and body */
  --ink-800: #3D3B36;
  --ink-700: #4C4A44;
  --ink-600: #5E5B54;
  --ink-500: #74716A;
  --ink-400: #918E86;
  --ink-300: #B3B0A8;
  --ink-200: #D3D0C7;
  --ink-100: #E7E4DC;
  --ink-50:  #F2F0EA;

  /* Supporting naturals */
  --tea-600: #7A5A2E;
  --tea-400: #B08A55;
  --tea-200: #E3D2B6;
  --glass-400: #A8BFAE;
  --glass-100: #E4EDE6;
  --wood-600: #A0794E;
  --wood-300: #DCC7A8;
  --red-600: #A8483A;
  --green-600: #4F7D45;

  --white: #FFFFFF;

  /* Semantic roles */
  --bg: var(--cream-500);
  --bg-alt: var(--cream-300);
  --surface: var(--cream-0);
  --surface-soft: var(--cream-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-soft: var(--ink-600);
  --text-on-dark: var(--cream-100);
  --text-on-dark-muted: rgba(250, 248, 242, .74);
  --border: #E6E0D2;
  --border-soft: #EFEAE0;
  --border-strong: #D6CEBC;
  --accent: var(--clay-600);
  --accent-dark: var(--clay-700);
  --accent-soft: var(--clay-100);

  /* Radius — generous, organic */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;         /* standard card radius */
  --radius-lg: 22px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  /* Shadows — whisper soft, warm-tinted, never hard */
  --shadow-xs: 0 1px 2px rgba(47, 46, 42, .04);
  --shadow-sm: 0 2px 8px rgba(47, 46, 42, .05), 0 1px 2px rgba(47, 46, 42, .03);
  --shadow: 0 6px 18px rgba(47, 46, 42, .07), 0 2px 5px rgba(47, 46, 42, .03);
  --shadow-md: 0 10px 28px rgba(47, 46, 42, .09), 0 3px 8px rgba(47, 46, 42, .04);
  --shadow-lg: 0 20px 48px rgba(47, 46, 42, .12), 0 6px 14px rgba(47, 46, 42, .05);
  --shadow-clay: 0 8px 22px rgba(201, 123, 90, .26);

  /* Type — serif display + humanist sans body */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
                  "Georgia", "Times New Roman", serif;
  --font-sans: "Optima", "Segoe UI", "Candara", "Trebuchet MS", "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: 24px;
  --header-h: 62px;

  --t-fast: .16s ease;
  --t: .28s ease;
  --t-slow: .45s ease;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 12% -6%, rgba(107, 143, 113, .09), transparent 62%),
    radial-gradient(900px 460px at 92% 4%, rgba(217, 164, 65, .08), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
img[loading="lazy"] { background: var(--cream-300); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .62em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.005em;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.05rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
h3 { font-size: clamp(1.16rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.06rem; font-family: var(--font-sans); font-weight: 700; }
p  { margin: 0 0 1.05em; }

a { color: var(--sage-800); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--clay-700); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: .42em; }
li::marker { color: var(--sage-500); }

hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--sage-400);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--sage-200); color: var(--ink-900); }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; }
.container-wide { max-width: 1340px; }

.section { padding: 72px 0; }
.section-sm { padding: 46px 0; }
.section-tight { padding: 52px 0 72px; }
.section-alt { background: var(--cream-300); }

.section-head { max-width: 700px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: .5em; }
.section-head p { color: var(--text-muted); margin-bottom: 0; font-size: 1.04rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--clay-700);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--sage-700); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 4. Buttons — pill shaped ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 27px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: .93rem; font-weight: 700; letter-spacing: .005em;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--clay-600); color: #FFF8F3; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-700); color: #FFF8F3; box-shadow: var(--shadow-clay); }

.btn-sage { background: var(--sage-600); color: #F8FBF7; box-shadow: var(--shadow-sm); }
.btn-sage:hover { background: var(--sage-700); color: #F8FBF7; box-shadow: 0 8px 22px rgba(107,143,113,.26); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--sage-800); }
.btn-outline:hover { border-color: var(--sage-500); background: var(--sage-50); color: var(--sage-900); }

.btn-cream { background: var(--cream-100); border-color: var(--cream-700); color: var(--ink-900); }
.btn-cream:hover { background: #fff; border-color: var(--sage-400); color: var(--sage-900); }

.btn-ghost-light { background: rgba(250,248,242,.14); border-color: rgba(250,248,242,.42); color: var(--cream-100); }
.btn-ghost-light:hover { background: rgba(250,248,242,.24); border-color: var(--cream-100); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 15px 33px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- 5. Header — deliberately minimal: title · About · Contact ·
   Privacy · search icon. Three plain links, no dropdown and no long list of
   entry points. One row at every desktop width; space is bought back by
   tightening the link padding, never by wrapping onto a second storey. ---- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247, 244, 236, .9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  position: relative;   /* positioning context for the <=900px drop panel */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.08; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.16rem;
  color: var(--ink-900); letter-spacing: -.01em; white-space: nowrap;
}
.logo-tag {
  font-size: .56rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-700); font-weight: 700; white-space: nowrap; opacity: .9;
}
.logo:hover .logo-name { color: var(--sage-700); }

.main-nav { display: flex; min-width: 0; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  color: var(--ink-700);
  font-size: .9rem; font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--sage-100); color: var(--sage-900); }
.nav-link.is-active { color: var(--sage-900); font-weight: 700; background: var(--sage-100); }

/* Header search: a bare icon in the row, the field itself lives in the
   collapsible panel underneath. Keeps the bar to three words and a glyph. */
.header-search-trigger {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  margin-left: auto; flex-shrink: 0;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--ink-700);
  transition: background var(--t-fast), color var(--t-fast);
}
.header-search-trigger:hover { background: var(--sage-100); color: var(--sage-900); }
.header-search-trigger[aria-expanded="true"] { background: var(--sage-100); color: var(--sage-900); }
.header-search-trigger svg { width: 19px; height: 19px; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-800);
  place-items: center;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--sage-100); border-color: var(--sage-300); }
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 6. Hero — natural light, airy, magazine-like ---------- */
.hero {
  position: relative;
  background: linear-gradient(168deg, var(--cream-300) 0%, var(--cream-500) 46%, #F1EEE4 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -160px; right: -120px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,143,113,.16), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; bottom: -180px; left: -140px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,.15), transparent 68%);
  pointer-events: none;
}
.hero-slides { position: relative; height: 520px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-bg { position: absolute; inset: 0; }
.hero-slide-bg img,
.hero-slide-bg svg { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(96deg, rgba(247,244,236,.96) 0%, rgba(247,244,236,.84) 42%, rgba(247,244,236,.20) 78%, rgba(247,244,236,.06) 100%);
}
.hero-slide-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 600px;
  padding: 48px 0;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  align-self: flex-start;
  padding: 7px 17px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--sage-300);
  border-radius: var(--radius-pill);
  color: var(--sage-800);
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-title {
  color: var(--ink-900);
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  line-height: 1.14;
  margin-bottom: .5em;
}
.hero-text {
  color: var(--ink-600);
  font-size: 1.09rem;
  margin-bottom: 1.7em;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.hero-controls {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 4;
  display: flex; align-items: center; gap: 16px;
}
.hero-dots { display: flex; gap: 9px; }
.hero-dot {
  width: 30px; height: 6px; padding: 0;
  border: 0; border-radius: var(--radius-pill);
  background: rgba(47,46,42,.18);
  transition: background var(--t-fast), width var(--t-fast);
}
.hero-dot.is-active { background: var(--clay-600); width: 48px; }
.hero-arrows { margin-left: auto; display: flex; gap: 9px; }
.hero-arrow {
  width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink-700);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.hero-arrow:hover { background: var(--clay-600); border-color: var(--clay-600); color: #fff; }
.hero-arrow svg { width: 17px; height: 17px; }

/* ---------- 7. Trust strip — soft sage band ---------- */
.trust-strip {
  background: var(--sage-800);
  color: var(--cream-100);
}
.trust-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  padding-top: 26px; padding-bottom: 26px;
}
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item svg { width: 27px; height: 27px; flex-shrink: 0; color: var(--amber-400); }
.trust-item strong { display: block; color: #fff; font-size: .93rem; font-weight: 700; }
.trust-item span { color: var(--text-on-dark-muted); font-size: .81rem; }

/* ---------- 8. Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);   /* 16px */
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--sage-200);
}
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream-300);
  overflow: hidden;
}
/* Art is emitted as <img> carrying SVG through a data URI, so the element itself
   must be told to fill the frame — styling only `svg` would let it collapse. */
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.045); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.14rem; font-weight: 600; margin: 0 0 9px; color: var(--ink-900); }
.card-text { color: var(--text-muted); font-size: .92rem; margin: 0; flex: 1; line-height: 1.62; }
.card-foot {
  margin-top: 16px; padding-top: 15px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: var(--sage-100); color: var(--sage-900);
  white-space: nowrap;
}
.tag-clay { background: var(--clay-100); color: var(--clay-800); }
.tag-amber { background: var(--amber-100); color: var(--amber-900); }
.tag-gray { background: var(--ink-50); color: var(--ink-600); }
.tag-green { background: #E3F0E0; color: var(--green-600); }
.tag-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Category card (homepage) */
.cat-card { position: relative; }
.cat-card .cat-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--sage-100);
  margin-bottom: 16px;
}
.cat-card .cat-icon svg { width: 27px; height: 27px; color: var(--sage-800); }
.cat-card:nth-child(3n+2) .cat-icon { background: var(--clay-100); }
.cat-card:nth-child(3n+2) .cat-icon svg { color: var(--clay-700); }
.cat-card:nth-child(3n+3) .cat-icon { background: var(--amber-100); }
.cat-card:nth-child(3n+3) .cat-icon svg { color: var(--amber-700); }
.cat-count { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.cat-arrow { width: 17px; height: 17px; color: var(--clay-600); }

/* Tool card — art centred on a soft cream stage */
.tool-card .card-media { background: var(--cream-100); display: grid; place-items: center; }
.tool-card .card-media img,
.tool-card .card-media svg { width: 100%; height: 100%; object-fit: contain; padding: 18px; box-sizing: border-box; }

/* Blog card */
.blog-card .card-media { aspect-ratio: 16 / 9; }
.blog-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: 11px;
}
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.blog-meta .cat { color: var(--clay-700); font-weight: 700; }

/* ---------- 9. Steps — 4-step brewing process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.step:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-body { padding: 20px 22px 24px; }
.step-num {
  position: absolute;
  top: 15px; left: 15px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-700);
  color: #F8FBF7;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 3px 10px rgba(47,46,42,.22);
  border: 2px solid rgba(255,255,255,.9);
  z-index: 1;
}
.step:nth-child(2) .step-num { background: var(--clay-600); }
.step:nth-child(3) .step-num { background: var(--amber-700); }
.step:nth-child(4) .step-num { background: var(--ink-800); }
.step-media {
  position: relative;
  width: 100%; aspect-ratio: 16/10;
  background: var(--cream-300);
  overflow: hidden;
}
.step-media img,
.step-media svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.step h3 { font-size: 1.1rem; margin-bottom: .45em; }
.step .step-label {
  display: block;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-700); font-weight: 800;
  margin-bottom: .35em;
}
.step p { font-size: .91rem; color: var(--text-muted); margin: 0; }

/* ---------- 10. Page header / breadcrumbs ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--sage-100) 0%, var(--cream-300) 68%, var(--cream-500) 100%);
  color: var(--ink-900);
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; top: -140px; right: -80px;
  width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,123,90,.13), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .35em; max-width: 900px; }
.page-hero p { color: var(--ink-600); max-width: 720px; margin: 0; font-size: 1.04rem; }
.page-hero .eyebrow { color: var(--clay-700); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 20px; padding: 0; list-style: none;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 9px; }
.breadcrumbs li::after { content: "/"; color: var(--ink-300); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--sage-700); font-weight: 600; }
.breadcrumbs a:hover { color: var(--clay-700); }
.breadcrumbs [aria-current] { color: var(--text-muted); }

/* ---------- 11. Layout: sidebar + content ---------- */
.split { display: grid; grid-template-columns: 340px 1fr; gap: 34px; align-items: start; }
.split-wide { grid-template-columns: 400px 1fr; }
.split-rev { grid-template-columns: 1fr 340px; }
.split-side { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.panel + .panel { margin-top: 22px; }
.panel h3 {
  font-size: 1.06rem; margin-bottom: .85em;
  padding-bottom: .65em; border-bottom: 1px solid var(--border-soft);
}
.panel-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.article-side .panel:first-child { position: sticky; top: calc(var(--header-h) + 20px); }

/* compact link lists used in sidebars */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft);
  font-size: .9rem; line-height: 1.5;
}
.link-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.link-list li:first-child { padding-top: 0; }
.link-list a { font-weight: 600; color: var(--sage-800); }
.link-list a:hover { color: var(--clay-700); }
.link-list .link-meta {
  flex-shrink: 0; font-size: .76rem; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
}

/* prev / next article navigation */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: 38px 0 0; padding-top: 30px; border-top: 1px solid var(--border-soft);
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.post-nav-item:hover { border-color: var(--sage-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay-700);
}
.post-nav-label svg { width: 14px; height: 14px; }
.post-nav-title { font-weight: 700; color: var(--ink-900); line-height: 1.45; font-size: .94rem; }
.post-nav-next { text-align: right; }
.post-nav-next .post-nav-label { justify-content: flex-end; }

/* ---------- 12. Filter bar ---------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
  font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--sage-700);
}
.filter-group select, .filter-group input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  font-size: .89rem;
  min-width: 162px;
}
.filter-group select:focus, .filter-group input:focus {
  border-color: var(--sage-400); outline: none; box-shadow: 0 0 0 3px var(--sage-100);
}
.filter-spacer { margin-left: auto; }
.filter-count { font-size: .86rem; color: var(--text-muted); }
.filter-count strong { color: var(--ink-900); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--cream-100);
  font-size: .85rem; font-weight: 600; color: var(--ink-600);
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--sage-400); color: var(--sage-800); background: var(--sage-50); }
.chip.is-active { background: var(--sage-700); border-color: var(--sage-700); color: #F8FBF7; }

/* ---------- 13. Pagination ---------- */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px;
  margin-top: 46px; padding: 0; list-style: none;
}
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-700); font-size: .89rem; font-weight: 700;
  transition: all var(--t-fast);
}
.pagination a:hover { border-color: var(--sage-400); background: var(--sage-50); color: var(--sage-800); }
.pagination .is-current { background: var(--sage-700); border-color: var(--sage-700); color: #F8FBF7; }
.pagination .is-disabled { opacity: .42; pointer-events: none; }

/* ---------- 14. Tool detail ---------- */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .9rem;
  margin: 0;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .spec-k { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.spec-list .spec-v { color: var(--ink-900); font-weight: 700; text-align: right; }

.product-figure {
  background: var(--cream-100);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
}
.product-figure img,
.product-figure svg { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.product-thumb {
  aspect-ratio: 1/1; padding: 10px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  background: var(--cream-100);
  display: grid; place-items: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.product-thumb:hover { border-color: var(--sage-400); background: var(--sage-50); }
.product-thumb img,
.product-thumb svg { width: 100%; height: 100%; object-fit: contain; }

.stage-list { display: flex; flex-wrap: wrap; gap: 9px; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 700;
  background: var(--ink-50); color: var(--ink-400);
}
.stage-pill.is-on { background: var(--sage-100); color: var(--sage-900); }
.stage-pill svg { width: 15px; height: 15px; }

.notice {
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: .9rem;
  border: 1px solid;
  display: flex; gap: 13px;
}
.notice svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { display: block; margin-bottom: 4px; }
.notice-safety { background: var(--amber-100); border-color: var(--amber-300); color: var(--amber-900); }
.notice-safety svg { color: var(--amber-700); }
.notice-info { background: var(--sage-50); border-color: var(--sage-200); color: var(--sage-900); }
.notice-info svg { color: var(--sage-700); }
.notice-warn { background: var(--clay-50); border-color: var(--clay-200); color: var(--clay-900); }
.notice-warn svg { color: var(--clay-700); }
.notice-neutral { background: var(--cream-300); border-color: var(--border); color: var(--text-muted); }
.notice-neutral svg { color: var(--ink-400); }

.legal-note {
  margin-top: 36px;
  padding: 18px 20px;
  background: var(--cream-300);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--sage-400);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-note strong { color: var(--ink-700); }

/* ---------- 15. Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.calc-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.calc-result {
  background: var(--sage-800);
  background-image: radial-gradient(600px 320px at 88% -10%, rgba(217,164,65,.22), transparent 62%);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--cream-100);
  box-shadow: var(--shadow-md);
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: block;
  font-size: .85rem; font-weight: 700; color: var(--ink-800);
  margin-bottom: 7px;
}
.field .hint { display: block; font-size: .78rem; font-weight: 500; color: var(--text-muted); margin-top: 5px; line-height: 1.55; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage-400); outline: none; background: #fff; box-shadow: 0 0 0 3px var(--sage-100);
}
.field textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input-group { display: flex; }
.input-group input { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.input-group .unit {
  display: grid; place-items: center;
  padding: 0 15px;
  background: var(--sage-100);
  border: 1px solid var(--border); border-left: 0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: .82rem; font-weight: 700; color: var(--sage-800);
  white-space: nowrap;
}

.result-main { text-align: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(250,248,242,.20); }
.result-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  font-weight: 600; line-height: 1;
  color: var(--amber-400);
  font-variant-numeric: tabular-nums;
}
.result-unit { font-size: 1rem; font-weight: 700; color: var(--text-on-dark-muted); margin-left: 7px; }
.result-label {
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-on-dark-muted); margin-bottom: 9px;
}

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-cell {
  background: rgba(250,248,242,.10);
  border: 1px solid rgba(250,248,242,.16);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
}
.result-cell .k { font-size: .71rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-on-dark-muted); font-weight: 700; }
.result-cell .v { font-size: 1.35rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; margin-top: 4px; }
.result-cell .v small { font-size: .78rem; font-weight: 600; color: var(--text-on-dark-muted); }

.gauge { margin-top: 20px; }
.gauge-track { height: 10px; border-radius: var(--radius-pill); background: rgba(250,248,242,.18); overflow: hidden; }
.gauge-fill { height: 100%; background: var(--amber-400); border-radius: var(--radius-pill); transition: width .4s ease; }
.gauge-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-on-dark-muted); margin-top: 7px; }

.scale-legend { display: flex; align-items: center; gap: 13px; margin-top: 18px; font-size: .82rem; color: var(--text-on-dark-muted); }

.calc-disclaimer {
  margin-top: 20px; font-size: .78rem; color: var(--text-on-dark-muted);
  padding-top: 16px; border-top: 1px solid rgba(250,248,242,.16); line-height: 1.65;
}

/* ---------- 16. Blog ---------- */
.post-hero {
  background: linear-gradient(160deg, var(--sage-100) 0%, var(--cream-300) 72%);
  color: var(--ink-900);
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--border-soft);
}
.post-hero h1 { max-width: 900px; }
.post-hero .blog-meta { color: var(--text-muted); }
.post-hero .blog-meta .cat { color: var(--clay-700); }
.post-hero .blog-meta .dot { background: var(--ink-300); }

.featured-post {
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.featured-post-media { background: var(--cream-300); min-height: 320px; }
.featured-post-media img,
.featured-post-media svg { width: 100%; height: 100%; object-fit: cover; }
.featured-post-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }

.article { font-size: 1.06rem; }
.article h2 {
  margin-top: 2.2em; margin-bottom: .68em;
  padding-bottom: .32em;
  border-bottom: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--header-h) + 22px);
}
.article h3 { margin-top: 1.7em; margin-bottom: .55em; scroll-margin-top: calc(var(--header-h) + 22px); }
.article p { margin-bottom: 1.2em; }
.article ul, .article ol { margin-bottom: 1.3em; }
.article li { margin-bottom: .55em; }
.article img, .article figure { border-radius: var(--radius); margin: 1.7em 0; }
.article figure { background: var(--cream-300); border: 1px solid var(--border-soft); padding: 20px; margin-left: 0; margin-right: 0; }
.article figcaption { font-size: .84rem; color: var(--text-muted); text-align: center; margin-top: 13px; }
.article a { text-decoration: underline; text-decoration-color: var(--sage-400); text-underline-offset: 3px; }
.article a:hover { text-decoration-color: var(--clay-600); }
.article blockquote {
  margin: 1.7em 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--sage-300);
  color: var(--ink-600); font-style: italic;
}
.article code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--cream-300); padding: 2px 7px; border-radius: var(--radius-xs);
  border: 1px solid var(--border-soft);
}

.article-intro {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--ink-700);
  line-height: 1.68;
  padding-bottom: 1.3em;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1.7em;
}

.toc {
  background: var(--sage-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 38px;
}
.toc h2, .toc h3 {
  margin: 0 0 .8em; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--sage-800); border: 0; padding: 0;
  font-family: var(--font-sans); font-weight: 800;
}
.toc ol { margin: 0; padding-left: 1.3em; list-style: decimal; }
.toc ol ol { margin-top: .45em; }
.toc li { margin-bottom: .4em; font-size: .93rem; }
.toc a { text-decoration: none; font-weight: 600; color: var(--sage-800); }
.toc a:hover { color: var(--clay-700); text-decoration: underline; }

.step-block {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  margin: 1.9em 0;
  padding-bottom: 1.7em;
  border-bottom: 1px solid var(--border-soft);
}
.step-block:last-of-type { border-bottom: 0; }
.step-block-num {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage-700);
  color: #F8FBF7;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
}
.step-block h3 { margin-top: .35em; }
.step-block p:last-child { margin-bottom: 0; }
.step-figure {
  margin: 1.2em 0 0; background: var(--cream-300);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden;
}
.step-figure img,
.step-figure svg { width: 100%; height: auto; display: block; }

.tip-box {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 1.8em 0;
  border: 1px solid;
  border-left-width: 4px;
}
.tip-box h4 {
  margin: 0 0 .55em;
  font-family: var(--font-sans);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 9px;
}
.tip-box h4 svg { width: 18px; height: 18px; }
.tip-box p:last-child, .tip-box ul:last-child, .tip-box ol:last-child { margin-bottom: 0; }
.tip-tip { background: var(--amber-100); border-color: var(--amber-300); border-left-color: var(--amber-600); }
.tip-tip h4 { color: var(--amber-900); }
.tip-warn { background: var(--clay-50); border-color: var(--clay-200); border-left-color: var(--red-600); }
.tip-warn h4 { color: var(--red-600); }
.tip-note { background: var(--sage-50); border-color: var(--sage-200); border-left-color: var(--sage-600); }
.tip-note h4 { color: var(--sage-800); }
.tip-ok { background: #F1F8EF; border-color: #CDE5C6; border-left-color: var(--green-600); }
.tip-ok h4 { color: var(--green-600); }

.table-wrap { overflow-x: auto; margin: 1.7em 0; border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
table { width: 100%; border-collapse: collapse; font-size: .91rem; background: var(--surface); }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
th {
  background: var(--sage-50); font-family: var(--font-sans);
  font-weight: 800; color: var(--sage-900); font-size: .79rem;
  letter-spacing: .05em; text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--cream-100); }

.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream-300);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin: 44px 0 32px;
}
.author-avatar {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage-700); color: #F8FBF7;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
}
.author-box h4 { margin: 0 0 5px; font-size: 1rem; }
.author-box p { margin: 0; font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ---------- 16b. Blog article enhancements (blog.js) ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: transparent; pointer-events: none;
  opacity: 0; transition: opacity var(--t);
}
.read-progress.is-visible { opacity: 1; }
.read-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--sage-600), var(--amber-500), var(--clay-600));
}

.heading-anchor {
  margin-left: 11px;
  font-size: .7em; font-weight: 700;
  color: var(--sage-300);
  text-decoration: none;
  opacity: 0;
  position: relative;
  transition: opacity var(--t), color var(--t);
}
h2:hover > .heading-anchor, h3:hover > .heading-anchor,
.heading-anchor:focus-visible { opacity: 1; }
.heading-anchor:hover { color: var(--clay-600); }
.anchor-tip {
  position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%);
  background: var(--ink-800); color: var(--cream-100);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  padding: 4px 9px; border-radius: var(--radius-xs);
  white-space: nowrap; pointer-events: none;
}

.toc a.is-current { color: var(--clay-700); text-decoration: underline; text-decoration-color: var(--sage-400); text-underline-offset: 3px; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 110;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--sage-800);
  font-size: 1.15rem; line-height: 1;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t), color var(--t);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sage-700); color: #F8FBF7; border-color: var(--sage-700); }

[data-chip] { cursor: pointer; font-family: inherit; }
[data-chip].is-active { background: var(--sage-700); border-color: var(--sage-700); color: #F8FBF7; }

/* ---------- 17. Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}
.checkbox-field {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--cream-300);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.checkbox-field input[type="checkbox"] {
  width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--sage-700); cursor: pointer;
}
.checkbox-field label { cursor: pointer; margin: 0; font-weight: 500; }
.form-status {
  display: none;
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: #F1F8EF; border: 1px solid #CDE5C6; color: var(--green-600);
  font-size: .9rem; font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: var(--clay-50); border-color: var(--clay-200); color: var(--red-600); }
.field-error { display: none; color: var(--red-600); font-size: .81rem; font-weight: 600; margin-top: 6px; }
.field-error.is-visible { display: block; }

/* ---------- 18. Info blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 22px; }
.info-block {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
}
.info-block h3 { font-size: 1.06rem; display: flex; align-items: center; gap: 10px; margin-bottom: .65em; }
.info-block h3 svg { width: 20px; height: 20px; color: var(--clay-600); flex-shrink: 0; }
.info-block p, .info-block ul { font-size: .9rem; color: var(--text-muted); margin-bottom: 0; }
.info-block ul { padding-left: 1.2em; }

.prose-block { font-size: .97rem; }
.prose-block h2 { margin-top: 2.1em; }
.prose-block h3 { margin-top: 1.6em; font-size: 1.12rem; }

.policy-meta {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  background: var(--cream-300); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 34px;
  font-size: .87rem;
}
.policy-meta dt { font-weight: 700; color: var(--ink-900); }
.policy-meta dd { margin: 0; color: var(--text-muted); }
.policy-meta > div { display: flex; gap: 8px; }

/* ---------- 19. CTA band ---------- */
.cta-band {
  background: var(--sage-800);
  background-image:
    radial-gradient(600px 300px at 12% -20%, rgba(201,123,90,.28), transparent 62%),
    radial-gradient(520px 280px at 92% 120%, rgba(217,164,65,.24), transparent 60%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: .38em; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; max-width: 560px; }
.cta-band .btn-row { flex-shrink: 0; }

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--cream-100);
  margin-top: 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: 38px;
  padding: 62px 0 46px;
}
.footer-brand .logo { margin-bottom: 17px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tag { color: var(--sage-300); }
.footer-brand p { color: var(--text-on-dark-muted); font-size: .89rem; max-width: 340px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(250,248,242,.07);
  border: 1px solid rgba(250,248,242,.14);
  color: var(--text-on-dark-muted);
  transition: all var(--t-fast);
}
.footer-social a:hover { background: var(--clay-600); border-color: var(--clay-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  color: #fff; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 17px; font-weight: 800;
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-on-dark-muted); font-size: .89rem; }
.footer-col a:hover { color: var(--sage-300); }

.footer-newsletter { margin-top: 18px; }
.footer-newsletter p { font-size: .85rem; color: var(--text-on-dark-muted); margin-bottom: 11px; line-height: 1.6; }
.footer-newsletter form { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; min-width: 0;
  padding: 11px 15px;
  border: 1px solid rgba(250,248,242,.18);
  border-radius: var(--radius-pill);
  background: rgba(250,248,242,.07);
  color: #fff; font-size: .87rem;
}
.footer-newsletter input::placeholder { color: rgba(250,248,242,.42); }
.footer-newsletter input:focus { outline: none; border-color: var(--sage-400); box-shadow: 0 0 0 3px rgba(107,143,113,.24); }

.footer-disclaimers {
  border-top: 1px solid rgba(250,248,242,.10);
  padding: 28px 0;
  display: grid; gap: 16px;
}
.footer-safety {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(217,164,65,.10);
  border: 1px solid rgba(217,164,65,.26);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.footer-safety svg { width: 25px; height: 25px; color: var(--amber-400); flex-shrink: 0; margin-top: 2px; }
.footer-safety strong {
  display: block; color: var(--amber-400);
  font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px;
}
.footer-safety p { color: var(--text-on-dark-muted); font-size: .85rem; margin: 0; line-height: 1.7; }
.footer-disclaimer-text { color: var(--text-on-dark-muted); font-size: .82rem; margin: 0; line-height: 1.72; }

.footer-bottom {
  border-top: 1px solid rgba(250,248,242,.10);
  padding: 20px 0 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.footer-bottom p { margin: 0; font-size: .81rem; color: var(--text-on-dark-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { font-size: .81rem; color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--sage-300); }

.age-notice {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(250,248,242,.20);
  border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; color: var(--text-on-dark-muted);
}
.age-notice svg { width: 14px; height: 14px; }

/* ---------- 21. Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.bg-white { background: var(--surface); }
.bg-gray { background: var(--cream-300); }

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.empty-state svg { width: 44px; height: 44px; color: var(--sage-300); margin: 0 auto 14px; }

/* Search — a collapsible panel beneath the header, opened by the icon in the
   row. The field keeps the same pill treatment it had inline before. */
.search-panel {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 18px 0 22px;
}
.search-panel.is-open { display: block; }

.search-panel .header-search { position: relative; max-width: 560px; }
.search-panel .header-search form { display: flex; align-items: center; }
.search-panel .header-search input[type="search"] {
  width: 100%;
  padding: 11px 46px 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--cream-100);
  color: var(--ink-900);
  font-size: .95rem;
}
.search-panel .header-search input[type="search"]::placeholder { color: var(--ink-400); }
.search-panel .header-search input[type="search"]:focus {
  background: #fff; border-color: var(--sage-400); outline: none;
  box-shadow: 0 0 0 3px var(--sage-100);
}
.search-panel .header-search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--sage-700);
}
.search-panel .header-search button:hover { background: var(--sage-100); color: var(--sage-900); }
.search-panel .header-search button svg { width: 17px; height: 17px; }

.search-panel .results { margin: 0; }
.search-panel .results .search-results {
  list-style: none; display: grid; gap: 9px;
  margin: 16px 0 0; padding: 0;
  max-height: 340px; overflow-y: auto;
}
.search-panel .results .search-results a {
  display: block; padding: 13px 16px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  color: var(--ink-900); font-weight: 600; font-size: .91rem;
}
.search-panel .results .search-results a:hover { background: var(--sage-50); border-color: var(--sage-300); }
.search-panel .results a .r-type {
  display: block; font-size: .68rem; font-weight: 700; color: var(--clay-700);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px;
}
.search-panel .search-empty { margin-top: 16px; font-size: .93rem; }
.search-panel .search-empty .muted { color: var(--text-muted); }
.search-panel .search-more {
  display: inline-block; margin-top: 14px;
  font-size: .89rem; font-weight: 600; color: var(--sage-700);
}
.search-panel .search-more:hover { color: var(--sage-900); text-decoration: underline; }
.search-panel #search-status { color: var(--text-muted); font-size: .88rem; margin-top: 12px; }
.search-panel #search-status:empty { margin-top: 0; }

/* While the mobile drawer or the search panel is open, stop the page behind
   it from scrolling away under the user. */
body.nav-locked { overflow: hidden; }

/* ---------- 22. Responsive ----------
   The header stays on ONE row at every width above the mobile breakpoint:
   title · About · Contact · Privacy · search icon. Each tier buys space back
   by tightening the link padding and hiding the tagline — never by wrapping
   onto a second row. */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .split-wide { grid-template-columns: 300px 1fr; gap: 26px; }
  .header-inner { gap: 14px; }
  .nav-link { padding: 8px 11px; font-size: .88rem; }
  .logo-tag { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split-side { gap: 30px; }
}

/* Between 901px and 1000px the row gets genuinely tight: tighten further
   rather than letting anything wrap. */
@media (max-width: 1000px) {
  .logo-mark { width: 29px; height: 29px; }
  .logo-name { font-size: 1.08rem; }
  .nav-link { padding: 8px 8px; font-size: .86rem; }
  .header-inner { gap: 10px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  /* Row is now title | search | menu. The nav leaves the row entirely and
     becomes an absolutely-positioned drop panel beneath the header. */
  .header-inner { gap: 10px; justify-content: flex-start; }
  .logo { flex: 1 1 auto; min-width: 0; }
  .logo-text { min-width: 0; }
  .logo-name { overflow: hidden; text-overflow: ellipsis; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-100);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden;
    transition: max-height .34s ease;
    z-index: 200;
    /* Undo the desktop inline row: in the collapsed panel the nav is a
       full-width block, not a flex row. */
    display: block;
  }
  .main-nav.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; }
  .nav-list > li { border-bottom: 1px solid var(--border-soft); }
  .nav-link {
    padding: 16px 8px; width: 100%; justify-content: space-between;
    border-radius: 0; font-size: .98rem; color: var(--ink-800);
  }
  .nav-link:hover, .nav-link.is-active { background: transparent; color: var(--sage-800); }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-wide, .split-rev, .split-side { grid-template-columns: 1fr; gap: 30px; }
  .panel-sticky, .article-side .panel:first-child { position: static; }
  .calc-layout { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post-media { min-height: 240px; }
  .featured-post-body { padding: 30px; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .hero-slides { height: 470px; }
  .hero-slide::after { background: linear-gradient(96deg, rgba(247,244,236,.97) 0%, rgba(247,244,236,.90) 54%, rgba(247,244,236,.52) 100%); }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-nav-next .post-nav-label { justify-content: flex-start; }
}

/* The drawer no longer needs the dropdown accordion rules, but the search
   panel gains a little breathing room on small screens. */
@media (max-width: 640px) {
  .search-panel { padding: 14px 0 18px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 58px; }
  body { font-size: 16px; }
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; padding: 46px 0 34px; }
  .hero-slides { height: 520px; }
  .hero-slide-inner { max-width: 100%; padding: 36px 0; }
  .hero-controls { bottom: 18px; }
  .cta-band { padding: 32px 24px; }
  .field-row, .result-grid { grid-template-columns: 1fr; }
  .trust-strip .container { grid-template-columns: 1fr; gap: 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-group select, .filter-group input { min-width: 0; width: 100%; }
  .filter-spacer { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; }
  .step-block { grid-template-columns: 1fr; gap: 14px; }
  .form-card, .calc-form, .calc-result { padding: 22px; }
  .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 11px; font-size: .85rem; }
  .to-top { right: 16px; bottom: 16px; }
  .article-intro { font-size: 1.12rem; }
  .product-thumbs { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  .site-header, .site-footer, .hero-controls, .nav-toggle, .header-search-trigger,
  .search-panel, .read-progress, .to-top, .heading-anchor, .article-side { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .read-progress span, .to-top, .post-nav-item, .card { transition: none; }
}
