/* ==========================================================================
   Process Point shared styles: Blue Dial, closed-dial variant (ERP site)
   Brand spec and every rule applied here: docs/brand/blue-dial.md.
   Component reference and copy-paste markup: styleguide/index.html.
   Owned by the template lead; page-specific styles go in rd-<area>.css.
   ========================================================================== */

/* ---------- Brand tokens ----------
   The seven colours below are the only colour values in the site's styles.
   Everything else refers to them with var(). tests/theme.cjs enforces this. */
:root {
    --rd-navy: #01285D;
    --rd-deep: #020B1A;
    --rd-cyan: #019DD7;
    --rd-silver: #C9CFD8;
    --rd-offwhite: #F5F6F8;
    --rd-white: #FFFFFF;
    --rd-slate: #4A5870;

    /* The one permitted opacity variant: hairlines on dark grounds. */
    --rd-hairline-dark: color-mix(in srgb, var(--rd-silver) 24%, transparent);

    /* Roles on the light ground. Dark bands swap these below, so components follow their ground. */
    --rd-ground: var(--rd-offwhite);
    --rd-ink: var(--rd-navy);
    --rd-muted: var(--rd-slate);
    --rd-line: var(--rd-silver);
    --rd-on-ink: var(--rd-white);

    --rd-font-display: 'Michroma', 'Michroma Fallback', sans-serif;
    --rd-font-body: 'Manrope', 'Manrope Fallback', system-ui, sans-serif;
    --rd-font-num: var(--rd-font-body);

    --rd-width: 1240px;
    --rd-gutter: 24px;
    --rd-section-pad: 96px;
    --rd-header-h: 88px;
    --rd-fade: .2s;

}

@media (max-width: 860px) {
    :root { --rd-gutter: 16px; --rd-section-pad: 56px; }
}
@media (max-width: 560px) {
    :root { --rd-header-h: 64px; }
}

/* Dark grounds: the title band, navy bands and the footer. */
.rd-page-hero, .rd-cta, .rd-band, .rd-footer {
    --rd-ground: var(--rd-navy);
    --rd-ink: var(--rd-white);
    --rd-muted: var(--rd-silver);
    --rd-line: var(--rd-hairline-dark);
    --rd-on-ink: var(--rd-navy);
    background-color: var(--rd-ground);
    color: var(--rd-ink);
}
.rd-footer { --rd-ground: var(--rd-deep); }

/* ---------- Typefaces ----------
   Self-hosted latin subsets (SIL OFL 1.1, see the spec). The fallback faces are local fonts resized
   to the same average width and line box, so text does not reflow when the web font arrives. */
@font-face {
    font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: 'Michroma Fallback'; src: local("Arial");
    size-adjust: 143%; ascent-override: 80.85%; descent-override: 18.57%; line-gap-override: 0%;
}
@font-face {
    font-family: 'Manrope Fallback'; src: local("Arial");
    size-adjust: 98.74%; ascent-override: 107.96%; descent-override: 30.38%; line-gap-override: 0%;
}

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

html:has(body.rd) { overflow-x: clip; color-scheme: light; }

body.rd {
    margin: 0;
    background: var(--rd-offwhite);
    color: var(--rd-ink);
    font: 400 17px/28px var(--rd-font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: var(--rd-header-h);
}

:where(.rd) img { max-width: 100%; height: auto; display: block; }
:where(.rd) p { margin: 0; }
:where(.rd) :is(h1, h2, h3, h4) { margin: 0; color: var(--rd-ink); overflow-wrap: break-word; }
:where(.rd) :is(h1, h2) { font-family: var(--rd-font-display); font-weight: 400; }
:where(.rd) :is(h3, h4) { font-family: var(--rd-font-body); font-weight: 700; }
:where(.rd) h1 { font-size: 56px; line-height: 64px; }
:where(.rd) h2 { font-size: 40px; line-height: 48px; }
:where(.rd) h3 { font-size: 24px; line-height: 32px; }
:where(.rd) h4 { font-size: 17px; line-height: 28px; }

.rd-container { width: min(var(--rd-width), 100% - 2 * var(--rd-gutter)); margin-inline: auto; }
.rd-container--narrow { max-width: 824px; }

/* Links: ink colour, underlined; hover thickens the underline and never changes colour. */
:where(.rd) a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:where(.rd) a:hover { text-decoration-thickness: 2px; }

/* Focus: 2px in the ink colour of the ground (navy on light, white on dark). */
.rd :focus-visible { outline: 2px solid var(--rd-ink); outline-offset: 2px; }

/* ---------- Type helpers ---------- */
/* Label: small uppercase line above a heading. */
.rd-eyebrow {
    display: block; margin: 0 0 16px;
    font: 400 12px/16px var(--rd-font-display); letter-spacing: .12em; text-transform: uppercase;
    color: var(--rd-muted);
}
.rd-h1 { font: 400 56px/64px var(--rd-font-display); }
.rd-h2 { font: 400 40px/48px var(--rd-font-display); }
.rd-h3 { font: 700 24px/32px var(--rd-font-body); }
.rd-small { font-size: 14px; line-height: 22px; }
.rd-muted { color: var(--rd-muted); }

/* Figures: Manrope semibold with tabular lining numerals, the same family as the text around them.
   Use .rd-num wherever a figure is shown as a figure (tables, dates, prices) and .rd-figure for the large hero figure. */
.rd-num, .rd-figure, .rd-kpi__num {
    font-family: var(--rd-font-num); font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum", "tnum";
}
.rd-figure, .rd-kpi__num { display: block; font-size: 72px; line-height: 72px; color: var(--rd-ink); }
/* The screenful's one cyan element may be a figure, but only on a white panel or a navy band. */
.rd-figure--cyan { color: var(--rd-cyan); }

.rd-link { font-weight: 600; }

/* ---------- Buttons ----------
   Markup: rd-btn rd-btn--primary (main action), rd-btn rd-btn--outline (secondary). Two per block at most.
   The ground decides the colours: light = navy fill / navy outline; navy band = cyan fill / white outline;
   title band = white fill / white outline. Hover inverts the button; nothing moves. */
.rd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 24px; font: 600 15px/16px var(--rd-font-body);
    text-decoration: none; white-space: nowrap; cursor: pointer;
    border: 1px solid var(--rd-btn-fill); background: var(--rd-btn-fill); color: var(--rd-btn-text);
    --rd-btn-fill: var(--rd-navy); --rd-btn-text: var(--rd-white);
}
:where(.rd) a.rd-btn { text-decoration: none; }
.rd-btn:hover { background: transparent; color: var(--rd-ink); border-color: var(--rd-ink); }
.rd-btn--sm { padding: 8px 16px; font-size: 14px; line-height: 24px; }
.rd-btn--outline { background: transparent; color: var(--rd-ink); border-color: var(--rd-ink); }
.rd-btn--outline:hover { background: var(--rd-ink); color: var(--rd-on-ink); border-color: var(--rd-ink); }
/* Navy bands outside the hero: the primary button is the screenful's cyan element. */
:is(.rd-cta, .rd-band) .rd-btn--primary { --rd-btn-fill: var(--rd-cyan); --rd-btn-text: var(--rd-navy); }
/* Title band: the cyan line under the band is the cyan element, so the primary button is white. */
.rd-page-hero .rd-btn--primary { --rd-btn-fill: var(--rd-white); --rd-btn-text: var(--rd-navy); }

/* ---------- Isometric grid ----------
   The 30 degree grid from the logo mark, in 1px silver lines: the only decoration on the site.
   Markup: <div class="rd-hero__pattern" aria-hidden="true"></div> as the first child of the band.
   Two uses, both on navy: behind the whole title band (rd-page-hero), and as a 56px divider strip
   along the top of the closing band (rd-cta), where the page meets it. */
.rd-hero__pattern {
    position: absolute; inset: 0; pointer-events: none;
    background: url("../images/brand/isometric-grid.svg") 0 0 / 97px 56px repeat;
}

/* ---------- Icons ----------
   One family: line icons on a 24px grid, 1.5px strokes in the ink colour of the ground, square joins, no fill,
   no second colour. Inline SVG so the stroke follows the text colour: <svg class="rd-icon" viewBox="0 0 24 24">. */
.rd-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: butt; stroke-linejoin: miter; }

/* ---------- Sections ----------
   Sections are separated by a 1px hairline and 96px of space (56px on mobile). No section has a fill. */
.rd-section { position: relative; padding: var(--rd-section-pad) 0; border-top: 1px solid var(--rd-line); }
:is(.rd-page-hero, .rd-cta, .rd-band) + .rd-section { border-top: 0; }
.rd-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; }
.rd-section__head .rd-h2 { max-width: 800px; }
.rd-section__sub { max-width: 440px; color: var(--rd-muted); }

/* Navy band inside a page (ARTEMIS on the home page). */
.rd-band { border-top: 0; }

/* ---------- Hairline grid ----------
   Groups of items are grids whose cells are divided by 1px hairlines. No filled cards.
   <div class="rd-grid"> [--2] [--4] with rd-icon-card or any block as cells. */
.rd-grid, .rd-kpis {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--rd-line); border-left: 1px solid var(--rd-line);
}
.rd-grid > *, .rd-kpis > * {
    border-right: 1px solid var(--rd-line); border-bottom: 1px solid var(--rd-line);
}
.rd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-kpis { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Text cell (services, stages, case studies, articles). As a link (<a class="rd-icon-card">) the whole cell is the link. */
.rd-icon-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; color: inherit; container-type: inline-size; }
/* A figure in a card shrinks with the card, like a figure in a row of statistics. */
.rd-icon-card .rd-figure { font-size: min(72px, 24cqi); line-height: 1; }
:where(.rd) a.rd-icon-card { text-decoration: none; }
a.rd-icon-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.rd-icon-card .rd-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rd-icon-card p { color: var(--rd-muted); }
.rd-icon-card .rd-link { margin-top: auto; }

/* Tags and the small label line inside a cell. */
.rd-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-card__kicker { font: 600 14px/22px var(--rd-font-body); color: var(--rd-muted); }

/* Tag: small outlined text, square. */
.rd-tag {
    display: inline-block; padding: 0 8px; border: 1px solid var(--rd-line);
    font-size: 14px; line-height: 22px; font-weight: 500; color: var(--rd-muted);
}

/* ---------- Statistics ----------
   Large Manrope figures with a small label beneath, in a hairline row.
   <div class="rd-kpis"><div class="rd-kpi"><span class="rd-kpi__num">40%</span><span class="rd-kpi__label">…</span></div>…</div> */
.rd-kpi { padding: 32px; container-type: inline-size; }
/* In a row of statistics the figure shrinks with its cell, so a six-digit figure never runs into the next one. */
.rd-kpi__num { margin-bottom: 16px; font-size: min(72px, 24cqi); line-height: 1; }
.rd-kpi__label { display: block; font: 500 14px/22px var(--rd-font-body); color: var(--rd-muted); }

/* Stat: one large figure standing alone beside text, hairline above, label beneath.
   <div class="rd-stat"><span class="rd-figure">48,269</span><span class="rd-kpi__label">…</span></div> */
.rd-stat { padding-top: 32px; border-top: 1px solid var(--rd-line); }
.rd-stat .rd-figure { margin-bottom: 16px; }
.rd-stat--below { margin-top: 32px; }

/* ---------- Diagrams and screens ----------
   Diagram: an isometric line drawing from assets/images/diagrams/ (1px navy and silver lines, mitred joins,
   no lettering, no cyan), shown without a frame, with an optional caption.
   <figure class="rd-diagram"><img src="…svg" alt="…"><figcaption>…</figcaption></figure>
   Screen: a real screen from a tool, shown whole in a hairline frame on a white panel. */
.rd-diagram { margin: 0; }
.rd-diagram img { width: 100%; height: auto; }
.rd-diagram figcaption, .rd-screen figcaption { margin-top: 16px; font-size: 14px; line-height: 22px; color: var(--rd-muted); }
.rd-screen { margin: 0; }
.rd-screen img { width: 100%; border: 1px solid var(--rd-line); background: var(--rd-white); }

/* ---------- Filter bar (Insights and Case studies indexes) ----------
   One row per filter: a label and a set of square options. The chosen option is navy with white text; no cyan.
   Two kinds of option share one look: toggle buttons (.rd-filter__btn, aria-pressed) and native radio
   buttons (<label class="rd-filter__chip"><input type="radio"><span>…</span></label>). */
.rd-filter { display: grid; gap: 24px; margin-bottom: 32px; }
.rd-filter[hidden] { display: none; }
.rd-filter__group { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0; padding: 0; border: 0; }
.rd-filter__group .rd-eyebrow { margin: 0; }
.rd-filter__options { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-filter__btn, .rd-filter__chip span {
    display: block; padding: 8px 16px; border: 1px solid var(--rd-line); border-radius: 0; background: transparent;
    font: 600 14px/22px var(--rd-font-body); color: var(--rd-ink); cursor: pointer;
}
.rd-filter__btn:hover, .rd-filter__chip:hover span { border-color: var(--rd-ink); }
.rd-filter__btn[aria-pressed="true"], .rd-filter__chip input:checked + span { background: var(--rd-ink); border-color: var(--rd-ink); color: var(--rd-on-ink); }
.rd-filter__chip { position: relative; display: inline-flex; cursor: pointer; }
.rd-filter__chip input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rd-filter__chip input:focus-visible + span { outline: 2px solid var(--rd-ink); outline-offset: 2px; }
.rd-filter__status { margin: 0 0 24px; font-size: 14px; line-height: 22px; color: var(--rd-muted); }
.rd-filter__empty { padding: 32px 0; border-top: 1px solid var(--rd-line); border-bottom: 1px solid var(--rd-line); }
.rd-filter__empty p { margin: 0 0 16px; }

/* ---------- Split: two columns, text beside text, a figure, a diagram or a picture ---------- */
/* Two plain columns that start at the same line. */
.rd-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }

/* ---------- Call-to-action band ----------
   Flat navy band that ends a page. Its primary button is the screenful's cyan element. */
.rd-cta { position: relative; overflow: hidden; padding: calc(var(--rd-section-pad) + 56px) 0 var(--rd-section-pad); }
.rd-cta .rd-hero__pattern { bottom: auto; height: 56px; border-bottom: 1px solid var(--rd-line); }
.rd-cta__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.rd-cta .rd-h2 { margin-bottom: 16px; }
.rd-cta p { color: var(--rd-muted); }
.rd-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; flex-shrink: 0; }

/* ---------- Title band ----------
   Every page opens with this navy band holding the page title. It is the only place the dial
   gradient may appear, and it ends with the one 1px cyan line where it meets the page.
   <section class="rd-page-hero"> [--compact]; optional .rd-page-hero__media aside. */
.rd-page-hero {
    position: relative; overflow: hidden; padding: 48px 0 96px;
    background-image: radial-gradient(ellipse farthest-corner at 50% 50%, var(--rd-navy), var(--rd-deep));
    border-bottom: 1px solid var(--rd-cyan);
}
.rd-page-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.rd-page-hero__title { font: 400 56px/64px var(--rd-font-display); margin-bottom: 24px; }
.rd-page-hero__lede { color: var(--rd-muted); max-width: 640px; }
.rd-page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.rd-page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--rd-muted); }
.rd-page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rd-page-hero--compact { padding-bottom: 56px; }
/* With an image: the title keeps the full width so it fits two lines; the image sits beside the text under it. */
@media (min-width: 1081px) {
    .rd-page-hero__grid:has(.rd-page-hero__media) { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 64px; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__copy { display: contents; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__copy > * { grid-column: 1; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__copy > .rd-eyebrow { grid-column: 1 / -1; grid-row: 1; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__title { grid-column: 1 / -1; grid-row: 2; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__lede { grid-row: 3; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__actions { grid-row: 4; }
    .rd-page-hero__grid:has(.rd-page-hero__media) .rd-page-hero__meta { grid-row: 5; }
    .rd-page-hero__media { grid-column: 2; grid-row: 3 / span 4; }
}

/* ---------- Breadcrumbs ----------
   <nav class="rd-crumbs" aria-label="Breadcrumb"><ol>…</ol></nav>, first thing inside the title band. */
.rd-crumbs { position: relative; margin-bottom: 48px; font-size: 14px; line-height: 22px; }
.rd-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.rd-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--rd-muted); }
.rd-crumbs li + li::before { content: "/"; color: var(--rd-muted); }
.rd-crumbs a { color: var(--rd-ink); }

/* ---------- Stack: even vertical spacing between a heading and the blocks under it (forms, alerts) ---------- */
.rd-stack > * + * { margin-top: 32px; }
.rd-stack > .rd-eyebrow + * { margin-top: 0; }
.rd-h2 + .rd-stack { margin-top: 32px; }

/* ---------- Steps (process, methodology, challenge / solution / results) ---------- */
.rd-steps { display: grid; list-style: none; margin: 0; padding: 0; counter-reset: rd-step; border-top: 1px solid var(--rd-line); }
.rd-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--rd-line); counter-increment: rd-step; }
.rd-step::before {
    content: counter(rd-step, decimal-leading-zero);
    font: 600 40px/48px var(--rd-font-num); font-variant-numeric: lining-nums tabular-nums; color: var(--rd-ink);
}
.rd-step h3 { margin-bottom: 8px; }
.rd-step p { color: var(--rd-muted); }
.rd-step__label { display: block; margin-bottom: 8px; font: 400 12px/16px var(--rd-font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted); }

/* ---------- Two-column layout: content + sticky aside (articles, case studies, policies) ---------- */
.rd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.rd-layout__aside { position: sticky; top: calc(var(--rd-header-h) + 24px); display: grid; gap: 32px; }

/* Table of contents */
.rd-toc { padding-top: 24px; border-top: 1px solid var(--rd-line); font-size: 14px; line-height: 22px; }
.rd-toc__title { font: 400 12px/16px var(--rd-font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted); margin-bottom: 16px; }
.rd-toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.rd-toc a { display: block; padding: 8px 16px; border-left: 1px solid var(--rd-line); text-decoration: none; }
.rd-toc a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.rd-toc a[aria-current="true"] { border-left-color: var(--rd-ink); font-weight: 700; }

/* Side box (key facts) and side panel (aside call to action, white panel) */
.rd-box { padding-top: 24px; border-top: 1px solid var(--rd-line); }
.rd-box h3 { margin-bottom: 8px; }
.rd-box p { color: var(--rd-muted); margin-bottom: 16px; }
.rd-box--dark { padding: 24px; border-top: 0; background: var(--rd-white); }
.rd-facts { display: grid; gap: 16px; margin: 0; }
.rd-facts dt { font: 400 12px/16px var(--rd-font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted); }
.rd-facts dd { margin: 8px 0 0; font-weight: 600; }

/* ---------- Prose (long-form text from blogs, case studies, policies) ---------- */
.rd-prose { max-width: 760px; }
.rd-prose > * + * { margin-top: 24px; }
.rd-prose :is(h2, h3, h4) { scroll-margin-top: calc(var(--rd-header-h) + 24px); }
.rd-prose h2 { margin-top: 56px; }
.rd-prose h3 { margin-top: 40px; }
.rd-prose h4 { margin-top: 32px; }
.rd-prose :is(h2, h3, h4) + * { margin-top: 16px; }
.rd-prose :is(ul, ol) { padding-left: 24px; }
.rd-prose li + li { margin-top: 8px; }
.rd-prose blockquote { margin-inline: 0; padding: 0 0 0 24px; border-left: 1px solid var(--rd-ink); }
.rd-prose img, .rd-prose figure img { width: 100%; }
.rd-prose figure { margin-inline: 0; }
.rd-prose figcaption { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--rd-muted); }
.rd-prose hr { border: 0; border-top: 1px solid var(--rd-line); margin-block: 40px; }
.rd-prose code { padding: 0 8px; font-family: var(--rd-font-body); font-weight: 600; font-size: 14px; background: var(--rd-white); }
.rd-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; display: block; overflow-x: auto; }
.rd-prose :is(th, td) { padding: 16px; border-bottom: 1px solid var(--rd-line); text-align: left; vertical-align: top; }
.rd-prose th { font-weight: 700; border-bottom-color: var(--rd-ink); }
/* Only the column headers carry the navy line; row headers keep the hairline. */
.rd-prose tbody th { border-bottom-color: var(--rd-line); }

/* ---------- Callout (inline call to action or note inside content) ---------- */
.rd-callout {
    display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px 0;
    border-top: 1px solid var(--rd-line); border-bottom: 1px solid var(--rd-line);
}
.rd-callout h3 { margin: 0 0 8px; }
.rd-callout p { color: var(--rd-muted); }

/* ---------- Quote / testimonial ---------- */
.rd-quote { margin: 0; padding: 32px 0; border-top: 1px solid var(--rd-ink); border-bottom: 1px solid var(--rd-line); }
.rd-quote blockquote { margin: 0 0 24px; font: 500 24px/32px var(--rd-font-body); color: var(--rd-ink); }
.rd-quote figcaption { color: var(--rd-muted); font-size: 14px; line-height: 22px; }
.rd-quote figcaption strong { display: block; color: var(--rd-ink); }

/* ---------- FAQ accordion (native <details>, no JS) ---------- */
.rd-faq { display: grid; border-top: 1px solid var(--rd-line); }
.rd-faq details { border-bottom: 1px solid var(--rd-line); }
.rd-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; cursor: pointer; list-style: none;
    font-weight: 700; color: var(--rd-ink);
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; flex-shrink: 0; font: 400 24px/24px var(--rd-font-body); }
.rd-faq details[open] summary::after { content: "\2212"; }
.rd-faq details > div { padding: 0 0 24px; color: var(--rd-muted); max-width: 760px; }

/* ---------- Forms ----------
   Square fields with a 1px navy outline on a white field. */
.rd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rd-field { display: grid; gap: 8px; align-content: start; }
.rd-field--full { grid-column: 1 / -1; }
.rd-label { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--rd-ink); }
.rd-input {
    width: 100%; padding: 16px; font: 400 16px/24px var(--rd-font-body); color: var(--rd-navy);
    background: var(--rd-white); border: 1px solid var(--rd-navy); border-radius: 0;
}
.rd-input::placeholder { color: var(--rd-slate); opacity: 1; }
.rd-input:focus-visible { outline: 2px solid var(--rd-navy); outline-offset: 0; }
.rd-input[aria-invalid="true"] { border-width: 2px; }
textarea.rd-input { min-height: 160px; resize: vertical; }
select.rd-input {
    appearance: none; padding-right: 48px; cursor: pointer;
    background: var(--rd-white) url("../images/brand/chevron-down.svg") right 16px center / 16px no-repeat;
}
.rd-hint { font-size: 14px; line-height: 22px; color: var(--rd-muted); }
.rd-error-text { font-size: 14px; line-height: 22px; font-weight: 700; color: var(--rd-ink); }
.rd-checkbox { display: flex; align-items: flex-start; gap: 16px; font-size: 14px; line-height: 22px; color: var(--rd-muted); cursor: pointer; }
.rd-checkbox input {
    appearance: none; flex-shrink: 0; width: 24px; height: 24px; margin: 0; cursor: pointer;
    background: var(--rd-white); border: 1px solid var(--rd-navy); border-radius: 0;
}
.rd-checkbox input:checked { background: var(--rd-navy); }
.rd-alert { padding: 16px; font-size: 14px; line-height: 22px; color: var(--rd-navy); background: var(--rd-white); border: 1px solid var(--rd-navy); }
.rd-alert--error { font-weight: 700; border-width: 2px; }
.rd-alert[hidden], .rd-form[hidden] { display: none; }

/* ---------- Motion ----------
   Motion: the 200ms opacity fade of the menus (site-chrome.css) and diagrams that play once (redesign.js, docs/brand/blue-dial.md §11). Nothing loops. */
@media (prefers-reduced-motion: reduce) {
    .rd *, .rd *::before, .rd *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .rd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-layout { grid-template-columns: minmax(0, 1fr); }
    .rd-layout__aside { position: static; }
    .rd-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .rd-page-hero__media { margin-top: 32px; max-width: 400px; }
}

@media (max-width: 860px) {
    body.rd { font-size: 16px; line-height: 26px; }
    :where(.rd) h1, .rd-h1, .rd-page-hero__title { font-size: 36px; line-height: 44px; }
    :where(.rd) h2, .rd-h2 { font-size: 28px; line-height: 36px; }
    :where(.rd) h3, .rd-h3 { font-size: 20px; line-height: 28px; }
    :where(.rd) h4 { font-size: 16px; line-height: 26px; }
    .rd-figure { font-size: 48px; line-height: 48px; }
    .rd-kpi__num, .rd-icon-card .rd-figure { font-size: min(48px, 24cqi); }
    .rd-quote blockquote { font-size: 20px; line-height: 28px; }
    .rd-page-hero { padding: 32px 0 56px; }
    .rd-crumbs { margin-bottom: 32px; }
    .rd-section__head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
    .rd-cta__inner, .rd-callout { flex-direction: column; align-items: flex-start; }
    .rd-grid, .rd-grid--2 { grid-template-columns: minmax(0, 1fr); }
    .rd-form { grid-template-columns: minmax(0, 1fr); }
    .rd-filter__group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .rd-icon-card, .rd-kpi { padding: 24px; }
    .rd-step { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 24px 0; }
    .rd-step::before { font-size: 28px; line-height: 36px; }
}

@media (max-width: 560px) {
    .rd-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .rd-btn { width: 100%; }
    .rd-filter__empty .rd-btn { width: auto; }
}

/* ---------- Pictures ----------
   Pictures are large and carry no frame.
   <figure class="rd-image rd-image--3x2"><img src="…" alt="…" loading="lazy"></figure>
   Image brief (.rd-brief): a placeholder that carries the written description of an image the direction owner
   supplies. scripts/place-images.mjs swaps it for .rd-image once the file exists.

   Lead picture: the 21:9 picture or brief directly under the title band. It runs the full width of the window,
   edge to edge, outside the content column:
   <section class="rd-section rd-lead"><figure class="rd-image rd-image--21x9">…</figure></section>
   Section picture, diagram or screen: fills its whole column. Beside text (rd-split, rd-pair) it takes the wider column,
   7 of 12, so it is never under half the content width on desktop.
   Case study and article picture: full content width, under the text: <div class="rd-split rd-split--picture">. */
.rd-brief, .rd-image { margin: 0; }
.rd-brief { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 32px; color: var(--rd-ink); border: 1px solid var(--rd-line); }
.rd-lead { padding: 0; border-top: 0; }
.rd-lead + .rd-section { border-top: 0; }
.rd-lead .rd-brief { border: 0; background: var(--rd-white); padding-inline: max(var(--rd-gutter), calc((100% - var(--rd-width)) / 2)); }
.rd-split--picture { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1081px) {
    :is(.rd-split, .rd-pair):not(.rd-split--picture):has(> :is(.rd-image, .rd-brief, .rd-diagram, .rd-screen):last-child) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    :is(.rd-split, .rd-pair):not(.rd-split--picture):has(> :is(.rd-image, .rd-brief, .rd-diagram, .rd-screen):first-child) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.rd-brief--21x9, .rd-image--21x9 { aspect-ratio: 21 / 9; }
.rd-brief--16x9, .rd-image--16x9 { aspect-ratio: 16 / 9; }
.rd-brief--3x2, .rd-image--3x2 { aspect-ratio: 3 / 2; }
.rd-brief--4x3, .rd-image--4x3 { aspect-ratio: 4 / 3; }
.rd-brief--1x1, .rd-image--1x1 { aspect-ratio: 1 / 1; }
.rd-brief--4x5, .rd-image--4x5 { aspect-ratio: 4 / 5; }
.rd-brief__label { font: 600 14px/22px var(--rd-font-body); color: var(--rd-muted); }
.rd-brief__file { font-size: 14px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.rd-brief__desc { margin: 0; font-size: 14px; line-height: 22px; color: var(--rd-muted); max-width: 72ch; }
.rd-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
