/* DE type + spacing scale (approved by MAX 26 Oct; fixed after review). Linked on every page. One type scale (6 steps) and one 8-point spacing scale. */
:root {
  --ra-type-xs: 12px; --ra-type-sm: 14px; --ra-type-body: 17px;
  --ra-type-lead: 22px; --ra-type-title: 34px; --ra-type-display: 56px;
  --ra-space-1: 4px; --ra-space-2: 8px; --ra-space-3: 16px; --ra-space-4: 24px;
  --ra-space-5: 32px; --ra-space-6: 48px; --ra-space-7: 64px;
}
/* Headings on other pages keep their own sizes (MAX: headings must not outgrow their old size). */
/* Personal Design tool headings keep their old size (22 px). */
main .pd-choice h2, main #pd-app h2 { font-size: var(--ra-type-lead) !important; }
/* Running text: 17 px step. Notes, callouts and fine print are excluded and use the 14 px step, regular weight as before. */
main p:not(.ra-m2b__eyebrow):not(.ra-m2b__subtitle):not(.pd-kicker):not([class*="note"]):not([class*="fine"]):not([class*="callout"]) { font-size: var(--ra-type-body) !important; line-height: 1.55; }
main [class*="note"], main [class*="fine"], main [class*="callout"], main .pd-mobile-lite-note, main .pd-mobile-interior-note { font-size: var(--ra-type-sm) !important; }
/* Button and option labels: 17 px step in the Personal Design tool (were 14 px; the 12 px floor no longer shrinks them). */
main #pd-app button, main .pd-root button { font-size: var(--ra-type-body) !important; }
/* Labels keep the 12 px floor only where they were already smaller than 12 px (no button or label is shrunk elsewhere). */
main .pd-mode, main .pd-route, main .pd-faq-route { padding: var(--ra-space-3); }
/* Inline text links inside paragraphs keep their old 18 px (they are labels, not running text). */
main p a:not([class]) { font-size: 18px !important; }
/* DE9-5 (approved by MAX 27 Oct): Services and Work titles on the scale: 56 px at 1440, 34 px at 390. Scoped to the title only. */
@media (min-width: 601px) {
  html[lang] body main.ra-services-page .svc-hero h1 { font-size: var(--ra-type-display) !important; text-wrap: balance; }
}
@media (max-width: 600px) {
  html[lang] body main.ra-services-page .svc-hero h1 { font-size: var(--ra-type-title) !important; text-wrap: balance; }
}

/* Q4 readability floor (MAX 27 Oct), raise-only: targets whose computed size was below 12 px before.
   DE17 (MAX): rules that lowered text (13 px txt-14 links, 12 px mono txt-12, 13 px theme label) removed. Process (.product-key) excluded. */
main span.ra-tp-n:not(.product-key *), main span.ra-m2b__hint:not(.product-key *), main span.ra-m2b__label:not(.product-key *) { font-size: 12px !important; }

/* DE17 leftovers (27 Oct): index numbers, optional tags and the contact aside label. Drawing overlays and the Personal Showcase preview are not touched. */
main .ra-opt:not(.product-key *) { font-size: 11px !important; }
main aside.ra-help:not(.product-key *) { font-size: 12px !important; }
main aside.ra-help span:not(.product-key *) { font-size: 12px !important; }
