/* ==========================================================================
   MIUUM design system
   One look for every page of miuum.com: a wide fluid container, left-aligned
   editorial type, two-sided sections that alternate, full-width photos,
   hairlines instead of boxed cards, and gold kept for the one main button.

   How to use it
   - Wrap the page content in <main class="rd">. Every class is prefixed rd-
     so nothing collides with chrome.css, booking.css or chat.css.
   - Link this file AFTER the page's own <style> block, with /design-system.js
     (deferred) before </body>.
   - Element resets (headings, paragraphs, copy links, images) are written with
     :where(.rd), so they carry the weight of a bare element selector: any class,
     shared or page-specific, outranks them without help.
   - Because this file loads last, it wins a tie against a page rule of the same
     weight. A page that needs to change a component writes its own class in
     front: .xx-block .rd-facts { ... }.
   - Colors come from the tokens in style.css. Nothing here changes the palette;
     the fallbacks below only fill in for pages that do not load style.css.

   Sections
    1. Tokens             type sizes, spacing, widths, rules
    2. Base and type      resets, headings, lead, text, eyebrow, note, links, focus
    3. Layout             wrap, sections, surfaces, head, split, cols
    4. Buttons            btn, link, actions
    5. Media              media, bleed, shot, caption, icon
    6. Lists and proof    proof, steps, rows, list, facts, tags, quote, faq, scroller
    7. Cards and plans    vehicle, plans
    8. Forms              form, field
    9. Hero
   10. Phone bar          bookbar
   11. Motion             reveal
   12. Site chrome alignment   nav and footer on the content's edges
   13. Utilities          stack, center, hidden
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

/* Fallbacks for the color tokens read from style.css. :where() gives them no
   weight, so style.css, a page's own :root block and the dark theme always win.
   Same values as style.css. */
:where(:root) {
  --ink: #1C1917;
  --cream: #F5F0E8;
  --cream-alt: #EDEAE2;
  --card: #FFFFFF;
  --dark: #1C1917;
  --dark-deep: #0D0C0B;
  --gold-light: #C4A45A;
  --on-gold: #0B0A08;
  --focus-ring: #6B5320;
}

:root {
  /* widths */
  /* never narrower than a notch on either side (the insets are 0 on other screens) */
  --rd-gutter: max(clamp(1.25rem, 5vw, 6rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --rd-max: 90rem;                       /* 1440px cap; about 1300px of content on a 1440 screen */
  --rd-measure: 34rem;                   /* comfortable paragraph width beside a photo */
  --rd-read: 42rem;                      /* long-form reading width */
  /* spacing */
  --rd-gap: clamp(1.5rem, 4vw, 5rem);                   /* between the two sides of a section */
  --rd-section: clamp(4rem, 2.5rem + 7vw, 9.5rem);      /* above and below a section */
  --rd-head-gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);   /* under a section heading block */
  --rd-stack: 1.5rem;                                   /* between stacked blocks of text */
  /* type */
  --rd-serif: 'Fraunces', 'Times New Roman', serif;
  --rd-sans: 'Outfit', system-ui, sans-serif;
  --rd-h1: clamp(2.75rem, 1.55rem + 4.6vw, 5.5rem);
  --rd-h2: clamp(2.125rem, 1.45rem + 2.7vw, 3.875rem);
  --rd-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  --rd-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --rd-body: 1.0625rem;
  --rd-small: 0.9375rem;
  --rd-label: 0.71875rem;
  /* rules and surfaces */
  --rd-rule: rgba(28, 25, 23, 0.14);
  --rd-rule-dark: rgba(245, 240, 232, 0.18);
  --rd-field-line: rgba(28, 25, 23, 0.6);
  --rd-ink-soft: #57514C;
  --rd-on-dark: #F4EFE6;
  --rd-on-dark-soft: rgba(244, 239, 230, 0.72);
  --rd-gold-hover: #B8974C;
  --rd-studio: #141312;
  --rd-error: #9B2C2C;
  --rd-radius: 2px;
  --rd-bar-h: 4.25rem;
  /* smallest control: 24px with a mouse, 44px under a finger */
  --target-size: 24px;
}
@media (pointer: coarse) { :root { --target-size: 44px; } }


/* ==========================================================================
   2. BASE AND TYPE
   ========================================================================== */

.rd { font-family: var(--rd-sans); font-size: var(--rd-body); line-height: 1.6; color: var(--ink); text-align: start; overflow-wrap: break-word; }

/* Resets. :where(.rd) keeps them as light as a bare element selector. */
:where(.rd, .rd *, .rd-bookbar, .rd-bookbar *) { box-sizing: border-box; }
:where(.rd) :is(h1, h2, h3, h4, p, figure, blockquote) { margin: 0; }
:where(.rd) :is(img, video) { max-inline-size: 100%; block-size: auto; }

/* Headings: Fraunces. The same looks are available as classes for other elements. */
:where(.rd) :is(h1, h2, h3), .rd-h1, .rd-h2, .rd-h3 { font-family: var(--rd-serif); font-weight: 350; color: var(--ink); text-wrap: balance; letter-spacing: -0.012em; }
:where(.rd) h1, .rd-h1 { font-size: var(--rd-h1); line-height: 1.02; }
:where(.rd) h2, .rd-h2 { font-size: var(--rd-h2); line-height: 1.06; }
:where(.rd) h3, .rd-h3 { font-size: var(--rd-h3); line-height: 1.18; letter-spacing: -0.005em; }
/* The italic word stays as a quiet accent of shape, not of color. */
:where(.rd) :is(h1, h2, h3) em { font-style: italic; font-weight: 300; color: inherit; }

/* Body copy */
:where(.rd) p { text-wrap: pretty; }
.rd-lead { font-size: var(--rd-lead); line-height: 1.55; color: var(--rd-ink-soft); max-inline-size: var(--rd-measure); }
:where(h1, h2) + .rd-lead { margin-block-start: 1.5rem; }
.rd-text { color: var(--rd-ink-soft); max-inline-size: var(--rd-measure); }
.rd-text + .rd-text { margin-block-start: 1em; }
/* The small-caps label above a heading. */
.rd-eyebrow { display: block; font-family: var(--rd-sans); font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rd-ink-soft); margin-block-end: 1.5rem; }
/* Small print under a block. */
.rd-note { margin-block-start: 2rem; max-inline-size: var(--rd-read); font-size: var(--rd-small); color: var(--rd-ink-soft); }

/* Links inside copy: ink and underlined, also when old markup or a translation
   carries an inline color. */
:where(.rd) a:not([class]) { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:where(.rd) a:not([class])[style*="color"] { color: inherit !important; }

/* Keyboard focus: always visible, bright gold on the dark surfaces. */
.rd :focus-visible, .rd-bookbar :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.rd-hero, .rd-surface-dark, .rd-bookbar { --focus-ring: #C4A45A; }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

/* Wrap: the one left and right edge of the page. */
.rd-wrap { inline-size: min(100% - 2 * var(--rd-gutter), var(--rd-max)); margin-inline: auto; }

/* Sections and their surfaces */
.rd-section { padding-block: var(--rd-section); }
.rd-section--tight { padding-block: calc(var(--rd-section) * 0.6); }
.rd-section--flush-top { padding-block-start: 0; }
.rd-surface-alt { background: var(--cream-alt); }
.rd-surface-white { background: var(--card); }
.rd-surface-dark { background: var(--dark); color: var(--rd-on-dark); --rd-rule: var(--rd-rule-dark); --rd-ink-soft: var(--rd-on-dark-soft); }
.rd-surface-dark :where(h1, h2, h3, .rd-h1, .rd-h2, .rd-h3) { color: var(--rd-on-dark); }

/* Section heading block: eyebrow, heading, optional lead, on the left edge.
   --split (with .rd-cols) puts the heading on one side and a short lead or
   link on the other; being taller, it keeps a little more room underneath. */
.rd-head { max-inline-size: 46rem; margin-block-end: var(--rd-head-gap); }
.rd-head--split { max-inline-size: none; margin-block-end: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.rd-head--split .rd-eyebrow { margin-block-end: 1.25rem; }
.rd-head__side > * + * { margin-block-start: 1.75rem; }

/* Split: two-sided sections that alternate (text one side, photo the other). */
.rd-split { display: grid; gap: var(--rd-gap); align-items: center; }
.rd-split > * { min-inline-size: 0; }
@media (min-width: 56rem) {
  .rd-split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .rd-split > .rd-split__text { grid-column: 1 / span 5; }
  .rd-split > .rd-split__media { grid-column: 7 / span 6; }
  .rd-split--wide-media > .rd-split__text { grid-column: 1 / span 4; }
  .rd-split--wide-media > .rd-split__media { grid-column: 6 / span 7; }
  .rd-split--flip > .rd-split__text { grid-column: 8 / span 5; grid-row: 1; }
  .rd-split--flip > .rd-split__media { grid-column: 1 / span 6; grid-row: 1; }
  .rd-split--flip.rd-split--wide-media > .rd-split__text { grid-column: 9 / span 4; }
  .rd-split--flip.rd-split--wide-media > .rd-split__media { grid-column: 1 / span 7; }
  .rd-split--top { align-items: start; }
  /* A photo that runs to the screen edge on its own side. */
  .rd-split--edge > .rd-split__media { margin-inline-end: calc(-1 * max(var(--rd-gutter), (100vw - var(--rd-max)) / 2)); }
  .rd-split--edge.rd-split--flip > .rd-split__media { margin-inline: calc(-1 * max(var(--rd-gutter), (100vw - var(--rd-max)) / 2)) 0; }
  .rd-sticky { position: sticky; inset-block-start: 6.5rem; }
}
@media (max-width: 55.99rem) {
  /* One column: the photo leads, unless the section says the text does. */
  .rd-split__media { order: -1; }
  .rd-split--text-first .rd-split__media { order: 0; }
}

/* Cols: heading on one side, content on the other (uneven columns). */
.rd-cols { display: grid; gap: clamp(2rem, 4vw, 4rem) var(--rd-gap); }
@media (min-width: 56rem) {
  .rd-cols { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .rd-cols--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   4. BUTTONS
   Gold is for the one main action on a screen.
   ========================================================================== */

.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-block-size: 3.25rem; padding: 0.75rem 1.75rem; border-radius: 999px; border: 1px solid transparent; font-family: var(--rd-sans); font-size: 1rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.rd-btn svg { inline-size: 1.125rem; block-size: 1.125rem; flex: none; transition: translate 0.25s ease; }
.rd-btn:hover svg { translate: 0.2rem 0; }
.rd-btn--primary { background: var(--gold-light); color: var(--on-gold); }
@media (hover: hover) and (pointer: fine) { .rd-btn--primary:hover { background: var(--rd-gold-hover); } }
.rd-btn--dark { background: var(--ink); color: var(--cream); }
@media (hover: hover) and (pointer: fine) { .rd-btn--dark:hover { background: #000; } }
.rd-btn--line { background: transparent; color: var(--ink); border-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .rd-btn--line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); } }
.rd-surface-dark .rd-btn--line, .rd-hero .rd-btn--line { color: var(--rd-on-dark); }
@media (hover: hover) and (pointer: fine) { .rd-surface-dark .rd-btn--line:hover, .rd-hero .rd-btn--line:hover { background: var(--rd-on-dark); color: var(--ink); border-color: var(--rd-on-dark); } }

/* The quiet second action: an underlined text link with an optional arrow. */
.rd-link { display: inline-flex; align-items: center; gap: 0.6rem; min-block-size: var(--target-size); font-weight: 500; color: inherit; text-decoration: none; border-block-end: 1px solid currentColor; padding-block-end: 0.15rem; }
.rd-link svg { inline-size: 1rem; block-size: 1rem; transition: translate 0.25s ease; }
.rd-link:hover svg { translate: 0.2rem 0; }

/* A row of actions under a block of text. */
.rd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-block-start: 2.25rem; }
@media (max-width: 55.99rem) { .rd-actions .rd-btn { inline-size: 100%; } }


/* ==========================================================================
   5. MEDIA
   One photo treatment everywhere: no shadow, 2px radius, fixed ratios.
   ========================================================================== */

.rd-media { position: relative; overflow: hidden; border-radius: var(--rd-radius); background: var(--cream-alt); margin: 0; }
.rd-media img, .rd-media video { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.03); }
.rd-media--portrait { aspect-ratio: 4 / 5; }
.rd-media--landscape { aspect-ratio: 3 / 2; }
.rd-media--wide { aspect-ratio: 16 / 9; }
/* Vehicle studio renders sit whole on a dark panel. */
.rd-media--studio { background: var(--rd-studio); }
.rd-media--studio img { object-fit: contain; filter: none; }

/* A photo across the full width of the screen. */
.rd-bleed { inline-size: 100%; margin: 0; overflow: hidden; background: var(--dark); }
.rd-bleed img { display: block; inline-size: 100%; block-size: clamp(22rem, 46vw, 46rem); object-fit: cover; filter: saturate(0.9) contrast(1.03); }
@media (max-width: 55.99rem) { .rd-bleed img { block-size: auto; aspect-ratio: 4 / 5; } }

/* A screenshot or a drawn screen: flat, hairline border, no tilt, no shadow.
   It is a size container, so a drawing inside can scale with cqi units. */
.rd-shot { container-type: inline-size; margin: 0; border: 1px solid var(--rd-rule); border-radius: var(--rd-radius); background: var(--card); overflow: clip; }

.rd-caption { margin-block-start: 0.875rem; font-size: var(--rd-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rd-ink-soft); }

/* Icons: thin line, current color. */
.rd-icon { inline-size: 1.25rem; block-size: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }


/* ==========================================================================
   6. LISTS AND PROOF
   Drawn with hairlines, not boxes.
   ========================================================================== */

.rd-rule { border: 0; border-block-start: 1px solid var(--rd-rule); margin: 0; }

/* Proof: three large figures with small-caps labels. */
.rd-proof { display: grid; gap: 0 var(--rd-gap); margin: 0; padding: 0; list-style: none; }
.rd-proof > * { padding-block: 1.75rem; border-block-start: 1px solid var(--rd-rule); }
.rd-proof__num { display: block; font-family: var(--rd-serif); font-weight: 300; font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; color: inherit; }
.rd-proof__label { display: block; margin-block-start: 0.875rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rd-ink-soft); }
@media (min-width: 48rem) { .rd-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Steps: numbered, three across; --four is two across on tablets, four on wide screens. */
.rd-steps { display: grid; gap: 0 var(--rd-gap); margin: 0; padding: 0; list-style: none; counter-reset: rd-step; }
.rd-steps > * { counter-increment: rd-step; padding-block: 2rem; border-block-start: 1px solid var(--rd-rule); }
.rd-steps > *::before { content: counter(rd-step, decimal-leading-zero); display: block; margin-block-end: 1.5rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.2em; color: var(--rd-ink-soft); }
.rd-steps p { margin-block-start: 0.75rem; color: var(--rd-ink-soft); max-inline-size: 26rem; }
@media (min-width: 48rem) {
  .rd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-steps--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 75rem) { .rd-steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Rows: a title and its explanation side by side. */
.rd-rows { margin: 0; padding: 0; list-style: none; }
.rd-rows > * { display: grid; gap: 0.5rem 2rem; padding-block: 1.5rem; border-block-start: 1px solid var(--rd-rule); }
.rd-rows > *:last-child { border-block-end: 1px solid var(--rd-rule); }
.rd-rows p { color: var(--rd-ink-soft); }
@media (min-width: 40rem) { .rd-rows > * { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; } }

/* List: plain points, one per hairline (beside a photo or a screenshot). */
.rd-list { margin: 0; padding: 0; list-style: none; }
.rd-list > li { padding-block: 1rem; border-block-start: 1px solid var(--rd-rule); color: var(--rd-ink-soft); text-wrap: pretty; }
.rd-list > li:last-child { border-block-end: 1px solid var(--rd-rule); }
.rd-surface-dark .rd-list > li { color: var(--rd-on-dark); }

/* Facts: one line of short facts split by hairlines, with or without icons. */
.rd-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 0; margin: 0; padding: 0; list-style: none; font-size: var(--rd-small); letter-spacing: 0.04em; color: var(--rd-ink-soft); }
.rd-facts > * { display: inline-flex; align-items: center; gap: 0.5rem; }
/* The item's own gap follows the divider, so the divider sits in the middle. */
.rd-facts > * + *::before { content: ""; inline-size: 1px; block-size: 0.9em; background: var(--rd-rule); margin-inline: 1rem 0.5rem; }

/* Tags: a static line of short phrases in small caps, split by hairlines.
   Every item draws a rule on its leading side; the wrapper clips the one that
   would start a row, so a wrapped row never begins with a rule. */
.rd-tags { overflow: clip; margin-block-start: var(--rd-gap); }
.rd-tags ul { display: flex; flex-wrap: wrap; gap: 0.875rem 0; margin: 0 0 0 calc(-1.25rem - 1px); padding: 0; list-style: none; }
.rd-tags li { padding-inline: 1.25rem; border-inline-start: 1px solid var(--rd-rule); font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-tags + .rd-proof { margin-block-start: 2.5rem; }

/* Quote: a client's words in the serif, the name in small caps. */
.rd-quote { margin: 0; }
.rd-quote blockquote { margin: 0; font-family: var(--rd-serif); font-weight: 300; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.35; text-wrap: pretty; }
.rd-quote figcaption { margin-block-start: 1.25rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rd-ink-soft); }

/* Questions: native details, hairlines, no boxes. */
.rd-faq { border-block-end: 1px solid var(--rd-rule); }
.rd-faq details { border-block-start: 1px solid var(--rd-rule); }
.rd-faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-block: 1.375rem; min-block-size: var(--target-size); cursor: pointer; list-style: none; font-family: var(--rd-serif); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); font-weight: 400; line-height: 1.3; }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; flex: none; font-family: var(--rd-sans); font-weight: 300; font-size: 1.5rem; line-height: 1; transition: rotate 0.25s ease; }
.rd-faq details[open] summary::after { rotate: 45deg; }
.rd-faq details > :not(summary) { padding-block-end: 1.5rem; color: var(--rd-ink-soft); max-inline-size: var(--rd-read); }

/* Scroller: on phones and tablets a list becomes one row you swipe, running to
   both screen edges. The list inside sets its own column width (a grid with
   grid-auto-flow: column and inline-size: max-content). design-system.js makes
   the row a keyboard stop only while it really scrolls sideways; give it
   role="region" and a name. */
@media (max-width: 55.99rem) {
  .rd-scroller { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--rd-gutter)); padding-inline: var(--rd-gutter); scroll-padding-inline: var(--rd-gutter); }
  .rd-scroller::-webkit-scrollbar { display: none; }
  .rd-scroller:focus-visible { outline-offset: -2px; }
  .rd-scroller > * > * { scroll-snap-align: start; }
}


/* ==========================================================================
   7. CARDS AND PLANS
   Blocks of related facts. Still no boxes: white space and hairlines.
   ========================================================================== */

/* Vehicle: used with .rd-split. One studio image on one side; class label,
   name, one facts line and one action on the other. A span inside the name is
   the small "or similar" note. */
.rd-vehicle { scroll-margin-block-start: 7rem; }
.rd-vehicle + .rd-vehicle { margin-block-start: clamp(3.5rem, 7vw, 7.5rem); }
.rd-vehicle .rd-eyebrow { margin-block-end: 1rem; }
.rd-vehicle__name { margin: 0; font-family: var(--rd-serif); font-weight: 350; font-size: clamp(2rem, 1.45rem + 2.1vw, 3.25rem); line-height: 1.06; letter-spacing: -0.012em; color: inherit; text-wrap: balance; }
.rd-vehicle__name span { font-family: var(--rd-sans); font-size: var(--rd-small); font-weight: 400; letter-spacing: 0.04em; color: var(--rd-ink-soft); }
.rd-vehicle .rd-facts { margin-block-start: 1.5rem; }
.rd-vehicle .rd-actions { margin-block-start: 2rem; }

/* Plans: columns split by hairlines, with the rows (name, figure, price, list,
   action) lined up across the columns. */
.rd-plans { display: grid; }
.rd-plan { padding-block: 2rem; border-block-start: 1px solid var(--rd-rule); }
.rd-plan:last-child { border-block-end: 1px solid var(--rd-rule); }
.rd-plan__name { font-family: var(--rd-sans); font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.2em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-plan__fig { margin-block-start: 1.25rem; font-family: var(--rd-serif); font-weight: 300; font-size: clamp(3rem, 2.4rem + 2.2vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.rd-plan__fig small { font-family: var(--rd-sans); font-size: var(--rd-small); font-weight: 400; letter-spacing: 0; color: var(--rd-ink-soft); }
.rd-plan__price { margin-block-start: 0.875rem; font-weight: 500; color: var(--ink); }
.rd-plan__list { margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: var(--rd-small); }
.rd-plan__list li { padding-block: 0.75rem; border-block-start: 1px solid var(--rd-rule); color: var(--rd-ink-soft); }
.rd-plan__action { margin-block-start: 1.75rem; inline-size: 100%; }
@media (min-width: 56rem) {
  .rd-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr auto; border-block: 1px solid var(--rd-rule); }
  .rd-plan, .rd-plan:last-child { display: grid; grid-row: 1 / span 5; grid-template-rows: auto auto auto 1fr auto; grid-template-rows: subgrid; align-content: start; padding: 2.5rem clamp(1.5rem, 2.6vw, 3rem); border-block: 0; border-inline-start: 1px solid var(--rd-rule); }
  .rd-plan:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .rd-plan:last-child { padding-inline-end: 0; }
  .rd-plan__name { grid-row: 1; }
  .rd-plan__fig { grid-row: 2; }
  .rd-plan__price { grid-row: 3; }
  .rd-plan__list { grid-row: 4; }
  .rd-plan__action { grid-row: 5; align-self: end; }
}


/* ==========================================================================
   8. FORMS
   Label above the field, one column at a comfortable width, a border that
   can be seen, and an error cue that is not only a color.
   ========================================================================== */

.rd-form { display: grid; gap: 1.25rem; max-inline-size: var(--rd-measure); }
.rd-form > .rd-actions { margin-block-start: 0.75rem; }
@media (min-width: 40rem) {
  .rd-form--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-inline-size: none; }
  .rd-form--two > .rd-field--full, .rd-form--two > .rd-actions { grid-column: 1 / -1; }
}
.rd-field { display: grid; gap: 0.5rem; }
.rd-field label { font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-field :is(input, select, textarea) { inline-size: 100%; min-block-size: 3.25rem; padding: 0.75rem 1rem; border: 1px solid var(--rd-field-line); border-radius: var(--rd-radius); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .rd-field :is(input, select, textarea):hover { border-color: var(--ink); } }
.rd-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--ink); }
.rd-field :is(input, select, textarea):user-invalid { border-color: var(--rd-error); box-shadow: inset 0 0 0 1px var(--rd-error); }
.rd-field :is(input, textarea):user-invalid { padding-inline-end: 3rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B2C2C' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1.375rem; }
.rd-field__hint { font-size: var(--rd-small); color: var(--rd-ink-soft); }


/* ==========================================================================
   9. HERO
   A full-width photo under a dark veil: the one place text may sit centered.
   ========================================================================== */

.rd-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-block-size: min(46rem, 88svh); padding-block: 9rem clamp(2.5rem, 6vw, 5rem); background: var(--dark); color: var(--rd-on-dark); }
.rd-hero--short { min-block-size: min(34rem, 70svh); }
.rd-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.rd-hero__media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.rd-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,0.72) 0%, rgba(28,25,23,0.28) 34%, rgba(28,25,23,0.52) 68%, rgba(28,25,23,0.9) 100%); }
.rd-hero :is(h1, h2) { color: var(--rd-on-dark); max-inline-size: 15ch; }
.rd-hero .rd-lead { color: var(--rd-on-dark-soft); }
.rd-hero .rd-eyebrow { color: var(--rd-on-dark-soft); }
@media (max-width: 55.99rem) { .rd-hero { min-block-size: 0; padding-block-start: 7.5rem; } }


/* ==========================================================================
   10. PHONE BAR
   <div class="rd-bookbar" data-rd-watch=".rd-hero" data-rd-hide="#form">
     <span class="rd-bookbar__text">...</span><a class="rd-btn rd-btn--primary">...</a>
   </div>
   Fixed to the foot of the screen under 768px. design-system.js shows it
   (.is-on) once the element named in data-rd-watch has scrolled away, and
   steps it aside (.is-away) while the optional data-rd-hide element, the same
   action in the page, is on screen.
   ========================================================================== */

.rd-bookbar { display: none; }
/* Its own block at every width, so a page translator reads it as its own line. */
.rd-bookbar__text { display: block; }
@media (max-width: 47.99rem) {
  html:has(.rd-bookbar) { scroll-padding-block-end: calc(var(--rd-bar-h) + env(safe-area-inset-bottom, 0px)); }
  body:has(.rd-bookbar) { padding-block-end: calc(var(--rd-bar-h) + env(safe-area-inset-bottom, 0px)); }
  .rd-bookbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90; display: flex; align-items: center; gap: 1rem; padding: 0.625rem max(1rem, env(safe-area-inset-right, 0px)) max(0.625rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); background: var(--dark, #1C1917); color: var(--rd-on-dark); border-block-start: 1px solid var(--rd-rule-dark); translate: 0 110%; transition: translate 0.3s ease; }
  .rd-bookbar.is-on { translate: 0 0; }
  .rd-bookbar.is-on.is-away { translate: 0 110%; }
  .rd-bookbar__text { flex: 1; min-inline-size: 0; font-size: var(--rd-small); line-height: 1.3; color: var(--rd-on-dark-soft); }
  .rd-bookbar .rd-btn { min-block-size: 3rem; padding-inline: 1.5rem; flex: none; }
  /* The chat button sits above the bar instead of on top of its button. */
  body:has(.rd-bookbar.is-on) #pl-chat-btn { bottom: calc(var(--rd-bar-h) + 0.875rem + env(safe-area-inset-bottom, 0px)); }
  @media (prefers-reduced-motion: reduce) { .rd-bookbar { transition: none; } }
}


/* ==========================================================================
   11. MOTION
   ========================================================================== */

/* ── Quiet scroll reveal: a short fade and 16px rise, driven by scroll.
   Decorative, so browsers without scroll-driven animations simply show the content. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rd-rise { from { opacity: 0; translate: 0 1rem; } }
    .rd-reveal { animation: rd-rise auto linear backwards; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}


/* ==========================================================================
   12. SITE CHROME ALIGNMENT
   On pages that use the system, the nav bar's brand and right edge and the
   footer's inner block sit on the same edges as .rd-wrap at every width.
   chrome.css itself is not touched; these rules only outrank it here.
   ========================================================================== */

body:has(main.rd) .mm-nav .mm-bar { padding-inline: max(var(--rd-gutter), (100% - var(--rd-max)) / 2); }
body:has(main.rd) footer.mm-foot { padding-inline: 0; }
body:has(main.rd) footer.mm-foot::before { inset-inline: max(var(--rd-gutter), (100% - var(--rd-max)) / 2); }
body:has(main.rd) .mm-foot .mm-foot-inner { max-inline-size: none; inline-size: min(100% - 2 * var(--rd-gutter), var(--rd-max)); margin-inline: auto; }
/* The footer's last row now reaches the content's right edge, where the round chat
   button floats (88px in from the screen edge). On the widths where chrome.css
   used to keep the row clear with its own side padding, the row stops short of it. */
@media (min-width: 1081px) {
  body:has(main.rd):has(#pl-chat-btn) .mm-foot .mm-fbottom { padding-inline-end: max(0px, 6rem - var(--rd-gutter)); }
}


/* ==========================================================================
   13. UTILITIES
   Last in the file, so they win a tie against a component's own margin.
   ========================================================================== */

/* Stack: even space between the blocks of a column of text. */
.rd-stack > * + * { margin-block-start: var(--rd-stack, 1.5rem); }
.rd-stack > .rd-actions { margin-block-start: 2.25rem; }

.rd-center { text-align: center; }
.rd-center :is(.rd-lead, .rd-text) { margin-inline: auto; }

/* The hidden attribute always hides, whatever display a component sets. */
.rd [hidden]:not([hidden="until-found"]) { display: none !important; }


/* ── Landing pages ── */
/* ==========================================================================
   The service landing pages (airport transfers, corporate car service,
   weddings, by the hour, city to city): <main class="rd rd-lp">.
   Everything above this line is unchanged; these classes only add to it.
   The section by section recipe and the HTML skeletons are in
   miuum-redesign-audit/LANDING-TEMPLATE.md.

     rd-lp          on <main>: the landing h2 size
     rd-lp-hero     with .rd-hero: a lighter veil, the crop set per page
     rd-lp-facts    the facts grid under the hero (value above label)
     rd-lp-points   the short feature list as a hairline grid
     rd-lp-rows     a heading and its paragraph per hairline
     rd-lp-table    a hairline table that stacks instead of scrolling
     rd-lp-faq      with .rd-faq: questions that keep their h3
     rd-lp-trust    the one line about licensing, with a line icon
     rd-lp-close    the closing band on the dark surface
   ========================================================================== */

/* These pages carry long search headings, so h2 runs a step smaller than the
   system h2 and still fits the narrow side of .rd-cols in three or four lines. */
.rd-lp h2 { font-size: clamp(1.875rem, 1.4rem + 1.9vw, 3rem); line-height: 1.1; }
/* The small headings inside lists and tables. */
.rd-lp-points h3, .rd-lp-rows h3, .rd-lp-table tbody th { font-family: var(--rd-serif); font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
/* A list or a table under the paragraphs of a .rd-stack column. */
.rd-stack > :is(.rd-lp-rows, .rd-lp-table-wrap) { margin-block-start: 2.5rem; }

/* Hero: the photo stays a photo. A lighter veil than the shared hero, dark only
   where the white menu and the words sit. The crop is set on the section:
   style="--rd-lp-pos: 50% 70%; --rd-lp-pos-phone: 70% 60%". */
.rd-lp-hero .rd-hero__media img { object-position: var(--rd-lp-pos, center); }
.rd-lp-hero .rd-hero__media::after {
  background:
    linear-gradient(90deg, rgba(28,25,23,0.8) 0%, rgba(28,25,23,0.55) 34%, rgba(28,25,23,0) 70%),
    linear-gradient(180deg, rgba(28,25,23,0.62) 0%, rgba(28,25,23,0.12) 26%, rgba(28,25,23,0.12) 56%, rgba(28,25,23,0.62) 100%);
}
@media (max-width: 55.99rem) {
  /* Phones and tablets: the photo sits whole above the words instead of under
     them (a wide photo cropped to a tall screen loses its subject). It is dark
     only at the top, for the white menu, and fades into the band at its foot. */
  .rd-hero.rd-lp-hero { display: block; min-block-size: 0; padding-block-start: 0; }
  .rd-lp-hero .rd-hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; max-block-size: 62svh; inline-size: 100%; margin-block-end: 1.75rem; }
  .rd-lp-hero .rd-hero__media img { object-position: var(--rd-lp-pos-phone, var(--rd-lp-pos, center)); }
  .rd-lp-hero .rd-hero__media::after { background: linear-gradient(180deg, rgba(28,25,23,0.66) 0%, rgba(28,25,23,0.08) 34%, rgba(28,25,23,0) 72%, rgba(28,25,23,1) 100%); }
}

/* Facts: four to six facts right under the hero, the value large above a
   small-caps label, the cells split by hairlines. Two across on phones, one
   row from 48rem. Both spans are blocks, so the page translator reads the
   label as its own line. */
.rd-lp-facts { display: grid; margin: 0; padding: 0; list-style: none; }
.rd-lp-facts > li { min-inline-size: 0; padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); border-block-end: 1px solid var(--rd-rule); }
.rd-lp-facts__value { display: block; font-family: var(--rd-serif); font-weight: 300; font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; color: var(--ink); }
.rd-lp-facts__label { display: block; margin-block-start: 0.75rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
@media (max-width: 47.99rem) {
  .rd-lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-lp-facts > li:nth-child(odd) { padding-inline-end: 1rem; }
  .rd-lp-facts > li:nth-child(even) { padding-inline-start: 1.25rem; border-inline-start: 1px solid var(--rd-rule); }
}
@media (min-width: 48rem) {
  .rd-lp-facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .rd-lp-facts > li { padding-inline-end: 1.5rem; }
  .rd-lp-facts > li + li { padding-inline-start: clamp(1.25rem, 2.4vw, 2.75rem); border-inline-start: 1px solid var(--rd-rule); }
}

/* Points: the short feature list (a heading and two or three lines each) as a
   hairline grid under a split: one, two, then three across. */
.rd-lp-points { display: grid; gap: 0 var(--rd-gap); margin: clamp(3rem, 2rem + 4vw, 5.5rem) 0 0; padding: 0; list-style: none; }
.rd-lp-points > li { padding-block: 1.75rem; border-block-start: 1px solid var(--rd-rule); }
.rd-lp-points p { margin-block-start: 0.625rem; max-inline-size: 30rem; color: var(--rd-ink-soft); }
@media (min-width: 40rem) { .rd-lp-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .rd-lp-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Rows: a heading and its paragraph per hairline. The list measures itself:
   stacked in a narrow column (beside a photo), heading and text side by side
   once the list is 40rem wide (the wide side of .rd-cols). */
.rd-lp-rows { container-type: inline-size; margin: 0; padding: 0; list-style: none; }
.rd-lp-rows > li { display: grid; gap: 0.5rem 2rem; padding-block: 1.5rem; border-block-start: 1px solid var(--rd-rule); }
.rd-lp-rows > li:last-child { border-block-end: 1px solid var(--rd-rule); }
.rd-lp-rows p { color: var(--rd-ink-soft); }
@container (inline-size >= 40rem) {
  .rd-lp-rows > li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; }
}

/* Table: a real table (thead, th scope="col", th scope="row") drawn with
   hairlines. Its wrapper measures itself: under 40rem of its own width every
   row becomes a block (the row heading, then its cells), so the table never
   scrolls sideways. An optional first cell, .rd-lp-table__img, holds a small
   studio render; leave it empty on a row that has none. */
.rd-lp-table-wrap { container-type: inline-size; }
.rd-lp-table { inline-size: 100%; border-collapse: collapse; }
.rd-lp-table :is(th, td) { padding: 1.25rem 1.5rem 1.25rem 0; border-block-end: 1px solid var(--rd-rule); text-align: start; vertical-align: top; }
.rd-lp-table :is(th, td):last-child { padding-inline-end: 0; }
.rd-lp-table thead :is(th, td) { padding-block: 0 0.875rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-lp-table tbody th { inline-size: 27%; }
.rd-lp-table td { color: var(--rd-ink-soft); }
.rd-lp-table .rd-lp-table__img { inline-size: 9.5rem; padding-block: 1rem; }
.rd-lp-table__img .rd-media { inline-size: 8rem; aspect-ratio: 2 / 1; }
@container (inline-size < 40rem) {
  .rd-lp-table, .rd-lp-table :is(tbody, tr, th, td) { display: block; }
  .rd-lp-table thead { display: none; }
  .rd-lp-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.375rem 1.125rem; padding-block: 1.25rem; border-block-end: 1px solid var(--rd-rule); }
  .rd-lp-table tbody tr:first-child { border-block-start: 1px solid var(--rd-rule); }
  .rd-lp-table tbody :is(th, td), .rd-lp-table tbody .rd-lp-table__img { padding: 0; border: 0; inline-size: auto; }
  .rd-lp-table tbody tr:has(.rd-lp-table__img:not(:empty)) { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .rd-lp-table tbody tr:has(.rd-lp-table__img:not(:empty)) > :not(.rd-lp-table__img) { grid-column: 2; }
  .rd-lp-table .rd-lp-table__img:not(:empty) { grid-column: 1; grid-row: 1 / span 4; }
  .rd-lp-table .rd-lp-table__img:empty { display: none; }
  .rd-lp-table__img .rd-media { inline-size: 100%; }
}

/* Questions that keep their h3 inside the summary (they are search headings). */
.rd-lp-faq summary :is(h3, h4) { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; text-wrap: pretty; }

/* Trust line: the one published sentence about licensing, beside a line icon. */
.rd-lp-trust { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.875rem; align-items: start; max-inline-size: var(--rd-read); font-size: var(--rd-small); color: var(--rd-ink-soft); }
.rd-lp-trust .rd-icon { margin-block-start: 0.15rem; color: var(--ink); }
.rd-stack > .rd-lp-trust { margin-block-start: 2rem; }

/* Closing band: the page's closing heading and line beside a wide photo, on
   the dark surface, with the gold button and the outlined call button. */
.rd-lp-close .rd-lead { max-inline-size: 30rem; }
.rd-lp-close .rd-actions { margin-block-start: 2.5rem; }


/* ── Documents ── */
/* ==========================================================================
   Legal and policy pages (terms, privacy, the agreements, policies, SMS):
   <main class="rd rd-doc">. Everything above this line is unchanged; these
   classes only add to it. The page shell, a snippet for every block and the
   way to convert the old markup are in miuum-redesign-audit/LEGAL-TEMPLATE.md.

     rd-doc           on <main>
     rd-doc-head      the document header on the dark surface: label, h1, lead
     rd-doc-meta      the "effective, entity, location" line and Print
     rd-doc-print     the Print button in that line
     rd-doc-frame     contents list, reading column, related documents
     rd-doc-toc       the contents list ("On this page"), a <details>
     rd-doc-body      the reading column: headings, paragraphs, lists
     rd-doc-note      a notice inside the text
     rd-doc-muted     small print
     rd-doc-table     a hairline table that stacks instead of scrolling
     rd-doc-rows      definition or fee rows: a name and its amount
     rd-doc-acc       with .rd-faq: flat accordions inside a document
     rd-doc-fig       a screenshot or an example with its caption
     rd-doc-check     a checkbox with its consent text
     rd-doc-related   the related documents list
     rd-doc-index     an index of documents, one row per document
   ========================================================================== */

/* Header: text only, on the dark surface (with .rd-surface-dark .on-dark), so
   the white menu sits on it. Left edge, one lead line, then the facts line. */
.rd-doc-head { padding-block: clamp(8.5rem, 6.5rem + 6vw, 12rem) clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.rd-doc-head h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); line-height: 1.04; max-inline-size: 20ch; }
.rd-doc-head .rd-eyebrow { margin-block-end: 1.25rem; }
.rd-doc-head .rd-lead { max-inline-size: 46rem; }

/* The facts line: small-caps label above its value, Print at the far end. */
.rd-doc-meta { display: flex; flex-wrap: wrap; align-items: end; gap: 1.5rem 2rem; margin-block-start: clamp(2rem, 1.5rem + 2vw, 3.25rem); padding-block-start: 1.5rem; border-block-start: 1px solid var(--rd-rule); }
.rd-doc-meta ul { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; margin: 0; padding: 0; list-style: none; }
.rd-doc-meta li { font-size: var(--rd-small); line-height: 1.4; }
.rd-doc-meta li b { display: block; margin-block-end: 0.375rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.2em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-doc-print { min-block-size: 2.75rem; padding: 0.5rem 1.25rem; font-size: var(--rd-small); }
.rd-doc-print:hover svg { translate: none; }
@media (min-width: 40rem) { .rd-doc-print { margin-inline-start: auto; } }

/* Frame. One column on phones: contents, text, related. From 64rem the
   contents list stays in view on the page's left edge and the reading column
   ends on its right edge. From 80rem the related documents take a third
   column, so a wide screen has no empty margin. */
.rd-doc-frame { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem var(--rd-gap); padding-block: clamp(2rem, 1.25rem + 3.5vw, 4.5rem) var(--rd-section); }
.rd-doc-frame > * { min-inline-size: 0; }
/* A document with no contents list (an index page): one full-width column. */
.rd-doc-frame--plain { display: block; }
@media (min-width: 64rem) {
  .rd-doc-frame { grid-template-columns: minmax(13rem, 18rem) minmax(0, var(--rd-read)); justify-content: space-between; align-items: start; row-gap: 0; }
  .rd-doc-frame > * { grid-column: 2; }
  .rd-doc-frame > .rd-doc-toc { grid-column: 1; grid-row: 1 / span 2; position: sticky; inset-block-start: 6.5rem; max-block-size: calc(100dvh - 8rem); overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin: -4px; }
  .rd-doc-frame > .rd-doc-related { margin-block-start: 3.5rem; }
}
@media (min-width: 80rem) {
  .rd-doc-frame { grid-template-columns: minmax(12rem, 18rem) minmax(0, var(--rd-read)) minmax(11rem, 15rem); }
  .rd-doc-frame > .rd-doc-related { grid-column: 3; grid-row: 1; margin-block-start: 0; position: sticky; inset-block-start: 6.5rem; }
}

/* Contents list: <details> so a phone shows one row to open; from 64rem it is
   always open. The section on screen is ink with a heavier rule (not color
   alone); .is-current is set by the page script where :target-current is unknown. */
.rd-doc-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 3.25rem; list-style: none; cursor: pointer; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-doc-toc summary::-webkit-details-marker { display: none; }
.rd-doc-toc summary::after { content: "+"; flex: none; font-weight: 300; font-size: 1.5rem; line-height: 1; letter-spacing: 0; color: var(--ink); transition: rotate 0.25s ease; }
.rd-doc-toc[open] summary::after { rotate: 45deg; }
.rd-doc-toc ol { margin: 0; padding: 0; list-style: none; scroll-target-group: auto; }
.rd-doc-toc a { display: flex; align-items: center; min-block-size: max(var(--target-size), 2.25rem); padding: 0.3125rem 0 0.3125rem 1.125rem; border-inline-start: 1px solid var(--rd-rule); font-size: var(--rd-small); line-height: 1.35; text-decoration: none; color: var(--rd-ink-soft); transition: color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .rd-doc-toc a:hover { color: var(--ink); } }
.rd-doc-toc a:is(:target-current, .is-current) { color: var(--ink); border-inline-start-color: var(--ink); box-shadow: -1px 0 0 var(--ink); }
@media (max-width: 63.99rem) {
  .rd-doc-toc { border-block: 1px solid var(--rd-rule); }
  .rd-doc-toc ol { padding-block-end: 1.25rem; }
  .rd-doc-toc a { min-block-size: 2.75rem; }
}
@media (min-width: 64rem) {
  .rd-doc-toc summary { min-block-size: 0; margin-block-end: 1.125rem; pointer-events: none; cursor: default; }
  .rd-doc-toc summary::after { content: none; }
  /* Open at this width even where no script ran. */
  .rd-doc-toc::details-content { content-visibility: visible; }
}

/* Reading column */
.rd-doc-body { font-size: var(--rd-body); line-height: 1.65; color: var(--ink); }
.rd-doc-body > * + * { margin-block-start: 1.125rem; }
.rd-doc-body > p:first-child { font-size: var(--rd-lead); line-height: 1.55; }
.rd-doc-body h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem); line-height: 1.15; scroll-margin-block-start: 6.5rem; }
.rd-doc-body h2:focus { outline: none; }
/* Every section opens on a hairline. */
.rd-doc-body > h2 { margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-block-start: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); border-block-start: 1px solid var(--rd-rule); }
.rd-doc-body > h2:first-child { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
.rd-doc-body h2 .n { margin-inline-end: 0.75rem; font-weight: 300; color: var(--rd-ink-soft); }
.rd-doc-body h3 { font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.25; scroll-margin-block-start: 6.5rem; }
.rd-doc-body > h3 { margin-block-start: 2rem; }
.rd-doc-body :is(ul, ol):not([class]) { padding-inline-start: 1.375rem; }
.rd-doc-body :is(ul, ol):not([class]) > li + li { margin-block-start: 0.625rem; }
.rd-doc-body li > :is(ul, ol, p) { margin-block-start: 0.625rem; }
.rd-doc-body li::marker { color: var(--rd-ink-soft); }
.rd-doc-body :is(strong, b) { font-weight: 600; }
/* Blocks that are not running text keep more air around them. */
.rd-doc-body > :is(.rd-doc-note, .rd-doc-table-wrap, .rd-doc-rows, .rd-doc-fig, .rd-doc-figs, .rd-faq, .rd-form) { margin-block: 1.75rem; }
.rd-doc-body > :last-child { margin-block-end: 0; }

/* Notice: no box, an ink hairline above and a hairline below. */
.rd-doc-note { padding-block: 1.25rem; border-block: 1px solid var(--rd-rule); border-block-start-color: var(--ink); font-size: 1rem; line-height: 1.6; }
.rd-doc-note > * + * { margin-block-start: 0.75rem; }
/* Small print */
.rd-doc-muted { font-size: var(--rd-small); color: var(--rd-ink-soft); }

/* Table: a real table drawn with hairlines. Its wrapper measures itself: under
   34rem of its own width each row becomes a block and every cell shows its
   column heading from data-label, so the table never scrolls sideways. */
.rd-doc-table-wrap { container-type: inline-size; }
.rd-doc-table { inline-size: 100%; border-collapse: collapse; font-size: var(--rd-small); line-height: 1.5; }
.rd-doc-table caption { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rd-doc-table :is(th, td) { padding: 0.875rem 1.25rem 0.875rem 0; border-block-end: 1px solid var(--rd-rule); text-align: start; vertical-align: top; font-weight: 400; color: var(--rd-ink-soft); }
.rd-doc-table :is(th, td):last-child { padding-inline-end: 0; }
.rd-doc-table thead :is(th, td) { padding-block-start: 0; border-block-end-color: var(--ink); font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-wrap: balance; }
.rd-doc-table tbody :is(th, td:first-child) { font-weight: 500; color: var(--ink); }
@container (inline-size < 34rem) {
  .rd-doc-table, .rd-doc-table :is(tbody, tr, th, td) { display: block; }
  .rd-doc-table thead { display: none; }
  .rd-doc-table tbody tr { padding-block: 1rem; border-block-end: 1px solid var(--rd-rule); }
  .rd-doc-table tbody tr:first-child { border-block-start: 1px solid var(--ink); }
  .rd-doc-table tbody :is(th, td) { padding: 0; border: 0; }
  .rd-doc-table tbody :is(th, td) + :is(th, td) { margin-block-start: 0.625rem; }
  .rd-doc-table [data-label]::before { content: attr(data-label); display: block; margin-block-end: 0.125rem; font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.18em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
}

/* Rows: a name and its amount or meaning on one hairline (<dl> with a <div>
   per row, or <ul> with two spans per <li>). */
.rd-doc-rows { margin: 0; padding: 0; list-style: none; }
.rd-doc-rows > * { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; padding-block: 0.875rem; border-block-start: 1px solid var(--rd-rule); }
.rd-doc-rows > :last-child { border-block-end: 1px solid var(--rd-rule); }
.rd-doc-rows > * > * { margin: 0; min-inline-size: 0; }
.rd-doc-rows > * > :first-child { flex: 1 1 12rem; }
.rd-doc-rows > * > :last-child:not(:first-child) { max-inline-size: 100%; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Accordions inside a document: .rd-faq does the drawing; the summary may
   hold the section's own heading. */
.rd-doc-acc summary :is(h2, h3, h4) { margin: 0; padding: 0; border: 0; font: inherit; letter-spacing: inherit; color: inherit; text-wrap: pretty; }
.rd-doc-acc details > :not(summary) + :not(summary) { margin-block-start: -0.75rem; }

/* Figure: a screenshot or a drawn example, flat, with its caption. */
.rd-doc-fig { margin: 0; border: 1px solid var(--rd-rule); border-radius: var(--rd-radius); background: var(--card); overflow: clip; }
.rd-doc-fig img { display: block; inline-size: 100%; block-size: auto; }
.rd-doc-fig figcaption { padding: 0.75rem 1rem; font-size: var(--rd-small); line-height: 1.5; color: var(--rd-ink-soft); }
.rd-doc-fig--phone { max-inline-size: 22rem; }
.rd-doc-fig--pad { padding: 1.25rem; }
.rd-doc-fig--pad figcaption { padding: 0 0 0.875rem; margin-block-end: 1rem; border-block-end: 1px solid var(--rd-rule); }
.rd-doc-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; align-items: start; }

/* Fields in a document use .rd-form and .rd-field. A checkbox and its text: */
.rd-doc-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; min-block-size: var(--target-size); }
.rd-doc-check input { inline-size: 1.25rem; block-size: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--ink); }

/* Related documents: a small-caps label and a hairline list. */
.rd-doc-related h2 { margin-block-end: 0.875rem; font-family: var(--rd-sans); font-size: var(--rd-label); font-weight: 500; letter-spacing: 0.2em; line-height: 1.5; text-transform: uppercase; color: var(--rd-ink-soft); }
.rd-doc-related ul { margin: 0; padding: 0; list-style: none; border-block-end: 1px solid var(--rd-rule); }
.rd-doc-related li { border-block-start: 1px solid var(--rd-rule); }
.rd-doc-related a { display: flex; align-items: center; min-block-size: max(var(--target-size), 2.75rem); padding-block: 0.5rem; font-size: var(--rd-small); line-height: 1.35; text-decoration: none; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .rd-doc-related a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; } }
@media (max-width: 63.99rem) { .rd-doc-related { margin-block-start: 1.5rem; } }

/* Index of documents: one row per document, the whole row is the link.
   <ul class="rd-doc-index"><li><a><div>label + heading</div><p>..</p><span class="rd-link">..</span></a></li></ul> */
.rd-doc-index { margin: 0; padding: 0; list-style: none; border-block-end: 1px solid var(--rd-rule); }
.rd-doc-index > li { border-block-start: 1px solid var(--rd-rule); }
.rd-doc-index a { display: grid; gap: 0.75rem 2.5rem; padding-block: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); text-decoration: none; color: inherit; }
.rd-doc-index a > * { min-inline-size: 0; }
.rd-doc-index .rd-eyebrow { margin-block-end: 0.625rem; }
.rd-doc-index :is(h2, h3) { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem); line-height: 1.15; }
.rd-doc-index p { max-inline-size: var(--rd-measure); color: var(--rd-ink-soft); }
.rd-doc-index .rd-link { justify-self: start; }
.rd-doc-index a:hover :is(h2, h3) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (min-width: 56rem) {
  .rd-doc-index a { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; align-items: baseline; }
}

/* Print: the document alone, black on white. */
@media print {
  body:has(main.rd-doc) :is(.mm-nav, .mm-menu, .mm-foot, .mm-skip, .mm-consent, #pl-chat-btn, .rd-doc-toc, .rd-doc-related, .rd-doc-print) { display: none !important; }
  body:has(main.rd-doc) { background: #fff !important; animation: none !important; }
  .rd-doc-head { padding-block: 0 1rem; background: none !important; border-block-end: 1px solid #000; }
  .rd-doc-head :is(h1, .rd-lead, .rd-eyebrow, li, b) { color: #000 !important; }
  .rd-doc-meta { border: 0; margin-block-start: 1rem; padding: 0; }
  .rd-doc-frame { display: block; padding-block: 1rem 0; }
  .rd-doc-body { font-size: 11.5pt; line-height: 1.5; color: #000; }
  .rd-doc-body h2 { break-after: avoid; }
  .rd-doc-body a { text-decoration: none; }
  .rd-doc-fig, .rd-doc-table tr, .rd-doc-rows > * { break-inside: avoid; }
}


/* ── Shared components moved from pages ── */
/* ==========================================================================
   Rules that were written in the <style> block of one or more pages and are
   generic .rd-* rules. Everything above this line is unchanged; each rule
   here was moved as it stood and draws the pages exactly as before.
   ========================================================================== */

/* Lists and proof */
/* The three figures straight under a two-sided section. */
.rd-split + .rd-proof { margin-block-start: var(--rd-gap); }
/* Questions that keep their h3 inside the summary (they are search headings). */
.rd-faq summary h3 { font: inherit; letter-spacing: inherit; color: inherit; }

/* Landing pages */
/* A hairline grid straight under a section heading block needs no extra room above. */
.rd-head + .rd-lp-points { margin-block-start: 0; }
/* Four points (route cards): two across, then four; the list itself stops at three. */
@media (min-width: 64rem) { .rd-lp .rd-lp-points--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Three facts under the hero: .rd-proof with its rule below each fact, the way .rd-lp-facts draws it. */
.rd-lp > .rd-wrap > .rd-proof > li { border-block-start: 0; border-block-end: 1px solid var(--rd-rule); }

/* Documents */
/* The paragraph under an index of documents: reading width, set off from the list. */
.rd-doc-index + .rd-doc-body { max-inline-size: var(--rd-read); margin-block-start: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
