:root {
  --ink: #172033;
  --ink-soft: #40506a;
  --muted: #65738a;
  --blue: #315ea8;
  --blue-dark: #1f3768;
  --blue-soft: #eaf4fb;
  --blue-pale: #f3f9fd;
  --cyan-soft: #e9f8fb;
  --purple: #7255b5;
  --purple-soft: #f1ecfb;
  --rose: #c85f73;
  --rose-soft: #fbeef2;
  --green: #35866c;
  --green-soft: #eaf7f1;
  --gold: #b77a24;
  --gold-soft: #fbf3df;
  --line: #dce4ec;
  --line-strong: #cbd6e1;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --shadow: 0 12px 34px rgba(45, 72, 101, 0.1);
  --shadow-soft: 0 5px 18px rgba(45, 72, 101, 0.08);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 980px;
  --wide: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue-dark);
  transform: translateY(-160%);
}

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

.container,
.container-wide {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.container-wide {
  width: min(calc(100% - 40px), var(--wide));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 228, 236, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 12px rgba(40, 61, 88, 0.04);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--wide));
  min-height: 62px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--blue-dark);
  border-radius: 50%;
  background: #ffffff;
}

.brand-mark span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.brand-mark span:nth-child(1) {
  top: 5px;
  left: 11px;
}

.brand-mark span:nth-child(2) {
  bottom: 6px;
  left: 6px;
}

.brand-mark span:nth-child(3) {
  right: 6px;
  bottom: 6px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 14px;
  height: 1px;
  background: var(--blue-dark);
  content: "";
  transform-origin: left center;
}

.brand-mark::before {
  transform: rotate(58deg);
}

.brand-mark::after {
  transform: rotate(121deg);
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.site-menu a {
  color: #526078;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--blue);
}

.site-menu .nav-code {
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 0 3px 10px rgba(31, 55, 104, 0.18);
}

.site-menu .nav-code:hover,
.site-menu .nav-code:focus-visible {
  color: #ffffff;
  background: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid #d8e9f1;
  background:
    radial-gradient(circle at 15% 30%, rgba(207, 237, 247, 0.72), transparent 32%),
    radial-gradient(circle at 86% 14%, rgba(226, 218, 250, 0.55), transparent 29%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfe 46%, #e8f7fb 100%);
}

.hero-inner {
  position: relative;
  padding: clamp(4.6rem, 8vw, 7rem) 0 clamp(4.2rem, 7vw, 6rem);
  text-align: center;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  color: #14213b;
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.05;
}

.hero h1 span {
  display: block;
  margin-top: 0.14em;
  color: var(--blue);
  font-size: 0.72em;
  letter-spacing: -0.04em;
}

.hero-dek {
  max-width: 770px;
  margin: 1.65rem auto 1.45rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.62;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.65rem;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 500;
}

.authors a {
  color: var(--blue);
  text-decoration: none;
}

.authors a:hover,
.authors a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.authors > span {
  color: #9aa6b7;
}

.affiliation {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.venue-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0;
  color: #66738a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.venue-badge {
  padding: 0.38rem 0.72rem;
  border: 1px solid #dd8191;
  border-radius: 999px;
  color: #aa4054;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 3px 10px rgba(152, 71, 90, 0.08);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

.resource-button {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 42px;
  padding: 0.58rem 0.95rem;
  border: 1px solid #d0dae5;
  border-radius: 999px;
  color: #2b3b58;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(45, 72, 101, 0.1);
  font-size: 0.79rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.resource-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.resource-button small {
  color: #8a95a6;
  font-size: 0.61rem;
  font-weight: 500;
}

.resource-button:hover,
.resource-button:focus-visible {
  border-color: #9fb3ca;
  box-shadow: 0 7px 18px rgba(45, 72, 101, 0.14);
  transform: translateY(-1px);
}

.resource-button.is-primary {
  border-color: var(--blue-dark);
  color: #ffffff;
  background: var(--blue-dark);
}

.resource-button.is-primary:hover,
.resource-button.is-primary:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
}

.resource-button.is-placeholder {
  cursor: default;
}

.resource-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.62rem;
}

.resource-status {
  min-height: 1.3em;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.teaser-section {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(3.4rem, 6vw, 5rem);
  background: linear-gradient(180deg, #e8f7fb 0%, #f7fbfd 52%, #ffffff 100%);
}

.paper-figure {
  margin: 0;
}

.paper-figure img {
  width: 100%;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
  background: #ffffff;
}

.teaser-figure,
.method-figure {
  padding: clamp(0.75rem, 2vw, 1.15rem);
  border: 1px solid rgba(211, 224, 235, 0.9);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.paper-figure figcaption {
  max-width: 860px;
  margin: 0.9rem auto 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.section {
  padding: clamp(4.5rem, 8vw, 6.6rem) 0;
}

.section-tinted {
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  background: #f6f7f9;
}

.section-heading,
.section-heading.centered {
  max-width: 790px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.section-kicker,
.result-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  color: #1a2a49;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.18;
}

.section-intro {
  max-width: 720px;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.3rem;
  max-width: 880px;
  margin: 0 auto;
}

.overview-lead {
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--blue-pale);
}

.overview-lead p {
  margin: 0;
  color: #2e405e;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
}

.abstract-block {
  padding: 0;
  border: 0;
}

.abstract-block h3 {
  margin: 0 0 0.85rem;
  color: #1a2a49;
  font-size: 1.65rem;
  font-weight: 700;
  text-align: center;
}

.abstract-block p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  text-align: justify;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.capability {
  min-height: 210px;
  padding: 1.45rem;
  border: 1px solid rgba(211, 222, 232, 0.82);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.capability-belief {
  background: linear-gradient(145deg, #f5f1fd, var(--purple-soft));
}

.capability-recursive {
  background: linear-gradient(145deg, #edf7fc, var(--blue-soft));
}

.capability-action {
  background: linear-gradient(145deg, #effaf5, var(--green-soft));
}

.capability-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.capability-belief .capability-number {
  background: var(--purple);
}

.capability-action .capability-number {
  background: var(--green);
}

.capability h3 {
  margin: 1.5rem 0 0.55rem;
  color: #1a2a49;
  font-size: 1.35rem;
  line-height: 1.2;
}

.capability p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.method-figure {
  margin-top: 1rem;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.method-steps article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(45, 72, 101, 0.05);
}

.method-steps article + article {
  padding-left: 1.35rem;
  border-left: 1px solid var(--line);
}

.method-steps span {
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.method-steps h3 {
  margin: 0.5rem 0 0.4rem;
  color: #243552;
  font-size: 1rem;
  line-height: 1.35;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.benchmark-strip {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.benchmark-strip div {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.benchmark-strip span,
.benchmark-strip strong {
  display: block;
}

.benchmark-strip span {
  margin-bottom: 0.22rem;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benchmark-strip strong {
  color: #33445f;
  font-size: 0.84rem;
}

#results {
  background: linear-gradient(180deg, #f7fcfe 0%, #edf8fc 48%, #f8fcfe 100%);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.3rem;
}

.metric-grid article {
  min-height: 180px;
  padding: 1.35rem;
  border: 1px solid #d7e5ee;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.metric-grid article + article {
  padding-left: 1.35rem;
  border-left: 1px solid #d7e5ee;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  color: var(--blue);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.metric-grid span {
  margin-top: 0.75rem;
  color: #263955;
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-grid p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.48;
}

.results-explorer {
  overflow: hidden;
  border: 1px solid #d7e2eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.tab-list {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.tab-list button {
  min-width: 130px;
  padding: 0.65rem 1rem;
  border: 1px solid #d2dce7;
  border-radius: 999px;
  color: #617087;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tab-list button[aria-selected="true"] {
  border-color: var(--blue-dark);
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(31, 55, 104, 0.18);
}

.tab-list button:focus-visible {
  outline: 3px solid #aac8ee;
  outline-offset: 2px;
}

.result-panel {
  padding: clamp(1.5rem, 4vw, 2.7rem);
}

.result-panel-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.result-plot {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid #e0e6ec;
  border-radius: 9px;
  background: #ffffff;
}

.result-plot img {
  width: 100%;
  border-radius: 5px;
}

.result-copy h3,
.analysis-card-heading h3,
.evidence-card h3 {
  margin: 0;
  color: #1c2d4c;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.result-copy > p:not(.result-eyebrow) {
  margin: 0.85rem 0 1.25rem;
  color: var(--muted);
}

.result-copy-wide {
  max-width: 880px;
  margin: 0 auto;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #e0e6ed;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 0.68rem 0.72rem;
  border-bottom: 1px solid #e4e9ef;
  text-align: right;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th:first-child,
td:first-child,
td[rowspan] {
  text-align: left;
}

th {
  color: #4e5e75;
  background: #f5f8fb;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

td strong {
  color: var(--blue);
}

.dense-table td:nth-child(2) {
  text-align: left;
}

.ours-row td {
  color: #243f72;
  background: #eaf2ff;
  font-weight: 700;
}

.section-dark {
  color: var(--ink);
  background: #f6f7f9;
}

.light-heading .section-kicker {
  color: var(--blue);
}

.light-heading .section-intro {
  color: var(--muted);
}

.transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.transfer-grid article {
  display: flex;
  min-height: 365px;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  flex-direction: column;
}

.transfer-grid article:nth-child(1) {
  border-top: 4px solid var(--purple);
}

.transfer-grid article:nth-child(2) {
  border-top: 4px solid var(--blue);
}

.transfer-grid article:nth-child(3) {
  border-top: 4px solid var(--green);
}

.transfer-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  color: #6f7d92;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.transfer-meta span {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.transfer-grid h3 {
  margin: 1.7rem 0 0.5rem;
  color: #1c2d4c;
  font-size: 1.55rem;
  line-height: 1.15;
}

.transfer-grid p {
  min-height: 4.8rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.transfer-grid dl {
  margin: 1.3rem 0;
}

.transfer-grid dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.58rem 0;
  border-top: 1px solid var(--line);
}

.transfer-grid dt {
  color: #68768b;
  font-size: 0.72rem;
}

.transfer-grid dd {
  margin: 0;
  color: #22395f;
  font-size: 1.12rem;
  font-weight: 700;
}

.transfer-grid dd span {
  color: #95a1b1;
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
}

.transfer-grid a {
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

#analysis {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.2rem;
}

.supervision-chart,
.evidence-card {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid #d9e5ed;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.analysis-card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.analysis-card-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.63rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 58px;
  gap: 0.75rem;
  align-items: center;
  margin: 0.85rem 0;
}

.bar-row > span {
  color: #43536c;
  font-size: 0.75rem;
  font-weight: 700;
}

.bar-row > strong {
  color: #2c4164;
  font-size: 0.78rem;
  text-align: right;
}

.bar-track {
  overflow: hidden;
  height: 22px;
  border-radius: 999px;
  background: #edf1f5;
}

.bar-track i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #91b8e8, var(--blue));
}

.bar-row:nth-of-type(2) .bar-track i {
  background: linear-gradient(90deg, #bdace8, var(--purple));
}

.bar-row:nth-of-type(3) .bar-track i {
  background: linear-gradient(90deg, #80c6b0, var(--green));
}

.chart-note {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.evidence-stat {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.evidence-stat:first-of-type {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.evidence-stat strong {
  color: var(--blue);
  font-size: 1.45rem;
  line-height: 1;
}

.evidence-stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

.posterior-heading {
  margin: 1.35rem 0 0.65rem;
  color: #263957;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.mini-comparison div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mini-comparison span,
.mini-comparison strong,
.mini-comparison small {
  display: block;
}

.mini-comparison span {
  min-height: 2.7em;
  color: var(--muted);
  font-size: 0.67rem;
}

.mini-comparison strong {
  margin-top: 0.35rem;
  color: #263d65;
  font-size: 1.45rem;
}

.mini-comparison small {
  color: var(--muted);
  font-size: 0.61rem;
}

.citation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1.25fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.citation-grid .section-heading {
  margin: 0;
  text-align: left;
}

.citation-grid .section-intro {
  margin-left: 0;
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.citation-block {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  padding: 0.42rem 0.65rem;
  border: 1px solid #657da7;
  border-radius: 999px;
  color: #dfe9f8;
  background: #263c66;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
}

.citation-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 3.4rem 1.35rem 1.35rem;
  color: #edf3ff;
  background: #172947;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
  line-height: 1.62;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid #d6e3ec;
  color: #5e6c80;
  background: #eef7fb;
}

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

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner strong {
  color: #263957;
  font-size: 0.9rem;
}

.footer-inner span {
  margin-top: 0.12rem;
  color: #79869a;
  font-size: 0.7rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--blue);
  font-size: 0.73rem;
  text-underline-offset: 3px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #8db9ec;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: fixed;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 0.8rem 20px 1.25rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 20px rgba(45, 72, 101, 0.08);
    flex-direction: column;
    gap: 0;
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf0f4;
  }

  .site-menu .nav-code {
    margin-top: 0.65rem;
    padding: 0.62rem 0.8rem;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .result-panel-grid,
  .analysis-grid,
  .citation-grid {
    grid-template-columns: 1fr;
  }

  .citation-grid .section-heading {
    margin: 0 auto 2rem;
    text-align: center;
  }

  .citation-grid .section-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .capability-grid,
  .method-steps,
  .transfer-grid {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 0;
  }

  .method-steps article + article {
    padding-left: 1.35rem;
  }

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

  .metric-grid article + article {
    padding-left: 1.35rem;
  }

  .transfer-grid article {
    min-height: 0;
  }

  .transfer-grid p {
    min-height: 0;
  }

  .analysis-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (max-width: 620px) {
  .container,
  .container-wide,
  .nav-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .hero-inner {
    padding-top: 3.8rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero h1 span {
    font-size: 0.71em;
  }

  .hero-dek {
    font-size: 0.96rem;
  }

  .authors {
    display: block;
  }

  .authors a {
    display: block;
    width: fit-content;
    margin: 0.22rem auto 0;
  }

  .authors > span {
    display: none;
  }

  .venue-line {
    align-items: center;
    flex-direction: column;
    gap: 0.55rem;
  }

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

  .resource-button {
    justify-content: center;
  }

  .overview-lead {
    padding: 1.1rem;
  }

  .abstract-block p {
    text-align: left;
  }

  .metric-grid,
  .benchmark-strip {
    grid-template-columns: 1fr;
  }

  .metric-grid article {
    min-height: 0;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.75rem;
  }

  .tab-list button {
    min-width: 0;
    padding: 0.62rem 0.3rem;
    font-size: 0.61rem;
  }

  .result-panel {
    padding: 1rem;
  }

  .evidence-stat {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .citation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .citation-block pre {
    font-size: 0.64rem;
  }

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

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

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