/* ============================================================
   WELLNESS DESK — shared shell (tokens, header, footer, prose)
   Page-specific CSS stays in that page's own <style> block.
   Tokens below are lifted verbatim from the original lander so
   existing page CSS keeps working unchanged.
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --ink-muted: #717171;
  --bg: #ffffff;
  --bg-warm: #faf8f5;
  --bg-card: #ffffff;
  --accent: #1a56db;
  --accent-hover: #1344b0;
  --gold: #c9a227;
  --gold-light: #f5e6a3;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --green: #16803c;
  --red: #b91c1c;
  --winner-gradient: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  --wrap: 1200px;
  --prose: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x: CLIP, not hidden.
   `overflow: hidden` makes the element a scroll container, which silently
   breaks `position: sticky` on every descendant — that is what killed the
   featured-product rail. `clip` prevents horizontal scroll without creating
   a scroll container, so sticky keeps working. (Chrome 90+, Safari 16+,
   Firefox 81+; older browsers just allow horizontal scroll, which is a far
   milder failure than a dead sticky rail.) */
html, body { overflow-x: clip; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* === HEADER === */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.header-nav { display: flex; gap: 28px; list-style: none; }
.header-nav a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
  text-decoration: none;
}
.header-nav a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 11px; letter-spacing: 0.04em; }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
  margin-top: 64px;
  padding: 40px 0;
}
.site-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.site-footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
}
.site-footer-brand span { color: var(--accent); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin-bottom: 20px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--ink-light);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 780px;
}

/* === EDITORIAL PROSE (article + legal pages) === */
.prose-wrap { max-width: var(--prose); margin: 0 auto; padding: 48px 24px 0; }
.prose-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.prose-wrap h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.prose-byline {
  font-size: 13px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.prose-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.25;
  margin: 40px 0 12px;
}
.prose-wrap h3 { font-size: 20px; margin: 28px 0 8px; }
.prose-wrap p, .prose-wrap li { color: var(--ink-light); margin-bottom: 16px; }
.prose-wrap ul, .prose-wrap ol { padding-left: 22px; }
.prose-wrap a { color: var(--accent); }
.prose-wrap img { max-width: 100%; height: auto; border-radius: 4px; }
.prose-wrap blockquote {
  border-left: 3px solid var(--gold);
  background: var(--bg-warm);
  padding: 16px 20px;
  margin: 24px 0;
  font-family: 'Source Serif 4', Georgia, serif;
}
@media (max-width: 640px) {
  .prose-wrap h1 { font-size: 32px; }
  .prose-wrap h2 { font-size: 24px; }
}

/* === OWNERSHIP / AFFILIATE DISCLOSURE BAR ===
   Required at the top of any review page covering a product we own.
   Markup: <div class="disclosure-bar"> ... </div>  (see _templates/article) */
.disclosure-bar {
  max-width: var(--prose);
  margin: 24px auto 0;
  padding: 14px 18px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-light);
}
.disclosure-bar strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 4px;
}
.disclosure-bar a { color: var(--accent); }
/* Wide pages (comparison landers at 1200px) get the wider bar */
.disclosure-bar.wide { max-width: var(--wrap); }

/* ============================================================
   GENERATED-PAGE COMPONENTS (bin/build.py)
   Topic bar, hubs, card grids, spotlight, related, footer cols.
   These used to live in per-page <style> blocks. Now that home,
   hubs and articles are all generated, they belong here.
   ============================================================ */

/* --- two-row header: sections + topic bar --- */
.nav-topics { border-top: 1px solid var(--border-light); background: var(--bg-warm); }
.topic-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  gap: 22px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.topic-bar::-webkit-scrollbar { display: none; }
.topic-bar a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-light);
  text-decoration: none;
  white-space: nowrap;
}
.topic-bar a:hover { color: var(--accent); }
.site-header { padding: 0; }
.site-header .site-header-inner { padding: 16px 24px; }

/* --- hubs --- */
.hub { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 0; }
.hub-kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted); margin-bottom: 12px;
}
.hub h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px; line-height: 1.12; letter-spacing: -1.2px; margin-bottom: 14px;
  max-width: 780px;
}
.hub-blurb { font-size: 18px; color: var(--ink-light); max-width: 680px; margin-bottom: 10px; }
.hub-lens {
  font-size: 14px; color: var(--ink-muted); max-width: 680px;
  padding: 12px 16px; background: var(--bg-warm);
  border-left: 3px solid var(--gold); border-radius: 3px; margin: 18px 0 0;
}
.hub-lens b { color: var(--ink); }
.topic-sec {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted);
  margin: 44px 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.empty { color: var(--ink-muted); font-style: italic; margin: 32px 0; }

/* --- card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.card {
  display: block; border: 1px solid var(--border); border-radius: 6px;
  padding: 22px; text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.card:hover { border-color: var(--accent); }
.card-kicker {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--accent);
}
.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 21px; line-height: 1.24; margin: 9px 0 7px; letter-spacing: -0.3px;
}
.card p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* --- topic grid --- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.topic-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 6px; padding: 24px;
  text-decoration: none; color: inherit; transition: border-color .15s;
}
.topic-card:hover { border-color: var(--accent); }
.topic-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 23px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.4px;
}
.topic-card p { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 14px; flex: 1; }
.topic-count {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-muted);
}

/* --- home --- */
.home { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.masthead { text-align: center; padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px; line-height: 1.08; letter-spacing: -1.6px; margin-bottom: 14px;
}
.masthead p { color: var(--ink-light); font-size: 18px; max-width: 640px; margin: 0 auto; }
.sec-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-muted); margin: 48px 0 22px;
}
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.spotlight {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px;
  align-items: center; text-decoration: none; color: inherit;
}
.spotlight-media {
  background: var(--bg-warm); border: 1px solid var(--border); border-radius: 6px;
  aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.spotlight-media img { width: 78%; height: auto; }
.spotlight-kicker {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px;
}
.spotlight h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px; line-height: 1.13; letter-spacing: -1px; margin-bottom: 14px;
}
.spotlight p { color: var(--ink-light); font-size: 17px; margin-bottom: 14px; }
.spotlight-meta { font-size: 13px; color: var(--ink-muted); }
.spotlight-more {
  display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em;
}
.spotlight:hover h2 { color: var(--accent); }
.how { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 40px; }
.how h2 { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 12px; }
.how p { color: var(--ink-light); max-width: 700px; margin-bottom: 14px; }

/* --- article extras --- */
.prose-dek { font-size: 20px; line-height: 1.5; color: var(--ink-light); margin-bottom: 18px; }
.prose-kicker a { color: var(--accent); text-decoration: none; }
.prose-kicker a:hover { text-decoration: underline; }
.prose-wrap code {
  font-size: 0.9em; background: var(--bg-warm);
  padding: 2px 5px; border-radius: 3px; border: 1px solid var(--border-light);
}
.related { border-top: 1px solid var(--border); margin-top: 56px; padding: 36px 0 0; }
.related-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.related h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted);
}

/* --- footer columns --- */
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 28px;
}
.footer-cols h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink); margin-bottom: 12px;
}
.footer-blurb { font-size: 14px; color: var(--ink-muted); max-width: 340px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 7px; }
.footer-list a { font-size: 13px; color: var(--ink-light); text-decoration: none; }
.footer-list a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .spotlight { grid-template-columns: 1fr; gap: 22px; }
  .spotlight-media { order: -1; aspect-ratio: 16 / 9; }
  .spotlight h2 { font-size: 27px; }
}
@media (max-width: 640px) {
  .masthead h1 { font-size: 32px; }
  .hub h1 { font-size: 30px; }
  .hub, .home { padding-left: 18px; padding-right: 18px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
}

/* Spotlight with no image: one column, wider measure. */
.spotlight.no-media { grid-template-columns: 1fr; max-width: 820px; }
.spotlight.no-media h2 { font-size: 40px; }
@media (max-width: 640px) { .spotlight.no-media h2 { font-size: 27px; } }

/* ============================================================
   PRODUCT CARDS, FIGURES, CALLOUTS, BYLINES, AUTHOR PAGES
   ============================================================ */

/* --- product card (:::product) --- */
.productcard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  background: var(--bg-card);
  align-items: start;
}
.pc-media {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-media img { width: 88%; height: auto; mix-blend-mode: multiply; }
/* No photo is a designed state, not a broken one: a subtle bottle silhouette
   in the brand's warm grey, so a photo-less card still reads as intentional. */
.pc-media-empty {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0 26%, var(--border-light) 26% 28%, transparent 28%),
    radial-gradient(ellipse at 50% 72%, #eceae5 0 42%, transparent 43%),
    var(--bg-warm);
}
.pc-media-empty::after {
  content: "";
  position: absolute; left: 34%; right: 34%; top: 22%; bottom: 14%;
  border: 1px solid var(--border);
  border-radius: 6px 6px 10px 10px;
  background: #fff;
}
.pc-kicker {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pc-owned {
  background: var(--gold-light); color: #6b5410;
  border: 1px solid #e3cf82; border-radius: 3px;
  padding: 2px 7px; font-size: 9px; letter-spacing: 0.09em;
}
.productcard h3 {
  font-family: 'Playfair Display', serif;
  font-size: 25px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.4px;
}
.pc-verdict { font-size: 16px; color: var(--ink-light); margin-bottom: 14px; }
.pc-specs { margin: 0 0 16px; border-top: 1px solid var(--border-light); }
.pc-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.pc-row dt { color: var(--ink-muted); font-weight: 600; }
.pc-row dd { margin: 0; color: var(--ink); }
.pc-cta {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; padding: 11px 20px; border-radius: 4px;
}
.pc-cta:hover { background: var(--accent-hover); }
@media (max-width: 700px) {
  .productcard { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .pc-media { max-width: 200px; }
  .pc-row { grid-template-columns: 120px 1fr; }
}

/* --- figure (:::figure) --- */
.figure { margin: 30px 0; }
.figure img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border-light); }
.figure figcaption {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px; line-height: 1.55; color: var(--ink-muted); margin-top: 10px;
}
.fig-credit { color: #a5a5a0; }
.figure-wide { margin-left: calc((var(--prose) - min(100vw - 48px, 900px)) / 2); width: min(100vw - 48px, 900px); max-width: none; }
@media (max-width: 820px) { .figure-wide { margin-left: 0; width: 100%; } }

/* --- callout (:::callout) --- */
.callout {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 30px 0;
}
.callout h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--ink); margin-bottom: 8px;
}
.callout p { font-size: 15px; line-height: 1.65; color: var(--ink-light); margin: 0; }

/* --- byline + medical review --- */
.prose-byline { margin-bottom: 8px; }
.byline-author { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline-author:hover { color: var(--accent); text-decoration: underline; }
.byline-role { color: var(--ink-muted); }
.prose-review {
  font-size: 13px; line-height: 1.6; color: var(--ink-light);
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: 4px; padding: 11px 15px;
  margin: 0 0 28px;
}
.review-check {
  display: inline-block; color: var(--green); font-weight: 700; margin-right: 4px;
}
.prose-review b { color: var(--ink); }
.review-disclose { color: var(--ink-muted); font-size: 12px; }

/* --- author box at article foot --- */
.authorbox {
  max-width: var(--prose); margin: 48px auto 0; padding: 0 24px;
}
.authorbox-inner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.authorbox-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--ink-muted); margin-bottom: 8px;
}
.authorbox h3 { font-family: 'Playfair Display', serif; font-size: 21px; margin-bottom: 2px; }
.authorbox h3 a { color: var(--ink); text-decoration: none; }
.authorbox h3 a:hover { color: var(--accent); }
.authorbox-role {
  font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.authorbox p:last-child { font-size: 15px; color: var(--ink-light); margin: 0; }

.authorpage .hub-blurb { max-width: 700px; }

/* ============================================================
   COLUMNS — branded editorial verticals (/wellness-uncensored/)
   ============================================================ */
.column { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.col-masthead {
  text-align: center;
  padding: 56px 0 34px;
  border-bottom: 2px solid var(--ink);
}
.col-byline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--ink-muted); margin-bottom: 16px;
}
.col-masthead h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px; line-height: 1.02; letter-spacing: -2px; margin-bottom: 14px;
}
.col-dek {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 20px; line-height: 1.5; color: var(--ink-light);
  max-width: 640px; margin: 0 auto;
}
.col-feat {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px;
  align-items: center; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 8px; padding: 32px;
  background: var(--bg-warm);
}
.col-feat h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px; line-height: 1.14; letter-spacing: -1px; margin-bottom: 14px;
}
.col-feat p { color: var(--ink-light); font-size: 17px; margin-bottom: 14px; }
.col-feat:hover h2 { color: var(--accent); }
.col-feat-media {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.col-feat-media img { width: 80%; height: auto; }
.nav-column { color: var(--accent) !important; font-weight: 700 !important; }
@media (max-width: 820px) {
  .col-masthead h1 { font-size: 36px; }
  .col-dek { font-size: 17px; }
  .col-feat { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .col-feat-media { order: -1; aspect-ratio: 16 / 9; }
  .col-feat h2 { font-size: 26px; }
}

/* Deep links from the migrated review into the single-product reviews.
   This is the internal-linking engine: the roundup ranks, each entry hands
   off to its own page, and every page routes back to the roundup. */
.product-deep-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px; font-weight: 600; margin: 4px 0 10px;
}
.product-deep-link a { color: var(--accent); text-decoration: none; }
.product-deep-link a:hover { text-decoration: underline; }
.quick-pick-name a { color: var(--accent); text-decoration: none; }
.quick-pick-name a:hover { text-decoration: underline; }

/* ============================================================
   STICKY FEATURED-PRODUCT RAIL
   Modelled on thequalityedit.com's .article-side-product-wrapper
   (288px, position:sticky). One deliberate difference: theirs is
   hidden on mobile; ours falls back to inline, because most of our
   traffic is mobile and hiding the module there hides the offer.
   ============================================================ */
.article-shell.has-rail {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  /* NO align-items: start here. That shrinks the rail column to its content
     height, which leaves a sticky child no distance to travel — it then
     behaves as if it were static. The column must stretch to the row height
     and the STICKY must sit on the inner .rail-card. */
}
/* inside the shell the prose no longer centres itself */
.article-shell.has-rail .prose-wrap {
  max-width: var(--prose);
  margin: 0;
  padding: 48px 0 0;
}
.article-rail { padding-top: 48px; }
.rail-card-sticky { position: sticky; top: 24px; }
.rail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  padding: 20px;
}
.rail-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.rail-owned {
  background: var(--gold-light); color: #6b5410; border: 1px solid #e3cf82;
  border-radius: 3px; padding: 2px 6px; font-size: 8px; letter-spacing: 0.08em;
}
.rail-media {
  display: block; background: var(--bg-warm);
  border: 1px solid var(--border-light); border-radius: 6px;
  aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.rail-media img { width: 86%; height: auto; }
.rail-brand {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.13em; color: var(--ink-muted); margin-bottom: 4px;
}
.rail-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; line-height: 1.22; margin-bottom: 8px; letter-spacing: -0.3px;
}
.rail-name a { color: var(--ink); text-decoration: none; }
.rail-name a:hover { color: var(--accent); }
.rail-blurb { font-size: 13px; line-height: 1.55; color: var(--ink-muted); margin-bottom: 12px; }
.rail-price {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 14px;
}
.rail-cta {
  display: block; text-align: center;
  background: var(--accent); color: #fff !important;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; padding: 12px 16px; border-radius: 4px;
}
.rail-cta:hover { background: var(--accent-hover); }

/* --- promo --- */
.rail-promo {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.rail-promo-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 8px;
}
.rail-code {
  width: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--bg-warm); border: 1px dashed var(--ink-muted);
  border-radius: 4px; padding: 9px 12px; margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}
.rail-code:hover { border-color: var(--accent); }
.rail-code-value { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); }
.rail-code-hint {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
}
.rail-code.copied .rail-code-hint { color: var(--green); }
.rail-terms { font-size: 10px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.rail-review-link {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border-light);
  font-family: 'Source Sans 3', sans-serif; font-size: 12px;
}
.rail-review-link a { color: var(--accent); text-decoration: none; }
.rail-review-link a:hover { text-decoration: underline; }

/* --- mobile: leave the rail, render inline after the article --- */
@media (max-width: 980px) {
  .article-shell.has-rail { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .article-shell.has-rail .prose-wrap {
    max-width: var(--prose); margin: 0 auto; padding: 48px 24px 0;
  }
  .article-rail { padding: 32px 24px 0; }
  /* no sticky on mobile — the column is only as tall as the card, so sticky
     has nowhere to travel and only risks odd behaviour */
  .rail-card-sticky { position: static; }
  .article-rail {
    max-width: var(--prose); margin: 0 auto;
  }
  .rail-media { max-width: 220px; margin-left: auto; margin-right: auto; }
}
.rail-terms-own { margin-top: 6px; font-style: italic; }

/* --- third-party editor's pick variant of the rail --- */
.rail-card-pick { background: var(--bg-warm); }
.rail-unpaid {
  background: #e8efe9; color: var(--green); border: 1px solid #c9ddcd;
  border-radius: 3px; padding: 2px 6px; font-size: 8px; letter-spacing: 0.08em;
}
.rail-media-empty {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 74%, #eceae5 0 44%, transparent 45%),
    var(--bg-card);
}
.rail-media-empty::after {
  content: "";
  position: absolute; left: 33%; right: 33%; top: 20%; bottom: 14%;
  border: 1px solid var(--border);
  border-radius: 6px 6px 10px 10px;
  background: #fff;
}
.rail-spec {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px; color: var(--ink-muted);
  padding: 8px 0; margin-bottom: 10px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.rail-note {
  font-size: 11px; line-height: 1.5; color: var(--ink-muted);
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--border-light);
}
/* Third-party pick CTA: visually secondary to an owned Shop Now, because it
   is a reference rather than a purchase we benefit from. */
.rail-cta-pick {
  background: transparent; color: var(--accent) !important;
  border: 1px solid var(--border);
}
.rail-cta-pick:hover { background: var(--bg-warm); border-color: var(--accent); }

/* ============================================================
   MOBILE NAV — hamburger + drawer
   The inline section row needs ~547px. In a 375px viewport it
   overflowed, and because <html> uses overflow-x:clip the spill
   was not even scrollable: Reviews, Masthead and About were
   unreachable on a phone. Below 860px the row is replaced by a
   drawer that holds everything.
   ============================================================ */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .site-header-inner { padding: 14px 18px; }
  .nav-types { display: none; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;              /* 44px = minimum comfortable tap target */
    margin-right: -10px;                    /* optical alignment to the edge */
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: ""; display: block;
    width: 22px; height: 2px; border-radius: 2px;
    background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; left: 0; }
  .nav-toggle-bars::after  { position: absolute; top:  7px; left: 0; }
  .nav-toggle.is-open .nav-toggle-bars { background: transparent; }
  .nav-toggle.is-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open .nav-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

  .site-drawer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: 18px 18px 26px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--ink-muted);
    margin: 18px 0 8px;
  }
  .drawer-label:first-child { margin-top: 0; }
  .drawer-list { list-style: none; margin: 0 0 4px; }
  .drawer-list li { border-bottom: 1px solid var(--border-light); }
  .drawer-list a {
    display: block; padding: 13px 2px;      /* generous tap targets */
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px; font-weight: 600;
    color: var(--ink); text-decoration: none;
  }
  .drawer-list a:active { background: var(--bg-warm); }
  .drawer-col a { color: var(--accent); }
  .drawer-topics a { font-weight: 500; }

  /* stop the page scrolling behind an open drawer */
  html.drawer-open, html.drawer-open body { overflow: hidden; }

  /* the topic strip scrolls — make that discoverable with an edge fade */
  .nav-topics { position: relative; }
  .nav-topics::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
    background: linear-gradient(to right, rgba(250,248,245,0), var(--bg-warm));
    pointer-events: none;
  }
  .topic-bar { padding: 10px 18px; gap: 20px; }
  .topic-bar a { font-size: 13px; }         /* was 12px — small for a tap target */
}

/* ============================================================
   MOBILE TAP TARGETS
   Audited on a 375px viewport: 34 standalone nav/list links sat
   under 40px tall. Inline links inside prose are exempt (WCAG
   2.5.8), but footer lists, the topic strip and the review's
   quick-picks are navigation and need real targets.
   ============================================================ */
@media (max-width: 860px) {
  .footer-list a         { display: block; padding: 11px 0; font-size: 14px; }
  .footer-nav a          { display: inline-block; padding: 10px 0; }
  /* The strip is a horizontal convenience shortcut. Every topic in it is also
     in the drawer at a full 44px+ target, which satisfies WCAG 2.5.8's
     equivalent-target exception — so this is padded for comfort rather than
     inflated to 44px, which would make the header disproportionately tall. */
  .topic-bar a           { display: block; padding: 9px 0; }
  .quick-pick-name a,
  .product-deep-link a   { display: inline-block; padding: 9px 0; }
  .rail-review-link a    { display: inline-block; padding: 8px 0; }
  .site-logo             { display: inline-block; padding: 4px 0; }

  /* footer columns get more breathing room once links are taller */
  .footer-cols           { gap: 20px; }
  .footer-list li        { border-bottom: 1px solid var(--border-light); }
  .footer-list li:last-child { border-bottom: 0; }
}

/* ============================================================
   WIDE TABLES ON MOBILE
   The review's comparison table is 646px in a 375px viewport.
   It already scrolls inside .table-wrapper, but nothing told the
   reader that — so it looked truncated rather than swipeable.
   ============================================================ */
.table-scroll-hint { display: none; }
@media (max-width: 860px) {
  .table-wrapper { position: relative; }
  .table-scroll-hint {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--ink-muted);
    margin: 0 0 8px;
  }
  .table-scroll-hint::after { content: " \2192"; }
}

/* ============================================================
   AUTHOR AVATARS
   Rendered only when the image file exists (build.py has_photo),
   so declaring a photo path early cannot ship a broken <img>.
   ============================================================ */
.avatar { border-radius: 50%; object-fit: cover; display: block; background: var(--bg-warm); }
.avatar-sm { width: 28px; height: 28px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 88px; height: 88px; }
/* rounded-square variant: matches the soft radius used on article imagery.
   Used on the masthead cards and the author/reviewer profile pages; the
   in-article byline and author box stay circular. */
.avatar-sq { border-radius: 12px; }
.avatar-sq.avatar-md { border-radius: 10px; }
/* neutral stand-in on the masthead and profile pages so every person
   card keeps the same layout while a real photo is outstanding. */
.avatar-placeholder { border: 1px solid var(--border-light); }

/* byline: avatar sits inline with the "By ..." line */
.prose-byline.has-avatar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.prose-byline.has-avatar .avatar-sm { flex: 0 0 auto; }

/* author box at the foot of an article */
.authorbox-inner.has-avatar {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px;
}
.authorbox-inner.has-avatar .avatar-md { margin-top: 2px; }

/* author / reviewer pages */
.authorpage .avatar-lg { margin-bottom: 18px; }

/* masthead cards */
.person-card .avatar-md { margin-bottom: 14px; }

@media (max-width: 640px) {
  .authorbox-inner.has-avatar { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .authorbox-inner.has-avatar .avatar-md { width: 48px; height: 48px; }
}
