/* ==========================================================================
   Mycelium Works — Forest Lab Theme
   Deep forest green ground · moss light cards · amber spore accents
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Greens */
  --forest-900: #1A261B;
  --forest-800: #2A3B2C;
  --forest-700: #3A4F3D;
  --forest-600: #4A634E;
  --moss-500: #5A7A5E;
  --moss-400: #7A9A7E;
  --moss-300: #A8C0AB;
  --moss-200: #D6E3D7;
  --moss-100: #EAF0EA;

  /* Amber spores */
  --amber-900: #8A5E1A;
  --amber-800: #A8752A;
  --amber-600: #C4914D;
  --amber-500: #DBAE6E;
  --amber-400: #EAC894;
  --amber-300: #F5E0BC;
  --amber-200: #FAF0DC;

  /* Mushroom brown */
  --brown-900: #4A3528;
  --brown-800: #5C4232;
  --brown-700: #6B4E3D;
  --brown-500: #8A6A55;
  --brown-300: #B89A85;
  --brown-200: #D9C8B8;
  --brown-100: #EFE5D8;

  /* Spore purple */
  --spore-900: #5C4A6A;
  --spore-700: #7A5C8A;
  --spore-500: #9E7FAB;
  --spore-300: #C4A8CE;
  --spore-100: #E8DCEF;

  /* Semantic */
  --red-600: #B84A3A;
  --red-900: #8A3A2E;
  --red-bg: #331E1A;
  --red-text: #E8A89C;
  --green-ok: #5A7A5E;
  --blue-600: #4A6C8C;
  --blue-bg: #1E2A33;
  --blue-text: #A8C4D9;
  --amber-bg: #2E2418;

  /* Cream */
  --cream-50: #F2EDE4;

  /* Text */
  --text-body: #F2EDE4;
  --text-muted: #C9D4CA;
  --text-dark: #F2EDE4;
  --text-dark-muted: #A8C0AB;
  --text-ink: #1A261B;

  /* Borders */
  --border: #3A4F3D;
  --border-strong: #4A634E;
  --border-amber: #8A5E1A;

  /* Radii */
  --r-sm: 6px;
  --r-card: 14px;
  --r-cta: 20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .28);
  --sh-sm: 0 2px 6px rgba(0, 0, 0, .32);
  --sh-md: 0 6px 18px rgba(0, 0, 0, .38);
  --sh-lg: 0 16px 44px rgba(0, 0, 0, .48);
  --sh-glow: 0 0 0 1px rgba(90, 122, 94, .35);

  /* Motion */
  --t-fast: .16s ease;
  --t-card: .3s ease;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --container-wide: 1360px;
  --gutter: 20px;
  --header-h: 54px;
  --quickbar-h: 32px;

  /* Type */
  --font-head: "Spectral", "Cormorant", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Consolas", "Menlo", "Courier New", monospace;
}

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

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

body {
  margin: 0;
  background: var(--forest-900);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0;
  color: var(--cream-50);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }

a { color: var(--moss-400); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--amber-500); }
.prose a { color: var(--amber-500); text-decoration: underline; text-decoration-color: var(--amber-900); text-underline-offset: 2px; }
.prose a:hover { color: var(--amber-400); text-decoration-color: var(--amber-500); }

img { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

button { font: inherit; cursor: pointer; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: .9em;
}
code {
  background: var(--forest-700);
  color: var(--amber-400);
  padding: 2px 6px;
  border-radius: 4px;
}
pre {
  background: var(--forest-900);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.55;
}
pre code { background: none; padding: 0; color: var(--text-body); }

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

::selection { background: var(--amber-500); color: var(--forest-900); }

:focus-visible {
  outline: 3px solid var(--amber-600);
  outline-offset: 2px;
  border-radius: 3px;
}

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

.section { padding: 60px 0; }
.section-sm { padding: 38px 0; }
.section-tight { padding: 42px 0 60px; }

.grid { display: grid; gap: 22px; }
.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(270px, 1fr)); }

.split-wide { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.split-side { display: grid; grid-template-columns: 1fr 310px; gap: 44px; align-items: start; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }

.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 22px; }

/* ---------- 4. Section headings ---------- */
.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--text-muted); margin: 0; max-width: 62ch; }
.section-head.center p { margin: 0 auto; }

.eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 10px;
}

.section-alt { background: var(--forest-800); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--forest-900);
  border-bottom: 1px solid var(--border-amber);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  position: relative;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--moss-500);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--cream-50);
  white-space: nowrap;
}
.brand-tag {
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-600);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: rgba(90, 122, 94, .14); color: var(--cream-50); }
.nav-link[aria-current="page"] {
  color: var(--amber-500);
  box-shadow: inset 0 -2px 0 var(--amber-600);
  border-radius: 0;
}
.nav-caret { width: 9px; height: 9px; opacity: .75; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 272px;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  z-index: 210;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dd-link {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-body);
  transition: background var(--t-fast), color var(--t-fast);
}
.dd-link:hover, .dd-link:focus-visible { background: var(--forest-700); color: var(--amber-500); }
.dd-title { display: block; font-size: .87rem; font-weight: 600; }
.dd-desc { display: block; font-size: .73rem; color: var(--text-dark-muted); margin-top: 1px; }
.dd-divider { height: 1px; background: var(--border); margin: 7px 4px; }
.dd-link.all { color: var(--amber-600); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }

.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.search-wrap { position: relative; }
.site-search {
  width: 150px;
  padding: 7px 13px;
  font-size: .83rem;
  font-family: inherit;
  color: var(--text-body);
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: width var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.site-search::placeholder { color: var(--text-dark-muted); }
.site-search:focus {
  width: 200px;
  outline: none;
  border-color: var(--amber-600);
  background: var(--forest-900);
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  padding: 6px;
  display: none;
  z-index: 220;
}
.search-results.open { display: block; }
.sr-item {
  display: block;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  color: var(--text-body);
  transition: background var(--t-fast);
}
.sr-item:hover, .sr-item.active { background: var(--forest-700); }
.sr-title { display: block; font-size: .87rem; font-weight: 600; }
.sr-meta { display: block; font-size: .72rem; color: var(--text-dark-muted); }
.sr-empty { padding: 16px 14px; font-size: .83rem; color: var(--text-dark-muted); text-align: center; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-body);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--forest-700); border-color: var(--border-strong); }

.hamburger { display: none; }
.hamburger span {
  display: block;
  width: 17px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background var(--t-fast);
}
.hamburger span::before, .hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-fast), top var(--t-fast);
}
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }
.hamburger.active span { background: transparent; }
.hamburger.active span::before { top: 0; transform: rotate(45deg); }
.hamburger.active span::after { top: 0; transform: rotate(-45deg); }

/* Quick bar — spawn stage shortcut */
.quickbar {
  border-top: 1px solid var(--border);
  background: var(--forest-900);
}
.quickbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--quickbar-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.quickbar-inner::-webkit-scrollbar { display: none; }
.quickbar-label {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
  flex-shrink: 0;
  padding-right: 4px;
}
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.stage-chip:hover { border-color: var(--moss-400); color: var(--cream-50); }
.stage-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss-400); flex-shrink: 0; }
.stage-chip.active {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: var(--forest-900);
}
.stage-chip.active .dot { background: var(--forest-900); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: .93rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-600); color: var(--forest-900); }
.btn-primary:hover { background: var(--amber-500); color: var(--forest-900); }
.btn-moss { background: var(--moss-500); color: var(--cream-50); }
.btn-moss:hover { background: var(--moss-400); color: var(--forest-900); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-body); }
.btn-outline:hover { border-color: var(--amber-600); color: var(--amber-500); background: rgba(196,145,77,.08); }
.btn-ghost-light { background: rgba(242,237,228,.1); color: var(--cream-50); border-color: rgba(242,237,228,.22); }
.btn-ghost-light:hover { background: rgba(242,237,228,.18); color: var(--cream-50); }
.btn-sm { padding: 7px 15px; font-size: .82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

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

/* ---------- 7. Cards ---------- */
.card {
  position: relative;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-card), box-shadow var(--t-card), border-color var(--t-card);
}
a.card, .card-link .card { color: inherit; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg), var(--sh-glow);
  border-color: var(--moss-500);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--forest-900);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-card); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--cream-50);
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--amber-500); }
.card-text { font-size: .87rem; color: var(--text-muted); margin: 0 0 12px; flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  font-size: .78rem;
  color: var(--text-dark-muted);
}
.card-foot .more { color: var(--amber-600); font-weight: 700; }

/* Category card */
.cat-card { padding: 22px; }
.cat-card .cat-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--moss-500);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.cat-card .cat-icon svg { width: 24px; height: 24px; }
.cat-card .cat-count { font-size: .78rem; color: var(--amber-600); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.cat-card .cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--amber-600);
  margin-top: 12px;
}
.cat-card:hover .cat-arrow { color: var(--amber-500); }

/* Tool card */
.tool-card .card-media { aspect-ratio: 4 / 3; background: var(--forest-900); }
.tool-card .card-media img { object-fit: contain; padding: 18px; }

/* Blog card */
.blog-card .card-media { aspect-ratio: 16 / 9; }
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .74rem;
  color: var(--text-dark-muted);
  margin-bottom: 9px;
}
.blog-meta .sep { opacity: .5; }

/* ---------- 8. Tags & chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(196,145,77,.16);
  color: var(--amber-400);
  border: 1px solid rgba(196,145,77,.3);
}
.tag-moss { background: rgba(90,122,94,.2); color: var(--moss-300); border-color: rgba(90,122,94,.4); }
.tag-spore { background: rgba(122,92,138,.22); color: var(--spore-300); border-color: rgba(122,92,138,.42); }
.tag-outline { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }
.tag-red { background: rgba(184,74,58,.18); color: var(--red-text); border-color: rgba(184,74,58,.38); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--forest-800);
  color: var(--text-muted);
  font-size: .79rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--moss-400); color: var(--cream-50); }
.chip.active { background: var(--amber-600); border-color: var(--amber-600); color: var(--forest-900); }

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

/* ---------- 9. Notices ---------- */
.notice {
  display: flex;
  gap: 13px;
  padding: 15px 18px;
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  font-size: .87rem;
  line-height: 1.6;
  margin: 20px 0;
}
.notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--cream-50); }
.notice-safety { background: var(--amber-bg); border-color: var(--amber-900); color: var(--amber-400); }
.notice-info { background: var(--blue-bg); border-color: var(--blue-600); color: var(--blue-text); }
.notice-warn { background: var(--red-bg); border-color: var(--red-900); color: var(--red-text); }
.notice-neutral { background: var(--forest-800); border-color: var(--border); color: var(--text-muted); }

.tip-box {
  border-left: 4px solid var(--amber-600);
  background: rgba(196,145,77,.09);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: .88rem;
}
.tip-box .tip-label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 5px;
}
.tip-box p:last-child { margin-bottom: 0; }
.tip-box.tip-warn { border-color: var(--red-600); background: rgba(184,74,58,.09); }
.tip-box.tip-warn .tip-label { color: var(--red-text); }
.tip-box.tip-note { border-color: var(--blue-600); background: rgba(74,108,140,.1); }
.tip-box.tip-note .tip-label { color: var(--blue-text); }
.tip-box.tip-ok { border-color: var(--green-ok); background: rgba(90,122,94,.11); }
.tip-box.tip-ok .tip-label { color: var(--moss-300); }

.legal-note {
  background: var(--forest-800);
  border-left: 4px solid var(--amber-900);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 13px 16px;
  font-size: .84rem;
  color: var(--text-muted);
  margin: 26px 0;
}
.legal-note strong { color: var(--cream-50); }

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  padding: 46px 24px;
  text-align: center;
  color: var(--text-dark-muted);
  font-size: .9rem;
}
.empty-state strong { display: block; color: var(--cream-50); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- 10. Page hero ---------- */
.page-hero {
  background: var(--forest-800);
  border-bottom: 3px solid var(--border-amber);
  padding: 40px 0 38px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--text-dark-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--moss-300); }
.breadcrumb a:hover { color: var(--amber-500); }
.breadcrumb .crumb-sep { opacity: .5; }
.page-hero h1 { margin-bottom: .4em; }
.page-hero .lede { font-size: 1.03rem; color: var(--text-muted); max-width: 70ch; margin: 0; }

/* ---------- 11. Hero carousel ---------- */
.hero { position: relative; height: 460px; overflow: hidden; background: var(--forest-900); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, #1A261B 0%, rgba(26,38,27,.85) 46%, rgba(90,122,94,.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(196,145,77,.18);
  border: 1px solid rgba(196,145,77,.4);
  color: var(--amber-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1, .hero-title {
  font-size: clamp(1.95rem, 4.2vw, 2.9rem);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 .5em;
  color: var(--cream-50);
}
.hero-sub { font-size: 1.02rem; color: var(--text-muted); margin: 0 0 24px; max-width: 52ch; }
.hero-ctrl {
  position: absolute;
  z-index: 3;
  left: 0; right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-dots { display: flex; align-items: center; gap: 9px; }
.hero-dot {
  width: 30px; height: 4px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(242,237,228,.34);
  transition: width var(--t-card), background var(--t-fast);
}
.hero-dot.active { width: 46px; background: var(--amber-600); }
.hero-arrows { display: flex; gap: 9px; }
.hero-arrow {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26,38,27,.6);
  border: 1px solid var(--border-strong);
  color: var(--cream-50);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.hero-arrow:hover { background: var(--amber-600); border-color: var(--amber-600); color: var(--forest-900); }

/* ---------- 12. Trust bar ---------- */
.trust-bar { background: var(--forest-800); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 30px 0; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; }
.trust-item svg { width: 24px; height: 24px; color: var(--amber-600); flex-shrink: 0; margin-top: 2px; }
.trust-item h4 { font-family: var(--font-body); font-size: .88rem; font-weight: 700; margin: 0 0 3px; color: var(--cream-50); }
.trust-item p { font-size: .79rem; color: var(--text-dark-muted); margin: 0; line-height: 1.55; }

/* ---------- 13. Steps ---------- */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-item { position: relative; }
.step-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--forest-800);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-no {
  position: absolute;
  top: 10px; left: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--forest-900);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: var(--sh-sm);
}
.step-tag { font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--amber-600); }
.step-item h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.step-item p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  background: var(--moss-500);
  border-radius: var(--r-cta);
  padding: 42px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--forest-900);
}
.cta-band h2 { color: var(--forest-900); margin: 0 0 .25em; }
.cta-band p { color: rgba(26,38,27,.82); margin: 0; max-width: 52ch; font-size: .93rem; }
.cta-band .btn-primary { background: var(--forest-900); color: var(--cream-50); }
.cta-band .btn-primary:hover { background: var(--forest-800); }
.cta-band .btn-outline { border-color: rgba(26,38,27,.4); color: var(--forest-900); }
.cta-band .btn-outline:hover { background: rgba(26,38,27,.1); border-color: var(--forest-900); color: var(--forest-900); }

/* ---------- 15. Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin-bottom: 26px;
}
.filter-field { display: flex; flex-direction: column; gap: 5px; }
.filter-field label { font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dark-muted); }
.filter-bar input[type="search"],
.filter-bar input[type="text"],
.filter-bar select {
  font-family: inherit;
  font-size: .85rem;
  color: var(--text-body);
  background: var(--forest-900);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  min-width: 148px;
}
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--amber-600); }
.filter-bar input[type="search"] { min-width: 210px; }
.filter-count {
  margin-left: auto;
  font-size: .8rem;
  color: var(--text-dark-muted);
  align-self: center;
}
.filter-count strong { color: var(--amber-500); }

/* ---------- 16. Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 34px; }
.page-btn {
  min-width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--forest-800);
  color: var(--text-body);
  font-size: .87rem;
  font-weight: 600;
  transition: all var(--t-fast);
}
.page-btn:hover:not(:disabled) { border-color: var(--moss-400); color: var(--cream-50); }
.page-btn.active { background: var(--amber-600); border-color: var(--amber-600); color: var(--forest-900); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 17. Tool detail ---------- */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(90,122,94,.18);
  border: 1px solid rgba(90,122,94,.4);
  color: var(--moss-300);
  font-size: .77rem;
  font-weight: 700;
}
.stage-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss-400); }

.exhibit {
  background: var(--forest-900);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  margin-bottom: 16px;
}
.exhibit img { width: 100%; height: auto; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.thumb {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--forest-900);
  padding: 7px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.thumb:hover { border-color: var(--amber-600); transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spec-table caption {
  text-align: left;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber-600);
  padding-bottom: 10px;
}
.spec-table th, .spec-table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { color: var(--text-dark-muted); font-weight: 600; width: 44%; }
.spec-table td { color: var(--text-body); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.panel {
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 22px;
  margin-bottom: 20px;
}
.panel h3 { font-size: 1.08rem; margin-bottom: 12px; }
.panel > :last-child { margin-bottom: 0; }

.kv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.kv-list li { display: flex; gap: 12px; font-size: .86rem; align-items: flex-start; }
.kv-list .k { color: var(--text-dark-muted); min-width: 116px; flex-shrink: 0; }
.kv-list .v { color: var(--text-body); }

/* ---------- 18. Calculator ---------- */
.calc-form { background: var(--forest-800); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--cream-50); margin-bottom: 7px; }
.field .hint { display: block; font-size: .74rem; color: var(--text-dark-muted); margin-top: 5px; font-weight: 400; }
.field input[type="number"],
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .92rem;
  color: var(--text-body);
  background: var(--forest-900);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  transition: border-color var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-600); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--red-600); }
.field-error { display: block; font-size: .75rem; color: var(--red-text); margin-top: 5px; min-height: 0; }

.unit-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; gap: 3px; background: var(--forest-900); }
.unit-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
}
.unit-toggle button.active { background: var(--amber-600); color: var(--forest-900); }

.result-card {
  background: var(--amber-600);
  border-radius: var(--r-card);
  padding: 28px;
  color: var(--forest-900);
  box-shadow: var(--sh-md);
}
.result-card .rc-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26,38,27,.68);
  margin-bottom: 6px;
}
.result-card .rc-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--forest-900);
  margin-bottom: 6px;
}
.result-card .rc-unit { font-size: 1.3rem; font-weight: 600; }
.result-card .rc-note { font-size: .82rem; color: rgba(26,38,27,.78); margin: 0 0 20px; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.rc-cell {
  background: rgba(26,38,27,.12);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.rc-cell .cl { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgba(26,38,27,.66); margin-bottom: 3px; }
.rc-cell .cv { font-size: 1.06rem; font-weight: 700; color: var(--forest-900); font-family: var(--font-head); }

.gauge { margin-bottom: 18px; }
.gauge-track {
  position: relative;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(26,38,27,.18);
  overflow: visible;
}
.gauge-fill { height: 100%; border-radius: var(--r-pill); background: var(--forest-900); transition: width var(--t-card); }
.gauge-marks { display: flex; justify-content: space-between; margin-top: 7px; font-size: .68rem; font-weight: 700; color: rgba(26,38,27,.68); }
.gauge-marker {
  position: absolute;
  top: -4px;
  width: 3px; height: 18px;
  background: var(--forest-900);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left var(--t-card);
}

.formula-note {
  background: rgba(26,38,27,.14);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: .78rem;
  color: rgba(26,38,27,.85);
  font-family: var(--font-mono);
  line-height: 1.6;
}

.range-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.range-pill {
  flex: 1;
  min-width: 92px;
  text-align: center;
  background: rgba(90,122,94,.16);
  border: 1px solid rgba(90,122,94,.36);
  border-radius: var(--r-sm);
  padding: 11px 10px;
}
.range-pill .rl { font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dark-muted); }
.range-pill .rv { font-family: var(--font-head); font-size: 1.16rem; font-weight: 600; color: var(--cream-50); }
.range-pill.hi { background: rgba(196,145,77,.18); border-color: rgba(196,145,77,.42); }

/* ---------- 19. Blog ---------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 34px;
}
.featured-post .fp-media { position: relative; min-height: 320px; background: var(--forest-900); }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-post .fp-body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.featured-post p { color: var(--text-muted); font-size: .92rem; }

.post-hero { background: var(--forest-800); border-bottom: 3px solid var(--border-amber); padding: 40px 0 0; }
.post-hero .container { padding-bottom: 0; }
.post-hero h1 { max-width: 24ch; }
.post-hero .lede { font-size: 1.05rem; color: var(--text-muted); max-width: 68ch; margin-bottom: 22px; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-dark-muted);
  padding-bottom: 26px;
}
.post-meta .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--moss-500);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--forest-900);
  font-size: .82rem;
  flex-shrink: 0;
}
.post-cover { margin-top: -1px; }
.post-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 0 0 var(--r-card) var(--r-card); }

.post-layout { padding: 44px 0 60px; }
.post-body { max-width: none; }
.post-body h2 { margin-top: 1.7em; padding-top: .2em; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { margin-top: 1.5em; }
.post-body > p:first-of-type { font-size: 1.06rem; color: var(--moss-200); }

.sidebar { position: sticky; top: calc(var(--header-h) + var(--quickbar-h) + 20px); }
.side-block {
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  margin-bottom: 20px;
}
.side-block h3 {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 14px;
}

.toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: 3px; counter-increment: toc; }
.toc a {
  display: block;
  padding: 7px 10px 7px 30px;
  position: relative;
  border-radius: var(--r-sm);
  font-size: .82rem;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 10px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--amber-600);
}
.toc a:hover { background: var(--forest-700); color: var(--cream-50); }
.toc a.active { background: var(--forest-700); color: var(--amber-500); }

.step-block {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  margin: 24px 0;
  align-items: start;
}
.step-block .sb-no {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--moss-500);
  color: var(--forest-900);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
}
.step-block h3 { margin: 4px 0 6px; font-size: 1.12rem; }
.step-block p:last-child { margin-bottom: 0; }

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
  margin: 34px 0;
}
.author-box .avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--moss-500);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-900);
  flex-shrink: 0;
}
.author-box h3 { font-size: 1rem; margin: 0 0 3px; }
.author-box p { font-size: .83rem; color: var(--text-muted); margin: 0; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  display: block;
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px 18px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.post-nav a:hover { border-color: var(--moss-500); transform: translateY(-2px); }
.post-nav .pn-label { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-600); margin-bottom: 5px; }
.post-nav .pn-title { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--cream-50); }
.post-nav .next { text-align: right; }

.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--amber-600);
  z-index: 300;
  transition: width .1s linear;
}
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-800);
  border: 1px solid var(--border-strong);
  color: var(--cream-50);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-card);
  z-index: 190;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--amber-600); color: var(--forest-900); border-color: var(--amber-600); }

/* ---------- 20. Content pages ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prose-block { max-width: 74ch; }
.prose-block h2 { margin-top: 1.6em; }
.prose-block h2:first-child { margin-top: 0; }

.form-card {
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
}
.form-success {
  background: rgba(90,122,94,.16);
  border: 1px solid var(--green-ok);
  color: var(--moss-300);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: .87rem;
  margin-bottom: 18px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--forest-900); border-top: 1px solid var(--border); padding-top: 50px; margin-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding-bottom: 38px;
}
.footer-brand p { font-size: .83rem; color: var(--text-dark-muted); margin: 14px 0; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.footer-social a:hover { border-color: var(--amber-600); color: var(--amber-500); background: rgba(196,145,77,.09); }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .84rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--amber-500); }

.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: .82rem;
  color: var(--text-body);
  background: var(--forest-800);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 14px;
}
.newsletter input:focus { outline: none; border-color: var(--amber-600); }
.newsletter button {
  border: 0;
  border-radius: var(--r-pill);
  background: var(--amber-600);
  color: var(--forest-900);
  font-weight: 700;
  font-size: .82rem;
  padding: 9px 16px;
  transition: background var(--t-fast);
}
.newsletter button:hover { background: var(--amber-500); }
.newsletter-note { font-size: .73rem; color: var(--text-dark-muted); margin-top: 8px; }

.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.disclaimer-box {
  display: flex;
  gap: 14px;
  background: var(--amber-bg);
  border: 1px solid var(--border-amber);
  border-radius: var(--r-card);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.disclaimer-box svg { width: 22px; height: 22px; color: var(--amber-600); flex-shrink: 0; margin-top: 2px; }
.disclaimer-box h4 { font-family: var(--font-body); font-size: .87rem; font-weight: 700; color: var(--amber-400); margin: 0 0 6px; }
.disclaimer-box p { font-size: .81rem; color: var(--amber-400); opacity: .85; margin: 0; line-height: 1.6; }
.edu-note { font-size: .76rem; color: var(--text-dark-muted); margin: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .78rem;
  color: var(--text-dark-muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--text-muted); }
.age-badge {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---------- 22. Utilities ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 400;
  background: var(--amber-600);
  color: var(--forest-900);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .85rem;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: var(--forest-900); }

.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;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 22px; }
.mt-3 { margin-top: 32px; }
.mb-2 { margin-bottom: 22px; }
.mb-3 { margin-bottom: 32px; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dark-muted); }

.divider { height: 1px; background: var(--border); border: 0; margin: 30px 0; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .split-wide { grid-template-columns: 320px 1fr; gap: 30px; }
  .split-side { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media (max-width: 1000px) {
  .site-search { width: 116px; }
  .site-search:focus { width: 160px; }
  .main-nav { gap: 0; }
  .nav-link { padding: 6px 8px; font-size: .8rem; }
}

@media (max-width: 900px) {
  .quickbar { display: none; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-800);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    padding: 10px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: .95rem;
    padding: 12px 14px;
    border-radius: var(--r-sm);
  }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber-600); border-radius: var(--r-sm); }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--forest-900);
    border-radius: var(--r-sm);
    margin: 4px 0 8px;
    padding: 6px;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .nav-caret { transition: transform var(--t-fast); }
  .nav-item.open .nav-caret { transform: rotate(180deg); }

  .hamburger { display: grid; }
  .brand { margin-right: auto; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  ol.steps { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .split-wide, .split-side, .calc-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; }
  .hero { height: 420px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-media { min-height: 240px; position: relative; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 44px 0; }
  .section-sm { padding: 30px 0; }
  .section-tight { padding: 30px 0 44px; }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
  ol.steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .rc-grid { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .hero { height: 460px; }
  .hero-content { max-width: 100%; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .cta-band { padding: 30px 24px; }
  .filter-count { margin-left: 0; }
  .search-results { width: calc(100vw - 32px); right: -50px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
