:root {
  --rv-color-surface-sunken: #0A0705;
  --rv-color-surface-canvas: #191513;
  --rv-color-surface-raised: #2C1A14;
  --rv-color-surface-overlay: #221D1A;
  --rv-color-accent: #FF8C35;
  --rv-color-accent-press: #FE7A2D;
  --rv-color-accent-light: #FFB47B;
  --rv-color-accent-tint: rgba(255,140,53,0.14);
  --rv-color-accent-border: rgba(255,140,53,0.35);
  --rv-color-on-accent: #191513;
  --rv-color-text-primary: #FFFFFF;
  --rv-color-text-secondary: rgba(255,255,255,0.78);
  --rv-color-text-tertiary: rgba(255,255,255,0.55);
  --rv-color-text-quaternary: rgba(255,255,255,0.32);
  --rv-color-line-subtle: rgba(255,255,255,0.07);
  --rv-color-line-default: rgba(255,255,255,0.10);
  --rv-color-line-strong: rgba(255,255,255,0.22);
  --rv-color-alpha-accent-10: rgba(255,140,53,0.10);
  --rv-color-alpha-accent-18: rgba(255,140,53,0.18);
  --rv-color-alpha-accent-30: rgba(255,140,53,0.30);
  --rv-color-alpha-accent-45: rgba(255,140,53,0.45);
  --rv-color-alpha-white-12: rgba(255,255,255,0.12);
  --rv-color-alpha-white-25: rgba(255,255,255,0.25);
  --rv-color-alpha-white-70: rgba(255,255,255,0.70);
  --rv-color-alpha-white-88: rgba(255,255,255,0.88);
  --rv-color-alpha-white-02: rgba(255,255,255,0.02);
  --rv-color-alpha-white-08: rgba(255,255,255,0.08);
  --rv-color-alpha-black-55: rgba(0,0,0,0.55);
  --rv-color-alpha-black-80: rgba(0,0,0,0.80);
  --rv-color-alpha-canvas-55: rgba(25,21,19,0.55);
  --rv-color-alpha-canvas-70: rgba(25,21,19,0.70);
  --rv-color-alpha-canvas-90: rgba(25,21,19,0.90);
  --rv-color-status-success: #34D27F;
  --rv-color-status-warning: #F5B83D;
  --rv-color-status-danger: #FF7A7A;
  --rv-color-product-unit-white: #F4F2EE;
  --rv-color-product-unit-white-light: #FFFFFF;
  --rv-color-product-unit-white-dark: #DDD9D2;
  --rv-color-product-unit-black: #1C1A18;
  --rv-color-product-unit-black-light: #2E2B28;
  --rv-color-product-unit-black-dark: #0E0D0C;
  --rv-color-product-moulding-black: #161412;
  --rv-color-product-moulding-black-light: #2A2724;
  --rv-color-product-moulding-black-dark: #080706;
  --rv-color-product-moulding-white: #F8F7F5;
  --rv-color-product-moulding-white-light: #FFFFFF;
  --rv-color-product-moulding-white-dark: #E2DFDA;
  --rv-color-product-moulding-natural-wood: #C9A87C;
  --rv-color-product-moulding-natural-wood-light: #DDC29C;
  --rv-color-product-moulding-natural-wood-dark: #B08B5E;
  --rv-color-product-moulding-dark-walnut: #2E1F12;
  --rv-color-product-moulding-dark-walnut-light: #4A3420;
  --rv-color-product-moulding-dark-walnut-dark: #1E1208;
  --rv-color-product-moulding-slate: #4A5A72;
  --rv-color-product-moulding-slate-light: #63748E;
  --rv-color-product-moulding-slate-dark: #36435A;
  --rv-color-product-moulding-sage: #4A6A50;
  --rv-color-product-moulding-sage-light: #62846A;
  --rv-color-product-moulding-sage-dark: #36503C;
  --rv-color-product-mat-white: #F7F5F0;
  --rv-color-product-mat-white-bevel: #FFFFFF;
  --rv-color-product-mat-white-shadow: #E6E2DA;
  --rv-color-product-mat-cream: #F1EADB;
  --rv-color-product-mat-cream-bevel: #FBF6EA;
  --rv-color-product-mat-cream-shadow: #DED4BF;
  --rv-color-product-screen-paper: #E9E4DC;
  --rv-color-product-screen-ink: #0C0A08;
  --rv-color-product-flash-black: #2A2622;
  --rv-color-product-flash-white: #E8E3DA;
  --rv-color-product-flash-red: #B07A72;
  --rv-color-product-flash-yellow: #C2B184;
  --rv-color-product-flash-blue: #7387A4;
  --rv-color-product-flash-green: #849A86;
  --rv-font-family-display: "Canaro", "Inter Tight", system-ui, sans-serif;
  --rv-font-family-body: "Montserrat", "Inter", system-ui, sans-serif;
  --rv-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rv-text-display-xl-font-size: 60px;
  --rv-text-display-xl-font-weight: 700;
  --rv-text-display-xl-line-height: 1.05;
  --rv-text-display-xl-letter-spacing: -0.03em;
  --rv-text-display-l-font-size: 35px;
  --rv-text-display-l-font-weight: 700;
  --rv-text-display-l-line-height: 1.1;
  --rv-text-display-l-letter-spacing: -0.03em;
  --rv-text-display-m-font-size: 25px;
  --rv-text-display-m-font-weight: 700;
  --rv-text-display-m-line-height: 1.15;
  --rv-text-display-m-letter-spacing: -0.02em;
  --rv-text-title-font-size: 30px;
  --rv-text-title-line-height: 1.1;
  --rv-text-title-letter-spacing: -0.02em;
  --rv-text-title-em-font-weight: 300;
  --rv-text-title-em-font-style: italic;
  --rv-text-title-strong-font-weight: 800;
  --rv-text-body-font-size: 15px;
  --rv-text-body-font-weight: 400;
  --rv-text-body-line-height: 1.5;
  --rv-text-body-letter-spacing: 0;
  --rv-text-body-sm-font-size: 13px;
  --rv-text-body-sm-font-weight: 400;
  --rv-text-body-sm-line-height: 1.5;
  --rv-text-body-sm-letter-spacing: 0;
  --rv-text-nav-font-size: 13px;
  --rv-text-nav-font-weight: 500;
  --rv-text-nav-line-height: 1.2;
  --rv-text-nav-letter-spacing: 0.02em;
  --rv-text-label-font-size: 11px;
  --rv-text-label-font-weight: 700;
  --rv-text-label-line-height: 1.2;
  --rv-text-label-letter-spacing: 0.12em;
  --rv-text-label-text-transform: uppercase;
  --rv-space-1: 4px;
  --rv-space-2: 8px;
  --rv-space-3: 12px;
  --rv-space-4: 16px;
  --rv-space-5: 24px;
  --rv-space-6: 32px;
  --rv-space-7: 48px;
  --rv-space-8: 64px;
  --rv-space-9: 96px;
  --rv-space-10: 128px;
  --rv-radius-xs: 6px;
  --rv-radius-sm: 12px;
  --rv-radius-md: 18px;
  --rv-radius-card: 20px;
  --rv-radius-pill: 9999px;
  --rv-layout-header-height: 64px;
  --rv-layout-container: 1100px;
  --rv-layout-gutter: clamp(1.5rem, 5vw, 3rem);
  --rv-layout-sidebar: 224px;
  --rv-layout-content: 896px;
  --rv-layout-content-narrow: 640px;
  --rv-shadow-card: 0 18px 48px -16px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.25);
  --rv-shadow-glow: 0 0 32px rgba(255,140,53,0.30);
  --rv-shadow-glow-strong: 0 0 24px rgba(255,140,53,0.40);
  --rv-shadow-dialog: 0 16px 56px rgba(0,0,0,0.60);
  --rv-motion-easing-out: cubic-bezier(.22,.61,.36,1);
  --rv-motion-duration-fast: 140ms;
  --rv-motion-duration-base: 260ms;
  --rv-gradient-sunrise: linear-gradient(180deg, #531B06 0%, #7F3410 19%, #CE6022 38%, #FE7A2D 53%, #FF8C35 71%, #FF9C50 87%, #FFB47B 100%);
  --rv-text-display-xl-font-family: var(--rv-font-family-display);
  --rv-text-display-l-font-family: var(--rv-font-family-display);
  --rv-text-display-m-font-family: var(--rv-font-family-display);
  --rv-text-title-font-family: var(--rv-font-family-display);
  --rv-text-body-font-family: var(--rv-font-family-body);
  --rv-text-body-sm-font-family: var(--rv-font-family-body);
  --rv-text-nav-font-family: var(--rv-font-family-body);
  --rv-text-label-font-family: var(--rv-font-family-body);
  --rv-gradient-sunrise-fade: linear-gradient(180deg, var(--rv-color-surface-canvas) 0%, var(--rv-color-surface-raised) 20%, #7F3410 52%, #CE6022 74%, var(--rv-color-accent) 100%); /** The landing preview's closing band: it rises from the canvas and stays dark down to half its height, so white text reads on it. Its stops are the preview's (#191310, #2a1509, #7F3410, #CE6022, #FF8C35) as the canvas, the raised surface, sunrise's own 19% and 38% stops (no colour token has them), and the accent. */
}

@font-face {
  font-family: "Canaro";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/Canaro-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/Canaro-LightItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Canaro-Book.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Canaro-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Canaro-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Canaro-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Canaro-BoldItalic.woff2") format("woff2");
}

@font-face {
  font-family: "Canaro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/Canaro-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Montserrat-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Montserrat-Italic-Variable.woff2") format("woff2");
}

.rv-base {
  margin: 0;
  background: var(--rv-color-surface-canvas);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-text-body-font-family);
  font-size: var(--rv-text-body-font-size);
  font-weight: var(--rv-text-body-font-weight);
  line-height: var(--rv-text-body-line-height);
  letter-spacing: var(--rv-text-body-letter-spacing);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.rv-base *,
.rv-base *::before,
.rv-base *::after {
  box-sizing: border-box;
}

.rv-base ::selection {
  background: var(--rv-color-accent-tint);
}

.rv-base :focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

/* The scrollbar: thin, a canvas track, a white-12% thumb that turns accent-45% on hover.

   Two scopes, because the page does not scroll inside `.rv-base`. The web page scrolls on the
   viewport, whose scrollbar is styled from the root element, and `.rv-base` is the body, so the
   root is reached with `:root:has(> body.rv-base)`: only a page that opted in through `rv-base`
   is touched, never a page that merely loads this stylesheet. The desktop app scrolls inside
   `main.rv-app__scroll`, dialogs, lists and menus, all `.rv-base` descendants, so the second
   scope is `.rv-base` and everything in it. The descendant scope is `:where()`, at no
   specificity, so a component's own scrollbar rules (the contents column, tabs) still win.

   Engines, closest result each:
   - Chrome, Edge (WebKit scrollbar pseudo-elements): 6px wide and tall, the thumb, the track,
     a 3px radius and the accent on hover. Chromium 121+ ignores these on an element that sets
     `scrollbar-color` or `scrollbar-width`, so those two are NOT set here for Chromium.
   - Safari (WebKit pseudo-elements only): the same as Chrome.
   - Firefox (`scrollbar-width` and `scrollbar-color` only): the thin width and the thumb and
     track colours; no radius, no size in pixels, and no hover colour, as Firefox has no hover
     state to style. It is the only engine given the standard properties: they are gated on the
     engine NOT implementing `::-webkit-scrollbar`, which Chromium and Safari do and Firefox
     does not.

   Not covered by the viewport rule: an element rendered outside `body.rv-base` (a portal mounted
   on a sibling of the body's content, not inside it) or `rv-base` set on an element that is not
   the body. Those get the container rule only. */
:root:has(> body.rv-base)::-webkit-scrollbar,
:where(.rv-base, .rv-base *)::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: var(--rv-color-surface-canvas);
}

:root:has(> body.rv-base)::-webkit-scrollbar-track,
:root:has(> body.rv-base)::-webkit-scrollbar-corner,
:where(.rv-base, .rv-base *)::-webkit-scrollbar-track,
:where(.rv-base, .rv-base *)::-webkit-scrollbar-corner {
  background: var(--rv-color-surface-canvas);
}

:root:has(> body.rv-base)::-webkit-scrollbar-thumb,
:where(.rv-base, .rv-base *)::-webkit-scrollbar-thumb {
  background: var(--rv-color-alpha-white-12);
  border-radius: 3px;
}

:root:has(> body.rv-base)::-webkit-scrollbar-thumb:hover,
:where(.rv-base, .rv-base *)::-webkit-scrollbar-thumb:hover {
  background: var(--rv-color-alpha-accent-45);
}

@supports not selector(::-webkit-scrollbar) {
  :root:has(> body.rv-base),
  :where(.rv-base, .rv-base *) {
    scrollbar-width: thin;
    scrollbar-color: var(--rv-color-alpha-white-12) var(--rv-color-surface-canvas);
  }
}

/* Text for assistive technology only: read, but clipped to nothing on screen. */
.rv-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A page coming in: it rises and fades in once, when it mounts. Opt-in: put it on the page, and
   key the page by its route so that each new page plays it. */
.rv-fade-in {
  animation: rv-fade-in var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

@keyframes rv-fade-in {
  from {
    opacity: 0;
    transform: translateY(var(--rv-space-1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-fade-in {
    animation: none;
  }
}

.rv-display-xl,
.rv-display-l,
.rv-display-m,
.rv-title,
.rv-body,
.rv-body-sm,
.rv-label {
  margin: 0;
}

.rv-display-xl {
  font-family: var(--rv-text-display-xl-font-family);
  font-size: var(--rv-text-display-xl-font-size);
  font-weight: var(--rv-text-display-xl-font-weight);
  line-height: var(--rv-text-display-xl-line-height);
  letter-spacing: var(--rv-text-display-xl-letter-spacing);
}

.rv-display-l {
  font-family: var(--rv-text-display-l-font-family);
  font-size: var(--rv-text-display-l-font-size);
  font-weight: var(--rv-text-display-l-font-weight);
  line-height: var(--rv-text-display-l-line-height);
  letter-spacing: var(--rv-text-display-l-letter-spacing);
}

.rv-display-m {
  font-family: var(--rv-text-display-m-font-family);
  font-size: var(--rv-text-display-m-font-size);
  font-weight: var(--rv-text-display-m-font-weight);
  line-height: var(--rv-text-display-m-line-height);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

.rv-title {
  font-family: var(--rv-text-title-font-family);
  font-size: var(--rv-text-title-font-size);
  line-height: var(--rv-text-title-line-height);
  letter-spacing: var(--rv-text-title-letter-spacing);
}

.rv-title__em {
  font-weight: var(--rv-text-title-em-font-weight);
  font-style: var(--rv-text-title-em-font-style);
}

.rv-title__strong {
  font-weight: var(--rv-text-title-strong-font-weight);
  font-style: normal;
}

.rv-title__dot {
  color: var(--rv-color-accent);
}

.rv-body {
  font-family: var(--rv-text-body-font-family);
  font-size: var(--rv-text-body-font-size);
  font-weight: var(--rv-text-body-font-weight);
  line-height: var(--rv-text-body-line-height);
  letter-spacing: var(--rv-text-body-letter-spacing);
}

.rv-body-sm {
  font-family: var(--rv-text-body-sm-font-family);
  font-size: var(--rv-text-body-sm-font-size);
  font-weight: var(--rv-text-body-sm-font-weight);
  line-height: var(--rv-text-body-sm-line-height);
  letter-spacing: var(--rv-text-body-sm-letter-spacing);
}

.rv-label {
  font-family: var(--rv-text-label-font-family);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  line-height: var(--rv-text-label-line-height);
  letter-spacing: var(--rv-text-label-letter-spacing);
  text-transform: var(--rv-text-label-text-transform);
}

/* Long-form text: the content of a page, an article or a list's intro. The
   markup is whatever Markdown renders, so every rule is by element and
   scoped to .rv-prose. */
.rv-prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--rv-color-text-secondary);
}

.rv-prose > *:first-child {
  margin-top: 0;
}

/* The display font is set here with no !important: nothing in a theme's
   page competes with these rules the way a host framework's heading styles
   would. */
.rv-prose h2 {
  font-family: var(--rv-font-family-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--rv-color-text-primary);
  margin: var(--rv-space-9) 0 var(--rv-space-4);
}

.rv-prose h3 {
  font-family: var(--rv-font-family-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--rv-color-text-primary);
  margin: var(--rv-space-7) 0 var(--rv-space-3);
}

.rv-prose p {
  font-size: inherit;
  line-height: inherit;
  color: var(--rv-color-text-secondary);
  margin: 0 0 var(--rv-space-5);
}

.rv-prose strong {
  color: var(--rv-color-text-primary);
  font-weight: 700;
}

.rv-prose em {
  font-style: italic;
}

.rv-prose ul,
.rv-prose ol {
  margin: 0 0 var(--rv-space-5);
  padding-left: 1.3em;
  color: var(--rv-color-text-secondary);
}

.rv-prose ul {
  list-style: none;
}

.rv-prose ul li {
  position: relative;
  margin-bottom: var(--rv-space-2);
  padding-left: 0.4em;
}

.rv-prose ul li::before {
  content: '';
  position: absolute;
  left: -1.1em;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rv-color-accent);
}

.rv-prose ol {
  list-style: decimal;
}

.rv-prose ol li {
  margin-bottom: var(--rv-space-2);
  padding-left: 0.3em;
}

.rv-prose ol li::marker {
  color: var(--rv-color-accent);
  font-weight: 700;
}

/* The source's underline was 40% orange: the nearest step is 45%. */
.rv-prose a {
  color: var(--rv-color-accent);
  text-decoration: underline;
  text-decoration-color: var(--rv-color-alpha-accent-45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-prose a:hover {
  text-decoration-color: var(--rv-color-accent);
}

/* Pull quote — an accent rule and italics, no boxed background. */
.rv-prose blockquote {
  border: none;
  background: none;
  margin: var(--rv-space-6) 0;
  padding: 0 0 0 var(--rv-space-4);
  border-left: 2px solid var(--rv-color-accent);
  font-family: var(--rv-font-family-body);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--rv-color-text-secondary);
}

.rv-prose blockquote p {
  margin: 0;
  color: inherit;
}

.rv-prose hr {
  border: none;
  height: 1px;
  background: var(--rv-color-line-default);
  margin: var(--rv-space-9) 0;
}

/* Images: full-bleed within the reading column, soft corner radius,
   optional caption styled as a small centered label underneath. */
.rv-prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--rv-radius-card);
  margin: var(--rv-space-7) auto var(--rv-space-2);
}

.rv-prose figure {
  margin: var(--rv-space-7) 0;
}

.rv-prose figure img {
  margin: 0 auto var(--rv-space-3);
}

/* A tall, narrow picture (a phone screenshot) kept to a phone's width. */
.rv-prose figure.rv-portrait {
  max-width: min(420px, 52vw);
  margin: var(--rv-space-7) auto;
}

.rv-prose figure.rv-portrait img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  object-fit: contain;
  background: var(--rv-color-alpha-white-02);
}

/* Two figures side by side, one above the other on a narrow screen. */
.rv-prose .rv-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rv-space-5);
  align-items: end;
  margin: var(--rv-space-7) 0;
}

.rv-prose .rv-comparison figure {
  margin: 0;
}

.rv-prose .rv-comparison figure img {
  width: auto;
  max-width: 100%;
  max-height: 58vh;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.rv-prose figcaption {
  font-family: var(--rv-font-family-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--rv-color-text-tertiary);
  text-align: center;
}

.rv-prose code {
  font-size: 0.85em;
  background: var(--rv-color-surface-raised);
  border: 1px solid var(--rv-color-line-default);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: var(--rv-color-text-secondary);
}

/* A code block: the blog's `pre` (reeveel.css, "Code blocks"), whose box the
   copy button (code.css) sits in. Its `pre code` reset is kept as the blog
   meant it: there `.post-body code` outranked it, framing the code a second
   time inside the block. */
.rv-prose pre {
  padding: var(--rv-space-5);
  overflow-x: auto;
  border: 1px solid var(--rv-color-alpha-white-08);
  border-radius: var(--rv-radius-xs);
  background: var(--rv-color-surface-raised);
  color: var(--rv-color-text-secondary);
  font-size: 0.875em;
}

.rv-prose pre code {
  padding: 0;
  border: none;
  background: none;
}

/* Tables scroll within the column rather than widening the page. */
.rv-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 var(--rv-space-5);
  border-collapse: collapse;
  font-size: 0.9em;
  line-height: 1.5;
}

.rv-prose th,
.rv-prose td {
  padding: var(--rv-space-2) var(--rv-space-4);
  border-bottom: 1px solid var(--rv-color-line-default);
  text-align: left;
}

.rv-prose th {
  font-family: var(--rv-font-family-body);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-color-text-primary);
  border-bottom-color: var(--rv-color-line-strong);
}

/* Anchor jumps clear the page chrome: the fixed nav. Below the wide
   breakpoint an article with a contents bar pinned under the nav clears that
   too (toc.css); the rail that replaces the bar on wide screens is in the
   gutter, so it takes no room above the text. */
.rv-prose :is(h2, h3, h4)[id] {
  scroll-margin-top: calc(var(--rv-layout-header-height) + var(--rv-space-4));
}

@media (min-width: 1200px) {
  .rv-prose :is(h2, h3, h4)[id] {
    scroll-margin-top: calc(var(--rv-layout-header-height) + var(--rv-space-5));
  }
}

@media (max-width: 700px) {
  .rv-prose .rv-comparison {
    grid-template-columns: 1fr;
  }

  .rv-prose figure.rv-portrait {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .rv-prose {
    font-size: 16px;
  }

  .rv-prose h2 {
    margin: var(--rv-space-8) 0 var(--rv-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-prose a {
    transition: none;
  }
}

/* A code block's copy button (_markup/render-codeblock.html, rv/code.js),
   ported from Ananke's _code.css onto the tokens. It is hidden in the markup
   until the script reveals it, so no inert button shows without JavaScript. */
.rv-code {
  position: relative;
}

.rv-code__copy {
  position: absolute;
  top: var(--rv-space-2);
  right: var(--rv-space-2);
  z-index: 2;
  padding: var(--rv-space-1) 0.6rem;
  border: 1px solid var(--rv-color-alpha-white-25);
  border-radius: 4px;
  background-color: var(--rv-color-alpha-white-12);
  color: var(--rv-color-text-secondary);
  font-family: var(--rv-font-family-body);
  font-size: 0.75rem;
  line-height: 1.4;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

/* Shown on hover, and when focused for keyboard users. */
.rv-code:hover .rv-code__copy,
.rv-code__copy:focus-visible {
  opacity: 1;
}

.rv-code__copy:hover {
  background-color: var(--rv-color-alpha-white-25);
}

/* Ananke's green, as the brand's success colour; dark text keeps it legible. */
.rv-code__copy.is-copied {
  border-color: var(--rv-color-status-success);
  background-color: var(--rv-color-status-success);
  color: var(--rv-color-surface-canvas);
}

/* Touch screens have no hover: keep the button in view, but quiet. */
@media (hover: none) {
  .rv-code__copy {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-code__copy {
    transition: none;
  }
}

/* Author mentions. A post that says "So Alexis stepped in" is asking the
   reader to know who Alexis is. The card answers that in place, so nobody
   has to leave the article to find out. Hover and keyboard focus both open
   it. Rendered by the Markdown link hook; sits after prose.css, which it
   overrides for the avatar. */
.rv-mention {
  position: relative;
  white-space: nowrap;
}

.rv-mention__link {
  white-space: normal;
}

.rv-mention__card {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  z-index: 40;
  display: flex;
  gap: var(--rv-space-3);
  width: max-content;
  max-width: min(320px, 78vw);
  padding: var(--rv-space-3) var(--rv-space-4);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-sm);
  background: var(--rv-color-surface-raised);
  box-shadow: var(--rv-shadow-card);
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    transform var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    visibility var(--rv-motion-duration-fast);
}

/* The 10px gap above the link would drop the hover on the way into the
   card — this bridges it without being visible. */
.rv-mention__card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.rv-mention:hover .rv-mention__card,
.rv-mention:focus-within .rv-mention__card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 120ms;
}

/* --rv-mention-avatar: the portrait, an image-set the link hook writes on the
   element's style; none until it does. */
.rv-mention__avatar {
  --rv-mention-avatar: none;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--rv-radius-pill);
  background: var(--rv-mention-avatar) 50% 28% / cover no-repeat var(--rv-color-surface-canvas);
}

/* The card's text is in data-text attributes, not in the page's text: an
   extractor, a feed reader or an agent reading the sentence gets "So Alexis
   stepped in", not the card in the middle of it (see render-link.html). */
.rv-mention__name::before,
.rv-mention__role::before,
.rv-mention__bio::before {
  content: attr(data-text);
}

.rv-mention__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rv-mention__name {
  font-family: var(--rv-font-family-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rv-color-text-primary);
}

.rv-mention__role {
  font-family: var(--rv-font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-color-accent);
}

.rv-mention__bio {
  font-family: var(--rv-font-family-body);
  font-size: 12px;
  line-height: 1.45;
  color: var(--rv-color-text-tertiary);
  margin-top: 2px;
}

/* No hover to open it with, and a tap should navigate rather than reveal
   a card the reader then has to dismiss. */
@media (hover: none) {
  .rv-mention__card {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-mention__card {
    transition: none;
  }
}

.rv-link {
  color: var(--rv-color-accent);
  text-decoration: none;
}

.rv-link:hover {
  text-decoration: underline;
}

.rv-container {
  max-width: var(--rv-layout-container);
  margin-inline: auto;
  padding-inline: var(--rv-layout-gutter);
}

/* The skeleton of a page: the nav is position: fixed, out of the flow, so the
   page starts below it rather than under it. The footer follows the content at
   the bottom of a short page. */
.rv-base {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--rv-layout-header-height);
}

/* The article hero's layers are 100vw wide, which on a page with a scrollbar is
   wider than the page and would scroll it sideways. clip, not hidden: it
   does not make <html> a scroll container, so the sticky contents rail keeps
   sticking to the viewport (with hidden it sticks to <html> and scrolls away).
   It lives on <html> only for the same reason. */
html {
  overflow-x: clip;
}

/* The skip link's target (baseof.html). Its scroll margin lands it under the
   fixed nav rather than behind it: following the link leaves the page where
   it starts, at the top. With an announcement bar the root's scroll padding
   adds the bar's height (announcement.css). It takes the focus from the link
   only, so it draws no ring around the whole page. */
.rv-page {
  flex: 1 0 auto;
  padding-block: var(--rv-space-7);
  scroll-margin-top: var(--rv-layout-header-height);
}

.rv-page:focus {
  outline: none;
}

/* An article's header (and hero) and the 404's block start directly under the
   nav, as on the blog: both carry their own top padding from the blog. */
.rv-page:has(> .rv-article, > .rv-page__not-found) {
  padding-top: 0;
}

.rv-base > .rv-footer {
  flex-shrink: 0;
}

/* The skip link (baseof.html): the first thing Tab reaches, fixed above the
   top left corner, so it takes no room and nothing shows until it has the
   focus. Then it drops in over the nav (nav.css, z-index 100) and the
   announcement bar (announcement.css, 101) as an accent button, and jumps
   rather than glides, so reduced motion has nothing to stop. 102 is ours: no
   z-index token. */
.rv-skip {
  position: fixed;
  top: var(--rv-space-3);
  left: var(--rv-space-3);
  z-index: 102;
  padding: var(--rv-space-3) var(--rv-space-4);
  border-radius: var(--rv-radius-sm);
  background: var(--rv-color-accent);
  color: var(--rv-color-on-accent);
  font-family: var(--rv-text-label-font-family);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: var(--rv-text-label-letter-spacing);
  text-transform: var(--rv-text-label-text-transform);
  text-decoration: none;
  transform: translateY(-200%);
}

.rv-skip:focus {
  transform: none;
}

.rv-page__title {
  margin: 0 0 var(--rv-space-4);
  font-family: var(--rv-font-family-display);
}

.rv-page__lead {
  max-width: 560px;
  margin: 0 0 var(--rv-space-6);
  color: var(--rv-color-text-secondary);
  font-family: var(--rv-font-family-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

/* The 404: an eyebrow, a big title, a lead, a way home and a short rule. Its
   measures are the blog's journal header (.journal-header, -title, -sub and the
   card's call to action in reeveel.css), which the blog's 404 is built from. */
.rv-page__not-found {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}

.rv-page__eyebrow {
  margin: 0 0 var(--rv-space-5);
  color: var(--rv-color-accent);
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rv-page__not-found .rv-page__title {
  margin-bottom: var(--rv-space-6);
  color: var(--rv-color-text-primary);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.rv-page__not-found .rv-page__title em {
  display: block;
  color: var(--rv-color-text-primary);
  font-style: italic;
  font-weight: 800;
}

/* A paragraph's own 1em below it, as the blog's lead keeps the browser's. */
.rv-page__not-found .rv-page__lead {
  margin-bottom: 1em;
  letter-spacing: -0.03em;
}

.rv-page__not-found .rv-page__back {
  margin-top: var(--rv-space-4);
}

.rv-page__back svg {
  flex-shrink: 0;
}

.rv-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rv-color-accent);
  font-family: var(--rv-font-family-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.rv-page__divider {
  width: 44px;
  height: 3px;
  margin-top: var(--rv-space-7);
  border-radius: 2px;
  background: var(--rv-color-accent);
}

/* The mark on a draft, which is only built in development: see
   rv/draft-banner.html. Yellow rather than the brand's orange, so a mark never
   passes for part of the design. */
.rv-draft-banner {
  padding: var(--rv-space-2) var(--rv-space-4);
  background: #ffd23f;
  color: #000;
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.rv-draft-badge {
  border: 1px dashed #ffd23f;
  background: transparent;
  color: #ffd23f;
}

/* The grid of post cards. */
.rv-post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--rv-space-6);
}

/* ── Base card ── */
.rv-post-card {
  background: var(--rv-color-surface-raised);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--rv-shadow-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition:
    transform var(--rv-motion-duration-base) var(--rv-motion-easing-out),
    box-shadow var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

.rv-post-card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--rv-shadow-card),
    0 0 0 1.5px var(--rv-color-accent);
}

/* Overlay link: makes the whole card clickable without wrapping it in an <a>. */
.rv-post-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Links that sit above the overlay (the author's name). */
.rv-post-card .rv-byline__author--link {
  position: relative;
  z-index: 2;
}

/* ── Image ── */
.rv-post-card__media {
  overflow: hidden;
  flex-shrink: 0;
}

/* height:auto is load-bearing. The width and height attributes on these
   images map to presentational hints, so without it `height` computes to
   the attribute's pixel value instead of auto — and aspect-ratio is
   ignored on a replaced element whose height is not auto. A portrait hero
   then made its card 1013px tall inside a 16/9 slot. */
.rv-post-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--rv-motion-easing-out);
}

.rv-post-card:hover .rv-post-card__img {
  transform: scale(1.03);
}

/* The mark, when the post has no picture. */
.rv-post-card__placeholder {
  width: 100%;
  background: var(--rv-color-surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rv-color-alpha-accent-10);
  color: var(--rv-color-alpha-accent-18);
}

.rv-post-card__mark {
  width: 40px;
  height: 40px;
}

/* ── Body ── */
.rv-post-card__body {
  padding: var(--rv-space-6) var(--rv-space-6) var(--rv-space-7);
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-3);
  flex: 1;
}

/* The pills (the featured one, a draft) take their own width. */
.rv-post-card__body > .rv-badge,
.rv-post-card__badge {
  align-self: flex-start;
  margin-bottom: var(--rv-space-2);
}

/* The "Latest episode" pill is not .rv-badge--accent: that one is an 11px label
   in 4px 12px padding with no border, this one a 10px label, 5px 14px, ringed. */
.rv-post-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rv-color-accent-tint);
  border: 1px solid var(--rv-color-accent-border);
  border-radius: var(--rv-radius-pill);
  padding: 5px 14px;
  font-family: var(--rv-font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-color-accent);
}

.rv-post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--rv-space-1);
}

/* The colour is inherited: the blog's rule set it to a font-family token, which
   is invalid as a colour and so computed to inherit. */
.rv-post-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--rv-font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
}

.rv-post-card__tag::before {
  content: '#';
  opacity: 0.85;
}

.rv-post-card__title {
  font-family: var(--rv-font-family-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--rv-color-text-primary);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.rv-post-card__title em {
  font-weight: 300;
  font-style: italic;
  color: var(--rv-color-accent);
}

.rv-post-card__summary {
  font-family: var(--rv-font-family-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--rv-color-text-tertiary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rv-post-card .rv-byline {
  margin-top: auto;
  padding-top: var(--rv-space-2);
}

.rv-post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--rv-space-4);
  font-family: var(--rv-font-family-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rv-color-accent);
}

.rv-post-card__cta svg {
  flex-shrink: 0;
}

.rv-post-card:hover .rv-post-card__cta {
  gap: 8px;
}

/* ── Featured card ── */
.rv-post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  min-height: 360px;
}

.rv-post-card--featured .rv-post-card__media {
  aspect-ratio: unset;
}

.rv-post-card--featured .rv-post-card__img {
  height: 100%;
  aspect-ratio: unset;
}

.rv-post-card--featured .rv-post-card__mark {
  width: 56px;
  height: 56px;
}

.rv-post-card--featured .rv-post-card__body {
  padding: var(--rv-space-8) var(--rv-space-7) var(--rv-space-8) var(--rv-space-6);
  justify-content: center;
}

.rv-post-card--featured .rv-post-card__title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.rv-post-card--featured .rv-post-card__summary {
  font-size: 15px;
  -webkit-line-clamp: 4;
}

@media (max-width: 720px) {
  .rv-post-card--featured {
    grid-template-columns: 1fr;
  }

  .rv-post-card--featured .rv-post-card__body {
    padding: var(--rv-space-5);
  }

  .rv-post-card--featured .rv-post-card__media {
    aspect-ratio: 16/9;
  }

  .rv-post-card--featured .rv-post-card__img {
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* ── Byline: author, date and reading time on one line (card and article) ── */
.rv-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rv-space-2);
  font-family: var(--rv-font-family-body);
}

.rv-byline--sm {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--rv-color-text-tertiary);
}

/* Allowed to wrap, since a long author name plus three items can outgrow a phone. */
.rv-byline--md {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--rv-color-text-secondary);
}

.rv-byline--md time,
.rv-byline--md .rv-byline__reading {
  color: var(--rv-color-text-tertiary);
}

.rv-byline__sep {
  opacity: 0.4;
}

.rv-byline__avatar {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: var(--rv-radius-pill);
  overflow: hidden;
  background: var(--rv-color-surface-raised);
  box-shadow: 0 0 0 1px var(--rv-color-line-default);
}

.rv-byline--sm .rv-byline__avatar {
  width: 22px;
  height: 22px;
}

.rv-byline--md .rv-byline__avatar {
  width: 28px;
  height: 28px;
}

/* Biased up rather than centred: these are portrait photographs, and in a
   portrait the face sits above the middle. A centred square crop of a
   4240px-tall frame lands on forehead and hair. */
.rv-byline__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.rv-byline--sm .rv-byline__author {
  font-size: 11px;
  font-weight: 600;
  color: var(--rv-color-text-secondary);
}

.rv-byline__author--link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-byline__author--link:hover {
  color: var(--rv-color-accent);
  border-bottom-color: var(--rv-color-accent);
}

/* ── The terms of a taxonomy ── */
.rv-terms {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv-space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.rv-terms__item {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
  padding: var(--rv-space-2) var(--rv-space-4);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-pill);
}

.rv-terms__link {
  color: var(--rv-color-text-primary);
  text-decoration: none;
  font-family: var(--rv-font-family-body);
  font-weight: 600;
}

.rv-terms__link:hover {
  color: var(--rv-color-accent);
}

.rv-terms__count {
  color: var(--rv-color-text-tertiary);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .rv-post-card,
  .rv-post-card__img,
  .rv-byline__author--link {
    transition: none;
  }

  .rv-post-card:hover,
  .rv-post-card:hover .rv-post-card__img {
    transform: none;
  }
}

/* The pager under a list (rv/pager.html): Hugo's embedded pagination.html
   (ul.pagination > li.page-item > a.page-link), scoped by .rv-pager. The pills
   are the blog's "Pagination" block (reeveel.css); the row they sit in is
   Ananke's layout of the same list, which the blog relied on. A step that
   leads nowhere (first and previous on page one) is left out, as Ananke did.
   The blog's rule also outlined the « and » spans inside the links, drawing a
   pill in a pill: only the links are drawn here. */
.rv-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 3rem 0;
  padding: 0;
  list-style: none;
}

.rv-pager .page-item.disabled {
  display: none;
}

.rv-pager .page-link {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--rv-color-line-strong);
  border-radius: var(--rv-radius-pill);
  color: var(--rv-color-text-secondary);
  font-family: var(--rv-font-family-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-pager a.page-link[href]:hover {
  color: var(--rv-color-accent);
  border-color: var(--rv-color-accent);
}

.rv-pager .page-item.active .page-link {
  color: var(--rv-color-surface-canvas);
  background: var(--rv-color-accent);
  border-color: var(--rv-color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .rv-pager .page-link {
    transition: none;
  }
}

/* ================================================================
   Single article
   ================================================================ */

/* ---------- Reading column ------------------------------------- */
.rv-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) clamp(5rem, 10vw, 7rem);
}

/* ---------- Header ----------------------------------------------
   Soft ambient glow as a direct background gradient — fades to
   transparent by construction, so it blends into the page with no
   hard edges and never clips sibling content. */
.rv-article__header {
  position: relative;
  padding-top: clamp(4.5rem, 11vw, 7rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: var(--rv-space-9);
}

/* Ambient glow — painted on an oversized, absolutely-positioned layer
   with NO defined box edge: it's centered on the title and fades to
   fully transparent well before reaching any boundary in any
   direction, so there is nothing for the eye to read as a "card".
   Width is capped at 100vw so it never causes horizontal scrolling. */
.rv-article__header::before {
  content: '';
  position: absolute;
  top: -20vw;
  left: 50%;
  width: 100vw;
  height: 60vw;
  max-height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--rv-color-alpha-accent-10), transparent);
  pointer-events: none;
  z-index: -1;
}

.rv-article__tag {
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--rv-color-alpha-accent-30);
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-accent-tint);
  margin-bottom: var(--rv-space-5);
}

.rv-article__tag::before {
  content: '#';
  opacity: 0.85;
}

/* No !important on the display font: nothing in a theme's page competes
   with this rule the way a host framework's heading styles would. */
.rv-article__title {
  font-family: var(--rv-font-family-display);
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 var(--rv-space-5);
  color: var(--rv-color-text-primary);
  max-width: 18ch;
}

.rv-article__title em {
  font-weight: 300;
  font-style: italic;
  color: var(--rv-color-accent);
}

.rv-article__lead {
  font-family: var(--rv-font-family-body);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--rv-color-text-secondary);
  margin: 0 0 var(--rv-space-6);
  max-width: 52ch;
}

/* The byline (post-card.css) is the meta row: author, date and reading
   time on one line. The rules below only retune it over a photograph. */
.rv-article__divider {
  width: 100%;
  max-width: 56px;
  height: 2px;
  background: var(--rv-color-accent);
  border-radius: 2px;
  margin-top: var(--rv-space-7);
  opacity: 0.85;
}

/* ---------- Hero image -------------------------------------------
   The post's featured_image — the same picture the list card uses
   as its cover — laid full-bleed behind the header so the title sits
   on the picture. The picture replaces the ambient glow, and the
   header grows taller to give it room above the type. */
.rv-article__header--hero {
  isolation: isolate;
  padding-top: clamp(7rem, 22vw, 14rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  margin-bottom: var(--rv-space-8);
}

.rv-article__header--hero::before {
  display: none;
}

/* Same 100vw centring trick as the glow above; html/body already clip
   overflow-x, so this can't scroll the page sideways. */
.rv-article__hero {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* The header's own children are lifted above the picture. */
.rv-article__header--hero > :not(.rv-article__hero) {
  position: relative;
  z-index: 1;
}

.rv-article__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Scrim: enough wash for white type to hold over any photograph, then
   a full fade to the page colour at the bottom so the hero has no edge
   to read as a band — the picture just runs out. */
.rv-article__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--rv-color-alpha-canvas-55) 0%,
    var(--rv-color-alpha-canvas-70) 45%,
    var(--rv-color-alpha-canvas-90) 82%,
    var(--rv-color-surface-canvas) 100%
  );
}

/* Type over a photograph: lift the dimmer greys and add a soft shadow
   so a busy picture can't eat the lead or the byline. */
.rv-article__header--hero .rv-article__title,
.rv-article__header--hero .rv-article__lead {
  text-shadow: 0 2px 24px var(--rv-color-alpha-black-55);
}

.rv-article__header--hero .rv-article__lead {
  color: var(--rv-color-alpha-white-88);
}

.rv-article__header--hero .rv-byline--md {
  color: var(--rv-color-alpha-white-88);
}

.rv-article__header--hero .rv-byline--md time,
.rv-article__header--hero .rv-byline--md .rv-byline__reading {
  color: var(--rv-color-alpha-white-70);
}

.rv-article__header--hero .rv-byline__avatar {
  box-shadow: 0 0 0 1px var(--rv-color-alpha-white-25);
}

/* The tag pill's 14% tint disappears over a photo — give it a backdrop. */
.rv-article__header--hero .rv-article__tag {
  background: var(--rv-color-alpha-canvas-55);
  border-color: var(--rv-color-alpha-accent-45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Body -------------------------------------------------- */
.rv-article__main {
  position: relative;
}

/* ---------- Back link --------------------------------------------- */
.rv-article__back {
  margin-top: var(--rv-space-10);
  padding-top: var(--rv-space-6);
  border-top: 1px solid var(--rv-color-line-default);
}

.rv-article__back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
  font-family: var(--rv-font-family-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rv-color-text-tertiary);
  text-decoration: none;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    gap var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

.rv-article__back-link:hover {
  color: var(--rv-color-accent);
  gap: var(--rv-space-3);
}

.rv-article__back-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- An article section's list -------------------------------
   The newest post as a wide card above the grid. */
.rv-post-cards--featured {
  margin-bottom: var(--rv-space-6);
}

/* ---------- Mobile tightening --------------------------------------- */
@media (max-width: 600px) {
  .rv-article__header {
    margin-bottom: var(--rv-space-7);
  }
  .rv-article__title {
    max-width: none;
  }
  .rv-article .rv-prose {
    font-size: 16px;
  }
  .rv-article .rv-prose h2 {
    margin: var(--rv-space-8) 0 var(--rv-space-3);
  }
  /* Narrow screens: less headroom above the title, or the picture
     pushes the whole header off the first screen. */
  .rv-article__header--hero {
    padding-top: clamp(5rem, 30vw, 9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-article__back-link {
    transition: none;
  }
}

/* ---------- Table of contents ---------------------------------------
   A rail in the left gutter that travels down the article with the
   reader: sticky for as long as the body lasts, with the section being
   read lit in accent.

   It is absolutely positioned into the gutter rather than laid out as a
   grid column on purpose — the reading column has to stay centred on the
   viewport, because the full-bleed hero above it is centred with the
   `left: 50%; width: 100vw` trick and would sit off-centre otherwise. */

/* Height of the page chrome a heading has to clear: the design system's
   nav, which is --rv-layout-header-height at every width, plus the
   switcher bar below the wide breakpoint. rv/toc.js reads both heights from
   the DOM, so the scroll-spy stays in step with them. --rv-toc-bar-h is the
   one place the bar's height is set, on the article that has the bar only:
   the bar, its sheet and the headings it pushes down (below) read it, and a
   page without the bar has no height to clear. */
.rv-article:has(.rv-toc-bar) {
  --rv-toc-bar-h: 46px;
}

/* The chrome fixed over the top of the page, which the rail, the bar and
   its sheet are placed under: the nav, and an announcement bar when the
   page has one (announcement.css raises it by the bar's height). Anchor
   jumps clear an announcement bar through the root's scroll padding
   instead, so the headings' scroll margins below read the nav alone. */
.rv-article {
  --rv-toc-chrome: var(--rv-layout-header-height);
}

/* Anchor jumps clear the bar too, where it is shown (prose.css clears the
   nav alone). */
@media (max-width: 1199.98px) {
  .rv-article:has(.rv-toc-bar) .rv-prose :is(h2, h3, h4)[id] {
    scroll-margin-top: calc(
      var(--rv-layout-header-height) + var(--rv-toc-bar-h) + var(--rv-space-4)
    );
  }
}

/* Below the wide breakpoint there is no gutter to put it in, so the rail
   is replaced by a folded list above the body. */
.rv-toc {
  display: none;
}

.rv-toc__label {
  font-family: var(--rv-font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rv-color-text-tertiary);
  margin: 0 0 var(--rv-space-4);
  padding-left: var(--rv-space-4);
}

.rv-toc__list,
.rv-toc__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rv-toc__list li::before,
.rv-toc__sublist li::before {
  content: none;
}

.rv-toc__link {
  display: block;
  font-family: var(--rv-font-family-body);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--rv-color-text-tertiary);
  text-decoration: none;
  padding: 7px 0 7px var(--rv-space-4);
  border-left: 2px solid transparent;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-toc__link:hover,
.rv-toc__link:focus-visible {
  color: var(--rv-color-text-primary);
  border-left-color: var(--rv-color-line-strong);
}

/* The exact heading the reader is at. */
.rv-toc__link.is-active {
  color: var(--rv-color-accent);
  font-weight: 600;
  border-left-color: var(--rv-color-accent);
}

/* The section that heading belongs to: while the reader is inside one of
   its sub-headings, the section's own entry still has to read as "you are
   here" — lit, but a step below the exact position so the two don't
   compete. */
.rv-toc__item.is-current > .rv-toc__link:not(.is-active) {
  color: var(--rv-color-text-primary);
  font-weight: 600;
}

.rv-toc__link--sub {
  font-size: 12.5px;
  font-weight: 400;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: var(--rv-space-6);
}

/* ---------- Wide screens: the gutter rail --------------------------- */
@media (min-width: 1200px) {
  .rv-toc {
    --toc-w: 200px;
    --toc-gap: 40px;
    display: block;
    position: absolute;
    top: 0;
    left: calc(-1 * (var(--toc-w) + var(--toc-gap)));
    width: var(--toc-w);
    height: 100%;
  }

  /* The site header is fixed over the page, so anything parked above
     --rv-toc-chrome is under it. */
  .rv-toc__inner {
    position: sticky;
    top: calc(var(--rv-toc-chrome) + var(--rv-space-5));
    max-height: calc(100vh - var(--rv-toc-chrome) - var(--rv-space-8));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--rv-color-line-strong) transparent;
  }

  .rv-toc__inner::-webkit-scrollbar {
    width: 4px;
  }
  .rv-toc__inner::-webkit-scrollbar-thumb {
    background: var(--rv-color-line-strong);
    border-radius: var(--rv-radius-pill);
  }

  /* The rail line everything else rides on. Both the section segment and
     each link's own 2px border are pulled left over it, so they replace
     the line at that point rather than doubling it. */
  .rv-toc__list {
    border-left: 1px solid var(--rv-color-line-default);
  }

  .rv-toc__item {
    margin-left: -1px;
  }

  /* The stretch of rail belonging to the current section — heading and
     sub-headings together — so the reader can see how much of the article
     the section they're in covers. The active link's solid border lands on
     top of it, marking the exact position within the lit stretch. */
  .rv-toc__item.is-current {
    box-shadow: inset 2px 0 0 var(--rv-color-alpha-accent-30);
  }

  /* Sub-headings unfold for the section being read (.is-current is set by
     the scroll-spy) — 0fr → 1fr animates a height the rows don't know. */
  .rv-toc__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--rv-motion-duration-base) var(--rv-motion-easing-out);
  }

  .rv-toc__item.is-current > .rv-toc__sub {
    grid-template-rows: 1fr;
  }

  .rv-toc__sub > .rv-toc__sublist {
    overflow: hidden;
    min-height: 0;
  }

  .rv-toc-bar {
    display: none;
  }
}

@media (min-width: 1440px) {
  .rv-toc {
    --toc-w: 240px;
    --toc-gap: 56px;
  }
}

/* ---------- Narrow screens: a section switcher under the header ------
   No gutter to put a rail in, and a list parked at the top of the article
   is only useful before you start reading. Instead the contents ride
   along as a bar pinned under the site header for the length of the body:
   it names the section you're in, and opens the full list as a sheet. */
.rv-toc-bar {
  position: sticky;
  top: var(--rv-toc-chrome);
  z-index: 20;
  /* Pull out to the article's edges — a bar reads better full-bleed than
     inset like a card. */
  margin: 0 calc(-1 * clamp(1.25rem, 5vw, 2rem)) var(--rv-space-6);
}

.rv-toc-bar__trigger {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  height: var(--rv-toc-bar-h);
  padding: 0 clamp(1.25rem, 5vw, 2rem);
  cursor: pointer;
  list-style: none;
  background: var(--rv-color-surface-canvas);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--rv-color-line-subtle);
  border-bottom: 1px solid var(--rv-color-line-default);
  font-family: var(--rv-font-family-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--rv-color-text-secondary);
}

.rv-toc-bar__trigger::-webkit-details-marker {
  display: none;
}

.rv-toc-bar__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--rv-color-accent);
}

/* The section name is the useful half of the bar, so it gets the room and
   truncates rather than wrapping the bar to two lines. */
.rv-toc-bar__current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-toc-bar__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-toc-bar[open] .rv-toc-bar__chevron {
  transform: rotate(180deg);
}

/* Sheet + scrim sit below the site header (the design system's .rv-nav,
   z-index 100) so it stays reachable. */
.rv-toc-bar__scrim {
  position: fixed;
  inset: 0;
  background: var(--rv-color-alpha-black-55);
  z-index: 90;
}

.rv-toc-bar__sheet {
  position: fixed;
  top: calc(var(--rv-toc-chrome) + var(--rv-toc-bar-h));
  left: 0;
  right: 0;
  z-index: 91;
  padding: var(--rv-space-4) clamp(1.25rem, 5vw, 2rem) var(--rv-space-6);
  background: var(--rv-color-surface-raised);
  border-bottom: 1px solid var(--rv-color-line-default);
  box-shadow: 0 24px 48px -24px var(--rv-color-alpha-black-80);
  max-height: calc(100vh - var(--rv-toc-chrome) - var(--rv-toc-bar-h) - var(--rv-space-8));
  max-height: calc(100dvh - var(--rv-toc-chrome) - var(--rv-toc-bar-h) - var(--rv-space-8));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Comfortable tap targets — this list is meant to be used with a thumb. */
.rv-toc-bar__sheet .rv-toc__link {
  padding-top: 11px;
  padding-bottom: 11px;
  font-size: 14px;
}

.rv-toc-bar__sheet .rv-toc__link--sub {
  font-size: 13px;
  padding-left: var(--rv-space-7);
}

/* Jumping to a section glides, unless the reader asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.rv-article) {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-toc__link,
  .rv-toc__sub,
  .rv-toc-bar__chevron {
    transition: none;
  }
}

/* ---------- Series pager -------------------------------------------
   Where to go next when the post is one episode of several. Two cards,
   previous on the left and next on the right; when only one exists it
   keeps its side, so the direction is legible from the position alone. */
.rv-series {
  margin-top: var(--rv-space-10);
  padding-top: var(--rv-space-6);
  border-top: 1px solid var(--rv-color-line-default);
}

.rv-series__label {
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-color-accent);
  margin: 0 0 var(--rv-space-4);
}

.rv-series__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rv-space-4);
}

.rv-series__link {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  padding: var(--rv-space-3) var(--rv-space-4);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-sm);
  background: var(--rv-color-alpha-white-02);
  text-decoration: none;
  transition:
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-series__link:hover {
  border-color: var(--rv-color-alpha-accent-45);
  background: var(--rv-color-accent-tint);
}

/* The next card sits in the right column whether or not there is a previous
   one to pair with, and is the mirror of the previous card — same markup,
   reversed here so the two can't drift apart in content. */
.rv-series__link--next {
  grid-column: 2;
  flex-direction: row-reverse;
  text-align: right;
}

.rv-series__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 52px;
  border-radius: var(--rv-radius-xs);
  overflow: hidden;
  background: var(--rv-color-surface-raised);
}

.rv-series__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-series__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* The arrow rides with the direction label rather than taking a column of
   its own — at this card width every 30px belongs to the title. */
.rv-series__dir {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--rv-font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-color-text-tertiary);
}

.rv-series__link--next .rv-series__dir {
  flex-direction: row-reverse;
}

.rv-series__dir svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    transform var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

.rv-series__link:hover .rv-series__dir {
  color: var(--rv-color-accent);
}
.rv-series__link--prev:hover .rv-series__dir svg {
  transform: translateX(-3px);
}
.rv-series__link--next:hover .rv-series__dir svg {
  transform: translateX(3px);
}

/* Two lines is the most a card this size can hold without pushing the meta
   line out of the box. */
.rv-series__title {
  font-family: var(--rv-font-family-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--rv-color-text-primary);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.rv-series__meta {
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--rv-color-text-tertiary);
}

.rv-series__meta .sep {
  opacity: 0.4;
  margin: 0 4px;
}

@media (max-width: 600px) {
  .rv-series__pair {
    grid-template-columns: 1fr;
  }
  /* Stacked, position no longer carries the direction — so the next card
     stops pretending it is in a right-hand column and lines up with the
     previous one. */
  .rv-series__link--next {
    grid-column: 1;
    flex-direction: row;
    text-align: left;
  }
  .rv-series__link--next .rv-series__dir {
    flex-direction: row;
  }
}

/* ---------- Author mentions ------------------------------------------

/* The pager already put a rule and a lot of air under the article — a
   second full-height gap below it just reads as a hole. */
.rv-series + .rv-article__back {
  margin-top: var(--rv-space-7);
}

@media (prefers-reduced-motion: reduce) {
  .rv-series__link,
  .rv-series__dir svg {
    transition: none;
  }
}

/* ---------- Share row ------------------------------------------------
   Sits at the end of the article, where someone who has actually read it
   decides it is worth passing on. */
.rv-share {
  margin-top: var(--rv-space-9);
  padding-top: var(--rv-space-5);
  border-top: 1px solid var(--rv-color-line-default);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--rv-space-3) var(--rv-space-5);
}

.rv-share__label {
  margin: 0;
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-color-text-tertiary);
}

.rv-share__row {
  display: flex;
  align-items: center;
  gap: var(--rv-space-2);
}

.rv-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-pill);
  background: transparent;
  color: var(--rv-color-text-tertiary);
  cursor: pointer;
  text-decoration: none;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-share__btn:hover,
.rv-share__btn:focus-visible {
  color: var(--rv-color-accent);
  border-color: var(--rv-color-alpha-accent-45);
  background: var(--rv-color-accent-tint);
}

.rv-share__btn svg {
  width: 17px;
  height: 17px;
}

/* A button the script hid (no clipboard API) or has not revealed yet (no
   share sheet) stays hidden: display: inline-flex above would override the
   hidden attribute. */
.rv-share__btn[hidden] {
  display: none;
}

/* Copy link swaps its glyph in place rather than moving anything. */
.rv-share__icon-done {
  display: none;
}
.rv-share__copy.is-copied .rv-share__icon-link {
  display: none;
}
.rv-share__copy.is-copied .rv-share__icon-done {
  display: block;
}

.rv-share__copy.is-copied {
  color: var(--rv-color-accent);
  border-color: var(--rv-color-alpha-accent-45);
}

/* Visible only to a screen reader — the icon change is the visual cue. */
.rv-share__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .rv-share {
    gap: var(--rv-space-3);
  }
  .rv-share__row {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-share__btn {
    transition: none;
  }
}

/* ---------- Image lightbox -------------------------------------------
   Body images are capped at 75vh inside a 700px column, so the photographs
   are shown at a fraction of what they carry. Clicking one opens it here. */
.rv-prose img.is-zoomable {
  cursor: zoom-in;
}

.rv-prose img.is-zoomable:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 4px;
}

.rv-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rv-color-text-primary);
  overflow: hidden;
}

.rv-lightbox::backdrop {
  background: var(--rv-color-alpha-canvas-90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rv-lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rv-space-4);
  padding: var(--rv-space-4) var(--rv-space-5);
  pointer-events: none;
}

.rv-lightbox__bar > * {
  pointer-events: auto;
}

.rv-lightbox__count {
  font-family: var(--rv-font-family-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--rv-color-text-tertiary);
}

.rv-lightbox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-alpha-canvas-70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--rv-color-text-secondary);
  cursor: pointer;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-lightbox__btn:hover,
.rv-lightbox__btn:focus-visible {
  color: var(--rv-color-accent);
  border-color: var(--rv-color-alpha-accent-45);
}

.rv-lightbox__btn svg {
  width: 20px;
  height: 20px;
}

.rv-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.rv-lightbox__nav--prev {
  left: var(--rv-space-5);
}
.rv-lightbox__nav--next {
  right: var(--rv-space-5);
}

/* Only a gallery gets arrows. */
.rv-lightbox:not(.has-siblings) .rv-lightbox__nav {
  display: none;
}

/* The frame is the scroll container: at natural size the picture overflows
   it and is panned by scrolling, which is also what a touch drag does. */
.rv-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--rv-space-4);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: calc(var(--rv-space-8) + var(--rv-space-2)) var(--rv-space-8) var(--rv-space-7);
  overflow: auto;
  overscroll-behavior: contain;
}

.rv-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--rv-radius-sm);
}

.rv-lightbox__figure.can-zoom .rv-lightbox__img {
  cursor: zoom-in;
}

.rv-lightbox__figure.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.rv-lightbox__figure.is-zoomed .rv-lightbox__img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  margin: auto;
}

.rv-lightbox__figure.is-zoomed .rv-lightbox__caption {
  display: none;
}

.rv-lightbox__caption {
  flex-shrink: 0;
  max-width: 68ch;
  font-family: var(--rv-font-family-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--rv-color-text-tertiary);
  text-align: center;
}

@media (max-width: 600px) {
  .rv-lightbox__figure {
    padding: calc(var(--rv-space-8) + var(--rv-space-2)) var(--rv-space-4) var(--rv-space-6);
  }
  .rv-lightbox__nav--prev {
    left: var(--rv-space-3);
  }
  .rv-lightbox__nav--next {
    right: var(--rv-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-lightbox__btn {
    transition: none;
  }
}

.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rv-space-2);
  border: 1px solid transparent;
  border-radius: var(--rv-radius-pill);
  font-family: var(--rv-font-family-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    box-shadow var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.rv-btn--md {
  padding: var(--rv-space-3) var(--rv-space-5);
  font-size: 14px;
}

.rv-btn--lg {
  padding: var(--rv-space-4) var(--rv-space-6);
  font-size: 15px;
}

.rv-btn--full {
  display: flex;
  width: 100%;
}

.rv-btn--primary {
  background: var(--rv-color-accent);
  color: var(--rv-color-on-accent);
}

.rv-btn--primary:hover:not(:disabled) {
  background: var(--rv-color-accent-press);
  box-shadow: var(--rv-shadow-glow-strong);
}

.rv-btn--outline {
  background: transparent;
  border-color: var(--rv-color-line-strong);
  color: var(--rv-color-text-primary);
}

.rv-btn--outline:hover:not(:disabled) {
  background: var(--rv-color-line-subtle);
}

.rv-btn--ghost {
  background: transparent;
  color: var(--rv-color-text-secondary);
}

.rv-btn--ghost:hover:not(:disabled) {
  background: var(--rv-color-line-subtle);
  color: var(--rv-color-text-primary);
}

.rv-btn--danger {
  background: var(--rv-color-status-danger);
  color: var(--rv-color-on-accent);
}

.rv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rv-btn--loading:disabled {
  cursor: progress;
}

.rv-btn__icon {
  display: inline-flex;
}

.rv-btn__spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rv-btn-spin 0.7s linear infinite;
}

@keyframes rv-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-btn {
    transition: none;
  }

  .rv-btn__spinner {
    animation: none;
  }
}

.rv-field {
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-1);
  font-family: var(--rv-font-family-body);
}

.rv-field__label {
  color: var(--rv-color-text-secondary);
  font-size: var(--rv-text-body-sm-font-size);
  font-weight: 700;
}

.rv-field__hint {
  color: var(--rv-color-text-tertiary);
  font-size: var(--rv-text-body-sm-font-size);
}

.rv-field__hint--error {
  color: var(--rv-color-status-danger);
}

.rv-input {
  width: 100%;
  background: var(--rv-color-surface-raised);
  color: var(--rv-color-text-primary);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-sm);
  font-family: inherit;
  transition:
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    box-shadow var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-input::placeholder {
  color: var(--rv-color-text-quaternary);
}

.rv-input:hover:not(:disabled) {
  border-color: var(--rv-color-line-strong);
}

.rv-input:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rv-input--invalid,
.rv-input--invalid:hover:not(:disabled) {
  border-color: var(--rv-color-status-danger);
}

.rv-input--sm {
  padding: var(--rv-space-2) var(--rv-space-3);
  font-size: 13px;
}

.rv-input--md {
  padding: var(--rv-space-3) var(--rv-space-4);
  font-size: 14px;
}

.rv-input--lg {
  padding: var(--rv-space-4) var(--rv-space-5);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .rv-input {
    transition: none;
  }
}

.rv-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--rv-space-1) var(--rv-space-3);
  border-radius: var(--rv-radius-pill);
  font-family: var(--rv-text-label-font-family);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: var(--rv-text-label-letter-spacing);
  line-height: var(--rv-text-label-line-height);
  text-transform: var(--rv-text-label-text-transform);
  white-space: nowrap;
}

.rv-badge--neutral {
  --_tone: var(--rv-color-text-secondary);
}

.rv-badge--accent {
  --_tone: var(--rv-color-accent);
}

.rv-badge--success {
  --_tone: var(--rv-color-status-success);
}

.rv-badge--warning {
  --_tone: var(--rv-color-status-warning);
}

.rv-badge--danger {
  --_tone: var(--rv-color-status-danger);
}

.rv-badge--subtle {
  background: color-mix(in srgb, var(--_tone) 16%, transparent);
  color: var(--_tone);
}

.rv-badge--subtle.rv-badge--accent {
  background: var(--rv-color-accent-tint);
}

.rv-badge--solid {
  background: var(--_tone);
  color: var(--rv-color-on-accent);
}

/* Chips in a wrapping row. */
.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv-space-2);
}

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-1);
  padding: var(--rv-space-2) var(--rv-space-4);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-pill);
  background: transparent;
  color: var(--rv-color-text-secondary);
  font-family: var(--rv-text-nav-font-family);
  font-size: var(--rv-text-nav-font-size);
  font-weight: var(--rv-text-nav-font-weight);
  letter-spacing: var(--rv-text-nav-letter-spacing);
  line-height: var(--rv-text-nav-line-height);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-chip:hover:not(:disabled) {
  border-color: var(--rv-color-line-strong);
  color: var(--rv-color-text-primary);
}

/* A suggestion or an action beside toggles; hover brightens it as any chip. */
.rv-chip--dashed {
  border-style: dashed;
  color: var(--rv-color-text-tertiary);
}

.rv-chip--selected,
.rv-chip--selected:hover:not(:disabled) {
  background: var(--rv-color-accent-tint);
  border-color: var(--rv-color-accent-border);
  color: var(--rv-color-accent);
}

.rv-chip__icon {
  flex: none;
  display: inline-flex;
}

.rv-chip__icon > svg {
  width: var(--rv-space-3);
  height: var(--rv-space-3);
}

.rv-chip:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* The chip whose action is running (`aria-busy`), disabled or not. */
.rv-chip[aria-busy='true'],
.rv-chip[aria-busy='true']:disabled {
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  .rv-chip {
    transition: none;
  }
}

/* The box; the ring is its ::before, so a label inside (rv-visually-hidden) never turns. */
.rv-spinner {
  display: inline-block;
  flex: none;
  position: relative;
  vertical-align: middle;
}

.rv-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid var(--rv-color-line-strong);
  border-top-color: var(--rv-color-accent);
  border-radius: var(--rv-radius-pill);
  animation: rv-spinner-spin calc(var(--rv-motion-duration-base) * 3) linear infinite;
}

.rv-spinner--sm {
  width: var(--rv-space-3);
  height: var(--rv-space-3);
}

.rv-spinner--md {
  width: var(--rv-space-4);
  height: var(--rv-space-4);
}

@keyframes rv-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Still: the ring stays visible, it just doesn't turn. */
@media (prefers-reduced-motion: reduce) {
  .rv-spinner::before {
    animation: none;
  }
}

.rv-switch {
  flex: none;
  position: relative;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-line-strong);
  cursor: pointer;
  transition: background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-switch[aria-checked='true'] {
  background: var(--rv-color-accent);
}

.rv-switch:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rv-switch__knob {
  position: absolute;
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-text-primary);
  transition: transform var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

/* 44 × 24 track, 20px knob inset by 2px. */
.rv-switch--md {
  width: calc(var(--rv-space-6) + var(--rv-space-3));
  height: var(--rv-space-5);
}

.rv-switch--md .rv-switch__knob {
  top: calc(var(--rv-space-1) / 2);
  left: calc(var(--rv-space-1) / 2);
  width: calc(var(--rv-space-5) - var(--rv-space-1));
  height: calc(var(--rv-space-5) - var(--rv-space-1));
}

.rv-switch--md[aria-checked='true'] .rv-switch__knob {
  transform: translateX(calc(var(--rv-space-5) - var(--rv-space-1)));
}

/* A switch in a form, its label and hint beside it. */
.rv-switch-field {
  display: flex;
  align-items: center;
  gap: var(--rv-space-4);
  font-family: var(--rv-font-family-body);
}

.rv-switch-field__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-1);
  min-width: 0;
}

.rv-switch-field__label {
  font-weight: var(--rv-text-label-font-weight);
  cursor: pointer;
}

.rv-switch-field--disabled .rv-switch-field__label {
  cursor: not-allowed;
}

.rv-switch-field__hint {
  color: var(--rv-color-text-tertiary);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

@media (prefers-reduced-motion: reduce) {
  .rv-switch,
  .rv-switch__knob {
    transition: none;
  }
}

/* The control carries the rv-input look (box, sizes, focus, invalid); this adds the arrow. */
.rv-select {
  position: relative;
  display: flex;
}

/* The arrow, drawn as a corner turned down. */
.rv-select::after {
  content: '';
  position: absolute;
  top: 50%;
  box-sizing: border-box;
  width: calc(var(--rv-space-1) * 1.5);
  height: calc(var(--rv-space-1) * 1.5);
  border-right: 2px solid var(--rv-color-text-tertiary);
  border-bottom: 2px solid var(--rv-color-text-tertiary);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

.rv-select:has(> .rv-select__control:disabled)::after {
  opacity: 0.5;
}

.rv-select .rv-select__control {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
}

.rv-select .rv-select__control:disabled {
  cursor: not-allowed;
}

/* The arrow sits in the size's inline padding; the text stops before it. */
.rv-select--sm::after {
  right: var(--rv-space-3);
}

.rv-select--sm .rv-select__control {
  padding-right: calc(var(--rv-space-3) + var(--rv-space-5));
}

.rv-select--md::after {
  right: var(--rv-space-4);
}

.rv-select--md .rv-select__control {
  padding-right: calc(var(--rv-space-4) + var(--rv-space-5));
}

.rv-select--lg::after {
  right: var(--rv-space-5);
}

.rv-select--lg .rv-select__control {
  padding-right: calc(var(--rv-space-5) + var(--rv-space-5));
}

/* A password input with its Show/Hide toggle (a ghost sm rv-btn) beside it. */
.rv-password {
  display: flex;
  align-items: center;
  gap: var(--rv-space-2);
}

.rv-password > .rv-input {
  flex: 1;
  min-width: 0;
}

/* Edge (and WebView2) adds its own reveal button to a password field: the toggle is the only one. */
.rv-password > .rv-input::-ms-reveal {
  display: none;
}

.rv-password__toggle {
  flex: none;
}

/* While the password shows. The second selector outranks .rv-btn--ghost:hover:not(:disabled),
   so hovering keeps the tint. */
.rv-password__toggle--on,
.rv-password__toggle--on.rv-btn--ghost:hover:not(:disabled) {
  border-color: var(--rv-color-accent-border);
  background: var(--rv-color-accent-tint);
}

.rv-icon-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-radius: var(--rv-radius-pill);
  cursor: pointer;
  transition:
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    box-shadow var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-icon-btn__icon {
  display: inline-flex;
}

/* sm is the desktop's toolbar button, md its accent action button. */
.rv-icon-btn--sm {
  width: var(--rv-space-6);
  height: var(--rv-space-6);
}

.rv-icon-btn--md {
  width: calc(var(--rv-space-5) + var(--rv-space-3));
  height: calc(var(--rv-space-5) + var(--rv-space-3));
}

.rv-icon-btn--ghost {
  background: transparent;
  color: var(--rv-color-text-secondary);
}

.rv-icon-btn--ghost:hover:not(:disabled),
.rv-icon-btn--ghost[aria-expanded='true'] {
  background: var(--rv-color-line-subtle);
  color: var(--rv-color-text-primary);
}

.rv-icon-btn--accent {
  background: var(--rv-color-accent);
  color: var(--rv-color-on-accent);
}

.rv-icon-btn--accent:hover:not(:disabled) {
  box-shadow: var(--rv-shadow-glow);
}

.rv-icon-btn--accent:active:not(:disabled) {
  background: var(--rv-color-accent-press);
}

.rv-icon-btn:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .rv-icon-btn {
    transition: none;
  }
}

/* Too wide for its container, the track scrolls sideways (the browser scrolls a focused
   option into view) rather than overflowing. */
.rv-segmented {
  display: inline-flex;
  align-self: flex-start;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-pill);
  font-family: var(--rv-font-family-body);
}

.rv-segmented__option {
  flex: none;
  border: 0;
  border-radius: var(--rv-radius-pill);
  background: transparent;
  color: var(--rv-color-text-secondary);
  font-family: inherit;
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-segmented__option[aria-checked='true'] {
  background: var(--rv-color-accent-tint);
  color: var(--rv-color-accent);
}

/* Inset, so the scrolling track never clips the ring. */
.rv-segmented__option:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: -2px;
}

.rv-segmented__option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rv-segmented--sm {
  gap: calc(var(--rv-space-1) / 2);
  padding: calc(var(--rv-space-1) / 2);
}

.rv-segmented--sm .rv-segmented__option {
  padding: calc(var(--rv-space-1) / 2) var(--rv-space-2);
}

.rv-segmented--md {
  gap: var(--rv-space-1);
  padding: var(--rv-space-1);
}

.rv-segmented--md .rv-segmented__option {
  padding: var(--rv-space-1) var(--rv-space-3);
}

@media (prefers-reduced-motion: reduce) {
  .rv-segmented__option {
    transition: none;
  }
}

/* A modal <dialog>. Its body fills it, so a click on the dialog itself is on the backdrop. */
.rv-dialog {
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-md);
  background: var(--rv-color-surface-overlay);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-body);
  box-shadow: var(--rv-shadow-dialog);
}

/* Widths: 512px, or 640px (the desktop's send dialog), short of a narrow window's edges. */
.rv-dialog--md {
  width: min(calc(var(--rv-space-10) * 4), calc(100vw - var(--rv-space-6)));
}

.rv-dialog--lg {
  width: min(calc(var(--rv-space-10) * 5), calc(100vw - var(--rv-space-6)));
}

/* showModal() focuses the dialog itself when nothing in it can take focus (e.g. a busy
   ConfirmDialog): the container needs no ring. */
.rv-dialog:focus-visible {
  outline: none;
}

.rv-dialog::backdrop {
  background: var(--rv-color-surface-sunken);
  opacity: 0.7;
}

.rv-dialog__body {
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-4);
  padding: var(--rv-space-5);
}

/* Over the title, closer to it than the body's gap. */
.rv-dialog__kicker {
  margin: 0 0 calc(-1 * var(--rv-space-3));
  color: var(--rv-color-accent);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  line-height: var(--rv-text-label-line-height);
  letter-spacing: var(--rv-text-label-letter-spacing);
}

.rv-dialog__title {
  margin: 0;
  font-family: var(--rv-text-display-m-font-family);
  font-size: var(--rv-text-display-m-font-size);
  font-weight: var(--rv-text-display-m-font-weight);
  line-height: var(--rv-text-display-m-line-height);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

/* Body copy in a dialog. */
.rv-dialog__text {
  margin: 0;
  color: var(--rv-color-text-secondary);
}

.rv-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--rv-space-3);
}

.rv-status-dot {
  flex: none;
  display: inline-block;
  width: var(--rv-space-2);
  height: var(--rv-space-2);
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-line-strong);
}

.rv-status-dot--neutral {
  background: var(--rv-color-line-strong);
}

.rv-status-dot--accent {
  background: var(--rv-color-accent);
}

.rv-status-dot--success {
  background: var(--rv-color-status-success);
}

.rv-status-dot--warning {
  background: var(--rv-color-status-warning);
}

.rv-status-dot--danger {
  background: var(--rv-color-status-danger);
}

/* A state in progress, as a frame connecting. */
.rv-status-dot--pulse {
  animation: rv-status-dot-pulse calc(var(--rv-motion-duration-base) * 4)
    var(--rv-motion-easing-out) infinite alternate;
}

@keyframes rv-status-dot-pulse {
  to {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-status-dot--pulse {
    animation: none;
  }
}

/* A notice: the tone shows in its dot (an rv-status-dot), the surface stays the same. */
.rv-banner {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  padding: var(--rv-space-3) var(--rv-space-4);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-sm);
  background: var(--rv-color-surface-overlay);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

/* The announced part: the dot and the text. The action sits outside it. */
.rv-banner__message {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  min-width: 0;
}

.rv-banner__text {
  flex: 1;
  min-width: 0;
}

.rv-banner__action {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--rv-space-2);
}

/* Nothing here yet: a dashed outline where the content would be. */
.rv-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rv-space-3);
  padding: var(--rv-space-6);
  border: 1px dashed var(--rv-color-line-default);
  border-radius: var(--rv-radius-card);
  font-family: var(--rv-font-family-body);
}

.rv-empty__title {
  margin: 0;
  font-family: var(--rv-text-display-m-font-family);
  font-size: var(--rv-text-display-m-font-size);
  font-weight: var(--rv-text-display-m-font-weight);
  line-height: var(--rv-text-display-m-line-height);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

.rv-empty__text {
  margin: 0;
  color: var(--rv-color-text-secondary);
}

.rv-empty__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rv-space-3);
}

/*
 * A progress bar. Its input is --rv-progress-value, a percentage set on .rv-progress
 * (the React layer sets it from `value`); without a value the bar is indeterminate.
 */
.rv-progress {
  --rv-progress-value: 0%;
  display: block;
  width: 100%;
  height: var(--rv-space-2);
  overflow: hidden;
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-line-subtle);
}

/* Never narrower than it is tall: at 0% a dot still shows the bar has started. */
.rv-progress__fill {
  display: block;
  width: max(var(--rv-space-2), var(--rv-progress-value));
  height: 100%;
  border-radius: var(--rv-radius-pill);
  transition:
    width var(--rv-motion-duration-base) var(--rv-motion-easing-out),
    background-color var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

/* The fill's colour by tone. */
.rv-progress--accent .rv-progress__fill {
  background: var(--rv-color-accent);
}

/* A run that failed, as a send the frame refused. */
.rv-progress--danger .rv-progress__fill {
  background: var(--rv-color-status-danger);
}

/* No value: a stretch of fill sweeps across. */
.rv-progress--indeterminate .rv-progress__fill {
  width: 40%;
  transition: none;
  animation: rv-progress-sweep calc(var(--rv-motion-duration-base) * 6) var(--rv-motion-easing-out)
    infinite;
}

@keyframes rv-progress-sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

/* Still: the width snaps, and an indeterminate bar is a dimmed full track. */
@media (prefers-reduced-motion: reduce) {
  .rv-progress__fill {
    transition: none;
  }

  .rv-progress--indeterminate .rv-progress__fill {
    width: 100%;
    opacity: 0.5;
    animation: none;
  }
}

/* The steps of a process, each with a round mark: a spinner when current, a check when done. */
.rv-stepper {
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--rv-font-family-body);
}

.rv-stepper__step {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  color: var(--rv-color-text-tertiary);
}

.rv-stepper__mark {
  flex: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--rv-space-5);
  height: var(--rv-space-5);
  border: 1px solid var(--rv-color-line-strong);
  border-radius: var(--rv-radius-pill);
}

.rv-stepper__step--current {
  color: var(--rv-color-text-primary);
}

.rv-stepper__step--current .rv-stepper__mark {
  border-color: var(--rv-color-accent-border);
}

.rv-stepper__step--done {
  color: var(--rv-color-text-secondary);
}

.rv-stepper__step--done .rv-stepper__mark {
  border-color: var(--rv-color-accent);
  background: var(--rv-color-accent);
  color: var(--rv-color-on-accent);
}

/* The check, drawn as a corner turned on its side. */
.rv-stepper__step--done .rv-stepper__mark::after {
  content: '';
  box-sizing: border-box;
  width: calc(var(--rv-space-1) * 1.5);
  height: var(--rv-space-3);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.rv-stepper__step--failed {
  color: var(--rv-color-status-danger);
}

.rv-stepper__step--failed .rv-stepper__mark {
  border-color: var(--rv-color-status-danger);
}

/* A row of tabs over a hairline; the selected tab's accent underline sits on it. The line is
   an inset shadow, not a border, so the row can scroll sideways in a narrow container without
   clipping the underline. */
.rv-tabs {
  display: flex;
  gap: var(--rv-space-1);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  box-shadow: inset 0 -1px 0 var(--rv-color-line-default);
  font-family: var(--rv-font-family-body);
}

.rv-tabs__tab {
  flex: none;
  padding: var(--rv-space-2) var(--rv-space-3);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--rv-color-text-tertiary);
  font-family: inherit;
  font-size: var(--rv-text-nav-font-size);
  font-weight: var(--rv-text-nav-font-weight);
  line-height: var(--rv-text-nav-line-height);
  letter-spacing: var(--rv-text-nav-letter-spacing);
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-tabs__tab:hover:not(:disabled) {
  color: var(--rv-color-text-primary);
}

.rv-tabs__tab[aria-selected='true'] {
  border-bottom-color: var(--rv-color-accent);
  color: var(--rv-color-accent);
}

/* Inset, so the scrolling row never clips the ring. */
.rv-tabs__tab:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: -2px;
}

.rv-tabs__tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* No display here: the `hidden` attribute hides the panels of the tabs not selected. */
.rv-tabs__panel {
  min-width: 0;
}

.rv-tabs__panel:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rv-tabs__tab {
    transition: none;
  }
}

/* A menu button and the menu it opens under it, on the overlay surface. */
.rv-menu {
  position: relative;
  flex: none;
  display: inline-flex;
}

.rv-menu__list {
  position: absolute;
  top: calc(100% + var(--rv-space-1));
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: calc(var(--rv-space-10) + var(--rv-space-8));
  padding: var(--rv-space-1);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-sm);
  background: var(--rv-color-surface-overlay);
  font-family: var(--rv-font-family-body);
  box-shadow: var(--rv-shadow-dialog);
  animation: rv-menu-in var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-menu__list--end {
  right: 0;
}

.rv-menu__list--start {
  left: 0;
}

.rv-menu__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rv-space-1);
  padding: var(--rv-space-2) var(--rv-space-3);
  border: 0;
  border-radius: var(--rv-radius-xs);
  background: none;
  color: var(--rv-color-text-primary);
  font-family: inherit;
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.rv-menu__item:hover,
.rv-menu__item:focus {
  background: var(--rv-color-line-subtle);
  outline: none;
}

.rv-menu__item:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: -2px;
}

.rv-menu__item--danger {
  color: var(--rv-color-status-danger);
}

/* Disabled items stay focusable (`aria-disabled`), dimmed. */
.rv-menu__item[aria-disabled='true'] {
  color: var(--rv-color-text-quaternary);
  cursor: not-allowed;
}

/* A line under the label, wrapping at the menu's width. */
.rv-menu__note {
  max-width: calc(var(--rv-space-10) + var(--rv-space-8));
  color: var(--rv-color-text-tertiary);
  white-space: normal;
}

@keyframes rv-menu-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-menu__list {
    animation: none;
  }
}

/* One setting on a raised panel: its text, a control at the end, and a full-width body under
   them. The control wraps under the text when the row is narrow. */
.rv-setting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rv-space-4);
  box-sizing: border-box;
  padding: var(--rv-space-4);
  border: 1px solid var(--rv-color-line-subtle);
  border-radius: var(--rv-radius-md);
  background: var(--rv-color-surface-raised);
  font-family: var(--rv-font-family-body);
  list-style: none;
}

.rv-setting__text {
  flex: 1 1 calc(var(--rv-space-10) + var(--rv-space-6));
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-1);
  min-width: 0;
}

.rv-setting__title {
  font-weight: var(--rv-text-label-font-weight);
}

.rv-setting__status {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
  color: var(--rv-color-text-secondary);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

.rv-setting__hint {
  color: var(--rv-color-text-tertiary);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

.rv-setting__control {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rv-space-2);
}

.rv-setting__body {
  flex: 1 1 100%;
  min-width: 0;
}

/* A list of rows on a raised panel (the desktop's `card list`), a hairline between rows. A row
   that is a button (Wi-Fi networks, frames found, playlists) fills its item; selected, it takes
   the accent border and tint, and its check mark. */
.rv-list {
  box-sizing: border-box;
  margin: 0;
  padding: var(--rv-space-2);
  border: 1px solid var(--rv-color-line-subtle);
  border-radius: var(--rv-radius-card);
  background: var(--rv-color-surface-raised);
  box-shadow: var(--rv-shadow-card);
  font-family: var(--rv-font-family-body);
  list-style: none;
}

.rv-list__item {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  padding: var(--rv-space-3) var(--rv-space-4);
}

.rv-list__item + .rv-list__item {
  border-top: 1px solid var(--rv-color-line-subtle);
}

.rv-list__item--interactive {
  padding: 0;
}

.rv-list__row {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  box-sizing: border-box;
  width: 100%;
  padding: var(--rv-space-3) var(--rv-space-4);
  border: 1px solid transparent;
  border-radius: var(--rv-radius-sm);
  background: none;
  color: var(--rv-color-text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-list__row:hover:not(:disabled) {
  background: var(--rv-color-line-subtle);
}

.rv-list__row--selected,
.rv-list__row--selected:hover:not(:disabled) {
  border-color: var(--rv-color-accent-border);
  background: var(--rv-color-accent-tint);
}

/* Inset, inside the panel's padding. */
.rv-list__row:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: -2px;
}

.rv-list__row:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rv-list__leading,
.rv-list__trailing {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
}

.rv-list__trailing {
  color: var(--rv-color-text-tertiary);
}

.rv-list__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rv-list__meta {
  flex: none;
  color: var(--rv-color-text-tertiary);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

/* The check mark's slot, at the end of a selectable row; drawn when selected. */
.rv-list__check {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--rv-space-4);
  height: var(--rv-space-4);
  color: var(--rv-color-accent);
}

.rv-list__row--selected .rv-list__check::after {
  content: '';
  box-sizing: border-box;
  width: calc(var(--rv-space-1) * 1.5);
  height: var(--rv-space-3);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .rv-list__row {
    transition: none;
  }
}

/* Labelled values in two columns: the labels dimmed, the values selectable. */
.rv-dl {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--rv-space-2) var(--rv-space-4);
  margin: 0;
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

.rv-dl__label {
  color: var(--rv-color-text-tertiary);
}

.rv-dl__value {
  margin: 0;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}

.rv-dl__value--mono {
  font-family: var(--rv-font-family-mono);
}

.rv-dl__hint {
  display: block;
  color: var(--rv-color-text-tertiary);
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

/* The top of a page: a back button over a line holding the kicker and title, and the actions
   at its end. */
.rv-page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rv-space-5);
  margin-bottom: var(--rv-space-5);
  font-family: var(--rv-font-family-body);
}

/* An unboxed button, as the desktop's: dim text that brightens on hover. */
.rv-page-head__back {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
  padding: 0;
  border: 0;
  background: none;
  color: var(--rv-color-text-tertiary);
  font-family: inherit;
  font-size: var(--rv-text-nav-font-size);
  font-weight: var(--rv-text-nav-font-weight);
  line-height: var(--rv-text-nav-line-height);
  letter-spacing: var(--rv-text-nav-letter-spacing);
  cursor: pointer;
  transition: color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-page-head__back:hover {
  color: var(--rv-color-text-primary);
}

.rv-page-head__back:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

/* A chevron pointing back, drawn as a corner turned on its side. */
.rv-page-head__chevron {
  flex: none;
  box-sizing: border-box;
  width: var(--rv-space-2);
  height: var(--rv-space-2);
  margin-left: calc(var(--rv-space-1) / 2);
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.rv-page-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rv-space-4);
  align-self: stretch;
}

.rv-page-head__titles {
  min-width: 0;
}

.rv-page-head__kicker {
  margin: 0 0 var(--rv-space-2);
  color: var(--rv-color-accent);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  line-height: var(--rv-text-label-line-height);
  letter-spacing: var(--rv-text-label-letter-spacing);
  text-transform: var(--rv-text-label-text-transform);
}

.rv-page-head__title {
  margin: 0;
  font-family: var(--rv-text-title-font-family);
  font-size: var(--rv-text-title-font-size);
  font-weight: var(--rv-text-title-strong-font-weight);
  line-height: var(--rv-text-title-line-height);
  letter-spacing: var(--rv-text-title-letter-spacing);
}

.rv-page-head__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--rv-space-2);
}

@media (prefers-reduced-motion: reduce) {
  .rv-page-head__back {
    transition: none;
  }
}

/* A person's round: their picture, or their initials on the accent. */
.rv-avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-accent);
  color: var(--rv-color-on-accent);
  font-family: var(--rv-font-family-body);
  font-weight: var(--rv-text-label-font-weight);
  line-height: 1;
}

.rv-avatar--sm {
  width: var(--rv-space-5);
  height: var(--rv-space-5);
  font-size: var(--rv-text-label-font-size);
}

.rv-avatar--md {
  width: var(--rv-space-6);
  height: var(--rv-space-6);
  font-size: var(--rv-text-body-sm-font-size);
}

.rv-avatar--lg {
  width: var(--rv-space-7);
  height: var(--rv-space-7);
  font-size: var(--rv-text-body-font-size);
}

/* No name: a `?` on a neutral round. */
.rv-avatar--empty {
  background: var(--rv-color-line-strong);
  color: var(--rv-color-text-primary);
}

.rv-avatar__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The app's sidebar: the brand, the navigation, then the account and links at the bottom. */
.rv-sidebar {
  flex: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: var(--rv-layout-sidebar);
  /* A short window or 200% zoom: scroll rather than cut the account and links off. */
  overflow-y: auto;
  padding: var(--rv-space-5) var(--rv-space-4);
  background: var(--rv-color-surface-sunken);
  border-right: 1px solid var(--rv-color-line-subtle);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-body);
}

.rv-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--rv-space-2);
  padding: var(--rv-space-1) var(--rv-space-3) var(--rv-space-5);
  font-family: var(--rv-font-family-display);
  font-size: var(--rv-text-display-m-font-size);
  font-weight: var(--rv-text-title-strong-font-weight);
  line-height: var(--rv-text-display-m-line-height);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

.rv-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-1);
}

/* An entry: dim text that brightens on hover; the current page on the accent tint. */
.rv-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  box-sizing: border-box;
  width: 100%;
  padding: var(--rv-space-2) var(--rv-space-3);
  border: 0;
  border-radius: var(--rv-radius-sm);
  background: none;
  color: var(--rv-color-text-secondary);
  font-family: inherit;
  font-size: var(--rv-text-nav-font-size);
  font-weight: var(--rv-text-nav-font-weight);
  line-height: var(--rv-text-nav-line-height);
  letter-spacing: var(--rv-text-nav-letter-spacing);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out),
    color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-sidebar__item:hover {
  background: var(--rv-color-line-subtle);
  color: var(--rv-color-text-primary);
}

.rv-sidebar__item--active,
.rv-sidebar__item--active:hover {
  background: var(--rv-color-accent-tint);
  color: var(--rv-color-accent);
}

.rv-sidebar__icon {
  flex: none;
  display: inline-flex;
}

.rv-sidebar__icon > svg {
  width: var(--rv-space-4);
  height: var(--rv-space-4);
}

.rv-sidebar__spacer {
  flex: 1;
}

/* The account: one raised button with the avatar, the name and a dim detail line. */
.rv-sidebar__account {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  box-sizing: border-box;
  width: 100%;
  margin-bottom: var(--rv-space-3);
  padding: var(--rv-space-3);
  border: 1px solid var(--rv-color-line-default);
  border-radius: var(--rv-radius-md);
  background: var(--rv-color-surface-overlay);
  color: var(--rv-color-text-primary);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-sidebar__account:hover {
  border-color: var(--rv-color-line-strong);
}

.rv-sidebar__account-avatar {
  flex: none;
  display: inline-flex;
}

.rv-sidebar__account-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rv-sidebar__account-name,
.rv-sidebar__account-detail {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

.rv-sidebar__account-name {
  font-weight: var(--rv-text-label-font-weight);
}

.rv-sidebar__account-detail {
  color: var(--rv-color-text-tertiary);
}

/* Secondary links and a legal line, over a rule. */
.rv-sidebar__links {
  display: flex;
  flex-direction: column;
  padding-top: var(--rv-space-3);
  border-top: 1px solid var(--rv-color-line-subtle);
}

.rv-sidebar__link {
  padding: var(--rv-space-1) var(--rv-space-3);
  border: 0;
  border-radius: var(--rv-radius-xs);
  background: none;
  color: var(--rv-color-text-tertiary);
  font-family: inherit;
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-sidebar__link:hover {
  color: var(--rv-color-text-primary);
}

.rv-sidebar__legal {
  padding: var(--rv-space-3) var(--rv-space-3) 0;
  color: var(--rv-color-text-tertiary);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

.rv-sidebar__item:focus-visible,
.rv-sidebar__account:focus-visible,
.rv-sidebar__link:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .rv-sidebar__item,
  .rv-sidebar__account,
  .rv-sidebar__link {
    transition: none;
  }
}

/* The app's frame: the sidebar beside a column of the banners over main, the only part that
   scrolls. It fills its container (give html, body and the root a height) and, as a safety net
   when they have none, is never taller than the viewport. */
.rv-app {
  display: flex;
  height: 100%;
  max-height: 100dvh;
}

.rv-app__column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Notices about the app as a whole, above the scroll region. */
.rv-app__banners {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-2);
  padding: var(--rv-space-4) var(--rv-space-6) 0;
}

.rv-app__banners:empty {
  display: none;
}

.rv-app__scroll {
  flex: 1;
  overflow-y: auto;
}

/* Inside its edges: the region fills the column, where an outside ring would be cut off. */
.rv-app__scroll:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: -2px;
}

/* The page, in a centred column. */
.rv-app__content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--rv-layout-content);
  margin-inline: auto;
  padding: var(--rv-space-7) var(--rv-space-6) var(--rv-space-8);
}

.rv-app__content--narrow {
  max-width: var(--rv-layout-content-narrow);
}

.rv-card {
  overflow: hidden;
  background: var(--rv-color-surface-raised);
  border-radius: var(--rv-radius-card);
  box-shadow: var(--rv-shadow-card);
}

.rv-card__media > img,
.rv-card__media > video {
  display: block;
  width: 100%;
  height: auto;
}

.rv-card__body {
  padding: var(--rv-space-5);
}

/*
 * A frame, true to scale: an SVG drawn in millimetres that fills the width at the drawing's
 * aspect ratio (set inline on .rv-frame-preview__body by the React layer). Only the width sizes
 * it: the body holds the drawing and the overlay in one box whatever the root's height, and the
 * root takes the body's height. Inputs: --rv-frame-preview-rotation on
 * .rv-frame-preview (degrees, from `rotation`), and --rv-frame-preview-snap-x and -y on the
 * accessory group (the unit's scale in the drawing, which the accessory grows from).
 *
 * The flash, LED and part-ring animations are not here: scripts/build-css.mjs generates them from
 * src/frame/flash.ts and appends them after this file, so their numbers live in one place.
 */
.rv-frame-preview {
  --rv-frame-preview-rotation: 0deg;
  position: relative;
  isolation: isolate;
  align-self: start;
  width: 100%;
}

/* The whole frame turns: drawing, picture and overlay, in one box sized by the width. */
.rv-frame-preview__body {
  position: relative;
  width: 100%;
  height: auto;
  transform: rotate(var(--rv-frame-preview-rotation));
  transition:
    transform var(--rv-motion-duration-base) var(--rv-motion-easing-out),
    aspect-ratio var(--rv-motion-duration-base) var(--rv-motion-easing-out);
}

/* The wall shadow and the LED's halo spread past the frame's edge. */
.rv-frame-preview__drawing {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Laid exactly on the visible screen (inset inline, in percentages of the drawing). */
.rv-frame-preview__overlay {
  position: absolute;
}

.rv-frame-preview__led-dot {
  fill: var(--rv-color-accent);
}

/* The accent halo behind the frame, as the desktop's send wall and mobile's send overlay. */
.rv-frame-preview--glow::before {
  content: '';
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: var(--rv-radius-pill);
  background: radial-gradient(
    closest-side,
    var(--rv-color-accent-border),
    var(--rv-color-accent-tint) 55%,
    transparent
  );
  pointer-events: none;
}

/*
 * The accessory (its shadow, then its moulding and mat, over the unit) snaps on: it grows from the
 * unit's outline as it appears. Its timing is generated, with the flash's.
 */
.rv-frame-preview__accessory {
  --rv-frame-preview-snap-x: 1;
  --rv-frame-preview-snap-y: 1;
  transform-box: view-box;
  transform-origin: 50% 50%;
}

@keyframes rv-frame-preview-snap {
  from {
    opacity: 0;
    transform: scale(var(--rv-frame-preview-snap-x), var(--rv-frame-preview-snap-y));
  }
}

/* The flash comes in quickly; at the end it fades out (its timing is generated) and goes. */
@keyframes rv-frame-preview-fade-in {
  from {
    opacity: 0;
  }
}

.rv-frame-preview__flash--out {
  opacity: 0;
}

/*
 * Highlighted parts (`highlight`): the frame dims around them (a mask, inline), and each zone has
 * an accent outline, tinted inside, and a ring sweeping out from it (its timing is generated). Their
 * strokes are in px (non-scaling, from PART_STROKE_PX, inline). A part under the mat is x-rayed:
 * dashed, over the mat. The LED's zone is an outline, so a lit or blinking LED shows through it;
 * solid when the LED itself isn't drawn.
 */
.rv-frame-preview__zone {
  fill: var(--rv-color-accent-tint);
  stroke: var(--rv-color-accent);
}

.rv-frame-preview__zone--led {
  fill: none;
}

.rv-frame-preview__zone--solid {
  fill: var(--rv-color-accent);
}

.rv-frame-preview__pulse {
  --rv-frame-preview-pulse-from: 0;
  stroke: var(--rv-color-accent);
  transform-box: fill-box;
  transform-origin: center;
}

/*
 * The callouts, real text, upright whatever the rotation: a box over the frame (inset inline by
 * `calloutRoom`'s padding), and in it a layer the size of the frame turned to the nearest quarter
 * (inline), centred. They fade out while the frame turns and come back on its new sides.
 */
.rv-frame-preview__callouts {
  position: absolute;
  pointer-events: none;
}

.rv-frame-preview__callout-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  container-type: inline-size;
  transform: translate(-50%, -50%);
  transition: opacity var(--rv-motion-duration-fast) var(--rv-motion-easing-out);
}

.rv-frame-preview__callout-layer--turning {
  opacity: 0;
}

/*
 * A callout: a leader from the zone's edge to past the frame's edge on the side nearest the part,
 * then its label, in px (it doesn't scale with the drawing). Inputs, inline, in percentages of
 * the layer: the anchor (--rv-frame-preview-callout-x and -y), the frame's edge on that side
 * (--rv-frame-preview-callout-edge), the zone's size (--rv-frame-preview-callout-zone, of the
 * width); and the callout's place among those on its side (--rv-frame-preview-callout-stack, 0
 * nearest the frame). Its px (reach, gap, nudge, line, dot) are generated from CALLOUT_PX.
 */
.rv-frame-preview__callout {
  --rv-frame-preview-callout-x: 50%;
  --rv-frame-preview-callout-y: 50%;
  --rv-frame-preview-callout-edge: 100%;
  --rv-frame-preview-callout-zone: 10;
  --rv-frame-preview-callout-stack: 0;
  /* Defaults from the tokens; the generated rule below sets CALLOUT_PX's. */
  --rv-frame-preview-callout-reach: var(--rv-space-5);
  --rv-frame-preview-callout-gap: var(--rv-space-2);
  --rv-frame-preview-callout-nudge: var(--rv-space-1);
  --rv-frame-preview-callout-line: calc(
    var(--rv-text-body-sm-font-size) * var(--rv-text-body-sm-line-height)
  );
  --rv-frame-preview-callout-dot: var(--rv-space-2);
  position: absolute;
}

/* The leader. */
.rv-frame-preview__callout::before {
  content: '';
  position: absolute;
  background: var(--rv-color-accent);
}

/* A dot where it meets the zone, smaller on a small zone; the LED is its own dot. */
.rv-frame-preview__callout::after {
  content: '';
  position: absolute;
  width: min(
    var(--rv-frame-preview-callout-dot),
    calc(var(--rv-frame-preview-callout-zone) * 0.4cqw)
  );
  aspect-ratio: 1;
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-accent);
  transform: translate(-50%, -50%);
}

.rv-frame-preview__callout[data-part='led']::after {
  content: none;
}

.rv-frame-preview__callout-label {
  position: absolute;
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-sm-font-size);
  font-weight: var(--rv-text-nav-font-weight);
  line-height: var(--rv-frame-preview-callout-line);
  white-space: nowrap;
  color: var(--rv-color-text-primary);
}

.rv-frame-preview__callout--top,
.rv-frame-preview__callout--bottom {
  left: var(--rv-frame-preview-callout-x);
  width: 0;
}

.rv-frame-preview__callout--top::before,
.rv-frame-preview__callout--bottom::before {
  inset-block: 0;
  left: -0.5px;
  width: 1px;
}

.rv-frame-preview__callout--top .rv-frame-preview__callout-label,
.rv-frame-preview__callout--bottom .rv-frame-preview__callout-label {
  left: 0;
  transform: translateX(-50%);
}

.rv-frame-preview__callout--bottom {
  top: var(--rv-frame-preview-callout-y);
  height: calc(
    var(--rv-frame-preview-callout-edge) - var(--rv-frame-preview-callout-y) +
      var(--rv-frame-preview-callout-reach)
  );
}

.rv-frame-preview__callout--bottom::after {
  top: 0;
  left: 0;
}

.rv-frame-preview__callout--bottom .rv-frame-preview__callout-label {
  top: calc(
    100% + var(--rv-frame-preview-callout-nudge) + var(--rv-frame-preview-callout-stack) *
      var(--rv-frame-preview-callout-line)
  );
}

.rv-frame-preview__callout--top {
  bottom: calc(100% - var(--rv-frame-preview-callout-y));
  height: calc(
    var(--rv-frame-preview-callout-y) - var(--rv-frame-preview-callout-edge) +
      var(--rv-frame-preview-callout-reach)
  );
}

.rv-frame-preview__callout--top::after {
  top: 100%;
  left: 0;
}

.rv-frame-preview__callout--top .rv-frame-preview__callout-label {
  bottom: calc(
    100% + var(--rv-frame-preview-callout-nudge) + var(--rv-frame-preview-callout-stack) *
      var(--rv-frame-preview-callout-line)
  );
}

.rv-frame-preview__callout--left,
.rv-frame-preview__callout--right {
  top: var(--rv-frame-preview-callout-y);
  height: 0;
}

.rv-frame-preview__callout--left::before,
.rv-frame-preview__callout--right::before {
  inset-inline: 0;
  top: -0.5px;
  height: 1px;
}

.rv-frame-preview__callout--left .rv-frame-preview__callout-label,
.rv-frame-preview__callout--right .rv-frame-preview__callout-label {
  top: calc(var(--rv-frame-preview-callout-stack) * var(--rv-frame-preview-callout-line));
  transform: translateY(-50%);
}

.rv-frame-preview__callout--right {
  left: var(--rv-frame-preview-callout-x);
  width: calc(
    var(--rv-frame-preview-callout-edge) - var(--rv-frame-preview-callout-x) +
      var(--rv-frame-preview-callout-reach)
  );
}

.rv-frame-preview__callout--right::after {
  top: 0;
  left: 0;
}

.rv-frame-preview__callout--right .rv-frame-preview__callout-label {
  left: 100%;
  padding-left: var(--rv-frame-preview-callout-gap);
}

.rv-frame-preview__callout--left {
  right: calc(100% - var(--rv-frame-preview-callout-x));
  width: calc(
    var(--rv-frame-preview-callout-x) - var(--rv-frame-preview-callout-edge) +
      var(--rv-frame-preview-callout-reach)
  );
}

.rv-frame-preview__callout--left::after {
  top: 0;
  left: 100%;
}

.rv-frame-preview__callout--left .rv-frame-preview__callout-label {
  right: 100%;
  padding-right: var(--rv-frame-preview-callout-gap);
  text-align: right;
}

/*
 * Still: the frame jumps to its rotation and size, the accessory is simply there, and the
 * callouts stay as the frame jumps.
 */
@media (prefers-reduced-motion: reduce) {
  .rv-frame-preview__body {
    transition: none;
  }

  .rv-frame-preview__callout-layer {
    transition: none;
  }

  .rv-frame-preview__callout-layer--turning {
    opacity: 1;
  }
}

/* Generated from src/frame/flash.ts by scripts/build-css.mjs. */

@keyframes rv-frame-preview-flash-ink {
  0% {
    fill: var(--rv-color-product-flash-black);
  }
  17% {
    fill: var(--rv-color-product-flash-white);
  }
  33% {
    fill: var(--rv-color-product-flash-red);
  }
  50% {
    fill: var(--rv-color-product-flash-yellow);
  }
  67% {
    fill: var(--rv-color-product-flash-blue);
  }
  83% {
    fill: var(--rv-color-product-flash-green);
  }
  100% {
    fill: var(--rv-color-product-flash-black);
  }
}

@keyframes rv-frame-preview-flash-blink {
  0% {
    opacity: 0.72;
  }
  10% {
    opacity: 0.36;
  }
  20% {
    opacity: 0.72;
  }
  30% {
    opacity: 0.36;
  }
  40% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.36;
  }
  60% {
    opacity: 0.72;
  }
  70% {
    opacity: 0.36;
  }
  80% {
    opacity: 0.72;
  }
  90% {
    opacity: 0.36;
  }
  100% {
    opacity: 0.72;
  }
}

@keyframes rv-frame-preview-led {
  to {
    opacity: 0.25;
  }
}

@keyframes rv-frame-preview-pulse {
  0% {
    opacity: 0;
    transform: scale(var(--rv-frame-preview-pulse-from));
  }
  15% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.rv-frame-preview__callout {
  --rv-frame-preview-callout-reach: 24px;
  --rv-frame-preview-callout-gap: 8px;
  --rv-frame-preview-callout-nudge: 4px;
  --rv-frame-preview-callout-line: 20px;
  --rv-frame-preview-callout-dot: 8px;
}

.rv-frame-preview__pulse {
  animation: rv-frame-preview-pulse 2000ms var(--rv-motion-easing-out) infinite;
}

.rv-frame-preview__flash {
  animation: rv-frame-preview-fade-in 160ms var(--rv-motion-easing-out);
  transition: opacity 400ms var(--rv-motion-easing-out);
}

.rv-frame-preview__flash-veil {
  animation:
    rv-frame-preview-flash-ink 2000ms linear infinite,
    rv-frame-preview-flash-blink 2000ms linear infinite;
}

.rv-frame-preview__led--blink {
  animation: rv-frame-preview-led 520ms ease-in-out infinite alternate;
}

.rv-frame-preview__accessory--snap {
  animation: rv-frame-preview-snap calc(var(--rv-motion-duration-base) * 1.5) var(--rv-motion-easing-out) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .rv-frame-preview__accessory--snap {
    animation: none;
  }

  .rv-frame-preview__flash-veil {
    animation: none;
    fill: var(--rv-color-product-flash-black);
    opacity: 0.36;
  }

  .rv-frame-preview__flash {
    animation: none;
    transition: none;
  }

  .rv-frame-preview__led--blink {
    animation: none;
  }

  .rv-frame-preview__pulse {
    animation: none;
    opacity: 0.45;
    transform: scale(calc(var(--rv-frame-preview-pulse-from) + (1 - var(--rv-frame-preview-pulse-from)) * 0.5));
  }
}

/*
 * The magnetic accessory on its own: an SVG in millimetres (the moulding and the mat) that fills
 * the width at the accessory's aspect ratio, set inline on .rv-frame-accessory__body by the React
 * layer. Only the width sizes it. Its opening is left open: the page shows through, and the
 * children (what shows through) are laid on it. Nothing moves, so there is no reduced-motion rule.
 */
.rv-frame-accessory {
  position: relative;
  align-self: start;
  width: 100%;
}

.rv-frame-accessory__body {
  position: relative;
  width: 100%;
  height: auto;
}

/* The wall shadow spreads past the moulding's edge. */
.rv-frame-accessory__drawing {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Laid exactly on the mat opening (inset inline, in percentages of the accessory). */
.rv-frame-accessory__opening {
  position: absolute;
  overflow: hidden;
}

.rv-logo {
  display: block;
  width: 1.5em;
  height: auto;
  color: var(--rv-color-accent);
  flex: none;
}

.rv-lang {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
  font-family: var(--rv-text-nav-font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rv-color-text-secondary);
}

.rv-lang__item {
  color: inherit;
  text-decoration: none;
}

.rv-lang__item:hover,
.rv-lang__item[aria-current] {
  color: var(--rv-color-accent);
}

.rv-lang__item:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-lang__sep {
  color: rgba(255, 255, 255, 0.25);
}

.rv-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--rv-layout-header-height);
  background: color-mix(in srgb, var(--rv-color-surface-sunken) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255, 140, 53, 0.12);
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.rv-nav--overlay.rv-nav--at-top {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.rv-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--rv-space-5);
}

.rv-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-3);
  color: var(--rv-color-text-primary);
  text-decoration: none;
  min-width: 0;
}

.rv-nav__logo {
  width: 28px;
}

.rv-nav__wordmark {
  font-family: var(--rv-font-family-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.rv-nav__site {
  font-family: var(--rv-font-family-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--rv-color-accent);
  /* Under 360px the label wraps under itself rather than pushing the toggle out. */
  min-width: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.rv-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rv-color-text-primary);
  cursor: pointer;
}

.rv-nav__toggle:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-nav__toggle-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.rv-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-nav__link {
  font-family: var(--rv-text-nav-font-family);
  font-size: var(--rv-text-nav-font-size);
  font-weight: var(--rv-text-nav-font-weight);
  letter-spacing: var(--rv-text-nav-letter-spacing);
  line-height: var(--rv-text-nav-line-height);
  color: var(--rv-color-text-secondary);
  text-decoration: none;
}

.rv-nav__link:hover,
.rv-nav__link[aria-current] {
  color: var(--rv-color-accent);
}

.rv-nav__link:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

/* Below 768px the panel is a popover sheet under the header. */
.rv-nav__panel {
  position: fixed;
  inset: var(--rv-layout-header-height) 0 auto 0;
  margin: 0;
  width: auto;
  padding: var(--rv-space-5);
  border: 0;
  background: var(--rv-color-surface-sunken);
  color: var(--rv-color-text-primary);
  flex-direction: column;
  gap: var(--rv-space-5);
}

.rv-nav__panel:popover-open {
  display: flex;
}

@media (min-width: 768px) {
  .rv-nav__toggle {
    display: none;
  }

  .rv-nav__panel {
    display: flex;
    flex-direction: row;
    position: static;
    inset: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    overflow: visible;
    align-items: center;
    gap: var(--rv-space-5);
  }

  .rv-nav__links {
    flex-direction: row;
    gap: var(--rv-space-5);
  }
}

/* The announcement bar (rv/announcement.html), ported from the preview's
   .rv-live: a strip pinned over the top of the page, the whole of it one
   link, with a pulsing dot, an uppercase title, a line of text and a dark
   pill button with a shine running across it. It is drawn above the nav
   (z-index 101 over the nav's 100; the skip link, page.css, is 102).

   The bar pushes the page's chrome down by its height. Every offset hangs
   from the body's rv-base--announcement, which baseof.html writes only when
   the page's language sets params.rv.announcement: without it, none of
   these rules applies. The nav, the body's padding, the nav's mobile panel
   and the hero's screen-high minimum (900px and up, where it has one) move
   by --rv-announcement-height; an article's contents bar, rail and sheet
   by --rv-toc-chrome, toc.css's input for the chrome above them, which the
   bar raises by its height; anchor jumps clear it through the root's
   scroll padding, which adds to each heading's own scroll margin
   (prose.css, toc.css, page.css's main). rv/toc.js measures the nav's
   bottom edge, so its scroll-spy follows.

   Up to 900px the text is hidden and the title may wrap; up to 768px the
   bar is shorter and the short label replaces the label. Both bounds are
   inclusive, as the preview's max-width queries are, so at exactly 768px
   the bar is already the 56px one (while the nav, from 768px, is wide).
   The hero's 900px minimum below is hero.css's own. The text and the
   label are hidden for the eye only (as .rv-visually-hidden,
   base.css), so they stay in the link's name, which holds every text the
   bar can show (rv/announcement.html). A bar without a short label
   (--full-label) keeps its label, and its title takes one line instead.
   Under reduced motion the dot and the shine stop.

   Colours: the preview's green #05CE78 is the success colour (#34D27F, the
   nearest token, close enough not to add one), its #0B0B0B the sunken
   surface, its rgba(11,11,11,0.78) and its shadows' rgba(0,0,0,0.7) black
   at 80%, rgba(0,0,0,0.55) black at 55%, and the shine's white at 35% white
   at 25%. Spacing: its 64px bar is the 64px step, its 24px gaps and sides
   the 24px one, its 14px and 10px gaps the 12px and 8px ones, its 12px by
   24px button padding the 12px and 24px steps, and its 9px by 14px narrow
   one the 8px and 12px.

   Literals kept, for want of a token: the 56px narrow bar, the dot's 12px
   (10px narrow), its 1.6s pulse and 12px ring, the title's 800, 22px (15px
   narrow, 13px at 360px), leading 1 and -0.01em, the text's 600, 14px and
   1.2 leading, the button's 800, 15px (13px narrow) and 0.02em, its 150ms
   and 200ms transitions, its -1px and 1.03 hover, the shine's place, width,
   angle and 3.2s run, the focus ring's 3px, the shadows' offsets and the
   900px, 768px and 360px breakpoints. Each is the preview's value. */
.rv-base--announcement {
  --rv-announcement-height: var(--rv-space-8);

  padding-top: calc(var(--rv-layout-header-height) + var(--rv-announcement-height));
}

/* An anchor jump clears the bar too: the root's scroll padding adds to a
   heading's scroll margin. The bar's height again, as the root cannot read
   the body's property. */
:root:has(> body.rv-base--announcement) {
  scroll-padding-top: var(--rv-space-8);
}

.rv-base--announcement .rv-nav {
  top: var(--rv-announcement-height);
}

.rv-base--announcement .rv-nav__panel {
  top: calc(var(--rv-layout-header-height) + var(--rv-announcement-height));
}

/* An article's contents bar, its sheet (top and both max-heights, so the
   sheet keeps its bottom gap) and the wide-screen rail are placed under
   the chrome toc.css names: the nav, and here the bar. */
.rv-base--announcement .rv-article {
  --rv-toc-chrome: calc(var(--rv-layout-header-height) + var(--rv-announcement-height));
}

/* The skip link (page.css) shows over the bar, where the theme's accent ring
   would vanish (1.2:1 on the green): the sunken colour reads at 10:1
   against the green and 9:1 against the link's accent. */
.rv-base--announcement .rv-skip:focus-visible {
  outline-color: var(--rv-color-surface-sunken);
}

/* The hero is a screen high on wide screens only: hero.css drops the
   minimum under 900px, so a small hero stays small, and the bar leaves it
   so. */
@media (width >= 900px) {
  .rv-base--announcement .rv-hero {
    min-height: calc(100svh - var(--rv-layout-header-height) - var(--rv-announcement-height));
  }
}

.rv-announcement {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rv-space-5);
  box-sizing: border-box;
  height: var(--rv-announcement-height);
  padding: 0 var(--rv-space-5);
  overflow: hidden;
  background: var(--rv-color-status-success);
  color: var(--rv-color-surface-sunken);
  text-decoration: none;
  box-shadow: 0 8px 28px -12px var(--rv-color-alpha-black-55);
}

/* The theme's accent ring would not read on the green. */
.rv-announcement:focus-visible {
  outline: 3px solid var(--rv-color-surface-sunken);
  outline-offset: -3px;
}

.rv-announcement__message {
  display: flex;
  align-items: center;
  gap: var(--rv-space-3);
  min-width: 0;
}

.rv-announcement__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rv-color-surface-sunken);
  animation: rv-announcement-pulse 1.6s infinite;
}

@keyframes rv-announcement-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--rv-color-alpha-black-80);
  }

  70% {
    box-shadow: 0 0 0 12px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.rv-announcement__title {
  flex-shrink: 0;
  font-family: var(--rv-font-family-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* It gives way first: cut with an ellipsis when the bar is short of room. */
.rv-announcement__text {
  min-width: 0;
  overflow: hidden;
  color: var(--rv-color-alpha-black-80);
  font-family: var(--rv-font-family-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rv-announcement__button {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--rv-space-2);
  overflow: hidden;
  padding: var(--rv-space-3) var(--rv-space-5);
  border-radius: var(--rv-radius-pill);
  background: var(--rv-color-surface-sunken);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 22px -10px var(--rv-color-alpha-black-80);
  transition:
    transform 150ms,
    box-shadow 200ms;
}

.rv-announcement__button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    var(--rv-color-alpha-white-25) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: rv-announcement-shine 3.2s ease-in-out infinite;
}

@keyframes rv-announcement-shine {
  0%,
  55% {
    left: -60%;
  }

  100% {
    left: 130%;
  }
}

.rv-announcement:hover .rv-announcement__button {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 28px -10px var(--rv-color-alpha-black-80);
}

.rv-announcement__label-short {
  display: none;
}

/* The text leaves the bar to the title and the button, which may now wrap
   to two lines rather than be cut. */
@media (width <= 900px) {
  .rv-announcement__text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rv-announcement__title {
    flex-shrink: 1;
    min-width: 0;
    white-space: normal;
  }
}

@media (width <= 768px) {
  .rv-base--announcement {
    --rv-announcement-height: 56px;
  }

  :root:has(> body.rv-base--announcement) {
    scroll-padding-top: 56px;
  }

  .rv-announcement {
    justify-content: space-between;
    gap: var(--rv-space-3);
    padding: 0 var(--rv-space-3);
  }

  .rv-announcement__message {
    gap: var(--rv-space-2);
  }

  .rv-announcement__dot {
    width: 10px;
    height: 10px;
  }

  .rv-announcement__title {
    font-size: 15px;
  }

  .rv-announcement__button {
    padding: var(--rv-space-2) var(--rv-space-3);
    font-size: 13px;
  }

  /* The label gives way to the short one, on a bar that has one. */
  .rv-announcement:not(.rv-announcement--full-label) .rv-announcement__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rv-announcement__label-short {
    display: inline;
  }

  /* No short label: the whole label keeps its room, so the title takes one
     line, cut with an ellipsis, rather than wrap word by word out of a bar
     only 56px high. Its name is still the whole title. */
  .rv-announcement--full-label .rv-announcement__title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (width <= 360px) {
  .rv-announcement__title {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-announcement__dot,
  .rv-announcement__button::after {
    animation: none;
  }
}

.rv-footer {
  background: var(--rv-color-surface-sunken);
  border-top: 1px solid rgba(255, 140, 53, 0.12);
  padding: var(--rv-space-7) var(--rv-layout-gutter) var(--rv-space-5);
}

.rv-footer__inner {
  max-width: var(--rv-layout-container);
  margin-inline: auto;
}

.rv-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--rv-space-7);
}

.rv-footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-3);
  color: var(--rv-color-text-primary);
  text-decoration: none;
}

.rv-footer__logo {
  width: 28px;
}

.rv-footer__wordmark {
  font-family: var(--rv-font-family-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.rv-footer__tagline {
  max-width: 280px;
  margin: var(--rv-space-4) 0 0;
  font-family: var(--rv-font-family-display);
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  color: var(--rv-color-text-tertiary);
}

.rv-footer__col-title {
  margin: 0 0 var(--rv-space-4);
  font-family: var(--rv-text-label-font-family);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  line-height: var(--rv-text-label-line-height);
  letter-spacing: var(--rv-text-label-letter-spacing);
  text-transform: var(--rv-text-label-text-transform);
  color: var(--rv-color-accent);
}

.rv-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--rv-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-footer__link {
  font-family: var(--rv-font-family-body);
  font-size: 13px;
  color: var(--rv-color-text-secondary);
  text-decoration: none;
}

.rv-footer__link:hover {
  color: var(--rv-color-accent);
}

.rv-footer__link:focus-visible,
.rv-footer__brand-row:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

.rv-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--rv-space-3);
  margin-top: var(--rv-space-7);
  padding-top: var(--rv-space-4);
  border-top: 1px solid var(--rv-color-line-subtle);
  font-family: var(--rv-font-family-body);
  font-size: 11px;
  color: var(--rv-color-text-tertiary);
}

.rv-footer__legal,
.rv-footer__made {
  margin: 0;
}

@media (max-width: 899px) {
  .rv-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .rv-footer__top {
    grid-template-columns: 1fr;
  }

  .rv-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.rv-footer__link:has(.rv-footer__icon) {
  display: inline-flex;
  align-items: center;
  gap: var(--rv-space-2);
}

.rv-footer__icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* A product video: fills its box, cropped rather than stretched. Motion is
   handled in rv/video.js, which does not autoplay under reduced motion. */
.rv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--rv-color-surface-sunken);
}

/* A landing page is a stack of full-bleed sections: it takes the page's width
   and none of its vertical padding, each section sets its own rhythm. */
.rv-page:has(> .rv-landing) {
  padding-block: 0;
}

.rv-landing {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* The hero (rv/section/hero.html), ported from the preview's .cvh: a picture
   that fills the first screen under the nav, a scrim that fades it into the
   page at both ends, a soft accent glow from the left edge, and the text and
   card over it. The scrim and the glow are pseudo-elements, so the markup has
   no empty boxes.

   The preview sized itself to 100svh under a nav laid over it; here the nav is
   fixed and the page starts below it (page.css), so the hero fills what is
   left of the screen and its top padding loses the nav's height.

   Literals kept, for want of a token: the measures of the text column (560px,
   400px, 440px) and of the preview's 1440px stage, the headline's size, 400
   weight (no display weight token is regular), leading and tracking (it is set larger and tighter than any display style), the
   eyebrow's 12px and 0.2em tracking, the lead's size and leading, the card
   title's 20px, the card emphasis's 700, the button's 800, the blur and the
   shadows' offsets, the alphas of the scrim (mixed from the canvas token), and
   the wide picture's 132% and the narrow band's 88vh/82vh and 52vw/58vw. Each
   is the preview's value. */
.rv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--rv-layout-header-height));
  background: var(--rv-color-surface-canvas);
}

/* The glow: the preview's rgba(255,140,53,0.16) is the accent tint (0.14). */
.rv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(38% 52% at -6% 42%, var(--rv-color-accent-tint) 0%, transparent 60%);
}

.rv-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Input: --rv-hero-position, the section's image.position, set inline on the
   img. It crops the picture on a wide screen only; a narrow one keeps the
   preview's center 40% (the media queries below). */
.rv-hero__media img {
  --rv-hero-position: center;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The scrim: the preview's #191310 at both ends is the canvas. */
.rv-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, var(--rv-color-surface-canvas) 100%),
    linear-gradient(180deg, var(--rv-color-surface-canvas) 0%, transparent 25%);
}

.rv-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--rv-space-8) var(--rv-layout-gutter) var(--rv-space-9);
}

.rv-hero__eyebrow {
  margin: 0 0 var(--rv-space-5);
  color: var(--rv-color-accent);
  font-family: var(--rv-text-label-font-family);
  font-size: 12px;
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: 0.2em;
  text-transform: var(--rv-text-label-text-transform);
}

.rv-hero__title {
  max-width: 560px;
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-display);
  font-size: clamp(46px, 6.2vw, 82px);
  /* Regular, as the preview's: its headline sets no weight and takes the
     heading weight, 400; the em and strong lines bring their own. */
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

/* The two lines of the preview's headline: a light italic one, a bold one.
   rgba(255,255,255,0.9) is white at 88%. */
.rv-hero__title em {
  display: block;
  color: var(--rv-color-alpha-white-88);
  font-style: var(--rv-text-title-em-font-style);
  font-weight: var(--rv-text-title-em-font-weight);
}

.rv-hero__title strong {
  display: block;
  font-weight: var(--rv-text-display-xl-font-weight);
}

/* rgba(255,255,255,0.72) is white at 70%; the shadow's rgba(0,0,0,0.5) is black at 55%. */
.rv-hero__lead {
  max-width: 400px;
  margin: var(--rv-space-5) 0 0;
  color: var(--rv-color-alpha-white-70);
  font-family: var(--rv-font-family-body);
  /* The preview's size and leading; no body token scales or sits at 1.55. */
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
  text-shadow: 0 2px 14px var(--rv-color-alpha-black-55);
}

/* The preview's white at 5% is the subtle line (7%), its accent border at 30%
   the accent at 30%. Clears the fixed nav when the nav's button jumps here. */
.rv-hero__card {
  box-sizing: border-box;
  max-width: 440px;
  margin-top: var(--rv-space-6);
  padding: var(--rv-space-5);
  border: 1px solid var(--rv-color-alpha-accent-30);
  border-radius: var(--rv-radius-card);
  background: var(--rv-color-line-subtle);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: center;
  scroll-margin-top: calc(var(--rv-layout-header-height) + var(--rv-space-5));
}

.rv-hero__card-title {
  margin: 0 0 var(--rv-space-2);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-display);
  font-size: 20px;
  font-weight: var(--rv-text-display-m-font-weight);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

/* 12.5px at white 62% is the small body at the tertiary text colour. */
.rv-hero__card-text {
  margin: 0 0 var(--rv-space-4);
  color: var(--rv-color-text-tertiary);
  font-family: var(--rv-text-body-sm-font-family);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

/* *emphasis* in the card is the accent highlight (the preview's .rv-hl). */
.rv-hero__card em {
  color: var(--rv-color-accent);
  font-style: normal;
  /* The preview's .rv-hl weight; no token for a body-text bold. */
  font-weight: 700;
}

/* The preview's call to action: a full-width pill, larger and heavier than a
   medium button; its rgba(255,140,53,0.8) halo is the glow shadow. */
.rv-hero__button {
  padding: var(--rv-space-4);
  font-size: var(--rv-text-body-font-size);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: normal;
  box-shadow: var(--rv-shadow-glow);
}

.rv-hero__button:active {
  transform: scale(0.98);
}

/* 11px at white 44% is the label size at the tertiary text colour. */
.rv-hero__note {
  margin: var(--rv-space-3) 0 0;
  color: var(--rv-color-text-tertiary);
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-label-font-size);
}

/* On a wide screen the picture is drawn wider than the hero and cropped by
   image.position (the sizes attribute in hero.html says 132vw). 132% is the
   preview's value; no token. */
@media (width >= 900px) {
  .rv-hero__media img {
    width: 132%;
    object-position: var(--rv-hero-position);
  }
}

/* On a narrow screen the picture is a band at the top that fades into the
   page, the text is centred over it and the card sits below the frame. The
   band's height (88vh, 82vh) and the card's offset (52vw, 58vw) are the
   preview's values; no token. hero.html's sizes follows the band. */
@media (width < 900px) {
  .rv-hero {
    display: block;
    min-height: 0;
  }

  .rv-hero::before {
    display: none;
  }

  .rv-hero__media {
    inset: 0 0 auto;
    height: 88vh; /* the preview's; no token */
  }

  /* The preview's phone crop, whatever image.position says. */
  .rv-hero__media img {
    object-position: center 40%;
  }

  /* The preview's rgba(18,12,9,…) ramp, mixed from the canvas. */
  .rv-hero__media::after {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--rv-color-surface-canvas) 16%, transparent) 0%,
      color-mix(in srgb, var(--rv-color-surface-canvas) 8%, transparent) 20%,
      color-mix(in srgb, var(--rv-color-surface-canvas) 25%, transparent) 50%,
      color-mix(in srgb, var(--rv-color-surface-canvas) 46%, transparent) 72%,
      var(--rv-color-surface-canvas) 88%
    );
  }

  .rv-hero__inner {
    padding: var(--rv-space-6) var(--rv-layout-gutter) var(--rv-space-8);
    text-align: center;
  }

  /* The shadow's rgba(0,0,0,0.6) is black at 55%. */
  .rv-hero__title {
    max-width: none;
    font-size: clamp(40px, 12vw, 58px);
    text-shadow: 0 4px 22px var(--rv-color-alpha-black-55);
  }

  .rv-hero__lead {
    display: none;
  }

  .rv-hero__card {
    max-width: none;
    margin: 52vw auto 0; /* the preview's; no token */
  }
}

@media (width <= 480px) {
  .rv-hero__media {
    height: 82vh; /* the preview's; no token */
  }

  .rv-hero__card {
    margin-top: 58vw; /* the preview's; no token */
  }
}

/* The split (rv/section/split.html), ported from the preview's .cvw: a text
   column with numbered steps next to a portrait video in a ringed box, over a
   soft accent glow from the left. The glow and the step numbers are
   pseudo-elements, so the markup has no empty boxes. Nothing here moves: the
   video's playback (and reduced motion) is rv/video.js's.

   The preview's 1120px column is the layout container (1100px), its section
   padding of 80px to 130px the 64px and 128px steps, its 20px and 36px gaps
   the 24px and 32px steps, its 18px step gap the 16px one.

   Literals kept, for want of a token: the 11vw of the section's padding, the
   glow's size (50vw, at most 600px), place (16%, -16%), fade (68%) and blur,
   the 1fr / 0.82fr columns, the 860px breakpoint, the title's size, 400 weight
   (no display weight token is regular), leading and tracking, the eyebrow's 0.15em tracking, the lead's 400px measure, 1.65
   leading and 600 bold, the step number's 34px circle, 1.5px ring and 14px
   figure, the step title's 19px and the step text's 14px, the media box's
   340px (300px narrow), 9:16, 24px corner, 6px ring and shadow offsets, and
   the narrow title's size. Each is the preview's value. */
.rv-split {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(var(--rv-space-8), 11vw, var(--rv-space-10)) var(--rv-layout-gutter);
  /* The preview's #15100c to #191310: the canvas, darkened at the top by a
     quarter of the sunken surface (75% is ours; no token). */
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rv-color-surface-canvas) 75%, var(--rv-color-surface-sunken)) 0%,
    var(--rv-color-surface-canvas) 100%
  );
}

/* The glow (the preview's .cvw__blur): its rgba(255,140,53,0.14) is the accent tint. */
.rv-split::before {
  content: '';
  position: absolute;
  top: 16%;
  left: -16%;
  z-index: 0;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rv-color-accent-tint) 0%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

.rv-split__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--rv-space-8);
  align-items: center;
  max-width: var(--rv-layout-container);
  margin: 0 auto;
}

.rv-split__text {
  min-width: 0;
}

.rv-split__eyebrow {
  margin: 0 0 var(--rv-space-5);
  color: var(--rv-color-accent);
  font-family: var(--rv-text-label-font-family);
  font-size: var(--rv-text-label-font-size);
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: 0.15em;
  text-transform: var(--rv-text-label-text-transform);
}

.rv-split__title {
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-display);
  font-size: clamp(34px, 5vw, 68px);
  /* Regular, as the preview's: its title sets no weight and takes the heading
     weight, 400; the em and strong lines bring their own. */
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

/* The headline's two lines, as the hero's: rgba(255,255,255,0.9) is white at 88%. */
.rv-split__title em {
  display: block;
  color: var(--rv-color-alpha-white-88);
  font-style: var(--rv-text-title-em-font-style);
  font-weight: var(--rv-text-title-em-font-weight);
}

.rv-split__title strong {
  display: block;
  font-weight: var(--rv-text-display-xl-font-weight);
}

/* rgba(255,255,255,0.66) is white at 70%. */
.rv-split__lead {
  max-width: 400px;
  margin: var(--rv-space-5) 0 0;
  color: var(--rv-color-alpha-white-70);
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-font-size);
  line-height: 1.65;
}

.rv-split__lead strong {
  color: var(--rv-color-text-primary);
  font-weight: 600;
}

/* The preview's accent underline at 50% is the accent at 45%. */
.rv-split__lead a {
  color: var(--rv-color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--rv-color-alpha-accent-45);
}

/* *emphasis* in the text is the accent highlight (the preview's .rv-hl), as
   in the hero's card. */
.rv-split__lead em,
.rv-split__step-text em {
  color: var(--rv-color-accent);
  font-style: normal;
  /* The preview's .rv-hl weight; no token for a body-text bold. */
  font-weight: 700;
}

.rv-split__steps {
  margin: var(--rv-space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rv-split-step;
}

/* Without a lead, the steps sit at the title's 20px. */
.rv-split__title + .rv-split__steps {
  margin-top: var(--rv-space-5);
}

/* The number in a column of its own, the title and the text beside it. */
.rv-split__step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--rv-space-4);
  align-items: start;
  padding: var(--rv-space-4) 0;
  counter-increment: rv-split-step;
}

/* The preview's .cvw__n: its rgba(255,140,53,0.55) ring is the accent at 45%. */
.rv-split__step::before {
  content: counter(rv-split-step);
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--rv-color-alpha-accent-45);
  border-radius: 50%;
  color: var(--rv-color-accent);
  font-family: var(--rv-font-family-display);
  font-size: 14px;
  font-weight: var(--rv-text-display-m-font-weight);
}

.rv-split__step-title {
  grid-column: 2;
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-text-display-m-font-family);
  font-size: 19px;
  font-weight: var(--rv-text-display-m-font-weight);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

/* rgba(255,255,255,0.6) is the tertiary text colour (55%); the 3px gap is 4px. */
.rv-split__step-text {
  grid-column: 2;
  margin: var(--rv-space-1) 0 0;
  color: var(--rv-color-text-tertiary);
  font-family: var(--rv-font-family-body);
  font-size: 14px;
  line-height: var(--rv-text-body-line-height);
}

/* The media box, which sizes the video (.rv-video is height: 100%) or the
   picture: the preview's 9:16 portrait, at most 340px wide. Its #0f0b08 is the
   sunken surface, the shadow's rgba(0,0,0,0.85) black at 80%. */
.rv-split__media {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--rv-color-surface-sunken);
  box-shadow: 0 40px 90px -30px var(--rv-color-alpha-black-80);
}

/* The ring around it: 6px of the accent at 45% (the preview's 55%), its outer
   corner the box's 24px plus the ring. */
.rv-split__media::before {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: 1;
  border: 6px solid var(--rv-color-alpha-accent-45);
  border-radius: 30px;
  pointer-events: none;
}

/* The video or the picture fills the box. The corners are clipped with
   clip-path, which, unlike border-radius with overflow, clips a <video> on
   Firefox for Android (the preview's note). */
.rv-split__media > * {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 round 24px);
}

/* Two columns only beside a media box; a split without one is its text. */
@media (width > 860px) {
  .rv-split__inner:has(> .rv-split__media) {
    grid-template-columns: 1fr 0.82fr;
  }

  .rv-split--reverse .rv-split__inner:has(> .rv-split__media) {
    grid-template-columns: 0.82fr 1fr;
  }

  .rv-split--reverse .rv-split__media {
    order: -1;
  }
}

/* On a narrow screen the media comes first, whatever `reverse` says, as in
   the preview. Its 44px gap is the 48px step. */
@media (width <= 860px) {
  .rv-split__inner {
    gap: var(--rv-space-7);
  }

  .rv-split__media {
    order: -1;
    max-width: 300px;
  }

  .rv-split__title {
    font-size: clamp(30px, 9vw, 44px);
  }

  .rv-split__lead {
    max-width: none;
  }
}

/* The features (rv/section/features.html), ported from the preview's .cvfe: a
   centred head, then numbered groups of cards on a grid, over a soft accent
   glow from the bottom right. The glow, the group numbers and the label's rule
   are pseudo-elements, so the markup has no empty boxes. Nothing here moves:
   the videos' playback (and reduced motion) is rv/video.js's.

   The preview placed each of its cards by hand. Here the layout is front
   matter, set inline by features.html as custom properties, with these
   defaults. Inputs, on the grid: --rv-features-columns (default 3) and
   --rv-features-narrow-columns (under 900px, default 2). On a card:
   --rv-features-span-x and --rv-features-span-y (default 1, 2 with media)
   and --rv-features-column (its start column, default auto). The grid flows
   dense, so the cards after a large one fill the space beside it. On a narrow
   screen a media card takes the full row and the others one column each, in
   source order, as in the preview.

   The preview's section padding of 80px to 130px is the 64px and 128px steps,
   its 64px between groups the 64px one, its 48px head gap the 48px one, its
   16px and 24px gaps and its 24px card padding the 16px and 24px ones.

   Literals kept, for want of a token: the 11vw of the section's padding, the
   1320px column, the glow's size (48vw, at most 620px), place (8%, -14%), fade
   (68%) and blur, the eyebrow's 12px and 0.2em tracking, the title's size,
   400 weight (no display weight token is regular), leading and tracking, the number's 30px square and 8px corner, the group
   title's size and leading, the rule's 2px and its 60% stop, the cards' 200px,
   300px and 280px minimum heights and the tall card's 540px, the
   kicker's size (with its 17px floor and 11.5cqi, measured) and leading, the
   card
   title's 19px, the scrim's 31% stop and alphas, the icon's 30px, the icon
   card's 22px padding, 17px title, 12.5px text and 4px gap, the 900px
   breakpoint, the narrow kicker's 26px, title's 17px and text's 12.5px, and the
   narrow icon card's 8px side padding and 13px title. Each is the preview's
   value, except the stacked media box's 180px minimum (ours, see L9 below). */
.rv-features {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(var(--rv-space-8), 11vw, var(--rv-space-10)) var(--rv-layout-gutter);
  counter-reset: rv-features-group;
  /* The preview's #191310 to #15100c: the canvas, darkened at the bottom by a
     quarter of the sunken surface (75% is ours; no token), the split's ramp
     the other way up. */
  background: linear-gradient(
    180deg,
    var(--rv-color-surface-canvas) 0%,
    color-mix(in srgb, var(--rv-color-surface-canvas) 75%, var(--rv-color-surface-sunken)) 100%
  );
}

/* The glow (the preview's .cvfe__blur): its rgba(206,96,34,0.14), a deeper
   orange, is the accent tint. */
.rv-features::before {
  content: '';
  position: absolute;
  right: -14%;
  bottom: 8%;
  z-index: 0;
  width: 48vw;
  height: 48vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rv-color-accent-tint) 0%, transparent 68%);
  filter: blur(46px);
  pointer-events: none;
}

.rv-features__inner {
  position: relative;
  z-index: 1;
  max-width: 1320px; /* the preview's; wider than the layout container */
  margin: 0 auto;
}

.rv-features__head {
  text-align: center;
}

.rv-features__eyebrow {
  margin: 0 0 var(--rv-space-4);
  color: var(--rv-color-accent);
  font-family: var(--rv-text-label-font-family);
  font-size: 12px;
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: 0.2em;
  text-transform: var(--rv-text-label-text-transform);
}

.rv-features__title {
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-display);
  font-size: clamp(30px, 4.6vw, 60px);
  /* Regular, as the preview's: its title sets no weight and takes the heading
     weight, 400; the em brings its own. */
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

/* The light italic half of the headline: rgba(255,255,255,0.85) is white at 88%. */
.rv-features__title em {
  color: var(--rv-color-alpha-white-88);
  font-style: var(--rv-text-title-em-font-style);
  font-weight: var(--rv-text-title-em-font-weight);
}

/* The preview's 64px above every group, the first included (its
   :first-of-type rule matched the head, not a group). */
.rv-features__group {
  margin-top: var(--rv-space-8);
}

/* The number, the title, then a rule to the end of the line. Only a group with
   a title has a label, so only those are counted. */
.rv-features__label {
  display: flex;
  align-items: center;
  gap: var(--rv-space-4);
  margin-bottom: var(--rv-space-5);
  counter-increment: rv-features-group;
}

/* The preview's .cvfe__gnum: #191513 on the accent is the on-accent colour,
   its 15px the body size. */
.rv-features__number {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--rv-color-accent);
  color: var(--rv-color-on-accent);
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-font-size);
  font-weight: var(--rv-text-title-strong-font-weight);
  line-height: 1;
}

.rv-features__number::before {
  content: counter(rv-features-group);
}

/* On one line, as in the preview: the longest of the example's titles
   (L'application) is about 145px at the narrow 20px, well inside a 375px
   screen's 327px with the number and the gaps. */
.rv-features__group-title {
  margin: 0;
  white-space: nowrap;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-text-display-l-font-family);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: var(--rv-text-display-l-font-weight);
  line-height: 1;
  letter-spacing: var(--rv-text-display-l-letter-spacing);
}

/* The rule: the preview's accent at 60% and 8% is the accent at 45% and 10%,
   its white at 2% the white at 2%. */
.rv-features__label::after {
  content: '';
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--rv-color-alpha-accent-45),
    var(--rv-color-alpha-accent-10) 60%,
    var(--rv-color-alpha-white-02)
  );
}

.rv-features__grid {
  --rv-features-columns: 3;
  --rv-features-narrow-columns: 2;
  display: grid;
  grid-template-columns: repeat(var(--rv-features-columns), minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--rv-space-4);
}

/* The preview's white at 3% is the white at 2%, its white at 7% the subtle line. */
.rv-features__card {
  --rv-features-span-x: 1;
  --rv-features-span-y: 1;
  --rv-features-column: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: var(--rv-features-column) / span var(--rv-features-span-x);
  grid-row: span var(--rv-features-span-y);
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--rv-color-line-subtle);
  border-radius: var(--rv-radius-card);
  background: var(--rv-color-alpha-white-02);
  /* A container, so its kicker can be sized to it (cqi). Inline-size only:
     the grid already sizes the card's width (minmax(0, 1fr) tracks), and its
     height still follows its content. */
  container-type: inline-size;
}

/* A card with media: by default two columns and two rows, its text at the bottom. */
.rv-features__card--media {
  --rv-features-span-x: 2;
  --rv-features-span-y: 2;
  justify-content: flex-end;
  min-height: 300px;
}

/* A media card of three rows or more (features.html marks it): the preview's
   app photo, at least 540px tall on a wide screen (a media card's 280px
   under 900px). */
.rv-features__card--tall {
  min-height: 540px;
}

/* A card with an icon hugs its text (the preview's .ap-feat). */
.rv-features__card--icon {
  min-height: 0;
}

.rv-features__card--icon .rv-features__body {
  padding: 22px; /* the preview's; between the 16px and 24px steps */
}

/* The icon, in the accent through the SVG's currentColor. */
.rv-features__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: var(--rv-space-3);
  color: var(--rv-color-accent);
}

.rv-features__card--icon .rv-features__card-title {
  font-size: 17px;
}

.rv-features__card--icon .rv-features__card-text {
  margin-top: var(--rv-space-1);
  font-size: 12.5px;
}

/* The media box covers the card, which the grid sizes, and so sizes the video
   (.rv-video is height: 100%) or the picture. Its corners are the card's less
   its 1px border, clipped with clip-path, which, unlike border-radius with
   overflow, clips a <video> on Firefox for Android (the preview's note). */
.rv-features__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  clip-path: inset(0 round calc(var(--rv-radius-card) - 1px));
}

.rv-features__media > * {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-features__body {
  position: relative;
  z-index: 1;
  padding: var(--rv-space-5);
}

/* The scrim under the text of a media card: the preview's rgba(10,5,3,…) is
   the sunken surface, at its 70% and 50%. */
.rv-features__card--media .rv-features__body {
  background: linear-gradient(
    0deg,
    color-mix(in srgb, var(--rv-color-surface-sunken) 70%, transparent) 0%,
    color-mix(in srgb, var(--rv-color-surface-sunken) 50%, transparent) 31%,
    transparent 100%
  );
}

/* A video showing its controls is never covered by the card's text (ruling
   L9). The controls show under reduced motion, without the script, or when
   the browser refuses to play (rv/video.js puts them back), and the text over
   the bottom of the media would lie on them and take their clicks. Such a
   card is a stack instead: the media box on top, in the card's flow and
   filling what the text leaves (at least 180px, ours: no token), the text
   below on the card's own surface. A playing video has no controls attribute,
   so its card keeps the preview's overlay. The video is laid over the box, so
   its height: 100% has a definite height to fill however the card is sized.
   The box's bottom corners are the text's now, so only the top ones are
   clipped. */
.rv-features__card--media:has(video[controls]) {
  justify-content: flex-start;
}

.rv-features__card--media:has(video[controls]) .rv-features__media {
  position: relative;
  inset: auto;
  flex: 1 0 0;
  min-height: 180px;
  clip-path: inset(0 round calc(var(--rv-radius-card) - 1px) calc(var(--rv-radius-card) - 1px) 0 0);
}

.rv-features__card--media:has(video[controls]) .rv-features__media > * {
  position: absolute;
  inset: 0;
}

.rv-features__card--media:has(video[controls]) .rv-features__body {
  background: none;
}

/* The preview's 800 is the strong title weight, its -0.03em the large display's.

   A kicker is one or two big words, which a narrow card cannot always hold at
   the preview's size, so it shrinks to its card (ruling L7): the preview's
   size is the ceiling, 11.5cqi of the card follows it down, and 17px is the
   floor. The values come from Edge measurements of the example. The widest
   word, "rétroéclairage", is 6.57x the font size (170.8px at 26px). A text
   card's room is its width less its 1px borders and its 16px narrow padding
   (32px). So a word that long fits whole when 6.57 x 0.115 x W <= W - 32,
   that is, in any card from W = 131px. At 375px the cards are 155.5px:
   11.5cqi is 17.9px, and the word is 117.5px in a room of 124px. At 360px
   they are 148px: 17.0px, 111.8px in 116px. The floor is 17px, not 18px:
   at 360px, 18px would make the word 118.3px, wider than that 116px.
   Wide cards (257px from 900px up) reach the preview's clamp(24px, 2.6vw,
   32px) and keep it. Below the floor, on screens narrower than about 350px,
   hyphens and overflow-wrap remain the last resort: it hyphenates in the
   page's language (html lang), and a word with no break point breaks
   anywhere rather than be clipped by the card. */
.rv-features__kicker {
  margin: 0 0 var(--rv-space-3);
  color: var(--rv-color-accent);
  font-family: var(--rv-font-family-display);
  font-size: clamp(17px, 11.5cqi, clamp(24px, 2.6vw, 32px));
  font-weight: var(--rv-text-title-strong-font-weight);
  line-height: 1;
  letter-spacing: var(--rv-text-display-l-letter-spacing);
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* The preview's 1.12 leading is the medium display's 1.15. */
.rv-features__card-title {
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-text-display-m-font-family);
  font-size: 19px;
  font-weight: var(--rv-text-display-m-font-weight);
  line-height: var(--rv-text-display-m-line-height);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
}

/* 13px at white 62% is the small body at the tertiary text colour; the 6px gap is 8px. */
.rv-features__card-text {
  margin: var(--rv-space-2) 0 0;
  color: var(--rv-color-text-tertiary);
  font-family: var(--rv-text-body-sm-font-family);
  font-size: var(--rv-text-body-sm-font-size);
  line-height: var(--rv-text-body-sm-line-height);
}

/* *emphasis* in the text is the accent highlight (the preview's .rv-hl), as
   in the split. */
.rv-features__card-text em {
  color: var(--rv-color-accent);
  font-style: normal;
  /* The preview's .rv-hl weight; no token for a body-text bold. */
  font-weight: 700;
}

/* The group's narrow columns, the cards as tall as their text, in source
   order: a media card takes the full row, any other one column. The preview's
   12px gap is the 12px step, its 18px padding the 16px one. Under 900px, not
   at it, so the features turn wide at the width the hero does (hero.css's
   width >= 900px). */
@media (width < 900px) {
  .rv-features__grid {
    grid-template-columns: repeat(var(--rv-features-narrow-columns), minmax(0, 1fr));
    grid-auto-flow: row;
    gap: var(--rv-space-3);
  }

  .rv-features__card {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  /* The tall card too: the preview's app photo renders 280px here, its
     .cvfe__card.media winning over its .ap-photo's 400px on specificity. */
  .rv-features__card--media {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .rv-features__card:not(.rv-features__card--media, .rv-features__card--icon) .rv-features__body {
    padding: var(--rv-space-4);
  }

  /* The preview's 26px, as the ceiling of the same fit (see the kicker). */
  .rv-features__kicker {
    margin-bottom: var(--rv-space-2);
    font-size: clamp(17px, 11.5cqi, 26px);
  }

  .rv-features__card-title {
    font-size: 17px;
  }

  .rv-features__card-text {
    font-size: 12.5px;
  }

  /* The preview's app cards: centred, the icon over a smaller title. */
  .rv-features__card--icon {
    text-align: center;
  }

  .rv-features__card--icon .rv-features__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--rv-space-4) 8px; /* the preview's 8px sides; no token */
  }

  .rv-features__card--icon .rv-features__icon {
    margin-bottom: var(--rv-space-2);
  }

  .rv-features__card--icon .rv-features__card-title {
    font-size: 13px;
    line-height: 1.15;
  }
}

/* A browser without :has() cannot tell a card whose video shows its controls
   (ruling L9): there the text over a media card lets clicks through to the
   video under it, so the controls still work. A link in the text (markdownify
   allows one) takes its clicks back. */
@supports not selector(:has(*)) {
  .rv-features__card--media .rv-features__body {
    pointer-events: none;
  }

  .rv-features__card--media .rv-features__body a {
    pointer-events: auto;
  }
}

/* The carousel (rv/section/carousel.html), ported from the preview's .cvs: a
   head over a track of portrait cards that scrolls sideways, snapping to each
   card, over a soft accent glow from the top left. The glow and the cards'
   scrim are pseudo-elements, so the markup has no empty boxes. Nothing moves
   by itself: the track scrolls when the reader scrolls it or presses a
   button (rv/carousel.js), smoothly unless they prefer reduced motion.

   The preview had no buttons; the previous and next ones are the theme's
   icon button (icon-button.css, before this file), ringed so they read on
   the dark section, beside the head and wrapping under it when it is wide.

   The preview's 1320px rail and its 40px sides (24px narrow) are the 1320px
   column and the layout gutter, which the track's first card lines up with.
   Its section padding of 76px to 124px is the 64px and 128px steps, its 40px
   under the head the 32px one, its 18px and 22px gaps the 16px and 24px ones,
   its 18px card gap the 16px one, its 3px
   above the link the 4px one, and its 20px corner the card radius.

   Literals kept, for want of a token: the 10vw of the section's padding, the
   1320px column, the glow's size (48vw, at most 600px), place (0, -14%, and 5%
   narrow), fade (68%) and blur, the head's 720px measure, the eyebrow's 12px
   and 0.2em tracking, the title's size, 400 weight (no display weight token is regular), leading
   and tracking, the text's size
   and 1.7 leading, the strong's 600, the card's 300px (250px narrow), 4:5,
   20px padding (see the body) and shadow offsets, the scrim's 55% and 78% stops and its alphas, the badge's
   10px, 0.08em tracking, 10px sides and the 1px border in its radius, the
   card title's 19px, the link's
   12.5px and its icon's 13px, the icon's 18px and the 640px breakpoint. Each is the preview's
   value, but the icon's, which is ours. */
.rv-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(var(--rv-space-8), 10vw, var(--rv-space-10)) 0;
  /* The preview's #15100c to #191310, the split's ramp: the canvas, darkened
     at the top by a quarter of the sunken surface (75% is ours; no token). */
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rv-color-surface-canvas) 75%, var(--rv-color-surface-sunken)) 0%,
    var(--rv-color-surface-canvas) 100%
  );
}

/* The glow (the preview's .cvs__blur): its rgba(255,140,53,0.13) is the accent tint. */
.rv-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -14%;
  z-index: 0;
  width: 48vw;
  height: 48vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rv-color-accent-tint) 0%, transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

/* The head, and the buttons at its end. */
.rv-carousel__rail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv-space-5);
  align-items: flex-end;
  box-sizing: border-box;
  max-width: 1320px; /* the preview's; wider than the layout container */
  margin: 0 auto;
  padding: 0 var(--rv-layout-gutter);
}

.rv-carousel__head {
  flex: 0 1 720px; /* the preview's measure */
  min-width: 0;
}

.rv-carousel__eyebrow {
  margin: 0 0 var(--rv-space-4);
  color: var(--rv-color-accent);
  font-family: var(--rv-text-label-font-family);
  font-size: 12px;
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: 0.2em;
  text-transform: var(--rv-text-label-text-transform);
}

.rv-carousel__title {
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-display);
  font-size: clamp(30px, 4.4vw, 54px);
  /* Regular, as the preview's: its title sets no weight and takes the heading
     weight, 400; the em brings its own. */
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* The light italic half of the headline, in the accent (the preview's #FF8C35). */
.rv-carousel__title em {
  color: var(--rv-color-accent);
  font-style: var(--rv-text-title-em-font-style);
  font-weight: var(--rv-text-title-em-font-weight);
}

/* rgba(255,255,255,0.72) is white at 70%. */
.rv-carousel__text {
  margin: var(--rv-space-5) 0 0;
  color: var(--rv-color-alpha-white-70);
  font-family: var(--rv-font-family-body);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
}

.rv-carousel__text strong {
  color: var(--rv-color-text-primary);
  font-weight: 600;
}

/* *emphasis* in the text is the accent highlight (the preview's .rv-hl), as
   in the split. */
.rv-carousel__text em {
  color: var(--rv-color-accent);
  font-style: normal;
  /* The preview's .rv-hl weight; no token for a body-text bold. */
  font-weight: 700;
}

/* At the end of the head's line, or of the next line when the head fills it. */
.rv-carousel__controls {
  display: flex;
  gap: var(--rv-space-3);
  margin-inline-start: auto;
}

/* The markup hides the buttons until rv/carousel.js shows them; display: flex
   would otherwise win over the hidden attribute. */
.rv-carousel__controls[hidden] {
  display: none;
}

/* The ghost icon button, ringed: the subtle line would vanish on the canvas,
   so the ring is the strong one, the accent on hover. */
.rv-carousel__button {
  border: 1px solid var(--rv-color-line-strong);
  background: var(--rv-color-alpha-white-02);
  color: var(--rv-color-text-primary);
}

.rv-carousel__button:hover:not(:disabled) {
  border-color: var(--rv-color-accent-border);
  color: var(--rv-color-accent);
}

.rv-carousel__button svg {
  width: 18px; /* ours: the preview had no buttons */
  height: 18px;
}

/* A right-to-left page reads the track the other way: the arrows turn too. */
.rv-carousel__button:dir(rtl) svg {
  transform: scaleX(-1);
}

/* The track runs the section's full width; its padding lines the first card up
   with the head's column (the preview's max(40px, calc(50vw - 660px + 40px)),
   from the section's width rather than the window's, which counts the
   scrollbar). Its scroll padding is the same, so each card snaps to that line
   rather than to the screen's edge. The bottom padding is room for the cards'
   shadow. The scrollbar is hidden, as in the preview: the cards running off
   the screen say there is more. */
.rv-carousel__track {
  --rv-carousel-inset: max(
    var(--rv-layout-gutter),
    calc((100% - 1320px) / 2 + var(--rv-layout-gutter))
  );
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--rv-space-4);
  margin: var(--rv-space-6) 0 0;
  padding: 0 var(--rv-carousel-inset) var(--rv-space-4);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rv-carousel-inset);
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.rv-carousel__track::-webkit-scrollbar {
  display: none;
}

/* Inside the track: its overflow would clip an outline drawn outside. */
.rv-carousel__track:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: -2px;
}

/* The preview's #0f0b08 is the sunken surface, the shadow's rgba(0,0,0,0.7)
   black at 80%. */
.rv-carousel__card {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: 300px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--rv-radius-card);
  background: var(--rv-color-surface-sunken);
  box-shadow: 0 12px 25px -10px var(--rv-color-alpha-black-80);
  scroll-snap-align: start;
}

.rv-carousel__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The scrim under the text: the preview's rgba(10,5,3,…) is the sunken
   surface, at its 92% and 15%. */
.rv-carousel__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    0deg,
    color-mix(in srgb, var(--rv-color-surface-sunken) 92%, transparent) 0%,
    color-mix(in srgb, var(--rv-color-surface-sunken) 15%, transparent) 55%,
    transparent 78%
  );
  pointer-events: none;
}

/* The badge at the top, the title and the link at the bottom.

   The preview's 20px padding, not the 24px step: on a phone's 250px card the
   step left 202px, and the landing's "Dystopie #7 - Rituel astral" (203.2px
   in Montserrat) wrapped. Its pill held both lines (the radius below), but
   the second sat on the picture through the pill's faint tint, and read as
   spilling out of it. With 210px it keeps one line, as in the preview. */
.rv-carousel__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: 20px;
}

/* The preview's rgba(255,140,53,0.14) fill is the accent tint, its 0.4 ring
   the accent border (35%). A long one wraps rather than leave the card or
   hide the end of an artist's title behind an ellipsis.

   The preview's 9999px radius is not the pill token here. On two lines it
   draws a stadium whose ends curve in over the text, 1.7px from the first
   and last lines' outer corners instead of the 4px padding (measured in Edge
   at 375px). The radius is half a one-line badge's height instead: half its
   line, its padding and its 1px border. On one line that is the same pill,
   to the pixel. On two the corners keep that size, and the text keeps its
   padding all round. */
.rv-carousel__badge {
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 auto;
  padding: var(--rv-space-1) 10px;
  border: 1px solid var(--rv-color-accent-border);
  border-radius: calc(var(--rv-text-label-line-height) * 0.5em + var(--rv-space-1) + 1px);
  background: var(--rv-color-accent-tint);
  color: var(--rv-color-accent);
  font-family: var(--rv-text-label-font-family);
  font-size: 10px;
  font-weight: var(--rv-text-label-font-weight);
  line-height: var(--rv-text-label-line-height);
  letter-spacing: 0.08em;
  text-transform: var(--rv-text-label-text-transform);
  overflow-wrap: anywhere;
}

/* The preview's .cvs__collab-artist: 700 and -0.02em are the medium display's. */
.rv-carousel__card-title {
  margin: 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-text-display-m-font-family);
  font-size: 19px;
  font-weight: var(--rv-text-display-m-font-weight);
  line-height: var(--rv-text-display-m-line-height);
  letter-spacing: var(--rv-text-display-m-letter-spacing);
  overflow-wrap: anywhere;
}

/* The preview's .cvs__collab-handle: rgba(255,255,255,0.68) is white at 70%,
   its white underline the primary text colour. */
.rv-carousel__link {
  align-self: flex-start;
  margin-top: var(--rv-space-1);
  color: var(--rv-color-alpha-white-70);
  font-family: var(--rv-font-family-body);
  font-size: 12.5px;
  text-decoration: underline var(--rv-color-text-primary);
  overflow-wrap: anywhere;
}

/* A link's optional icon (rv/icon.html, in currentColor): the preview's 13px
   glyph, and its 5px gap the 4px step. */
.rv-carousel__link-icon {
  width: 13px;
  height: 13px;
  margin-right: var(--rv-space-1);
  vertical-align: middle;
}

.rv-carousel__link:hover {
  color: var(--rv-color-text-primary);
}

.rv-carousel__link:focus-visible {
  outline: 2px solid var(--rv-color-accent);
  outline-offset: 2px;
}

@media (width <= 640px) {
  .rv-carousel::before {
    top: 5%;
  }

  .rv-carousel__card {
    width: 250px;
  }
}

/* The buttons and the keyboard jump instead of gliding. */
@media (prefers-reduced-motion: reduce) {
  .rv-carousel__track {
    scroll-behavior: auto;
  }
}

/* The call to action (rv/section/cta.html), ported from the preview's .cvf: a
   closing band that rises from the canvas into the sunrise, its text centred,
   with a dark pill button and, when the campaign is live, a white dot that
   pulses before the eyebrow. The pulse is the only motion, and it stops under
   reduced motion.

   The background is the preview's own ramp, the sunrise fade token (ruling
   L8). It is drawn from the bottom of the band, three bottom paddings tall,
   over the canvas, its first stop, so the band has no edge at the top. Its
   height is the padding's rather than the band's: however long the content,
   the band's last line of text, whichever block ends it, sits one bottom
   padding up, two thirds of the way down the ramp, where full white reaches
   4.5:1. So the title, the text and the note, each of which can end the
   band, are full white. The eyebrow keeps the preview's secondary white: the
   required title is always under it, so it ends higher, at most 55% of the
   way down, where that white reaches 4.5:1 too. test/tokens/contrast.test.ts
   checks both whites down to those points, and the stylesheet test checks
   that these are the only text colours here. Stretched over the whole band,
   as in the preview, the ramp put the last lines on bright orange. A band
   shorter than three paddings (a title alone) starts a little way into the
   ramp, which is still near the canvas there.

   The preview's 640px column is the narrow content width, its 40px sides the
   layout gutter, its section padding of 84px to 150px the 96px and 128px
   steps, its 9px dot gap the 8px step, its 14px under the title the 12px
   one, its 16px under the eyebrow and above the note the 16px one, its 28px
   above the button the 32px one and its 18px by 34px button padding the 16px
   and 32px ones.

   Literals kept, for want of a token: the 12vw of the section's padding, the
   eyebrow's and the note's 12px and the eyebrow's 0.2em tracking, the dot's
   8px, its 0.1em lift, its 1.8s pulse and its 10px ring, the title's size,
   400 weight (no display weight token is regular), leading and tracking, the text's 1.6 leading and 520px measure, the
   button's 16px, 800 weight and 0.02em tracking, its shadows' offsets and its
   0.98 press, the strong's 700 in the text, the 520px breakpoint, and the
   ramp's three paddings. Each is the preview's value, but the dot's lift, the
   strong's 700 and the three paddings, which are ours. */
.rv-cta {
  /* The block padding, which the ramp's height follows. */
  --rv-cta-padding: clamp(var(--rv-space-9), 12vw, var(--rv-space-10));

  position: relative;
  overflow: hidden;
  padding: var(--rv-cta-padding) var(--rv-layout-gutter);
  background-color: var(--rv-color-surface-canvas);
  background-image: var(--rv-gradient-sunrise-fade);
  background-position: center bottom;
  background-size: 100% calc(var(--rv-cta-padding) * 3);
  background-repeat: no-repeat;
  text-align: center;
}

.rv-cta__inner {
  max-width: var(--rv-layout-content-narrow);
  margin: 0 auto;
}

/* The theme's focus ring is the accent, which the gradient swallows: white
   here, around the dark button. */
.rv-cta :focus-visible {
  outline-color: var(--rv-color-text-primary);
}

/* rgba(255,255,255,0.78) is the secondary text colour. */
.rv-cta__eyebrow {
  margin: 0 0 var(--rv-space-4);
  color: var(--rv-color-text-secondary);
  font-family: var(--rv-text-label-font-family);
  font-size: 12px;
  font-weight: var(--rv-text-label-font-weight);
  letter-spacing: 0.2em;
  text-transform: var(--rv-text-label-text-transform);
}

/* The dot sits on the eyebrow's first line, inline, so a long eyebrow wraps
   under it as text rather than as a column beside it. #fff is the primary
   text colour, the ring's rgba(255,255,255,0.65) white at 70%. */
.rv-cta__live {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: var(--rv-space-2);
  border-radius: 50%;
  background: var(--rv-color-text-primary);
  vertical-align: 0.1em;
  animation: rv-cta-pulse 1.8s infinite;
}

@keyframes rv-cta-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--rv-color-alpha-white-70);
  }

  70% {
    box-shadow: 0 0 0 10px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.rv-cta__title {
  margin: 0 0 var(--rv-space-3);
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-display);
  font-size: clamp(32px, 5.4vw, 64px);
  /* Regular, as the preview's: its title sets no weight and takes the heading
     weight, 400; the em and strong bring their own. */
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* The headline's light italic and its bold, on one line, as the preview. */
.rv-cta__title em {
  font-style: var(--rv-text-title-em-font-style);
  font-weight: var(--rv-text-title-em-font-weight);
}

.rv-cta__title strong {
  font-weight: var(--rv-text-display-xl-font-weight);
}

/* The preview's white at 86% is the primary white: without a button or a
   note, the text ends the band, where white at 88% falls under 4.5:1. */
.rv-cta__text {
  max-width: 520px;
  margin: 0 auto;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-body);
  font-size: var(--rv-text-body-font-size);
  line-height: 1.6;
}

/* *emphasis* is the accent highlight elsewhere; the accent on the ramp's
   orange would not read, so here it is bold. */
.rv-cta__text em,
.rv-cta__text strong {
  color: var(--rv-color-text-primary);
  font-style: normal;
  font-weight: 700;
}

/* The preview's dark pill: #191513 is the canvas, #fff the primary text, the
   shadow's rgba(0,0,0,0.6) black at 55%. The text wraps rather than overflow
   a phone (the preview's nowrap held English only), at the label leading,
   near the preview's normal one, so two lines do not touch. Its 16px is the
   preview's: no type token has it. */
.rv-cta__button {
  margin-top: var(--rv-space-6);
  padding: var(--rv-space-4) var(--rv-space-6);
  background: var(--rv-color-surface-canvas);
  color: var(--rv-color-text-primary);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: var(--rv-text-label-line-height);
  white-space: normal;
  box-shadow: 0 14px 34px -12px var(--rv-color-alpha-black-55);
}

/* As specific as the primary button's hover, which it follows: the
   preview's #000 is the sunken surface, rgba(0,0,0,0.7) black at 80%. */
.rv-cta__button:hover:not(:disabled) {
  background: var(--rv-color-surface-sunken);
  box-shadow: 0 18px 40px -12px var(--rv-color-alpha-black-80);
}

.rv-cta__button:active {
  transform: scale(0.98);
}

/* The preview's white at 72% is the primary white: the note ends the band
   when it has one, where only full white reaches 4.5:1 (ruling L8). */
.rv-cta__note {
  margin: var(--rv-space-4) 0 0;
  color: var(--rv-color-text-primary);
  font-family: var(--rv-font-family-body);
  font-size: 12px;
}

/* On a phone the button takes the column's width. */
@media (width <= 520px) {
  .rv-cta__button {
    display: flex;
    box-sizing: border-box;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-cta__live {
    animation: none;
  }
}
