/* ==========================================================================
   RLM Global design system — "drafting table" (approved 2026-11-19)
   Loaded after style.css on every public page. It re-points style.css's
   variables at the new palette so inner pages pick it up, restyles the
   shared header and footer, and holds the new homepage sections (.r-*).
   ========================================================================== */

:root {
    --r-paper: #EEF1F4;
    --r-surface: #FFFFFF;
    --r-ink: #1E2227;
    --r-ink-2: #3E4650;
    --r-muted: #5B6470;
    --r-line: #DCE1E7;
    --r-line-strong: #C3CAD3;
    --r-blue: #1F4FD1;
    --r-blue-hover: #163BA3;
    --r-blue-tint: #EEF3FF;
    --r-on-blue: #E6ECFF;
    --r-yellow: #FFCD3C;
    --r-yellow-ink: #4A3A00;
    --r-red: #C2381C;
    --r-red-mark: #D63B1F;
    --r-shadow: 0 1px 0 #D5DBE2, 0 24px 48px -28px rgba(30, 34, 39, 0.35);
    --r-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --r-body: 'Instrument Sans', system-ui, sans-serif;
    --r-hand: 'Caveat', cursive;

    /* style.css variables, re-pointed */
    --primary-color: var(--r-blue);
    --primary-dark: var(--r-blue-hover);
    --primary-light: #8FA9F0;
    --secondary-color: var(--r-blue);
    --accent-color: var(--r-blue);
    --text-dark: var(--r-ink);
    --text-light: var(--r-muted);
    --text-lighter: #7C8592;
    --bg-light: var(--r-paper);
    --bg-white: var(--r-surface);
    --border-color: var(--r-line);
    --shadow-md: 0 1px 0 #D5DBE2;
    --shadow-lg: var(--r-shadow);
    --shadow-xl: var(--r-shadow);
    --texture-waves: none;
    --texture-crossstitch: none;
    --texture-lines: none;
    --texture-dots: none;
}

[data-theme="dark"] {
    --r-paper: #15181C;
    --r-surface: #1E2227;
    --r-ink: #EEF1F4;
    --r-ink-2: #C6CDD5;
    --r-muted: #A3ACB7;
    --r-line: #343A42;
    --r-line-strong: #4A515B;
    --r-blue: #5C82F0;
    --r-blue-hover: #8FA9F0;
    --r-blue-tint: #1D2A4A;
    --r-red: #FF8E78;
    --r-red-mark: #FF8E78;
    --r-shadow: 0 1px 0 #2A2F36, 0 24px 48px -28px rgba(0, 0, 0, 0.7);
    --primary-light: #8FA9F0;
    --text-lighter: #8B95A1;
    --shadow-md: 0 1px 0 #2A2F36;
}

/* ---------- base ---------- */
body {
    font-family: var(--r-body);
    background: var(--r-paper);
    color: var(--r-ink);
}
h1, h2, h3, h4,
.section-title, .page-title, .hero-title {
    font-family: var(--r-display);
    letter-spacing: -0.025em;
}
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--r-blue);
    outline-offset: 3px;
}
.btn {
    border-radius: 999px;
    font-family: var(--r-body);
    font-weight: 600;
}
.btn-primary { background: var(--r-ink); color: #fff; border-color: var(--r-ink); }
.btn-primary:hover { background: var(--r-blue); border-color: var(--r-blue); color: #fff; }
[data-theme="dark"] .btn-primary { background: var(--r-blue); border-color: var(--r-blue); color: #fff; }
.btn-secondary { background: transparent; color: var(--r-ink); box-shadow: inset 0 0 0 1.5px var(--r-ink); border-color: transparent; }
.btn-secondary:hover { color: var(--r-blue); box-shadow: inset 0 0 0 1.5px var(--r-blue); }

/* ---------- shared header ---------- */
.navbar {
    background: var(--r-paper);
    box-shadow: none;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled { border-bottom-color: var(--r-line); }
[data-theme="dark"] .navbar { background: var(--r-paper); }
.nav-link {
    font-family: var(--r-body);
    font-weight: 500;
    color: var(--r-ink);
}
.nav-link:hover, .nav-link.active { color: var(--r-blue); }
.nav-link::after { background: var(--r-blue); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--r-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.nav-cta:hover { background: var(--r-blue); }
[data-theme="dark"] .nav-cta { background: var(--r-blue); }

/* ---------- shared footer ---------- */
.footer { background: var(--r-ink); color: #A9B2BD; }
[data-theme="dark"] .footer { background: #0F1114; }
.footer h4 { color: #fff; font-family: var(--r-display); }
.footer a { color: #C6CDD5; }
.footer a:hover { color: #fff; }

/* ==========================================================================
   Homepage sections (.r-*)
   ========================================================================== */
.r-wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.r-h2 { margin: 0; font-family: var(--r-display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.r-lede { font-size: 18px; line-height: 1.6; color: var(--r-ink-2); }
.r-note { font-family: var(--r-hand); font-weight: 700; color: var(--r-red); font-size: 25px; line-height: 1.05; }

.r-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--r-body); text-decoration: none; border: 0; cursor: pointer; }
.r-btn-ink { background: var(--r-ink); color: var(--r-paper); }
.r-btn-ink:hover { background: var(--r-blue); color: #fff; }
.r-btn-line { background: transparent; color: var(--r-ink); box-shadow: inset 0 0 0 1.5px var(--r-ink); }
.r-btn-line:hover { color: var(--r-blue); box-shadow: inset 0 0 0 1.5px var(--r-blue); }
.r-btn-yellow { background: var(--r-yellow); color: #1E2227; }
.r-btn-yellow:hover { background: #FFE07F; color: #1E2227; }
.r-btn-ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px #5B6470; background: transparent; }
.r-btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }

/* hero */
.r-hero { padding-top: 48px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.r-hero-copy { flex: 1 1 460px; min-width: 0; }
.r-hero h1 { margin: 0; font-family: var(--r-display); font-weight: 800; font-size: clamp(44px, 6.2vw, 74px); line-height: 0.98; letter-spacing: -0.03em; color: var(--r-ink); }
.r-hero .r-lede { margin: 26px 0 0; font-size: 20px; max-width: 32em; }
.r-picker-label { margin: 34px 0 12px; font-size: 16px; font-weight: 600; }
.r-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.r-pill { cursor: pointer; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--r-line-strong); background: var(--r-surface); color: var(--r-ink); font: 500 15px var(--r-body); }
.r-pill:hover { border-color: var(--r-ink); }
.r-pill[aria-pressed="true"] { background: var(--r-ink); border-color: var(--r-ink); color: var(--r-paper); }
.r-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.r-sketch-col { flex: 1 1 540px; min-width: 0; }
.r-sketch-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 12px; }
.r-sketch-bar p { margin: 0; font-size: 14px; color: var(--r-muted); }
.r-toggle { cursor: pointer; min-height: 40px; padding: 0 6px; border: 0; background: transparent; color: var(--r-red); font: 600 14px var(--r-body); text-decoration: underline; text-underline-offset: 4px; }
.r-sketch { position: relative; background: #fff; color: #1E2227; border-radius: 18px; padding: 22px; box-shadow: var(--r-shadow); display: flex; flex-direction: column; gap: 14px; }
.r-sketch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.r-sketch-name { font: 700 17px var(--r-display); }
.r-sketch-nav { display: flex; gap: 8px; align-items: center; }
.r-wf { border: 2px dashed #A3ABB6; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6A7380; font: 500 12px var(--r-body); text-align: center; padding: 4px; }
.r-wf-sm { width: 56px; height: 16px; border-width: 1.5px; }
.r-sketch-pillbtn { width: 86px; height: 26px; border-radius: 999px; background: var(--sk-accent, #B4561E); }
.r-sketch-hero { height: 190px; border-radius: 12px; background: var(--sk-tint, #FDF0DD); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.r-sketch-hero p { margin: 0; font: 700 26px/1.05 var(--r-display); max-width: 12em; color: #1E2227; }
.r-sketch-hero span { align-self: flex-start; background: var(--sk-accent, #B4561E); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 14px; }
.r-sketch-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.r-sketch-tiles .r-wf { height: 88px; }
.r-sketch-strip { height: 54px; }
.r-mark { position: absolute; pointer-events: none; }
.r-mark-1 { top: 64px; right: -30px; width: 200px; transform: rotate(3deg); }
.r-mark-ring { top: 196px; left: 28px; width: 190px; height: 64px; border: 3px solid var(--r-red-mark); border-radius: 50%; transform: rotate(-5deg); }
.r-mark-2 { top: 300px; left: -40px; width: 200px; transform: rotate(-4deg); }
.r-mark-2 .r-note { background: var(--r-paper); padding: 4px 6px; border-radius: 6px; }
.r-mark-3 { bottom: -40px; right: 10px; width: 260px; transform: rotate(2deg); }
.r-mark .r-note { margin: 0; }
.r-sketch.notes-off .r-mark { display: none; }

/* proof */
.r-proof { padding-bottom: 56px; }
.r-proof p { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; font-size: 15px; color: var(--r-muted); }
.r-proof strong { font: 700 18px var(--r-display); color: var(--r-ink-2); }

/* blue field */
.r-blue { background: #1F4FD1; color: #fff; }
.r-blue .r-wrap { padding-top: 100px; padding-bottom: 100px; display: flex; flex-wrap: wrap; gap: 48px; }
.r-blue-head { flex: 1 1 320px; min-width: 0; }
.r-blue-head p { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: #DCE5FF; max-width: 22em; }
.r-svc-list { flex: 2 1 640px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.r-svc { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.r-svc h3 { flex: 1 1 260px; margin: 0; font: 700 28px var(--r-display); color: #fff; }
.r-svc p { flex: 2 1 340px; margin: 0; font-size: 18px; line-height: 1.6; color: #E6ECFF; }

/* work strips */
.r-work .r-wrap { padding-top: 100px; padding-bottom: 40px; }
.r-work .r-h2 { margin-bottom: 52px; }
.r-strip { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; padding-bottom: 72px; }
.r-strip-shot { flex: 3 1 560px; min-width: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--r-shadow); background: var(--r-surface); }
.r-strip-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.r-strip-copy { flex: 2 1 320px; min-width: 0; }
.r-strip-copy .r-kind { margin: 0; font-size: 15px; color: var(--r-muted); }
.r-strip-copy h3 { margin: 6px 0 0; font: 700 38px/1.05 var(--r-display); }
.r-strip-copy p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; color: var(--r-ink-2); }
.r-strip-copy .r-note { margin-top: 18px; }
.r-all-work { font-weight: 600; font-size: 17px; }

/* questions */
.r-ask { background: var(--r-surface); }
.r-ask .r-wrap { padding-top: 100px; padding-bottom: 100px; }
.r-ask .r-h2 { margin-bottom: 40px; max-width: 12em; }
.r-ask-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.r-qs { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.r-q { cursor: pointer; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 16px 18px; min-height: 56px; background: transparent; color: var(--r-ink); font: 500 18px/1.35 var(--r-body); }
.r-q:hover { background: var(--r-paper); }
.r-q[aria-selected="true"] { background: var(--r-surface); box-shadow: 0 0 0 1.5px var(--r-ink); font-weight: 600; }
.r-chat { flex: 2 1 520px; min-width: 0; background: var(--r-paper); border-radius: 22px; padding: 30px 32px; }
.r-chat-q { margin: 0 0 6px; display: flex; justify-content: flex-end; }
.r-chat-q span { background: #1F4FD1; color: #fff; border-radius: 18px 18px 4px 18px; padding: 12px 18px; font-size: 17px; max-width: 80%; }
.r-chat-a { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.r-avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--r-ink); color: var(--r-paper); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.r-chat-a div { background: var(--r-surface); border-radius: 4px 18px 18px 18px; padding: 18px 22px; }
.r-chat-a p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--r-ink-2); }
.r-chat-a p + p { margin-top: 10px; }
.r-chat-more { margin: 20px 0 0 58px; font-size: 15px; color: var(--r-muted); }

/* yellow field */
.r-yellow { background: #FFCD3C; color: #1E2227; }
.r-yellow .r-wrap { padding-top: 96px; padding-bottom: 96px; }
.r-yellow .r-h2 { margin-bottom: 52px; color: #1E2227; }
.r-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; border-top: 3px solid #1E2227; }
.r-steps li { padding-top: 22px; position: relative; }
.r-steps li::before { content: ""; position: absolute; top: -12px; left: 0; width: 21px; height: 21px; border-radius: 50%; background: #FFCD3C; border: 3px solid #1E2227; box-sizing: border-box; }
.r-steps .r-when { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: #4A3A00; }
.r-steps h3 { margin: 6px 0 8px; font: 700 28px var(--r-display); color: #1E2227; }
.r-steps p { margin: 0; font-size: 17px; line-height: 1.6; color: #2E2A1A; }

/* pricing table */
.r-price .r-wrap { padding-top: 100px; padding-bottom: 100px; }
.r-price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.r-price-head p { margin: 0; font-size: 17px; color: var(--r-ink-2); max-width: 30em; }
.r-table-box { overflow-x: auto; background: var(--r-surface); border-radius: 18px; }
.r-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.r-table th, .r-table td { padding: 20px 22px; text-align: left; font-size: 16px; vertical-align: middle; border-bottom: 1px solid var(--r-line); }
.r-table thead th { font: 600 14px var(--r-body); color: var(--r-muted); }
.r-table tbody th { font: 600 19px var(--r-body); }
.r-table .r-from { font: 800 28px var(--r-display); }
.r-table tr.r-hot { background: var(--r-blue-tint); }
.r-badge { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 600; background: #1F4FD1; color: #fff; border-radius: 999px; padding: 4px 10px; vertical-align: middle; }
.r-price-foot { margin: 20px 0 0; font-size: 16px; color: var(--r-muted); }

/* start */
.r-start { background: #1E2227; color: #fff; }
.r-start-in { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.r-start h2 { margin: 0; font: 800 clamp(48px, 7vw, 84px)/0.95 var(--r-display); letter-spacing: -0.03em; color: #fff; }
.r-start p { margin: 22px 0 0; font-size: 19px; line-height: 1.6; color: #C6CDD5; max-width: 30em; }
.r-start-copy { flex: 1 1 460px; min-width: 0; }
.r-start-form { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.r-start-form label { font-size: 15px; color: #C6CDD5; }
.r-start-form textarea { width: 100%; border-radius: 14px; border: 1.5px solid #4A515B; background: #2A2F36; color: #fff; padding: 16px; font: 400 16px var(--r-body); resize: vertical; box-sizing: border-box; }
.r-start-form textarea::placeholder { color: #A3ACB7; }
.r-start-form .r-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* small screens */
@media (max-width: 720px) {
    .r-wrap { padding-left: 20px; padding-right: 20px; }
    .r-hero { gap: 40px; padding-top: 24px; }
    .r-mark-1 { right: -6px; width: 170px; }
    .r-mark-2 { left: -6px; }
    .r-mark-3 { right: 0; width: 220px; }
    .r-sketch-tiles .r-wf { height: 64px; }
    .r-chat { padding: 22px 18px; }
    .r-chat-more { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Inner-page kit (.r-*): shared by about, services, pricing, portfolio,
   contact, questionnaire, resources and articles. Page-specific styles go
   in assets/css/pages/<page>.css, never here.
   ========================================================================== */

/* Page header: paper, big type, optional handwritten aside */
.r-page-head { padding-top: 56px; padding-bottom: 64px; }
.r-page-head .r-crumb { margin: 0 0 14px; font-size: 15px; color: var(--r-muted); }
.r-page-head .r-crumb a { color: var(--r-muted); }
.r-page-head h1 { margin: 0; font: 800 clamp(44px, 6vw, 76px)/0.98 var(--r-display); letter-spacing: -0.03em; color: var(--r-ink); max-width: 14em; }
.r-page-head .r-lede { margin: 22px 0 0; font-size: 20px; max-width: 36em; }
.r-page-head .r-note { margin: 18px 0 0; }
.r-page-head-split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.r-page-head-split > div { flex: 1 1 520px; min-width: 0; }

/* Sections */
.r-section { padding-top: 96px; padding-bottom: 96px; }
.r-section-tight { padding-top: 56px; padding-bottom: 56px; }
.r-surface { background: var(--r-surface); }
.r-band-blue { background: #1F4FD1; color: #fff; }
.r-band-blue .r-lede, .r-band-blue p { color: #E6ECFF; }
.r-band-blue h2, .r-band-blue h3 { color: #fff; }
.r-band-yellow { background: #FFCD3C; color: #1E2227; }
.r-band-yellow h2, .r-band-yellow h3 { color: #1E2227; }
.r-band-yellow p { color: #2E2A1A; }
.r-band-ink { background: #1E2227; color: #fff; }
.r-band-ink h2, .r-band-ink h3 { color: #fff; }
.r-band-ink p { color: #C6CDD5; }

/* Section head: title left, intro right (stacks on phones) */
.r-sec-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.r-sec-head .r-h2 { flex: 1 1 360px; }
.r-sec-head p { flex: 1 1 320px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--r-ink-2); max-width: 32em; }
.r-band-blue .r-sec-head p { color: #DCE5FF; }
.r-h3 { margin: 0; font: 700 26px/1.15 var(--r-display); letter-spacing: -0.02em; }

/* Spec rows: term left, description right, divider between */
.r-rows { margin: 0; padding: 0; list-style: none; }
.r-row { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--r-line); }
.r-row:last-child { border-bottom: 1px solid var(--r-line); }
.r-row > :first-child { flex: 1 1 260px; margin: 0; }
.r-row > :last-child { flex: 2 1 360px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--r-ink-2); }
.r-band-blue .r-row { border-color: rgba(255, 255, 255, 0.28); }
.r-band-blue .r-row > :last-child { color: #E6ECFF; }
.r-row ul { margin: 10px 0 0; padding-left: 20px; }

/* Two-column split of free content */
.r-split { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.r-split > * { flex: 1 1 420px; min-width: 0; }

/* Panel: a white surface, used sparingly (forms, tables, featured items) */
.r-panel { background: var(--r-surface); border-radius: 18px; padding: 28px; box-shadow: 0 1px 0 var(--r-line); }
.r-panel-feature { box-shadow: 0 0 0 2px var(--r-blue); }
.r-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* Chips and small labels */
.r-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.r-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--r-paper); color: var(--r-ink-2); font-size: 14px; font-weight: 500; border: 1px solid var(--r-line); }
.r-tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: #1F4FD1; color: #fff; }

/* Segmented pill switcher (tabs, filters): style via aria-pressed / aria-selected / .active */
.r-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.r-seg button, .r-seg a { cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--r-line-strong); background: var(--r-surface); color: var(--r-ink); font: 500 15px var(--r-body); text-decoration: none; display: inline-flex; align-items: center; }
.r-seg button:hover, .r-seg a:hover { border-color: var(--r-ink); }
.r-seg [aria-pressed="true"], .r-seg [aria-selected="true"], .r-seg .active { background: var(--r-ink); border-color: var(--r-ink); color: var(--r-paper); }

/* Forms */
.r-form { display: flex; flex-direction: column; gap: 18px; }
.r-field { display: flex; flex-direction: column; gap: 8px; }
.r-field label { font-size: 15px; font-weight: 600; color: var(--r-ink); }
.r-field .r-hint { font-size: 14px; color: var(--r-muted); }
.r-field input, .r-field select, .r-field textarea {
    width: 100%; box-sizing: border-box; min-height: 50px; padding: 12px 16px;
    border-radius: 14px; border: 1.5px solid var(--r-line-strong); background: var(--r-surface);
    color: var(--r-ink); font: 400 16px var(--r-body);
}
.r-field textarea { min-height: 130px; resize: vertical; }
.r-field input:focus, .r-field select:focus, .r-field textarea:focus { border-color: var(--r-blue); outline: 3px solid var(--r-blue-tint); outline-offset: 0; }
.r-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.r-msg { border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.r-msg-ok { background: #E4F5EA; color: #17603A; }
.r-msg-err { background: #FDE8E4; color: #8E2A14; }

/* FAQ: native details/summary */
.r-faq { margin: 0; padding: 0; list-style: none; }
.r-faq details { border-top: 1px solid var(--r-line); }
.r-faq details:last-child { border-bottom: 1px solid var(--r-line); }
.r-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; min-height: 64px; padding: 18px 0; font: 600 19px/1.35 var(--r-body); color: var(--r-ink); }
.r-faq summary::-webkit-details-marker { display: none; }
.r-faq summary::after { content: "+"; font: 400 28px var(--r-display); color: var(--r-blue); flex: 0 0 auto; }
.r-faq details[open] summary::after { content: "\2013"; }
.r-faq details > :not(summary) { margin: 0 0 22px; font-size: 17px; line-height: 1.65; color: var(--r-ink-2); max-width: 46em; }

/* Closing call to action (dark band) */
.r-end { background: #1E2227; color: #fff; }
.r-end .r-wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-end; justify-content: space-between; }
.r-end h2 { margin: 0; font: 800 clamp(40px, 6vw, 72px)/0.95 var(--r-display); letter-spacing: -0.03em; color: #fff; max-width: 10em; }
.r-end p { margin: 18px 0 0; font-size: 19px; line-height: 1.6; color: #C6CDD5; max-width: 30em; }
.r-end .r-actions { margin-top: 0; }

/* Long-form article (resources) */
.r-article { max-width: 720px; }
.r-article h2 { margin: 56px 0 14px; font: 700 32px/1.15 var(--r-display); letter-spacing: -0.02em; }
.r-article h3 { margin: 36px 0 10px; font: 700 23px/1.2 var(--r-display); }
.r-article p, .r-article li { font-size: 18px; line-height: 1.7; color: var(--r-ink-2); }
.r-article ul, .r-article ol { padding-left: 22px; }
.r-article li + li { margin-top: 6px; }
.r-article blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--r-blue); font-size: 20px; color: var(--r-ink); }
.r-article-layout { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.r-article-layout .r-article { flex: 3 1 560px; min-width: 0; }
.r-article-aside { flex: 1 1 260px; min-width: 0; position: sticky; top: 110px; }
.r-article-aside h2 { margin: 0 0 12px; font: 600 15px var(--r-body); color: var(--r-muted); }
.r-article-aside ul { margin: 0; padding: 0; list-style: none; }
.r-article-aside li a { display: block; padding: 8px 0; color: var(--r-ink-2); text-decoration: none; border-top: 1px solid var(--r-line); }
.r-article-aside li a:hover, .r-article-aside li a[aria-current="page"] { color: var(--r-blue); }

@media (max-width: 720px) {
    .r-page-head { padding-top: 32px; padding-bottom: 40px; }
    .r-section { padding-top: 64px; padding-bottom: 64px; }
    .r-article-aside { position: static; }
    .r-panel { padding: 20px; }
}

/* Footer privacy link and the form consent note */
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.r-consent { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--r-muted); }
.r-consent a { color: var(--r-blue); }
.r-article > h2:first-child { margin-top: 0; }
