@font-face {
  font-family: "Qinghe Runner Serif";
  src: url("/en/experience/swkmls/assets/runner-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --heading: #303636;
  --copy: #4a4a4a;
  --muted: #6e6e6e;
  --accent: hsl(180 28% 39.2%);
  --line: #dce6e6;
  --dot-primary: var(--accent);
  --dot-secondary: hsl(180 22.5% 68.6%);
  --dot-base: hsl(180 20% 85.3%);
  --dot-missing: hsl(180 15.8% 77.6%);
  --serif: "Qinghe Runner Serif", "Source Han Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--copy); background: #f6fafa; font: 400 16px/1.75 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
h1, h2, p, dl, dd, figure { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
button { font: inherit; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #366c70; outline-offset: 5px; }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; left: 18px; top: -100px; z-index: 20; background: white; color: var(--heading); padding: 8px 16px; }
.skip-link:focus { top: 8px; }
.qh-site-header[data-nav-theme="inner"] { background: transparent; }

.overview { min-height: calc(100svh - 84px); display: flex; flex-direction: column; background: linear-gradient(115deg, #fafbf9 0%, #f5f9f8 48%, #edf5f6 100%); }
.overview-layout { flex: 1 0 auto; min-height: 0; display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 72px; align-items: center; padding-block: 20px; }
.intro { padding-block: 12px 24px; }
.eyebrow { color: var(--accent); font-size: 12px; line-height: 18px; letter-spacing: 1px; margin-bottom: 12px; }
h1 { font-family: var(--serif); color: var(--heading); font-size: 42px; line-height: 60px; font-weight: 500; white-space: nowrap; }
.intro-copy { margin-top: 12px; font-size: 14px; line-height: 28px; color: var(--muted); }
.source-info { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; line-height: 1; }
.source-trigger { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #748d8e; cursor: pointer; vertical-align: middle; }
.info-icon { display: grid; place-items: center; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; font: normal 500 9px/1 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
.source-trigger:hover, .source-trigger:focus-visible { color: var(--accent); }
.source-tooltip { position: absolute; z-index: 10; top: calc(100% + 10px); right: 0; width: 300px; max-width: calc(100vw - 48px); padding: 12px 16px; border: 1px solid #dae5e4; border-radius: 4px; background: #fff; box-shadow: 0 6px 24px #23484c12; color: #526264; font: 400 12px/20px system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; text-align: left; letter-spacing: 0; visibility: hidden; opacity: 0; }
.source-tooltip > span { display: block; }
.source-tooltip > span + span { margin-top: 6px; }
.source-tooltip strong { font-weight: 500; }
.source-tooltip::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.source-tooltip::after { content: ""; position: absolute; right: 9px; top: -5px; width: 8px; height: 8px; border-top: 1px solid #dae5e4; border-left: 1px solid #dae5e4; background: #fff; transform: rotate(45deg); }
.source-info:hover .source-tooltip, .source-info:focus-within .source-tooltip, .source-info.is-open .source-tooltip { visibility: visible; opacity: 1; }
.source-info.is-dismissed .source-tooltip { visibility: hidden; opacity: 0; }
.core-metrics { margin-top: 48px; }
.metric-main, .metric-pair > dl { display: flex; flex-direction: column; }
.metric-main dt, .metric-pair dt { order: 1; }
.distance-value { display: flex; align-items: baseline; gap: 8px; color: var(--accent); font-family: var(--serif); font-size: clamp(84px, 7.5vw, 108px); font-weight: 400; line-height: 1.12; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -3px; }
.distance-unit { font-size: 46px; letter-spacing: 0; }
.plus { font-size: 35px; margin-left: 4px; }
.metric-main dt { margin-top: 12px; line-height: 24px; font-size: 14px; }
.metric-pair { display: flex; margin-top: 36px; }
.metric-pair > dl { min-width: 160px; padding-right: 30px; }
.metric-pair > dl + dl { border-left: 1px solid #d5e0df; padding-left: 36px; padding-right: 0; }
.metric-pair dd { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 46px; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.metric-plus { font-size: 25px; margin-left: 2px; }
.metric-pair dt { font-size: 14px; line-height: 24px; margin-top: 3px; }

.cohort { min-width: 0; width: 100%; max-width: 552px; justify-self: end; }
.dimension-tabs { display: flex; gap: 30px; align-items: center; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.dimension-tabs button { position: relative; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 0 0 10px; margin-bottom: -1px; font-size: 14px; line-height: 24px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dimension-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.dimension-tabs button[aria-selected="true"] { color: var(--accent); }
.dimension-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.dimension-tabs.is-rotating button[aria-selected="true"]::after { animation: tab-progress 2500ms linear forwards; }
@keyframes tab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dimension-tabs button:hover { color: var(--accent); }
.dimension-panel:focus:not(:focus-visible), #main:focus:not(:focus-visible) { outline: none; }
.panel-title { font-size: 16px; line-height: 24px; font-weight: 500; margin-block: 18px 0; }
.has-tabs .panel-title { display: none; }
.dot-matrix { display: grid; grid-template-columns: repeat(16, 12px); justify-content: space-between; row-gap: 10px; }
.runner-dot { width: 12px; height: 12px; border: 1px solid transparent; border-radius: 50%; transition: background-color 200ms ease, border-color 200ms ease; }
[data-state="primary"] { background-color: var(--dot-primary); }
[data-state="secondary"] { background-color: var(--dot-secondary); }
[data-state="base"] { background-color: var(--dot-base); }
[data-state="missing"] { background-color: var(--dot-base); border: 1px solid transparent; }
.cohort-insight { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center; margin-top: 24px; min-height: 56px; }
.cohort-number { white-space: nowrap; line-height: 1; }
.cohort-number strong { color: var(--accent); font-family: var(--serif); font-size: 42px; line-height: 54px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.cohort-number > span { color: var(--muted); font-size: 14px; }
.highlight-copy { font-size: 14px; line-height: 28px; max-width: 350px; }
.legend { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 5px; list-style: none; padding: 0; margin: 18px 0 0; min-height: 42px; align-content: start; }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: #5f7273; white-space: nowrap; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.legend-count { font-variant-numeric: tabular-nums; }
.no-js-note { font-size: 12px; }

@media (min-width: 901px) {
  .overview-layout { align-items: last baseline; align-content: center; }
  .legend { align-content: end; }
}

.ticker-window { display: flex; align-items: center; width: 100%; height: 48px; min-width: 0; border-block: 1px solid var(--line); background: #f0f6f5; overflow-x: auto; scrollbar-width: none; mask-image: none; }
.ticker-window::-webkit-scrollbar { display: none; }
.ticker-track { display: flex; width: max-content; }
.event-list { display: flex; align-items: center; gap: 42px; list-style: none; padding: 0 42px 0 0; margin: 0; flex-shrink: 0; }
.event-list li { display: flex; align-items: center; flex-shrink: 0; gap: 3px; white-space: nowrap; font-size: 12px; line-height: 24px; }
.event-list li::after { content: "·"; color: #8ca6a7; margin-left: 34px; }
.event-region { color: #75898a; }
.event-divider { color: #9caeae; }
.footprints.is-animated .ticker-window { overflow: hidden; }
.footprints.is-animated .ticker-track { animation: footprints-scroll var(--ticker-duration, 100s) linear infinite; }
.footprints:hover .ticker-track, .footprints:focus-within .ticker-track { animation-play-state: paused; }
@keyframes footprints-scroll { to { transform: translateX(calc(-1 * var(--ticker-distance))); } }
.source-note { padding-block: 14px 18px; color: var(--muted); font-size: 12px; line-height: 18px; }
.source-note p + p { margin-top: 3px; }

@media (min-width: 901px) and (max-height: 720px) {
  .overview-layout { padding-block: 12px; }
  .intro { padding-block: 0; }
  .core-metrics { margin-top: 24px; }
  .metric-pair { margin-top: 18px; }
  .distance-value { font-size: 84px; }
  .dimension-tabs { margin-bottom: 18px; }
  .dot-matrix { grid-template-columns: repeat(16, 10px); row-gap: 7px; }
  .runner-dot { width: 10px; height: 10px; }
  .cohort-insight { margin-top: 18px; }
  .legend { margin-top: 12px; min-height: 42px; }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .shell { width: calc(100% - 72px); }
  .overview-layout { gap: 36px; }
  h1 { font-size: 36px; }
  .dimension-tabs { gap: 24px; }
  .metric-pair > dl { min-width: 142px; }
  .metric-pair > dl + dl { padding-left: 24px; }
  .cohort-insight { grid-template-columns: 102px 1fr; gap: 12px; }
}
@media (max-width: 900px) {
  .overview { min-height: 0; }
  .shell { width: calc(100% - 48px); max-width: 600px; }
  .overview-layout { min-height: 0; grid-template-columns: 1fr; gap: 48px; padding-block: 42px 36px; }
  .intro { padding: 0; }
  .eyebrow { letter-spacing: 0.5px; }
  h1 { font-size: 30px; line-height: 42px; }
  .intro-copy { font-size: 14px; line-height: 26px; margin-top: 12px; }
  .core-metrics { margin-top: 30px; }
  .distance-value { font-size: 84px; }
  .distance-unit { font-size: 32px; }
  .plus { font-size: 29px; }
  .metric-pair { margin-top: 24px; }
  .metric-pair > dl { min-width: 142px; }
  .metric-pair > dl + dl { padding-left: 30px; }
  .metric-pair dd { font-size: 30px; line-height: 42px; }
  .cohort { justify-self: start; max-width: none; }
  .dimension-tabs { gap: clamp(12px, 3vw, 28px); margin-bottom: 24px; }
  .dot-matrix { grid-template-columns: repeat(16, 10px); row-gap: 10px; }
  .runner-dot { width: 10px; height: 10px; }
  .cohort-insight { grid-template-columns: 98px 1fr; gap: 14px; margin-top: 24px; min-height: 78px; }
  .cohort-number strong { font-size: 36px; }
  .highlight-copy { font-size: 14px; line-height: 26px; }
  .legend { margin-top: 18px; min-height: 42px; column-gap: 18px; }
  .event-list { gap: 24px; padding-right: 24px; }
  .event-list li::after { margin-left: 18px; }
  .source-note { padding-block: 18px 24px; }
}
@media (max-width: 360px) {
  .eyebrow { letter-spacing: 0; }
  .distance-value { font-size: 76px; }
  .distance-unit { font-size: 28px; }
  .intro-copy { font-size: 14px; }
  .metric-pair > dl { min-width: 124px; padding-right: 20px; }
  .metric-pair > dl + dl { padding-left: 24px; }
  .dimension-tabs { gap: 12px; }
  .dot-matrix { grid-template-columns: repeat(16, 8px); row-gap: 9px; }
  .runner-dot { width: 8px; height: 8px; }
  .cohort-insight { grid-template-columns: 88px 1fr; gap: 10px; }
  .cohort-number strong { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .dimension-tabs.is-rotating button[aria-selected="true"]::after { animation: none; }
  .runner-dot { transition: none; }
  .footprints.is-animated .ticker-track { animation: none; transform: none; }
  .footprints.is-animated .ticker-window { overflow-x: auto; }
}

/* Figma 3:41: scoped landscape and UI palette; other modules keep their theme. */
.overview {
  position: relative; isolation: isolate;
  --heading: #172f3d; --copy: #2c424e; --muted: #374f5d; --accent: #214f60;
  --line: rgb(118 139 149 / 35%);
  --dot-primary: #2d4453; --dot-secondary: #4d6f80; --dot-base: #f1e8d6; --dot-missing: #80a7ba;
  color: var(--copy);
}
/* Anchor the photograph to the full Hero; the 48px footprints strip overlays its bottom. */
.overview-scenery { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.overview-landscape { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 100%; }
@media (min-width: 901px) {
  /* Match the current 1920px Figma frame without restoring the removed title row. */
  .overview-layout { position: relative; left: 17px; top: -15px; }
  .overview .distance-value { position: relative; top: -17px; }
  .overview .metric-pair dd { position: relative; top: -5px; }
  .overview .legend { transform: translateY(-12px); }
  /* Retain the expanded photo width; its right and bottom align with the full Hero. */
  .overview-landscape--original { left: auto; right: 0; width: 115.208333333%; }
}
.overview .distance-value, .overview .cohort-number strong { color: #173344; }
.overview .distance-unit, .overview .plus { color: var(--accent); }
.overview .source-trigger, .overview .legend li, .overview .event-place { color: var(--muted); }
.overview .metric-pair > dl + dl { border-color: rgb(99 121 135 / 45%); }
.overview .dimension-tabs { border-color: rgb(255 255 255 / 30%); }
.overview .dimension-tabs button { color: rgb(255 255 255 / 70%); }
.overview .dimension-tabs button[aria-selected="true"], .overview .dimension-tabs button:hover { color: #fff; }
.overview .dimension-tabs button::after { background: #fff; }
.overview .ticker-window { background: rgb(241 238 229 / 97%); }
.overview .event-list li::after { color: #798b91; }
@media (max-width: 900px) {
  .overview-landscape { object-position: 100% 100%; }
  .overview-scenery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom,rgb(246 249 249 / 76%),rgb(246 249 249 / 56%) 70%,transparent); }
  .overview .dimension-tabs { border-color: rgb(99 121 135 / 35%); }
  .overview .dimension-tabs button { color: var(--muted); }
  .overview .dimension-tabs button[aria-selected="true"], .overview .dimension-tabs button:hover { color: var(--accent); }
  .overview .dimension-tabs button::after { background: var(--accent); }
}

@media (max-width: 900px) {
  .overview .intro-copy { position: relative; }
  .overview .source-info { position: static; }
  .overview .source-tooltip { left: 0; right: auto; }
  .overview .source-tooltip::after { left: 13px; right: auto; }
}

/* Match the visible number-to-caption gap of the marathon totals. */
.overview .metric-main dt { position: relative; top: -9px; }
@media (min-width: 901px) {
  .overview .metric-main dt { top: calc(-5.5px - clamp(13.44px, 1.2vw, 17.28px)); }
}
@media (min-width: 901px) and (max-height: 720px) {
  .overview .metric-main dt { top: -19px; }
}

/* Align the cohort explanation to its denominator and desktop captions to the legend. */
.overview .cohort-insight { align-items: baseline; }
@media (min-width: 901px) {
  .overview .metric-pair { position: relative; top: -12px; }
}

/* A quiet label above the footprints ticker, over the Hero photograph. */
.footprints { position: relative; }
.footprints-title { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); color: #fff; font-family: inherit; font-size: 12px; font-weight: 400; line-height: 20px; letter-spacing: 1px; }
@media (min-width: 901px) {
  .footprints-title { margin-left: 17px; }
}
