/* Website styling adapted from the SPAR-MPC website; see LICENSE. */
:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #4a4a4a;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #363636;
  --muted: #666;
  --blue: #29668d;
  --line: #e4e4e4;
  --mono: 'IBM Plex Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-width: 320px; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: #29668d; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #18445f; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:where(button, a, [tabindex]):focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { background: #f5e5c4; color: #292929; }
h1, h2, h3, p { margin: 0; }
h2 { color: var(--ink); font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.6px; text-align: center; }
h3 { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.4; }
strong { font-weight: 600; color: var(--ink); }
.reading-width { width: min(800px, calc(100% - 48px)); margin-inline: auto; }
.content-width { width: min(900px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.hero { padding: 56px 24px 30px; text-align: center; }
h1 { max-width: 1140px; margin: 0 auto 24px; color: var(--ink); font-size: 44px; font-weight: 600; line-height: 1.15; letter-spacing: -1.5px; }
.authors { max-width: 1180px; margin-inline: auto; font-size: 22px; line-height: 1.65; }
.authors span { display: inline-block; }
.authors sup, .affiliation sup { color: var(--muted); font-size: .65em; margin-left: 2px; }
.affiliation { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; font-size: 14px; margin-top: 12px; line-height: 1.6; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 21px; }
.hero-links a, .hero-links button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; color: #fff; background: #363636; font-size: 15px; line-height: 1.4; text-decoration: none; }
.hero-links a:hover { background: #202020; color: #fff; }
.hero-links button:disabled { background: #707070; opacity: 1; cursor: default; }
.hero-links svg { width: 16px; height: 16px; }
.overview { width: min(1100px, calc(100% - 48px)); margin-block: 8px 32px; }
.overview-panels { display: grid; grid-template-columns: 3.7fr 7.8fr 7.2fr; gap: 28px; }
.overview-step { min-width: 0; text-align: center; }
.overview-step h2 { margin-bottom: 16px; font-size: 19px; line-height: 1.4; letter-spacing: -.3px; }
.overview-step h2 span { color: var(--muted); font-size: 14px; font-weight: 400; margin-right: 5px; }
.overview-art { position: relative; }
.overview-art a, .overview-art img { display: block; width: 100%; }
.overview-step:not(:last-child) .overview-art::after { content: '→'; position: absolute; top: 50%; right: -24px; width: 20px; color: var(--muted); font-size: 22px; transform: translateY(-50%); }
.overview-step > p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.overview figcaption { max-width: 950px; margin: 24px auto 0; }
.overview-note { display: block; font-size: 13px; }
.photo-credits { display: block; margin-top: 8px; font-size: 11px; line-height: 1.7; }
.photo-credits a { color: inherit; }

.section { padding-block: 42px; }
.section-intro { margin-top: 20px; font-size: 16px; line-height: 1.7; }
.abstract-section { padding-block: 36px; }
.abstract-section, .method-section, .validation-section, .citation-section { background: #f5f5f5; }
.abstract-section .section-intro { margin-top: 18px; }
.paper-figure { margin: 30px 0 0; }
.paper-figure a { display: block; }
.paper-figure img { width: 100%; }
figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center; }

.results-figure { width: min(640px, 100%); margin-inline: auto; }
.results-section .paper-figure img { mix-blend-mode: multiply; }
.results-tabs { display: flex; justify-content: center; width: min(440px, 100%); margin: 24px auto 0; border-bottom: 1px solid #d5d5d5; }
.results-tabs button { flex: 1; padding: 12px 18px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); font-size: 16px; line-height: 1.4; }
.results-tabs button:hover { color: var(--ink); background: #ececec; }
.results-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.results-panel { padding-top: 4px; }
.results-panel > h3 { font-size: 22px; margin-top: 28px; text-align: center; }
.has-tabs .results-panel > h3 { display: none; }
.results-panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }
.source-note { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.validation-section { border-bottom: 1px solid var(--line); }
.validation-status { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pending-value { font-family: var(--mono); }
.table-scroll { margin-top: 24px; overflow-x: auto; }
.validation-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.55; }
.validation-table caption { text-align: left; color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.validation-table th, .validation-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.validation-table thead th { color: var(--muted); font-size: 12px; font-weight: 500; border-top: 1px solid var(--line); background: #fafafa; }
.validation-table tbody th { font-weight: 400; }
.validation-table td { font-family: var(--mono); color: var(--muted); }
.validation-table td, .validation-table th:not(:first-child) { text-align: center; }
.validation-table .proposed-policy th, .validation-table .proposed-policy td { font-weight: 600; color: var(--ink); }
.results-table { font-variant-numeric: tabular-nums; }
.cohort-table { text-align: center; }

.software-section { padding-block: 42px; }
.software-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px 27px; margin-top: 20px; font-size: 15px; }
.text-link { font-weight: 600; }
.console-launch-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 18px; border: 1px solid #555; border-radius: 3px; color: #fff; text-decoration: none; background: #363636; font-weight: 500; }
.console-launch-link:hover { background: #202020; color: #fff; }
.console-note { max-width: 620px; margin: 15px auto 0; font-size: 13px; line-height: 1.65; text-align: center; color: var(--muted); }
.brahe-credit { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.citation-section { padding-top: 36px; padding-bottom: 12px; }
.citation-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.citation-heading h2 { font-size: 26px; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 0; background: transparent; padding: 8px 0 8px 12px; color: var(--muted); font-size: 13px; }
.copy-button:hover { color: var(--ink); }
.copy-button svg { width: 14px; height: 14px; }
.citation-note { font-size: 12px; color: var(--muted); margin-top: 9px; }
.citation-code { background: #f5f5f5; padding: 18px 22px; margin: 16px 0 0; overflow-x: auto; font: 12px/1.7 var(--mono); color: #444; tab-size: 2; }
.copy-status { display: block; min-height: 27px; padding-top: 7px; font-size: 12px; color: var(--blue); }
.footer-band { background: #fff; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 25px; font-size: 12px; color: var(--muted); }
.site-footer a { color: #555; }

@media (min-width: 601px) {
  .abstract-section .section-intro { text-align: justify; }
}
@media (max-width: 1000px) {
  h1 { max-width: 810px; font-size: 38px; letter-spacing: -1px; }
  .desktop-break { display: none; }
}
@media (max-width: 760px) {
  .overview { max-width: 460px; }
  .overview-panels { grid-template-columns: 1fr; gap: 28px; }
  .overview-step h2 { margin-bottom: 12px; }
  .overview-launch .overview-art { width: min(180px, 60%); margin-inline: auto; }
  .overview-step:not(:last-child) .overview-art::after { content: none; }
  .overview-step > p { max-width: 360px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .reading-width, .content-width { width: calc(100% - 36px); }
  .hero { padding: 32px 18px 23px; }
  h1 { font-size: 30px; margin-bottom: 20px; line-height: 1.2; letter-spacing: -.7px; }
  .authors { max-width: 400px; margin-inline: auto; font-size: 18px; }
  .affiliation { font-size: 14px; }
  .hero-links { margin-top: 19px; gap: 7px; }
  .hero-links a, .hero-links button { min-height: 40px; font-size: 14px; padding: 8px 13px; }
  .overview { margin-bottom: 26px; }
  .validation-table { table-layout: fixed; font-size: 12px; }
  .validation-table thead th { font-size: 11px; }
  .validation-table th, .validation-table td { padding: 10px 8px; }
  h2 { font-size: 26px; }
  .section, .abstract-section { padding-block: 30px; }
  .section-intro { font-size: 15px; margin-top: 18px; }
  .paper-figure { margin-top: 25px; }
  figcaption { font-size: 13px; }
  .results-table th:first-child { width: 34%; }
  .results-tabs { margin-top: 20px; }
  .results-tabs button { padding: 12px 10px; font-size: 15px; }
  .citation-heading h2 { font-size: 24px; }
  .citation-code { font-size: 11px; padding: 16px; }
  .citation-section { padding-bottom: 0; }
  .site-footer { justify-content: center; text-align: center; font-size: 11px; gap: 10px 18px; }
}
@media (max-width: 370px) {
  h1 { font-size: 27px; }
  .hero-links a, .hero-links button { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
