:root {
  --ink: #2D344A;
  --muted: #6E7488;
  --line: #A5AEC0;
  --paper: #FFFFFF;
  --wash: #F2F4F9;
  --grid: #E6E9F1;
  --teal: #2A8796;
  --teal-light: #EAF5F6;
  --blue: #3B6DB3;
  --blue-light: #EDF2FA;
  --purple: #5B55A8;
  --purple-light: #F2F1FA;
  --sink-light: #F6D9E0;
  --sink: #C2185B;
  --heading: "Chalkboard SE", "Trebuchet MS", sans-serif;
}
body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--heading); }
.title, .subtitle, strong { color: var(--ink); }
.container { max-width: 1120px !important; }
.container.prose { max-width: 800px !important; }
.section { padding: 4.6rem 1.5rem; }
.section .title { font-size: clamp(1.85rem, 3.4vw, 2.75rem); margin: 0 0 1.3rem; letter-spacing: -.025em; }
.publication-header { border-top: 5px solid var(--ink); }
.publication-header .hero-body { padding: clamp(2.65rem, 6vw, 5.1rem) 1.5rem 2rem; }
.publication-title.title { margin: 0 auto; max-width: 53rem; }
.publication-title span { display: block; }
.publication-title span:first-child {
  font-size: clamp(2.7rem, 6.2vw, 5.55rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.publication-title span:last-child {
  max-width: 43rem;
  margin: .6rem auto 0;
  font-size: clamp(1.38rem, 3.2vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.publication-subtitle {
  max-width: 44rem;
  margin: 1.35rem auto 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}
.publication-authors { max-width: 48rem; margin: 1.4rem auto .38rem; font-weight: 600; }
.author-block { white-space: nowrap; }
.publication-authors sup, .publication-affiliations sup { margin-left: .1em; }
.publication-affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem 1rem;
  justify-content: center;
  max-width: 45rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: .87rem;
}
.publication-links.buttons { margin: 1.4rem 0 0; gap: .45rem; }
.publication-links.buttons .button {
  margin: 0;
  border-color: var(--line);
  color: var(--ink);
  min-height: 2.6rem;
  font-size: .93rem;
  font-weight: 600;
}
.publication-links .button[aria-disabled="true"] { background: var(--wash); cursor: default; }
.publication-links.buttons .browser-link { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.publication-links.buttons .browser-link:hover { background: var(--blue); border-color: var(--blue); }
.teaser .hero-body { padding: 0 1.5rem 3.1rem; }
.paper-figure { max-width: 870px; margin: auto; }
.paper-figure img { display: block; width: 100%; height: auto; }
figcaption { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.paper-figure figcaption { padding-top: .85rem; border-top: 1px solid var(--grid); }
.figure-zoom { display: block; cursor: zoom-in; }
.figure-links { max-width: 870px; margin: .55rem auto 0; font-size: .9rem; color: var(--muted); }
.abstract-section { border-top: 1px solid var(--grid); }
.abstract-section p, .takeaway-section li { font-size: 1.06rem; line-height: 1.75; }
.findings-section { padding-top: .6rem; padding-bottom: 1.5rem; }
.models-section { padding-top: 2.6rem; }
.findings-section .container { max-width: 1120px !important; }
.finding {
  --accent: var(--teal);
  --tint: var(--teal-light);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 2.5rem;
  background: var(--tint);
  border-radius: 16px;
  border: 1px solid var(--grid);
  border-left: 4px solid var(--accent);
  padding: clamp(1.2rem, 4vw, 2.9rem);
  margin-top: 1rem;
}
.finding-flip { --accent: var(--blue); --tint: var(--blue-light); }
.finding-aging { --accent: var(--purple); --tint: var(--purple-light); }
.finding h3 { font-size: clamp(1.45rem, 2.9vw, 2.25rem); font-weight: 700; line-height: 1.15; margin-bottom: .8rem; }
.finding p { font-size: 1.03rem; line-height: 1.7; }
.finding-media { width: 100%; }
.finding-media img, .finding-media video {
  display: block;
  width: 100%;
  height: auto;
}
.finding-media[data-animation] { padding: 4px; }
.finding-media[data-animation] > img,
.finding-media[data-animation] > video {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--grid);
}
.section.browser-section { background: var(--wash); padding-top: 1rem; }
.section-heading .title { margin-bottom: .4rem; }
.section-heading p { color: var(--muted); }
.browser-status { padding: 1rem 0; }
.explorer {
  display: grid;
  grid-template-columns: minmax(317px, .72fr) minmax(0, 1.28fr);
  gap: .65rem;
  margin-top: .8rem;
}
.browser-panel {
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: 16px;
  padding: .85rem 1rem;
  min-width: 0;
}
.browser-panel h3 { font-size: 1.39rem; font-weight: 700; line-height: 1.2; }
.selector-panel { display: flex; flex-direction: column; }
.selector-metric { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; margin-top: .55rem; }
.selector-label, .head-inputs label, .shared-controls label { font-size: .875rem; font-weight: 600; }
.browser-panel .select select, .browser-panel .input {
  color: var(--ink);
  border-radius: 8px;
  border-color: var(--line);
  box-shadow: none;
  font: inherit;
  height: 2rem;
  padding-block: 0;
}
.browser-panel .select:not(.is-multiple):not(.is-loading) { height: auto; }
.browser-panel .select:not(.is-multiple):not(.is-loading)::after { border-color: var(--blue); }
.head-inputs { display: flex; gap: .75rem; margin: .5rem 0 .65rem; }
.head-inputs label { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .45rem; }
.head-inputs .input { min-width: 0; width: 100%; }
.head-grid { display: grid; flex: 1; grid-template-rows: auto repeat(32, 1fr); gap: 2px; }
.head-grid-row {
  display: grid;
  grid-template-columns: 1.1rem repeat(16, minmax(0, 1fr));
  gap: 2px;
  align-items: center;
}
.head-grid .grid-axis { color: var(--muted); font-size: .75rem; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.head-cell {
  height: 100%;
  aspect-ratio: 1.65;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: var(--grid);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  touch-action: manipulation;
}
.head-cell:hover { outline: 1px solid var(--ink); outline-offset: -1px; }
.head-cell[aria-selected="true"] { border: 2px solid var(--ink); box-shadow: inset 0 0 0 1px var(--paper); }
.selector-legend, .heatmap-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.selector-legend { margin: .75rem 0 .3rem; }
.legend-swatches { display: inline-flex; gap: 1px; }
.legend-swatches i, .legend-unavailable i { width: .7rem; height: .7rem; display: inline-block; border-radius: 2px; }
.zero-key { display: inline-flex; align-items: center; gap: .25rem; }
.zero-key i { width: .7rem; height: .7rem; display: inline-block; border-radius: 2px; background: var(--grid); }
.legend-unavailable { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; }
.legend-unavailable i { background: var(--grid); }
.selector-panel .chart-note { min-height: 2lh; }
.selection-value { margin-top: .4rem; font-size: .87rem; font-weight: 600; }
.browser-views { display: grid; gap: .65rem; }
.shared-controls { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; padding-block: .6rem; }
.shared-controls label { display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
.step-control output { display: inline-block; min-width: 2ch; margin-left: .25rem; color: var(--sink); font-variant-numeric: tabular-nums; }
.step-control input { display: block; min-width: 0; width: 100%; height: 2rem; accent-color: var(--sink); }
.panel-heading-row { display: flex; align-items: center; justify-content: space-between; gap: .35rem .75rem; flex-wrap: wrap; }
.chart-note, .dataset-note { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.flip-unit { margin-left: auto; }
.flip-provenance { margin: .3rem 0 .2rem; }
.dataset-toggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--wash); border-radius: 8px; }
.dataset-toggle button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .3rem .48rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}
.dataset-toggle button[aria-pressed="true"] { border-color: var(--grid); background: var(--paper); color: var(--blue); }
.census-charts { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1rem; margin-top: .55rem; }
.bar-caption { min-height: calc(2lh + 1px); }
.bar-plot {
  --bar-height: 168px;
  --bar-axis-height: 2.75rem;
  display: grid;
  grid-template-rows: calc(var(--bar-height) + var(--bar-axis-height)) minmax(1.2rem, auto);
  gap: .15rem;
  margin-top: .6rem;
}
.bar-chart { grid-area: 1 / 1; position: relative; padding-left: 2.7rem; font-variant-numeric: tabular-nums; }
.bar-plot:has(.bar-empty) .bar-detail {
  grid-area: 1 / 1;
  place-self: center;
  position: relative;
  margin: 0 .4rem var(--bar-axis-height) 3.1rem;
  padding: .12rem .35rem;
  background: var(--paper);
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}
.bar-guides {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--bar-height);
}
.bar-guide { display: flex; gap: .3rem; align-items: center; height: 0; color: var(--muted); font-size: .75rem; text-align: right; }
.bar-guide span { width: 2.35rem; }
.bar-guide::after { content: ""; flex: 1; border-top: 1px solid var(--grid); }
.bar-columns { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; position: relative; }
.bar-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.bar-column:disabled { cursor: default; color: var(--muted); }
.bar-track { width: 100%; display: flex; align-items: end; justify-content: center; height: var(--bar-height); }
.bar-mark { width: 69%; background: var(--sink); border-radius: 3px 3px 0 0; }
.bar-column:disabled .bar-track { background: var(--wash); }
.bar-empty .bar-column:disabled .bar-track { background: transparent; }
.bar-column.is-current:not(:disabled) .bar-track { background: color-mix(in srgb, var(--sink-light) 32%, transparent); }
.bar-grid-size {
  display: block;
  align-self: center;
  padding-top: .23rem;
  font-size: .75rem;
  line-height: 1.25;
  white-space: nowrap;
}
.heat-sizes .bar-grid-size { justify-self: center; }
.bar-detail { grid-row: 2; font-size: .81rem; line-height: 1.45; color: var(--ink); }
.heatmap-layout { min-width: 0; border-left: 1px solid var(--grid); padding-left: .85rem; }
.heatmap-copy { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .65rem; }
.heatmap-copy .chart-note { grid-row: 2; grid-column: 1 / -1; }
.heatmap-legend { grid-row: 1; grid-column: 2; }
.heatmap-copy h4, .flip-columns h4 { font-size: .88rem; line-height: 1.35; font-weight: 700; }
#heatmap { margin-top: .25rem; --axis-space: 2.7rem; }
.heat-rows { position: relative; padding-left: var(--axis-space); }
.heat-row, .heat-sizes {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 2px;
}
.heat-row {
  width: 100%; height: 1rem; position: relative;
  padding: 1px 0; border: 0; background: transparent;
  color: var(--muted); font: inherit; cursor: pointer;
}
.heat-row:hover { background: var(--wash); }
.heat-row[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: -1px; z-index: 1; border-radius: 3px; color: var(--ink); }
.heat-row[aria-pressed="true"] .heat-step { font-weight: 700; }
.heat-row svg { display: block; grid-column: 1 / -1; width: 100%; height: 100%; }
.heat-cell { stroke: white; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.heat-step { position: absolute; right: calc(100% + .4rem); align-self: center; font-size: .75rem; }
.heat-y-title, .heat-x-title, .bar-x-title { color: var(--muted); font-size: .78rem; }
.heat-y-title { position: absolute; inset: 0 auto 0 0; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.heat-sizes, .heat-x-title { margin-left: var(--axis-space); }
.heat-x-title, .bar-x-title { text-align: center; line-height: 1.4; }
.flip-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; text-align: center; margin-top: .35rem; }
.flip-columns > div { padding: .35rem .45rem .45rem; background: var(--wash); border-radius: 10px; }
.cell-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 112px)); justify-content: center; gap: .4rem; }
.cell-map-slot { min-width: 0; }
.cell-map-label { display: block; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.cell-map, .cell-map-placeholder { aspect-ratio: 1; }
.cell-map {
  display: grid;
  grid-template: repeat(var(--side), minmax(0, 1fr)) / repeat(var(--side), minmax(0, 1fr));
  gap: 2px;
}
.cell-map-placeholder {
  display: grid;
  place-items: center;
  padding: .15rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.3;
}
.cell-map > * { display: grid; place-items: center; font-variant-numeric: tabular-nums; border-radius: 3px; }
.cell-map[data-size="2"] span { font-size: .76rem; }
.cell-map[data-size="2"] .strongest-sink { outline: 2px solid var(--sink); outline-offset: -2px; position: relative; z-index: 1; }
.cell-map button { border: 0; padding: 0; cursor: pointer; }
.cell-map button:hover, .cell-map button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.flip-legend, .flip-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(1.3rem, auto);
  align-items: baseline;
  column-gap: .45rem;
  margin-top: .25rem;
}
.flip-legend .chart-note { font-size: .75rem; }
.flip-scale, .flip-feedback .chart-note { grid-column: 1; grid-row: 1; }
.strongest-legend, .flip-result { grid-column: 2; grid-row: 1; }
.flip-result { font-size: .89rem; font-weight: 700; line-height: 1.45; }
.browser-notes { margin-top: 1rem; font-size: .88rem; line-height: 1.55; color: var(--muted); max-width: 52rem; }
.browser-notes p + p { margin-top: .25rem; }
.takeaway-section ul { list-style: none; }
.takeaway-section li { border-left: 3px solid var(--line); padding-left: .95rem; }
.takeaway-section li + li { margin-top: .9rem; }
.bibtex-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
#BibTeX { padding-top: 0; }
#BibTeX pre { color: var(--ink); background: var(--wash); border: 1px solid var(--grid); border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.55; }
.footer { background: var(--wash); color: var(--muted); padding: 2rem 1.5rem; font-size: .88rem; }
.footer a { text-decoration: underline; text-underline-offset: 2px; }
.section-lead { max-width: 50rem; margin: -.4rem 0 1.4rem; color: var(--muted); font-size: 1.03rem; }
.background-section { border-top: 1px solid var(--grid); }
.background-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.2rem; align-items: center; }
.background-figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.background-figure figcaption { margin-top: .4rem; }
.background-steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.background-steps li { counter-increment: step; position: relative; padding-left: 2.6rem; font-size: 1.02rem; line-height: 1.65; }
.background-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 1.8rem; height: 1.8rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  font-size: .88rem; font-weight: 700;
}
.table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--grid); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.45; }
.table-wrap caption { caption-side: top; text-align: left; padding: .75rem 1rem .25rem; font-weight: 700; color: var(--ink); }
.table-wrap th, .table-wrap td { padding: .6rem 1rem; border-top: 1px solid var(--grid); text-align: left; vertical-align: top; }
.table-wrap thead th { color: var(--muted); font-size: .82rem; font-weight: 600; background: var(--wash); }
.table-wrap tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.compare-table td:last-child { color: var(--ink); font-weight: 600; }
.compare-table td:nth-child(2) { color: var(--muted); }
.lens-section { background: var(--wash); }
.lens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lens-card { background: var(--paper); border: 1px solid var(--grid); border-top: 4px solid var(--accent); border-radius: 16px; padding: 1.2rem 1.3rem; }
.lens-position { --accent: var(--blue); }
.lens-time { --accent: var(--purple); }
.lens-content { --accent: var(--sink); }
.lens-question { color: var(--muted); font-size: .9rem; font-style: italic; margin-bottom: .45rem; }
.lens-card h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; margin-bottom: .5rem; }
.lens-card p:last-child { font-size: .97rem; line-height: 1.65; }
.lens-yardstick { max-width: 52rem; margin-top: 1.2rem; font-size: .97rem; line-height: 1.65; }
.finding-label { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .4rem; }
.finding .finding-plain { font-size: 1.06rem; }
.finding-details { margin-top: .9rem; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); padding-top: .6rem; }
.finding-details summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: .93rem; }
.finding-details p { margin-top: .55rem; font-size: .95rem; line-height: 1.65; }
.finding-media figcaption { margin-top: .5rem; font-size: .86rem; }
.finding-extras { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.finding-extra { max-width: 860px; width: 100%; justify-self: center; }
.finding-extra h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.finding-extra img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--grid); }
.finding-extra figcaption { margin-top: .5rem; font-size: .86rem; }
.models-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.models-table thead th { min-width: 9rem; }
.models-table .model-note { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); }
.models-table .this-paper { background: var(--teal-light); }
.table-notes { margin-top: .6rem; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.models-summary { margin-top: 1.4rem; display: grid; gap: .7rem; max-width: 52rem; }
.models-summary li { border-left: 3px solid var(--line); padding-left: .95rem; font-size: 1rem; line-height: 1.65; }
.browser-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; margin-top: .65rem; }
.browser-guide > div { background: var(--paper); border: 1px solid var(--grid); border-radius: 16px; padding: .9rem 1.1rem; }
.browser-guide h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.browser-guide ul { display: grid; gap: .6rem; }
.browser-guide li { font-size: .9rem; line-height: 1.55; }
.guide-presets li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.guide-presets li span { color: var(--muted); }
.preset-button {
  appearance: none; width: 100%; padding: .35rem .6rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: .86rem; font-weight: 700; text-align: left; cursor: pointer;
}
.preset-button:hover, .preset-button[aria-pressed="true"] { border-color: var(--sink); color: var(--sink); }

@media (max-width: 960px) {
  .background-layout, .browser-guide { grid-template-columns: minmax(0, 1fr); }
  .background-figure { max-width: 520px; }
  .lens-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .finding { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .guide-presets li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .preset-button { width: auto; }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .selector-panel { width: min(100%, 470px); }
}
@media (min-width: 1051px) {
  /* Keep the toolbar and both panels in view when following the section link. */
  .section.browser-section { scroll-margin-top: clamp(-6.75rem, calc(100vh - 56rem), 0px); }
}
@media (max-width: 1050px) {
  .census-charts { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .bar-plot { --bar-height: 64px; }
  .heatmap-layout { border-left: 0; border-top: 1px solid var(--grid); padding: .4rem 0 0; }
  .flip-panel .panel-heading-row { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; }
  .flip-unit { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
  .flip-legend, .flip-feedback { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(1.3rem, auto)); }
  .strongest-legend, .flip-result { grid-column: 1; grid-row: 2; }
}
@media (max-width: 640px) {
  .section { padding: 3rem 1.1rem; }
  .publication-header .hero-body { padding-inline: 1.1rem; }
  .teaser .hero-body { padding: 0 1.1rem 2rem; }
  .publication-authors { font-size: .93rem; }
  .publication-affiliations { font-size: .79rem; }
  .publication-links.buttons .button { padding-inline: .8em; }
  .finding { padding-inline: .9rem; margin-top: .8rem; }
  .finding p { font-size: .98rem; }
  .finding-media { width: auto; margin-inline: -.9rem; }
  .findings-section { padding-top: .4rem; padding-inline: .75rem; }
  .browser-section { padding-inline: .7rem; }
  .section-heading, .browser-notes { padding-inline: .4rem; }
  .shared-controls { gap: .65rem; grid-template-columns: minmax(0, 1fr) 8.6rem; }
  .shared-controls label { display: grid; grid-template-rows: auto 2rem; gap: .1rem; }
  .selector-panel { padding-inline: .65rem; }
  .head-grid-row { grid-template-columns: 1rem repeat(16, minmax(0, 1fr)); }
}
