/* ==========================================================================
   Navigation, home and company pages: Home, About, Contact, Privacy policy, 404.
   Tokens and shared components come from assets/css/redesign.css; brand rules: docs/brand/blue-dial.md.
   No colour value lives here. Home-only styles are in assets/css/home-hero.css.
   ========================================================================== */

/* ---------- Pair: text on the left, one figure, diagram or paragraph on the right ----------
   <div class="rd-container rd-pair"><div class="rd-pair__copy">…</div><div class="rd-stat">…</div></div>
   The two columns end on the same line; rd-pair--top starts them on the same line instead. */
.rd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; }
.rd-pair--top { align-items: start; }
.rd-pair__copy .rd-h2 + p { margin-top: 24px; }
.rd-pair__copy p { max-width: 520px; color: var(--rd-muted); }
.rd-pair__copy p + p { margin-top: 24px; }
/* Links keep the ink colour of the ground inside secondary text. */
.rd-pair__copy a, .rd-more a { color: var(--rd-ink); }

/* Stat (rd-stat) and diagram (rd-diagram) are shared components: redesign.css. */

/* ---------- More: the one link line under a grid ---------- */
.rd-more { margin-top: 32px; }

/* ---------- Cells that carry a date or a large contact line ---------- */
.rd-icon-card .rd-num { color: var(--rd-muted); }
.rd-icon-card address { font-style: normal; color: var(--rd-muted); }
.rd-icon-card .rd-h3 a { color: var(--rd-ink); overflow-wrap: anywhere; }

/* ---------- Contact form: the shared rd-form, held to a readable width ---------- */
.rd-contact-form { max-width: 824px; }

@media (max-width: 1080px) {
    .rd-pair { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Events (about/conferences/): facts, videos, booth photographs ----------
   Facts sit beside the event name; the videos follow as a hairline grid, each with its title under it.
   <figure class="rd-video"><video controls muted playsinline preload="none" poster="…" aria-labelledby="t">…</video>
       <figcaption class="rd-video__title" id="t">…</figcaption></figure>
   Booth photographs: <div class="rd-collage"> holds plain rd-image figures (3 across, 2 on a phone).
   With no figure in it the collage is not drawn at all, so an event without photographs leaves no gap. */
.rd-event__videos, .rd-collage, .rd-event__summary, .rd-event__demonstrated { margin-top: 56px; }
.rd-event__faq { margin-top: 56px; }
.rd-event__actions { margin-top: 32px; }
.rd-event__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.rd-event__facts dd { font-variant-numeric: lining-nums tabular-nums; }
.rd-video { margin: 0; display: flex; flex-direction: column; }
.rd-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--rd-navy); }
.rd-video__title { padding: 24px 32px 8px; font-weight: 600; }
.rd-video__description { margin: 0; padding: 0 32px 32px; color: var(--rd-muted); }
.rd-collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rd-collage:not(:has(> figure)) { display: none; }

@media (max-width: 860px) {
    .rd-event__videos, .rd-collage, .rd-event__summary, .rd-event__demonstrated { margin-top: 32px; }
    .rd-event__faq { margin-top: 32px; }
    .rd-video__title { padding: 16px 24px 8px; }
    .rd-video__description { padding: 0 24px 24px; }
    .rd-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
