/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --text:         #1C1A17;
  --text-muted:   #6B6560;
  --accent:       #C2622A;
  --accent-dark:  #9B4A1B;
  --success:      #4A7C59;
  --warning:      #B85C38;
  --border:       #E5E2DC;
  --star:         #D4960A;
  --ad-bg:        #F5F3F0;

  --radius:       8px;
  --shadow:       0 1px 4px rgba(0,0,0,.07);
  --shadow-hover: 0 4px 12px rgba(0,0,0,.11);

  --content-width: 720px;
  --grid-width:    1100px;
}

/* ── Utilities ─────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ── Typography ────────────────────────────────────────────────────── */
h1, h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 400;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.625rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
h4 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .4rem; }
p  { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .25rem; }
strong { font-weight: 600; }

/* ── Layout helpers ────────────────────────────────────────────────── */
.container       { max-width: var(--grid-width);   margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 1.25rem; }

/* ── Nav ───────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  /* dropdown anchors to this */
  isolation: isolate;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 56px;
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-nav__logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  top: 1px; /* compensate for serif descender optical offset */
}
.site-nav__logo:hover { color: var(--accent); }
.site-nav__links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.site-nav__links a { color: var(--text-muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav__links a:hover { color: var(--accent); }
.site-nav__search { margin-left: auto; }
.site-nav__search form { display: flex; position: relative; }
.site-nav__search input {
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: .35rem .75rem;
  font-size: .85rem;
  outline: none;
  background: var(--bg);
  width: 180px;
}
.site-nav__search button {
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg);
  padding: .35rem .6rem;
  cursor: pointer;
  color: var(--text-muted);
}
.site-nav__search button:hover { background: var(--border); }
.site-nav__burger { display: none; } /* hidden on desktop, shown in mobile @media */

/* ── Search typeahead dropdown ───────────────────────────────────── */
.typeahead-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  /* match input + button width, with a sensible minimum */
  min-width: 320px;
  max-width: 92vw;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  z-index: 200;
}
.typeahead-dropdown[hidden] { display: none; }
.typeahead-item {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .65rem .85rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background-color .12s ease;
}
.typeahead-item:last-of-type { border-bottom: none; }
.typeahead-item:hover,
.typeahead-item.is-active {
  background: #F5F0EB;
  text-decoration: none;
}
.typeahead-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.typeahead-title {
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.3;
  color: var(--text);
  /* clamp to two lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.typeahead-snippet {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.typeahead-badge {
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 999px;
  line-height: 1.4;
  margin-top: .1rem;
  white-space: nowrap;
}
.typeahead-badge--review     { background: var(--accent); color: #fff; }
.typeahead-badge--news       { background: #5A6470;        color: #fff; }
.typeahead-badge--comparison { background: #4A7C59;        color: #fff; }
.typeahead-empty {
  padding: .85rem 1rem;
  color: var(--text-muted);
  font-size: .9rem;
  font-style: italic;
}
.typeahead-more {
  display: block;
  text-align: center;
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.typeahead-more:hover { background: #F5F0EB; }

@media (max-width: 640px) {
  /* On phones, anchor dropdown to viewport edges so it has breathing room */
  .typeahead-dropdown {
    position: fixed;
    top: 56px;            /* below nav bar */
    left: 8px;
    right: 8px;
    min-width: 0;
  }
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: .85rem;
}
.site-footer__inner {
  max-width: var(--grid-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}
.site-footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; }
.site-footer__links a { color: var(--text-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__disclosure { width: 100%; font-size: .8rem; line-height: 1.5; }

/* ── Type badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.badge--review     { background: var(--accent); color: #fff; }
.badge--news       { background: #5a6878;       color: #fff; }
.badge--comparison { background: #4A7C59;       color: #fff; }

/* Verdict aside on /best pages */
.verdict {
  background: #FFF8F4;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}
.verdict h2 { margin: 0 0 .6rem; font-size: 1.25rem; }
.verdict p { margin: 0; font-size: 1rem; line-height: 1.7; }

/* Comparison-page tables (rendered inside body_html by the generator) */
.article-content .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.article-content .comparison-table th,
.article-content .comparison-table td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article-content .comparison-table th {
  background: #FFF8F4;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.article-content .comparison-table tr:hover td { background: #FAFAF8; }
.article-content .comparison-table img { max-width: 80px; max-height: 80px; height: auto; object-fit: contain; display: block; }
.article-content .comparison-table .rank {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.4rem;
  color: var(--accent);
}

/* Per-product hero image inside body sections of /best pages */
.article-content .product-figure {
  margin: 1rem 0 1.25rem;
  text-align: center;
}
.article-content .product-figure img {
  max-width: 320px;
  max-height: 240px;
  height: auto;
  width: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem;
  background: #fff;
}

/* Category-winners variant — slimmer, no thumbnail column */
.article-content .comparison-table--winners th:first-child,
.article-content .comparison-table--winners td:first-child {
  width: 36%;
  font-weight: 600;
}

/* Head-to-head "vs" variant — property labels in left column, one column
   per product. Equal width per product column gives a balanced layout. */
.article-content .comparison-table--versus th:first-child,
.article-content .comparison-table--versus td:first-child {
  width: 24%;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .04em;
}
.article-content .comparison-table--versus th:not(:first-child) {
  width: 38%;
  text-align: center;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.article-content .comparison-table--versus td:not(:first-child) {
  text-align: center;
}

/* Confidence badge — used in the comparison table and per-product stats line */
.article-content .confidence-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .2rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Compact stats line under each product's hero image */
.article-content .product-stats {
  margin: -.25rem 0 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
}
.article-content .product-stats strong { color: var(--text); }
.article-content .product-stats .confidence-badge { vertical-align: middle; }

/* ── Star rating ───────────────────────────────────────────────────── */
.star-rating { display: inline-flex; align-items: center; gap: .35rem; }
.star-rating__stars { color: var(--star); letter-spacing: .05em; font-size: .95rem; }
.star-rating__value { font-weight: 600; font-size: .9rem; }
.star-rating__count { color: var(--text-muted); font-size: .8rem; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card__img-wrap {
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card__img-wrap img { transition: transform .2s ease; }
.card:hover .card__img-wrap img { transform: scale(1.03); }
.card__img-wrap img { max-height: 140px; width: auto; object-fit: contain; }
.card__body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.card__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card__title { font-size: 1rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { font-size: .875rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.card__price { font-weight: 600; font-size: .9rem; color: var(--text); }
.card__cta { font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.card__cta:hover { color: var(--accent-dark); }

/* News card variant (smaller, no image) */
.card--news .card__img-wrap { display: none; }
.card--news .card__body { padding: .9rem 1rem; }

/* ── Article intro paragraph ───────────────────────────────────────── */
.article-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* ── Article layout ────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  max-width: var(--grid-width);
  margin: 2rem auto;
  padding: 0 1.25rem;
  align-items: start;
}
.article-layout--no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}
.article-body { min-width: 0; }
.article-sidebar { position: sticky; top: 72px; }

/* ── Article header ────────────────────────────────────────────────── */
.article-header { margin-bottom: 1.75rem; }
.article-header__breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }
.article-header__breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-header__breadcrumb a:hover { color: var(--accent); }
.article-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .75rem; font-size: .85rem; color: var(--text-muted); }
.article-header__image { border-radius: var(--radius); overflow: hidden; margin: 1rem 0; height: 380px; background: #fff; display: flex; align-items: center; justify-content: center; }
.article-header__image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* ── Affiliate disclosure ───────────────────────────────────────────── */
.affiliate-disclosure {
  background: #FFF8E7;
  border: 1px solid #F0D898;
  border-radius: 4px;
  padding: .5rem .9rem;
  font-size: .8rem;
  color: #7A6020;
  margin-bottom: 1.5rem;
}

/* ── Ad slots ───────────────────────────────────────────────────────── */
.ad-slot {
  background: var(--ad-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 2rem 0;
  overflow: hidden;
}
.ad-slot--leaderboard  { min-height: 90px;  width: 100%; }
.ad-slot--rectangle    { min-height: 250px; width: 300px; max-width: 100%; }
.ad-slot--mobile-banner{ min-height: 50px;  width: 100%; }

/* ── Table of contents ──────────────────────────────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .875rem;
}
.toc__title { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .75rem; }
.toc ol { padding-left: 1.1rem; margin: 0; }
.toc li { margin-bottom: .35rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
/* Mobile: collapsible */
.toc details summary { cursor: pointer; font-weight: 700; font-size: .85rem; }
.toc details ol { margin-top: .5rem; }

/* ── Buy box ────────────────────────────────────────────────────────── */
.buy-box {
  background: #FFF8F4;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.buy-box__product { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.buy-box__price   { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.buy-box__cta {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  line-height: 1.2;
}
.buy-box__cta:hover { background: var(--accent-dark); color: #fff; }
.buy-box__disclosure { font-size: .72rem; color: var(--text-muted); text-align: center; }

/* ── Article body content ───────────────────────────────────────────── */
/* ── Search results page ───────────────────────────────────────────── */
.search-summary {
  color: var(--text-muted);
  margin: 1.25rem 0 1.5rem;
  font-size: .95rem;
}
.search-summary strong { color: var(--text); font-weight: 600; }

.search-section { margin-bottom: 2.5rem; }
.search-section__heading {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.search-empty {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}
.search-empty__hint {
  margin-top: .5rem;
  font-size: .9rem;
}

/* When the /search page form has a dropdown attached, keep the dropdown
   anchored to the form (which is wider on this page than in the nav) */
.search-form { position: relative; }
.search-form .typeahead-dropdown {
  /* The page-level search form is wider — let dropdown match the input */
  right: auto;
  left: 0;
  min-width: min(560px, 100%);
}

/* ── Static pages (privacy policy, about, etc.) ─────────────────────── */
.static-page { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.static-page__header { margin-bottom: 1.5rem; }
.static-page__header h1 { font-size: 2.25rem; margin-bottom: .25rem; }
.static-page__updated { color: var(--text-muted); font-size: .875rem; }
.static-page__signature { margin-top: 2.5rem; font-style: italic; color: var(--text-muted); }

.article-content { font-size: 1.0125rem; line-height: 1.8; }
.article-content h2 { margin-top: 2.5rem; }
.article-content h3 { margin-top: 2rem; }
.article-content p  { margin-bottom: 1.1rem; }
.article-content ul,
.article-content ol { margin-bottom: 1.1rem; }
.article-content li { margin-bottom: .4rem; }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.article-content a  { text-decoration: underline; text-underline-offset: 2px; }

/* ── Tables ─────────────────────────────────────────────────────────── */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: .9375rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-content thead tr { background: #F5F0EB; }
.article-content th {
  padding: .65rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.article-content td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.article-content tr:last-child td { border-bottom: none; }
.article-content tbody tr:nth-child(even) { background: #FAFAF8; }
.article-content tbody tr:hover { background: #F5F2EE; }
/* first column often used as a label — give it a slight visual weight */
.article-content tbody td:first-child { font-weight: 500; color: var(--text); }

/* mobile: allow horizontal scroll so table doesn't break layout */
@media (max-width: 640px) {
  .article-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Pros / Cons ────────────────────────────────────────────────────── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.pros-cons__col { border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.pros-cons__col--pros { background: #EEF6F1; }
.pros-cons__col--cons { background: #FBF0EC; }
.pros-cons__heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .75rem; }
.pros-cons__col--pros .pros-cons__heading { color: var(--success); }
.pros-cons__col--cons .pros-cons__heading { color: var(--warning); }
.pros-cons__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.pros-cons__list li { font-size: .9rem; display: flex; gap: .5rem; align-items: flex-start; }
.pros-cons__list li::before { flex-shrink: 0; margin-top: .15rem; font-size: .8rem; }
.pros-cons__col--pros .pros-cons__list li::before { content: "✓"; color: var(--success); font-weight: 700; }
.pros-cons__col--cons .pros-cons__list li::before { content: "✗"; color: var(--warning); font-weight: 700; }

/* ── Who it's for / skip ────────────────────────────────────────────── */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.who-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.who-card--good { border-color: #b8dcc7; background: #f4fbf7; }
.who-card--skip { border-color: #f0c4b4; background: #fdf5f2; }
.who-card__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .6rem; }
.who-card--good .who-card__label { color: var(--success); }
.who-card--skip .who-card__label { color: var(--warning); }
.who-card p { font-size: .9rem; line-height: 1.65; margin: 0; }

/* ── Verdict box ────────────────────────────────────────────────────── */
.verdict-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.verdict-box__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: .6rem; }
.verdict-box p { margin: 0; font-size: 1rem; line-height: 1.75; }

/* ── YouTube review ─────────────────────────────────────────────────── */
.yt-review {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.yt-review__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.yt-review__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
}
.yt-review__channel {
  font-size: .85rem;
  color: var(--text-muted);
}
.yt-review__note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: #FFF8E7;
  border-bottom: 1px solid #F0D898;
  padding: .75rem 1rem;
  font-size: .875rem;
  line-height: 1.55;
  color: #5a4a10;
}
.yt-review__note-icon {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: .05rem;
  color: #B8860B;
}
.yt-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.yt-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
  transition: opacity .2s;
  display: block;
}
.yt-facade:hover img { opacity: .7; }
.yt-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 44px;
  background: rgba(0,0,0,.75);
  border-radius: 12px;
  transition: background .2s;
}
.yt-facade__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border: 11px solid transparent;
  border-left: 18px solid #fff;
}
.yt-facade:hover .yt-facade__play { background: #c4302b; }

/* ── Related content ────────────────────────────────────────────────── */
.related { margin-top: 3rem; }
.related__title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.related .card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Sources ────────────────────────────────────────────────────────── */
.sources { margin-top: 2rem; font-size: .85rem; color: var(--text-muted); }
.sources h2 { font-size: 1rem; color: var(--text-muted); margin-bottom: .5rem; }
.sources ol { color: var(--text-muted); }
.sources a { color: var(--text-muted); }

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .35rem; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  /* Override --hero-bg-img per page to swap the background photo */
  --hero-bg-img: url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=1400&auto=format&fit=crop&q=75');
  position: relative;
  background:
    linear-gradient(160deg, rgba(255,244,238,.88) 0%, rgba(250,250,248,.84) 55%, rgba(255,248,244,.88) 100%),
    var(--hero-bg-img) center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}
/* Slim decorative band — background only, no inner content */
.hero--slim {
  padding: 0;
  min-height: 8rem;
  border-bottom: none;
}
.hero__inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.hero__tagline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 1.25rem;
  min-height: 2.6em; /* prevent layout jump between short/long lines */
}
/* Individual word spans injected by JS */
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .55s ease, transform .55s ease;
}
.hero__word--visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: .015em;
  opacity: 0;
  transition: opacity 1s ease .3s;
}
.hero__sub--visible { opacity: 1; }

/* ── Homepage sections ──────────────────────────────────────────────── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--border); }
.section-header h2 { font-size: 1.25rem; margin: 0; }
.section-header a  { font-size: .85rem; color: var(--accent); text-decoration: none; font-weight: 600; }

/* ── Category / search page ─────────────────────────────────────────── */
.page-hero { padding: 2rem 0 1rem; }
.page-hero h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.page-hero p  { color: var(--text-muted); font-size: .95rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-chip {
  padding: .3rem .8rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: .8rem;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--surface);
}
.filter-chip:hover, .filter-chip--active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Search results ─────────────────────────────────────────────────── */
.search-form { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  font-size: 1rem;
  outline: none;
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .6rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.search-form button:hover { background: var(--accent-dark); }

/* ── 404 ────────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 5rem; color: var(--border); margin-bottom: .5rem; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.error-page p  { color: var(--text-muted); margin-bottom: 2rem; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────────── */
/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .375rem;
  padding: 2.5rem 0 1.5rem;
}
.pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  transition: background .15s, border-color .15s, color .15s;
}
.pagination__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination__arrow--disabled {
  color: var(--border);
  cursor: default;
  pointer-events: none;
}
.pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 .5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  transition: background .15s, border-color .15s, color .15s;
}
.pagination__page:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination__page--current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}
.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 .25rem;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Load More button (JS-injected above pagination) ─────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}
.load-more-btn {
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: .7rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.load-more-btn:hover { background: var(--accent); color: #fff; }
.load-more-btn:disabled { opacity: .5; cursor: default; }

@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { position: static; }

  .pros-cons  { grid-template-columns: 1fr; }
  .who-grid   { grid-template-columns: 1fr; }

  .buy-box { position: static; }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 56px; /* nav height */
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 99;
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links li { width: 100%; }
  .site-nav__links a {
    display: block;
    padding: .75rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav__links li:last-child a { border-bottom: none; }

  .site-nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: .5rem;
  }
  .site-nav__burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
    transform-origin: center;
  }
  /* ✕ state when open */
  .site-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav__search input { width: 120px; }

  .ad-slot--leaderboard  { min-height: 50px; }
  .ad-slot--rectangle    { width: 100%; }
}
