/* Global reset, typography, focus, and layout utilities. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, var(--bg), var(--surface));
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
img,
svg,
video {
  max-width: 100%;
}
img {
  display: block;
}
p,
h1,
h2,
h3 {
  margin-block-start: 0;
}
h1,
h2,
h3 {
  line-height: var(--lh-head);
  font-weight: var(--fw-bold);
}
h1 {
  font-size: var(--fs-h1);
  margin-block-end: var(--s-5);
}
h2 {
  font-size: var(--fs-h2);
}
p {
  margin-block-end: var(--s-5);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.stage h1:focus {
  box-shadow: none;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(calc(100% - 2 * var(--s-5)), var(--content-max));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.eyebrow {
  color: var(--teal-700);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.025em;
  margin-block-end: var(--s-3);
}
.lead {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: var(--reading-max);
}
.disclaimer {
  color: var(--ink-3);
  font-size: var(--fs-small);
  max-width: var(--reading-max);
}
.section-intro {
  margin-block-end: var(--s-7);
}
.stage {
  min-height: 55vh;
  view-transition-name: route-stage;
}
/* Shared route timings collapse with the existing motion preference tokens. */
:root {
  --dur-route: 320ms;
  --dur-progress: 500ms;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-route: 0ms;
    --dur-progress: 0ms;
  }
}
html.motion-off {
  --dur-route: 0ms;
  --dur-progress: 0ms;
}
html[data-route-direction="forward"]::view-transition-old(route-stage) {
  animation: route-exit-inline-start var(--dur-route) var(--ease-out) both;
}
html[data-route-direction="forward"]::view-transition-new(route-stage) {
  animation: route-enter-inline-end var(--dur-route) var(--ease-out) both;
}
html[data-route-direction="backward"]::view-transition-old(route-stage) {
  animation: route-exit-inline-end var(--dur-route) var(--ease-out) both;
}
html[data-route-direction="backward"]::view-transition-new(route-stage) {
  animation: route-enter-inline-start var(--dur-route) var(--ease-out) both;
}
@keyframes route-enter-inline-end {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes route-exit-inline-start {
  to {
    opacity: 0;
    transform: translateX(48px);
  }
}
@keyframes route-enter-inline-start {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes route-exit-inline-end {
  to {
    opacity: 0;
    transform: translateX(-48px);
  }
}
@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 2 * var(--s-4)), var(--content-max));
  }
}

/* Arabic-Indic numbering for all ordered lists (matches the rest of the UI). */
ol {
  list-style-type: arabic-indic;
}
