/* Article proportions and typography follow the neighboring KAME blog. */
:root {
  color-scheme: light;
  --ink: #333333;
  --muted: #707070;
  --line: #dddddd;
  --accent: #195e75;
  --accent-light: #e9f2f4;
  --page-gutter: 30px;
  --page-content-max: 1260px;
  --body-font-size: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: white; color: var(--ink); font: var(--body-font-size)/1.55 -apple-system, BlinkMacSystemFont, "Roboto", Helvetica, Arial, sans-serif; }
article { width: calc(100% - var(--page-gutter) * 2); max-width: var(--page-content-max); margin: 0 auto; padding: 0 0 64px; }
h1, h2, h3 { color: #242424; font-family: HoeflerText-Regular, Cochin, Georgia, serif; font-weight: 400; }
h1 { font-size: 40px; line-height: 1.08; margin: 38px 0 24px; letter-spacing: -.02em; }
h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 22px; }
h3 { font-size: 22px; line-height: 1.4; margin: 30px 0 14px; }
p { margin: 0 0 22px; text-align: justify; }
strong { font-weight: 600; }
a { color: #004276; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0b718c; }
/* Temporary color for the paragraph under review. */
.revision, .revision a { color: #b42318; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 20px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 12px; }
.byline { border-top: 1px solid #e5e5e5; padding-top: 14px; display: flex; gap: 22px; align-items: flex-start; font-size: 12px; line-height: 18px; color: var(--muted); }
.authors { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.author { display: flex; flex-direction: column; }
.name { text-transform: uppercase; letter-spacing: .025em; color: #555; }
.paper-date { flex-shrink: 0; display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid #e5e5e5; text-transform: uppercase; }
.paper-links { text-transform: none; }
.author-note { color: var(--muted); font-size: 12px; line-height: 18px; margin: 14px 0 38px; text-align: left; }
figure { margin: 32px auto; }
figure img, figure video { display: block; width: 100%; height: auto; }
figure a { display: block; }
figure figcaption a { display: inline; }
.media-figure { width: 100%; }
.media-figure video { background: #f3f3f3; }
.media-figure.hero { width: 100%; margin-top: 0; margin-bottom: 34px; }
.video-player { position: relative; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(56px, 7vw, 80px); height: clamp(56px, 7vw, 80px); padding: 0; border: 2px solid white; border-radius: 50%; background: rgb(0 0 0 / 65%); color: white; cursor: pointer; box-shadow: 0 2px 12px rgb(0 0 0 / 25%); }
.video-play:hover { background: rgb(0 0 0 / 85%); }
.video-play:focus-visible { outline: 3px solid white; outline-offset: 5px; box-shadow: 0 0 0 9px var(--accent); }
.video-play svg { width: 40%; height: 40%; fill: currentColor; }
.citation { font-size: inherit; }
.concept-figure { margin: 34px 0; }
.policy-intro-figure { margin: 32px 0; }
.concept-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.comparison-side { min-width: 0; display: flex; flex-direction: column; }
.comparison-heading { flex: 1; margin-bottom: 20px; }
.comparison-label { font-size: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.limitation-label { color: #a24f46; }
.comparison-heading h3 { margin: 8px 0 0; font-size: 26px; line-height: 1.35; }
.success-image { flex: none; border-radius: 8px; }
figcaption { padding: 10px 0; color: #777; font-size: var(--body-font-size); line-height: 1.55; text-align: left; }
figcaption strong { color: #444; }
.paper-figure { width: 100%; margin-top: 32px; margin-bottom: 32px; }
.real-world-figure { width: 100%; }
.results-figure { margin: 32px 0 24px; }
.results-panel { border: 1px solid var(--line); padding: 28px 32px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; }
.chart-header h3 { font-size: 27px; margin: 4px 0 0; }
.chart-stat { display: flex; flex-direction: column; text-align: right; flex-shrink: 0; }
.chart-stat output { font-size: 48px; line-height: 1.1; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.chart-stat span { font-size: 12px; color: var(--muted); }
.scaling-chart { display: block; width: 100%; height: auto; margin: 18px 0; overflow: visible; }
.grid-lines { fill: none; stroke: #e2e7e8; stroke-width: 1; }
.axis-labels { fill: #777; font-family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; font-size: 13px; }
.chart-area { fill: var(--accent-light); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.chart-points circle { fill: var(--accent); stroke: white; stroke-width: 2; }
.selected-point { fill: white; stroke: var(--accent); stroke-width: 3; }
.budget-controls { display: flex; align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid #e4e7e8; }
[hidden] { display: none !important; }
#budget-label { font-size: 13px; color: #666; }
.budget-buttons { display: flex; gap: 8px; }
.budget-buttons button { border: 1px solid #cbd5d8; border-radius: 3px; background: white; color: #444; padding: 10px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 44px; }
.budget-buttons button span { font-size: 12px; }
.budget-buttons button:hover { background: #f0f5f6; }
.budget-buttons button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.budget-summary { font-size: var(--body-font-size); color: #666; margin: 0 0 20px; text-align: left; }
.task-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 14px; }
.task-result { display: grid; grid-template-columns: 145px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; }
.task-track { background: #edf0f1; height: 7px; }
.task-fill { height: 100%; background: var(--accent); transition: width .25s ease; }
.task-result output { text-align: right; font-variant-numeric: tabular-nums; }
.data-details, .citation-details { margin: 18px 0 28px; font-size: var(--body-font-size); }
summary { cursor: pointer; padding: 10px 0; color: #555; }
summary:hover { color: var(--accent); }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0 28px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: var(--body-font-size); color: var(--muted); padding: 0 0 12px; }
th, td { text-align: right; padding: 12px 15px; border-bottom: 1px solid #e1e1e1; }
th:first-child { text-align: left; }
thead th { background: #f7f3ee; font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 400; }
#scaling-data { min-width: 770px; }
.search-comparison { font-size: inherit; }
.search-comparison th, .search-comparison td { font-size: inherit; }
.search-comparison thead th { white-space: normal; }
.search-comparison th:last-child, .search-comparison td:last-child { width: 25%; }
.highlight-row { background: #eef5f6; }
.highlight-row th, .highlight-row td { font-weight: 600; }
.compact-table { width: 80%; margin-left: auto; margin-right: auto; }
.experiment-note { font-size: var(--body-font-size); line-height: 1.55; color: var(--muted); }
.experiment-note code { font-size: inherit; }
code { font: .85em/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.article-footer { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 12px; }
.article-footer h2 { font-size: 24px; margin: 20px 0; }
.references { font-size: 14px; line-height: 1.65; padding-left: 22px; }
.references li { padding-left: 6px; margin-bottom: 12px; }
.references li:target { background: var(--accent-light); outline: 6px solid var(--accent-light); }
pre { overflow-x: auto; background: #f7f7f7; padding: 20px; font-size: 13px; line-height: 1.65; }
.figure-credit { color: var(--muted); font-size: var(--body-font-size); text-align: left; }
@media (min-width: 768px) {
  :root { --page-gutter: 40px; }
  h1 { font-size: 46px; margin-top: 48px; }
}
@media (min-width: 1024px) {
  :root { --body-font-size: 20px; }
  h2 { font-size: 30px; margin-top: 48px; }
}
@media (min-width: 1080px) { h1 { font-size: 50px; margin-top: 80px; } }
@media (min-width: 1200px) { h1 { font-size: 56px; margin-top: 100px; } }
@media (max-width: 900px) {
  .concept-comparison { grid-template-columns: 1fr; gap: 32px; }
  .task-results { grid-template-columns: 1fr; }
  .task-result { grid-template-columns: 150px 1fr 40px; }
  .budget-controls { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 600px) {
  :root { --page-gutter: 22px; }
  h1 { font-size: 35px; line-height: 1.12; margin-top: 32px; }
  .desktop-break { display: none; }
  .byline { flex-direction: column; gap: 12px; }
  .authors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .paper-date { border-left: 0; padding-left: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .author-note { margin-bottom: 26px; }
  .comparison-heading h3 { font-size: 24px; }
  .media-figure, .paper-figure, .real-world-figure, .compact-table { width: 100%; }
  p { text-align: left; }
  .results-panel { padding: 18px 14px; }
  .chart-header { align-items: flex-start; gap: 10px; }
  .chart-header h3 { font-size: 21px; max-width: 180px; }
  .chart-stat output { font-size: 36px; }
  .chart-stat span { font-size: 10px; }
  .axis-labels { font-size: 21px; }
  .budget-buttons { width: 100%; gap: 5px; }
  .budget-buttons button { flex: 1; padding: 7px 4px; }
  .budget-buttons button span { display: block; font-size: 10px; }
  .task-result { grid-template-columns: 124px 1fr 34px; gap: 8px; font-size: 11px; }
  th, td { padding: 10px; font-size: 12px; }
  .compact-table th { min-width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .task-fill { transition: none; }
}
@media print {
  article { width: 100%; }
  h1 { margin-top: 0; font-size: 36px; }
  .budget-controls, .skip-link, .video-play { display: none !important; }
  figure, table { break-inside: avoid; }
}
