:root {
  --navy: #2f3a54;
  --navy-deep: #232c41;
  --navy-tint: #e9ecf2;
  --red: #c03b45;
  --red-deep: #a12f38;
  --ink: #1a1f2b;
  --ink-2: #454c5c;
  --ink-3: #6a7180;
  --paper: #ffffff;
  --paper-2: #f6f5f1;
  --rule: #dcdfe5;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; }
.icon--ext { width: 13px; height: 13px; margin-left: 4px; vertical-align: -1px; opacity: .7; }

/* ---------- top chrome */
.flagbar { height: 5px; background: var(--red); }
.utility { background: var(--navy-deep); color: #d9deea; font-size: 13px; }
.utility-inner { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.utility-race { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .01em; }
.utility .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(192, 59, 69, .3); }
.countdown:not(:empty) { background: var(--red); color: #fff; padding: 1px 8px; border-radius: 3px; font-weight: 700; }

.masthead { text-align: center; padding: 26px 0 22px; background: var(--navy); }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: #fff; }
.wordmark:hover { color: #fff; }
.wordmark-stars { display: flex; gap: 10px; color: var(--red); margin-bottom: 6px; }
.wordmark-stars .star { width: 13px; height: 13px; }
.wordmark-name { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 6vw, 58px); line-height: 1; letter-spacing: -.01em; }
.masthead-intro { max-width: 330px; text-wrap: balance; margin: 6px 0 -8px auto; text-align: right; font-family: var(--serif); font-style: italic; font-size: 11.5px; line-height: 1.4; color: #b9c1d1; }
.masthead-intro a { color: #fff; white-space: nowrap; }
.masthead-tag { margin: 10px 0 0; font-family: var(--sans); font-style: italic; font-weight: 450; letter-spacing: .02em; color: #d9deea; font-size: 16px; }
.masthead-q { font-style: normal; }

.sitenav { background: var(--navy); position: sticky; top: 0; z-index: 5; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 3px solid var(--red); }
.sitenav-inner ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sitenav-inner ul::-webkit-scrollbar { display: none; }
.sitenav a { display: block; padding: 12px 14px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; letter-spacing: .01em; }
.sitenav a:hover { background: var(--navy-deep); color: #fff; }
.sitenav a[aria-current="page"] { background: var(--red); color: #fff; }

/* ---------- shared type */
.kicker { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--red); text-decoration: none; margin: 0 0 8px; }
a.kicker:hover { color: var(--red-deep); text-decoration: underline; }
.section-h { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 16px; padding-top: 10px; border-top: 3px solid var(--navy); display: inline-block; }
.meta { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.meta .sep { margin: 0 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: 3px; background: var(--paper); color: var(--navy); font: 600 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-tint); color: var(--navy); }
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--navy-deep); color: #fff; }

/* ---------- home */
.intro { padding: 22px 0 6px; }
.intro p { margin: 0; max-width: 760px; color: var(--ink-2); font-size: 16px; }

.lead { display: grid; grid-template-columns: 0.85fr 1fr; gap: 28px; align-items: center; padding: 26px 0 26px; border-bottom: 1px solid var(--rule); }
.lead-img img, .story-img img { border-radius: 2px; }
.lead-title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -.01em; }
.lead-title a, .story-title a { color: var(--ink); text-decoration: none; }
.lead-title a:hover, .story-title a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; }
.lead-dek { font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--ink-2); margin: 0 0 12px; }
.facts-mini { margin: 0 0 6px; padding: 0; list-style: none; border-left: 3px solid var(--red); }
.facts-mini li { padding: 3px 0 3px 14px; font-size: 14px; }
.lead .btn { margin-top: 12px; }

.river { padding: 30px 0 50px; }
.river-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.river-head .section-h { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.grid { display: grid; gap: 30px 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.story { display: flex; flex-direction: column; }
.story-img { margin-bottom: 12px; }
.story-title { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.22; margin: 0 0 8px; }
.story-dek { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.empty { color: var(--ink-3); }

/* ---------- article */
.article { padding: 30px 0 50px; }
.article-head { max-width: 820px; margin: 0 auto 22px; }
.article-title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 14px; }
.article-dek { font-family: var(--serif); font-size: 21px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.article-fig { max-width: 980px; margin: 0 auto 30px; }
.article-grid { max-width: 720px; margin: 0 auto; }
.facts { background: var(--paper-2); border-top: 4px solid var(--navy); padding: 18px 22px 14px; margin: 0 0 28px; }
.facts-h { margin: 0 0 8px; font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.facts ul { margin: 0; padding-left: 20px; }
.facts li { margin: 6px 0; font-size: 16px; }
.facts li::marker { color: var(--red); }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.65; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--sans); font-size: 20px; margin: 1.6em 0 .5em; color: var(--navy); }
.prose li { margin: .4em 0; }
.their-side { border-left: 4px solid var(--navy); padding: 4px 0 4px 20px; margin: 30px 0; }
.their-side p { font-family: var(--serif); font-size: 18px; margin: 0; color: var(--ink-2); }
.sources { margin: 34px 0; }
.sources ol { margin: 0; padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.sources li { margin: 8px 0; padding-left: 4px; }
.sources-note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }

.share { background: var(--navy-tint); padding: 22px; border-radius: 3px; margin: 36px 0 10px; }
.share .section-h { margin-bottom: 8px; }
.share-intro { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.share-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--navy); }
.share-tabs button { font: 600 14px/1 var(--sans); padding: 10px 14px; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; border-radius: 3px 3px 0 0; }
.share-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.caption { background: var(--paper); padding: 16px; white-space: pre-wrap; font-size: 15px; line-height: 1.55; border: 1px solid var(--rule); border-top: 0; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.related { max-width: var(--wrap); margin: 40px auto 0; padding-top: 10px; border-top: 1px solid var(--rule); }
.related .section-h { margin-top: 20px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 20; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer */
.sitefooter { background: var(--navy-deep); color: #c9d0de; font-size: 14px; border-top: 5px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(40px, 6vw, 96px); padding-top: 34px; padding-bottom: 34px; }
.sitefooter p { margin: 0 0 10px; }
.sitefooter a { color: #fff; }
.footer-name { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff; }
.footer-h { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: #fff; }
.paidfor { display: inline-block; border: 1px solid #c9d0de; padding: 6px 10px; color: #fff; }

/* ---------- responsive */
@media (max-width: 900px) {
  .masthead-intro { margin: 12px auto 0; text-align: center; max-width: 520px; }
    .lead { grid-template-columns: 1fr; gap: 18px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .facts-mini { display: none; }
  .lead-title { font-size: 24px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .utility-date, .race-name { display: none; }
  .utility-inner { justify-content: center; }
  .prose { font-size: 18px; }
  .article-dek { font-size: 19px; }
  .share { padding: 16px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .share-tabs button { padding: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .sitenav, .utility, .share, .flagbar, .related { display: none; } }

.cite { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }

/* ================= Quiet "research publication" theme ================= */
.qhead { background: var(--paper); border-top: 4px solid var(--navy); }
.qhead-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; padding-bottom: 16px; }
.qwordmark { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.qwordmark:hover { color: var(--navy); }
.qhead-desc { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); max-width: 760px; }
.qhead-updated { margin: 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.theme-quiet .sitenav { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.theme-quiet .sitenav a { color: var(--ink-2); font-weight: 600; padding: 11px 12px; }
.theme-quiet .sitenav li:first-child a { padding-left: 0; }
.theme-quiet .sitenav a:hover { background: transparent; color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.theme-quiet .sitenav a[aria-current="page"] { background: transparent; color: var(--navy); box-shadow: inset 0 -3px 0 var(--navy); }
.theme-quiet .section-h { border-top-width: 2px; }
.theme-quiet .lead { padding-top: 28px; }
.theme-quiet .share { background: var(--paper-2); }
.theme-quiet .sitefooter { background: var(--paper-2); color: var(--ink-2); border-top: 1px solid var(--rule); }
.theme-quiet .sitefooter a { color: var(--navy); }
.theme-quiet .footer-name { color: var(--navy); }
.theme-quiet .footer-h { color: var(--ink); }
.theme-quiet .paidfor { color: var(--ink); border-color: var(--rule); }
@media (max-width: 700px) {
  .qhead-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .qwordmark { font-size: 26px; }
}
/* Wide screens: pin the description to the header's right edge, with a
   gutter that grows with the screen so it never hugs the edge. */
@media (min-width: 1200px) {
  .masthead { position: relative; }
  .masthead-intro { position: absolute; right: max(24px, calc((100vw - 1180px) / 4)); bottom: 18px; margin: 0; }
}

@media (min-width: 901px) {
  .sitenav-inner ul { justify-content: space-between; overflow: visible; }
  .sitenav-inner li { flex: 1 1 auto; }
  .sitenav-inner a { text-align: center; }
}

.sitefooter .contact, .sitefooter .copyright { font-style: italic; }

/* data tables inside stories */
.data-table-wrap { margin: 28px 0 32px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--navy-deep); color: #e6e9f0; border-radius: 10px; overflow: hidden; font-family: var(--serif); font-size: 19px; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 16px 20px; font-size: 19px; }
.data-table thead th:first-child { color: transparent; }
.data-table th[scope="row"], .data-table td { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.12); text-align: left; font-weight: 400; vertical-align: top; }
.data-table th[scope="row"] { width: 46%; color: #e6e9f0; }
.data-table th[scope="row"] span { color: #c9d0de; }
.data-table strong { color: #fff; font-weight: 700; }
.data-table td { font-variant-numeric: tabular-nums; }
.data-table-wrap figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
@media (max-width: 600px) {
  .data-table { font-size: 16px; }
  .data-table thead th, .data-table th[scope="row"], .data-table td { padding: 12px 12px; font-size: 16px; }
  .data-table th[scope="row"] span { display: block; font-size: 13px; }
}

/* record page tables */
.rec-wrap { overflow-x: auto; margin: 8px 0 28px; }
.rec-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.rec-table thead th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); border-bottom: 2px solid var(--navy); padding: 8px 12px 8px 0; }
.rec-table tbody th, .rec-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.rec-table tbody th { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; width: 1%; padding-right: 20px; }
.rec-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rec-note { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
sup.ref { font-size: 11px; margin-left: 2px; }
sup.ref a { text-decoration: none; color: var(--red); font-weight: 700; }
.sources li:target { background: var(--navy-tint); }

@media (max-width: 600px) {
  .rec-camp thead { display: none; }
  .rec-camp, .rec-camp tbody, .rec-camp tr, .rec-camp th, .rec-camp td { display: block; width: auto; }
  .rec-camp tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .rec-camp tbody th, .rec-camp td { border: 0; padding: 2px 0; white-space: normal; }
  .rec-camp tbody th { font-weight: 700; color: var(--ink); width: auto; padding-right: 0; }
  .rec-camp td::before { content: attr(data-label) ": "; color: var(--ink-3); font-weight: 400; }
}

/* ---------- before/after comparison */
.compare { margin: 28px 0 34px; font-family: var(--sans); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.compare-head div { color: #fff; padding: 10px 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.compare-head div span { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 12.5px; opacity: .85; }
.compare-head .b { background: var(--red); }
.compare-head .a { background: var(--navy); }
.compare-label { grid-column: 1 / -1; margin: 0; padding: 16px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prose .compare-row p { margin: 0; padding: 10px 14px; font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.prose .compare-row p.compare-label { padding: 16px 0 6px; font-family: var(--sans); font-size: 12px; }
.compare-row .b { background: #fbf1f2; border-left: 3px solid var(--red); }
.compare-row .a { background: var(--navy-tint); border-left: 3px solid var(--navy); }
.compare-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 600px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; gap: 6px; }
  .compare-tag { position: static; width: auto; height: auto; clip: auto; display: block; font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---------- screenshots in stories */
.shot { margin: 26px 0 30px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 2px 10px rgba(26,31,43,.08); }
.shot figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.shot figcaption b { color: var(--red); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; margin-right: 6px; }
.shot-grid-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 600px) { .shot-grid-imgs { grid-template-columns: 1fr; } }
.shot-pair-item { position: relative; margin-bottom: 14px; }
.shot-tag { position: absolute; top: 10px; left: 10px; z-index: 1; color: #fff; padding: 4px 9px; border-radius: 3px; font: 800 11.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.shot-tag--b { background: var(--red); }
.shot-tag--a { background: var(--navy); }
.shot-stack img + img { margin-top: 10px; }
.shot figcaption b.after { color: var(--navy); }

.hub-link { margin-top: 14px; font-family: var(--sans); font-weight: 700; }
