@charset "UTF-8";
/* ==========================================================================
   Riftivo — editorial stylesheet
   Single global stylesheet for the static build and the WordPress child theme.
   Tokens -> base -> layout -> components -> prose -> utilities -> a11y/print
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Paper: a faintly green legal-pad white, not cream. */
  --paper: #f5f6f1;
  --paper-band: #eceee6;
  --surface: #ffffff;
  --ink: #16211c;
  --ink-soft: #33443c;
  --muted: #56635c;
  --line: #d7dbd3;
  --line-strong: #b9c0b6;

  --primary: #0e5c4a;
  --primary-deep: #093f33;
  --primary-wash: #e2ece7;

  --marker: #f2c14e;
  --marker-soft: #fbeecd;

  --night: #0f1c17;
  --night-ink: #eef1ea;
  --danger: #8c2f1f;

  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.55rem, 1.5rem + 3.9vw, 4.15rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 2.9vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.45vw, 2.3rem);
  --fs-h3: clamp(1.28rem, 1.1rem + 0.62vw, 1.55rem);
  --fs-h4: 1.15rem;
  --fs-lead: clamp(1.15rem, 1.02rem + 0.55vw, 1.34rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-meta: 0.8125rem;

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 5.5rem;
  --s10: 7rem;

  --container: 1180px;
  --measure: 68ch;
  --article-body: 41rem;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);

  --r1: 2px;
  --r2: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 12px 32px -18px rgba(15, 28, 23, 0.35);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}

p { margin: 0 0 var(--s4); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s7) 0;
}

::selection { background: var(--marker); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r1);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 200;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* 3. Type utilities
   ========================================================================== */
.rv-sans { font-family: var(--font-sans); }

.rv-display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.rv-h1 { font-size: var(--fs-h1); }
.rv-h2 { font-size: var(--fs-h2); }
.rv-h3 { font-size: var(--fs-h3); }

.rv-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}

.rv-meta {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: 0.005em;
}

.rv-kicker {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0;
  margin: 0 0 var(--s3);
}

/* Marker underline: the one loud device in this design, used on key figures. */
.rv-mark {
  background: linear-gradient(to top, var(--marker) 0 38%, transparent 38%);
  padding: 0 0.06em;
}

/* 4. Layout
   ========================================================================== */
.rv-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rv-section { padding-block: var(--s8); }
.rv-section--tight { padding-block: var(--s6); }
.rv-band { background: var(--paper-band); }
.rv-band--night { background: var(--night); color: var(--night-ink); }
.rv-band--night .rv-meta,
.rv-band--night .rv-kicker { color: #a9bdb2; }

.rv-rule { border-top: 1px solid var(--line); }

.rv-split {
  display: grid;
  gap: var(--s6);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .rv-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s8); }
}

.rv-stack > * + * { margin-top: var(--s4); }

/* 5. Masthead
   ========================================================================== */
.rv-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.rv-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: 4.5rem;
  justify-content: space-between;
}

.rv-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rv-logo svg { width: 1.65rem; height: 1.65rem; flex: none; }
.rv-logo__dot { color: var(--primary); }

.rv-nav { display: none; }
@media (min-width: 56rem) {
  .rv-nav {
    display: flex;
    align-items: center;
    gap: var(--s5);
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    font-weight: 500;
  }
}
.rv-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
}
.rv-nav a:hover,
.rv-nav a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

/* Mobile navigation: no JavaScript. */
.rv-burger { position: relative; }
.rv-burger > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  background: var(--surface);
}
.rv-burger > summary::-webkit-details-marker { display: none; }
.rv-burger[open] > summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rv-burger__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(20rem, calc(100vw - 2 * var(--gutter)));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: var(--s4);
  box-shadow: var(--shadow-lift);
}
.rv-burger__panel a {
  display: block;
  padding: 0.6rem 0.25rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.rv-burger__panel a:last-child { border-bottom: 0; }
@media (min-width: 56rem) { .rv-burger { display: none; } }

/* 6. Buttons and links
   ========================================================================== */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.82rem 1.35rem;
  border-radius: var(--r1);
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.rv-btn:hover { background: var(--primary-deep); }
.rv-btn--primary { background: var(--primary); }
.rv-btn--primary:hover { background: var(--primary-deep); }
.rv-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.rv-btn--ghost:hover { border-color: var(--ink); background: transparent; }
.rv-band--night .rv-btn--ghost { color: var(--night-ink); border-color: #3c5348; }
.rv-band--night .rv-btn--ghost:hover { border-color: var(--night-ink); }

.rv-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.rv-link:hover { text-decoration-thickness: 2px; }

.rv-quiet-link {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.rv-quiet-link:hover { border-bottom-color: var(--primary); color: var(--primary); }

/* 7. Homepage modules
   ========================================================================== */
.rv-hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--s7); }
.rv-hero__grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 68rem) {
  .rv-hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
}
.rv-hero__title { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.026em; margin-bottom: var(--s5); }
.rv-hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--s5);
}
.rv-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* The "record" panel: a bordered index card carrying verified product facts. */
.rv-record {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  padding: var(--s5);
}
.rv-record__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
}
.rv-record__row:last-of-type { border-bottom: 0; }
.rv-record__row dt, .rv-record__row span:first-child { color: var(--muted); }
.rv-record__row span:last-child { font-weight: 600; text-align: right; }

.rv-index {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.rv-index__row {
  display: grid;
  gap: var(--s2) var(--s5);
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
@media (min-width: 48rem) {
  .rv-index__row { grid-template-columns: 8.5rem minmax(0, 1fr) 9rem; align-items: baseline; }
}
.rv-index__topic {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--primary);
}
.rv-index__title {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}
.rv-index__row:hover .rv-index__title { color: var(--primary-deep); text-decoration: underline; text-underline-offset: 0.18em; }
.rv-index__note {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: var(--s2) 0 0;
  max-width: 58ch;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.rv-index__date { font-family: var(--font-sans); font-size: var(--fs-meta); color: var(--muted); }

/* 8. Cards
   ========================================================================== */
.rv-grid-3 {
  display: grid;
  gap: var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.rv-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.rv-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.rv-card__media {
  aspect-ratio: 16 / 9;
  background: var(--primary-wash);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.rv-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rv-card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.rv-card__title { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.rv-card__excerpt {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.rv-card__foot { margin-top: auto; display: flex; gap: var(--s3); align-items: center; }

/* Article header */
.rv-article-head { padding-block: var(--s7) var(--s5); }
.rv-article-head__title { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.022em; max-width: 26ch; }
.rv-article-head__standfirst {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-top: var(--s4);
}

.rv-byline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--muted);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}

/* Article body: measure + a metadata spine on wide screens. */
.rv-article {
  display: grid;
  gap: var(--s6);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--s8);
}
@media (min-width: 60rem) {
  .rv-article { grid-template-columns: 12rem minmax(0, var(--article-body)); gap: var(--s8); }
}
.rv-article__spine {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--muted);
  align-self: start;
}
@media (min-width: 60rem) {
  .rv-article__spine { position: sticky; top: 6rem; }
}
.rv-article__spine dl { margin: 0; }
.rv-article__spine dt { font-weight: 600; color: var(--ink-soft); margin-top: var(--s4); }
.rv-article__spine dd { margin: 0.15rem 0 0; }

.rv-toc {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r2);
  padding: var(--s4) var(--s5);
  margin-bottom: var(--s6);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
}
.rv-toc__title { font-weight: 600; margin: 0 0 var(--s3); font-size: var(--fs-small); }
.rv-toc ol { margin: 0; padding-left: 1.1rem; }
.rv-toc li { margin: 0.35rem 0; color: var(--muted); }
.rv-toc a { text-decoration: none; color: var(--ink-soft); }
.rv-toc a:hover { color: var(--primary); text-decoration: underline; }

/* 9. Prose
   ========================================================================== */
.rv-prose { max-width: var(--measure); }
.rv-prose > * + * { margin-top: var(--s4); }
.rv-prose h2 {
  font-size: var(--fs-h2);
  margin-top: var(--s8);
  margin-bottom: var(--s3);
  letter-spacing: -0.018em;
}
.rv-prose h3 {
  font-size: var(--fs-h3);
  margin-top: var(--s6);
  margin-bottom: var(--s2);
  line-height: 1.25;
}
.rv-prose h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-top: var(--s5);
}
.rv-prose p, .rv-prose li { line-height: 1.66; }
.rv-prose ul, .rv-prose ol { padding-left: 1.35rem; }
.rv-prose li { margin-bottom: 0.5rem; }
.rv-prose li::marker { color: var(--primary); }
.rv-prose a { color: var(--primary-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.rv-prose a:hover { background: var(--marker-soft); }
.rv-prose strong { font-weight: 600; }
.rv-prose blockquote {
  margin: var(--s6) 0;
  padding: 0 0 0 var(--s5);
  border-left: 3px solid var(--primary);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}
.rv-prose blockquote p:last-child { margin-bottom: 0; }
.rv-prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-band);
  padding: 0.12em 0.35em;
  border-radius: var(--r1);
}
.rv-prose pre {
  background: var(--night);
  color: var(--night-ink);
  padding: var(--s5);
  border-radius: var(--r2);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
}
.rv-prose pre code { background: none; padding: 0; color: inherit; }
.rv-prose img, .rv-prose figure img { border-radius: var(--r2); border: 1px solid var(--line); }
.rv-prose figure { margin: var(--s6) 0; }
.rv-prose figcaption {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--muted);
  margin-top: var(--s2);
}
.rv-prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  margin: var(--s6) 0;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
@media (min-width: 48rem) { .rv-prose table { display: table; white-space: normal; } }
.rv-prose th, .rv-prose td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.rv-prose thead th {
  background: var(--paper-band);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}
.rv-prose tbody tr:hover { background: rgba(226, 236, 231, 0.45); }

/* Callouts: used for risk notes and disclosure lines. */
.rv-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  background: var(--surface);
  padding: var(--s4) var(--s5);
  border-radius: 0 var(--r2) var(--r2) 0;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin: var(--s6) 0;
}
.rv-note--risk { border-left-color: var(--danger); }
.rv-note--risk strong { color: var(--danger); }
.rv-note > :last-child { margin-bottom: 0; }
.rv-note__label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--s2);
  color: var(--ink);
}

/* 10. CTA components
   ========================================================================== */
.rv-cta {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--primary);
  background: var(--surface);
  padding: var(--s5);
  border-radius: 0 0 var(--r2) var(--r2);
  margin: var(--s7) 0;
  font-family: var(--font-sans);
}
.rv-cta__eyebrow {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 var(--s2);
}
.rv-cta__title { font-family: var(--font-serif); font-size: 1.35rem; margin: 0 0 var(--s2); line-height: 1.25; }
.rv-cta__text { font-size: var(--fs-small); color: var(--ink-soft); margin: 0 0 var(--s4); line-height: 1.6; }
.rv-cta__foot { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.rv-cta__note { font-size: var(--fs-meta); color: var(--muted); margin: 0; }

.rv-cta--night {
  background: var(--night);
  color: var(--night-ink);
  border-color: #24382f;
  border-top-color: var(--marker);
}
.rv-cta--night .rv-cta__text { color: #c3d0c8; }
.rv-cta--night .rv-cta__note { color: #93a79c; }
.rv-cta--night .rv-cta__eyebrow { color: var(--marker); }
.rv-cta--night .rv-btn--ghost { color: var(--night-ink); border-color: #46604f; }
.rv-cta--night .rv-btn--ghost:hover { color: #fff; border-color: var(--night-ink); background: transparent; }
.rv-cta--night .rv-btn--primary:hover { background: #0a4438; }

.rv-disclosure {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--muted);
  line-height: 1.55;
  border-left: 2px solid var(--line-strong);
  padding-left: var(--s3);
  margin: var(--s4) 0;
}

.rv-product {
  display: grid;
  gap: var(--s5);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 56rem) {
  .rv-product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s8); }
}
.rv-product__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
  font-family: var(--font-sans);
}
.rv-product__fact { border-top: 2px solid var(--marker); padding-top: var(--s2); }
.rv-product__fact b { display: block; font-size: 1.05rem; }
.rv-product__fact span { font-size: var(--fs-meta); color: var(--muted); }

/* 11. Archive and pagination
   ========================================================================== */
.rv-archive-head { padding-block: var(--s7) var(--s5); border-bottom: 1px solid var(--line); }
.rv-crumbs {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-block: var(--s4);
}
.rv-crumbs a { color: var(--muted); text-decoration: none; }
.rv-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.rv-crumbs span[aria-hidden] { color: var(--line-strong); }

.rv-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.rv-chip {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--surface);
}
.rv-chip:hover { border-color: var(--primary); color: var(--primary); }
.rv-chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rv-pagination {
  display: flex;
  gap: var(--s2);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  margin-top: var(--s7);
}
.rv-pagination__pages { display: flex; gap: var(--s1); flex-wrap: wrap; }
.rv-pagination__pages a,
.rv-pagination__pages span {
  padding: 0.4rem 0.7rem;
  border-radius: var(--r1);
  text-decoration: none;
  border: 1px solid transparent;
}
.rv-pagination__pages a:hover { border-color: var(--line-strong); }
.rv-pagination__pages span[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* 12. Search
   ========================================================================== */
.rv-search { max-width: 44rem; margin-inline: auto; padding-block: var(--s7); }
.rv-search__field {
  display: flex;
  gap: var(--s2);
  margin-block: var(--s5);
}
.rv-search__field input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  color: var(--ink);
}
.rv-search__field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.rv-search__result {
  display: block;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.rv-search__result:hover .rv-search__result-title { text-decoration: underline; }
.rv-search__result-title { font-size: 1.1rem; margin: 0 0 0.25rem; }
.rv-search__result-text { font-family: var(--font-sans); font-size: var(--fs-small); color: var(--muted); margin: 0; }
.rv-search__status { font-family: var(--font-sans); font-size: var(--fs-small); color: var(--muted); min-height: 1.5rem; }
mark.rv-hit { background: var(--marker); color: var(--ink); padding: 0 0.1em; }

/* 13. Footer
   ========================================================================== */
.rv-footer {
  background: var(--night);
  color: var(--night-ink);
  padding-block: var(--s8) var(--s6);
  margin-top: var(--s9);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
}
.rv-footer a { color: #c3d0c8; text-decoration: none; }
.rv-footer a:hover { color: #fff; text-decoration: underline; }
.rv-footer__grid {
  display: grid;
  gap: var(--s6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}
.rv-footer__brand { grid-column: 1 / -1; max-width: 30rem; }
@media (min-width: 56rem) { .rv-footer__brand { grid-column: span 2; } }
.rv-footer__brand p { color: #a9bdb2; line-height: 1.6; margin: var(--s3) 0 0; }
.rv-footer h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: #fff;
  margin: 0 0 var(--s3);
  letter-spacing: 0.01em;
}
.rv-footer ul { list-style: none; margin: 0; padding: 0; }
.rv-footer li { margin-bottom: 0.5rem; }
.rv-footer__legal {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid #24382f;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  color: #93a79c;
  font-size: var(--fs-meta);
}

/* 14. 404
   ========================================================================== */
.rv-404 {
  min-height: 60vh;
  display: grid;
  align-content: center;
  gap: var(--s4);
  padding-block: var(--s9);
}
.rv-404__code { font-family: var(--font-sans); font-weight: 600; color: var(--primary); font-size: var(--fs-small); }

/* 15. Utilities
   ========================================================================== */
.rv-center { text-align: center; margin-inline: auto; }
.rv-mt0 { margin-top: 0; }
.rv-mb5 { margin-bottom: var(--s5); }
.rv-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;
}

/* 16. Motion and print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .rv-header, .rv-footer, .rv-cta, .rv-pagination, .rv-toc, .rv-burger { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .rv-prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* 17. Sources and FAQ blocks (article end) */
.rv-sources {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 2px solid var(--ink);
}
.rv-sources__list {
  margin: var(--s4) 0 0;
  padding-left: 1.2rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.rv-sources__list li { margin-bottom: 0.55rem; }

.rv-faq {
  margin-top: var(--s8);
  border-top: 1px solid var(--line);
  padding-top: var(--s5);
}
.rv-faq__item {
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.rv-faq__item:last-child { border-bottom: 0; }
.rv-faq__item h3 { margin-bottom: var(--s2); }
.rv-faq__item p { margin: 0; color: var(--ink-soft); font-size: var(--fs-body); }

/* Article list rows must not inherit link styling inside headings */
.rv-index__row { color: inherit; }

/* Narrow-column variant of the article index: stacked, readable measure. */
.rv-split .rv-index__row {
  display: block;
  padding-block: var(--s4);
}
.rv-split .rv-index__row .rv-index__topic {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
}
.rv-split .rv-index__row .rv-index__title { font-size: 1.16rem; line-height: 1.3; }
.rv-split .rv-index__row .rv-index__note {
  font-size: 0.875rem;
  margin-top: 0.3rem;
  max-width: 46ch;
}
.rv-split .rv-index__row .rv-index__date {
  display: block;
  margin-top: 0.45rem;
}
.rv-product__facts { grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); }
@media (min-width: 62rem) {
  .rv-product__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Section header + full-width index (topic bands on the homepage). */
.rv-split--head {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--ink);
}
@media (min-width: 62rem) {
  .rv-split--head { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--s6); }
}

/* Tables inside the article column: keep headers on one or two lines. */
.rv-prose table { font-size: 0.9rem; }
.rv-prose th { white-space: normal; }
.rv-prose th:first-child, .rv-prose td:first-child { min-width: 9rem; }

/* 18. Elementor bridge
   Elementor wrappers add their own defaults; these rules keep imported templates
   on the publication's design system without !important escalation. */
.elementor-widget-button { width: auto; }
.elementor-widget-button .elementor-button.rv-btn,
.elementor-widget-button .elementor-button.rv-btn:visited {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--r1);
  padding: 0.82rem 1.35rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.elementor-widget-button .elementor-button.rv-btn--primary { background: var(--primary); }
.elementor-widget-button .elementor-button.rv-btn--primary:hover { background: var(--primary-deep); }
.elementor-widget-button .elementor-button.rv-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.elementor-widget-button .elementor-button.rv-btn--ghost:hover {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.rv-band--night .elementor-widget-button .elementor-button.rv-btn--ghost { color: var(--night-ink); border-color: #46604f; }
.rv-band--night .elementor-widget-button .elementor-button.rv-btn--ghost:hover { color: #fff; border-color: #fff; }

/* Text inside night bands. */
.rv-on-night, .rv-on-night p, .rv-on-night li, .rv-on-night div { color: #c3d0c8; }
.rv-on-night a { color: #fff; }
.rv-on-night-muted, .rv-on-night-muted p, .rv-on-night-muted a { color: #93a79c; }

/* Elementor containers used as cards should not stretch children vertically. */
.rv-record .elementor-widget-heading, .rv-record .elementor-widget-text-editor { width: 100%; }
.rv-record__title h2, .rv-record__title { font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 600; color: var(--ink); margin: 0 0 .5rem; }
.rv-record__body p { font-family: var(--font-sans); font-size: var(--fs-small); margin: 0 0 .55rem; color: var(--ink-soft); }

/* Elementor containers default to content-width; keep full-bleed bands full. */
.elementor-location-header .e-con, .rv-header-elementor, .rv-footer-elementor { width: 100%; }

/* Category labels in article rows can be long; give them room without wrapping mid-word. */
.rv-index__topic { overflow-wrap: anywhere; }

/* Masthead menu rendered by the theme shortcode inside the Elementor header. */
.rv-nav-list { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; }
.rv-nav-list li { margin: 0; }
.rv-nav-list a { color: var(--ink-soft); text-decoration: none; border-bottom: 1.5px solid transparent; padding-bottom: 2px; }
.rv-nav-list a:hover, .rv-nav-list .current-menu-item > a { color: var(--ink); border-bottom-color: var(--primary); }
@media (max-width: 55.99rem) { .rv-nav-list { gap: 1rem; font-size: .875rem; } .rv-nav-shortcode { display: none; } }

/* Elementor images: never force a size beyond the design. */
.elementor-widget-image img { max-width: 100%; height: auto; }
.rv-logo-mark img { width: 40px; height: 40px; }
.rv-logo-text { margin: 0; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.rv-logo-text h2, .rv-logo-text p { margin: 0; font: inherit; }

/* Elementor puts _css_classes on the widget wrapper, not the <a>. */
.elementor-widget-button.rv-btn .elementor-button { background: var(--ink); color: var(--paper); border: 1px solid transparent; border-radius: var(--r1); padding: 0.82rem 1.35rem; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; line-height: 1.2; }
.elementor-widget-button.rv-btn--primary .elementor-button { background: var(--primary); color: var(--paper); }
.elementor-widget-button.rv-btn--primary .elementor-button:hover { background: var(--primary-deep); }
.elementor-widget-button.rv-btn--ghost .elementor-button { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.elementor-widget-button.rv-btn--ghost .elementor-button:hover { background: transparent; color: var(--primary); border-color: var(--primary); }
.rv-band--night .elementor-widget-button.rv-btn--ghost .elementor-button { color: var(--night-ink); border-color: #46604f; }
.rv-band--night .elementor-widget-button.rv-btn--ghost .elementor-button:hover { color: #fff; border-color: #fff; }

/* Footer template: Elementor global link colours must not override the night palette. */
.rv-footer-elementor a, .rv-footer-elementor .elementor-widget-text-editor a { color: #c3d0c8; text-decoration: none; }
.rv-footer-elementor a:hover { color: #fff; text-decoration: underline; }
.rv-footer-elementor .elementor-widget-heading .elementor-heading-title { color: #fff; font-family: var(--font-sans); font-size: var(--fs-meta); font-weight: 600; margin: 0 0 12px; }
.rv-footer-elementor p { color: #a9bdb2; }
.rv-footer-elementor .rv-footer__legal, .rv-footer-elementor .rv-footer__legal p { color: #b9c9bf; font-size: var(--fs-meta); border-top: 1px solid #24382f; padding-top: 16px; margin: 0; }

/* Article-end CTA inside the single layout: same measure as the body, readable on night. */
.rv-article > div > .rv-cta { max-width: var(--article-body); }
.rv-cta--night .elementor-widget-text-editor p, .rv-cta--night .rv-cta__text { color: #c3d0c8; }
.rv-cta--night .elementor-widget-button.rv-btn--ghost .elementor-button { color: var(--night-ink); border-color: #46604f; }

/* Elementor buttons keep their intrinsic width inside flex containers. */
.elementor-element.elementor-widget-button { width: auto; align-self: flex-start; }
.elementor-element.elementor-widget-button .elementor-button { width: auto; display: inline-flex; }

/* Logo mark (inline SVG shortcode) */
.rv-mark { display: block; flex: none; }
.rv-logo-mark { width: 40px; }

/* ==========================================================================
   15. Rhythm, type scale and controls (revision, 1 December 2026)
   --------------------------------------------------------------------------
   Elementor's global "Headings" typography lands on every heading widget at
   (0,2,1), which tied with and then beat `.rv-prose h3`. The rules below carry
   widget-level specificity so headings keep their intended order, and they set
   one vertical rhythm for prose, lists, tables, quotes and forms.
   ========================================================================== */

/* Type scale — h3 must never render larger than h2. */
.rv-prose h2,
.rv-prose .elementor-widget-heading h2.elementor-heading-title {
  font-size: clamp(1.55rem, 1.1rem + 1.15vw, 2rem);
  line-height: 1.18;
  margin-top: clamp(2.25rem, 1.6rem + 1.6vw, 3rem);
  margin-bottom: 0.55rem;
}

.rv-prose h3,
.rv-prose .elementor-widget-heading h3.elementor-heading-title,
.rv-cta h3.rv-cta__title,
.rv-cta--night h3.rv-cta__title {
  font-size: clamp(1.15rem, 1.02rem + 0.45vw, 1.35rem);
  line-height: 1.3;
  margin-top: 1.85rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.005em;
}

.rv-prose h4,
.rv-prose .elementor-widget-heading h4.elementor-heading-title {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-top: 1.6rem;
  margin-bottom: 0.25rem;
}

/* Body rhythm */
.rv-prose {
  font-size: 1.0625rem;
  line-height: 1.68;
}

.rv-prose p {
  margin-bottom: 0;
}

.rv-prose > * + * {
  margin-top: 1.1rem;
}

.rv-prose > h2 + *,
.rv-prose > h3 + *,
.rv-prose > h4 + * {
  margin-top: 0.75rem;
}

.rv-prose > h3 + *,
.rv-prose > h4 + * {
  margin-top: 0.5rem;
}

.rv-prose > h2,
.rv-prose > h3 {
  margin-bottom: 0;
}

.rv-prose > * + h2,
.rv-prose > * + h3 {
  margin-top: clamp(2.25rem, 1.6rem + 1.6vw, 3rem);
}

.rv-prose > * + h3 {
  margin-top: 1.85rem;
}

/* Lists */
.rv-prose ul,
.rv-prose ol {
  padding-left: 1.25rem;
  margin: 1.1rem 0 0;
}

.rv-prose ul ul,
.rv-prose ol ol,
.rv-prose ul ol,
.rv-prose ol ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
}

.rv-prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.15rem;
}

.rv-prose li:last-child {
  margin-bottom: 0;
}

.rv-prose li > ul,
.rv-prose li > ol {
  margin-bottom: 0.2rem;
}

.rv-prose li::marker {
  color: var(--primary);
  font-weight: 600;
}

/* Quotes, rules, media */
.rv-prose blockquote {
  margin: 1.6rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 2px solid var(--primary);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.rv-prose blockquote > * + * {
  margin-top: 0.75rem;
}

.rv-prose hr {
  margin: 2.25rem 0;
}

.rv-prose figure,
.rv-prose img {
  margin: 1.75rem 0;
}

.rv-prose figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-meta);
  color: var(--muted);
}

/* Tables — one padding value everywhere, readable at phone width. */
.rv-prose table,
.rv-table {
  margin: 1.6rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.rv-prose th,
.rv-prose td,
.rv-table th,
.rv-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rv-prose th,
.rv-table th {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong, #c9d2c9);
}

.rv-prose td > :first-child,
.rv-prose th > :first-child {
  margin-top: 0;
}

.rv-prose td > :last-child,
.rv-prose th > :last-child {
  margin-bottom: 0;
}

@media (max-width: 40rem) {
  .rv-prose table,
  .rv-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Buttons — one geometry for every control on the site. */
.rv-btn,
.rv-cta .rv-btn,
.elementor-widget-button .elementor-button.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.72rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.004em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.rv-btn--ghost,
.rv-cta .rv-btn--ghost,
.elementor-widget-button .elementor-button.rv-btn--ghost {
  border-width: 1px;
  border-style: solid;
}

/* Two buttons in a row keep an even gap; stacked buttons too. */
.rv-btn-row,
.rv-cta__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.elementor-widget-button + .elementor-widget-button {
  margin-top: 0.75rem;
}

@media (min-width: 30rem) {
  .elementor-widget-button + .elementor-widget-button {
    margin-top: 0;
  }
}

/* Header control sits on the same baseline as the nav links. */
.rv-header .rv-btn,
.rv-header-elementor .rv-btn {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

/* Section rhythm: one step between bands, never a dead stretch of white. */
.rv-hero {
  padding-bottom: 2.5rem;
}

.rv-band {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

@media (max-width: 60rem) {
  .rv-article {
    gap: 1.5rem;
  }

  .rv-article__spine {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }
}


/* Tables get room to breathe: inside the 41rem text column a five-column
   comparison turns every row into six wrapped lines. */
@media (min-width: 72rem) {
  .rv-prose table,
  .rv-table {
    width: calc(100% + 11rem);
    max-width: 52rem;
    font-size: 0.875rem;
  }
}

.rv-prose th,
.rv-prose td,
.rv-table th,
.rv-table td {
  padding: 0.6rem 0.75rem;
}

/* One button geometry in both CTA blocks. */
.rv-cta .rv-btn,
.rv-cta--night .rv-btn,
.elementor-widget-button .elementor-button.rv-btn {
  min-height: 44px;
  padding: 0.72rem 1.35rem;
  font-size: 0.9375rem;
}

/* Small print stays readable: 4.6:1 on paper, 4.9:1 on the night band. */
.rv-cta__note,
.rv-meta {
  color: var(--muted);
}

.rv-cta--night .rv-cta__note {
  color: #c3d0c8;
}

/* Article headline: stop a single word from dangling on the last line. */
.rv-article-head__title {
  text-wrap: balance;
  max-width: 22ch;
}

/* Images keep their own ratio whatever the widget asks for. */
.elementor-widget-image img,
.rv-prose img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* Night CTA: light heading on the dark band, gold eyebrow for the label. */
.rv-cta--night .rv-cta__title,
.rv-cta--night h2.rv-cta__title,
.rv-cta--night h3.rv-cta__title {
  color: var(--night-ink);
}

.rv-cta--night .rv-cta__eyebrow {
  color: var(--marker);
}

/* Index lists inside a flex column: never stretch rows to fill the column. */
.rv-index,
.rv-index__list {
  height: auto;
  align-content: start;
  align-items: start;
}

.rv-index__row {
  height: auto;
  align-items: start;
}

/* Elementor columns that hold a shortcode list should size to their content. */
.elementor-widget-shortcode,
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
  height: auto;
  align-self: flex-start;
}

/* The three-column index needs room. In a narrow Elementor column the fixed
   topic and date tracks squeezed the title to ~115px, which wrapped a two-line
   headline into nine lines and made the homepage look empty. */
.rv-index {
  container-type: inline-size;
}

@container (max-width: 34rem) {
  .rv-index__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .rv-index__topic {
    grid-column: 1 / -1;
    margin-bottom: 0.25rem;
  }

  .rv-index__date {
    justify-self: end;
    white-space: nowrap;
  }
}
