/* Garden Foster - theme for growers, not for a review catalogue.

   Palette: forest canopy and warm paper, sage for surfaces, terracotta as the only
   warm signal.  Type: Source Serif 4 for display and reading, Source Sans 3 for
   interface and captions, Instrument Serif italic for the accent words only.
   Shape: soft radii (10-32px), hairline sage borders and a green-tinted shadow, so
   cards lift off the paper rather than sitting in a grid of rules.
   Imagery: every guide that has a photo leads its card with it; botanical line art
   only fills in where the source article has no picture.

   Brand faces are self-hosted (latin subset). Serving them from Google Fonts meant a
   render-blocking stylesheet on a third-party origin - about 900 ms of the render
   path on slow 4G - plus a second origin for the files themselves. Only the faces
   the stylesheet asks for are shipped. Generated by _debug/fetch-fonts.js; re-run it
   rather than hand-editing these blocks. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/source-serif-4-normal-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-serif-4-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/source-sans-3-normal-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-italic-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #14301d;
  --forest-deep: #0c2113;
  --forest-soft: #1f4529;
  --leaf: #3d7a4c;
  --leaf-deep: #2b5a38;
  --leaf-bright: #8fbd83;
  --sage: #cdddc2;
  --sage-soft: #e9f0e0;
  --cream: #faf7ee;
  --cream-2: #f1ebdb;
  --paper: #fffdf8;
  --clay: #b85f3c;
  --clay-soft: #f6e5da;
  --bark: #5b4a3a;
  --ink: #1b2a1e;
  --ink-2: #28382b;
  --muted: #5d6a58;
  --line: #e3dcc9;
  --line-strong: #cfc5ac;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --brand: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 1200px;
  /* One reading measure for the whole article: header, chips, prose and colophon.
     In rem rather than ch, because ch resolves against each block's own font-size. */
  --measure: 42rem;
  --gutter: clamp(20px, 4vw, 44px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 6px -2px rgba(20, 48, 29, 0.12);
  --shadow: 0 18px 40px -30px rgba(20, 48, 29, 0.5);
  --shadow-lift: 0 26px 48px -26px rgba(20, 48, 29, 0.42);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; width: 100%; }

img,
svg { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: rgba(61, 122, 76, 0.2); }

:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4,
h5 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 650;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------ chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-cat { background: var(--sage-soft); color: var(--leaf-deep); }
.chip-soft { background: var(--paper); border-color: var(--line); color: var(--muted); }
.chip-index { background: transparent; border-color: var(--line-strong); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-flag { background: var(--clay-soft); color: #96472a; }
a.chip:hover { text-decoration: none; background: var(--sage); }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 247, 238, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

/* Original GardenFoster wordmark (677×186 PNG). Height only: the intrinsic ratio
   keeps the width right, and the declared width/height attributes in the markup
   stop the header reflowing while it decodes. */
.brand-logo {
  display: block;
  flex: none;
  width: auto;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin-left: auto;
}
.site-nav a {
  padding: 8px 2px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 550;
  transition: color 0.18s var(--ease);
}
.site-nav a:hover { color: var(--leaf-deep); text-decoration: none; }
.site-nav a.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.86rem;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.site-nav a.nav-cta:hover { background: var(--leaf-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 11px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--forest);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
/* Bars fold into an X while the menu is open; the middle bar fades rather than
   collapsing, so the remaining two keep their exact offsets. */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-of-type { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(26px, 3.6vw, 44px);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background:
    radial-gradient(1100px 480px at 88% -12%, rgba(143, 189, 131, 0.22), transparent 62%),
    radial-gradient(760px 420px at 6% 112%, rgba(184, 95, 60, 0.16), transparent 62%),
    linear-gradient(158deg, var(--forest-deep) 0%, var(--forest) 52%, #1a3d24 100%);
  color: var(--cream);
}
/* Botanical line work, not an optical graticule: a scatter of seed leaves drawn at
   low opacity, faded out before it reaches the type. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%23e9f0e0' stroke-opacity='.18' stroke-width='1.3'%3E%3Cpath d='M130 218V104'/%3E%3Cpath d='M130 128c0-30 24-54 54-54 0 30-24 54-54 54Z'/%3E%3Cpath d='M130 160c0-24-19-43-43-43 0 24 19 43 43 43Z'/%3E%3Cpath d='M130 196c0-18 15-33 33-33 0 18-15 33-33 33Z'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 55%, transparent 92%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(44px, 6vw, 78px);
  padding-bottom: clamp(46px, 6vw, 82px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  padding: 7px 14px;
  border: 1px solid rgba(233, 240, 224, 0.24);
  border-radius: 999px;
  background: rgba(233, 240, 224, 0.07);
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf-bright);
  box-shadow: 0 0 0 4px rgba(143, 189, 131, 0.18);
}

.hero h1 {
  margin: 0 0 0.42em;
  color: var(--cream);
  font-size: clamp(2.75rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.hero h1 em {
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: -0.01em;
  color: var(--leaf-bright);
}

.hero-text {
  max-width: 44ch;
  margin: 0 0 clamp(24px, 3vw, 32px);
  color: rgba(250, 247, 238, 0.8);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(28px, 4vw, 42px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cream); color: var(--forest); }
.btn-primary:hover { background: var(--leaf-bright); color: var(--forest-deep); }
.btn-ghost { border-color: rgba(250, 247, 238, 0.34); background: rgba(255, 255, 255, 0.03); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(250, 247, 238, 0.1); }
.btn-sm { padding: 10px 16px; font-size: 0.8rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3.4vw, 44px);
  max-width: 520px;
  margin: 0 0 18px;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid rgba(233, 240, 224, 0.18);
}
.hero-stats li { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  color: rgba(233, 240, 224, 0.62);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-note {
  max-width: 44ch;
  margin: 0;
  color: rgba(233, 240, 224, 0.5);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Featured guide: the one photograph the homepage leads with. */
.hero-side { position: relative; }

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 40px 72px -34px rgba(0, 0, 0, 0.6); }
.feature-media { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sage-soft); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.feature-card:hover .feature-media img { transform: scale(1.03); }
.feature-body { display: block; padding: 18px 22px 22px; }
.feature-tag {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feature-title {
  display: block;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.7vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.feature-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 650;
}

/* --------------------------------------------------------- space finder */

.start-here { margin-bottom: clamp(6px, 1.6vw, 16px); }

.start-heading {
  margin: 0 0 16px;
  color: var(--forest);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 600;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.space-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.space-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.space-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--leaf-deep);
}
.space-icon svg { width: 22px; height: 22px; }
.space-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.space-body strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.2; }
.space-body span { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.space-go { margin-left: auto; color: var(--line-strong); transition: color 0.18s var(--ease), transform 0.18s var(--ease); }
.space-card:hover .space-go { color: var(--leaf); transform: translateX(2px); }

/* -------------------------------------------------------------- sections */

.section { margin-top: clamp(48px, 6.5vw, 84px); }

.section-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-head h2 { margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.section-link:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
}

/* ----------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: var(--shadow-lift);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(140deg, var(--sage-soft), var(--cream-2));
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

/* Articles with no photo get a botanical plate instead of a hole in the grid. */
.card-media-empty { background: linear-gradient(145deg, var(--sage-soft) 0%, #f4efdf 60%, var(--clay-soft) 100%); }
.card-media-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%233d7a4c' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M80 136V62'/%3E%3Cpath d='M80 80c0-20 16-36 36-36 0 20-16 36-36 36Z'/%3E%3Cpath d='M80 102c0-16-13-29-29-29 0 16 13 29 29 29Z'/%3E%3Cpath d='M80 122c0-11 9-20 20-20 0 11-9 20-20 20Z'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.9;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px 20px 20px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

.card-title {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.1rem, 1.4vw, 1.24rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.card-title a { color: var(--forest); transition: color 0.18s var(--ease); }
/* The whole card is the target, so there is one link, not a stack of them. */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--leaf-deep); }

.card-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: auto 0 0;
  padding-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
}
.card-meta > *:not(:last-child)::after { content: "\00b7"; margin-left: 12px; color: var(--line-strong); }
.card-time,
.card-specs { white-space: nowrap; }

/* The lead story in a listing: photograph on one side, headline set large on the
   other, so page one opens with a front-of-book feature rather than a wall of cards. */
.card-lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
}
.card-lead .card-media { aspect-ratio: auto; min-height: 280px; height: 100%; }
.card-lead .card-body { justify-content: center; gap: 12px; padding: clamp(22px, 3vw, 36px); }
.card-lead .card-title { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.06; letter-spacing: -0.022em; }
.card-lead .card-excerpt { max-width: 52ch; font-size: 1rem; -webkit-line-clamp: 3; }

/* ------------------------------------------------------------ calculators */

.calc-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  overflow: hidden;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 300px at 100% 0%, rgba(143, 189, 131, 0.18), transparent 65%),
    linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream);
}
.calc-panel::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(233, 240, 224, 0.12);
  pointer-events: none;
}
.calc-panel .section-kicker { color: var(--leaf-bright); }
.calc-panel h2 { margin: 0 0 12px; color: var(--cream); font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.calc-panel h2 em {
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  color: var(--leaf-bright);
}
.calc-text { max-width: 38ch; margin: 0; color: rgba(250, 247, 238, 0.72); font-size: 0.98rem; line-height: 1.6; }

.calc-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.calc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(233, 240, 224, 0.16);
  border-radius: var(--r);
  background: rgba(250, 247, 238, 0.07);
  color: var(--cream);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.calc-card:hover {
  border-color: rgba(233, 240, 224, 0.34);
  background: rgba(250, 247, 238, 0.13);
  transform: translateX(3px);
  text-decoration: none;
}
.calc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(143, 189, 131, 0.16);
  color: var(--leaf-bright);
}
.calc-icon svg { width: 22px; height: 22px; }
.calc-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.calc-body strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.calc-body span { color: rgba(250, 247, 238, 0.6); font-size: 0.8rem; line-height: 1.4; }
.calc-go { margin-left: auto; color: var(--leaf-bright); }

/* -------------------------------------------------------------- standards */

.standards {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--sage);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--cream) 70%);
}
.standards > .section-kicker { margin-bottom: 8px; }
.standards > h2 { max-width: 26ch; margin: 0 0 clamp(22px, 3vw, 32px); }
.standards > h2 em {
  font-family: var(--brand);
  font-style: italic;
  font-weight: 400;
  color: var(--leaf-deep);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.standards-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.standards-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.standards-item p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.standards-link { margin: clamp(22px, 3vw, 30px) 0 0; text-align: right; }
.standards-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 650;
}
.standards-link a:hover { color: var(--forest); }

/* -------------------------------------------------------------- listings */

.listing-main,
.post-main,
.page-main { padding-top: clamp(24px, 4vw, 44px); }

.listing-header {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(26px, 3.6vw, 42px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(143, 189, 131, 0.3), transparent 70%),
    linear-gradient(135deg, var(--sage-soft) 0%, var(--cream-2) 100%);
}
.listing-heading { position: relative; max-width: 66ch; }
.listing-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.listing-header h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.2vw, 3rem); }
.listing-intro {
  max-width: 60ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
}
.listing-count { margin: 0; }
.listing-count .chip { background: var(--paper); border-color: var(--line-strong); color: var(--muted); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pagination a,
.pagination .page-num {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.pagination a:hover { border-color: var(--forest); color: var(--forest); text-decoration: none; }
.pagination .is-current { border-color: var(--forest); background: var(--forest); color: var(--cream); }

/* --------------------------------------------------------------- article */

.breadcrumbs {
  margin-bottom: clamp(16px, 2.4vw, 26px);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* Separators trail their crumb so a wrapped trail reads as continuing below, never
   as a line that opens with a stray slash. */
.breadcrumbs li:not(:last-child)::after { content: "\203A"; margin-left: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--leaf-deep); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }
/* On guides the trail stops at the section. That crumb repeats the h1 two lines
   below it, and in the narrow single-column layout it was the only one long enough
   to push the trail onto a second line. */
.is-article .breadcrumbs li:last-child { display: none; }
.is-article .breadcrumbs li:nth-last-child(2)::after { content: none; }

.post,
.page { display: block; }

/* Static pages carry no TOC rail, so their header panel is capped to the reading
   column (40rem = the 68ch body measure). At the article width, where the rail
   fills the right side, the panel overhung half a screen of empty space. */
.page > .post-header { max-width: 40rem; }

/* The page header is a planted panel: category chips, the headline and the byline
   sit on a sage wash with a faint sprout watermark, instead of a rule under the h1. */
.post-header {
  position: relative;
  overflow: hidden;
  max-width: 72rem;
  margin-bottom: clamp(24px, 3.2vw, 36px);
  padding: clamp(24px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(560px 280px at 100% 0%, rgba(143, 189, 131, 0.32), transparent 72%),
    linear-gradient(135deg, var(--sage-soft) 0%, var(--cream) 78%);
}
.post-header::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -46px;
  width: 240px;
  height: 240px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160' fill='none'%3E%3Cpath d='M80 140V66' stroke='%233d7a4c' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M80 84c0-21 17-38 38-38 0 21-17 38-38 38Z' fill='%233d7a4c' fill-opacity='.5'/%3E%3Cpath d='M80 108c0-17-14-31-31-31 0 17 14 31 31 31Z' fill='%233d7a4c' fill-opacity='.28'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.32;
  pointer-events: none;
}
.post-tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
a.chip.chip-cat { background: var(--paper); border-color: var(--line); }
.post-header h1 {
  position: relative;
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.page .post-header h1 { margin-bottom: 12px; }
.post-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
}
.post-meta > * { white-space: nowrap; }
/* Separators trail each item so a wrapped byline never starts a line with a dot. */
.post-meta > *:not(:last-child)::after { content: "\00b7"; margin-left: 12px; color: var(--line-strong); }
.post-meta a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.post-meta a:hover { color: var(--leaf-deep); text-decoration-color: currentColor; }

.page-intro { position: relative; max-width: 62ch; margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }

/* Disclosure line under the headline: the two links Amazon requires above the first
   affiliate link. It sits on a soft strip rather than a hairline. */
.evidence {
  max-width: 70ch;
  margin: 0 0 clamp(22px, 2.8vw, 30px);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--muted);
}
.evidence-note { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.evidence-note a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.evidence-note a:hover { color: var(--leaf-deep); text-decoration-color: currentColor; }

/* Colophon: who stands behind the guide. Sits after the body, before related. */
.author-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 6px 20px;
  max-width: 70ch;
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.author-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sage);
  font-family: var(--brand);
  font-style: italic;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.author-card p { margin: 0 0 5px; }
.author-name {
  margin-bottom: 4px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.author-role { color: var(--muted); font-family: var(--sans); font-size: 0.82rem; }
.author-bio { max-width: 62ch; color: var(--muted); font-size: 0.92rem; line-height: 1.62; }
.author-bio a { color: var(--leaf-deep); }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(34px, 4.5vw, 64px);
  align-items: start;
}
.post-body { min-width: 0; max-width: 68ch; }
.post-body > *:first-child { margin-top: 0; }
.post-aside { align-self: stretch; }

/* ----------------------------------------------------------------- prose */

.post-body {
  color: #22301f;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.72;
}
.post-body p { margin: 0 0 1.3em; text-wrap: pretty; }
/* Opening paragraph: one step up in size and colour to set up the article. */
.post-body .post-lead {
  margin-bottom: 1.5em;
  color: var(--forest);
  font-size: 1.26rem;
  line-height: 1.62;
}
/* Section heads carry a short leaf-green rule, not a full-width hairline: enough to
   scan by, without turning every third paragraph into a boxed module. */
.post-body h2 {
  margin: 2em 0 0.7em;
  padding: 0;
  font-size: clamp(1.42rem, 2.3vw, 1.8rem);
  line-height: 1.2;
}
.post-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 0.55em;
  border-radius: 999px;
  background: var(--leaf);
}
.post-body h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.008em;
}
/* The fourth level is a label ("Effectiveness", "Accuracy"), not a heading. */
.post-body h4,
.post-body h5,
.post-body .sub-head {
  margin: 1.8em 0 0.45em;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.post-body .sub-head + p,
.post-body h4 + p,
.post-body h3 + p { margin-top: 0; }
.post-body ul,
.post-body ol { margin: 0 0 1.3em; padding-left: 1.2em; }
.post-body li { margin-bottom: 0.4em; }
.post-body li::marker { color: var(--leaf); }
.post-body a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(61, 122, 76, 0.35);
  text-underline-offset: 3px;
}
.post-body a:hover { text-decoration-color: var(--leaf); }
.post-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border: 0;
  border-radius: var(--r);
  background: var(--sage-soft);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.55;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.post-body figure { margin: 2em 0; }
.post-body figure img { border-radius: var(--r); width: 100%; }
.post-body figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }

/* Spec-sheet tables: a rounded sage card rather than a grid of rules. */
.post-body table,
.page-body table {
  width: 100%;
  margin: 1.9em 0;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
}
.post-body thead th,
.page-body thead th {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--sage-soft);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.post-body tbody th,
.page-body tbody th {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-weight: 650;
  text-align: left;
}
.post-body tbody td,
.page-body tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.post-body tbody tr:nth-child(even) td,
.page-body tbody tr:nth-child(even) td { background: rgba(233, 240, 224, 0.4); }
.post-body tbody tr:hover td,
.post-body tbody tr:hover th,
.page-body tbody tr:hover td,
.page-body tbody tr:hover th { background: var(--sage-soft); }
.post-body tbody tr:last-child td,
.post-body tbody tr:last-child th,
.page-body tbody tr:last-child td,
.page-body tbody tr:last-child th { border-bottom: 0; }
.post-body table.table-narrow,
.page-body table.table-narrow { width: 100%; max-width: 27rem; }

/* Amazon affiliate links: a soft highlighter so commercial links are identifiable
   without turning every product name in a roundup into bold, tinted text. */
.post-body p a[data-search],
.post-body p a[data-asin],
.post-body li a[data-search],
.post-body li a[data-asin],
.post-body td a[data-search],
.post-body td a[data-asin],
.page-body p a[data-search],
.page-body p a[data-asin],
.page-body li a[data-search],
.page-body li a[data-asin] {
  color: var(--forest);
  font-weight: 550;
  text-decoration: none;
  box-shadow: inset 0 -0.3em 0 rgba(61, 122, 76, 0.12);
}
.post-body p a[data-search]:hover,
.post-body p a[data-asin]:hover,
.post-body li a[data-search]:hover,
.post-body li a[data-asin]:hover,
.page-body p a[data-search]:hover,
.page-body p a[data-asin]:hover,
.page-body li a[data-search]:hover,
.page-body li a[data-asin]:hover { color: var(--leaf-deep); box-shadow: inset 0 -0.3em 0 rgba(61, 122, 76, 0.24); }
.pcard-media,
.pcard-title,
.cmp-thumb,
.cmp-name { box-shadow: none; }

.post-body .cmp-buy a.btn-amazon,
.page-body .cmp-buy a.btn-amazon,
.post-body .pcard a.btn-amazon,
.page-body .pcard a.btn-amazon {
  box-shadow: none;
  background: var(--leaf);
  color: #fff;
  text-decoration: none;
}
.post-body .cmp-buy a.btn-amazon:hover,
.page-body .cmp-buy a.btn-amazon:hover,
.post-body .pcard a.btn-amazon:hover,
.page-body .pcard a.btn-amazon:hover { background: var(--leaf-deep); color: #fff; }

.post-body .pcard-title,
.post-body .cmp-name,
.post-body .cmp-thumb,
.page-body .pcard-title,
.page-body .cmp-name,
.page-body .cmp-thumb { text-decoration: none; }
.post-body .pcard-title:hover,
.post-body .cmp-name:hover { color: var(--leaf-deep); }
.post-body a.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: none;
}
.post-body a.btn-amazon:hover { background: var(--leaf-deep); color: #fff; }

/* Table of contents: a sticky card beside the prose, not a second copy of the
   outline. Entries clamp to two lines so a long outline cannot fill the rail. */
.toc-aside {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.toc-title {
  margin: 0 0 14px;
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-list li { margin-bottom: 10px; line-height: 1.45; }
.toc-list a { color: var(--ink-2); font-size: 0.82rem; }
.toc-list a:hover { color: var(--leaf-deep); text-decoration: none; }
.toc-h3 > a { display: block; padding-left: 12px; color: var(--muted); font-size: 0.8rem; }
/* Inline outline. Collapsed, one line, breathing room underneath. Narrow screens get
   it in place of the rail; wide screens get it on guides whose section list was too
   long to sit in a 250px column (those render without the rail at all). */
.toc-mobile {
  display: none;
  margin: 0 0 26px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
}
.toc-mobile summary {
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.toc-mobile .toc-list { margin-top: 14px; }

.related {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.related h2 { margin-bottom: clamp(20px, 2.5vw, 28px); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 110px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(143, 189, 131, 0.16), transparent 65%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: rgba(250, 247, 238, 0.78);
}
.footer-leaf {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300' fill='none' stroke='%23e9f0e0' stroke-opacity='.09' stroke-width='1.4'%3E%3Cpath d='M150 250V120'/%3E%3Cpath d='M150 146c0-34 28-62 62-62 0 34-28 62-62 62Z'/%3E%3Cpath d='M150 184c0-27-22-49-49-49 0 27 22 49 49 49Z'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(30px, 4vw, 44px);
}
.footer-brand .brand { margin-bottom: 14px; }
/* The wordmark is brown and leaf-green, which sinks into the forest footer, so the
   footer prints the same logo as a flat cream silhouette. */
.footer-brand .brand-logo {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand p { max-width: 36ch; margin: 0 0 10px; color: rgba(250, 247, 238, 0.62); font-size: 0.92rem; line-height: 1.6; }
.footer-brand .footer-note { color: rgba(250, 247, 238, 0.42); font-size: 0.8rem; }

.footer-col { display: flex; flex-direction: column; }
.footer-col h2 {
  margin: 0 0 12px;
  color: rgba(233, 240, 224, 0.6);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col a { padding: 4px 0; color: rgba(250, 247, 238, 0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cream); text-decoration: none; }

.footer-legal {
  position: relative;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(250, 247, 238, 0.14);
}
.footer-legal p { margin: 0; color: rgba(250, 247, 238, 0.5); font-size: 0.76rem; line-height: 1.6; }

/* ----------------------------------------------------------------- pages */

.page-body {
  max-width: 70ch;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.72;
}
.page-body h2 { margin-top: 1.8em; }

/* /how-we-review/ */
.method-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 0.2em;
}
.table-caption {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-align: left;
}
.method-foot { margin-top: 26px; color: var(--muted); font-size: 0.88rem; }

.sitemap-groups { columns: 2; column-gap: clamp(32px, 4vw, 56px); }
.sitemap-group { break-inside: avoid; margin: 0 0 34px; }
.sitemap-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 1.12rem;
}
.sitemap-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
}
.sitemap-group ul { margin: 0; padding: 0; list-style: none; }
.sitemap-group li { margin-bottom: 8px; font-size: 0.94rem; line-height: 1.45; }

.error-page {
  position: relative;
  max-width: 64ch;
  margin: clamp(18px, 4vw, 40px) auto;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--paper), var(--sage-soft));
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.error-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--leaf);
}
.error-mark img { display: block; width: 36px; height: 36px; }
.error-code {
  margin: 0;
  color: var(--sage);
  font-family: var(--brand);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
}
.error-page h1 { margin: 0.1em 0 0.35em; }
.error-text { color: var(--muted); }
.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.error-links a {
  display: inline-flex;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 650;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.error-links a:hover { border-color: var(--forest); background: var(--forest); color: var(--cream); text-decoration: none; }

/* ------------------------------------------------ product picks and tables */
/* AzonPress replacement markup (see azonpress.js). Rounded cards and a sage table
   head keep a pick looking like part of the guide, not an embedded shop widget. */

.cta-row { margin: 26px 0; text-align: center; }

.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
  padding: 0;
}

.pcard-single {
  display: grid;
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
  margin: 28px 0;
  padding: 0;
}

.pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pcard:hover { border-color: var(--sage); box-shadow: var(--shadow); }

.pcard-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pcard-media img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.pcard-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.pcard-label {
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pcard-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pcard .btn-amazon { margin-top: auto; width: 100%; justify-content: center; }

.pcard-grid:has(.pcard:only-child) { grid-template-columns: minmax(0, 340px); }

/* A card whose stored AzonPress record was stale links to an Amazon search instead
   of a specific (wrong) product, so it carries no product image. */
.pcard-text { align-items: flex-start; gap: 0; text-align: left; }
.pcard-text .pcard-body { gap: 12px; }
.pcard-text .pcard-title { font-size: 1.02rem; }

.cmp-scroll {
  margin: 30px 0 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}

.cmp-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.88rem;
}

.cmp-table th,
.cmp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.cmp-table tr > *:last-child { border-right: 0; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { background: var(--sage-soft); vertical-align: top; }

.cmp-table tbody th[scope='row'] {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 128px;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-align: left;
}

.cmp-corner { width: 128px; }
.cmp-product { min-width: 140px; font-weight: 400; }

.cmp-thumb img {
  margin: 0 auto 10px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--paper);
  border-radius: var(--r-sm);
}

.cmp-name {
  display: block;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.cmp-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--leaf-deep);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmp-badge-row td,
.cmp-badge-row th { background: var(--sage-soft); color: var(--forest); font-weight: 650; }

.cmp-buy { padding: 8px; }

.cmp-note {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 0.76rem;
}

/* ------------------------------------------------- calculator embeds */

/* The three calculators ship their own scoped stylesheet from WordPress, with their
   own green. These overrides put them on the site's surfaces and type without
   touching the widget markup or its script; the id selectors are the widget roots,
   so the rest of the page is untouched. */
.widget-embed { padding-top: clamp(4px, 1vw, 12px); }

body #gsc-root,
body #gbdc-root { font-family: var(--sans); color: var(--ink-2); }

body #gsc-root h1,
body #gsc-root h2,
body #gsc-root h3,
body #gbdc-root h1,
body #gbdc-root h2,
body #gbdc-root h3,
.widget-embed .psc-widget-title,
.widget-embed .psc-step-title,
.widget-embed .psc-choice-title {
  font-family: var(--serif);
  color: var(--forest);
  letter-spacing: -0.012em;
}

body #gsc-root a,
body #gbdc-root a { color: var(--leaf-deep); }

body #gsc-root .gsc-hero,
body #gbdc-root .gbdc-hero,
.widget-embed .psc-hero {
  border-color: var(--sage);
  border-radius: var(--r-lg);
  background: var(--sage-soft);
}

body #gsc-root .gsc-card,
body #gbdc-root .gbdc-card,
.widget-embed .psc-note-box,
.widget-embed .psc-result-card {
  border-color: var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

body #gsc-root .gsc-choice-card,
body #gbdc-root .gbdc-choice-card,
.widget-embed .psc-choice-card {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
}

body #gsc-root .gsc-btn-primary,
body #gbdc-root .gbdc-btn-primary,
.widget-embed .psc-btn-primary {
  border-color: var(--leaf);
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
}

body #gsc-root .gsc-unit-btn,
body #gbdc-root .gbdc-unit-btn,
.widget-embed .psc-unit-btn {
  border-color: var(--line-strong);
  border-radius: 999px;
}

body #gsc-root input[type="number"],
body #gsc-root select,
body #gbdc-root input[type="number"],
body #gbdc-root select,
.widget-embed .psc-field-row input {
  border-color: var(--line-strong);
  border-radius: 10px;
}

body #gsc-root .gsc-badge,
body #gbdc-root .gbdc-badge { border-radius: 999px; background: var(--forest); color: var(--cream); }

/* ------------------------------------------------------------ responsive */

@media (min-width: 981px) {
  /* Guides without a section rail are a single reading column. Centring the header,
     chips, prose and colophon on one measure keeps the page from looking like a
     two-column layout that lost its sidebar. */
  .post-single > .post-header,
  .post-single > .evidence,
  .post-single > .toc-mobile,
  .post-single > .post-layout,
  .post-single > .author-card,
  .post-main:has(.post-single) > .breadcrumbs {
    max-width: var(--measure);
    margin-inline: auto;
  }
  /* No rail to sit beside, so the grid must not keep reserving its column, and the
     prose fills the shared measure instead of its own 68ch. */
  .post-single .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-single .post-body { max-width: none; }
  .post-single .toc-mobile { display: block; }
}

@media (max-width: 1080px) {
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-side { max-width: 560px; }
  .hero-stats { max-width: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-lead { grid-template-columns: 1fr; }
  .card-lead .card-media { aspect-ratio: 16 / 10; min-height: 0; }
  .post-layout { grid-template-columns: 1fr; }
  .post-body { max-width: none; }
  .toc-aside { display: none; }
  .toc-mobile { display: block; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .sitemap-groups { columns: 1; }
  .standards-grid { grid-template-columns: 1fr; }
  .calc-panel { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .site-nav a.nav-cta { display: flex; justify-content: center; margin-top: 12px; border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .brand-logo { height: 32px; }
  .hero { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .hero-kicker { font-size: 0.64rem; letter-spacing: 0.07em; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .hero-stats { gap: 18px 26px; }
  .space-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-lead .card-body { padding: 20px; }
  .listing-header,
  .post-header,
  .standards,
  .calc-panel { padding: 22px; border-radius: var(--r-lg); }
  .post-header::after { display: none; }
  /* Stacked lines read cleaner than separators orphaned by wrapping. */
  .post-meta { flex-direction: column; gap: 1px; }
  .post-meta > *:not(:last-child)::after { content: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { gap: 10px; }
  .section-link { margin-left: 0; }
  .standards-link { text-align: left; }
  .author-card { grid-template-columns: 1fr; }
  .author-mark { margin-bottom: 8px; }
  .post-body,
  .page-body { font-size: 1.05rem; }
  .post-body h2::before { width: 34px; }
  .post-body table,
  .page-body table { display: block; overflow-x: auto; }
  .post-body thead th { white-space: normal; }
  .error-page { padding: 28px 20px; }
  .error-links { gap: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}












