@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 7 Free";
  src: url("../fonts/fontawesome-solid-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

:root {
  --white: #ffffff;
  --cloud: #f5f6fa;
  --lavender: #f0edf8;
  --lavender-strong: #ddd7ee;
  --indigo: #514783;
  --indigo-dark: #3d3568;
  --graphite: #262638;
  --muted: #606072;
  --line: #d9d9e3;
  --success: #2d6c5a;
  --warning: #835c16;
  --shadow-sm: 0 10px 30px rgba(38, 38, 56, 0.08);
  --shadow-lg: 0 28px 70px rgba(38, 38, 56, 0.14);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --shell: min(1180px, calc(100% - 48px));
  --reading: 720px;
  --header-height: 78px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--white);
  color: var(--graphite);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--indigo-dark);
}

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 4px;
}

::selection {
  background: var(--lavender-strong);
  color: var(--graphite);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--graphite);
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 6.4rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.fa {
  display: inline-grid;
  place-items: center;
  font-family: "Font Awesome 7 Free";
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  color: var(--white);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(38, 38, 56, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--shell);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--graphite);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--graphite);
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 10%;
  background: var(--indigo);
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  transform: rotate(-5deg);
}

.brand-mark span {
  transform: rotate(5deg);
}

.brand-word {
  display: grid;
  line-height: 0.88;
}

.brand-word small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--graphite);
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

.js .nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a,
.topics-menu > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--graphite);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.topics-menu > summary:hover,
.topics-menu[open] > summary {
  background: var(--lavender);
  color: var(--indigo-dark);
}

.topics-menu {
  position: relative;
}

.topics-menu > summary {
  cursor: pointer;
  list-style: none;
}

.topics-menu > summary::-webkit-details-marker {
  display: none;
}

.topics-menu > summary .fa {
  font-size: 0.68em;
  transition: transform 180ms ease;
}

.topics-menu[open] > summary .fa {
  transform: rotate(180deg);
}

.topics-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(440px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.topics-panel a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--graphite);
  text-decoration: none;
}

.topics-panel a:hover,
.topics-panel a[aria-current="page"] {
  background: var(--cloud);
}

.topics-panel .fa {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lavender);
  color: var(--indigo);
}

.topics-panel strong {
  display: block;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 0.92rem;
}

.topics-panel small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--indigo);
  content: "";
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--indigo);
  border-radius: 999px;
  background: var(--indigo);
  color: var(--white);
  font-family: "Outfit", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--indigo-dark);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--indigo-dark);
}

.button-secondary:hover {
  background: var(--lavender);
  color: var(--indigo-dark);
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.text-link .fa {
  font-size: 0.8em;
  transition: transform 180ms ease;
}

.text-link:hover .fa {
  transform: translateX(4px);
}

.home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 10vw, 142px) 0 clamp(70px, 9vw, 126px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(81, 71, 131, 0.16), transparent 24%),
    linear-gradient(180deg, var(--white), var(--cloud));
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(81, 71, 131, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 71, 131, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.hero-copy h1 {
  max-width: 830px;
  margin-bottom: 28px;
}

.hero-copy .lede {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.36rem);
  line-height: 1.55;
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-footnote .fa {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--indigo);
}

.report-stage {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.report-stage::before,
.report-stage::after {
  position: absolute;
  width: 70%;
  height: 78%;
  border: 1px solid rgba(81, 71, 131, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  content: "";
}

.report-stage::before {
  transform: rotate(8deg) translate(20px, 0);
}

.report-stage::after {
  transform: rotate(-5deg) translate(-18px, 6px);
}

.report-sheet {
  position: relative;
  z-index: 2;
  width: min(430px, 84%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.report-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--graphite);
}

.report-sheet-head strong {
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.1rem;
}

.report-stamp {
  align-self: start;
  padding: 5px 8px;
  border: 1px solid var(--indigo);
  border-radius: 4px;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(2deg);
}

.report-fields {
  margin: 0;
}

.report-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.report-field dt {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.report-field dd {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: right;
}

.report-field.result dd {
  color: var(--indigo-dark);
  font-size: 1.55rem;
}

.report-note {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--lavender);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.report-callout {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--indigo);
  border-radius: 999px;
  background: var(--white);
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  animation: callout-in 520ms ease forwards;
}

.report-callout::after {
  width: 46px;
  height: 1px;
  background: var(--indigo);
  content: "";
}

.report-callout.date {
  top: 25%;
  left: -2%;
  animation-delay: 350ms;
}

.report-callout.units {
  top: 46%;
  right: -1%;
  flex-direction: row-reverse;
  animation-delay: 700ms;
}

.report-callout.notes {
  right: 4%;
  bottom: 16%;
  flex-direction: row-reverse;
  animation-delay: 1050ms;
}

@keyframes callout-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section {
  padding: clamp(76px, 10vw, 138px) 0;
}

.section-cloud {
  background: var(--cloud);
}

.section-lavender {
  background: var(--lavender);
}

.section-dark {
  background: var(--graphite);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark .eyebrow {
  color: var(--white);
}

.section-dark .eyebrow::before {
  background: var(--white);
}

.section-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: clamp(38px, 6vw, 70px);
}

.section-index {
  padding-top: 9px;
  color: var(--indigo);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  max-width: 850px;
  margin-bottom: 20px;
}

.section-heading > p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-heading > p,
.section-dark .section-index {
  color: rgba(255, 255, 255, 0.76);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.choice-card {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  overflow: hidden;
  background: var(--white);
  color: var(--graphite);
  text-decoration: none;
}

.choice-card::after {
  position: absolute;
  right: -34px;
  bottom: -45px;
  width: 155px;
  height: 155px;
  border: 1px solid var(--lavender-strong);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 11px, rgba(81, 71, 131, 0.08) 12px 13px);
  content: "";
  transition: transform 300ms ease;
}

.choice-card:hover {
  color: var(--graphite);
}

.choice-card:hover::after {
  transform: scale(1.12) rotate(12deg);
}

.choice-card .fa {
  width: 50px;
  height: 50px;
  margin-bottom: auto;
  border-radius: 14px;
  background: var(--lavender);
  color: var(--indigo);
  font-size: 1.1rem;
}

.choice-card .card-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.choice-card h3 {
  margin: 36px 0 12px;
}

.choice-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: start;
}

.walkthrough-copy {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.walkthrough-copy h2 {
  margin-bottom: 24px;
}

.walkthrough-copy > p {
  color: var(--muted);
}

.fragment-list {
  counter-reset: fragment;
}

.fragment-card {
  position: relative;
  min-height: 190px;
  margin-bottom: 16px;
  padding: 30px 30px 30px 86px;
  border: 1px solid var(--line);
  background: var(--white);
  counter-increment: fragment;
}

.fragment-card::before {
  position: absolute;
  top: 30px;
  left: 28px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  content: counter(fragment, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
}

.fragment-card h3 {
  margin-bottom: 10px;
}

.fragment-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-strip {
  display: grid;
  grid-auto-columns: minmax(280px, 0.78fr);
  grid-auto-flow: column;
  gap: 16px;
  padding: 6px 2px 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--indigo) var(--lavender);
}

.article-strip > * {
  scroll-snap-align: start;
}

.mini-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.mini-card .meta {
  margin-bottom: auto;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-card h3 {
  margin: 38px 0 12px;
  font-size: 1.25rem;
}

.mini-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.route-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.route-grid::before {
  position: absolute;
  top: 45px;
  right: 7%;
  left: 7%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 8px, transparent 8px 18px);
  content: "";
}

.route-card {
  position: relative;
  z-index: 1;
  min-height: 370px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px 18px 18px 4px;
  background: rgba(255, 255, 255, 0.06);
}

.route-stop {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 46px;
  border: 7px solid var(--graphite);
  border-radius: 50%;
  background: var(--white);
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  box-shadow: 0 0 0 2px var(--white);
}

.route-card h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.3rem;
}

.route-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.route-card .text-link {
  margin-top: auto;
  color: var(--white);
}

.chart-lesson {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.chart-copy h2 {
  margin-bottom: 20px;
}

.chart-copy p {
  color: var(--muted);
}

.chart-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chart-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.chart-box figcaption {
  margin-bottom: 18px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.bar-plot {
  height: 220px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 8px;
  padding: 16px 10px 28px 34px;
  border-bottom: 2px solid var(--graphite);
  border-left: 2px solid var(--graphite);
  background: repeating-linear-gradient(to top, transparent 0 39px, rgba(38, 38, 56, 0.1) 40px 41px);
}

.bar-plot span {
  position: relative;
  width: 16%;
  min-width: 18px;
  height: var(--bar);
  border-radius: 5px 5px 0 0;
  background: var(--indigo);
}

.bar-plot span::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  color: var(--muted);
  content: attr(data-label);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
  transform: translateX(-50%);
}

.axis-label {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  text-align: center;
}

.educational-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.source-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.source-boundary h2 {
  margin-bottom: 22px;
}

.source-boundary p {
  color: var(--muted);
}

.source-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.source-steps .fa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--indigo);
}

.source-steps strong {
  display: block;
  font-family: "Outfit", Arial, sans-serif;
}

.source-steps small {
  color: var(--muted);
}

.page-hero {
  position: relative;
  padding: clamp(68px, 9vw, 122px) 0 clamp(62px, 8vw, 108px);
  overflow: hidden;
  background: var(--cloud);
}

.page-hero::after {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 520px;
  height: 520px;
  border: 1px solid var(--lavender-strong);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 24px, rgba(81, 71, 131, 0.055) 25px 26px);
  content: "";
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.8vw, 5.7rem);
}

.page-hero .lede {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% 50% 8%;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  content: "";
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.breadcrumbs {
  margin-bottom: 30px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  color: var(--muted);
  content: "/";
}

.breadcrumbs a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.category-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.category-intro-copy {
  max-width: var(--reading);
}

.category-intro-copy p {
  color: var(--muted);
}

.category-intro-copy p:first-of-type {
  color: var(--graphite);
  font-size: 1.13rem;
}

.category-visual {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cloud);
}

.visual-label {
  margin-bottom: 24px;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-report {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.visual-report-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.visual-report-row:last-child {
  border-bottom: 0;
}

.visual-report-row span:first-child {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.visual-report-row span:last-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-align: right;
}

.visual-chart {
  min-height: 270px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 26px 20px 42px 42px;
  border-bottom: 2px solid var(--graphite);
  border-left: 2px solid var(--graphite);
  background: repeating-linear-gradient(to top, transparent 0 48px, rgba(38, 38, 56, 0.1) 49px 50px);
}

.visual-chart span {
  position: relative;
  flex: 1;
  height: var(--height);
  border: 2px solid var(--indigo);
  border-radius: 6px 6px 0 0;
  background: var(--lavender);
}

.visual-chart span[data-missing="true"] {
  border-style: dashed;
  background: repeating-linear-gradient(135deg, transparent 0 7px, var(--lavender-strong) 8px 10px);
}

.visual-chart span::after {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  color: var(--muted);
  content: attr(data-label);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.54rem;
  transform: translateX(-50%);
}

.quality-stack {
  display: grid;
  gap: 12px;
}

.quality-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.quality-step .fa {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--indigo);
}

.quality-step strong,
.claim-route strong {
  display: block;
  font-family: "Outfit", Arial, sans-serif;
}

.quality-step small,
.claim-route small {
  color: var(--muted);
}

.claim-route {
  position: relative;
  display: grid;
  gap: 24px;
}

.claim-route::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 19px;
  width: 2px;
  background: var(--indigo);
  content: "";
}

.claim-route > div {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
}

.claim-route > div::before {
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 7px solid var(--cloud);
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  content: attr(data-step);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
}

.privacy-files {
  position: relative;
  min-height: 300px;
}

.privacy-file {
  position: absolute;
  width: 76%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px 16px 16px 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.privacy-file::before {
  position: absolute;
  top: -12px;
  left: -1px;
  width: 92px;
  height: 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: inherit;
  content: "";
}

.privacy-file:nth-child(1) {
  top: 24px;
  left: 0;
  transform: rotate(-3deg);
}

.privacy-file:nth-child(2) {
  top: 93px;
  right: 0;
  background: var(--lavender);
  transform: rotate(2deg);
}

.privacy-file:nth-child(3) {
  top: 170px;
  left: 8%;
  transform: rotate(-1deg);
}

.privacy-file strong {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.privacy-file small {
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px 24px 24px 24px;
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.article-card-number {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin: 52px 0 16px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.article-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.photo-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--graphite);
}

.photo-band img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.photo-band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 8vw, 100px);
  color: var(--white);
}

.photo-band-copy h2,
.photo-band-copy .eyebrow {
  color: var(--white);
}

.photo-band-copy .eyebrow::before {
  background: var(--white);
}

.photo-band-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.material-hero {
  padding: clamp(58px, 8vw, 104px) 0 clamp(52px, 7vw, 90px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(110deg, var(--white) 0 66%, transparent 66%),
    repeating-linear-gradient(135deg, var(--lavender) 0 2px, var(--cloud) 2px 18px);
}

.material-hero-inner {
  max-width: 970px;
}

.material-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
}

.material-hero .direct-answer {
  max-width: 790px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.26rem);
}

.material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  list-style: none;
}

.material-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, var(--reading));
  justify-content: center;
  gap: clamp(48px, 8vw, 112px);
  padding: clamp(64px, 9vw, 116px) 0;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  padding-left: 18px;
  border-left: 2px solid var(--lavender-strong);
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  min-height: 36px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover,
.toc a[aria-current="true"] {
  color: var(--indigo-dark);
}

.article-body {
  min-width: 0;
}

.article-body > section {
  margin-bottom: 74px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.article-body h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
}

.article-body h3 {
  margin: 34px 0 16px;
}

.article-body p,
.article-body li {
  color: #3f3f51;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 26px;
  padding-left: 1.3em;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 0.3em;
}

.detail-box,
.worked-example,
.limit-box {
  margin: 32px 0;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 4px 22px 22px 22px;
}

.detail-box {
  border: 1px solid var(--lavender-strong);
  background: var(--lavender);
}

.worked-example {
  border: 1px solid var(--line);
  background: var(--cloud);
}

.limit-box {
  border-left: 5px solid var(--indigo);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-box h2,
.worked-example h2,
.limit-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.worked-example > .educational-label {
  margin-bottom: 22px;
}

.table-scroll {
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

caption {
  padding: 16px 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-align: left;
}

th,
td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--lavender);
  color: var(--graphite);
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 600;
}

td {
  color: #3f3f51;
}

.article-sources {
  padding: clamp(56px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
  background: var(--cloud);
}

.article-sources-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(38px, 8vw, 110px);
}

.article-sources h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.source-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Outfit", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.35;
}

.source-list small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.related-section {
  padding: clamp(64px, 9vw, 108px) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--graphite);
  text-decoration: none;
}

.related-card:hover {
  background: var(--cloud);
  color: var(--graphite);
}

.related-card small {
  margin-bottom: auto;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.related-card strong {
  margin: 32px 0 16px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.22;
}

.related-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.routes-hero {
  background: var(--graphite);
  color: var(--white);
}

.routes-hero h1,
.routes-hero .eyebrow {
  color: var(--white);
}

.routes-hero .eyebrow::before {
  background: var(--white);
}

.routes-hero .lede {
  color: rgba(255, 255, 255, 0.76);
}

.routes-hero::after {
  border-color: rgba(255, 255, 255, 0.15);
  background: repeating-radial-gradient(circle, transparent 0 24px, rgba(255, 255, 255, 0.05) 25px 26px);
}

.route-catalog {
  display: grid;
  gap: 22px;
}

.route-catalog-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 4px 24px 24px 24px;
  background: var(--white);
}

.route-catalog-number {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--indigo);
  border-radius: 50%;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.route-catalog-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
}

.route-catalog-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-step {
  position: relative;
  padding-left: 84px;
}

.guide-step::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 8%;
  background: var(--indigo);
  color: var(--white);
  content: attr(data-step);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
}

.guide-step .step-kicker {
  margin-bottom: 10px;
  color: var(--indigo-dark);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) 280px;
  justify-content: center;
  gap: clamp(52px, 9vw, 120px);
}

.service-body > p:first-child {
  color: var(--graphite);
  font-size: 1.2rem;
}

.service-body > section {
  margin-top: 62px;
}

.service-body h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.service-body p,
.service-body li {
  color: #454557;
}

.service-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cloud);
}

.service-aside strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Outfit", Arial, sans-serif;
}

.service-aside p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.policy-links {
  display: grid;
  gap: 5px;
}

.policy-links a {
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
}

.sitemap-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sitemap-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.sitemap-group h2 {
  font-size: 1.5rem;
}

.sitemap-group ul {
  margin-bottom: 0;
  padding-left: 1.1em;
}

.sitemap-group li {
  margin-bottom: 9px;
}

.status-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 60px 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(81, 71, 131, 0.15), transparent 26%),
    var(--cloud);
}

.status-card {
  width: min(720px, 100%);
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 6px 34px 34px 34px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.status-code {
  color: var(--indigo);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(3.6rem, 12vw, 8rem);
  line-height: 1;
}

.status-card h1 {
  margin: 20px 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.status-card p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--graphite);
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) repeat(3, minmax(150px, 0.6fr));
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(62px, 8vw, 98px) 0;
}

.footer-brand .brand {
  margin-bottom: 22px;
  color: var(--white);
}

.footer-brand .brand-word small {
  color: rgba(255, 255, 255, 0.62);
}

.footer-brand > p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

.footer-nav h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-disclaimer {
  padding: 25px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-disclaimer p {
  max-width: 980px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.56);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(380px, 0.8fr);
    gap: 38px;
  }

  .report-stage {
    min-height: 550px;
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-grid::before {
    display: none;
  }

  .route-stop {
    margin-bottom: 34px;
  }

  .article-layout {
    grid-template-columns: 210px minmax(0, var(--reading));
    gap: 54px;
  }

  .footer-main {
    grid-template-columns: 1.1fr repeat(2, 0.7fr);
  }

  .footer-nav:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .js .nav-toggle {
    display: grid;
    place-items: center;
  }

  .js .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(390px, 100%);
    display: none;
    align-items: stretch;
    align-content: start;
    padding: 24px;
    overflow-y: auto;
    border-left: 1px solid var(--line);
    background: var(--white);
    box-shadow: -20px 30px 50px rgba(38, 38, 56, 0.16);
  }

  .js .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav > a,
  .topics-menu > summary {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    border-radius: 10px;
  }

  .topics-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 0;
    background: var(--cloud);
    box-shadow: none;
  }

  .hero-grid,
  .page-hero-grid,
  .category-intro,
  .walkthrough-grid,
  .chart-lesson,
  .source-boundary,
  .article-sources-grid,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-top: 78px;
  }

  .hero-copy h1 {
    max-width: 740px;
  }

  .report-stage {
    min-height: 600px;
  }

  .section-header {
    grid-template-columns: 92px 1fr;
  }

  .walkthrough-copy,
  .category-visual,
  .service-aside {
    position: static;
  }

  .category-visual {
    order: -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--cloud);
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-band {
    grid-template-columns: 1fr;
  }

  .photo-band img {
    min-height: 360px;
  }

  .route-catalog-card {
    grid-template-columns: 92px 1fr;
  }

  .route-catalog-card .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 30px, 620px);
    --header-height: 70px;
  }

  body {
    font-size: 18px;
    line-height: 1.6;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-word {
    font-size: 0.95rem;
  }

  .brand-word small {
    display: none;
  }

  .home-hero::before {
    background-size: 46px 46px;
  }

  .report-stage {
    min-height: 560px;
    margin-inline: -8px;
  }

  .report-sheet {
    width: 82%;
    padding: 20px;
  }

  .report-callout.date {
    left: 0;
  }

  .report-callout.units {
    right: 0;
  }

  .report-callout.notes {
    right: 1%;
  }

  .report-callout::after {
    width: 24px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .choice-grid,
  .article-grid,
  .related-grid,
  .sitemap-groups {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 290px;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 330px;
  }

  .chart-pair {
    grid-template-columns: 1fr;
  }

  .article-strip {
    grid-auto-columns: 86%;
  }

  .material-hero {
    background: linear-gradient(180deg, var(--white), var(--cloud));
  }

  .material-meta {
    display: grid;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .article-body > section {
    margin-bottom: 60px;
  }

  .guide-step {
    padding-left: 0;
  }

  .guide-step::before {
    position: static;
    margin-bottom: 20px;
  }

  .route-catalog-card {
    grid-template-columns: 1fr;
  }

  .route-catalog-card .button {
    grid-column: auto;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .report-stage {
    min-height: 520px;
  }

  .report-stage::before,
  .report-stage::after {
    width: 78%;
    height: 72%;
  }

  .report-sheet {
    width: 88%;
    padding: 17px;
  }

  .report-sheet-head {
    display: grid;
  }

  .report-stamp {
    justify-self: start;
  }

  .report-field {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 0;
  }

  .report-field dd {
    text-align: left;
  }

  .report-callout {
    padding: 7px 9px;
    font-size: 0.56rem;
  }

  .report-callout::after {
    width: 15px;
  }

  .report-callout.date {
    top: 24%;
  }

  .report-callout.units {
    top: 48%;
  }

  .report-callout.notes {
    bottom: 9%;
  }

  .fragment-card {
    padding: 76px 22px 24px;
  }

  .fragment-card::before {
    top: 22px;
    left: 22px;
  }

  .article-card,
  .choice-card {
    padding: 24px;
  }

  .article-card h2,
  .article-card h3 {
    margin-top: 42px;
  }

  .category-visual {
    min-height: 380px;
    padding: 18px;
  }

  .photo-band img {
    min-height: 300px;
  }

  .photo-band-copy {
    padding: 42px 24px;
  }

  .article-layout {
    gap: 34px;
  }

  .detail-box,
  .worked-example,
  .limit-box {
    margin-inline: -4px;
    padding: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-nav:last-child {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .brand-word {
    font-size: 0.86rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .report-callout.notes {
    right: -4px;
  }

  .article-strip {
    grid-auto-columns: 92%;
  }

  .sitemap-group {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .report-callout,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .button-row,
  .related-section,
  .reading-progress {
    display: none;
  }

  body {
    color: #000000;
    font-size: 12pt;
  }

  .article-layout,
  .service-layout {
    display: block;
    padding: 0;
  }

  .material-hero,
  .page-hero {
    padding: 20px 0;
    background: #ffffff;
  }

  a {
    color: #000000;
  }
}

.publisher-card { align-self: start; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line, #dedbe8); border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgb(35 27 72 / 5%); overflow-wrap: anywhere; }
.publisher-card > strong { display: block; margin: 0 0 16px; font-family: "Outfit", Arial, sans-serif; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.35; }
.publisher-card p, .publisher-card address { font-size: 1rem; line-height: 1.65; }
.publisher-card address, .footer-operator address, .service-body address { font-style: normal; }
.publisher-card > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.publisher-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 16px; }
.publisher-contacts a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.footer-operator { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 20%); font-size: 0.9375rem; line-height: 1.65; color: #eeeaf9; }
.footer-operator p { margin-bottom: 12px; }
.footer-operator a { color: #fff; }
.footer-operator address { max-width: 32ch; }
.service-body .policy-date { color: var(--muted); font-size: 0.9375rem; border-bottom: 1px solid var(--line, #dedbe8); padding-bottom: 22px; margin-bottom: 32px; }
.service-body p a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.service-aside > a { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; text-decoration: underline; }
@media (max-width: 640px) { .publisher-card { border-radius: 14px; } }
.product-review-card { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 76px); align-items: center; padding: clamp(24px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--cloud); }
.product-review-image img { width: min(100%, 250px); height: auto; margin: auto; }
.product-review-copy { max-width: 650px; }
.product-review-copy .product-review-disclosure { margin: 24px 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 640px) { .product-review-card { grid-template-columns: 1fr; } .product-review-image img { max-width: 160px; } }
