@charset "UTF-8";

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/noto-sans-latin.woff2") format("woff2");
}

/* Theme and base elements */
:root {
  --ink: #333333;
  --muted: #4d5e73;
  --blue: #2095d0;
  --blue-dark: #176b9a;
  --teal: #237b7d;
  --line: #e1e5e9;
  --surface: #f7f8fa;
  --body-size: clamp(22px, 1.25vw, 28px);
  --copy-size: clamp(21px, 1.15vw, 26px);
  --small-size: clamp(19px, 1.05vw, 24px);
  --meta-size: clamp(17px, 1vw, 22px);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Noto Sans", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: var(--body-size);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

button {
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

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

button:not(:disabled) {
  cursor: pointer;
}

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #5da9d4;
  outline-offset: 5px;
}

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

p, h1, h2, h3, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -.015em;
}

h2 {
  font-size: clamp(34px, 2.5vw, 44px);
  font-weight: 650;
}

h3 {
  font-size: 27px;
  font-weight: 650;
}

sub, sup {
  line-height: 0;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(84%, 1200px);
  margin-inline: auto;
}

.container.narrow {
  max-width: 1000px;
}

.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 16px;
  background: #333;
  color: #fff;
  padding: 10px 18px;
}

.skip-link:focus {
  top: 10px;
}

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

/* Header and hero */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #e8eaed;
  background: rgba(255,255,255,.97);
}

.nav {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  margin-right: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.nav-links a {
  white-space: nowrap;
  color: #35495a;
  font-size: 20px;
  font-weight: 600;
  padding-block: 14px;
}

.nav-links a:hover, .nav-links a[aria-current] {
  color: var(--blue);
}

.nav-paper {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
  color: #35495a;
  font-size: 19px;
}

.nav-paper .icon {
  width: 17px;
  height: 17px;
}

.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(125deg,#f4f8fb 0%,#fffdf9 49%,#f0f7f5 100%);
  text-align: center;
}

.hero h1 {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(42px,3.33vw,58px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.title-accent {
  color: #5279c7;
  background: linear-gradient(110deg,#4584d7,#b94b64);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.authors {
  color: var(--ink);
  font-size: 25px;
  margin-top: 28px;
  line-height: 1.5;
  text-wrap: balance;
}

.authors a {
  white-space: nowrap;
}

.authors a:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.authors sup {
  color: #000;
  font-size: .65em;
  margin-left: 2px;
}

.author-separator {
  color: var(--ink);
}

.affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 22px;
  color: #435266;
  font-size: 22px;
  margin-top: 12px;
  line-height: 1.5;
}

.affiliations sup {
  font-size: .65em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 29px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 20px;
  border: 1px solid #17212b1f;
  border-radius: 8px;
  background: #363636;
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 8px 20px #17212b14;
  transition: transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.button:hover {
  color: #fff;
  background: #292929;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px #17212b1f;
}

.hero-stats {
  max-width: 1000px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 23px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 12px 25px #2736430b;
}

.stat > strong {
  color: var(--teal);
  font-size: 47px;
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.stat > strong > span {
  font-size: 27px;
  margin-left: 3px;
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8em;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: #506079;
  margin-top: 7px;
}

.stat-context {
  font-size: var(--meta-size);
  color: #52627a;
  margin-top: 4px;
  line-height: 1.6;
}

/* Shared sections and research figures */
.section {
  padding-block: 50px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  text-wrap: balance;
}

.section-heading > p {
  color: var(--muted);
  font-size: var(--copy-size);
  line-height: 1.7;
  margin-top: 16px;
}

#overview {
  padding-top: 36px;
}

.overview-figure {
  max-width: 1000px;
  margin-inline: auto;
}

.paper-figure {
  margin: 0;
}

.figure-link {
  position: relative;
  display: block;
  background: #fff;
  cursor: zoom-in;
}

.figure-link img {
  width: 100%;
  height: auto;
}

.overview-figure img {
  max-height: 78vh;
  object-fit: contain;
}

.expand-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.96);
  font-size: 17px;
  color: #526277;
}

.expand-hint .icon {
  width: 17px;
  height: 17px;
}

.figure-link:hover .expand-hint {
  color: var(--blue);
}

figcaption {
  font-size: var(--copy-size);
  color: var(--muted);
  line-height: 1.75;
  margin-top: 18px;
  text-align: left;
}

figcaption strong {
  color: #333;
  font-weight: 600;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin-top: 40px;
}

.takeaways article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 25px #2736430b;
}

.takeaway-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #18232d;
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 18px;
}

.takeaways h3 {
  font-size: 25px;
}

.takeaways p {
  margin-top: 10px;
  font-size: var(--copy-size);
  line-height: 1.7;
  color: var(--muted);
}

/* Abstract and method */
.abstract-section {
  padding-block: 48px;
}

.abstract-section h2 {
  text-align: center;
  margin-bottom: 26px;
}

.abstract-copy p {
  font-size: var(--body-size);
  color: #333;
  line-height: 1.8;
}

.abstract-copy p + p, #abstract-more {
  margin-top: 22px;
}

.abstract-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 24px auto 0;
  padding: 8px 16px;
  border: 1px solid #cddfe9;
  border-radius: 7px;
  background: #f4f9fc;
  color: var(--blue-dark);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.abstract-toggle:hover {
  background: #eaf4f9;
  border-color: #a7cadf;
}

.abstract-toggle > span:last-child {
  display: inline-block;
  transform: rotate(180deg);
}

.abstract-toggle[aria-expanded=true] > span:last-child {
  transform: none;
}

.method-full-figure img {
  max-height: 82vh;
  object-fit: contain;
}

.method-implementation {
  margin-top: 27px;
  border-block: 1px solid var(--line);
}

.method-implementation > summary {
  padding: 17px 0;
  font-size: 22px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
}

.method-details {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  padding: 10px 0 24px;
}

.model-tag {
  font-size: 19px;
  font-weight: 600;
  color: var(--teal);
}

.method-details h3 {
  font-size: 25px;
  margin-top: 12px;
}

.method-details p {
  margin-top: 11px;
  font-size: var(--copy-size);
  color: var(--muted);
}

.method-note {
  font-size: var(--small-size);
  color: var(--muted);
  padding-bottom: 20px;
}

/* Interactive prediction examples */
.example-details {
  margin-top: 30px;
  border-block: 1px solid var(--line);
}

.example-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  font-size: 22px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.example-details > summary::-webkit-details-marker {
  display: none;
}

.example-details > summary > span {
  font-size: 28px;
  color: #536174;
}

.example-details[open] > summary > span {
  transform: rotate(45deg);
}

.example-content {
  padding-bottom: 25px;
}

.prediction-explorer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 25px;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  background: #e9edf1;
  border-radius: 8px;
  padding: 5px;
  gap: 4px;
}

.segmented button {
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 19px;
  color: var(--muted);
}

.segmented button[aria-pressed=true] {
  background: #fff;
  color: var(--teal);
  border-color: var(--line);
  box-shadow: 0 1px 4px #1224430b;
}

.explorer-label {
  font-size: 15px;
  color: var(--muted);
}

.explorer-label span {
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.prediction-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  margin-top: 24px;
  padding: 5px 4px 12px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  min-width: 760px;
  gap: 16px;
}

.prediction-grid figure {
  position: relative;
  min-width: 0;
}

.prediction-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
}

.prediction-grid figcaption {
  text-align: center;
  font-size: 17px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.frame-notation {
  display: block;
  font-family: Georgia,serif;
  color: var(--ink);
  font-size: 25px;
  font-style: italic;
  margin-bottom: 10px;
}

.predicted-frame img {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.predicted-frame figcaption, .predicted-frame .frame-notation {
  color: var(--teal);
}

.prediction-badge {
  position: absolute;
  right: 6px;
  top: 7px;
  z-index: 1;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 3px;
}

.explorer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.example-picker {
  display: flex;
  gap: 14px;
  align-items: center;
}

.example-picker > span {
  font-size: 15px;
  color: var(--muted);
}

.example-picker > div {
  display: flex;
  gap: 4px;
}

.example-picker button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.example-picker button[aria-pressed=true] {
  background: #e0efee;
  color: var(--teal);
}

.example-picker button:hover {
  background: #e5e9ed;
}

.lpips-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  color: var(--muted);
}

.lpips-inline strong {
  font-size: 25px;
  color: var(--teal);
  font-weight: 650;
}

.lower-better {
  display: none;
}

.media-note {
  font-size: var(--small-size);
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.8;
}

/* Quantitative results */
.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  background: #fff;
  font-size: 21px;
  white-space: nowrap;
}

caption {
  text-align: left;
  white-space: normal;
  color: var(--muted);
  font-size: var(--small-size);
  line-height: 1.7;
  padding: 0 0 16px;
}

@supports (width: 1cqw) {
  .table-scroll {
    container-type: inline-size;
  }

  caption {
    width: 100cqw;
    position: sticky;
    left: 0;
  }

}

th, td {
  text-align: center;
  padding: 17px 20px;
  border-bottom: 1px solid #e6e8eb;
  font-variant-numeric: tabular-nums;
}

thead th {
  font-size: 20px;
  font-weight: 600;
  color: #3b4857;
  background: #f5f7f9;
  border-block: 1px solid #d5dbe1;
}

th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  min-width: 140px;
  background: #fff;
}

thead th:first-child {
  background: #f5f7f9;
  z-index: 2;
}

tbody th {
  font-weight: 500;
}

.highlight-row > *, .highlight-row th {
  background: #eef7f6;
  color: #226e70;
}

.highlight-row td {
  font-weight: 650;
}

.table-note {
  font-size: var(--small-size);
  color: var(--muted);
  line-height: 1.8;
  margin-top: 23px;
}

/* Adaptation results */
.adaptation-section {
  padding-top: 25px;
}

.adaptation-item + .adaptation-item {
  margin-top: 70px;
}

.adaptation-item figure {
  max-width: 1000px;
  margin-inline: auto;
}

.adaptation-figure {
  margin-inline: auto;
  max-width: 820px;
}

.action-figure {
  max-width: 570px;
}

.figure-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 28px;
  margin-top: 23px;
  font-size: var(--small-size);
  color: var(--muted);
}

.figure-legend b {
  color: var(--ink);
  font-family: Georgia,serif;
  font-style: italic;
  font-weight: 400;
  margin-right: 6px;
  font-size: 23px;
}

.scope-note {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 25px;
  color: var(--muted);
  font-size: var(--small-size);
  line-height: 1.8;
}

.scope-note strong {
  font-weight: 600;
  color: #333;
}

/* Citation and footer */
.citation-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.citation-heading p {
  color: var(--muted);
  font-size: var(--small-size);
  margin-top: 17px;
}

.text-link {
  color: var(--blue);
  font-size: 19px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.text-link .icon {
  width: 17px;
  height: 17px;
}

.citation-box {
  border-radius: 5px;
  background: #f5f5f5;
  margin-top: 24px;
  overflow: hidden;
}

.code-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 25px;
  font-size: 18px;
  color: var(--muted);
}

.code-toolbar > span {
  font-family: monospace;
}

.code-toolbar button {
  background: #fff;
  border: 1px solid #d8dfe5;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  color: #465569;
  padding: 8px 14px;
}

.code-toolbar button:hover {
  background: #edf1f5;
}

.code-toolbar .icon {
  width: 19px;
  height: 19px;
}

pre {
  margin: 0;
  padding: 24px 27px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 20px;
  line-height: 1.8;
  color: #354252;
  tab-size: 2;
}

code {
  font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

.copy-status {
  color: var(--teal);
  font-size: var(--small-size);
  min-height: 25px;
  margin-top: 8px;
  display: block;
}

.footer {
  padding: 36px 0;
  background: #f5f5f5;
  text-align: center;
  font-size: 18px;
  color: #526277;
}

.footer-credit {
  margin-top: 10px;
}

.footer-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Figure dialog */
dialog {
  width: min(1500px,calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 22px 24px 23px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 90px #0003;
}

dialog::backdrop {
  background: #111b2bd9;
}

.dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 15px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #eef2f7;
  color: #3e4b5d;
}

.dialog-image-wrap {
  overflow: auto;
  max-height: calc(100dvh - 280px);
}

.dialog-image-wrap img {
  width: 100%;
  max-height: calc(100dvh - 280px);
  object-fit: contain;
}

#dialog-caption {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
  text-align: center;
}

#dialog-original {
  display: block;
  width: fit-content;
  font-size: 19px;
  margin: 16px auto 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive layouts */
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 48px);
  }

  .nav {
    gap: 18px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 18px;
  }

  .stat {
    padding-inline: 15px;
  }

  .hero-stats {
    gap: 13px;
  }

  .method-details {
    gap: 22px;
  }

}

@media (max-width: 800px) {
  .takeaways {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .method-details {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .segmented button {
    font-size: 18px;
  }

}

@media (max-width: 720px) {
  :root {
    --body-size: 20px;
    --copy-size: 20px;
    --small-size: 18px;
    --meta-size: 17px;
  }

  .container {
    width: calc(100% - 40px);
  }

  html {
    scroll-padding-top: 120px;
  }

  .nav {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand paper" "links links";
    gap: 0 15px;
    padding-top: 8px;
  }

  .nav .brand {
    grid-area: brand;
  }

  .nav-paper {
    grid-area: paper;
    font-size: 18px;
  }

  .nav-links {
    grid-area: links;
    overflow-x: auto;
    gap: 22px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    font-size: 18px;
    padding-block: 10px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding: 34px 0 32px;
  }

  .hero h1 {
    font-size: 35px;
    line-height: 1.2;
  }

  .authors {
    font-size: 23px;
    margin-top: 23px;
  }

  .affiliations {
    font-size: 20px;
    gap: 9px 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2,max-content);
    justify-content: center;
    margin-top: 23px;
    gap: 9px;
  }

  .button {
    min-height: 44px;
    font-size: 18px;
    padding: 8px 14px;
  }

  .button .icon {
    width: 18px;
    height: 18px;
  }

  .hero-stats {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .stat {
    padding: 19px 18px;
  }

  .stat > strong {
    font-size: 42px;
  }

  .stat > strong > span {
    font-size: 24px;
  }

  .stat-label {
    min-height: 0;
    font-size: 21px;
  }

  .stat-context {
    font-size: 17px;
  }

  .section {
    padding-block: 38px;
  }

  #overview {
    padding-top: 28px;
  }

  .takeaways {
    margin-top: 30px;
  }

  h2 {
    font-size: 33px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading > p {
    margin-top: 15px;
  }

  .desktop-break {
    display: none;
  }

  .takeaways h3 {
    font-size: 25px;
  }

  .takeaways p {
    line-height: 1.7;
  }

  .expand-hint {
    padding: 7px;
    font-size: 17px;
  }

  .expand-hint > span {
    display: none;
  }

  .overview-figure img, .method-full-figure img {
    max-height: none;
  }

  figcaption {
    font-size: 20px;
  }

  .abstract-section {
    padding-block: 38px;
  }

  .abstract-section h2 {
    margin-bottom: 23px;
  }

  .method-implementation > summary {
    font-size: 21px;
  }

  .video-results-figure .figure-link {
    overflow-x: auto;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .video-results-figure img {
    min-width: 760px;
  }

  .video-results-figure .expand-hint {
    position: sticky;
    left: calc(100% - 36px);
    bottom: 8px;
    width: fit-content;
    margin-top: -36px;
    display: flex;
  }

  .example-details > summary {
    font-size: 21px;
  }

  .prediction-explorer {
    padding: 17px;
  }

  .explorer-toolbar {
    gap: 16px;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    font-size: 16px;
    padding: 9px;
  }

  .segmented button:first-child {
    flex: 2;
  }

  .segmented button:last-child {
    flex: 1;
  }

  .explorer-label {
    font-size: 14px;
  }

  .prediction-scroll {
    margin-top: 18px;
  }

  .example-picker {
    flex-wrap: wrap;
    gap: 8px;
  }

  .example-picker > span {
    font-size: 14px;
  }

  .example-picker > div {
    gap: 4px;
  }

  .example-picker button {
    width: 36px;
    height: 40px;
    font-size: 16px;
  }

  .lpips-inline {
    font-size: 16px;
  }

  .media-note {
    font-size: 18px;
  }

  table {
    font-size: 19px;
  }

  caption {
    font-size: 18px;
  }

  th, td {
    padding: 15px 18px;
  }

  thead th {
    font-size: 18px;
  }

  .adaptation-item + .adaptation-item {
    margin-top: 50px;
  }

  .figure-legend {
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .scope-note {
    margin-top: 32px;
  }

  .citation-heading {
    align-items: flex-start;
  }

  .text-link {
    font-size: 18px;
  }

  .code-toolbar {
    padding: 13px 17px;
    font-size: 16px;
    gap: 10px;
  }

  .code-toolbar button {
    font-size: 16px;
    padding: 7px 10px;
  }

  pre {
    font-size: 18px;
    padding: 20px;
  }

  .footer {
    font-size: 17px;
  }

  dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px 14px 20px;
  }

  .dialog-toolbar {
    font-size: 12px;
  }

  #dialog-caption {
    font-size: 19px;
    text-align: left;
  }

}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 32px;
  }

  .segmented button {
    font-size: 14px;
  }

  .code-toolbar {
    padding-inline: 12px;
  }

  .code-toolbar button {
    font-size: 14px;
    gap: 6px;
  }

}

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

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

}
