@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-300.woff2') format('woff2'),
       url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-300.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-regular.woff2') format('woff2'),
       url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-500.woff2') format('woff2'),
       url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-500.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-600.woff2') format('woff2'),
       url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-600.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-700.woff2') format('woff2'),
       url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-800.woff2') format('woff2'),
       url('/assets/fonts/montserrat-v25-latin/montserrat-v25-latin-800.woff') format('woff');
}

:root {
  --light-bg: #F1F5F9;
  --dark-bg: #122e5f;
  --text: #0B2552;
  --body: #3E5170;
  --muted: #64748B;
  --border: #E2E8F0;
  --primary: #0460EC;
  --link: #0460EC;
  --accent: #0460EC;
  --radius: 6px;
  --font-head: 'Montserrat', sans-serif;
  --font-read: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --read: #1E2D45;
  --header-spacer-h: 100px;
  --header-inner-h: 100px;
  --header-nav-h: 80px;
  --logo-h: 58px;
}

:root.header-is-compact {
  --header-inner-h: 64px;
  --logo-h: 38px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: #fff;
}

h1, h2, h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a img {
  border: 0;
}

.logo:focus,
.logo:focus-visible {
  outline: none;
}

a:focus-visible,
label:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-tight {
  padding-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}

.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

.intro .eyebrow {
  display: block;
}

.intro .eyebrow::after {
  display: inline-block;
  vertical-align: middle;
  margin-left: 16px;
}

.arrow {
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #034FC4;
  border-color: #034FC4;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.link .arrow,
.pager svg {
  color: var(--accent);
}

.btn:hover .arrow,
.link:hover .arrow,
.card:hover .arrow {
  transform: translateX(4px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--link);
  font-weight: 600;
  font-size: 15px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-spacer {
  height: var(--header-spacer-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-inner-h);
  transition: height 0.25s ease;
}

.logo img {
  height: 44px;
  width: auto;
}

.header .logo img {
  height: var(--logo-h);
  transition: height 0.25s ease;
}

.header .logo {
  position: relative;
}

.header .logo .logo-b {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: height 0.25s ease, opacity 0.25s ease;
}

:root.header-is-compact .header .logo .logo-b {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: font-size 0.25s ease;
}

@media (min-width: 901px) {
  :root.header-is-compact .nav > a:not(.btn),
  :root.header-is-compact .nav-item > a:not(.btn) {
    font-size: 14px;
  }
}

.nav a:not(.btn).active,
.nav a:not(.btn):hover {
  border-bottom-color: var(--accent);
}

.nav a:not(.btn).active {
  font-weight: 700;
}

.nav-toggle,
.nav-toggle-label {
  display: none;
}

/* Hero */
.hero {
  background: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/world.b.png") no-repeat left 41vw center / auto 140%;
  opacity: 0.05;
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 96px;
  padding-bottom: 96px;
  padding-left: 44px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}

.hero h2 {
  font-size: 44px;
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 20px;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero h2 .hero-emphasis {
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-name {
  text-transform: none;
  margin: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Intro */
.site-name::after {
  display: none;
}

.lead {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 960px;
}

.lead strong {
  font-weight: 800;
}

/* Pillars */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--text);
  border-radius: var(--radius);
}

.card-logo {
  align-self: flex-start;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 32px;
}

.card-logo-wmhsa {
  max-width: 96px;
}

.card-role {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

.card h3 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #000;
}

.card p:not(.card-role) {
  margin-bottom: 24px;
}

.card p.card-for {
  font-size: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: auto;
  margin-bottom: 32px;
}

.card-for strong {
  color: var(--text);
}

.card:hover h3 {
  text-decoration: underline;
}

/* Publications */
.publications {
  background: var(--light-bg);
}

.publications-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.publications h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

.publications-intro p:not(.eyebrow) {
  margin-bottom: 40px;
}

.pub {
  display: flex;
  gap: 40px;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pub-cover {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 180px;
  aspect-ratio: 3 / 4;
  padding: 20px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--text);
  border-radius: var(--radius);
}

.pub-cover-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pub-cover-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.pub-cover img {
  margin-top: auto;
  width: 90px;
}

.pub-type {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.pub h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.pub-body p:not(.pub-type) {
  font-size: 16px;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: #94A3B8;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 64px;
}

.footer .logo img {
  height: 51px;
  margin-bottom: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 4px;
}

.footer-col a:hover {
  color: #fff;
}

.footer .tagline {
  color: #CBD5E1;
}

.footer-contact {
  margin-top: 28px;
}

.footer-contact::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #475569;
  margin-bottom: 16px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  background: var(--text);
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: #94A3B8;
}

.footer-bottom .container,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .footer-bottom .container {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-sep-lead {
    display: none;
  }
}

/* Mobile */
@media (max-width: 900px) {
  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding-top: 0;
  }

  :root {
    --header-spacer-h: 90px;
    --header-inner-h: 90px;
    --header-nav-h: 64px;
    --logo-h: 52px;
  }

  :root.header-is-compact {
    --header-inner-h: 56px;
    --logo-h: 30px;
  }

  .logo img {
    height: 38px;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-inner-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav a:not(.btn).active,
  .nav a:not(.btn):hover {
    border-bottom-color: var(--border);
    color: var(--primary);
  }

  .nav .btn {
    justify-content: center;
    margin-top: 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
    padding-left: 24px;
  }

  .hero::before {
    background-position: left 30vw top 20px;
    background-size: 120% auto;
  }

  .hero-img {
    order: -1;
  }

  .desktop-only {
    display: none;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-text {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .lead {
    font-size: 21px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 32px 24px;
  }
  .card h3 {
    font-size: 24px;
  }

  .publications-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .publications h2 {
    font-size: 30px;
  }

  .pub {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer .logo img {
    height: 43px;
  }
}

/* Docs layout */
@media (prefers-reduced-motion: no-preference) {
  html:has(.docs) {
    scroll-behavior: smooth;
  }
}

.docs {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: clip;
}

.docs-sidebar {
  border-right: 1px solid var(--border);
  padding: 40px 24px 40px 0;
}

.docs-sidebar-inner {
  position: sticky;
  z-index: 5;
  top: calc(var(--header-nav-h) + 24px);
  max-height: calc(100vh - var(--header-nav-h) - 48px);
  overflow-y: auto;
  overflow-x: hidden;
}

@media (min-width: 901px) {
  .docs-sidebar {
    position: relative;
  }

  /* Windows classic scrollbars always show arrow buttons; hide native and use .docs-sidebar-scrolltrack. */
  .docs-sidebar-inner {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 2px;
  }

  .docs-sidebar-inner::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .docs-sidebar-scrolltrack {
    position: absolute;
    right: 6px;
    width: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
  }

  .docs-sidebar-scrolltrack.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .docs-sidebar-scrollthumb {
    width: 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: #CBD5E1;
    will-change: transform;
    transition: background 0.15s;
  }

  .docs-sidebar-scrolltrack:hover .docs-sidebar-scrollthumb {
    background: #94A3B8;
  }

  .docs-sidebar-scrolltrack.is-dragging .docs-sidebar-scrollthumb {
    background: #64748B;
  }
}

.docs-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.docs-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 2px solid var(--text);
}

.docs-chapter {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.docs-chapter:hover {
  color: var(--link);
}

.docs-chapter span,
.chapter-num,
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.docs-chapter[aria-current="page"] {
  font-weight: 700;
}

.docs-chapter[aria-current="page"] span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.docs-chapter:has(+ .docs-subnav)::after {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 0 6px 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: var(--muted);
  transform: translate(-6px, -2px) rotate(45deg);
  transition: transform 0.2s, color 0.2s;
}

.docs-chapter:hover::after,
.docs-chapter.is-open::after {
  color: var(--link);
  transform: translateX(2px) rotate(-45deg);
}

.docs-chapter.is-open {
  color: var(--link);
}

.docs-subnav {
  display: none;
  position: fixed;
  z-index: 50;
  flex-direction: column;
  width: 300px;
  max-height: calc(100vh - var(--header-nav-h) - 48px);
  overflow-y: auto;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: inset 4px 0 0 var(--border), 6px 8px 20px -6px rgba(15, 23, 42, 0.1);
}

.docs-subnav.is-open {
  display: flex;
}

.docs-subnav a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  padding: 10px 20px 10px 20px;
  border-left: 4px solid transparent;
}

.docs-subnav a:hover,
.docs-subnav a.is-active {
  color: var(--text);
  background: var(--light-bg);
  border-left-color: var(--accent);
}

.docs-subnav a.is-active {
  font-weight: 600;
}

.docs-product .btn {
  width: 100%;
  justify-content: space-between;
  white-space: nowrap;
  padding: 12px 16px;
  font-size: 14px;
  border: 0;
  background: var(--light-bg);
}

.docs-product .btn:hover {
  background: #E4EBF3;
  color: var(--primary);
}

.docs-main {
  min-width: 0;
  padding: 40px 0 96px;
  font-family: var(--font-read);
  font-size: 16px;
  line-height: 1.65;
  color: var(--read);
}

/* Docs typography: Montserrat for headings and UI labels, system font for reading text */
.docs-main h1,
.docs-main h2,
.docs-main h3,
.docs-main .eyebrow,
.docs-main .btn,
.breadcrumb,
.pager-mini,
.pager,
.chapter-num,
.chapter-title,
.start-reading-title,
.prose .process-title,
.process > li::before,
.prose .finding-title,
.prose dt,
.prose thead th,
.prose .tile-label,
.stat-value,
.docs-disclaimer-title {
  font-family: var(--font-head);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin-right: 8px;
}

.breadcrumb a {
  color: var(--text);
}

.breadcrumb a:hover {
  color: var(--link);
}

.docs-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 32px;
}

.docs-top .breadcrumb {
  margin-bottom: 0;
}

.docs-top-landing {
  margin-bottom: 24px;
}

/* Ask AI */
.ask-ai {
  position: relative;
  margin-left: auto;
}

.ask-ai summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 6px 12px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--light-bg);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.ask-ai summary::-webkit-details-marker {
  display: none;
}

.ask-ai summary:hover,
.ask-ai[open] summary {
  background: #E2E8F0;
}

.ask-ai-icon {
  color: var(--primary);
}

.ask-ai-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  min-width: 210px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(11, 37, 82, 0.2);
}

.ask-ai-menu::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 0;
  right: 0;
  height: 9px;
}

.ask-ai-menu a,
.ask-ai-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.ask-ai-menu a:hover,
.ask-ai-menu button:hover {
  background: var(--light-bg);
}

.ask-ai-menu a:has(.ask-ai-ext) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ask-ai-ext {
  flex-shrink: 0;
  opacity: 0.45;
}

.ask-ai-menu a.ask-ai-read,
.ask-ai-menu a.ask-ai-dl,
.ask-ai-menu button[data-copy] {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.ask-ai-doc,
.ask-ai-copy {
  flex-shrink: 0;
  opacity: 0.6;
}

.ask-ai-menu hr {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.footer-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-heading-row .footer-heading {
  margin-bottom: 0;
  white-space: nowrap;
}

.ask-ai-footer summary {
  white-space: nowrap;
}

.ask-ai-footer {
  z-index: 10;
  margin-block: -4px;
}

@media (min-width: 901px) {
  .ask-ai-footer {
    margin-right: 24px;
  }
}

.ask-ai-footer summary {
  padding: 4px 12px 4px 10px;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ask-ai-footer summary:hover,
.ask-ai-footer[open] summary {
  background: rgba(255, 255, 255, 0.18);
}

.ask-ai-footer .ask-ai-icon {
  color: #93C5FD;
}

.footer-col .ask-ai-menu a:hover {
  color: var(--text);
}

.footer-col .ask-ai-menu a.ask-ai-read:hover,
.footer-col .ask-ai-menu a.ask-ai-dl:hover {
  color: var(--muted);
}


.pager-mini {
  display: flex;
  gap: 8px;
  margin-left: auto;
  justify-content: flex-end;
}

.pager-mini a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pager-mini a:hover {
  border-color: var(--accent);
}

.docs-intro {
  margin-bottom: 32px;
}

.docs-intro .docs-lead {
  max-width: none;
  margin-bottom: 8px;
}

.docs-highlights {
  margin-bottom: 32px;
}

.docs-highlights .features {
  margin-top: 0;
}

.docs-h2 {
  font-size: 26px;
  line-height: 1.25;
  margin-top: 56px;
  margin-bottom: 20px;
}

.docs-main h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.docs-title-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #000;
}

.docs-title-logo img {
  width: auto;
  height: 1.15em;
  padding: 0.22em;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.docs-logo {
  display: block;
  width: auto;
  height: 72px;
  margin-bottom: 20px;
}

.docs-logo-wordmark {
  height: 23px;
  margin-top: 52px;
  margin-bottom: 32px;
}

.docs-main h1.docs-lead-title {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  font-weight: 700;
  color: inherit;
  margin: 0;
}

.docs-part-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.docs-part-row .eyebrow {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.docs-part-row .eyebrow::after {
  flex: 0 1 40px;
  width: 40px;
  max-width: 40px;
  min-width: 0;
}

.docs-part-row .pager-mini {
  flex-shrink: 0;
  transform: translateY(-5px);
}

.docs-main .eyebrow {
  margin-bottom: 12px;
}

.docs-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 40px;
}

/* Chapter list */
.chapters {
  list-style: none;
  border: 1px solid var(--border);
  border-top: 3px solid var(--text);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.chapters li + li {
  border-top: 1px solid var(--border);
}

.chapters a {
  display: grid;
  grid-template-columns: 26px 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  transition: background 0.2s;
}

.chapters a:hover {
  background: var(--light-bg);
}

.chapter-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.chapter-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.chapters .arrow {
  color: var(--accent);
}

.start-reading {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 24px;
}

.start-reading + .start-reading,
.start-reading.start-reading-outline {
  margin-top: 16px;
  background: none;
  border: 1px solid var(--border);
}

.start-reading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  color: var(--accent);
}

.start-reading + .start-reading .start-reading-icon,
.start-reading-outline .start-reading-icon {
  background: var(--light-bg);
}

.start-reading-text {
  flex: 1;
}

.start-reading-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.start-reading-text p:not(.start-reading-title) {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.start-reading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.prose .start-reading {
  margin: 28px 0 24px;
}

.prose .start-reading p {
  margin-bottom: 0;
}

.prose .start-reading .btn svg {
  width: 16px;
  height: 16px;
  margin-left: 0;
  vertical-align: middle;
}

.chapters a:hover .arrow {
  transform: translateX(4px);
}

/* Article content */
.prose {
  min-width: 0;
}

.docs-highlights.prose {
  max-width: none;
}

.docs-highlights .feature p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.prose::after {
  content: "";
  display: block;
  clear: both;
}

.prose h2 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--header-nav-h) + 24px);
}

.prose h2:not(:first-child) {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.prose h3 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
}

.prose h2 + h3 {
  margin-top: 0;
}

.prose p {
  margin-bottom: 16px;
}

.prose strong {
  color: var(--text);
}

.prose a:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(4, 96, 236, 0.35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:not(.btn):hover {
  text-decoration-color: currentColor;
}

.prose sup a:not(.btn) {
  text-decoration: none;
}

.prose a svg {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -1px;
}

.docs-lead:has(+ .prose > .prose-intro) {
  margin-bottom: 24px;
}

.page-toc {
  float: right;
  width: 240px;
  margin: 0 0 24px 40px;
  padding: 16px 20px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.page-toc-title {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.page-toc li {
  counter-increment: toc;
}

.page-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.15s;
}

.page-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex-shrink: 0;
  min-width: 18px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}

.page-toc a:hover,
.page-toc a:hover::before {
  color: var(--link);
}

@media (min-width: 901px) {
  .docs-part-row:has(+ .page-toc) .pager-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 240px;
  }

  .docs-part-row:has(+ .page-toc) .pager-mini a {
    position: relative;
    text-align: center;
  }

  .docs-part-row:has(+ .page-toc) .pager-mini a:first-child {
    padding-left: 14px;
    padding-right: 10px;
  }

  .docs-part-row:has(+ .page-toc) .pager-mini a:last-child {
    padding-left: 10px;
    padding-right: 14px;
  }

  .docs-part-row:has(+ .page-toc) .pager-mini .pager-arrow {
    position: absolute;
    left: 12px;
  }

  .docs-part-row:has(+ .page-toc) .pager-mini a:last-child .pager-arrow {
    left: auto;
    right: 12px;
  }
}

.prose .mobile-toc {
  display: none;
  margin: 40px 0 0;
}

.prose .mobile-toc-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose .mobile-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: mobile-toc;
}

.prose .mobile-toc li {
  margin: 0;
  padding: 0;
  counter-increment: mobile-toc;
}

.prose .mobile-toc li + li {
  border-top: 1px solid var(--border);
}

.prose .mobile-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}

.prose .mobile-toc a::before {
  content: counter(mobile-toc, decimal-leading-zero);
  flex-shrink: 0;
  min-width: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.prose .mobile-toc a:active {
  background: var(--light-bg);
}

@media (max-width: 900px) {
  .page-toc {
    display: none;
  }

  .prose .mobile-toc {
    display: block;
  }
}

.prose-intro {
  color: var(--text);
  font-style: italic;
}

.prose-intro p:last-child {
  margin-bottom: 0;
}

.prose > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
}

.prose > img.prose-img-float {
  float: right;
  width: 45%;
  max-width: 100%;
  height: auto;
  margin: 6px 0 16px 32px;
}

.prose > img.prose-img-float.prose-img-square {
  width: 30%;
  border-radius: 24px;
}

.prose h2 {
  clear: both;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--muted);
}

.prose ol > li::marker {
  font-weight: 600;
  color: var(--text);
}

.prose ul.cols {
  columns: 2;
  column-gap: 40px;
}

.prose ul.cols li {
  break-inside: avoid;
}

.prose ul.not-list {
  list-style: none;
  margin-left: 0;
}

.not-list li {
  position: relative;
  padding-left: 28px;
}

.not-list li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.callout {
  background: var(--light-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.prose .callout-title {
  font-size: inherit;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.callout-warn {
  background: #FEF3F2;
  border-left-color: #D92D20;
}

.callout-dark-red {
  border-left-color: #7A271A;
}

.callout-yellow {
  background: #FFFAEB;
  border-left-color: #F79009;
}

.prose .callout-yellow p,
.prose .callout-yellow strong {
  color: #7A2E0E;
}

.prose .callout-warn p,
.prose .callout-warn strong,
.prose .callout-warn .callout-title {
  color: #7A271A;
}

.prose blockquote {
  margin: 20px 0 24px;
  padding: 16px 22px;
  border-left: 3px solid var(--border);
  font-style: italic;
  color: var(--text);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

/* Law excerpts */
.prose .law {
  margin: 20px 0 24px;
}

.prose .law blockquote {
  margin: 0;
  padding: 16px 22px;
  border-left: 3px solid var(--border);
  font-style: italic;
  color: var(--text);
}

.prose .law figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Term / description rows */
.prose dl {
  margin: 8px 0 24px;
  border-top: 1px solid var(--border);
}

.prose dl > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.prose dt {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.prose dd p {
  margin-bottom: 8px;
}

.prose dd p:last-child {
  margin-bottom: 0;
}

.prose dd .used-in {
  font-size: 14px;
  color: var(--muted);
}

/* Numbered process */
.prose ol.process {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 28px;
  padding: 0;
}

.prose .process > li {
  position: relative;
  counter-increment: step;
  margin: 0;
  padding: 0 0 22px 52px;
}

.process > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
}

.process > li::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 38px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.prose .process > li:last-child {
  padding-bottom: 0;
}

.process > li:last-child::after {
  display: none;
}

.prose .process-title {
  padding-top: 5px;
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.prose .process p:not(.process-title) {
  margin-bottom: 4px;
}

.prose .process p:last-child {
  margin-bottom: 0;
}

/* Tiles */
.prose .tiles {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 28px;
  padding: 0;
}

.prose .tiles-stack {
  grid-template-columns: 1fr;
}

.prose .tiles-plain .tile {
  border-top: 1px solid var(--border);
}

.prose .tile {
  margin: 0;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-top: 3px solid var(--text);
  border-radius: var(--radius);
}

.prose .tile-wide {
  grid-column: 1 / -1;
}

.prose .tile h3 {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.prose .tile-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.prose .tile p {
  margin-bottom: 8px;
}

.prose .tile p:last-child,
.prose .tile ol:last-child {
  margin-bottom: 0;
}

.prose .tile ol {
  margin: 4px 0 12px;
}

.prose .tile li {
  margin-bottom: 4px;
}

/* Support gaps */
.prose ol.gaps {
  list-style: none;
  display: grid;
  gap: 16px;
  margin: 24px 0 28px;
  padding: 0;
}

.prose .gap {
  display: grid;
  grid-template-columns: 1fr auto;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose .gap-main {
  padding: 22px 24px;
}

.prose .gap h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.prose .gap-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--text);
  border-radius: 50%;
}

.prose .gap-main p {
  margin: 0;
  padding-left: 40px;
}

.prose .gap-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 200px;
  padding: 22px 24px;
  /* background: var(--light-bg); */
  border-left: 1px solid var(--border);
}

.prose .gap-stat-value {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose .gap-stat-label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--body);
}

.prose .gap-response {
  grid-column: 1 / -1;
  position: relative;
  padding: 16px 24px 16px 64px;
  background: rgba(4, 96, 236, 0.06);
  border-top: 1px solid rgba(4, 96, 236, 0.15);
}

.gap-response::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .gap-response p {
  margin: 0;
}

.prose .gap-response strong {
  color: var(--text);
}

.prose .gap-main .gap-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Gap matrix: Physical Health vs Mental Health */
.prose .gap-matrix {
  margin: 28px 0 32px;
}

.prose .gm-head,
.prose .gm-row {
  display: grid;
  grid-template-columns: 47fr 53fr;
}

.prose .gm-head {
  font-family: var(--font-head);
  border-bottom: 2px solid var(--text);
}

.prose .gm-head-gap,
.prose .gm-head-col {
  align-self: end;
  padding: 0 20px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.prose .gm-head-gap {
  padding-left: 0;
}

.prose ol.gm-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prose .gm-row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.prose .gm-row:last-child {
  border-bottom: 0;
}

.prose .gm-gap {
  padding: 22px 20px 22px 0;
}

.prose .gm-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 3px 9px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  border-radius: 4px;
}

.prose .gm-tag-key {
  font-weight: 500;
}

.prose .gm-tag-gap {
  padding-left: 7px;
  color: #93370D;
  background: #FEF0C7;
}

.gm-tag-gap::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B54708' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .gm-tag-fa {
  color: #B42318;
  background: #FEF3F2;
}

.prose .gm-tag-sa {
  color: #067647;
  background: #DCFAE6;
}

.prose .gm-gap p,
.prose .gm-cell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}

.prose .gm-stat {
  font-style: italic;
  color: var(--muted);
}

.prose .gm-cell {
  padding: 22px 20px;
}

.prose .gm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.prose .gm-tags .gm-tag {
  margin: 0;
}

.prose .gm-cell > p {
  color: var(--text);
}

.gm-cell > p::before {
  content: "\2714\FE0E";
  margin-right: 6px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .prose .gm-head {
    display: none;
  }

  .prose ol.gm-rows {
    display: grid;
    gap: 32px;
  }

  .prose .gm-row,
  .prose .gm-row:last-child {
    display: block;
    border: 1px solid var(--border);
    border-top: 2px solid var(--text);
    border-radius: var(--radius);
  }

  .prose .gm-gap,
  .prose .gm-cell {
    padding: 22px 20px;
  }

  .prose .gm-gap {
    padding-bottom: 28px;
  }

  .prose .gm-cell {
    position: relative;
    padding-top: 30px;
    border-top: 2px dashed #EEF2F6;
  }

  .gm-cell::before {
    content: "Solution";
    position: absolute;
    top: 0;
    left: 14px;
    padding: 0 6px;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: #fff;
    transform: translateY(-50%);
  }}

/* Licence package */
.prose ul.package {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 24px 0 28px;
  padding: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose .package-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  margin: 0;
  padding: 22px 24px;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}

.prose .package-item-wide {
  grid-column: 1 / -1;
  background: var(--light-bg);
}

.prose .package-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: rgba(4, 96, 236, 0.08);
  border-radius: 8px;
}

.prose .package-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
}

.prose .package-item p {
  margin: 0 0 8px;
}

.prose .package-item p:last-child,
.prose .package-item ul:last-child {
  margin-bottom: 0;
}

.prose .package-note {
  font-size: 14px;
  color: var(--muted);
}

/* Overview highlights */
.prose ul.highlights {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.prose .highlight {
  position: relative;
  margin: 32px 0 0;
  padding: 32px 0 0 38px;
  border-top: 1px solid var(--border);
}

.prose .highlight:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose .highlight-icon {
  position: absolute;
  left: 0;
  top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--primary);
  background: rgba(4, 96, 236, 0.08);
  border-radius: 6px;
}

.prose .highlight:first-child .highlight-icon {
  top: 0;
}

.prose .highlight-icon svg {
  width: 14px;
  height: 14px;
}

.prose .highlight h3 {
  margin: 0 0 10px;
}

.prose .highlight p:last-child {
  margin-bottom: 0;
}

/* Architecture diagram */
.prose .arch {
  margin: 24px 0 28px;
}

.prose .arch-row {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose .arch-row + .arch-row {
  margin-top: 12px;
}

.prose .arch-row-secondary {
  background: var(--light-bg);
}

.prose .arch-label {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.prose .arch-label span {
  margin-left: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.prose ol.arch-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
}

.prose .arch-flow li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose .arch-flow li + li::before {
  content: "\2192";
  position: absolute;
  left: -21px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--muted);
}

.prose .arch figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Exercises */
.prose .exercises {
  display: grid;
  gap: 20px;
  margin: 24px 0 32px;
}

.prose .exercise {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose .exercise-head {
  margin-bottom: 10px;
}

.prose .exercise-head h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.prose ul.exercise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .exercise-tags li {
  margin: 0;
  padding: 2px 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--primary);
  background: rgba(4, 96, 236, 0.08);
  border-radius: 999px;
}

.prose .exercise > p {
  margin-bottom: 4px;
}

.prose .exercise > p.exercise-basis {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.prose ol.exercise-steps {
  list-style: none;
  counter-reset: exercise-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.prose .exercise-steps > li {
  counter-increment: exercise-step;
  margin: 0;
  padding: 16px;
  font-size: 14px;
  line-height: 1.55;
  background: var(--light-bg);
  border-radius: var(--radius);
}

.prose .exercise-steps > li::before {
  content: "Step " counter(exercise-step);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.prose .exercise-steps p {
  margin: 0;
}

.prose .exercise-steps .exercise-step-title {
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

@media (max-width: 900px) {
  .prose .exercise {
    padding: 20px;
  }

  .prose ol.exercise-steps {
    grid-template-columns: 1fr;
  }
}

/* Side-by-side pair */
.prose .pair {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
}

.prose .pair-3 {
  grid-template-columns: repeat(3, 1fr);
}

.prose .pair li {
  margin: 0;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  background: var(--light-bg);
  border-radius: var(--radius);
}

/* Figures */
.prose .stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
}

.prose .stats li {
  margin: 0;
  padding: 16px;
  background: var(--light-bg);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
}

/* Findings */
.prose .findings {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.prose .findings li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 40px;
  border-bottom: 1px solid var(--border);
}

.findings li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.findings li.is-open::before {
  background: var(--light-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: inset 0 0 0 1.5px #CBD5E1;
}

.findings li.is-fail::before {
  background: #D92D20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .finding-title {
  margin-bottom: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.prose .findings p:not(.finding-title) {
  margin-bottom: 0;
}

/* Checklist */
.prose ul.checklist {
  list-style: none;
  padding: 0;
}

.prose .checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--light-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230460EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px #CBD5E1;
}

/* Standards */
.prose .standard-num {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.prose .standard {
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose .standard-body {
  padding: 22px 24px 18px;
}

.prose .standard-label {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose .standard-principle {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.prose .standard-principle + .standard-label {
  margin-top: 20px;
}

.prose .standard ul.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin: 0;
}

.prose .standard .checklist li {
  margin: 0;
}

.prose .standard-motto {
  margin: 0;
  padding: 16px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  background: var(--light-bg);
  border-top: 1px solid var(--border);
}

.prose .standard-motto .standard-label {
  display: block;
  margin-bottom: 4px;
}

.prose .standard-gap {
  border-top-color: var(--primary);
}

.prose .standard-gap .standard-motto {
  background: rgba(4, 96, 236, 0.06);
  border-top-color: rgba(4, 96, 236, 0.15);
}

/* MHTS seven standards */
.prose h2.std-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 20px;
  align-items: end;
}

.prose .std-num {
  grid-row: 1 / span 2;
  font-size: 64px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(4, 96, 236, 0.16);
}

.prose .std-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.prose .std-spec {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 37, 82, 0.04), 0 8px 24px -12px rgba(11, 37, 82, 0.12);
}

.prose .std-label {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose .std-principle {
  position: relative;
  margin: 0;
  padding: 26px 28px 24px;
  border-left: 0;
  font-style: normal;
}

.prose .std-principle::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
  color: rgba(4, 96, 236, 0.1);
}

.prose .std-principle p:not(.std-label) {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.prose .std-principle p:last-child {
  margin-bottom: 0;
}

.prose .std-reqs {
  padding: 26px 28px 24px;
  background: var(--light-bg);
  border-left: 1px solid var(--border);
}

.prose ul.std-req-list,
.prose ol.std-req-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .std-req-list li {
  position: relative;
  margin: 0;
  padding: 7px 0 7px 32px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.prose .std-req-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose .std-req-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.prose .std-req-list li:first-child::before {
  top: 0;
}

.prose .std-req-list .std-req-no::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2552' stroke-width='2.25' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='7.5'/%3E%3Cpath d='M6.8 17.2L17.2 6.8'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .std-req-list .std-req-yes::before {
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose ol.std-req-seq {
  counter-reset: std-step;
}

.prose .std-req-seq li {
  counter-increment: std-step;
}

.prose .std-req-seq li::before {
  content: counter(std-step);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  color: #fff;
  background: var(--primary);
}

.prose .std-motto {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px 28px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: var(--dark-bg);
}

.prose .std-matrix {
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.prose .std-matrix-head,
.prose .std-matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.prose .std-matrix-head {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}

.prose .std-matrix-head span,
.prose .std-matrix-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.prose .std-matrix-head span {
  padding: 14px 24px;
}

.prose .std-matrix-head span + span {
  border-left: 1px solid var(--border);
}

.prose .std-matrix-head .std-no,
.prose .std-matrix .std-no .std-matrix-label {
  color: #B42318;
}

.prose .std-matrix-head span::before,
.prose .std-matrix-label::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .std-matrix-head .std-no::before,
.prose .std-matrix .std-no .std-matrix-label::before {
  background: #D92D20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .std-matrix-row {
  position: relative;
}

.prose .std-matrix-row + .std-matrix-row {
  border-top: 1px solid var(--border);
}

.prose .std-matrix-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px solid var(--border);
}

.prose .std-matrix-row h3 {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px 24px 0 20px;
  font-size: 16px;
}

.prose .std-matrix-row .std-yes {
  grid-column: 1;
}

.prose .std-matrix-row .std-no {
  grid-column: 2;
  grid-row: 2;
}

.prose .std-matrix-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(4, 96, 236, 0.1);
  border-radius: 6px;
}

.prose .std-matrix-cell {
  padding: 10px 24px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--read);
}

.prose .std-matrix-cell p {
  margin: 0;
}

.prose .std-matrix-cell p:not(.std-matrix-label)::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230460EC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .std-matrix-cell.std-no p:not(.std-matrix-label)::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D92D20' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .std-matrix-cell .std-matrix-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .prose .std-num {
    font-size: 48px;
  }

  .prose .std-spec {
    grid-template-columns: 1fr;
  }

  .prose .std-principle,
  .prose .std-reqs {
    padding: 20px;
  }

  .prose .std-reqs {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .prose .std-motto {
    padding: 16px 20px;
  }

  .prose .std-matrix-head {
    display: none;
  }

  .prose .std-matrix-row {
    grid-template-columns: 1fr;
  }

  .prose .std-matrix-row::after {
    display: none;
  }

  .prose .std-matrix-row h3 {
    padding: 18px 20px 4px 16px;
  }

  .prose .std-matrix-row .std-no {
    grid-column: 1;
    grid-row: auto;
  }

  .prose .std-matrix-cell {
    padding: 10px 20px 16px;
  }

  .prose .std-matrix-cell + .std-matrix-cell {
    padding-top: 0;
  }

  .prose .std-matrix-cell .std-matrix-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    margin: 0 0 6px;
  }

  .prose .std-matrix-cell .std-matrix-label::before {
    display: none;
  }
}

/* Assessment status */
.prose .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.prose .status-code {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
}

.prose .status-p .status-code {
  color: var(--muted);
  background: var(--light-bg);
  box-shadow: inset 0 0 0 1.5px #CBD5E1;
}

.prose .status-u .status-code {
  background: #D92D20;
}

.prose .status-u {
  color: #B42318;
}

/* Worked example */
.prose .case {
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose .case-head {
  padding: 18px 24px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}

.prose .case-label {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose .case-meta {
  margin: 0;
  border-top: 0;
}

.prose .case-meta > div {
  grid-template-columns: 140px minmax(0, 1fr);
  padding: 6px 0;
  border-bottom: 0;
}

.prose .case-meta dt,
.prose .case-meta dd {
  font-size: 15px;
}

.prose .case-body {
  padding: 24px;
}

.prose .case-body ol.process {
  margin: 0;
}

.prose .case-body .process ul,
.prose .case-body .process ol {
  margin: 4px 0 0;
}

/* Conforming / non-conforming */
.prose .dodont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 24px;
}

.prose .dodont-item {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.prose .dodont-no {
  border-top-color: #D92D20;
}

.prose .dodont-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.prose .dodont-no .dodont-label {
  color: #B42318;
}

.dodont-label::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.dodont-no .dodont-label::before {
  background: #D92D20 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prose .dodont-item p:last-child,
.prose .dodont-item ul:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .prose .standard-body {
    padding: 20px;
  }

  .prose .standard-motto {
    padding: 14px 20px;
  }

  .prose .case-head,
  .prose .case-body {
    padding: 18px 20px;
  }

  .prose .case-meta > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .prose .standard ul.checklist,
  .prose .dodont {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.prose.prose-faq h3 {
  position: relative;
  margin-top: 32px;
  padding-top: 32px;
  padding-left: 38px;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-nav-h) + 24px);
}

.prose.prose-faq h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(4, 96, 236, 0.08);
  border-radius: 6px;
}

.prose.prose-faq h2 {
  margin-bottom: 0;
  padding-bottom: 14px;
  font-size: 22px;
  border-bottom: 2px solid var(--border);
}

.prose.prose-faq h2:not(:first-of-type) {
  margin-top: 64px;
  padding-top: 0;
  border-top: 0;
}

.prose.prose-faq h2 + h3,
.prose.prose-faq h3.is-first {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

.prose.prose-faq h3.is-first::before {
  top: 0;
}

.prose.prose-faq [hidden],
.faq-empty[hidden] {
  display: none;
}

.faq-search {
  position: relative;
  clear: both;
  margin: -12px 0 48px;
}

.faq-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
}

.faq-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 96, 236, 0.12);
}

.faq-empty {
  margin: -24px 0 48px;
  color: var(--muted);
}

.prose.prose-faq h2 + p {
  margin-top: 20px;
}

.prose.prose-faq h2 + h3::before {
  top: 0;
}

.prose.prose-faq h3 ~ p,
.prose.prose-faq h3 ~ .callout {
  margin-left: 38px;
}

.prose.prose-faq #where-can-i-learn-more ~ p {
  margin-left: 0;
}

/* Landing disclaimer */
.docs-disclaimer {
  margin-top: 48px;
  padding: 24px 0 0;
  font-size: 14px;
  line-height: 1.6;
  border: 0;
  border-top: 1px dashed var(--border);
}

.docs-disclaimer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

.docs-disclaimer-title svg {
  flex-shrink: 0;
  color: var(--accent);
}

.docs-disclaimer p:not(.docs-disclaimer-title) {
  margin-bottom: 12px;
}

.docs-disclaimer p a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .docs-disclaimer {
    padding: 20px 0 0;
  }
}

/* References */
.prose .diagram {
  margin: 24px 0 28px;
}

.prose .diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.prose .diagram figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.prose ol.refs {
  padding-left: 32px;
}

.prose .refs > li {
  margin-bottom: 14px;
  padding-left: 6px;
  scroll-margin-top: calc(var(--header-nav-h) + 24px);
}

.prose .refs p {
  margin-bottom: 2px;
}

.page-sources {
  margin-top: 64px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-sources ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.page-sources li {
  margin-bottom: 4px;
}

.page-sources p {
  margin: 0;
}

.page-sources a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(4, 96, 236, 0.35);
  text-underline-offset: 3px;
}

.page-sources a:hover {
  text-decoration-color: currentColor;
}

.docs-lead a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(4, 96, 236, 0.35);
  text-underline-offset: 3px;
}

.docs-lead a:hover {
  text-decoration-color: currentColor;
}

.docs-lead a svg,
.page-sources a svg {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -1px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin-top: 40px;
}

.feature {
  display: flex;
  gap: 16px;
}

.feature svg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--accent);
  background: #F1F5F9;
  border-radius: 50%;
}

.feature h3 {
  font-size: 16px;
  letter-spacing: 0;
  margin: 4px 0 4px;
}

.prose .feature p {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  font-size: inherit;
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.prose thead th {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

.prose thead th .th-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.prose tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.prose table.compare {
  table-layout: fixed;
}

.prose .lang-table td:nth-child(2) {
  color: var(--muted);
}

.prose .lang-table td:nth-child(3) {
  font-weight: 700;
  color: var(--text);
}

.prose .lang-table td:last-child {
  white-space: nowrap;
}

.prose td.num {
  font-variant-numeric: tabular-nums;
}

.prose .note {
  color: var(--muted);
  font-style: italic;
}

/* Previous / next */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.pager a:hover {
  border-color: var(--accent);
}

.pager-next {
  align-items: flex-end;
  text-align: right;
}

.pager-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pager-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.pager-next:hover .arrow {
  transform: translateX(4px);
}

.pager-prev:hover .arrow {
  transform: translateX(-4px);
}

@media (max-width: 1100px) {
  .docs {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }

  .start-reading {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .start-reading-text {
    flex-basis: calc(100% - 68px);
  }

  .start-reading-outline .start-reading-actions {
    margin-left: 68px;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .docs-sidebar {
    display: none;
  }

  .prose h2 {
    scroll-margin-top: calc(var(--header-nav-h) + 24px);
  }

  .prose > img,
  .prose > img.prose-img-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }

  .prose > img.prose-img-float.prose-img-square {
    width: 100%;
    max-width: 280px;
    margin: 0 0 24px;
    display: block;
  }

  .docs-main {
    padding: 32px 0 56px;
  }

  .docs-main h1 {
    font-size: 30px;
  }

  .docs-logo {
    height: 56px;
  }

  .docs-logo-wordmark {
    height: 18px;
  }


  .docs-lead {
    font-size: 17px;
  }

  .docs-h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .docs-intro {
    margin-bottom: 24px;
  }

  .chapters a {
    grid-template-columns: 26px 1fr 16px;
    gap: 2px 16px;
    padding: 16px;
  }

  .chapter-num {
    grid-row: span 2;
    align-self: start;
  }

  .chapter-desc {
    grid-column: 2;
  }

  .chapters .arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .start-reading-actions {
    margin-left: auto;
    justify-content: flex-end;
  }

  .prose h2 {
    font-size: 22px;
  }

  .prose h3 {
    font-size: 17px;
  }

  .prose h2:not(:first-child) {
    margin-top: 40px;
    padding-top: 40px;
  }

  .prose .mobile-toc + h2 {
    margin-top: 64px;
    padding-top: 0;
    border-top: none;
  }

  .features,
  .prose .tiles,
  .pager {
    grid-template-columns: 1fr;
  }

  .prose dl > div {
    grid-template-columns: 1fr;
  }

  .prose .gap,
  .prose ul.package {
    grid-template-columns: 1fr;
  }

  .prose .gap-main p {
    padding-left: 0;
  }

  .prose .gap-stat {
    width: auto;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .prose .stats {
    grid-template-columns: 1fr 1fr;
  }

  .prose ol.arch-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .prose .arch-flow li + li::before {
    content: "\2193";
    left: 50%;
    top: -21px;
    transform: translateX(-50%);
  }

  .prose ul.cols {
    columns: 1;
  }

  .pager {
    display: flex;
    flex-direction: column;
  }

  .pager-next {
    order: -1;
  }

}

/* Nav dropdowns */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.nav-sub-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
}

.has-sub.is-open .nav-sub-toggle::before {
  transform: translateY(2px) rotate(-135deg);
}

.nav-sub-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.nav-sub {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.has-sub.is-open .nav-sub {
  display: flex;
}

.nav .nav-sub a:not(.nav-sub-external),
.nav .nav-sub a:not(.nav-sub-external):hover {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 0;
  border-radius: 4px;
}

.nav .nav-sub a:not(.nav-sub-external) {
  font-weight: 500;
}

.nav .nav-sub .chapter-num {
  width: 22px;
  height: 22px;
  margin-left: -4px;
  font-size: 11px;
}

.nav .nav-sub .chapter-num svg {
  width: 12px;
  height: 12px;
}

.nav .nav-sub a[aria-current="page"] .chapter-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nav .nav-sub a:not(.nav-sub-external):hover {
  background: var(--light-bg);
}

.nav .nav-sub a[aria-current="page"],
.nav .nav-sub a[aria-current="page"]:hover {
  font-weight: 700;
}

@media (min-width: 901px) {
  .nav-sub-toggle {
    display: none;
  }

  .has-sub:hover .nav-sub,
  .has-sub:focus-within .nav-sub {
    display: flex;
  }
}

@media (max-width: 900px) {
  .nav {
    max-height: calc(100vh - var(--header-inner-h));
    overflow-y: auto;
  }

  .nav-item {
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav .nav-item > a {
    flex: 1;
    border-bottom: 0;
  }

  .nav-sub-toggle {
    width: 48px;
    height: 28px;
    border-left: 1px solid var(--border);
  }

  .nav-sub {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0 0 12px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav .nav-sub a:not(.nav-sub-external),
  .nav .nav-sub a:not(.nav-sub-external):hover {
    padding: 10px 0;
    background: none;
  }

  .nav .nav-sub a:not(.nav-sub-external):hover {
    color: var(--link);
  }
}

.nav .nav-sub a.nav-sub-external {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: var(--light-bg);
  border: 0;
  border-radius: 8px;
}

.nav .nav-sub a.nav-sub-external:hover {
  background: #E4EBF3;
  color: var(--primary);
}

@media (max-width: 900px) {
  .nav .nav-sub a.nav-sub-external {
    margin-left: -10px;
  }
}
