/* ==========================================================================
   RAIA: Government of Rwanda design system, extracted and re-scoped.

   Provenance
     Tokens, type scale, components and motion are quoted from
     "Rwanda Government Website/Site-Draft 2/assets/css/main.css".
     Official swatch values come from the Government of Rwanda Websites
     Guideline. See ../../RAIA-design-system.md for the full annotated extract
   and the deviation record (it lives one level above Site Draft).

   Scope
     Every selector sits under .raia-site so this layer cannot collide with
     the existing page styles. Custom properties keep their original --rw-
     and --gov- names so each value stays traceable to the source file.

   Contrast contract (carried from the source, do not override casually)
     #00a1de is a FILL colour: it carries #001b3d text (5.8:1) and must
     never be paired with white (2.9:1).
     #003f82 is the only blue safe as small text on white (10.3:1).
     #001b3d is the dark-surface blue for headings, buttons and grounds.
     Gold, warning and error are fill colours carrying black text; on white
     they fail WCAG as text and must not be used as small text.
   ========================================================================== */

/* ----------------------------------------------------------------- tokens */
:root {
  /* working palette */
  --rw-white:      #ffffff;
  --rw-paper:      #f6f8fa;
  --rw-mist:       #eef2f5;
  --rw-ink:        #001b3d;
  --rw-ink-soft:   #33373d;
  --rw-body:       #4c515a;
  --rw-gray:       #878d97;
  --rw-gray-soft:  #b6bac2;
  --rw-line:       #e2e6ea;
  --rw-line-dark:  #2a2d33;

  /* Government of Rwanda blue */
  --rw-blue:       #00a1de;   /* fills, marks, hover fills */
  --rw-blue-deep:  #003f82;   /* text, links, borders, focus on light */
  --rw-blue-ink:   #001b3d;   /* text sitting on the accent fill */
  --rw-blue-mist:  #eaf4fb;   /* pale wash for bands and callouts */

  /* official guideline swatches */
  --gov-blue:      #00a1de;   /* Pantone 3005 */
  --gov-gold:      #e5be01;   /* Pantone 130  */
  --gov-yellow:    #fad201;   /* Pantone 109  */
  --gov-green:     #20603d;   /* Pantone 3415 */

  --gov-blue-1:    #00a1de;
  --gov-blue-2:    #003f82;
  --gov-blue-3:    #001b3d;

  --gov-green-1:   #3db874;
  --gov-green-2:   #20603d;
  --gov-green-3:   #143e28;

  --gov-gold-1:    #fde35d;
  --gov-gold-2:    #e5be01;
  --gov-gold-3:    #caa902;

  --gov-info:      #509cff;
  --gov-success:   #27ae60;
  --gov-warning:   #e2b93b;
  --gov-error:     #ff6161;

  --gov-text-display:    #000000;
  --gov-text-body:       #000f14;
  --gov-text-subheading: #050f0a;
  --gov-white:           #ffffff;

  --gov-gray-1:    #333333;
  --gov-gray-2:    #4f4f4f;
  --gov-gray-3:    #bdbdbd;
  --gov-gray-4:    #f4f4f4;   /* disabled */

  /* form error (implementation value from the source) */
  --raia-error:    #b3452e;

  /* type */
  --rw-font: Inter, "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;

  /* layout */
  --rw-max:      1560px;
  --rw-header-h: clamp(4.875rem, 6vh, 5.625rem);
  --rw-pad:      clamp(1.25rem, 4vw, 4.5rem);
  --rw-sec:      clamp(5.5rem, 11vh, 9.5rem);

  /* motion */
  --rw-ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --rw-ease-soft: cubic-bezier(0.45, 0, 0.15, 1);
  --rw-dur:       0.85s;
}

/* ----------------------------------------------------------------- resets */
.raia-site,
.raia-site *,
.raia-site *::before,
.raia-site *::after { box-sizing: border-box; }

.raia-site {
  font-family: var(--rw-font);
  font-size: 100%;
  line-height: 1.72;
  color: var(--rw-body);
  background: var(--rw-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Smooth in-page scrolling, as the reference sets it. The reduced-motion
   block below turns it off on the same element. */
html:has(body.raia-site) { scroll-behavior: smooth; }

/* The browser's default 8px body margin shows as a white frame around the
   whole page, and because the fixed header ignores it the chrome runs edge
   to edge while every band sits inset. The reference zeroes it at
   Site-Draft 2/main.css:67; this is that rule. */
body.raia-site {
  margin: 0;
  font-size: 1.0625rem;
  min-height: 100vh;
}

.raia-site :focus-visible {
  outline: 2px solid var(--rw-blue-deep);
  outline-offset: 3px;
}

.raia-site ::selection { background: var(--rw-ink); color: var(--rw-white); }

/* Links inherit their surrounding colour by default. :where() holds this at
   zero specificity, so component colours (.raia-btn, .raia-textlink,
   .raia-nav__link and the rest) are never overridden by the reset. Without
   it, `.raia-site a` outranks `.raia-btn` and a filled navy button picks up
   the page's grey body colour instead of its white label. */
.raia-site :where(a) {
  color: inherit;
  text-decoration: none;
}
.raia-site img,
.raia-site video { display: block; max-width: 100%; }

.raia-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--rw-ink); color: var(--rw-white);
  padding: 0.75rem 1.25rem; font-size: 0.8125rem; letter-spacing: 0.08em;
}
.raia-skip-link:focus { left: 0; }

.raia-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ------------------------------------------------------------ typography */
.raia-display {
  font-size: clamp(2.9rem, 6.4vw, 6.8rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  font-weight: 500;
  color: var(--rw-white);
  margin: 0;
  text-wrap: balance;
}
.raia-display--ink { color: var(--rw-ink); }

.raia-h1 {
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.026em;
  font-weight: 500;
  color: var(--rw-ink);
  margin: 0;
  text-wrap: balance;
}

.raia-h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--rw-ink);
  margin: 0;
  text-wrap: balance;
}

.raia-h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
  font-weight: 500;
  color: var(--rw-ink);
  margin: 0;
}

.raia-h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.008em;
  font-weight: 600;
  color: var(--rw-ink);
  margin: 0;
}

.raia-lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: var(--rw-ink-soft);
  margin: 0;
}
.raia-lead--light { color: rgba(255, 255, 255, 0.86); }

.raia-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rw-gray);
  margin: 0;
}
.raia-label::before {
  content: "";
  width: 1.75rem; height: 1px;
  background: var(--rw-blue);
  flex: none;
}
.raia-label--plain::before { display: none; }
.raia-label--light { color: rgba(255, 255, 255, 0.66); }

.raia-small {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--rw-gray);
  margin: 0;
}

.raia-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.raia-site em.raia-em { font-style: normal; color: var(--rw-blue-deep); }

/* --------------------------------------------------------------- layout */
.raia-container {
  width: 100%;
  max-width: var(--rw-max);
  margin-inline: auto;
  padding-inline: var(--rw-pad);
}
.raia-container--full { max-width: none; }

.raia-section { padding-block: var(--rw-sec); position: relative; }
.raia-section--paper { background: var(--rw-paper); }
.raia-section--mist { background: var(--rw-mist); }
.raia-section--wash { background: var(--rw-blue-mist); }
.raia-section--ink {
  background: var(--rw-ink);
  color: rgba(255, 255, 255, 0.78);
}
.raia-section--ink .raia-h2,
.raia-section--ink .raia-h3 { color: var(--rw-white); }
.raia-section--tight { padding-block: clamp(3.5rem, 7vh, 6rem); }
/* Halve one edge where two sections meet too far apart. Facing sections both
   carrying a half modifier halve the gap between them, and nothing else moves. */
.raia-section--half-top { padding-top: calc(var(--rw-sec) / 2); }
.raia-section--half-bottom { padding-bottom: calc(var(--rw-sec) / 2); }

.raia-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.raia-sec-head__left { max-width: 46rem; display: grid; gap: 1.5rem; }
.raia-sec-head__index {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rw-gray-soft);
  white-space: nowrap;
  padding-bottom: 0.4rem;
}

.raia-rule { border: 0; border-top: 1px solid var(--rw-line); margin: 0; }
.raia-section--ink .raia-rule { border-top-color: var(--rw-line-dark); }

/* --------------------------------------------------------------- buttons */
.raia-btn {
  --btn-bg: var(--rw-ink);
  --btn-fg: var(--rw-white);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* no line-height override: buttons render at `normal`, and the reference
     normalises nav anchors to 1 to match them */
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.4s var(--rw-ease-soft), border-color 0.4s;
}
.raia-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--rw-blue);
  transform: translateY(101%);
  transition: transform 0.5s var(--rw-ease);
  z-index: 0;
}
.raia-btn:hover::before { transform: translateY(0); }
.raia-btn > * { position: relative; z-index: 1; }

/* the hover fill is #00a1de, which carries #001b3d text (5.8:1), never white */
.raia-btn:hover { color: var(--rw-blue-ink); }

.raia-btn__arrow { display: inline-block; transition: transform 0.4s var(--rw-ease); }
.raia-btn:hover .raia-btn__arrow { transform: translateX(4px); }

.raia-btn--light {
  --btn-bg: var(--rw-white);
  --btn-fg: var(--rw-ink);
  color: #001b3d;      /* hardened: never white-on-white if a var fails */
  border-color: var(--rw-white);
}
.raia-btn--light:hover { color: #001b3d; }

.raia-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--rw-white);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.raia-btn--ghost:hover { border-color: var(--rw-blue); }

.raia-btn--ink-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--rw-ink);
  border-color: rgba(0, 27, 61, 0.28);
}
.raia-btn--ink-ghost:hover { color: var(--rw-blue-ink); }

.raia-textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rw-ink);
  border-bottom: 1px solid var(--rw-blue-deep);
  padding-bottom: 0.3rem;
}
/* hover turns the label to #00a1de */
.raia-textlink:hover { color: #00a1de; }
.raia-textlink svg { width: 13px; height: 13px; transition: transform 0.4s var(--rw-ease); }
.raia-textlink:hover svg { transform: translateX(4px); }
.raia-textlink--light { color: var(--rw-white); }

/* --------------------------------------------------------- stat strip */
.raia-stats {
  border-top: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
}
.raia-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.raia-stat {
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem);
  border-left: 1px solid var(--rw-line);
  display: grid;
  gap: 0.4rem;
}
.raia-stat:first-child { border-left: 0; }
.raia-stat__value {
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rw-ink);
  font-variant-numeric: tabular-nums;
}
.raia-stat__value sup {
  /* 0.45em of the clamped stat size, floored so the mark never drops below
     the legibility floor at the smallest step */
  font-size: max(0.75rem, 0.45em);
  font-weight: 600;
  color: var(--rw-blue-deep);
  margin-left: 0.1em;
}
.raia-stat__label {
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--rw-gray);
}

/* ------------------------------------------- numbered grid (Bauhaus glyph) */
.raia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rw-line);
  border-left: 1px solid var(--rw-line);
}
.raia-cell {
  position: relative;
  padding: clamp(1.75rem, 2.6vw, 2.75rem);
  border-right: 1px solid var(--rw-line);
  border-bottom: 1px solid var(--rw-line);
  background: var(--rw-white);
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-height: 16rem;
  transition: background 0.5s var(--rw-ease-soft);
  overflow: hidden;
}
.raia-cell:hover { background: var(--rw-paper); }
.raia-cell__index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rw-blue-deep);
}
.raia-cell p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--rw-body); }
.raia-cell__glyph {
  position: absolute;
  right: clamp(1.25rem, 2vw, 2rem);
  bottom: clamp(1.25rem, 2vw, 2rem);
  width: 14px; height: 14px;
  opacity: 0.85;
}
.raia-cell__glyph--circle { border-radius: 50%; background: var(--rw-gray-soft); }
.raia-cell__glyph--square { background: var(--rw-blue); }
/* same up-pointing triangle as the source, drawn with clip-path instead of
   the border trick so it reads as a glyph, not as a side accent border */
.raia-cell__glyph--triangle {
  width: 16px; height: 14px;
  background: var(--rw-ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ----------------------------------------------------------------- form */
.raia-form { display: grid; gap: 2rem; }
.raia-field { display: grid; gap: 0.5rem; }
.raia-field__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.raia-field__label small {
  color: var(--rw-gray);
  font-weight: 600;
  letter-spacing: 0.08em;
}
/* Legibility floor at 10px: a standing named exception, recorded in
   RAIA-design-system.md. `small` inherits `smaller`, so inside the 11px field
   label it computes to 9.17px, under the floor. The max() lifts only those;
   a small whose parent is large enough (the 12px and 11px cases on the EOI
   pages) keeps its inherited size. */
small { font-size: max(0.625rem, 0.833em); }

.raia-input,
.raia-select,
.raia-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--rw-ink);
  background: var(--rw-white);
  border: 1px solid var(--rw-line);
  border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.raia-textarea { min-height: 8.5rem; resize: vertical; }
/* 16px on EVERY control, including the bare checkbox, radio and honeypot inputs
   that carry no .raia-input class and would otherwise fall back to the browser
   default 13.3333px. iOS Safari zooms the page on focus when a control computes
   below 16px. The reference guards this the same way at main.css:1846, where the
   comment reads: 16px - prevents iOS focus zoom. */
input, select, textarea { font-size: 1rem; }
.raia-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23878d97' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.raia-input:focus,
.raia-select:focus,
.raia-textarea:focus {
  outline: none;
  border-color: var(--rw-ink);
  box-shadow: 0 1px 0 0 var(--rw-ink);
}

.raia-field.has-error .raia-input,
.raia-field.has-error .raia-select,
.raia-field.has-error .raia-textarea { border-color: var(--raia-error); }
.raia-field__error {
  display: none;
  font-size: 0.75rem;
  color: var(--raia-error);
  letter-spacing: 0.02em;
}
.raia-field.has-error .raia-field__error { display: block; }

.raia-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.raia-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--rw-line);
  background: var(--rw-white);
  padding: 0.6rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--rw-ink-soft);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  user-select: none;
}
.raia-check:hover { border-color: var(--rw-blue-deep); }
.raia-check input { position: absolute; opacity: 0; pointer-events: none; }
.raia-check i {
  width: 9px; height: 9px;
  border: 1px solid var(--rw-gray);
  flex: none;
  transition: background 0.25s, border-color 0.25s;
}
.raia-check input:checked ~ i { background: var(--rw-blue-deep); border-color: var(--rw-blue-deep); }
.raia-check input:checked ~ span { color: var(--rw-ink); }
.raia-check input:focus-visible ~ i { outline: 2px solid var(--rw-blue-deep); outline-offset: 2px; }

.raia-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--rw-body);
}
.raia-consent input {
  /* 24px: WCAG 2.5.8 minimum target (the source ships 16.8px) */
  width: 1.5rem; height: 1.5rem;
  margin-top: 0;
  accent-color: var(--rw-blue-deep);
}
.raia-consent a { text-decoration: underline; text-underline-offset: 3px; }

.raia-honeypot {
  position: absolute !important;
  left: -9999px; width: 1px; height: 1px;
  opacity: 0;
}

.raia-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--rw-line);
  padding-top: 1.75rem;
}

/* ---------------------------------------------------------------- footer */
.raia-footer {
  background: var(--rw-ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}
.raia-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr));
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 7vh, 5.5rem);
}
.raia-footer__brand { display: grid; gap: 1.25rem; align-content: start; }
.raia-footer__title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--rw-white);
  margin: 0;
  max-width: 14ch;
}
.raia-footer__col { display: grid; gap: 0.9rem; align-content: start; }
.raia-footer__head {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.raia-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.raia-footer__list a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s;
}
.raia-footer__list a:hover { color: var(--rw-blue); }
.raia-footer__bottom {
  border-top: 1px solid var(--rw-line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
}
.raia-footer__bottom a { color: rgba(255, 255, 255, 0.55); }
.raia-footer__bottom a:hover { color: var(--rw-blue); }

/* WCAG 2.5.8 AA: every footer link needs a >=24px hit area */
.raia-footer a { display: inline-block; padding-block: 0.3rem; }
/* the brand anchor is a lockup, not a text link: it has to keep the flex row
   or the block-level mark drops onto its own line above the wordmark. Its own
   38px mark already clears the 24px target, so it needs no padding. */
.raia-footer a.raia-brand {
  display: inline-flex;
  padding-block: 0;
}
.raia-footer__list { gap: 0.15rem; }

/* ------------------------------------------------------------ toast */
.raia-toast {
  position: fixed;
  left: 50%; bottom: 2rem;
  translate: -50% 0;
  z-index: 320;
  background: var(--rw-ink);
  color: var(--rw-white);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--rw-ease-soft), transform 0.4s var(--rw-ease-soft);
  pointer-events: none;
}
.raia-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------- reveal anim */
.raia-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--rw-ease-soft),
    transform 0.9s var(--rw-ease-soft);
  transition-delay: var(--rw-reveal-delay, 0s);
  will-change: opacity, transform;
}
.raia-reveal.is-in { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------- focus rings
   #003f82 is invisible on navy (1.7:1); #00a1de reads at 5.8:1 there. */
.raia-section--ink :focus-visible,
.raia-footer :focus-visible,
.raia-site .on-dark :focus-visible { outline-color: var(--rw-blue); }

/* ------------------------------------------------------------- utilities */
.raia-stack-2 > * + * { margin-top: 2rem; }
.raia-grid-divider { border-top: 1px solid var(--rw-line); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .raia-grid { grid-template-columns: repeat(2, 1fr); }
  .raia-footer__top { grid-template-columns: repeat(2, 1fr); }
  .raia-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .raia-site { font-size: 1rem; }
  .raia-stats__grid { grid-template-columns: 1fr; }
  .raia-stat { border-left: 0; border-top: 1px solid var(--rw-line); }
  .raia-stat:first-child { border-top: 0; }
  .raia-grid { grid-template-columns: 1fr; }
  .raia-sec-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .raia-footer__top { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:has(body.raia-site) { scroll-behavior: auto; }
  .raia-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .raia-btn::before,
  .raia-btn__arrow,
  .raia-textlink svg { transition: none; }
}
