/* ============================================================
   BankBuild shared design system
   Used across: index.html, rics.html, rics-ai-compliance.html,
   and rics-ai-compliance/*.html article pages.
   ============================================================ */

/* ============================================================
   FONT FACE
   ============================================================ */
@font-face {
  font-family: 'Financier Display';
  src: url('/fonts/financier-display-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Fonts */
  --font-arcadia: 'Inter', system-ui, sans-serif;
  --font-arcadia-display: 'Inter', system-ui, sans-serif;
  --font-tiempos: 'Financier Display', 'Playfair Display', Georgia, serif;

  /* Backgrounds */
  --bg-default: #FBFBFB;
  --bg-secondary: #FBFBFB;

  /* Surfaces */
  --surface-default: #f4f4f4;
  --surface-default-hover: #E8E8EC;
  --surface-primary: #202127;
  --surface-primary-hover: #2A2A34;
  --surface-primary-active: #16161D;
  --surface-emphasized: rgba(140, 155, 245, 0.1);
  --surface-emphasized-hover: rgba(140, 155, 245, 0.16);
  --surface-elevated: #fff;
  --surface-inverted: #202127;

  /* Text */
  --text-default: #23242B;
  --text-subdued: #555B66;
  --text-emphasized: #23242B;
  --text-primary: #23242B;
  --text-on-primary: #F8F8FA;
  --text-disabled: #6B7280;
  --text-muted: #6B7280;

  /* Borders */
  --border-subdued: #E8E8EC;
  --border-strong: #D4D4DA;
  --border-input: rgba(112, 115, 147, 0.22);

  /* Accents */
  --accent-mineral: #8C9BF5;
  --accent-mineral-soft: #EEF0FE;
  --accent-mineral-deep: #7B8BE4;

  /* Signal colors (for scenario / warning / info boxes — light variants) */
  --signal-amber: #8A6420;
  --signal-amber-soft: #FAF1DC;
  --signal-blue: #3D6FA8;
  --signal-blue-soft: #E6EEF7;
  --signal-red: #B14E3D;
  --signal-red-soft: #F7E6E0;

  /* Spacing */
  --navbar-height: 72px;
  --grid-max-width: 1952px;
  --grid-gutters: 16px;
  --grid-margins: 24px;

  /* Article scale */
  --article-max: 760px;
  --article-pad: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-4xl: 20px;
  --radius-5xl: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (max-width: 960px) { html { scroll-padding-top: 64px; } }

body {
  font-family: var(--font-arcadia);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-default);
  background: var(--bg-default);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; border: none; background: none; }
img { display: block; max-width: 100%; height: auto; }

/* Global emphasis: serif italic, no color shift (restrained) */
em {
  font-family: var(--font-tiempos);
  font-style: italic;
  font-weight: 400;
}

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-mineral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 0.75rem + 3.126vw, 4.563rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-emphasized);
}
.heading-1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.5rem, 0.8rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-emphasized);
}
.heading-3 {
  font-family: var(--font-arcadia-display);
  font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-emphasized);
}
.heading-5 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-emphasized);
}
.heading-7 {
  font-family: var(--font-arcadia-display);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-emphasized);
}
.heading-8 {
  font-family: var(--font-arcadia);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.313rem);
  font-weight: 480;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text-emphasized);
}
.body-1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.313rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-subdued);
}
.body-2 {
  font-family: var(--font-arcadia);
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-subdued);
}
.body-3 {
  font-family: var(--font-arcadia);
  font-size: clamp(0.875rem, 0.85rem + 0.15vw, 1rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-subdued);
}
.ui-1 {
  font-family: var(--font-arcadia);
  font-size: 1rem;
  font-weight: 420;
  line-height: 1;
  letter-spacing: 0;
}
.ui-4 {
  font-family: var(--font-arcadia);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding-left: var(--grid-margins);
  padding-right: var(--grid-margins);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gutters);
}
.col-full { grid-column: 1 / -1; }
.col-10 { grid-column: 2 / 12; }
.col-8 { grid-column: 3 / 11; }
.col-6-left { grid-column: 1 / 7; }
.col-6-right { grid-column: 7 / 13; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px 1px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  color: var(--text-on-primary);
  font-family: var(--font-arcadia);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--surface-primary-hover); }
.btn-primary:active { background: var(--surface-primary-active); }

.btn-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-default);
  font-family: var(--font-arcadia);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  transition: background-color 140ms ease;
  white-space: nowrap;
}
.btn-tonal:hover { background: rgba(35,36,43,0.04); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-default);
  font-family: var(--font-arcadia);
  font-size: 1rem;
  font-weight: 420;
  line-height: 1;
  letter-spacing: 0;
  transition: color 0.2s ease-out;
}
.btn-text:hover { color: var(--text-default); opacity: 0.7; }
.btn-text svg { width: 16px; height: 16px; }

/* ============================================================
   NAVBAR — pill-island, glass over dark, solid pill over light
   The navbar is a floating rounded pill (max 1520px wide) sitting
   14px from the viewport top. It begins transparent + glass-blurred,
   gains opacity when scrolled, and switches to a solid dark pill when
   the navbar bottom intersects a light section (.navbar--light is
   applied by JS in bankbuild.js).
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: transparent;
  padding: 14px clamp(14px, 2%, 28px) 0;
  transition: transform 0.35s ease, padding 0.25s ease;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0 0 -16px 0;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg-default, #FBFBFB) 0%, var(--bg-default, #FBFBFB) 55%, rgba(251,251,251,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.navbar--scrolled.navbar--light::before { opacity: 1; }
.navbar--hidden { transform: translateY(-100%); }
.navbar--scrolled .navbar__inner {
  background: rgba(32,33,39,0.55);
  border-color: rgba(255,255,255,0.18);
}
/* Over light sections — solid dark pill in case glass goes murky */
.navbar--scrolled.navbar--light .navbar__inner {
  background: rgba(32,33,39,0.88);
}
/* Over light sections, at top of page (not scrolled) — dark pill so the
   navbar reads as a single dark surface against cream/white backgrounds.
   Matches the scrolled-over-light state so there's no transition flicker
   from "grey blob" to "dark pill" when scrolling begins. */
.navbar--light:not(.navbar--scrolled) .navbar__inner {
  background: rgba(32,33,39,0.88);
  border-color: rgba(255,255,255,0.10);
}

/* Always-dark variant — solid dark pill from the top, no glass.
   Used on content pages (rics hub, AI compliance articles) where the
   nav anchors as a permanent dark surface. */
.navbar--always-dark .navbar__inner {
  background: rgba(32,33,39,0.95);
  border-color: rgba(255,255,255,0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar__inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.4%, 32px);
  height: 60px;
  background: rgba(32,33,39,0.22);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar__logo { justify-self: start; display: flex; align-items: center; }
.navbar__logo-img {
  height: 26px;
  width: auto;
  transition: height 0.25s ease;
}
.navbar--scrolled .navbar__logo-img { height: 22px; }

.navbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}
.navbar__link {
  position: relative;
  font-family: var(--font-arcadia);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  color: rgba(251,251,251,0.85);
  white-space: nowrap;
  transition: color 0.2s;
}
.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1.5px;
  background: #d9ee50;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
.navbar__link:hover { color: #FBFBFB; }
.navbar__link.is-active { color: #FBFBFB; }
.navbar__link.is-active::after { transform: scaleX(1); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
  margin-left: 28px;
}
.navbar__login {
  font-family: var(--font-arcadia);
  font-size: 15px;
  font-weight: 400;
  color: rgba(251,251,251,0.85);
  transition: color 0.2s;
}
.navbar__login:hover { color: #FBFBFB; }

/* Navbar CTA: text-with-arrow style (overrides .btn-primary borders/fill) */
.navbar .btn-primary {
  height: auto;
  padding: 6px 0;
  background: transparent;
  color: rgba(251,251,251,0.92);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.navbar .btn-primary::after {
  content: '\2192';
  display: inline-block;
  transition: transform 0.18s ease;
}
.navbar .btn-primary:hover { background: transparent; border: none; color: #FFFFFF; }
.navbar .btn-primary:hover::after { transform: translateX(3px); }

/* Light mode — over light sections (0.78 opacity hits WCAG AA 4.5:1) */
.navbar--light .navbar__link { color: rgba(251,251,251,0.85); }
.navbar--light .navbar__link:hover { color: #FBFBFB; }
.navbar--light .navbar__link.is-active { color: #FBFBFB; }
.navbar--light .navbar__login { color: rgba(251,251,251,0.85); }
.navbar--light .navbar__login:hover { color: #FBFBFB; }
.navbar--light .btn-primary { background: transparent; color: rgba(251,251,251,0.92); border: none; }
.navbar--light .btn-primary:hover { background: transparent; color: #FFFFFF; border: none; }

/* Scrolled — dark glass overrides --light styles */
.navbar--scrolled .navbar__link { color: rgba(251,251,251,0.85); }
.navbar--scrolled .navbar__link:hover { color: #FBFBFB; }
.navbar--scrolled .navbar__link.is-active { color: #FBFBFB; }
.navbar--scrolled .navbar__login { color: rgba(251,251,251,0.85); }
.navbar--scrolled .navbar__login:hover { color: #FBFBFB; }
.navbar--scrolled .btn-primary { background: transparent; color: rgba(251,251,251,0.92); border: none; }
.navbar--scrolled .btn-primary:hover { background: transparent; color: #FFFFFF; border: none; }

/* Mobile drawer (hidden on desktop) */
.navbar__hamburger { display: none; }
.navbar__mobile { display: none; }
.navbar__mobile-backdrop { display: none; }

@media (max-width: 960px) {
  .navbar__links { display: none; }
  .navbar__login { display: none; }
  .navbar__actions { display: none; }

  .navbar__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 12px;
    justify-self: end;
  }
  .navbar__hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: #FBFBFB;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  }
  .navbar--light .navbar__hamburger span { background: #202127; }
  .navbar__hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .navbar__hamburger.is-active span:nth-child(2) { opacity: 0; }
  .navbar__hamburger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .navbar__mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .navbar__mobile-backdrop.is-open { display: block; opacity: 1; }

  .navbar__mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(72vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: #202127;
    padding: 80px 32px 32px;
    gap: 24px;
    z-index: 999;
    animation: navbarMobileSlideIn 0.3s ease;
  }
  @keyframes navbarMobileSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }
  .navbar__mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 28px;
    line-height: 1;
    color: rgba(251,251,251,0.74);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
  }
  .navbar__mobile-close:hover { color: #FBFBFB; }
  .navbar__mobile-link {
    font-family: var(--font-arcadia);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: rgba(251,251,251,0.85);
    transition: color 0.2s ease;
  }
  .navbar__mobile-link:hover { color: #FBFBFB; }
  .navbar__mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: #FBFBFB;
    color: #202127;
    font-family: var(--font-arcadia);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s ease;
  }
  .navbar__mobile-cta:hover { background: rgba(248,248,250,0.92); }
}

/* Narrow-phone polish — wider drawer for easier tapping on <480px */
@media (max-width: 480px) {
  .navbar__mobile.is-open { width: min(82vw, 320px); }
}

/* ============================================================
   SITE FOOTER — single source of truth.
   Markup lives in /partials/footer.html and is injected into every
   page by /build-partials.js.
   ============================================================ */
.site-footer {
  background: #202127;
  color: #F2F2F5;
  padding: 0 0 32px;
}
.footer-inner {
  max-width: none;
  margin: 0;
  padding: 96px 13.5% 0;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 56px;
  margin-bottom: 56px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col__title {
  font-family: var(--font-arcadia);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251,251,251,0.55);
  margin: 0 0 6px;
}
.footer-col a {
  font-family: var(--font-arcadia);
  font-size: 14px;
  font-weight: 400;
  color: rgba(251,251,251,0.74);
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-col a:hover { color: #FBFBFB; }
.footer-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}
.footer-col--brand {
  gap: 0;
  max-width: 340px;
}
.footer-tagline {
  font-family: var(--font-arcadia);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(251,251,251,0.62);
  margin: 0;
  text-wrap: balance;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(251,251,251,0.10);
  font-family: var(--font-arcadia);
  font-size: 12px;
  color: rgba(251,251,251,0.42);
}
.footer-seo {
  margin: 24px 0 0;
  font-family: var(--font-arcadia);
  font-size: 11px;
  line-height: 1.7;
  color: rgba(251,251,251,0.30);
  max-width: 1100px;
  text-wrap: pretty;
}

/* Author byline link inside the dark .post-hero__meta row */
.post-hero__meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(248,248,250,0.28);
  transition: text-decoration-color 0.15s, color 0.15s;
}
.post-hero__meta a:hover {
  color: rgba(248,248,250,0.95);
  text-decoration-color: rgba(248,248,250,0.6);
}

@media (max-width: 1024px) {
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col--brand { grid-column: 1 / -1; max-width: none; }
  .footer-inner { padding: 64px 8% 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-inner { padding: 56px 6% 0; }
}
@media (max-width: 480px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-icon { width: 32px; height: 32px; }
}

/* ============================================================
   ARTICLE PRIMITIVES — light reskin of the dark RICS article template.
   Use on rics-ai-compliance.html and rics-ai-compliance/*.html.
   ============================================================ */

/* Hub strip — secondary nav band that orients readers to the content hub.
   Sits below the fixed navbar; pushes the breadcrumb down via .hub-strip + .bc. */
.hub-strip {
  background: var(--surface-default);
  border-bottom: 1px solid var(--border-subdued);
  padding-top: calc(var(--navbar-height) + 14px);
}
.hub-strip__inner {
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 6%, 96px) 14px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hub-strip__label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mineral-deep);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hub-strip__label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mineral);
}
.hub-strip__nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hub-strip__nav a {
  font-family: var(--font-arcadia);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-subdued);
  transition: color 0.15s;
  white-space: nowrap;
}
.hub-strip__nav a:hover { color: var(--text-default); }
.hub-strip__nav a.is-active {
  color: var(--accent-mineral-deep);
  font-weight: 600;
}
.hub-strip__divider {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* Breadcrumb */
.bc {
  padding: calc(var(--navbar-height) + 24px) var(--article-pad) 0;
  max-width: var(--article-max);
  margin: 0 auto;
}
/* When the page has a hub-strip, the strip already cleared the fixed navbar —
   drop the navbar offset on .bc so it just gets normal spacing. */
body.has-hub-strip .bc { padding-top: 24px; }
.bc-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-arcadia);
  font-size: 13px;
  color: var(--text-subdued);
  flex-wrap: wrap;
}
.bc-inner a {
  color: var(--text-subdued);
  transition: color 0.15s;
}
.bc-inner a:hover { color: var(--text-default); }
.bc-sep { color: var(--border-strong); }

/* Article hero */
.article-hero {
  padding: 56px var(--article-pad) 48px;
  max-width: var(--article-max);
  margin: 0 auto;
}
.article-hero h1 {
  font-family: var(--font-tiempos);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--text-emphasized);
  margin-bottom: 24px;
  text-wrap: balance;
}
.article-hero h1.is-long { font-size: clamp(2rem, 1.4rem + 1.5vw, 3rem); }
.article-hero h1 em {
  font-family: var(--font-tiempos);
  font-style: italic;
  font-weight: 400;
  color: var(--text-emphasized);
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subdued);
  margin-bottom: 20px;
}
.article-eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mineral);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hm {
  font-family: var(--font-arcadia);
  font-size: 13px;
  color: var(--text-subdued);
}
.hm strong {
  color: var(--text-default);
  font-weight: 600;
}
.hm a {
  color: var(--text-default);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 0.15s;
}
.hm a:hover { text-decoration-color: var(--accent-mineral); }
.hm-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}
.hero-desc {
  font-family: var(--font-arcadia);
  font-size: 17px;
  color: var(--text-subdued);
  line-height: 1.7;
  margin-bottom: 24px;
}
.hero-desc strong {
  color: var(--text-default);
  font-weight: 600;
}

/* Cluster bar — related links */
.cluster-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
  max-width: var(--article-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--article-pad);
}
.cluster-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subdued);
}
.cluster-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-radius: 50px;
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-subdued);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cluster-link:hover {
  border-color: var(--accent-mineral);
  color: var(--accent-mineral-deep);
  background: var(--accent-mineral-soft);
}

/* Article wrap + body */
.article-wrap {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 var(--article-pad) 80px;
}
.article-body p {
  font-family: var(--font-arcadia);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-subdued);
  margin-bottom: 18px;
}
.article-body strong {
  color: var(--text-default);
  font-weight: 600;
}
.article-body h2 {
  font-family: var(--font-tiempos);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text-emphasized);
  line-height: 1.15;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subdued);
  scroll-margin-top: 96px;
}
.article-body h2 em {
  font-family: var(--font-tiempos);
  font-style: italic;
  font-weight: 400;
}
.article-body h3 {
  font-family: var(--font-arcadia);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-default);
  line-height: 1.3;
  margin-top: 32px;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
}
.article-body a {
  color: var(--accent-mineral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(140,155,245,0.4);
  font-weight: 500;
  transition: text-decoration-color 0.15s;
}
.article-body a:hover { text-decoration-color: var(--accent-mineral); }

/* Specificity boost — buttons and labelled headings inside .article-body
   should keep their own styling, not inherit the generic article-body link/h2 rules. */
.article-body a.btn-primary,
.article-body button.btn-primary {
  color: var(--text-on-primary);
  text-decoration: none;
  font-weight: 500;
}
.article-body a.btn-primary:hover,
.article-body button.btn-primary:hover {
  text-decoration: none;
  color: var(--text-on-primary);
}
.article-body a.btn-tonal,
.article-body button.btn-tonal {
  color: var(--text-default);
  text-decoration: none;
  font-weight: 500;
}
.article-body a.btn-text {
  color: var(--text-default);
  text-decoration: none;
}
.article-body a.btt {
  color: var(--text-subdued);
  text-decoration: none;
  font-weight: 500;
}
.article-body a.btt:hover {
  color: var(--text-default);
  text-decoration: none;
}
/* H2 used as a small uppercase label (e.g. .faq-group-label) — restore label styling
   over the default .article-body h2 serif treatment. */
.article-body h2.faq-group-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-subdued);
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 16px;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border-subdued);
  margin: 48px 0;
}
.article-body ul,
.article-body ol {
  margin: 0 0 18px 24px;
  padding: 0;
  color: var(--text-subdued);
}
.article-body li {
  font-family: var(--font-arcadia);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 8px;
}

/* TOC box */
.toc-box {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-left: 3px solid var(--accent-mineral);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 28px 32px;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-box .toc-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mineral-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.toc-box a {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  padding-left: 14px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-left-color 0.15s;
  text-decoration: none;
}
.toc-box a:hover {
  color: var(--accent-mineral-deep);
  border-left-color: var(--accent-mineral);
}

/* Insight box (mineral accent — neutral note) */
.insight-box {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-left: 3px solid var(--accent-mineral);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.insight-box .insight-label,
.insight-box .box-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mineral-deep);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.insight-box p {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Scenario box (amber accent — caution / hypothetical) */
.scenario-box {
  background: var(--signal-amber-soft);
  border: 1px solid rgba(184,134,46,0.18);
  border-left: 3px solid var(--signal-amber);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 24px 28px;
  margin: 24px 0;
}
.scenario-box .scenario-label,
.scenario-box .box-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  color: var(--signal-amber);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.scenario-box p {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Risk card (used for emphasized exposure blocks on consequences page).
   Use a category modifier to set the accent color: --regulatory / --insurance / --commercial. */
.risk-card {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 32px 36px;
  margin: 32px 0;
}
.risk-card--regulatory { border-left-color: var(--accent-mineral); }
.risk-card--insurance  { border-left-color: var(--signal-amber); }
.risk-card--commercial { border-left-color: var(--signal-blue); }

.risk-card-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 22px;
}
.risk-card-num {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent-mineral);
  flex-shrink: 0;
}
.risk-card--regulatory .risk-card-num { color: var(--accent-mineral); }
.risk-card--insurance  .risk-card-num { color: var(--signal-amber); }
.risk-card--commercial .risk-card-num { color: var(--signal-blue); }

.risk-card-intro { display: flex; flex-direction: column; gap: 6px; }
.risk-card-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subdued);
}
.risk-card--regulatory .risk-card-label { color: var(--accent-mineral-deep); }
.risk-card--insurance  .risk-card-label { color: var(--signal-amber); }
.risk-card--commercial .risk-card-label { color: var(--signal-blue); }
.risk-card-title {
  font-family: var(--font-tiempos);
  font-size: clamp(1.4rem, 1.05rem + 1vw, 1.9rem);
  font-weight: 300;
  color: var(--text-emphasized);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.risk-card p {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.75;
  margin-bottom: 14px;
}
.risk-card p:last-child { margin-bottom: 0; }
.risk-card strong { color: var(--text-default); font-weight: 600; }

/* Opportunity box (positive, mineral surface) */
.opportunity-box {
  background: var(--accent-mineral-soft);
  border: 1px solid rgba(140,155,245,0.22);
  border-radius: var(--radius-2xl);
  padding: 28px 32px;
  margin: 24px 0;
}
.opportunity-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-mineral-deep);
  margin-bottom: 12px;
}
.opportunity-box p {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.75;
  margin-bottom: 14px;
}
.opportunity-box p:last-child { margin-bottom: 0; }

/* Jump nav — pill-style in-page section anchors. Use alongside (not instead of) a TOC. */
.jump-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}
.jn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-subdued);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.jn:hover {
  border-color: var(--accent-mineral);
  color: var(--accent-mineral-deep);
  background: var(--accent-mineral-soft);
}
.jn.is-active {
  background: var(--accent-mineral-soft);
  border-color: var(--accent-mineral);
  color: var(--accent-mineral-deep);
}

/* Checklist banner — emphasis block with CTA button (e.g. "download the checklist") */
.checklist-banner {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-left: 3px solid var(--accent-mineral);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 28px 32px;
  margin: 40px 0;
}
.checklist-banner__label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mineral-deep);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.checklist-banner__title {
  font-family: var(--font-tiempos);
  font-size: clamp(1.4rem, 1.1rem + 0.6vw, 1.65rem);
  font-weight: 300;
  color: var(--text-emphasized);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.checklist-banner__desc {
  font-family: var(--font-arcadia);
  font-size: 14px;
  color: var(--text-subdued);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Support grid — 3-up card grid for "where to go next" sections. */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0 20px;
}
.sc {
  display: flex;
  flex-direction: column;
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
}
.sc:hover {
  border-color: var(--accent-mineral);
  background: var(--accent-mineral-soft);
}
.sc-title {
  font-family: var(--font-arcadia);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-default);
  line-height: 1.4;
  flex: 1;
}
.sc-link {
  display: block;
  margin-top: 16px;
  font-family: var(--font-arcadia);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-mineral-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-body .sc,
.article-body .sc:hover { text-decoration: none; }
.article-body .sc-title { color: var(--text-default); }
.article-body .sc-link  { color: var(--accent-mineral-deep); }
@media (max-width: 980px) { .support-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .support-grid { grid-template-columns: 1fr; } }

/* Stat callout — 3-up grid of large numbers + labels, used as a visual interlude */
.stat-callout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
  padding: 36px 0;
  border-top: 1px solid var(--border-subdued);
  border-bottom: 1px solid var(--border-subdued);
}
.stat-callout__item { display: flex; flex-direction: column; gap: 10px; }
.stat-callout__num {
  font-family: var(--font-tiempos);
  font-weight: 300;
  font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent-mineral-deep);
}
.stat-callout__label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subdued);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .stat-callout { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .stat-callout__num { font-size: 2.4rem; }
}

/* Inline stat pill — subtle emphasis for inline statistics in body text.
   Use sparingly: <span class="stat-pill">71%</span> */
.stat-pill {
  font-weight: 600;
  color: var(--accent-mineral-deep);
  white-space: nowrap;
}

/* Article pull-quote — Financier italic blockquote with cite */
.article-quote {
  margin: 56px 0;
  padding: 0 0 0 32px;
  border-left: 2px solid var(--accent-mineral);
}
.article-quote p {
  font-family: var(--font-tiempos);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-emphasized);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.article-quote cite {
  display: block;
  font-family: var(--font-arcadia);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Callout — single-paragraph emphasis block, mineral-tinted surface.
   Use for "core principle" type pullouts inside body copy. */
.callout {
  background: var(--accent-mineral-soft);
  border-left: 3px solid var(--accent-mineral);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 22px 28px;
  margin: 28px 0;
}
.callout p {
  font-family: var(--font-arcadia);
  font-size: 16px;
  color: var(--text-default);
  line-height: 1.65;
  margin: 0;
}
.callout strong { color: var(--text-default); font-weight: 600; }
.callout sup a { color: var(--accent-mineral-deep); font-size: 11px; text-decoration: none; }

/* Example box — structured field/value rows, used for spec-style content
   (e.g. required elements of a reliability assessment). */
.example-box {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-left: 3px solid var(--accent-mineral);
  border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
  padding: 28px 32px;
  margin: 24px 0;
}
.example-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mineral-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.example-field {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subdued);
}
.example-label + .example-field { border-top: none; padding-top: 0; }
.ef-label {
  font-family: var(--font-arcadia);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-default);
  line-height: 1.5;
}
.ef-value {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.65;
}
@media (max-width: 600px) {
  .example-field { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .ef-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
  }
}

/* ============================================================
   GLOSSARY — 2-col layout with sticky A-Z sidebar + term entries.
   Use on rics-ai-compliance/glossary.html.
   ============================================================ */
.glossary-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--article-pad) 80px;
  align-items: start;
}
.glossary-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
}
.glossary-sidebar__inner {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
}
.glossary-sidebar__title {
  font-family: var(--font-arcadia);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.glossary-sidebar__list { display: flex; flex-direction: column; gap: 2px; }
.glossary-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-arcadia);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-subdued);
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
.glossary-sidebar__item:hover {
  background: var(--accent-mineral-soft);
  color: var(--accent-mineral-deep);
}
.glossary-sidebar__count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.gl-terms { display: flex; flex-direction: column; gap: 48px; }
.gl-letter-block { padding: 0; }
.gl-letter-head {
  font-family: var(--font-tiempos);
  font-size: clamp(2.5rem, 1.6rem + 2vw, 3.5rem);
  font-weight: 300;
  color: var(--text-emphasized);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subdued);
  scroll-margin-top: 96px;
}
.gl-entry {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subdued);
}
.gl-entry:last-child { border-bottom: none; }
.gl-term {
  font-family: var(--font-arcadia);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-default);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.3;
  scroll-margin-top: 96px;
}
.gl-ref {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-mineral-deep);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.gl-def {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.75;
}
.gl-def strong { color: var(--text-default); font-weight: 600; }
.gl-def a {
  color: var(--accent-mineral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(140,155,245,0.4);
  font-weight: 500;
}
.gl-def a:hover { text-decoration-color: var(--accent-mineral); }
.gl-also {
  margin-top: 12px;
  font-family: var(--font-arcadia);
  font-size: 13px;
  color: var(--text-muted);
}
.gl-also a {
  color: var(--accent-mineral-deep);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.gl-also a:hover { color: var(--accent-mineral); }

@media (max-width: 900px) {
  .glossary-layout { grid-template-columns: 1fr; gap: 32px; }
  .glossary-sidebar { display: none; }
}

/* Inline numbered checklist */
.checklist-inline {
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-radius: var(--radius-2xl);
  padding: 24px 28px;
  margin: 24px 0;
}
.checklist-inline .ci-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-mineral-deep);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.checklist-inline .ci-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: var(--text-subdued);
  line-height: 1.7;
}
.checklist-inline .ci-row:last-child { margin-bottom: 0; }
.checklist-inline .ci-row strong { color: var(--text-default); font-weight: 600; }
.checklist-inline .ci-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-mineral-deep);
  padding-top: 3px;
}

/* Back-to-top inline link */
.btt {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-arcadia);
  font-size: 13px;
  color: var(--text-subdued);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.btt:hover { color: var(--text-default); }

/* Article footer (italic disclaimer block at the end) */
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subdued);
  font-family: var(--font-arcadia);
  font-size: 14px;
  color: var(--text-subdued);
  line-height: 1.7;
}
.article-footer a {
  color: var(--accent-mineral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* CTA strip (dark inverted block, end-of-article) */
.cta-strip {
  max-width: var(--article-max);
  margin: 0 auto 80px;
  padding: 0 var(--article-pad);
}
.cta-inner {
  background: var(--surface-inverted);
  border-radius: var(--radius-2xl);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cs-title {
  font-family: var(--font-arcadia);
  font-size: 17px;
  font-weight: 600;
  color: #F8F8FA;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.cs-body {
  font-family: var(--font-arcadia);
  font-size: 15px;
  color: rgba(248,248,250,0.78);
  line-height: 1.65;
  max-width: 52ch;
}
.cs-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cta-strip .btn-p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  background: #F8F8FA;
  color: #202127;
  border-radius: var(--radius-sm);
  font-family: var(--font-arcadia);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.15s;
}
.cta-strip .btn-p:hover { background: rgba(248,248,250,0.9); }
.cta-strip .btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(248,248,250,0.3);
  color: rgba(248,248,250,0.92);
  border-radius: var(--radius-sm);
  font-family: var(--font-arcadia);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cta-strip .btn-g:hover {
  border-color: rgba(248,248,250,0.6);
  color: #F8F8FA;
  background: rgba(248,248,250,0.05);
}

/* FAQ group — wrapper that bundles a category label + multiple .faq-item entries.
   Used on the standalone FAQ page where questions are organised by topic. */
.faq-group { margin-bottom: 44px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-label {
  font-family: var(--font-arcadia);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subdued);
  margin: 0 0 16px;
  padding: 0;
  scroll-margin-top: 96px;
}

/* "Still have questions?" row — small inline CTA at the end of an FAQ run. */
.still-have-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  padding: 22px 26px;
  background: var(--surface-default);
  border: 1px solid var(--border-subdued);
  border-radius: var(--radius-xl);
}
.still-have-text {
  font-family: var(--font-arcadia);
  color: var(--text-subdued);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 240px;
}

/* FAQ accordion (light) */
.faq-list {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 var(--article-pad);
}
.faq-item {
  border-bottom: 1px solid var(--border-subdued);
}
.faq-item:first-child { border-top: 1px solid var(--border-subdued); }
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-arcadia);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-default);
  cursor: pointer;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent-mineral-deep); }
.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  transition: transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 12px; transition: transform 0.25s ease; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  display: none;
  padding: 0 0 22px;
  font-family: var(--font-arcadia);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-subdued);
}
.faq-a p { margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.is-open .faq-a { display: block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-56 { margin-top: 56px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

.geo-note { position: absolute; left: -9999px; overflow: hidden; }

/* ============================================================
   RESPONSIVE — article primitives
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --article-pad: 22px;
    --grid-margins: 20px;
  }
  .article-hero { padding-top: 40px; padding-bottom: 32px; }
  .article-hero h1 { font-size: clamp(2rem, 1.5rem + 2.5vw, 2.6rem); }
  .article-hero h1.is-long { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.2rem); }
  .toc-box { padding: 22px 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 20px; }
  .cs-btns { width: 100%; }
}
