/*
 * RSBI blog theme. Values come from tokens.css (generated from src/styles/tokens.css); the header, footer, buttons,
 * cards and focus rings mirror src/app/globals.css and the React components (Tailwind utilities written out here).
 * Breakpoints as Tailwind: sm 640, md 768, lg 1024, xl 1280.
 *
 *  1. Base            5. Footer            9. Article          13. Koenig cards
 *  2. Buttons         6. Sticky mobile bar 10. Table of contents 14. Pages, errors
 *  3. Announcement    7. Heroes, eyebrow   11. Content          15. Reveal, motion
 *  4. Header, menus   8. Guide cards       12. Share, CTA box   16. Accessibility panel
 */

/* 1. Base ------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color: var(--rsbi-ink);
  background: var(--rsbi-cream-50);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  --header-h: 64px;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (min-width: 1280px) { html { --header-h: 76px; } }
@media (max-width: 767px) { html[data-sticky-bar] { scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); } }
html:has(dialog.mobile-menu[open]) { overflow: hidden; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--rsbi-font);
  font-size: var(--rsbi-text-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul, pre { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
em, i, cite, dfn, var, address { font-style: italic; }
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.icon { flex-shrink: 0; }
.site-main { flex: 1 0 auto; }
.site-main:focus, .site-main:focus-visible { outline: none; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* Outline focus ring (globals.css): never a box-shadow, so it survives forced-colors mode. */
:focus-visible {
  outline: var(--rsbi-focus-width) solid var(--focus-ring, var(--rsbi-focus-outline));
  outline-offset: var(--rsbi-focus-offset);
}
.on-dark { --focus-ring: var(--rsbi-focus-outline-dark); }
.on-light { --focus-ring: var(--rsbi-focus-outline); }

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: calc(1200px + 2.5rem);
}
.container--text { max-width: calc(768px + 2.5rem); }
.container--figure { max-width: calc(1024px + 2.5rem); }
@media (min-width: 1024px) {
  .container { padding-inline: 2rem; max-width: calc(1200px + 4rem); }
  .container--text { max-width: calc(768px + 4rem); }
  .container--figure { max-width: calc(1024px + 4rem); }
}

/* Skip link (SkipLink.tsx): navy pill with a white halo so it stays visible on gold, navy and cream. */
.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
  border-radius: var(--rsbi-radius-pill);
  background: var(--rsbi-navy-900);
  color: var(--rsbi-white);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--rsbi-shadow-lg);
}
.skip-link:focus {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
  padding: 0.75rem 1.25rem;
}
.skip-link:focus-visible { box-shadow: 0 0 0 var(--rsbi-focus-offset) var(--rsbi-white); }

/* 2. Buttons (Button.tsx buttonClasses) ---------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--rsbi-radius-pill);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  transition: background-color 150ms var(--rsbi-ease), color 150ms var(--rsbi-ease), border-color 150ms var(--rsbi-ease),
    box-shadow 150ms var(--rsbi-ease), transform 150ms var(--rsbi-ease);
}
.btn:active { transform: scale(0.97); }
.btn--full { width: 100%; }
.btn-icon--trail { transition: transform 150ms var(--rsbi-ease); }
.btn:hover .btn-icon--trail { transform: translateX(3px); }

/* Sizes: solid (primary), 2 px outline (secondary, padding reduced by the border), text-only (ghost). */
.btn--sm { min-height: 2.75rem; font-size: 15px; }
.btn--md { min-height: 2.75rem; font-size: 1rem; }
.btn--lg { min-height: 3.25rem; font-size: 17px; }
.btn--primary.btn--sm { padding: 0.625rem 0.875rem; }
.btn--primary.btn--md { padding: 14px 26px; }
.btn--primary.btn--lg { padding: 1rem 30px; }
.btn--secondary.btn--sm { padding: 0.5rem 0.75rem; }
.btn--secondary.btn--md { padding: 0.75rem 1.5rem; }
.btn--secondary.btn--lg { padding: 0.875rem 1.75rem; }
.btn--ghost { padding-block: 0.5rem; }
@media (min-width: 640px) {
  .btn--primary.btn--sm { padding-inline: 1.25rem; }
  .btn--secondary.btn--sm { padding-inline: 18px; }
}

.btn--primary.btn--light { background: var(--rsbi-navy-800); color: var(--rsbi-white); }
.btn--primary.btn--light:hover { background: var(--rsbi-navy-900); box-shadow: var(--rsbi-shadow-md); }
.btn--primary.btn--light .btn-icon { color: var(--rsbi-gold-400); }
.btn--primary.btn--dark { background: var(--rsbi-gold-400); color: var(--rsbi-navy-900); }
.btn--primary.btn--dark:hover { background: var(--rsbi-gold-300); box-shadow: var(--rsbi-shadow-gold); }
.btn--primary.btn--dark .btn-icon { color: var(--rsbi-navy-900); }
.btn--primary.btn--adaptive { background: var(--cta-bg, var(--rsbi-navy-800)); color: var(--cta-fg, var(--rsbi-white)); }
.btn--primary.btn--adaptive:hover { background: var(--cta-hover, var(--rsbi-navy-900)); box-shadow: var(--rsbi-shadow-md); }
.btn--primary.btn--adaptive .btn-icon { color: var(--cta-icon, var(--rsbi-gold-400)); }

.btn--secondary { border: 2px solid; }
.btn--secondary.btn--light { border-color: var(--rsbi-navy-800); color: var(--rsbi-navy-800); }
.btn--secondary.btn--light:hover { background: var(--rsbi-navy-50); }
.btn--secondary.btn--light .btn-icon { color: var(--rsbi-navy-800); }
.btn--secondary.btn--dark {
  border-color: color-mix(in srgb, var(--rsbi-white) 30%, transparent);
  background: color-mix(in srgb, var(--rsbi-white) 8%, transparent);
  color: var(--rsbi-white);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--secondary.btn--dark:hover { border-color: var(--rsbi-gold-400); color: var(--rsbi-gold-300); }

.btn--ghost.btn--light { color: var(--rsbi-navy-800); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.btn--ghost.btn--light:hover { text-decoration-line: underline; }

/* 3. Announcement strip (AnnouncementStrip.tsx) ----------------------------------------------------------------- */
.announcement-strip { position: relative; z-index: 50; background: var(--rsbi-gold-400); color: var(--rsbi-navy-900); }
html[data-announcement-hidden] .announcement-strip { display: none; }
.announcement-inner {
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: calc(1280px + 2.5rem);
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
}
.announcement-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.125rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.375;
}
.announcement-lead { display: inline-flex; align-items: center; gap: 0.625rem; }
.announcement-badge {
  display: none;
  width: 1.5rem; height: 1.5rem;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-pill);
  background: var(--rsbi-navy-900);
  color: var(--rsbi-gold-400);
}
.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--rsbi-navy-900) 40%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms var(--rsbi-ease);
}
.announcement-link:hover { text-decoration-color: var(--rsbi-navy-900); }
.announcement-arrow { transition: transform 150ms var(--rsbi-ease); }
.announcement-link:hover .announcement-arrow { transform: translateX(3px); }
.announcement-close {
  display: inline-flex;
  width: 2.25rem; height: 2.25rem;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-pill);
  transition: background-color 150ms var(--rsbi-ease);
}
.announcement-close:hover { background: color-mix(in srgb, var(--rsbi-navy-900) 10%, transparent); }
@media (min-width: 640px) {
  .announcement-text { justify-content: center; font-size: 15px; }
  .announcement-badge { display: inline-flex; }
}
@media (min-width: 1024px) {
  .announcement-inner { max-width: calc(1280px + 4rem); padding-left: 2rem; }
}

/* 4. Header (globals.css .site-header contract + SiteHeader.tsx) -------------------------------------------------- */
.site-header {
  --hdr-fg: var(--rsbi-navy-900);
  --hdr-hover: var(--rsbi-navy-50);
  --hdr-current: var(--rsbi-navy-800);
  --cta-bg: var(--rsbi-navy-800);
  --cta-fg: var(--rsbi-white);
  --cta-hover: var(--rsbi-navy-900);
  --cta-icon: var(--rsbi-gold-400);
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  color: var(--hdr-fg);
  background-color: color-mix(in srgb, var(--rsbi-cream-50) 94%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--rsbi-line);
  transition: background-color 300ms var(--rsbi-ease), box-shadow 300ms var(--rsbi-ease), color 300ms var(--rsbi-ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rsbi-line), var(--rsbi-shadow-sm); }
.site-header .logo-light { opacity: 0; visibility: hidden; }
.site-header .logo-dark, .site-header .logo-light { transition: opacity 300ms var(--rsbi-ease), visibility 300ms; }

/* Dark hero first in <main> (directly, or as the first child of the first element: the post's <article>):
   the header overlaps it and turns transparent until scrolled. */
body:has(> main > [data-hero="dark"]:first-child, > main > :first-child > [data-hero="dark"]:first-child) .site-header {
  margin-bottom: calc(-1 * var(--header-h));
}
main > [data-hero="dark"]:first-child, main > :first-child > [data-hero="dark"]:first-child { padding-top: var(--header-h); }
body:has(> main > [data-hero="dark"]:first-child, > main > :first-child > [data-hero="dark"]:first-child) .site-header:not(.is-scrolled) {
  --hdr-fg: var(--rsbi-white);
  --hdr-hover: color-mix(in srgb, var(--rsbi-white) 10%, transparent);
  --hdr-current: var(--rsbi-gold-400);
  --cta-bg: var(--rsbi-gold-400);
  --cta-fg: var(--rsbi-navy-900);
  --cta-hover: var(--rsbi-gold-300);
  --cta-icon: var(--rsbi-navy-900);
  --focus-ring: var(--rsbi-focus-outline-dark);
  background-color: transparent;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--rsbi-navy-950) 55%, transparent), transparent);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
body:has(> main > [data-hero="dark"]:first-child, > main > :first-child > [data-hero="dark"]:first-child) .site-header:not(.is-scrolled) .logo-light { opacity: 1; visibility: visible; }
body:has(> main > [data-hero="dark"]:first-child, > main > :first-child > [data-hero="dark"]:first-child) .site-header:not(.is-scrolled) .logo-dark { opacity: 0; visibility: hidden; }

.hdr-inner {
  margin-inline: auto;
  display: flex;
  height: 100%;
  width: 100%;
  max-width: calc(1280px + 2.5rem);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: 1.25rem;
}
.header-home { position: relative; display: flex; flex-shrink: 0; align-items: center; border-radius: var(--rsbi-radius-lg); }
.header-home img { height: 2.5rem; width: auto; max-width: none; }
.header-home .logo-light { position: absolute; inset-block: 0; left: 0; margin-block: auto; }
.hdr-nav { display: none; }
.hdr-nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hdr-actions { display: flex; align-items: center; gap: 0.5rem; }
.hdr-cta-desktop { display: none; }

.nav-pill {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--rsbi-radius-pill);
  padding: 0.5rem 0.875rem;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--hdr-fg);
  transition: color 150ms var(--rsbi-ease), background-color 150ms var(--rsbi-ease);
}
.nav-pill:hover { background-color: var(--hdr-hover); }
.nav-current-bar { position: relative; }
.nav-current-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--hdr-current);
  transform: translateX(-50%) scaleX(0);
  transition: transform 300ms var(--rsbi-ease);
}
.nav-current-bar[aria-current]::after { transform: translateX(-50%) scaleX(1); }
/* Forced colours would paint the bar's background as Canvas (invisible): draw it in the text colour (globals.css). */
@media (forced-colors: active) { .nav-current-bar::after { background: CanvasText; forced-color-adjust: none; } }

.hdr-mobile-cta-icon { display: block; }
.hdr-mobile-cta-label { display: none; }
@media (min-width: 360px) {
  .hdr-mobile-cta-icon { display: none; }
  .hdr-mobile-cta-label { display: inline; }
}
.hdr-mobile-cta {
  transition: opacity 300ms var(--rsbi-ease), visibility 300ms, background-color 150ms var(--rsbi-ease), transform 150ms var(--rsbi-ease);
}
@media (max-width: 767px) { html[data-sticky-bar] .hdr-mobile-cta { opacity: 0; visibility: hidden; } }
.hdr-toggle {
  display: inline-flex;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-pill);
  color: var(--hdr-fg);
  transition: background-color 150ms var(--rsbi-ease);
}
.hdr-toggle:hover { background-color: var(--hdr-hover); }

@media (min-width: 1024px) {
  .hdr-inner { max-width: calc(1280px + 4rem); padding-inline: 2rem; }
}
@media (min-width: 1280px) {
  .header-home img { height: 3rem; }
  .hdr-nav, .hdr-cta-desktop { display: block; }
  .hdr-mobile-cta, .hdr-toggle { display: none; }
}

/* Services panel (hover intent, click, Escape: theme.js). Visible (so focusable) the instant it opens. */
.services-menu { position: relative; }
.services-chevron { transition: transform 300ms var(--rsbi-ease); }
.services-menu [aria-expanded="true"] .services-chevron { transform: rotate(180deg); }
.services-panel {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  z-index: 50;
  width: 640px;
  padding-top: 0.75rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 300ms var(--rsbi-ease), transform 300ms var(--rsbi-ease), visibility 0s linear 300ms;
}
.services-panel[data-open] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.services-box {
  overflow: hidden;
  border-radius: var(--rsbi-radius-lg);
  border: 1px solid var(--rsbi-line);
  background: var(--rsbi-white);
  color: var(--rsbi-ink);
  box-shadow: var(--rsbi-shadow-lg);
}
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; padding: 0.75rem; list-style: none; margin: 0; }
.svc-link { display: flex; gap: 1rem; border-radius: var(--rsbi-radius-md); padding: 1rem; transition: background-color 150ms var(--rsbi-ease); }
.svc-link:hover { background: var(--rsbi-navy-50); }
.svc-icon {
  display: flex;
  width: 2.75rem; height: 2.75rem;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-sm);
  background: var(--rsbi-navy-50);
  color: var(--rsbi-navy-800);
  transition: background-color 150ms var(--rsbi-ease), color 150ms var(--rsbi-ease);
}
.svc-link:hover .svc-icon { background: color-mix(in srgb, var(--rsbi-gold-400) 25%, transparent); color: var(--rsbi-navy-900); }
.svc-text { min-width: 0; }
.svc-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.375; color: var(--rsbi-navy-900); }
.svc-desc { display: block; margin-top: 0.25rem; font-size: 13.5px; line-height: 1.375; color: var(--rsbi-muted); }
.services-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rsbi-line);
  background: var(--rsbi-cream-50);
  padding: 1rem 1.75rem;
}
.services-foot p { font-size: 13.5px; color: var(--rsbi-muted); }
.services-foot-cta { font-weight: 700; color: var(--rsbi-navy-800); text-decoration: underline; text-underline-offset: 4px; }
.services-foot-cta:hover { color: var(--rsbi-navy-900); }
.services-all { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.375rem; font-size: 14px; font-weight: 700; color: var(--rsbi-navy-800); text-underline-offset: 4px; }
.services-all:hover { text-decoration: underline; }
.link-arrow { transition: transform 150ms var(--rsbi-ease); }
a:hover > .link-arrow, a:hover .link-arrow { transform: translateX(3px); }

/* Mobile menu: native <dialog> sheet sliding from the top (MobileMenu.tsx). */
dialog.mobile-menu {
  margin: 0;
  inset: 0 0 auto 0;
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  padding: 0;
  color: var(--rsbi-ink);
  background: var(--rsbi-white);
  border-radius: 0 0 var(--rsbi-radius-xl) var(--rsbi-radius-xl);
  box-shadow: var(--rsbi-shadow-lg);
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 300ms var(--rsbi-ease), transform 300ms var(--rsbi-ease), overlay 300ms allow-discrete, display 300ms allow-discrete;
}
dialog.mobile-menu[open] { opacity: 1; transform: none; }
@starting-style { dialog.mobile-menu[open] { opacity: 0; transform: translateY(-24px); } }
dialog.mobile-menu::backdrop {
  background-color: transparent;
  transition: background-color 300ms var(--rsbi-ease), overlay 300ms allow-discrete, display 300ms allow-discrete;
}
dialog.mobile-menu[open]::backdrop { background-color: color-mix(in srgb, var(--rsbi-navy-950) 60%, transparent); }
@starting-style { dialog.mobile-menu[open]::backdrop { background-color: transparent; } }
.mm-pad { padding: 0 1.25rem 1.5rem; }
.mm-inner { margin-inline: auto; max-width: 42rem; }
.mm-top { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.mm-home { display: flex; align-items: center; border-radius: var(--rsbi-radius-lg); }
.mm-logo { height: 2.5rem; width: auto; max-width: none; }
.mm-close {
  display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-pill); color: var(--rsbi-navy-900); transition: background-color 150ms var(--rsbi-ease);
}
.mm-close:hover { background: var(--rsbi-navy-50); }
.mm-nav { margin-top: 0.5rem; }
.mm-list { list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--rsbi-line); }
.mm-list > li + li { border-top: 1px solid var(--rsbi-line); }
.mm-link {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rsbi-navy-900);
  text-decoration-color: var(--rsbi-navy-800);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.mm-link[aria-current] { text-decoration-line: underline; }
.mm-arrow { color: var(--rsbi-navy-300); }
.mm-link[aria-current] .mm-arrow { color: var(--rsbi-navy-800); }
.mm-services { display: grid; gap: 0.25rem; list-style: none; margin: 0 0 0.75rem; padding: 0; }
.mm-svc-link {
  display: flex; min-height: 3rem; align-items: center; gap: 0.75rem;
  border-radius: var(--rsbi-radius-sm); padding: 0.625rem 0.75rem;
  font-size: 15.5px; font-weight: 600; color: var(--rsbi-ink-soft);
  transition: background-color 150ms var(--rsbi-ease);
}
.mm-svc-link:hover { background: var(--rsbi-navy-50); }
.mm-svc-icon {
  display: flex; width: 2.25rem; height: 2.25rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-sm); background: var(--rsbi-navy-50); color: var(--rsbi-navy-800);
}
.mm-cta { margin-top: 1.5rem; }
.mm-contact { margin-top: 1.25rem; border-radius: var(--rsbi-radius-md); background: var(--rsbi-cream-100); padding: 1rem; font-size: 14px; color: var(--rsbi-ink-soft); }
.mm-contact > * + * { margin-top: 0.5rem; }
.mm-mail { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; color: var(--rsbi-navy-900); text-underline-offset: 4px; }
.mm-mail:hover { text-decoration: underline; }
.mm-hours { display: flex; align-items: flex-start; gap: 0.625rem; }
.mm-hours .mm-contact-icon { margin-top: 0.125rem; }
.mm-contact-icon { flex-shrink: 0; color: var(--rsbi-navy-700); }
@media (min-width: 640px) { .mm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 5. Footer (SiteFooter.tsx + globals.css .footer-grid) ------------------------------------------------------------ */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--rsbi-navy-950); color: var(--rsbi-white); }
.footer-grid::before {
  --grid-line: color-mix(in srgb, var(--rsbi-white) 5%, transparent);
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 35%, transparent 100%);
  pointer-events: none;
}
.footer-topline { position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--rsbi-gold-400), transparent); opacity: 0.6; }
.footer-inner { margin-inline: auto; width: 100%; max-width: calc(1200px + 2.5rem); padding: 4rem 1.25rem 2.5rem; }
.footer-grid-cols { display: grid; gap: 3rem; }
.footer-home { display: inline-flex; border-radius: var(--rsbi-radius-lg); }
.footer-logo { height: 60px; width: auto; max-width: none; }
.footer-tagline { margin-top: 1.5rem; max-width: 24rem; font-size: 15px; line-height: 1.625; color: var(--rsbi-navy-200); }
.footer-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2.5rem; }
.footer-heading { position: relative; padding-bottom: 0.75rem; font-size: 15px; font-weight: 700; letter-spacing: normal; color: var(--rsbi-white); }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; border-radius: 2px; background: var(--rsbi-gold-400); }
.footer-links { margin-top: 1.25rem; list-style: none; padding: 0; }
.footer-links > li + li { margin-top: 0.375rem; }
.footer-link {
  display: inline-flex; align-items: center; gap: 0.375rem; padding-block: 0.25rem;
  font-size: 15px; color: color-mix(in srgb, var(--rsbi-white) 80%, transparent);
  transition: color 150ms var(--rsbi-ease), transform 150ms var(--rsbi-ease);
}
.footer-link:hover { transform: translateX(0.25rem); color: var(--rsbi-white); }
.footer-contact-list { margin-top: 1.25rem; list-style: none; padding: 0; font-size: 15px; }
.footer-contact-list > li + li { margin-top: 1rem; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact-icon { margin-top: 0.125rem; color: var(--rsbi-gold-400); }
.footer-contact-soft { color: color-mix(in srgb, var(--rsbi-white) 80%, transparent); }
.footer-contact-soft strong { font-weight: 600; color: var(--rsbi-white); }
.footer-mail { font-weight: 600; color: var(--rsbi-white); text-underline-offset: 4px; }
.footer-mail:hover { color: var(--rsbi-gold-300); text-decoration: underline; }
.footer-promise { margin-top: 1.25rem; font-size: 14px; line-height: 1.625; color: var(--rsbi-navy-200); }
.footer-write { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 15px; font-weight: 700; color: var(--rsbi-gold-300); text-underline-offset: 4px; }
.footer-write:hover { text-decoration: underline; }
.footer-bottom { margin-top: 3.5rem; border-top: 1px solid color-mix(in srgb, var(--rsbi-white) 10%, transparent); padding-top: 2rem; }
.footer-bottom-row { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-copy { font-size: 14px; color: color-mix(in srgb, var(--rsbi-white) 80%, transparent); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; row-gap: 0.5rem; font-size: 14px; list-style: none; margin: 0; padding: 0; }
.footer-legal-form { display: contents; }
.footer-legal-link { font-size: 14px; color: color-mix(in srgb, var(--rsbi-white) 80%, transparent); text-underline-offset: 4px; transition: color 150ms var(--rsbi-ease); }
.footer-legal-link:hover { color: var(--rsbi-white); text-decoration: underline; }
.footer-notices { margin-top: 1.5rem; max-width: 56rem; font-size: 13px; line-height: 1.625; color: var(--rsbi-navy-200); }
.footer-notices > p + p { margin-top: 0.5rem; }
@media (min-width: 640px) { .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-inner { max-width: calc(1200px + 4rem); padding: 5rem 2rem 2.5rem; }
  .footer-grid-cols { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .footer-brand { grid-column: span 4 / span 4; padding-right: 1.5rem; }
  .footer-columns { grid-column: span 5 / span 5; }
  .footer-contact { grid-column: span 3 / span 3; }
  .footer-bottom-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* 6. Sticky mobile bar (StickyMobileBar.tsx; theme.js toggles data-visible) -------------------------------------- */
.sticky-mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  border-top: 1px solid var(--rsbi-line);
  background: color-mix(in srgb, var(--rsbi-white) 95%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom)) max(1rem, var(--rsbi-a11y-launcher-space, 0px));
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 300ms var(--rsbi-ease), visibility 0s linear 300ms;
}
.sticky-mobile-bar[data-visible] { transform: translateY(0); visibility: visible; transition-delay: 0s; }
.smb-inner { margin-inline: auto; display: flex; max-width: 32rem; align-items: center; gap: 0.625rem; }
.smb-calc { flex: 1; }
.smb-cta { flex: 1.35; }
.smb-whatsapp {
  display: inline-flex; width: 3rem; height: 3rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-pill); background: var(--rsbi-navy-800); color: var(--rsbi-gold-400); box-shadow: var(--rsbi-shadow-md);
}
@media (max-width: 359px) { .smb-inner .btn-icon { display: none; } }
@media (min-width: 768px) { .sticky-mobile-bar { display: none; } }

/* 7. Heroes, eyebrow, breadcrumbs ------------------------------------------------------------------------------ */
.hero-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--rsbi-navy-900); color: var(--rsbi-white); }
.hero-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 50% 70% at 92% 0%, color-mix(in srgb, var(--rsbi-gold-400) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 90% at 0% 100%, color-mix(in srgb, var(--rsbi-navy-600) 55%, transparent), transparent 70%);
}
.hero-texture::before {
  --grid-line: color-mix(in srgb, var(--rsbi-white) 5%, transparent);
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 80% 10%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 90% at 80% 10%, #000 20%, transparent 85%);
}
.hero-inner { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero-dark .hero-inner { --focus-ring: var(--rsbi-focus-outline-dark); }
.hero-title { margin-top: 1.25rem; font-size: var(--rsbi-text-h1); max-width: 20ch; }
.hero-title--compact { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 28ch; }
.hero-title-light { display: block; font-weight: 300; color: var(--rsbi-white); }
.hero-title-strong { display: block; font-weight: 800; color: var(--rsbi-gold-400); }
.hero-lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.65; color: var(--rsbi-navy-200); }
.hero-page, .hero-count { margin-top: 1.25rem; font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--rsbi-white) 80%, transparent); }
.breadcrumbs ~ .hero-title { margin-top: 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--rsbi-radius-pill);
  border: 1px solid var(--rsbi-navy-100);
  background: var(--rsbi-navy-50);
  color: var(--rsbi-navy-800);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 0.375rem; height: 0.375rem; flex-shrink: 0; border-radius: var(--rsbi-radius-pill); background: var(--rsbi-gold-500); }
.eyebrow--dark { border-color: color-mix(in srgb, var(--rsbi-white) 15%, transparent); background: color-mix(in srgb, var(--rsbi-white) 10%, transparent); color: var(--rsbi-gold-300); }
.eyebrow--dark .eyebrow-dot { background: var(--rsbi-gold-400); }

.breadcrumbs { font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.breadcrumbs li + li::before { content: "›"; content: "›" / ""; color: color-mix(in srgb, var(--rsbi-white) 50%, transparent); }
.breadcrumbs a { color: color-mix(in srgb, var(--rsbi-white) 85%, transparent); font-weight: 600; text-underline-offset: 4px; border-radius: 4px; }
.breadcrumbs a:hover { color: var(--rsbi-white); text-decoration: underline; }
.breadcrumbs [aria-current] {
  display: block;
  max-width: min(60vw, 32rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: color-mix(in srgb, var(--rsbi-white) 65%, transparent);
}
.breadcrumbs ~ .eyebrow { margin-top: 1.75rem; }
@media (max-width: 639px) { .breadcrumbs li:last-child { display: none; } }
.breadcrumbs--light li + li::before { color: var(--rsbi-navy-300); }
.breadcrumbs--light a { color: var(--rsbi-navy-800); }
.breadcrumbs--light a:hover { color: var(--rsbi-navy-900); }
.breadcrumbs--light [aria-current] { color: var(--rsbi-muted); }

/* 8. Sections and guide cards --------------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--cream { background: var(--rsbi-cream-100); }
.section--white { background: var(--rsbi-white); }
.section-title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); color: var(--rsbi-navy-900); }

.rsbi-card {
  position: relative;
  overflow: hidden;
  background: var(--rsbi-white);
  border: 1px solid var(--rsbi-line);
  border-radius: var(--rsbi-radius-lg);
  box-shadow: var(--rsbi-shadow-sm);
  transition: transform 300ms var(--rsbi-ease), box-shadow 300ms var(--rsbi-ease), border-color 300ms var(--rsbi-ease);
}
.rsbi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 3px;
  background: var(--rsbi-gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--rsbi-ease);
}

.featured-post { margin-bottom: 1.5rem; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.post-grid > li { display: flex; }
.post-card { display: flex; flex-direction: column; width: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--rsbi-shadow-lg); border-color: var(--rsbi-navy-200); }
.post-card:hover::before { transform: scaleX(1); }
.post-card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--rsbi-navy-100); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--rsbi-ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.post-card-tag { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rsbi-navy-700); }
.post-card-title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; word-spacing: 0.04em; color: var(--rsbi-navy-900); text-wrap: balance; }
.post-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.post-card-excerpt {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--rsbi-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.post-card-meta { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 13.5px; color: var(--rsbi-muted); }
.post-card-more { margin-top: 0.875rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 15px; font-weight: 700; color: var(--rsbi-navy-800); }
.post-card:hover .link-arrow { transform: translateX(3px); }
.meta-dot { color: var(--rsbi-navy-300); }
/* One focus stop per card: the stretched title link; the ring goes around the whole card. */
@supports selector(:has(*)) {
  .post-card-link:focus-visible { outline: none; }
  .post-card:has(.post-card-link:focus-visible) {
    outline: var(--rsbi-focus-width) solid var(--focus-ring, var(--rsbi-focus-outline));
    outline-offset: var(--rsbi-focus-offset);
    transform: translateY(-6px);
    box-shadow: var(--rsbi-shadow-lg);
    border-color: var(--rsbi-navy-200);
  }
  .post-card:has(.post-card-link:focus-visible)::before { transform: scaleX(1); }
}
@media (min-width: 768px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card--featured { flex-direction: row; }
  .post-card--featured .post-card-media { flex: 0 0 56%; aspect-ratio: auto; min-height: 22rem; }
  .post-card--featured .post-card-body { justify-content: center; padding: 2.5rem; }
  .post-card--featured .post-card-title { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.15; }
  .post-card--featured .post-card-excerpt { font-size: 1rem; -webkit-line-clamp: 4; line-clamp: 4; }
  .post-card--featured .post-card-meta { margin-top: 0; padding-top: 1.5rem; }
}
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  /* Exactly two guides: two wide columns rather than a gap where the third would be. */
  .post-grid:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid:has(> li:nth-child(2):last-child) .post-card-media { aspect-ratio: 16 / 9; }
  .featured-post { margin-bottom: 2rem; }
  .post-card-body { padding: 1.75rem; }
  .post-card--featured .post-card-body { padding: 3rem; }
}

.pagination { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.pagination-status { font-size: 14px; font-weight: 600; color: var(--rsbi-muted); }
.empty-state { max-width: 36rem; }
.empty-state h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); color: var(--rsbi-navy-900); }
.empty-state p { margin-block: 1rem 1.75rem; color: var(--rsbi-muted); }

/* 9. Article ------------------------------------------------------------------------------------------------- */
.reading-progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.reading-progress-bar { display: block; height: 100%; background: var(--rsbi-gold-400); transform: scaleX(0); transform-origin: left; }
.article-hero .hero-inner { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.article:has(.article-figure) .article-hero .hero-inner { padding-bottom: clamp(7rem, 13vw, 10rem); }
.article-title { margin-top: 1rem; font-size: clamp(2rem, 3.8vw, 3.125rem); line-height: 1.1; color: var(--rsbi-white); }
.breadcrumbs ~ .article-title { margin-top: 1.75rem; }
.eyebrow ~ .article-title { margin-top: 1rem; }
.article-hero-text { max-width: 720px; margin-inline: auto; }
@media (min-width: 1280px) { .article-hero-text { max-width: 800px; margin-inline: 0; } }
.article-lead { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.6; color: var(--rsbi-navy-200); }
.article-meta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; font-size: 14.5px; color: color-mix(in srgb, var(--rsbi-white) 82%, transparent); }
.article-meta .meta-dot { color: color-mix(in srgb, var(--rsbi-white) 45%, transparent); }
.article-updated { font-weight: 700; color: var(--rsbi-gold-300); }
.article-figure { position: relative; z-index: 1; margin-top: calc(-1 * clamp(5rem, 10vw, 7.5rem)); }
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--rsbi-radius-xl);
  background: var(--rsbi-navy-800);
  box-shadow: var(--rsbi-shadow-lg);
}
.article-figure figcaption, .gh-content figcaption { margin-top: 0.75rem; text-align: center; font-size: 14px; line-height: 1.5; color: var(--rsbi-muted); }
.article-figure--page { margin-top: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.article-main { min-width: 0; }
.toc-aside { display: none; }
@media (min-width: 1280px) {
  .article-layout { grid-template-columns: minmax(0, 720px) 240px; column-gap: 4rem; }
  .article-main { grid-column: 1; grid-row: 1; }
  .toc-aside { display: block; grid-column: 2; grid-row: 1; }
}

/* 10. Table of contents (theme.js builds the lists from the content's h2/h3) ----------------------------------- */
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list a { display: block; text-decoration: none; transition: color 150ms var(--rsbi-ease), border-color 150ms var(--rsbi-ease); }
.toc--desktop {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  max-height: calc(100vh - var(--header-h) - 4rem);
  overflow-y: auto;
  padding: 0.25rem 0.25rem 0.25rem 0;
}
.toc-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rsbi-navy-800); }
.toc--desktop .toc-list { border-left: 2px solid var(--rsbi-navy-100); }
.toc--desktop .toc-list a { margin-left: -2px; border-left: 2px solid transparent; padding: 0.375rem 0 0.375rem 1rem; font-size: 14px; line-height: 1.4; color: var(--rsbi-muted); }
.toc--desktop .toc-list a:hover { color: var(--rsbi-navy-900); }
.toc--desktop .toc-list a[aria-current] { border-left-color: var(--rsbi-navy-800); font-weight: 700; color: var(--rsbi-navy-900); }
.toc--desktop .toc-h3 a { padding-left: 1.75rem; font-size: 13.5px; }
.toc--mobile { margin-bottom: 2.5rem; border: 1px solid var(--rsbi-line); border-radius: var(--rsbi-radius-md); background: var(--rsbi-white); box-shadow: var(--rsbi-shadow-sm); }
.toc-summary {
  display: flex; align-items: center; gap: 0.625rem; min-height: 3.25rem; padding: 0.75rem 1.25rem;
  font-weight: 700; color: var(--rsbi-navy-900); cursor: pointer; list-style: none; border-radius: var(--rsbi-radius-md);
}
.toc-summary::-webkit-details-marker { display: none; }
.toc-summary::after {
  content: "";
  margin-left: auto;
  width: 0.55rem; height: 0.55rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 300ms var(--rsbi-ease);
}
.toc--mobile[open] .toc-summary::after { transform: translateY(2px) rotate(-135deg); }
.toc--mobile nav { padding: 0 1.25rem 1rem; }
.toc--mobile .toc-list { border-top: 1px solid var(--rsbi-line); padding-top: 0.5rem; }
.toc--mobile .toc-list a { padding: 0.5rem 0; font-size: 15px; font-weight: 600; color: var(--rsbi-navy-800); text-underline-offset: 4px; }
.toc--mobile .toc-list a:hover { text-decoration: underline; }
.toc--mobile .toc-h3 a { padding-left: 1rem; font-weight: 500; color: var(--rsbi-ink-soft); }
@media (min-width: 1280px) { .toc--mobile { display: none; } }

/* 11. Post content (.gh-content) ----------------------------------------------------------------------------------- */
.gh-content { font-size: 1.0625rem; line-height: 1.75; color: var(--rsbi-ink); overflow-wrap: break-word; }
.gh-content > * + * { margin-top: 1.25em; }
.gh-content > h2 { margin-top: 2.25em; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.2; color: var(--rsbi-navy-900); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.gh-content > h3 { margin-top: 1.9em; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--rsbi-navy-900); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.gh-content > h4 { margin-top: 1.6em; font-size: 1.0625rem; color: var(--rsbi-navy-900); }
.gh-content > :is(h2, h3, h4) + * { margin-top: 0.75em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content a { color: var(--rsbi-navy-800); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rsbi-navy-300); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color 150ms var(--rsbi-ease), text-decoration-color 150ms var(--rsbi-ease); }
.gh-content a:hover { color: var(--rsbi-navy-900); text-decoration-color: var(--rsbi-navy-800); }
.gh-content strong, .gh-content b { font-weight: 700; color: var(--rsbi-navy-900); }
.gh-content :is(ul, ol) { padding-left: 1.35em; }
.gh-content li + li { margin-top: 0.5em; }
.gh-content li > :is(ul, ol) { margin-top: 0.5em; }
.gh-content ul > li::marker { color: var(--rsbi-gold-600); font-size: 1.1em; }
.gh-content ol > li::marker { color: var(--rsbi-navy-800); font-weight: 700; }
.gh-content > hr { margin-block: 3em; border: 0; height: 1px; background: var(--rsbi-line); }
.gh-content > hr + * { margin-top: 0; }
.gh-content blockquote:not([class]) , .gh-content .kg-blockquote-alt {
  border-left: 3px solid var(--rsbi-gold-400);
  padding: 0.25em 0 0.25em 1.25em;
  font-size: 1.125em;
  font-style: italic;
  color: var(--rsbi-navy-900);
}
.gh-content .kg-blockquote-alt { border-left: 0; padding: 0 1.5em; text-align: center; font-size: 1.35em; line-height: 1.5; color: var(--rsbi-navy-800); }
.gh-content :not(pre) > code { border-radius: 6px; background: var(--rsbi-navy-50); padding: 0.1em 0.35em; font-size: 0.9em; color: var(--rsbi-navy-900); }
.gh-content pre { overflow-x: auto; border-radius: var(--rsbi-radius-md); background: var(--rsbi-navy-950); padding: 1.25rem 1.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--rsbi-white); }
.gh-content img { border-radius: var(--rsbi-radius-md); }
.gh-content sup { line-height: 0; }

/* Tables (HTML cards in the guides). theme.js wraps them in .table-wrap and, for tables with a header row, adds
   data-label to each cell so phones get one card per row; explicit ARIA roles keep the table semantics. */
.gh-content .table-wrap, .gh-content > table {
  margin-top: 1.75em;
  overflow-x: auto;
  border: 1px solid var(--rsbi-line);
  border-radius: var(--rsbi-radius-md);
  background: var(--rsbi-white);
  box-shadow: var(--rsbi-shadow-sm);
}
.gh-content > table { display: block; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.gh-content thead th {
  background: var(--rsbi-navy-900);
  color: var(--rsbi-white);
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: bottom;
  font-size: 0.875rem;
  font-weight: 700;
}
.gh-content td, .gh-content tbody th { padding: 0.875rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--rsbi-line); color: var(--rsbi-ink-soft); }
.gh-content tbody tr:first-child > * { border-top: 0; }
.gh-content tbody tr:nth-child(even) > * { background: var(--rsbi-cream-50); }
.gh-content td strong { color: var(--rsbi-navy-900); }
@media (max-width: 639px) {
  .gh-content .table-wrap--stack { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .table-wrap--stack table, .table-wrap--stack tbody, .table-wrap--stack tr, .table-wrap--stack td { display: block; }
  .table-wrap--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .gh-content .table-wrap--stack tr {
    border: 1px solid var(--rsbi-line);
    border-radius: var(--rsbi-radius-md);
    background: var(--rsbi-white);
    box-shadow: var(--rsbi-shadow-sm);
    padding: 0.75rem 1rem;
  }
  .gh-content .table-wrap--stack tr + tr { margin-top: 0.75rem; }
  .gh-content .table-wrap--stack tbody tr > * { background: none; border-top: 0; padding: 0.375rem 0; }
  .gh-content .table-wrap--stack td + td { border-top: 1px solid var(--rsbi-line); }
  /* Short first column ("Nr."): label and value on one line. */
  .table-wrap--stack td.cell-inline { display: flex; align-items: baseline; gap: 0.5rem; }
  .table-wrap--stack td.cell-inline::before { margin-bottom: 0; }
  .table-wrap--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rsbi-navy-700);
  }
}
@media (min-width: 768px) { .gh-content { font-size: 1.125rem; } .gh-content table { font-size: 0.9375rem; } }

/* 12. Share, CTA box, related -------------------------------------------------------------------------------- */
.share { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rsbi-line); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.share-title { font-size: 15px; font-weight: 700; color: var(--rsbi-navy-900); }
.share-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.share-btn {
  display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.5rem;
  border-radius: var(--rsbi-radius-pill); border: 1px solid var(--rsbi-navy-200); background: var(--rsbi-white);
  padding: 0.5rem 1rem; font-size: 14px; font-weight: 600; color: var(--rsbi-navy-800);
  transition: background-color 150ms var(--rsbi-ease), border-color 150ms var(--rsbi-ease), color 150ms var(--rsbi-ease);
}
.share-btn:hover { border-color: var(--rsbi-navy-800); background: var(--rsbi-navy-50); }
.share-btn.is-copied { border-color: var(--rsbi-success); color: var(--rsbi-success); }

.cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 3rem;
  border-radius: var(--rsbi-radius-xl);
  background: var(--rsbi-navy-900);
  color: var(--rsbi-white);
  padding: 2rem 1.5rem;
  box-shadow: var(--rsbi-shadow-lg);
}
.cta-box-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 80% at 100% 0%, color-mix(in srgb, var(--rsbi-gold-400) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 80% at 0% 100%, color-mix(in srgb, var(--rsbi-navy-600) 60%, transparent), transparent 70%);
}
.cta-box-title { margin-top: 1.25rem; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.12; }
.cta-box-title-light { display: block; font-weight: 300; color: var(--rsbi-white); }
.cta-box-title-strong { display: block; font-weight: 800; color: var(--rsbi-gold-400); }
.cta-box-text { margin-top: 1rem; max-width: 36rem; font-size: 1.0625rem; line-height: 1.65; color: var(--rsbi-navy-200); }
.cta-box-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 479px) { .cta-box-actions .btn { width: 100%; } }
@media (min-width: 768px) { .cta-box { padding: 3rem; } }

.related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.link-more { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 15px; font-weight: 700; color: var(--rsbi-navy-800); text-underline-offset: 4px; }
.link-more:hover { text-decoration: underline; }

/* 13. Koenig cards (card_assets loads Ghost's own card CSS/JS; these bring them on brand) --------------------------- */
.gh-content .kg-card { margin-top: 1.75em; }
.gh-content .kg-card + :not(.kg-card) { margin-top: 1.75em; }
.kg-width-wide, .kg-width-full { position: relative; }
@media (max-width: 1279px) {
  .gh-content .kg-width-wide { width: min(1024px, 100vw - 2.5rem); left: 50%; transform: translateX(-50%); }
  .gh-content .kg-width-full { width: 100vw; left: 50%; transform: translateX(-50%); }
  .gh-content .kg-width-full img { border-radius: 0; }
}
.gh-content .kg-image-card img { margin-inline: auto; }

/* Callout = the site's Callout (info / warning / success). The editor's emoji is replaced by the brand icon:
   no emoji icons (design-direction section 8). */
.gh-content .kg-callout-card {
  display: flex;
  gap: 0.875rem;
  border-radius: var(--rsbi-radius-md);
  border: 1px solid var(--rsbi-navy-100);
  background: var(--rsbi-navy-50);
  padding: 1.25rem;
  color: var(--rsbi-ink-soft);
  box-shadow: none;
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --callout-icon-color: var(--rsbi-navy-800);
}
.gh-content .kg-callout-card::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  background: var(--callout-icon-color);
  -webkit-mask: var(--callout-icon) center / contain no-repeat;
  mask: var(--callout-icon) center / contain no-repeat;
}
@media (forced-colors: active) { .gh-content .kg-callout-card::before { background: CanvasText; } }
.gh-content .kg-callout-card .kg-callout-emoji { display: none; }
.gh-content .kg-callout-card .kg-callout-text { font-size: 0.9375rem; line-height: 1.65; }
.gh-content .kg-callout-card .kg-callout-text strong { color: var(--rsbi-navy-900); }
.gh-content .kg-callout-card-white { background: var(--rsbi-white); border-color: var(--rsbi-line); }
.gh-content .kg-callout-card-yellow, .gh-content .kg-callout-card-red {
  border-color: var(--rsbi-cream-300);
  background: var(--rsbi-cream-100);
  --callout-icon-color: var(--rsbi-gold-700);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.gh-content .kg-callout-card-red { --callout-icon-color: var(--rsbi-error); }
.gh-content .kg-callout-card-green {
  border-color: color-mix(in srgb, var(--rsbi-success) 25%, transparent);
  background: color-mix(in srgb, var(--rsbi-success) 7%, var(--rsbi-white));
  --callout-icon-color: var(--rsbi-success);
  --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.gh-content .kg-callout-card-accent { border-color: var(--rsbi-navy-800); background: var(--rsbi-navy-800); color: var(--rsbi-white); --callout-icon-color: var(--rsbi-gold-400); --focus-ring: var(--rsbi-focus-outline-dark); }
.gh-content .kg-callout-card-accent .kg-callout-text strong, .gh-content .kg-callout-card-accent a { color: var(--rsbi-white); }
@media (min-width: 1024px) { .gh-content .kg-callout-card { padding: 1.5rem; } }

.gh-content .kg-bookmark-container {
  border: 1px solid var(--rsbi-line);
  border-radius: var(--rsbi-radius-md);
  background: var(--rsbi-white);
  box-shadow: var(--rsbi-shadow-sm);
  color: var(--rsbi-ink);
  text-decoration: none;
  font-weight: 400;
  transition: border-color 300ms var(--rsbi-ease), box-shadow 300ms var(--rsbi-ease);
}
.gh-content .kg-bookmark-container:hover { border-color: var(--rsbi-navy-200); box-shadow: var(--rsbi-shadow-md); color: var(--rsbi-ink); }
.gh-content .kg-bookmark-title { font-weight: 700; color: var(--rsbi-navy-900); }
.gh-content .kg-bookmark-description { color: var(--rsbi-muted); }
.gh-content .kg-bookmark-metadata { color: var(--rsbi-muted); }
.gh-content .kg-bookmark-thumbnail img { border-radius: 0 var(--rsbi-radius-md) var(--rsbi-radius-md) 0; }
.gh-content .kg-toggle-card { border: 1px solid var(--rsbi-line); border-radius: var(--rsbi-radius-md); background: var(--rsbi-white); box-shadow: none; }
.gh-content .kg-toggle-card .kg-toggle-heading-text { font-weight: 700; color: var(--rsbi-navy-900); }
.gh-content .kg-gallery-image img { border-radius: var(--rsbi-radius-sm); }
.gh-content .kg-btn, .gh-content .kg-header-card-button { border-radius: var(--rsbi-radius-pill); font-weight: 700; text-decoration: none; }
.gh-content .kg-btn-accent { background: var(--rsbi-navy-800); color: var(--rsbi-white); }
.gh-content .kg-product-card-container, .gh-content .kg-file-card-container, .gh-content .kg-audio-card { border-radius: var(--rsbi-radius-md); }

/* 14. Pages and errors ------------------------------------------------------------------------------------ */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.page-hero .breadcrumbs { margin-bottom: 1.5rem; }
.page-title { font-size: var(--rsbi-text-h1); color: var(--rsbi-navy-900); }
.page-lead { margin-top: 1.25rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.65; color: var(--rsbi-muted); }
.page-body { padding-block: 2rem clamp(4rem, 8vw, 6rem); }
.error-page { flex: 1; padding-block: clamp(4rem, 10vw, 8rem); }
/* navy-500 on cream-100: above 3:1 (large text), although it is decorative (aria-hidden). */
.error-code { font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--rsbi-navy-500); }
.error-page .page-title { margin-top: 1rem; }
.error-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.error-details { margin-top: 2rem; padding-left: 1.25rem; font-size: 14px; color: var(--rsbi-muted); }

/* 15. Reveal on scroll and motion ------------------------------------------------------------------------- */
/* Fail-safe: content is only hidden once theme.js has marked what is already on screen and set .reveal-ready. */
.reveal-ready .reveal {
  transition: opacity 600ms var(--rsbi-ease), transform 600ms var(--rsbi-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready .reveal:not(.is-revealed) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal:not(.is-revealed) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .announcement-strip, .site-footer, .sticky-mobile-bar, .reading-progress, .toc, .share, .cta-box, .related { display: none !important; }
  .hero-dark { background: none; color: var(--rsbi-ink); }
  .article-title, .article-meta, .article-lead { color: var(--rsbi-ink); }
}

/* 16. Accessibility panel (partials/a11y-panel.hbs + assets/js/a11y.js) ------------------------------------------ */
/* The settings' effects and the launcher position: verbatim copy of src/components/accessibility/effects.css (the site
   imports the same file), checked by tests/unit/a11y-settings.test.ts. Edit the source, then copy the block. */
/* a11y-effects:start */
/* Accessibility settings: global effects and launcher placement. Source of truth: src/components/accessibility/effects.css.
   Imported by the site (layout.tsx) and copied verbatim into ghost-theme/assets/css/theme.css between the a11y-effects
   markers (tests/unit/a11y-settings.test.ts checks the copy). Classes come from src/lib/a11y-settings.ts and live on <html>.
   Everything inside .accessibility-widget (the site widget and the blog panel) is left alone. */

/* OpenDyslexic (SIL OFL 1.1), self-hosted by the site at /fonts/opendyslexic/ (the blog uses the same path, same origin).
   A browser only downloads a face when something renders with it, so this costs nothing until the option is on. */
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic/OpenDyslexic-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic/OpenDyslexic-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "OpenDyslexic"; src: url("/fonts/opendyslexic/OpenDyslexic-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

/* Text size scales the root, so every rem-based size (body, headings, spacing) grows and the hierarchy is kept. */
html.a11y-font-small { font-size: 87.5%; }
html.a11y-font-normal { font-size: 100%; }
html.a11y-font-large { font-size: 112.5%; }
html.a11y-font-xlarge { font-size: 125%; }
html.a11y-font-xxlarge { font-size: 150%; }

/* Reflow (WCAG 1.4.10). The header row has a fixed height and no room to grow:
   - below 1280 px, larger or wider text no longer fits logo + compact CTA + menu button, and the overflow would widen the
     layout viewport (fixed elements then sit off-screen). The compact CTA goes, as it does while the sticky bar shows;
     the same action stays in the menu, the hero and the sticky bar;
   - the header row keeps Archivo and its own letter spacing (the desktop nav would not fit otherwise); its menu dialog
     follows the settings like the rest of the page;
   - with the very wide settings, a long word may break and a button label may wrap, rather than push the page wider
     than the screen. */
@media (max-width: 1279px) {
  html:is(.a11y-font-large, .a11y-font-xlarge, .a11y-font-xxlarge, .a11y-dyslexia-font, .a11y-letter-spacing-2, .a11y-letter-spacing-3) .hdr-mobile-cta { display: none !important; }
}
html:is(.a11y-dyslexia-font, .a11y-letter-spacing-1, .a11y-letter-spacing-2, .a11y-letter-spacing-3) body header.site-header:not(dialog) { font-family: var(--rsbi-font) !important; letter-spacing: normal !important; }
html:is(.a11y-dyslexia-font, .a11y-letter-spacing-2, .a11y-letter-spacing-3) body *:not(.accessibility-widget, .accessibility-widget *) { overflow-wrap: anywhere; }
html:is(.a11y-font-xlarge, .a11y-font-xxlarge, .a11y-dyslexia-font, .a11y-letter-spacing-2, .a11y-letter-spacing-3) body :is(a, button):not(.accessibility-widget *, .site-header *:not(dialog, dialog *)) { white-space: normal !important; }

html.a11y-line-height-1 body { line-height: 1.6 !important; }
html.a11y-line-height-2 body { line-height: 1.8 !important; }
html.a11y-line-height-3 body { line-height: 2 !important; }
html[class*="a11y-line-height-"] body *:not(.accessibility-widget, .accessibility-widget *) { line-height: inherit !important; }

html.a11y-letter-spacing-1 body { letter-spacing: 0.05em !important; }
html.a11y-letter-spacing-2 body { letter-spacing: 0.1em !important; }
html.a11y-letter-spacing-3 body { letter-spacing: 0.15em !important; }
html[class*="a11y-letter-spacing-"] body *:not(.accessibility-widget, .accessibility-widget *, .site-header *:not(dialog, dialog *)) { letter-spacing: inherit !important; }

/* Filters sit on the root: on any other element they would turn it into the containing block of position: fixed. */
html.a11y-saturation-1 { filter: saturate(0.75); }
html.a11y-saturation-2 { filter: saturate(0.5); }
html.a11y-saturation-3 { filter: saturate(0) grayscale(1); }
html.a11y-high-contrast { filter: contrast(1.25); }
html.a11y-saturation-1.a11y-high-contrast { filter: contrast(1.25) saturate(0.75); }
html.a11y-saturation-2.a11y-high-contrast { filter: contrast(1.25) saturate(0.5); }
html.a11y-saturation-3.a11y-high-contrast { filter: contrast(1.25) saturate(0) grayscale(1); }
html.a11y-high-contrast :is(img, video):not(.accessibility-widget *) { filter: contrast(0.85); }

html.a11y-highlight-links a:not(.accessibility-widget *) {
  background: #fef08a !important;
  color: #1e40af !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  padding: 0.125rem 0.25rem !important;
  border-radius: 2px !important;
}

html.a11y-larger-cursor, html.a11y-larger-cursor body, html.a11y-larger-cursor body *:not(.accessibility-widget, .accessibility-widget *) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 2L6 28L12 22L18 30L22 28L16 20L24 20L6 2Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 0 0, auto !important;
}

html.a11y-dyslexia-font body, html.a11y-dyslexia-font body *:not(.accessibility-widget, .accessibility-widget *, .site-header *:not(dialog, dialog *)) {
  font-family: "OpenDyslexic", "Comic Sans MS", Arial, sans-serif !important;
}

/* Content images fade. Images and icons inside links and controls (logo, menu button, chevrons, CTA arrows) and the
   widget never do, so no image-only link or icon-only control loses its only visible label. Decorative icons
   (aria-hidden SVGs outside controls) are not images and stay. */
html.a11y-hide-images :is(img, picture, video, svg[role="img"]):not(.accessibility-widget *, a *, button *, [role="button"] *, summary *, label *) { opacity: 0.1 !important; }

html.a11y-disable-animations, html.a11y-disable-animations *, html.a11y-disable-animations *::before, html.a11y-disable-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

html.a11y-text-align-left body *:not(.accessibility-widget, .accessibility-widget *) { text-align: left !important; }
html.a11y-text-align-center body *:not(.accessibility-widget, .accessibility-widget *) { text-align: center !important; }
html.a11y-text-align-right body *:not(.accessibility-widget, .accessibility-widget *) { text-align: right !important; }
html.a11y-text-align-justify body *:not(.accessibility-widget, .accessibility-widget *) { text-align: justify !important; }

/* Launcher: bottom-left on every page, so it never covers the WhatsApp button or the sticky bar's actions (right).
   z-index 45: above the header (40) and the bottom bars (30), below the widget panel (55), the consent banner (60) and
   the mobile menu (a modal <dialog>, top layer). While the consent banner shows, it rises above it (--rsbi-consent-space).
   The white ring keeps it distinct on navy sections as well as on light ones. */
.a11y-launcher {
  position: fixed;
  z-index: 45;
  left: calc(1.5rem + env(safe-area-inset-left, 0px));
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--rsbi-consent-space, 0px));
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
}
/* WCAG 2.4.11: keyboard focus scrolled into view keeps clear of the launcher (its offset + height + a margin). The bar and
   consent rules below and in globals.css / consent.css take over while those show. */
html { scroll-padding-bottom: calc(1.5rem + 56px + 0.75rem + env(safe-area-inset-bottom, 0px)); }
html[data-consent-shown]:not([data-a11y-none]) { scroll-padding-bottom: calc(var(--rsbi-consent-space, 0px) + 1.5rem + 56px + 0.75rem); }
.a11y-launcher:focus-visible {
  /* Navy outline with a white halo (as the floating WhatsApp button): visible over light and navy sections alike. */
  outline: var(--rsbi-focus-width, 3px) solid var(--rsbi-focus-outline, #042d4d);
  outline-offset: var(--rsbi-focus-offset, 3px);
  box-shadow: 0 0 0 var(--rsbi-focus-offset, 3px) #fff;
}
@media (max-width: 767px) {
  .a11y-launcher {
    left: calc(0.75rem + env(safe-area-inset-left, 0px));
    bottom: calc(max(0.75rem, env(safe-area-inset-bottom, 0px)) + var(--rsbi-consent-space, 0px));
    width: 48px;
    height: 48px;
  }
  html { scroll-padding-bottom: calc(max(0.75rem, env(safe-area-inset-bottom, 0px)) + 48px + 0.75rem); }
  html[data-consent-shown]:not([data-a11y-none]) { scroll-padding-bottom: calc(var(--rsbi-consent-space, 0px) + 0.75rem + 48px + 0.75rem); }
  /* Sticky mobile bar (0.75rem + 2.75rem + max(0.75rem, inset) + 1px border): the launcher rises above it while it shows,
     so the bar keeps its full width for its actions, and keyboard focus scrolled into view keeps clear of both
     (WCAG 2.4.11: bar + 0.75rem gap + 48 px launcher + a margin). With the consent banner shown, --rsbi-consent-space
     already counts the bar. */
  html[data-sticky-bar]:not([data-consent-shown]) { scroll-padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px)); }
  html[data-sticky-bar]:not([data-consent-shown]) .a11y-launcher { bottom: calc(4.25rem + 1px + max(0.75rem, env(safe-area-inset-bottom, 0px))); }
}
/* The calculator's own result bar (below 1024 px): the same, above the bar while it shows. */
@media (max-width: 1023px) and (min-height: 481px) {
  html[data-calc-bar]:not([data-consent-shown]) { scroll-padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px)); }
  html[data-calc-bar]:not([data-consent-shown]) .a11y-launcher { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .a11y-launcher { transition: bottom 0.3s var(--rsbi-ease, ease); }
}
@media (forced-colors: active) {
  .a11y-launcher { border: 2px solid ButtonText; }
}
@media print {
  .accessibility-widget { display: none !important; }
}
/* a11y-effects:end */

/* Launcher and panel look (the site widget's chrome, src/components/accessibility/widget.css, in a lighter form).
   Archivo whatever the reader's dyslexia setting; widget text never takes the page's spacing or alignment settings. */
.a11y-lite { font-family: var(--rsbi-font); font-size: 1rem; line-height: 1.4; letter-spacing: normal; word-spacing: normal; text-align: left; color: var(--rsbi-ink); }
.a11y-lite *, .a11y-lite *::before, .a11y-lite *::after { letter-spacing: normal; }
.a11y-lite-launcher {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--rsbi-radius-pill);
  background: linear-gradient(135deg, #032641 0%, var(--rsbi-navy-800) 100%);
  color: var(--rsbi-white);
  box-shadow: var(--rsbi-shadow-md);
  transition: transform 0.2s var(--rsbi-ease), box-shadow 0.2s var(--rsbi-ease), bottom 0.3s var(--rsbi-ease);
}
.a11y-lite-launcher:hover { transform: translateY(-2px); box-shadow: var(--rsbi-shadow-lg); }
.a11y-lite-launcher svg { width: 28px; height: 28px; }
.a11y-lite.open .a11y-lite-launcher { visibility: hidden; }
.a11y-lite-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--rsbi-white); border-radius: 11px;
  background: var(--rsbi-gold-400); color: var(--rsbi-navy-900);
  font-size: 0.75rem; font-weight: 800; line-height: 1;
}
.a11y-lite-backdrop { position: fixed; inset: 0; z-index: 54; background: rgb(1 24 44 / 0.45); }
.a11y-lite-panel {
  position: fixed; z-index: 55;
  left: calc(1.5rem + env(safe-area-inset-left, 0px));
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--rsbi-consent-space, 0px));
  width: min(23.75rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 3rem - var(--rsbi-consent-space, 0px));
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--rsbi-white);
  border-radius: var(--rsbi-radius-lg);
  box-shadow: var(--rsbi-shadow-lg);
  outline: none;
}
.a11y-lite-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-shrink: 0;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: linear-gradient(135deg, #032641 0%, var(--rsbi-navy-800) 100%);
  color: var(--rsbi-white);
}
.a11y-lite-title { font-size: 1.0625rem; font-weight: 800; line-height: 1.2; letter-spacing: normal; color: var(--rsbi-white); }
.a11y-lite-close {
  width: 44px; height: 44px; border-radius: var(--rsbi-radius-pill);
  display: flex; align-items: center; justify-content: center;
  background: rgb(255 255 255 / 0.14); border: 1.5px solid rgb(255 255 255 / 0.3); color: var(--rsbi-white);
}
.a11y-lite-close:hover { background: rgb(255 255 255 / 0.26); }
.a11y-lite-body { padding: 0.75rem 1rem; }
.a11y-lite-row { margin-bottom: 0.875rem; }
.a11y-lite-legend {
  display: block; margin-bottom: 0.375rem;
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--rsbi-muted);
}
.a11y-lite-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; }
.a11y-lite-steps button, .a11y-lite-toggle, .a11y-lite-reset, .a11y-lite-done {
  min-height: 44px; padding: 0.375rem 0.25rem;
  border: 1.5px solid var(--rsbi-navy-200); border-radius: 8px;
  background: var(--rsbi-navy-50); color: var(--rsbi-ink-soft);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.a11y-lite-steps button:hover, .a11y-lite-toggle:hover { background: var(--rsbi-navy-100); border-color: var(--rsbi-navy-800); color: var(--rsbi-navy-800); }
.a11y-lite-steps button[aria-pressed="true"] { background: var(--rsbi-navy-800); border-color: var(--rsbi-navy-800); color: var(--rsbi-white); }
.a11y-lite-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.875rem; }
.a11y-lite-toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.625rem; text-align: left; }
.a11y-lite-switch { position: relative; flex: none; width: 2.25rem; height: 1.3rem; border-radius: var(--rsbi-radius-pill); background: var(--rsbi-navy-300); }
.a11y-lite-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: calc(1.3rem - 6px); height: calc(1.3rem - 6px); border-radius: 50%; background: var(--rsbi-white);
  transition: transform 0.15s ease;
}
.a11y-lite-toggle[aria-pressed="true"] { background: var(--rsbi-navy-800); border-color: var(--rsbi-navy-800); color: var(--rsbi-white); }
.a11y-lite-toggle[aria-pressed="true"] .a11y-lite-switch { background: var(--rsbi-gold-400); }
.a11y-lite-toggle[aria-pressed="true"] .a11y-lite-switch::after { transform: translateX(0.95rem); background: var(--rsbi-navy-900); }
.a11y-lite-footer {
  display: flex; gap: 0.5rem; flex-shrink: 0;
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--rsbi-navy-50); border-top: 1px solid var(--rsbi-navy-200);
}
.a11y-lite-reset, .a11y-lite-done { flex: 1; font-size: 0.875rem; font-weight: 700; }
.a11y-lite-reset { background: #fef2f2; border-color: #fecaca; color: var(--rsbi-error); }
.a11y-lite-reset:hover { background: #fee2e2; border-color: #f87171; color: #8f1c13; }
.a11y-lite-done { background: var(--rsbi-navy-800); border-color: var(--rsbi-navy-800); color: var(--rsbi-white); }
.a11y-lite-done:hover { background: var(--rsbi-navy-900); }
@media (max-width: 767px) {
  .a11y-lite-pointer-only { display: none; }
  .a11y-lite-panel { left: calc(0.75rem + env(safe-area-inset-left, 0px)); bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px) + var(--rsbi-consent-space, 0px)); }
}
/* Phones: bottom sheet. */
@media (max-width: 480px) {
  .a11y-lite-panel { left: 0; right: 0; bottom: var(--rsbi-consent-space, 0px); width: 100%; max-height: calc(88dvh - var(--rsbi-consent-space, 0px)); border-radius: 1rem 1rem 0 0; }
  .a11y-lite-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 359px) {
  .a11y-lite-toggles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 500px) {
  .a11y-lite-panel { bottom: var(--rsbi-consent-space, 0px); max-height: calc(100dvh - var(--rsbi-consent-space, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .a11y-lite-backdrop:not([hidden]) { animation: a11y-lite-fade 0.25s ease both; }
}
@keyframes a11y-lite-fade { from { opacity: 0; } }
@media (forced-colors: active) {
  .a11y-lite-steps button[aria-pressed="true"], .a11y-lite-toggle[aria-pressed="true"] { border-width: 3px; border-style: double; }
}
