:root {
  --navy: #163a78;
  --navy-deep: #102b59;
  --blue: #2f74dc;
  --blue-soft: #eef4ff;
  --orange: #e99012;
  --orange-soft: #fff7e8;
  --green: #169b78;
  --purple: #7356c8;
  --ink: #172033;
  --muted: #5d687b;
  --line: #dce3ed;
  --line-dark: #c7d1df;
  --surface: #f7f9fc;
  --white: #ffffff;
  --text-width: 760px;
  --wide-width: 1320px;
  --header-height: 72px;
  --shadow-float: 0 16px 50px rgb(18 48 93 / 14%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(47 116 220 / 45%);
  outline-offset: 4px;
  border-radius: 4px;
}

button,
summary {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.text-container,
.wide-container,
.hero-inner,
.header-inner {
  width: min(100% - 40px, var(--wide-width));
  margin-inline: auto;
}

.text-container {
  max-width: var(--text-width);
}

.centered {
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid rgb(220 227 237 / 88%);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-deep);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.desktop-nav a {
  color: #43506a;
  font-size: 15px;
  font-weight: 620;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.mobile-nav {
  display: none;
}

.section {
  padding: clamp(66px, 6vw, 86px) 0;
}

.section-kicker,
.eyebrow,
.panel-label,
.illustration-label {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: #122344;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 990px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.09;
  text-wrap: balance;
}

h2 {
  margin-bottom: 19px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  color: #17294c;
  font-size: 21px;
  line-height: 1.35;
}

p {
  margin-bottom: 1.1em;
}

.section-lead {
  color: #49566d;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.65;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 6vw, 84px) 0 clamp(60px, 6vw, 82px);
  background: #fbfcfe;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero .eyebrow {
  margin-bottom: 18px;
  color: var(--blue);
}

.author-block {
  margin-top: 22px;
}

.author-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.55;
}

.author-list a {
  color: var(--navy);
  text-decoration-color: #bac8de;
  text-decoration-thickness: 1px;
}

.author-list a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.author-list sup,
.contribution-note sup {
  color: var(--orange);
  font-size: 0.72em;
}

.contribution-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-tagline {
  margin: 20px 0 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.2vw, 41px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-tagline span[aria-hidden="true"] {
  display: inline-block;
  margin-inline: 0.12em;
  color: var(--orange);
}

.hero-summary {
  max-width: 770px;
  margin: 25px auto 0;
  color: #445168;
  font-size: 19px;
  line-height: 1.72;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.resource-link {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

a.resource-link:hover {
  color: var(--navy);
  background: var(--blue-soft);
  border-color: #9cb7df;
}

.resource-link img {
  width: 30px;
  height: 29px;
  object-fit: contain;
}

.resource-link small {
  display: block;
  margin-top: 2px;
  color: #687386;
  font-size: 12px;
  font-weight: 650;
}

.resource-link.is-disabled {
  color: #687386;
  background: #f8fafc;
  border-color: #e5e9f0;
  box-shadow: none;
}

.resource-link.is-disabled img {
  filter: grayscale(0.5);
  opacity: 0.65;
}


.question-section {
  background: var(--white);
}

.step-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: clamp(22px, 3vw, 46px);
  max-width: 1120px;
  margin-top: 42px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  text-align: center;
}

.step-number {
  display: none;
}

.step img {
  width: 78px;
  height: 78px;
  margin-bottom: 17px;
  object-fit: contain;
}

.step h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.step p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.flow-arrow {
  min-height: 78px;
  display: grid;
  place-items: center;
  color: #8d9bad;
  font-size: 24px;
}

.fpi-section {
  padding-block: clamp(74px, 7vw, 96px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.75fr);
  align-items: center;
  gap: clamp(58px, 8vw, 120px);
}

.split-copy {
  max-width: 690px;
}

.section-heading.with-icon {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.section-heading.with-icon > img {
  width: 44px;
  height: 43px;
  margin-top: 2px;
  object-fit: contain;
}

.section-heading.with-icon h2 {
  margin-bottom: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 35px 0 29px;
  border-block: 1px solid var(--line-dark);
}

.stats div {
  padding: 17px 14px 16px 0;
}

.stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.stats dt {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
}

.attribute-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.attribute-list span {
  padding: 5px 10px;
  color: var(--navy-deep);
  background: var(--white);
  border: 1px solid #cfd9e8;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 680;
}

.split-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.paper-figure {
  margin: 0;
}

.paper-figure > a {
  position: relative;
  display: block;
  padding: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.paper-figure > a:hover {
  border-color: #a9bbd6;
}

.paper-figure > a img {
  width: 100%;
}

.paper-figure figcaption {
  max-width: 1040px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.portrait-figure {
  max-width: 530px;
  justify-self: center;
}

.portrait-figure > a {
  padding: 10px;
}

.enlarge-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 9px;
  color: var(--navy-deep);
  background: rgb(255 255 255 / 92%);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  box-shadow: 0 2px 7px rgb(23 41 76 / 8%);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.2;
}

.audit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 5.5vw, 76px) minmax(0, 1fr);
  align-items: stretch;
  margin-top: 38px;
  color: var(--ink);
  background: #f8fafc;
  border-block: 1px solid var(--line-dark);
}

.audit-overline {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px clamp(24px, 3vw, 38px) 13px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-align: center;
}

.audit-column {
  padding: clamp(25px, 3.2vw, 39px);
}

.audit-panel .panel-label {
  color: var(--navy);
}

.audit-panel ul {
  margin: 15px 0 0;
  padding-left: 22px;
}

.audit-panel li {
  margin: 7px 0;
}

.audit-direction {
  align-self: stretch;
  display: grid;
  place-items: center;
  color: var(--orange);
  border-inline: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
}

.audit-direction span {
  display: block;
}

.audit-goal-column {
  border-left: 0;
}

.audit-footnote {
  margin-top: 17px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.metric-note {
  margin-top: 34px;
  padding: 17px 21px;
  color: var(--muted);
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  font-size: 16px;
}

.metric-note p {
  margin: 0;
}

.recovery-section {
  background: #fbfcfe;
  border-top: 1px solid var(--line);
}

.decoder-illustration {
  margin-top: 38px;
  padding: clamp(28px, 3.5vw, 42px);
  background: #fbfcfe;
  border-block: 1px solid var(--line-dark);
}

.illustration-label {
  margin-bottom: 0;
  color: var(--muted);
}

.illustration-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.illustration-heading > p:last-child {
  margin: 0;
  color: #7a8596;
  font-size: 13px;
}

.likelihood-ranking {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 2vw, 24px);
  padding: 0 clamp(5px, 2vw, 26px) 28px;
  border-bottom: 1px solid var(--line);
}

.candidate {
  min-width: 0;
  text-align: center;
}

.bar-track {
  height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 9px;
  border-bottom: 1px solid #bac5d4;
}

.bar-track span {
  width: min(48px, 55%);
  height: var(--bar-height);
  min-height: 8px;
  background: #9eabbc;
}

.candidate-token {
  display: block;
  color: #34425a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(14px, 1.7vw, 18px);
}

.selection-marker {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 850;
}

.selected-rg .bar-track span {
  background: var(--blue);
}

.selected-rg .selection-marker {
  color: #285fba;
}

.selected-rig .bar-track span {
  background: var(--orange);
}

.selected-rig .selection-marker {
  color: #a96503;
}

.decoder-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  margin-top: 28px;
}

.decoder-rows > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.decoder-rows p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.decoder-name {
  min-width: 43px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.decoder-name.rg {
  color: #285fba;
  background: #edf4ff;
}

.decoder-name.rig {
  color: #a96503;
  background: var(--orange-soft);
}

.method-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  max-width: 980px;
  margin-top: 37px;
}

.method-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.results-section {
  padding-block: clamp(76px, 7vw, 96px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.result-figure {
  margin-top: 42px;
}

.result-figure > a {
  padding: clamp(8px, 1.2vw, 16px);
}

.result-notes {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.65fr);
  gap: clamp(32px, 4vw, 58px);
  align-items: start;
  max-width: 1120px;
  margin-top: 32px;
}

.numeric-callout {
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--orange);
}

.callout-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.callout-number {
  display: block;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 4.6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.numeric-callout > span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.result-interpretation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 38px);
}

.result-interpretation p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.meaning-box {
  max-width: 880px;
  margin-top: 56px;
  padding: 24px 0 0;
  background: transparent;
  border-top: 2px solid var(--orange);
}

.meaning-box h3 {
  margin: 0 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 34px);
}

.meaning-box ul {
  margin: 0;
  padding-left: 21px;
  color: #4f5869;
  font-size: 16px;
}

.meaning-box li + li {
  margin-top: 6px;
}

.analyses-section {
  padding-block: clamp(72px, 6.5vw, 90px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 40px);
  margin-top: 42px;
}

.analysis-preview {
  min-width: 0;
}

.analysis-preview h3 {
  margin: 16px 0 5px;
  color: var(--navy-deep);
  font-size: 20px;
}

.analysis-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.preview-figure > a {
  padding: 8px;
}

.more-analyses {
  margin-top: 42px;
  border-block: 1px solid var(--line-dark);
}

.more-analyses summary {
  position: relative;
  padding: 18px 52px 18px 4px;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
}

.more-analyses summary::-webkit-details-marker {
  display: none;
}

.more-analyses summary span,
.more-analyses summary strong,
.more-analyses summary small {
  display: block;
}

.more-analyses summary strong {
  font-size: 17px;
  font-weight: 760;
}

.more-analyses summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.more-analyses summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-53%);
}

.more-analyses[open] summary::after {
  content: "−";
}

.more-analyses-body {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.analysis-subsection {
  padding-bottom: 40px;
}

.analysis-subsection + .analysis-subsection {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.analysis-subsection > p {
  max-width: 850px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.beam-subsection {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 46px;
}

.beam-subsection > div p {
  color: var(--muted);
  font-size: 16px;
}

.beam-subsection > div p:last-child {
  margin-bottom: 0;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.compact-figure > a {
  padding: 7px;
}

.compact-figure figcaption {
  margin-top: 8px;
  text-align: center;
}

.resources-section {
  border-top: 1px solid var(--line);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
  border-block: 1px solid var(--line-dark);
}

.resource-list > a,
.resource-list > div {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--navy-deep);
  text-decoration: none;
}

.resource-list > * + * {
  border-left: 1px solid var(--line);
}

.resource-list > div {
  color: #737e90;
  background: #fafbfd;
}

.resource-list > a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.resource-list img {
  width: 40px;
  height: 39px;
  object-fit: contain;
}

.resource-list strong,
.resource-list small {
  display: block;
}

.resource-list strong {
  font-size: 17px;
}

.resource-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.citation {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.citation-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.citation-heading img {
  width: 48px;
  height: 46px;
  object-fit: contain;
}

.citation h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.citation pre {
  margin: 20px 0 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #24324a;
  background: #f7f9fc;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre;
}

.citation code {
  font: inherit;
}

.site-footer {
  padding: 31px 0;
  color: var(--muted);
  background: #fbfcfe;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-deep);
  font-size: 16px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.site-footer p {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: 13px;
  text-align: right;
}

.site-footer p span:first-child {
  color: #43506a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-float);
}

.lightbox::backdrop {
  background: rgb(7 17 35 / 75%);
  backdrop-filter: blur(3px);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.lightbox-toolbar a,
.lightbox-toolbar button {
  color: var(--navy);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 740;
}

.lightbox-toolbar button {
  padding: 4px 7px;
  cursor: pointer;
}

.lightbox-scroller {
  max-height: calc(94vh - 100px);
  padding: 14px;
  overflow: auto;
}

.lightbox-image {
  width: 100%;
  max-width: none;
  margin: auto;
}

.lightbox[data-kind="portrait"] .lightbox-image {
  width: min(820px, 88vw);
}

.lightbox-caption {
  margin: 0;
  padding: 10px 16px 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .split-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
    gap: 48px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-list > :nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .resource-list > :nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  body {
    font-size: 17px;
  }

  .text-container,
  .wide-container,
  .hero-inner,
  .header-inner {
    width: min(100% - 30px, var(--wide-width));
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    padding: 4px 2px;
    color: var(--navy);
    cursor: pointer;
    font-size: 16px;
    font-weight: 720;
  }

  .mobile-nav nav {
    position: absolute;
    top: 42px;
    right: 0;
    width: 190px;
    display: grid;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line-dark);
    border-radius: 6px;
    box-shadow: var(--shadow-float);
  }

  .mobile-nav nav a {
    padding: 8px 10px;
    color: #3e4a60;
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
  }

  .hero {
    padding-top: 62px;
  }

  .step-flow {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 4px;
    margin-top: 38px;
  }

  .flow-arrow {
    min-height: 28px;
    justify-self: center;
    line-height: 1;
    transform: rotate(90deg);
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-copy {
    max-width: none;
  }

  .portrait-figure {
    max-width: 550px;
  }

  .audit-panel,
  .result-notes,
  .beam-subsection {
    grid-template-columns: 1fr;
  }

  .audit-panel {
    gap: 0;
  }

  .audit-overline {
    padding-bottom: 16px;
  }

  .audit-direction {
    width: 100%;
    min-height: 56px;
    justify-self: stretch;
    padding: 0;
    border-inline: 0;
    border-block: 1px solid var(--line);
  }

  .audit-direction span {
    transform: rotate(90deg);
  }

  .audit-goal-column {
    padding-top: 21px;
    border-left: 0;
    border-top: 0;
  }

  .method-notes {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .result-notes {
    max-width: 760px;
  }

  .result-interpretation {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .numeric-callout {
    max-width: 390px;
  }

  .figure-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .beam-subsection {
    gap: 30px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer p {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  h1 {
    font-size: clamp(33px, 9.5vw, 40px);
  }

  h2 {
    font-size: clamp(29px, 8.2vw, 37px);
  }

  .hero {
    padding: 45px 0 51px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .author-list {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 18px;
    justify-content: center;
    font-size: 15px;
  }

  .author-list > span {
    display: none;
  }

  .hero-tagline {
    margin-top: 18px;
  }

  .resource-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 29px;
  }

  .resource-link {
    width: 100%;
    justify-content: flex-start;
  }

  .resource-row > :last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .step {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
  }

  .step img {
    width: 68px;
    height: 68px;
    margin-bottom: 12px;
  }

  .section-heading.with-icon {
    gap: 13px;
  }

  .section-heading.with-icon > img {
    width: 40px;
    height: 39px;
  }

  .stats {
    margin-top: 28px;
  }

  .stats dt {
    font-size: 24px;
  }

  .stats div,
  .stats div + div {
    padding: 14px 11px;
  }

  .audit-panel {
    width: 100%;
  }

  .decoder-illustration {
    width: 100%;
    padding: 27px 15px;
  }

  .likelihood-ranking {
    gap: 6px;
  }

  .bar-track {
    height: 86px;
  }

  .candidate-token {
    font-size: 13px;
  }

  .decoder-rows {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-figure,
  .analysis-grid,
  .more-analyses {
    width: 100%;
  }

  .result-figure figcaption,
  .analysis-grid figcaption {
    padding-inline: 15px;
  }

  .analysis-preview > h3,
  .analysis-preview > p {
    margin-inline: 15px;
  }

  .paper-figure > a {
    border-radius: 0;
    border-inline: 0;
  }

  .enlarge-hint {
    right: 9px;
    bottom: 9px;
  }

  .meaning-box {
    width: calc(100% - 30px);
    margin-top: 57px;
  }

  .more-analyses summary {
    padding: 17px 48px 17px 15px;
  }

  .more-analyses summary::after {
    right: 16px;
  }

  .more-analyses-body {
    padding-inline: 15px;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }

  .resource-list > * + *,
  .resource-list > :nth-child(3),
  .resource-list > :nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resource-list > a,
  .resource-list > div {
    min-height: 87px;
    padding: 15px;
  }

  .citation pre {
    margin-inline: -15px;
    padding-inline: 15px;
    border-inline: 0;
    border-radius: 0;
  }

  .lightbox {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .lightbox-scroller {
    max-height: calc(100vh - 105px);
    padding: 10px;
  }

  .lightbox[data-kind="wide"] .lightbox-image {
    width: 1120px;
  }

  .lightbox[data-kind="standard"] .lightbox-image {
    width: 820px;
  }

  .lightbox[data-kind="portrait"] .lightbox-image {
    width: min(720px, 92vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
