/* ============================================================
 * Run Reviews — Modernization layer (2026)
 * ------------------------------------------------------------
 * Loaded AFTER css/main.css. Re-skins the whole site through the
 * token cascade + targeted refinement of dated motifs, WITHOUT
 * touching markup or URLs. Design direction: "modern editorial
 * review authority" — ink-dominant, red as a sharp accent,
 * generous whitespace, soft layered depth, clean data UI.
 *
 * Type system:  Bricolage Grotesque (display) + Hanken Grotesk (body).
 * Strategy:     (1) alias the legacy @font-face family names so all
 *               166 existing references adopt the new fonts; (2) also
 *               expose the real variable families for precise weight
 *               control on headings/components.
 * ============================================================ */

/* ---------- 1. Web fonts (self-hosted variable woff2) ---------- */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('../fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
/* Alias legacy family names (exact descriptor match → later rule wins,
 * so every `font-family:'vigaregular'/'robotoregular'/'robotolight'`
 * reference in main.css renders in the new type system). */
@font-face {
  font-family: 'robotoregular';
  src: url('../fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'robotolight';
  src: url('../fonts/hanken-grotesk-var.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'vigaregular';
  src: url('../fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ---------- 2. Token overrides (the global re-skin) ---------- */
:root {
  /* Ink ramp — cool, modern charcoal neutrals. */
  --rr-ink-900: #15171c;
  --rr-ink-800: #1d2026;
  --rr-ink-700: #2b2f37;
  --rr-ink-600: #474d57;
  --rr-ink-500: #69707b;
  --rr-ink-400: #98a0ab;
  --rr-ink-300: #c5cad2;
  --rr-ink-200: #e3e6ea;
  --rr-ink-100: #eef0f3;
  --rr-ink-50:  #f7f8fa;

  /* Brand red — refined, used as a precise accent (not flat fills). */
  --rr-red: #e0322b;
  --rr-red-dark: #b8251f;
  --rr-red-700: #9a1f1a;
  --rr-red-50: #fdeded;

  /* Remap legacy tokens onto the new system (cascades site-wide). */
  --rr-dark: #15171c;
  --rr-bg: #ffffff;
  --rr-bg-soft: #f7f8fa;
  --rr-text: #474d57;
  --rr-heading: #15171c;
  --rr-border: #e3e6ea;
  --rr-muted: #69707b;

  /* Modern radii + extras. */
  --rr-radius-sm: 8px;
  --rr-radius-md: 14px;
  --rr-radius-lg: 22px;
  --rr-radius-pill: 999px;

  /* Soft, layered depth. */
  --rr-shadow-card: 0 1px 2px rgba(21,23,28,.04), 0 8px 24px -10px rgba(21,23,28,.12);
  --rr-shadow-card-hover: 0 2px 6px rgba(21,23,28,.06), 0 26px 50px -14px rgba(21,23,28,.20);

  /* Larger section rhythm + reading measure. */
  --rr-space-9: 5rem;
  --rr-space-10: 7rem;
  /* Site-wide prose width. Set to `none` so ALL prose runs FULL-WIDTH — no
   * reading-measure cap anywhere. Every `max-width: var(--rr-measure)` consumer
   * (§16 page/post prose, review bodies, category intros, archive descriptions,
   * homepage editorial, etc.) resolves to `max-width: none`. To bring back a
   * readable measure later, set this to a length (e.g. 90ch) — that one edit
   * re-constrains the whole site. */
  --rr-measure: none;

  /* Type tokens. */
  --rr-font-sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rr-font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
}

/* ---------- 3. Typography baseline ---------- */
/* The off-canvas mobile nav drawer (.nav-strip / .mega-panel) is parked
 * off-screen to the right; clip horizontal overflow at the root so it never
 * creates a horizontal scrollbar on mobile. `clip` (not `hidden`) so it
 * doesn't turn <html> into a scroll container and break sticky positioning. */
/* Reserve the scrollbar gutter always, so centered content and full-bleed
 * sections (hero/footer) share the exact same width on every page → their
 * left/right edges align and there's no shift between short and tall pages. */
html { overflow-x: clip; scrollbar-gutter: stable; }

body {
  font-family: var(--rr-font-sans);
  /* G1: nudged up for legibility (David asked a few times) — 17px floor, ~18px ceiling. */
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--rr-ink-600);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rr-font-display);
  color: var(--rr-ink-900);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

a { color: var(--rr-red); }
a:hover, a:focus { color: var(--rr-red-dark); }

/* Content links: underline on hover only within prose, not chrome. */
.entry-content a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---------- 4. De-uppercase + refine the dated heading motifs ---------- */
.entry-title,
.rr-review-detail__heading,
.rr-specs__heading {
  font-family: var(--rr-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}
/* Replace the heavy 3px-red underline with a refined hairline + short accent. */
.rr-specs__heading,
.rr-review-detail__heading {
  border-bottom: 1px solid var(--rr-ink-200);
  padding-bottom: var(--rr-space-3);
  position: relative;
}
.rr-specs__heading::after,
.rr-review-detail__heading::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 2.5rem; height: 3px;
  background: var(--rr-red);
  border-radius: var(--rr-radius-pill);
}

/* Section titles: editorial, not centered-uppercase. */
.rr-section { padding-block: clamp(var(--rr-space-7), 4vw, var(--rr-space-9)); }
.rr-section__title {
  font-family: var(--rr-font-display);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
}
.rr-section--soft { background: var(--rr-ink-50); }

/* ---------- 5. Buttons / CTAs — confident, modern ---------- */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
  font-family: var(--rr-font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.7rem 1.35rem;
  border-radius: var(--rr-radius-pill);
  transition: transform .18s var(--rr-ease-out), background .18s, box-shadow .18s, filter .18s;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: none;
  box-shadow: var(--rr-shadow-card);
}

.rr-cta-affiliate {
  font-family: var(--rr-font-sans);
  font-weight: 700;
  /* G4: merchant/buy CTAs in UPPERCASE so the money buttons pop (David's ask). */
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--rr-radius-pill);
  padding: 0.95rem 1.6rem;
}
/* Larger band CTA for the repeat buy-buttons (model + brand "lower down" CTAs).
 * Double class keeps the size above the single.css / archive.css base padding
 * regardless of stylesheet load order. */
.rr-cta-affiliate.rr-cta-affiliate--lg { padding: 1.05rem 2.25rem; font-size: 1.0625rem; }

/* Hero CTAs + category CTA + hero cta: pill + display-free, refined. */
.rr-hero__cta,
.rr-category-hero__cta {
  font-family: var(--rr-font-sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--rr-radius-pill);
}

/* Forms: modern radius + soft focus ring. */
input[type="text"], input[type="email"], input[type="url"],
input[type="search"], input[type="password"], textarea, select {
  border-radius: var(--rr-radius-sm);
  border-color: var(--rr-ink-200);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus,
input[type="search"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  border-color: var(--rr-red);
  box-shadow: 0 0 0 3px var(--rr-red-50);
}

/* ---------- 6. Sidebar widgets — modern card (drop the red top bar) ---------- */
.sidebar .widget,
.widget-area .widget {
  background: var(--rr-bg);
  border: 1px solid var(--rr-ink-200);
  border-top: 1px solid var(--rr-ink-200);
  border-radius: var(--rr-radius-md);
  box-shadow: var(--rr-shadow-card);
  padding: var(--rr-space-4) var(--rr-space-5) var(--rr-space-5);
}
.sidebar .widget-title,
.widget-area .widget-title {
  font-family: var(--rr-font-display);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.sidebar .widget-title::before,
.widget-area .widget-title::before {
  content: "";
  width: 0.7rem; height: 0.7rem;
  border-radius: 3px;
  background: var(--rr-red);
  flex: none;
}
.sidebar .widget ul li,
.widget-area .widget ul li { border-bottom-color: var(--rr-ink-100); }

/* ---------- 7. Specs table — light, modern header ---------- */
.rr-specs-table {
  border-color: var(--rr-ink-200);
  border-radius: var(--rr-radius-md);
}
.rr-specs-table thead th {
  background: var(--rr-ink-50);
  color: var(--rr-ink-900);
  font-family: var(--rr-font-sans);
  font-weight: 700;
  border-bottom: 1px solid var(--rr-ink-200);
}
.rr-specs-table tbody tr:nth-child(even) th,
.rr-specs-table tbody tr:nth-child(even) td { background: var(--rr-ink-50); }

/* Generic prose / TablePress tables — soften legacy bordered tables. */
.entry-content table,
.tablepress {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rr-ink-200);
  border-radius: var(--rr-radius-md);
  overflow: hidden;
  width: 100%;
}
.entry-content table th,
.tablepress thead th {
  background: var(--rr-ink-50);
  color: var(--rr-ink-900);
  font-family: var(--rr-font-sans);
  font-weight: 700;
}
.entry-content table th,
.entry-content table td,
.tablepress th,
.tablepress td {
  border: 0;
  border-bottom: 1px solid var(--rr-ink-100);
  padding: 0.7rem 0.9rem;
}
.tablepress tbody tr:nth-child(even) td { background: var(--rr-ink-50); }

/* ---------- 8. Cards — image-forward with lift ---------- */
.rr-card { border-color: var(--rr-ink-200); border-radius: var(--rr-radius-lg); }
.rr-card:hover, .rr-card:focus-within { transform: translateY(-4px); }
.rr-card__title { font-family: var(--rr-font-sans); font-weight: 600; font-size: 1rem; color: var(--rr-ink-900); }

/* ---------- 9. Footer — refined deep ink ---------- */
.site-footer, .footer-columns { background: var(--rr-ink-900); }
.footer-column .widget-title {
  color: #fff;
  font-family: var(--rr-font-display);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
}
.footer-column .widget-title::before { display: none; } /* no red dot in footer */
.site-info { border-top-color: rgba(255,255,255,.08); }

/* ---------- 10. Primary nav — clean, modern weight ---------- */
.primary-menu > li > a {
  font-family: var(--rr-font-sans);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- 11. Hero — atmosphere + depth ---------- */
.rr-hero { background: var(--rr-ink-900); }
.rr-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(224,50,43,.28), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(224,50,43,.12), transparent 55%);
  pointer-events: none;
}
.rr-hero__eyebrow { letter-spacing: 0.22em; }
.rr-hero__headline { font-family: var(--rr-font-display); font-weight: 700; letter-spacing: -0.03em; }

/* Category hero title -> display font, refined. */
.rr-category-hero__title { font-family: var(--rr-font-display); font-weight: 700; letter-spacing: -0.025em; }

/* ---------- 12. Star rating polish ---------- */
.runreviews-star-rating, .wp-block-runreviews-star-rating { gap: 3px; }

/* ---------- 13. Motion / entrance (respecting reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rr-hero__inner > * { animation: rr-rise .6s var(--rr-ease-out) both; }
  .rr-hero__eyebrow { animation-delay: .02s; }
  .rr-hero__headline { animation-delay: .08s; }
  .rr-hero__sub { animation-delay: .16s; }
  .rr-hero__ctas { animation-delay: .24s; }
}
@keyframes rr-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 14. Mobile header fit ----------
 * The logo renders at its native 318px width, which on a 390px phone
 * crowds the nav toggle off the right edge. Cap it on small screens so
 * the masthead row (logo + hamburger) fits cleanly. */
@media (max-width: 600px) {
  .masthead-inner { gap: var(--rr-space-3); }
  .site-logo-img { max-width: 160px; height: auto; }
}

/* ---------- 15. Dark atmospheric mega-footer ----------
 * Bookends the site with the homepage hero's polish: ink ground + red
 * glow + display type. Carries the primary internal-link nav (brands /
 * type / price / resources) relocated from the old per-page sidebar. */
.rr-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--rr-ink-900);
  color: #c9ccd2;
  /* No margin-top: margin sits OUTSIDE the dark background, so it rendered as a
   * white stripe in the light body. The dark band butts flush to the content;
   * .rr-footer__inner's top padding (clamp(3rem,6vw,5rem)) supplies the air. */
}
.rr-footer__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 80% at 88% 0%, rgba(224,50,43,.26), transparent 60%),
    radial-gradient(48% 70% at 0% 100%, rgba(224,50,43,.12), transparent 55%);
}
.rr-footer__inner {
  max-width: var(--rr-container-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--rr-space-5) var(--rr-space-7);
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .rr-footer__inner { grid-template-columns: minmax(260px, 1fr) 2.4fr; align-items: start; }
}
.rr-footer__logo-img { width: clamp(150px, 18vw, 200px); height: auto; }
.rr-footer__tagline {
  margin: var(--rr-space-4) 0 var(--rr-space-5);
  max-width: 36ch;
  color: #9aa0aa;
  font-size: 0.98rem;
  line-height: 1.6;
}
.rr-footer__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--rr-radius-pill);
  background: var(--rr-red);
  color: #fff;
  font-weight: 600;
  transition: transform .18s var(--rr-ease-out), background .18s, box-shadow .18s;
}
.rr-footer__cta:hover { color:#fff; background: var(--rr-red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(224,50,43,.5); }
.rr-footer__cta span { transition: transform .18s var(--rr-ease-out); }
.rr-footer__cta:hover span { transform: translateX(3px); }

.rr-footer__nav {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--rr-space-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 680px) { .rr-footer__nav { grid-template-columns: repeat(4, 1fr); } }
.rr-footer__heading {
  font-family: var(--rr-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 var(--rr-space-3);
  padding-bottom: var(--rr-space-2);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rr-footer__list, .rr-footer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.rr-footer__list li { margin: 0; }
/* The brand/type/price menus nest their links under a parent item; flatten so
 * every link shows as a flush column entry (the column heading already labels it). */
.rr-footer__list > li > a { font-weight: 600; color: #b9bdc5; }
.rr-footer__list .sub-menu a { font-weight: 400; }
.rr-footer__list a {
  display: block;
  padding: 0.32rem 0;
  color: #9aa0aa;
  font-size: 0.92rem;
  line-height: 1.4;
  transition: color .15s, padding-left .15s var(--rr-ease-out);
}
.rr-footer__list a:hover { color: #fff; padding-left: 4px; }
/* Brands column has the most items — flow into two sub-columns where wide. */
@media (min-width: 1040px) {
  .rr-footer__col:first-child .rr-footer__list { columns: 2; column-gap: var(--rr-space-5); }
}

.rr-footer__bar {
  position: relative; z-index: 1;
  max-width: var(--rr-container-max);
  margin: 0 auto;
  padding: var(--rr-space-4) var(--rr-space-5);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: var(--rr-space-3) var(--rr-space-5);
  align-items: center; justify-content: space-between;
}
.rr-footer__copy { margin: 0; color: #7e848d; font-size: 0.85rem; }
.rr-footer__legal-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rr-space-4); margin: 0; padding: 0; }
.rr-footer__legal-list a { color: #9aa0aa; font-size: 0.85rem; }
.rr-footer__legal-list a:hover { color: #fff; }

/* ---------- 16. Single-column layout (two-column sidebar retired) ----------
 * The right sidebar is gone; its nav moved to the mega-footer. Content is a
 * single full-width column; long-form prose self-constrains to a readable
 * measure, while grids/tables/heroes use the full width. */
/* ONE container width for every page type — content-wrap, full-width section
 * inners, footer, hero and galleries all share --rr-container-max so their
 * left/right edges align and the column never "jumps" between pages. Long-form
 * prose stays readable via the left-aligned --rr-measure below (its left edge
 * lands on the same gutter as the chrome). */
/* GeneratePress floats `.site-main` with a vestigial right margin (the old
 * sidebar gap). We're single-column now, so zero it — otherwise the content
 * column centers in a 20px-narrower box and lands left of the chrome. */
.site-main { margin: 0; width: 100%; }
.site-content-wrap {
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--rr-container-max);
}
/* Readable measure for ALL prose (pages + singles + archive intros), left-
 * aligned so its left edge lands on the same gutter as the full-width chrome.
 * Grids / tables / figures opt out and keep the full container width. */
:is(body.single, body.page:not(.home), .post-type-archive) .entry-content > :where(p, ul, ol, h2, h3, h4, blockquote),
:is(body.single, body.page:not(.home), .post-type-archive) .entry-header {
  max-width: var(--rr-measure);
}
/* Category-landing intro/outro prose -> readable measure (the product grid,
 * tables and images keep the full content width). */
.rr-category-intro > :where(p, ul, ol, h2, h3, h4, blockquote),
.rr-category-outro > :where(p, ul, ol, h2, h3, h4, blockquote) {
  max-width: var(--rr-measure);
}
/* (Former best-buy full-width opt-out removed: with --rr-measure: none, ALL
 * prose is full-width site-wide, so the per-page exception is redundant.) */

/* Contextual "Related Reviews" — now a full-width section below the article. */
.rr-related {
  max-width: var(--rr-container-max);
  margin: var(--rr-space-7) auto 0;
}
.rr-related .rr-related-reviews { /* strip the sidebar-widget card chrome */
  background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0;
}
.rr-related .rr-related-reviews__heading {
  font-family: var(--rr-font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--rr-ink-900);
  display: block;
  margin: 0 0 var(--rr-space-5);
  padding: 0;
  border: 0;
}
.rr-related .rr-related-reviews__heading::before { display: none; } /* no red-dot kicker here */
.rr-related-reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--rr-space-4);
  list-style: none; margin: 0; padding: 0;
}
.rr-related-reviews__item { margin: 0; }
.rr-related-reviews__item .rr-card { height: 100%; }

/* ---------- 17. Homepage "Best by Type" / "Popular Brands" — cards & chips ----------
 * inc/home-cards.php rebuilds the prose link-rows into these grids. */
.rr-cardgrid {
  display: grid;
  gap: var(--rr-space-4);
  margin: var(--rr-space-4) 0 var(--rr-space-6);
}
.rr-cardgrid--type  { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rr-cardgrid--brand { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--rr-space-3); }

.rr-navcard {
  position: relative;
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: var(--rr-space-4) var(--rr-space-5);
  background: var(--rr-bg);
  border: 1px solid var(--rr-ink-200);
  border-radius: var(--rr-radius-lg);
  box-shadow: var(--rr-shadow-card);
  text-decoration: none;
  transition: transform .18s var(--rr-ease-out), box-shadow .18s var(--rr-ease-out), border-color .18s;
}
.rr-navcard::before { /* red accent edge that grows on hover */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rr-red); border-radius: var(--rr-radius-lg) 0 0 var(--rr-radius-lg);
  transform: scaleY(0); transform-origin: bottom; transition: transform .2s var(--rr-ease-out);
}
.rr-navcard:hover { transform: translateY(-3px); box-shadow: var(--rr-shadow-card-hover); border-color: transparent; }
.rr-navcard:hover::before { transform: scaleY(1); }
.rr-navcard__title {
  font-family: var(--rr-font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--rr-ink-900); letter-spacing: -0.01em; line-height: 1.2;
}
.rr-navcard__desc { color: var(--rr-ink-500); font-size: 0.88rem; line-height: 1.5; max-width: none; }
.rr-navcard__arrow {
  margin-top: auto; align-self: flex-start; color: var(--rr-red); font-weight: 700; font-size: 1.05rem;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .18s, transform .18s var(--rr-ease-out);
}
.rr-navcard:hover .rr-navcard__arrow { opacity: 1; transform: translateX(0); }

/* Brand chip-cards: compact + denser. */
.rr-navcard--brand { padding: var(--rr-space-3) var(--rr-space-4); border-radius: var(--rr-radius-md); gap: 0.2rem; }
.rr-navcard--brand::before { border-radius: var(--rr-radius-md) 0 0 var(--rr-radius-md); }
.rr-navcard--brand .rr-navcard__title { font-size: 1rem; }
.rr-navcard--brand .rr-navcard__desc { font-size: 0.82rem; }
.rr-navcard--brand .rr-navcard__arrow { display: none; }
/* H2: brand logo (or initial badge) so the brand cards pop. */
.rr-navcard__logo { display: flex; align-items: center; height: 30px; margin-bottom: var(--rr-space-2); }
.rr-navcard__logo img { max-height: 26px; max-width: 124px; width: auto; object-fit: contain; }
.rr-navcard__logo--initial {
  width: 38px; height: 38px; border-radius: 50%; justify-content: center;
  background: var(--rr-red-50); color: var(--rr-red);
  font-family: var(--rr-font-display); font-weight: 800; font-size: 1.1rem;
}
/* Price ladder: compact cards, fits all five bands across on desktop. */
.rr-cardgrid--price { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--rr-space-3); }
.rr-navcard--price { padding: var(--rr-space-3) var(--rr-space-4); border-radius: var(--rr-radius-md); gap: 0.25rem; }
.rr-navcard--price::before { border-radius: var(--rr-radius-md) 0 0 var(--rr-radius-md); }
.rr-navcard--price .rr-navcard__title { font-size: 1.05rem; }
.rr-navcard--price .rr-navcard__desc { font-size: 0.8rem; }
.rr-navcard--price .rr-navcard__arrow { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rr-navcard, .rr-navcard::before, .rr-navcard__arrow { transition: none; }
}

/* ---------- 18. Homepage "Top Picks" editor's showcase ----------
 * inc/home-cards.php rebuilds the picks table into these cards; the first
 * ("Best Overall") is a dark atmospheric hero-card echoing the page hero. */
.rr-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rr-space-4);
  margin: var(--rr-space-4) 0 var(--rr-space-7);
}
@media (min-width: 880px) { .rr-picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rr-pickcard {
  position: relative;
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: var(--rr-space-5);
  background: var(--rr-bg);
  border: 1px solid var(--rr-ink-200);
  border-radius: var(--rr-radius-lg);
  box-shadow: var(--rr-shadow-card);
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s var(--rr-ease-out), box-shadow .2s var(--rr-ease-out), border-color .2s;
}
.rr-pickcard:hover { transform: translateY(-5px); box-shadow: var(--rr-shadow-card-hover); border-color: transparent; }
/* G4: category emblem + badge header row (David: pics/icons so Best boxes pop). */
.rr-pickcard__head { display: flex; align-items: center; gap: 0.6rem; }
.rr-pickcard__icon {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--rr-red-50); color: var(--rr-red);
}
.rr-pickcard__icon svg { width: 23px; height: 23px; display: block; }
.rr-pickcard--featured .rr-pickcard__icon { background: rgba(255,255,255,.14); color: #fff; }
.rr-pickcard__badge {
  font-family: var(--rr-font-sans); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.07em; line-height: 1.2; text-transform: uppercase;
  color: var(--rr-red); background: var(--rr-red-50);
  padding: 0.32rem 0.7rem; border-radius: var(--rr-radius-pill);
}
/* On the narrow 2-up phone cards the badge would shrink-wrap to 3 cramped lines
 * beside the icon; stack it under the icon there so the label sits on one line. */
@media (max-width: 559px) {
  .rr-pickcard__head { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
}
.rr-pickcard__model {
  font-family: var(--rr-font-display); font-weight: 700;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--rr-ink-900);
}
.rr-pickcard__why { color: var(--rr-ink-600); font-size: 1.05rem; line-height: 1.5; } /* G4: bumped 0.975→1.05rem + darker ink (David: Best-box descriptions read small) */
.rr-pickcard__cta {
  margin-top: auto; padding-top: var(--rr-space-2);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--rr-red);
}
.rr-pickcard__cta span { transition: transform .18s var(--rr-ease-out); }
.rr-pickcard:hover .rr-pickcard__cta span { transform: translateX(4px); }

/* Featured "Best Overall" — dark atmospheric hero-card. */
.rr-pickcard--featured { background: var(--rr-ink-900); border-color: transparent; isolation: isolate; }
.rr-pickcard--featured::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(75% 90% at 92% 0%, rgba(224,50,43,.32), transparent 60%);
}
.rr-pickcard--featured .rr-pickcard__badge { color: #fff; background: var(--rr-red); }
.rr-pickcard--featured .rr-pickcard__model { color: #fff; }
.rr-pickcard--featured .rr-pickcard__why { color: #b9bdc5; }
.rr-pickcard--featured .rr-pickcard__cta { color: #fff; }
.rr-pickcard--featured .rr-pickcard__cta span { color: var(--rr-red); }

/* Real pill CTA replacing the legacy "see best picks" image button. */
.rr-home-editorial .rr-home-cta.button,
.rr-home-cta.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: var(--rr-space-3) 0 var(--rr-space-5);
  padding: 0.85rem 1.6rem; font-size: 1rem; font-weight: 700;
  background: var(--rr-red); color: #fff; border: 0;
}
.rr-home-cta.button:hover { background: var(--rr-red-dark); color: #fff; }
.rr-home-cta.button span { transition: transform .18s var(--rr-ease-out); }
.rr-home-cta.button:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .rr-pickcard, .rr-pickcard__cta span, .rr-home-cta.button span { transition: none; }
}

/* ---------- 19. Site-wide scroll-reveal ----------
 * js/site-reveal.js tags below-the-fold grids (.rr-stagger) and blocks (.rr-rv)
 * and adds .rr-reveal-ready to <html>. Without JS (or with reduced motion),
 * nothing is hidden. Pure opacity/transform — no layout shift. */
.rr-reveal-ready .rr-rv { opacity: 0; transform: translateY(18px); }
.rr-rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--rr-ease-out), transform .55s var(--rr-ease-out);
}
.rr-reveal-ready .rr-stagger > * { opacity: 0; transform: translateY(16px); }
.rr-stagger.is-in > * {
  opacity: 1; transform: none;
  transition: opacity .5s var(--rr-ease-out), transform .5s var(--rr-ease-out);
}
.rr-stagger.is-in > *:nth-child(2) { transition-delay: .05s; }
.rr-stagger.is-in > *:nth-child(3) { transition-delay: .10s; }
.rr-stagger.is-in > *:nth-child(4) { transition-delay: .15s; }
.rr-stagger.is-in > *:nth-child(5) { transition-delay: .20s; }
.rr-stagger.is-in > *:nth-child(6) { transition-delay: .25s; }
.rr-stagger.is-in > *:nth-child(7) { transition-delay: .30s; }
.rr-stagger.is-in > *:nth-child(n+8) { transition-delay: .33s; }
@media (prefers-reduced-motion: reduce) {
  .rr-rv, .rr-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- 20. Homepage intro credibility card + brand strip ----------
 * Responsive HTML rebuild of the old baked "Looking for a Great Treadmill" PNG. */
.rr-intro {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: var(--rr-bg);
  border: 1px solid var(--rr-ink-200);
  border-radius: var(--rr-radius-lg);
  box-shadow: var(--rr-shadow-card);
  overflow: hidden;
  margin: var(--rr-space-5) 0 var(--rr-space-4);
}
@media (min-width: 620px) { .rr-intro { grid-template-columns: minmax(0, 0.85fr) 1.15fr; } }
.rr-intro__media { margin: 0; background: var(--rr-ink-100); }
.rr-intro__media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.rr-intro__body { padding: var(--rr-space-5) var(--rr-space-6); display: flex; flex-direction: column; justify-content: center; }
.rr-intro__eyebrow {
  font-family: var(--rr-font-sans); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--rr-red);
  margin: 0 0 var(--rr-space-4);
}
.rr-intro__checks { list-style: none; margin: 0 0 var(--rr-space-5); padding: 0; display: grid; gap: 0.85rem; }
.rr-intro__checks li {
  position: relative; padding-left: 2.85rem;
  font-size: 1.25rem; color: var(--rr-ink-700); line-height: 1.35; /* G4: bumped 1.15→1.25rem (David: checkmarks looked small) */
}
.rr-intro__checks li::before {
  content: "\2713"; position: absolute; left: 0; top: -0.05em;
  width: 2rem; height: 2rem; display: grid; place-items: center; /* G4: bigger check disc (was 1.7rem) */
  font-size: 1.15rem; font-weight: 700; color: #fff;
  background: var(--rr-red); border-radius: 50%;
  box-shadow: 0 2px 6px -1px rgba(224,50,43,.45);
}
.rr-intro__checks strong { color: var(--rr-ink-900); font-weight: 700; }
.rr-intro__body .rr-home-cta.button { align-self: flex-start; margin: 0; }

.rr-intro__brands {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--rr-space-4) var(--rr-space-6);
  padding: var(--rr-space-4) var(--rr-space-2);
  margin: 0 0 var(--rr-space-6);
  border-top: 1px solid var(--rr-ink-100);
  border-bottom: 1px solid var(--rr-ink-100);
}
.rr-intro__brands-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--rr-ink-400); flex: none;
}
.rr-intro__logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--rr-space-4) var(--rr-space-6); margin: 0; padding: 0; }
.rr-intro__logos li { line-height: 0; }
.rr-intro__logos img {
  height: 24px; width: auto; display: block;
  opacity: 0.78; transition: opacity .2s var(--rr-ease-out), transform .2s var(--rr-ease-out);
}
.rr-intro__logos li:hover img { opacity: 1; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .rr-intro__logos img { transition: none; } }

/* ---------- 21. Best-buy tier cards — unified brand accent ----------
 * /best-buy-treadmills/ previously authored a per-card `widget_background_color`
 * (and a few per-CTA `button_color`s) → a confusing rainbow of border colors
 * with no meaning. Those values are no longer emitted (see
 * template-parts/page-best-buy-treadmills.php), so the cards inherit the brand
 * red default; here we refine them to match the site's card system. */
.page-best-buy-treadmills .rr-best-buy { gap: var(--rr-space-5); margin-top: var(--rr-space-6); }
@media (min-width: 760px) { .page-best-buy-treadmills .rr-best-buy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-best-buy-treadmills .rr-bb-widget {
  padding: var(--rr-space-5);
  gap: var(--rr-space-4);
  background: var(--rr-bg);
  border: 1px solid var(--rr-ink-200);   /* drops the heavy 4px colored top bar */
  border-radius: var(--rr-radius-lg);
  box-shadow: var(--rr-shadow-card);
  transition: transform .18s var(--rr-ease-out), box-shadow .18s var(--rr-ease-out), border-color .18s;
}
.page-best-buy-treadmills .rr-bb-widget:hover {
  transform: translateY(-4px);
  box-shadow: var(--rr-shadow-card-hover);
  border-color: transparent;
}
.page-best-buy-treadmills .rr-bb-widget__title {
  font-family: var(--rr-font-display); font-weight: 700;
  font-size: 1.18rem; letter-spacing: -0.01em; color: var(--rr-ink-900);
  margin: 0; padding: 0 0 var(--rr-space-3);
  border-bottom: 1px solid var(--rr-ink-100);   /* neutral divider, not a colored bar */
  display: flex; align-items: center; gap: 0.6rem;
}
.page-best-buy-treadmills .rr-bb-widget__title::before {
  content: ""; flex: none; width: 9px; height: 9px;
  border-radius: 2px; background: var(--rr-red);
}
.page-best-buy-treadmills .rr-bb-widget__thumb { border-radius: var(--rr-radius-sm); }
.page-best-buy-treadmills .rr-bb-widget__post-title { font-family: var(--rr-font-sans); }

/* ---------- 22. "Choose by Price or Type" — editorial price/type index ----------
 * Retired the legacy photo tiles (inconsistent product cutouts; a photo can't
 * express a price band). Rebuilt photo-free in the navcard language: price
 * cards carry an ascending "tier" meter so the six bands read left-to-right as
 * a ladder; type cards a Font Awesome glyph in a red chip. Scoped to .rr-choose. */
/* Clear the sticky header when the module is an anchored/targeted scroll dest. */
.rr-choose { scroll-margin-top: 90px; }
@media (min-width: 901px) { .rr-choose { scroll-margin-top: 145px; } }
.rr-choose__eyebrow {
  font-family: var(--rr-font-sans); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rr-red); margin: 0 0 var(--rr-space-2);
}
.rr-choose__title {
  font-family: var(--rr-font-display); font-weight: 700;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); letter-spacing: -0.02em;
  color: var(--rr-ink-900); line-height: 1.1; margin: 0 0 var(--rr-space-6);
}
.rr-choose__group { margin-top: var(--rr-space-7); }
.rr-choose__group:first-of-type { margin-top: 0; }
/* Group label with a hairline rule trailing to the right. */
.rr-choose__grouphead {
  display: flex; align-items: center; gap: var(--rr-space-4);
  margin: 0 0 var(--rr-space-4);
  font-family: var(--rr-font-sans); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rr-ink-500);
}
.rr-choose__grouphead span { flex: 0 0 auto; }
.rr-choose__grouphead::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, var(--rr-ink-200), transparent);
}

.rr-choosegrid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rr-space-4); }
.rr-choosegrid li { margin: 0; }
.rr-choosegrid--price { grid-template-columns: repeat(2, 1fr); gap: var(--rr-space-3); }
@media (min-width: 540px) { .rr-choosegrid--price { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .rr-choosegrid--price { grid-template-columns: repeat(6, 1fr); } }
.rr-choosegrid--type { grid-template-columns: 1fr; }
@media (min-width: 560px) { .rr-choosegrid--type { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .rr-choosegrid--type { grid-template-columns: repeat(3, 1fr); } }

/* Shared card chassis (aligned with the homepage navcard). */
.rr-choosecard {
  position: relative; display: flex; isolation: isolate;
  background: var(--rr-bg); border: 1px solid var(--rr-ink-200);
  border-radius: var(--rr-radius-lg); box-shadow: var(--rr-shadow-card);
  text-decoration: none; overflow: hidden;
  transition: transform .18s var(--rr-ease-out), box-shadow .18s var(--rr-ease-out), border-color .18s;
}
.rr-choosecard::before { /* red accent edge, grows on hover */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--rr-red); transform: scaleY(0); transform-origin: bottom;
  transition: transform .2s var(--rr-ease-out);
}
.rr-choosecard:hover, .rr-choosecard:focus-visible {
  transform: translateY(-3px); box-shadow: var(--rr-shadow-card-hover); border-color: transparent;
  text-decoration: none; /* suppress the global a:hover underline leaking onto the spans */
}
.rr-choosecard:hover::before, .rr-choosecard:focus-visible::before { transform: scaleY(1); }
.rr-choosecard__title {
  font-family: var(--rr-font-display); font-weight: 600; letter-spacing: -0.01em;
  color: var(--rr-ink-900); line-height: 1.15;
}
.rr-choosecard__desc { color: var(--rr-ink-500); line-height: 1.45; }

/* Price card — ascending tier meter on top, the band as the hero. */
.rr-choosecard--price {
  flex-direction: column; gap: 0.35rem;
  padding: var(--rr-space-4) var(--rr-space-4) var(--rr-space-5);
}
.rr-choosecard--price .rr-choosecard__title { font-size: 1.02rem; }
.rr-choosecard--price .rr-choosecard__desc { font-size: 0.8rem; }
.rr-choosecard__level { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-bottom: 0.2rem; }
.rr-choosecard__level span {
  width: 5px; border-radius: 2px; background: var(--rr-ink-300);
  transition: background .2s var(--rr-ease-out);
}
.rr-choosecard__level span:nth-child(1) { height: 38%; }
.rr-choosecard__level span:nth-child(2) { height: 50%; }
.rr-choosecard__level span:nth-child(3) { height: 62%; }
.rr-choosecard__level span:nth-child(4) { height: 74%; }
.rr-choosecard__level span:nth-child(5) { height: 87%; }
.rr-choosecard__level span:nth-child(6) { height: 100%; }
.rr-choosecard__level .is-on { background: var(--rr-red); }
.rr-choosecard--price:hover .rr-choosecard__level span:not(.is-on) { background: var(--rr-ink-400); }

/* Type card — icon chip + body + hover arrow. */
.rr-choosecard--type {
  align-items: center; gap: var(--rr-space-4);
  padding: var(--rr-space-4) var(--rr-space-5);
}
.rr-choosecard__icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--rr-radius-md);
  background: var(--rr-red-50); color: var(--rr-red); font-size: 1.15rem;
  transition: background .2s var(--rr-ease-out), color .2s var(--rr-ease-out), transform .2s var(--rr-ease-out);
}
.rr-choosecard--type:hover .rr-choosecard__icon,
.rr-choosecard--type:focus-visible .rr-choosecard__icon { background: var(--rr-red); color: #fff; transform: scale(1.05); }
.rr-choosecard__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.rr-choosecard--type .rr-choosecard__title { font-size: 1.02rem; }
.rr-choosecard--type .rr-choosecard__desc { font-size: 0.82rem; }
.rr-choosecard__arrow {
  margin-left: auto; align-self: center; flex: 0 0 auto;
  color: var(--rr-red); font-weight: 700; font-size: 1.1rem;
  opacity: 0.3; transform: translateX(-3px); /* faint at rest so the wide card's right edge isn't empty */
  transition: opacity .18s, transform .18s var(--rr-ease-out);
}
.rr-choosecard--type:hover .rr-choosecard__arrow,
.rr-choosecard--type:focus-visible .rr-choosecard__arrow { opacity: 1; transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .rr-choosecard, .rr-choosecard::before, .rr-choosecard__icon,
  .rr-choosecard__arrow, .rr-choosecard__level span { transition: none; }
}

/* ---------- 23. Prose pages + articles — header band + editorial body ----------
 * Lifts plain content Pages / CPT articles to the homepage's level of polish.
 * Scoped to pages/singles (the homepage uses .rr-home-editorial, not these). */
body.page:not(.home) .entry-header,
body.single .entry-header {
  margin-bottom: var(--rr-space-6);
  padding-bottom: var(--rr-space-5);
  border-bottom: 1px solid var(--rr-ink-100);
}
body.page:not(.home) .entry-title,
body.single .entry-title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  line-height: 1.08;
  margin: var(--rr-space-2) 0 0;
  position: relative;
  padding-top: var(--rr-space-4);
}
body.page:not(.home) .entry-title::before,
body.single .entry-title::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 4px; border-radius: var(--rr-radius-pill);
  background: var(--rr-red);
}

/* Lead paragraph — the first paragraph reads as an intro. */
body.page:not(.home) .entry-content > p:first-of-type,
body.single:not(.single-review) .entry-content > p:first-of-type {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--rr-ink-700);
}

/* Sectioned headings — clear rhythm down long articles. */
body.page:not(.home) .entry-content h2,
body.single:not(.single-review) .entry-content h2 {
  font-family: var(--rr-font-display); font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  letter-spacing: -0.02em; line-height: 1.2;
  margin-top: var(--rr-space-7); padding-top: var(--rr-space-5);
  border-top: 1px solid var(--rr-ink-100);
}
body.page:not(.home) .entry-content h3,
body.single:not(.single-review) .entry-content h3 {
  font-family: var(--rr-font-display); font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  letter-spacing: -0.01em; margin-top: var(--rr-space-6);
}

/* Pull-quotes. */
.entry-content blockquote {
  margin: var(--rr-space-6) 0;
  padding: var(--rr-space-2) 0 var(--rr-space-2) var(--rr-space-5);
  border-left: 3px solid var(--rr-red);
  font-family: var(--rr-font-display);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.4; color: var(--rr-ink-800); font-style: normal;
}
.entry-content blockquote p { margin: 0; }

/* Figures + inline images. */
.entry-content :where(img, figure img) { border-radius: var(--rr-radius-md); height: auto; }
.entry-content figure { margin: var(--rr-space-6) 0; }
.entry-content figcaption {
  margin-top: var(--rr-space-2); text-align: center;
  font-size: 0.85rem; color: var(--rr-ink-400);
}

/* Table zebra (rounded chrome already set in §7). */
.entry-content table tbody tr:nth-child(even) td { background: var(--rr-ink-50); }

/* Lists — a touch more air + brand markers. */
body.page:not(.home) .entry-content :where(ul, ol),
body.single:not(.single-review) .entry-content :where(ul, ol) { padding-left: 1.3em; }
body.page:not(.home) .entry-content li,
body.single:not(.single-review) .entry-content li { margin: 0.35em 0; }
body.page:not(.home) .entry-content ul > li::marker,
body.single:not(.single-review) .entry-content ul > li::marker { color: var(--rr-red); }

/* ---------- 24. Modern header — dark, cohesive masthead ----------
 * The legacy header (white two-strip + hard 4px red line + uppercase Roboto
 * nav + boxy red "SEARCH BY") was the last un-modernized chrome and clashed
 * hard with the dark hero right below it. This pulls the header into the same
 * ink + red-glow + Bricolage system so it flows seamlessly into the homepage
 * hero and bookends the dark mega-footer. Pure restyle over main.css §15/§39 —
 * every JS hook is preserved (.search-by-toggle, #nav-strip, body.mega-open,
 * [data-rr-search-form], .mega-column__*), so the mega-panel, mobile drawer
 * and search-relocation keep working untouched. No <head> output changes →
 * SEO-neutral, same as the rest of the modernization. */

/* Brand wordmark — crisp live-text logo (the white logo.png had REVIEWS baked
 * black, so it broke on dark). Display face + the already-loaded Font Awesome
 * runner glyph; themeable per background, razor-sharp at any DPI. Shared by the
 * header and the footer. */
.rr-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.06em;
  font-family: var(--rr-font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.15rem + 0.95vw, 1.85rem);
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.rr-wordmark__run { color: var(--rr-red); }
.rr-wordmark__reviews { color: #fff; }
/* G2 (round 2 — David wanted it to read MORE "running"): a proper running
 * gait — two footfalls per cycle (peaks at 25%/75%), a forward push/recover on
 * the x-axis, and a bigger body-pitch lean, at a quicker cadence. */
@keyframes rr-stride {
  0%   { transform: translate(-0.03em, 0)       rotate(-10deg); }
  25%  { transform: translate(0.02em, -0.20em)  rotate(-3deg); }
  50%  { transform: translate(0.05em, -0.04em)  rotate(2deg); }
  75%  { transform: translate(0.01em, -0.20em)  rotate(-5deg); }
  100% { transform: translate(-0.03em, 0)       rotate(-10deg); }
}
.rr-wordmark__mark {
  margin-left: 0.18em;
  font-size: 0.84em;
  color: var(--rr-red);
  transform-origin: 50% 80%;
  transform: translateY(-0.04em);
  animation: rr-stride 0.58s ease-in-out infinite;
}
.rr-wordmark:hover .rr-wordmark__mark,
.rr-wordmark:focus-visible .rr-wordmark__mark { animation-duration: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .rr-wordmark__mark { animation: none; transform: translateY(-0.04em) rotate(-7deg); }
}

/* Header ground: deep ink + a faint red corner glow, echoing the hero/footer. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rr-ink-900);
  border-top: 0; /* kill the dated 4px red top line */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px -26px rgba(0, 0, 0, 0.72);
}
/* Keep the sticky header clear of the WP admin bar for logged-in previews. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    /* Top-right stop matches the hero/footer glow (0.26) so the header→hero
     * gradient reads as one continuous field rather than stepping up at the seam. */
    radial-gradient(55% 140% at 100% 0%, rgba(224, 50, 43, 0.26), transparent 62%),
    radial-gradient(42% 120% at 0% 0%, rgba(224, 50, 43, 0.06), transparent 55%);
}

/* Slim both strips and unify them onto the ink ground (drop the gray nav bar). */
.masthead-row { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.masthead-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; gap: var(--rr-space-5); }
.nav-strip { background: transparent; }
.nav-strip-inner { padding-top: 0.4rem; padding-bottom: 0.4rem; gap: var(--rr-space-5); }

/* Search field → dark glass pill. */
.site-header .rr-search {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.site-header .rr-search:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(224, 50, 43, 0.18);
}
.site-header .rr-search__icon { color: #9aa0ab; }
.site-header .rr-search__input { color: #fff; }
.site-header .rr-search__input::placeholder { color: #8f95a0; }
.site-header .site-search { max-width: 380px; }

/* Hamburger bars → light, with a subtle wash on hover (not a red fill). */
.masthead-toggle span { background: #fff; }
.masthead-toggle:hover,
.masthead-toggle:focus-visible { background: rgba(255, 255, 255, 0.10); }
.masthead-toggle:hover span,
.masthead-toggle:focus-visible span { background: #fff; }

/* "Browse" mega trigger → refined ghost pill with a chevron that flips on open. */
.search-by-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #e7e9ee;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--rr-radius-pill);
  padding: 0.5rem 0.95rem;
  font-family: var(--rr-font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  transition:
    border-color 0.18s var(--rr-ease-out),
    background 0.18s var(--rr-ease-out),
    color 0.18s var(--rr-ease-out);
}
.search-by-toggle:hover,
.search-by-toggle[aria-expanded="true"] {
  filter: none; /* override legacy brightness() hover */
  color: #fff;
  border-color: rgba(224, 50, 43, 0.6);
  background: rgba(224, 50, 43, 0.12);
}
.search-by-toggle__grid { font-size: 0.92em; color: var(--rr-red); transition: color 0.18s var(--rr-ease-out); }
.search-by-toggle:hover .search-by-toggle__grid,
.search-by-toggle[aria-expanded="true"] .search-by-toggle__grid { color: #fff; }
.search-by-toggle__chevron { font-size: 0.68em; transition: transform 0.24s var(--rr-ease-out); }
.search-by-toggle[aria-expanded="true"] .search-by-toggle__chevron { transform: rotate(180deg); }

/* Primary nav → de-uppercased, body face, light on ink (red animated underline
 * from main.css §15 is kept and reads well on the dark ground). */
.primary-menu a {
  font-family: var(--rr-font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  color: #cfd3da;
}
.primary-menu a:hover { color: #fff; }
.primary-menu li.current-menu-item > a,
.primary-menu li.current-menu-ancestor > a,
.primary-menu li.current_page_item > a,
.primary-menu li.current_page_ancestor > a { color: #fff; }

/* Mega-panel (the "Browse" dropdown) → dark glass to match the header. */
/* Mega "Browse" panel — a composed flight-deck: refined category columns + a
 * featured promo card + a "brands we review" logo strip, on a red-lit dark
 * ground. Preserves the JS hooks (.mega-column__*, the mobile accordion). The
 * panel fades; its content rise-staggers in. */
.mega-panel {
  background:
    radial-gradient(58% 120% at 88% 0%, rgba(224, 50, 43, 0.16), transparent 60%),
    var(--rr-ink-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0; /* drop the 4px red bottom bar */
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.72);
  transform: none; /* panel just fades — the content does the rise stagger */
}
body.mega-open .mega-panel { transform: none; }
.mega-panel::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rr-red), transparent 72%);
}

/* Layout: category columns (left) + featured card (right). */
.mega-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 940px) {
  .mega-layout { grid-template-columns: minmax(0, 1fr) clamp(290px, 26%, 360px); align-items: stretch; }
  /* Brands gets a touch more room; its names are shortened in PHP (the
   * "…Treadmill Reviews" suffix is redundant under a BRANDS heading), so the
   * 2-col list sits one line per item and all four areas stay short + balanced. */
  .mega-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .mega-feature { justify-content: space-between; }
  /* Safety cap: the panel can never exceed the viewport, whatever the menu length. */
  .mega-panel__inner { max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
}

/* Column headings — Bricolage + a leading red tick + a hairline rule. */
.mega-column__heading {
  font-family: var(--rr-font-display);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #fff;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mega-column__heading::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 2px;
  background: var(--rr-red);
  vertical-align: middle;
}

/* Links → interactive rows with a hover wash + a trailing arrow. */
.mega-column__list { margin-left: 0; row-gap: 0.05rem; }
.mega-column__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--rr-radius-sm);
  font-family: var(--rr-font-sans);
  color: #aab0bb;
  transition: color 0.15s var(--rr-ease-out), background 0.15s var(--rr-ease-out);
}
.mega-column__link::after {
  content: "→";
  color: var(--rr-red);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s var(--rr-ease-out), transform 0.15s var(--rr-ease-out);
}
.mega-column__link:hover,
.mega-column__link:focus-visible {
  color: #fff;
  background: rgba(224, 50, 43, 0.12);
  transform: none; /* arrow carries the motion now (override legacy translateX) */
}
.mega-column__link:hover::after,
.mega-column__link:focus-visible::after { opacity: 1; transform: translateX(0); }
.mega-column__link:focus-visible { outline-offset: 2px; }

/* Featured promo card. */
.mega-feature { display: flex; flex-direction: column; gap: var(--rr-space-4); }
.mega-feature__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: var(--rr-space-5);
  border-radius: var(--rr-radius-lg);
  background: linear-gradient(158deg, var(--rr-ink-700), var(--rr-ink-900));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 0.2s var(--rr-ease-out), box-shadow 0.2s var(--rr-ease-out), border-color 0.2s;
}
.mega-feature__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  background: radial-gradient(82% 70% at 82% 0%, rgba(224, 50, 43, 0.42), transparent 60%);
  transition: opacity 0.25s var(--rr-ease-out);
}
.mega-feature__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px -22px rgba(0, 0, 0, 0.7);
  border-color: rgba(224, 50, 43, 0.4);
}
.mega-feature__card:hover .mega-feature__glow { opacity: 1; }
.mega-feature__eyebrow {
  font-family: var(--rr-font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6a5e;
}
.mega-feature__title {
  font-family: var(--rr-font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}
.mega-feature__sub {
  font-family: var(--rr-font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--rr-ink-300);
}
.mega-feature__cta {
  margin-top: var(--rr-space-2);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--rr-radius-pill);
  background: var(--rr-red);
  color: #fff;
  font-family: var(--rr-font-sans);
  font-weight: 600;
  font-size: 0.85rem;
}
.mega-feature__cta span { transition: transform 0.18s var(--rr-ease-out); }
.mega-feature__card:hover .mega-feature__cta span { transform: translateX(3px); }

/* "Brands we review" — white-silhouette logo strip on dark. */
.mega-feature__brands { display: flex; flex-direction: column; gap: 0.7rem; }
.mega-feature__brands-label {
  font-family: var(--rr-font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rr-ink-500);
}
.mega-feature__logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.5rem;
}
/* The brand PNGs are opaque (white-bg wordmarks), so seat each on a small white
 * chip rather than trying to silhouette them — clean + reads on the dark panel. */
.mega-feature__logos li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 80px;
  padding: 0 0.6rem;
  background: #fff;
  border-radius: 7px;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.18s var(--rr-ease-out), transform 0.18s var(--rr-ease-out);
}
.mega-feature__logos li:hover { opacity: 1; transform: translateY(-1px); }
.mega-feature__logo { height: 17px; width: auto; max-width: 100%; display: block; }

.mega-panel__hint { color: #7e848d; }

/* Hide the desktop featured card inside the mobile drawer. */
@media (max-width: 900px) {
  .mega-layout { display: block; }
  .mega-feature { display: none; }
}

/* Staggered entrance — desktop only, motion-safe. */
@media (min-width: 940px) and (prefers-reduced-motion: no-preference) {
  body.mega-open .mega-panel .mega-column,
  body.mega-open .mega-panel .mega-feature {
    animation: rr-rise 0.4s var(--rr-ease-out) both;
  }
  body.mega-open .mega-panel .mega-column:nth-child(2) { animation-delay: 0.06s; }
  body.mega-open .mega-panel .mega-column:nth-child(3) { animation-delay: 0.12s; }
  body.mega-open .mega-panel .mega-feature { animation-delay: 0.16s; }
}

@media (max-width: 600px) {
  .rr-wordmark { font-size: 1.35rem; }
}

/* Mobile drawer (≤900px) → dark to match. The drawer is #nav-strip inside
 * .site-header, so the dark-glass .site-header .rr-search above already covers
 * the relocated search field. */
@media (max-width: 900px) {
  /* In the drawer the mega-panel columns render directly as accordions, so the
   * desktop "Browse" trigger is redundant. main.css hides it at ≤900px, but our
   * base .search-by-toggle{display:inline-flex} loads later and would otherwise
   * win (media queries add no specificity) — re-hide it here. */
  .search-by-toggle { display: none; }
  /* Give the bare hamburger a container so it matches the bordered-pill
   * language of the Browse pill / search field instead of floating loose. */
  .masthead-toggle {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--rr-radius-md);
    padding: 0.5rem 0.6rem;
  }
  .nav-strip {
    background: var(--rr-ink-900);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
  }
  .nav-strip__header { border-bottom-color: rgba(224, 50, 43, 0.5); }
  .nav-strip__label { color: var(--rr-red); }
  .nav-strip__close { color: #fff; }
  .nav-strip__close:hover,
  .nav-strip__close:focus-visible { background: var(--rr-red); color: #fff; }
  .nav-strip__search { border-bottom-color: rgba(255, 255, 255, 0.08); }
  .primary-menu li { border-bottom-color: rgba(255, 255, 255, 0.08); }
  .primary-menu a { color: #d7dae1; }
  .primary-menu a:hover { color: #fff; }
  .mega-panel { background: transparent; box-shadow: none; }
  .mega-panel::before { display: none; }
}

/* ---------- 25. Footer polish (on top of §15) ----------
 * The mega-footer was already dark/atmospheric, but: the white logo.png was
 * broken (REVIEWS baked black → a muddy plate), the brand column left a big
 * dead gap under the CTA, and the fixed "Today's deals" pill overlapped the
 * legal links. Fix all three + a crisper top edge. */

/* Wordmark replaces the broken raster logo; sized to the footer's scale. */
.rr-footer .rr-wordmark { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.35rem); }

/* Crisp top edge where white content meets the dark footer. */
.rr-footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* Trust-stat strip — fills the dead space under the brand blurb with
 * content-true authority signals (mirrors the homepage intro's claims). */
.rr-footer__trust {
  list-style: none;
  margin: var(--rr-space-5) 0 var(--rr-space-6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--rr-space-4) var(--rr-space-5);
}
.rr-footer__trust li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(224, 50, 43, 0.7);
}
.rr-footer__trust strong {
  font-family: var(--rr-font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.rr-footer__trust span {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: #8f95a0;
}

/* Bottom bar: left-align copyright + legal so nothing sits in the bottom-right
 * corner where the fixed deals CTA floats (was overlapping the legal links). */
.rr-footer__bar {
  justify-content: flex-start;
  gap: var(--rr-space-2) var(--rr-space-6);
  padding-bottom: var(--rr-space-6);
}
.rr-footer__copy { margin-right: var(--rr-space-4); }

/* ---------- 26. Header search — elevate to match the dark masthead ----------
 * The autosuggest field + dropdown were the last light piece of the header: a
 * white panel erupting from the dark-glass field, light rows, legacy type — and
 * the field itself reverted to a light box on focus (a global
 * input[type=search]:focus rule, specificity 0,2,1, was overriding it). Keep the
 * field dark-glass through focus/typing and rebuild the dropdown in the same
 * dark-glass language as the Browse mega-panel so the two header dropdowns read
 * as siblings. Scoped to .site-header so the results-page body search is left
 * on its light surface. */

/* Field stays dark-glass even when focused/typing (0,3,0 beats the global
 * input[type=search]:focus at 0,2,1 — specificity, not !important).
 * NB: background-COLOR, not the `background` shorthand — the shorthand would
 * zero background-image and kill the .is-loading search-progress bar below. */
.site-header .rr-search__input,
.site-header .rr-search__input:focus {
  background-color: transparent;
  color: #fff;
  box-shadow: none;
}
.site-header .rr-search__input::placeholder { color: #8f95a0; }
/* Chrome autofill paints its own light inset — hold the dark + light text. */
.site-header .rr-search__input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 100px var(--rr-ink-800) inset;
  caret-color: #fff;
}
/* The native search clear (×) is near-black on ink; rebuild it as a subtle
 * light glyph that only appears once there's something to clear. */
.site-header .rr-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 13px; height: 13px;
  margin-left: 0.35rem;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  color: #8f95a0;
  transform: rotate(45deg);
  cursor: pointer;
  transition: color 0.15s var(--rr-ease-out);
}
.site-header .rr-search__input::-webkit-search-cancel-button:hover { color: #fff; }

/* Pill focus: glass lifts + a red glow ring (echoes the mega-panel open state). */
.site-header .rr-search:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(224, 50, 43, 0.20), 0 12px 30px -14px rgba(0, 0, 0, 0.6);
}


/* ---- Dropdown → dark glass, sibling to the Browse mega-panel ---- */
.site-header .rr-search__results {
  /* Top layer paints a non-scrolling 2px red→transparent accent (matching the
   * mega-panel's ::before) directly on the scroll container. */
  background:
    linear-gradient(90deg, var(--rr-red), transparent 72%) top / 100% 2px no-repeat,
    var(--rr-ink-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rr-radius-md);
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.66);
}
/* In the mobile drawer the suggestions are absolutely positioned over the
 * Browse accordion (.mega-panel, z-index:100, later in the same #nav-strip
 * stacking context). Lift them above it so result rows aren't painted over —
 * or mis-tapped into toggling an accordion. */
@media (max-width: 900px) {
  .site-header .nav-strip__search .rr-search__results { z-index: 120; }
}
.site-header .rr-search__result { position: relative; color: #cfd3da; }
.site-header .rr-search__result:hover,
.site-header .rr-search__result.is-active { background: rgba(255, 255, 255, 0.06); }
.site-header .rr-search__title { color: #eef0f3; font-family: var(--rr-font-sans); }
.site-header .rr-search__meta { color: #8f95a0; font-family: var(--rr-font-sans); }
.site-header .rr-search__hl { background: rgba(224, 50, 43, 0.30); color: #fff; }
.site-header .rr-search__thumb {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}
.site-header .rr-search__thumb--brand {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.site-header .rr-search__empty { color: #9aa0ab; }
.site-header .rr-search__empty strong { color: #fff; }

/* Trailing-arrow affordance on hover/active (echoes the nav + footer CTAs). */
.site-header .rr-search__result::after {
  content: "→" / ""; /* alt-text "" keeps the decorative arrow out of the option's a11y name */
  margin-left: auto;
  padding-left: var(--rr-space-2);
  color: var(--rr-red);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s var(--rr-ease-out), transform 0.16s var(--rr-ease-out);
}
.site-header .rr-search__result:hover::after,
.site-header .rr-search__result.is-active::after { opacity: 1; transform: translateX(0); }

/* "See all results" footer row (appended by header-search.js). Base styles work
 * on the light results-page dropdown; header override is dark. */
.rr-search__all {
  display: flex;
  align-items: center;
  gap: var(--rr-space-2);
  margin-top: var(--rr-space-1);
  padding: var(--rr-space-3);
  border-top: 1px solid var(--rr-border);
  font-family: var(--rr-font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rr-heading);
  text-decoration: none;
  transition: background 0.14s var(--rr-ease-out), color 0.14s var(--rr-ease-out);
}
.rr-search__all-q { font-weight: 700; }
.rr-search__all-arrow { margin-left: auto; color: var(--rr-red); transition: transform 0.16s var(--rr-ease-out); }
.rr-search__all:hover .rr-search__all-arrow,
.rr-search__all:focus-visible .rr-search__all-arrow { transform: translateX(3px); }
.site-header .rr-search__all { color: #cfd3da; border-top-color: rgba(255, 255, 255, 0.08); }
.site-header .rr-search__all:hover,
.site-header .rr-search__all:focus-visible { background: rgba(224, 50, 43, 0.12); color: #fff; }

/* ---------- 27. Search bars — smooth, borderless ----------
 * Drop every border/ring/keycap so the field reads as one calm filled pill.
 * The "inner rectangle" was TWO nested borders: the .rr-search pill AND the
 * <input>'s own border (a global input[type=search] rule that flips red on
 * :focus). Flatten both — the input border needs .rr-search .rr-search__input
 * :focus (0,3,0) to outrank that global :focus rule (0,2,1) — and swap the hard
 * focus ring for a soft fill-lift. Per surface: dark glass in the header, a
 * soft floating white pill on the dark search hero. */

/* Pill: no border, ever. */
.rr-search { border: 0; }
.rr-search:focus-within { border: 0; box-shadow: none; }

/* Input: kill its own border + outline at rest AND on focus (the red rectangle). */
.rr-search .rr-search__input,
.rr-search .rr-search__input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* Header field → dark glass; focus is a gentle fill-lift, no ring. */
.site-header .rr-search { background: rgba(255, 255, 255, 0.06); }
.site-header .rr-search:focus-within {
  background: rgba(255, 255, 255, 0.10);
  border: 0;
  box-shadow: none;
}

/* Search-page hero field → a soft, floating white pill on the dark hero
 * (depth from shadow, not a border). */
.rr-search-page-hero .rr-search {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 16px 44px -14px rgba(0, 0, 0, 0.38);
}
.rr-search-page-hero .rr-search:focus-within {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), 0 20px 52px -14px rgba(0, 0, 0, 0.45);
}

/* Any other surface (e.g. a light page) keeps the field visible without a
 * border via a soft neutral fill. */
.rr-search { background: var(--rr-ink-100); }
