@font-face {
  font-family: Bricolage;
  src: url("/assets/bricolage.a79fdb52d4.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #28281f;
  --muted: #595a4e;
  --paper: #fbf8eb;
  --surface: #fffcf2;
  --green: #316143;
  --green-soft: #e6eed6;
  --gold: #ffce54;
  --gold-hover: #ffc32b;
  --line: #333328;
  --border-soft: #c8c4b0;
  --display: Bricolage, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.58 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: 76px;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid #1856a4;
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.is-hidden { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 20;
  background: #fff;
  padding: 6px 12px;
}
.skip:focus { top: 8px; }

/* Header & Navigation */
.top {
  border-bottom: 2px solid var(--line);
  background: var(--surface);
}
.top .wrap, .footrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top .wrap { min-height: 74px; }
.brand {
  font: 800 28px/.95 var(--display);
  letter-spacing: -.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 37px; height: 37px; image-rendering: pixelated; }
.top nav, .footnav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 30px);
  flex-wrap: wrap;
}
.top nav a, .footnav a {
  font: 700 15px/1.3 var(--display);
  text-decoration: none;
}
.top nav a:hover, .top nav a[aria-current], .footnav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Buttons & Micro-Triggers */
.mini, .btn, .txtbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 800 16px/1.2 var(--display);
  text-decoration: none;
  cursor: pointer;
}
.mini, .btn {
  border: 2px solid var(--ink);
  border-radius: 8px;
  min-height: 48px;
  padding: 12px 20px;
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
.mini {
  background: var(--ink);
  color: var(--paper);
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
}
.mini:hover { background: #3b3b2e; }
.btn {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--line);
}
.btn:hover, .guidecard:hover, .widget-link:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 var(--line);
}
.btn:hover { background: var(--gold-hover); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 1px var(--line); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.txtbtn {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.icon { width: 19px; height: 19px; fill: currentColor; flex: none; }
.arr { font: 700 22px/1 Arial, sans-serif; }
.mini .arr { font-size: 17px; }
.cta-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.cta-micro {
  font: 600 12px/1.4 system-ui, -apple-system, sans-serif;
  color: var(--muted);
  margin: 0;
}

/* Hero */
.hero {
  background-color: #f8f3df;
  background-image: radial-gradient(#9b8b6636 .85px, transparent 1px);
  background-size: 8px 8px;
  border-bottom: 2px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(28px, 4.5vw, 68px);
  padding-block: 44px 48px;
}
.tag, .eyebrow, .crumbs, .micro {
  font: 700 11px/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: .065em;
}
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #597747;
  color: #2c4327;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  gap: 7px;
}
.tag:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8548;
  box-shadow: 0 0 0 2px #c8dfb8;
}
h1, h2, h3, p, figure, dl, ol, ul { margin: 0; }
h1, h2, h3, summary { font-family: var(--display); }
h1 {
  font-size: clamp(50px, 5.8vw, 84px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.048em;
  margin: 16px 0 14px;
}
h1 span { display: block; color: var(--green); }
h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.05em;
}
h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 800;
}
.answer {
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.5;
  color: #3f4136;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 20px;
}
.pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
}
.pills span {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffcf2;
  border: 1px solid #b8b39a;
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--ink);
}
.pills span:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #4e8048;
  border-radius: 50%;
}

/* Cover & Clickable Hero Widget */
.cover {
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: 5px 6px 0 var(--line);
  background: #fffaf0;
  overflow: hidden;
}
.cover img { width: 100%; height: auto; aspect-ratio: 3/2; }
.cover figcaption {
  padding: 9px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--line);
  gap: 8px;
  color: #474a3c;
}
.cover figcaption span:first-child { font: 800 14px/1.2 var(--display); }
.micro { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }

.crumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  letter-spacing: 0;
  margin: 0 0 13px;
}
.inner .hero-grid { grid-template-columns: 1.32fr .68fr; padding-block: 30px 36px; }
.inner h1 { font-size: clamp(44px, 5vw, 72px); }
.inner h1 span { display: inline; }
.inner h1 span:before { content: " "; }

.widget {
  border-radius: 14px;
  border: 2px solid var(--line);
  padding: 20px 22px;
  box-shadow: 4px 5px 0 var(--line);
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.widget img { width: 60px; height: 60px; image-rendering: pixelated; margin-bottom: 10px; }
.widget b {
  display: block;
  font: 800 clamp(24px, 2.8vw, 36px)/1.07 var(--display);
  letter-spacing: -.045em;
}
.widget small { display: block; margin-top: 7px; font-size: 14px; color: #3d3e34; }
.widget .eyebrow { display: block; margin: 0 0 5px; text-transform: uppercase; }
.widget time { font-variant-numeric: tabular-nums; }
.widget-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font: 800 13px/1.2 var(--display);
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mint { background: #dce9cf; }
.honey { background: #ffe5a0; }
.lilac { background: #e8dff1; }
.sky { background: #dceaf4; }
.peach { background: #f9e1cc; }

/* Sections & Grids */
.section { padding-block: 44px 48px; }
.section + .section { border-top: 1px solid var(--border-soft); }
.sectionhead { margin-bottom: 20px; }
.guidegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.guidecard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 3px 4px 0 var(--line);
  padding: 20px 22px 22px;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.guidecard img { width: 54px; height: 54px; image-rendering: pixelated; margin-bottom: 14px; }
.guidecard h3 { margin: 0 0 7px; }
.guidecard p { font-size: 14px; line-height: 1.48; color: #424339; max-width: 38ch; }
.guidecard .card-meta {
  margin-top: 10px;
  font: 700 11px/1.3 ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  color: var(--green);
}
.roundarr {
  display: grid;
  place-items: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  font: 700 18px/1 Arial;
  border: 1px solid #36372d90;
  border-radius: 50%;
  background: #fff8;
}
.guidecard:hover .roundarr { background: var(--ink); color: #fff; }

.split {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.intro { max-width: 44ch; color: var(--muted); margin: 12px 0 0; }
.source { font-size: 13px; color: var(--muted); margin-top: 14px; }
.source a { font-weight: 650; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 50px;
  padding-bottom: 20px;
  counter-increment: step;
}
.steps li:last-child { padding-bottom: 0; }
.steps li:before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #e3eacc;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 700 13px ui-monospace, monospace;
}
.steps li b { font: 800 19px/1.25 var(--display); display: block; margin-bottom: 3px; }
.steps p, .bodycopy { color: #45473b; }
.bodycopy + .bodycopy { margin-top: 10px; }
.inline-cta { margin-top: 22px; }

/* Tables & Symptom-Fix Matrix */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-soft);
}
th { font: 750 15px var(--display); }
thead { background: #eee9d7; }
tbody th { width: 28%; color: var(--ink); }
.matrix tbody th { width: 34%; }
.badge {
  display: inline-block;
  font: 700 11px/1.2 ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--green-soft);
  color: #27472b;
  border: 1px solid #7ea272;
}
.badge-warn {
  background: #fff0c7;
  color: #5c4200;
  border-color: #cca340;
}

/* SVG Infographic Figure */
.svg-card {
  margin-top: 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fffcf2;
  box-shadow: 3px 4px 0 var(--line);
  overflow: hidden;
}
.svg-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #fbf8eb;
}
.svg-card figcaption {
  padding: 9px 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Interactive Calculators, Filters & Checklist */
.tool-box {
  background: #fffaf0;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  box-shadow: 3px 4px 0 var(--line);
}
.tool-box .fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.tool-box label {
  display: block;
  font: 700 14px var(--display);
}
.tool-box input[type="number"],
.tool-box input[type="search"] {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1.5px solid #6b6d5e;
  background: #fff;
  font: 15px system-ui, sans-serif;
  color: var(--ink);
}
.tool-out {
  display: block;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1eddb;
  border: 1px solid var(--border-soft);
  font: 750 16px/1.4 var(--display);
  color: var(--ink);
}
.tool-sub {
  display: block;
  margin-top: 4px;
  font: 500 13px/1.45 system-ui, sans-serif;
  color: var(--muted);
}
.calc-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 9px;
}
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  cursor: pointer;
  font: 600 14px/1.4 system-ui, sans-serif;
}
.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: none;
}
.meter {
  width: 100%;
  height: 12px;
  margin: 12px 0 8px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ece7d5;
  accent-color: var(--green);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.filter-bar input[type="search"] {
  flex: 1 1 220px;
  margin-top: 0;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font: 700 13px/1.2 var(--display);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fffcf2;
  color: var(--ink);
  cursor: pointer;
}
.chip[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.filter-count {
  font: 700 12px/1.3 ui-monospace, Consolas, monospace;
  color: var(--muted);
  margin-bottom: 10px;
}

.cross { font-size: 14px; margin-top: 14px; color: var(--green); }
.cross a { font-weight: 700; }

/* FAQ */
.faq { border-top: 1px solid #c1beac; }
.faq details { border-bottom: 1px solid #c1beac; }
.faq summary {
  list-style: none;
  padding: 15px 34px 15px 0;
  font-weight: 750;
  font-size: 18px;
  line-height: 1.35;
  position: relative;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after {
  content: "+";
  position: absolute;
  right: 3px;
  top: 11px;
  font-size: 24px;
  color: var(--green);
}
.faq details[open] summary:after { content: "\2212"; }
.faq details p { padding: 0 24px 16px 0; color: var(--muted); }

/* Closing CTA Band & Footer */
.band { background: #e1ebd2; border-block: 2px solid var(--line); }
.band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
  gap: 20px;
}
.band h2 { font-size: clamp(25px, 2.9vw, 36px); }
.band p { color: #3b4636; margin-top: 5px; font-size: 15px; }

.foot { padding-block: 24px 28px; background: #fffaf0; }
.footnav { gap: 14px 20px; flex-wrap: wrap; }
.footnav a { font-size: 14px; }
.foot small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 14px;
}
.notfound { padding-block: 72px; }

/* Sticky Conversion Bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
  transform: translateY(110%);
  transition: transform .22s ease-out;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sticky-copy strong {
  display: block;
  font: 800 15px/1.2 var(--display);
  color: #fff;
}
.sticky-copy span {
  display: block;
  font-size: 12px;
  color: #d6d4c4;
}
.sticky-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sticky-bar .btn {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
  box-shadow: none;
  border-color: var(--gold);
}
.sticky-close {
  background: transparent;
  border: 1px solid #6b6c5c;
  color: #d6d4c4;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font: 700 16px/1 Arial, sans-serif;
  cursor: pointer;
}
.sticky-close:hover { background: #3f3f33; color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { gap: 28px; }
  .guidegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .inner .hero-grid { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: 88px; }
  .wrap { width: calc(100% - 32px); }
  .top .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    min-height: 0;
    padding-block: 10px 8px;
  }
  .brand { font-size: 25px; }
  .brand img { width: 32px; height: 32px; }
  .top .mini { grid-column: 2; grid-row: 1; min-height: 36px; padding: 6px 11px; font-size: 13px; }
  .top nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 10px 16px;
    padding-top: 4px;
  }
  .top nav a { font-size: 14px; }
  .hero-grid, .inner .hero-grid { grid-template-columns: 1fr; gap: 22px; padding-block: 24px 28px; }
  .hero h1, .inner h1 { font-size: clamp(40px, 10.5vw, 60px); margin: 12px 0 11px; }
  .answer { font-size: 16px; }
  .actions { margin-top: 16px; gap: 12px; }
  .pills { margin-top: 14px; gap: 6px 8px; }
  .section { padding-block: 32px 36px; }
  .guidegrid, .split { grid-template-columns: 1fr; gap: 18px; }
  .guidecard {
    min-height: 98px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0 14px;
    align-content: center;
    padding: 15px 42px 15px 14px;
  }
  .guidecard img { grid-row: 1 / 4; align-self: center; width: 50px; height: 50px; margin: 0; }
  .guidecard h3 { font-size: 20px; margin-bottom: 4px; }
  .roundarr { top: 12px; right: 10px; width: 25px; height: 25px; font-size: 15px; }
  .band .wrap, .footrow { align-items: flex-start; flex-direction: column; gap: 14px; }
  .widget { padding: 14px 16px 15px 84px; min-height: 82px; }
  .widget img { position: absolute; width: 52px; height: 52px; left: 16px; top: 16px; }
  .widget b { font-size: 23px; }
  .sticky-inner { width: calc(100% - 24px); padding: 9px 0; gap: 10px; }
  .sticky-copy strong { font-size: 13.5px; }
  .sticky-copy span { font-size: 11px; }
  .sticky-bar .btn { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 390px) {
  .btn { width: 100%; }
  .sticky-bar .btn { width: auto; }
  .pills span { font-size: 11px; padding: 3px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
