/* DEMO 100: black on white, one typeface, thin rules, two columns: 100 Mile on the left, 100 Kilometer on the right.
   Nothing decorative; the type and the grid do the work (after eduardkudlac.com). */
:root { --fg: #000; --bg: #fff; --mute: #707070; --rule: rgba(0,0,0,.22); --sans: "Helvetica Neue", Helvetica, Arial, "Pretendard Variable", Pretendard, system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 15px/1.28 var(--sans); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; }
a:hover { background: var(--fg); color: var(--bg); }
p { margin: 0 0 .9em; }
b, strong { font-weight: 700; }
svg { max-width: 100%; }
.mute { color: var(--mute); }

/* header: a big logo, and under it the menu once for each race, over its own column (no rules between) */
.hd { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px 24px; padding: 26px 14px 22px; border-bottom: 1px solid var(--fg); background: var(--bg); } /* the logo on the left, the menu in the exact middle of the page */
.hd a { text-decoration: none; }
.hd a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
.hd .logo { display: block; padding: 0; width: fit-content; flex: none; }
.hd .logo .mark { display: block; height: clamp(92px, 11.5vw, 160px); width: auto; }
.hd .logo:hover { background: none; color: inherit; } /* no black flash on hover */
.nav { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding: 0 0 6px; margin: 0; } /* centred, on the same line as the DEMO 100 letters of the logo */
.subnav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -8px 0 20px; }
.subnav a { text-decoration: none; }
.subnav a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
.pg { display: none; }
.pg.on { display: block; }

/* two panes, each scrolls by itself (one column per race); on a phone they stack and the page scrolls */
html, body { height: 100%; }
body { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.pane { overflow-y: auto; overflow-x: hidden; min-width: 0; min-height: 0; scrollbar-width: thin; scrollbar-color: #000 transparent; overscroll-behavior: contain; }
.pane + .pane { border-left: 1px solid var(--fg); }
.panes[data-full="m"] .pane[data-pane="k"], .panes[data-full="k"] .pane[data-pane="m"] { display: none; }
.panes[data-full="m"], .panes[data-full="k"] { grid-template-columns: 1fr; }
.panes:has(.pane:only-child) { grid-template-columns: 1fr; } /* the FAQ: one pane, full width */
.blk { padding: 14px 14px 44px; border-bottom: 1px solid var(--fg); }
.pane .blk:last-child { border-bottom: 0; }
/* the footer: one line under both panes, fixed like the header */
.ft { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 10px 14px; border-top: 1px solid var(--fg); background: var(--bg); font-size: 13px; color: var(--mute); }
.ft b { color: var(--fg); }
@media (max-width: 760px) {
  body { display: block; height: auto; overflow: visible; }
  .hd { grid-template-columns: 1fr; padding: 16px 14px 14px; gap: 12px 24px; }
  .nav { grid-column: 1; justify-content: center; }
  .hd .logo .mark { height: 92px; }
  .panes { display: block; }
  .pane { overflow: visible; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--fg); }
}

/* the two numbers */
.big { font: 700 clamp(96px, 20vw, 330px)/.76 var(--sans); letter-spacing: -.075em; margin: 6px 0 .14em -.05em; }
.rh { margin: 0 0 18px; font: 700 clamp(30px, 4.4vw, 56px)/1 var(--sans); letter-spacing: -.045em; }
.rh span { display: block; }
.rh a, .rh a:hover { text-decoration: none; background: none; color: inherit; }
.home-big { margin-bottom: 0; }
.lab { font-weight: 700; margin: 34px 0 8px; }
.lab:first-child { margin-top: 0; }
.lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.22; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; max-width: 24em; }
.go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-right: 18px; white-space: nowrap; }
.go:hover { text-decoration: none; }
.links { margin-top: 20px; }

.facts { margin: 0; border-top: 1px solid var(--fg); }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* lines of text: news, lists, times */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.list li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.list li b { display: block; }
.list.t li { display: grid; grid-template-columns: 5.6em 1fr; gap: 12px; }
.list.t time { font-variant-numeric: tabular-nums; }
.list li small { display: block; color: var(--mute); font-size: 13px; line-height: 1.3; font-weight: 500; }
.list.hot li.hot { font-weight: 700; }
.day { margin: 26px 0 6px; font-weight: 700; }
.day:first-child { margin-top: 0; }
.day small { font-weight: 500; color: var(--mute); margin-left: 8px; }

/* tables */
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 500; color: var(--mute); padding: 4px 12px 4px 0; border-bottom: 1px solid var(--fg); white-space: nowrap; }
.tbl td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl .r { text-align: right; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }

/* course */
.spec { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
.chart { position: relative; margin: 14px 0 6px; }
.chart svg { display: block; width: 100%; height: 260px; touch-action: pan-y; }
.chart .tip { position: absolute; top: 20px; left: 0; background: var(--fg); color: var(--bg); font: 500 12px/1.3 var(--sans); padding: 3px 7px; pointer-events: none; white-space: nowrap; opacity: 0; font-variant-numeric: tabular-nums; }
.chart:hover .tip, .chart.touch .tip { opacity: 1; }
.ana { display: block; width: 100%; height: 520px; border: 1px solid var(--fg); margin: 0 0 4px; }

/* register / rules */
.note { border: 1px solid var(--fg); padding: 10px 12px; margin: 0 0 .9em; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--fg); }
.steps li { counter-increment: s; padding: 6px 0 6px 2em; border-bottom: 1px solid var(--rule); position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--mute); }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.checks li { padding: 6px 0 6px 1.6em; border-bottom: 1px solid var(--rule); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7em; height: .7em; border: 1px solid var(--fg); }
.checks.no li::before { background: linear-gradient(45deg, transparent 45%, var(--fg) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--fg) 45% 55%, transparent 55%); }
.checks.plain li { padding-left: 0; } .checks.plain li::before { display: none; }
.checks small { display: block; color: var(--mute); font-size: 13px; line-height: 1.3; }
details { border-top: 1px solid var(--fg); }
details:last-child { border-bottom: 1px solid var(--fg); }
summary { cursor: pointer; padding: 8px 24px 8px 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 6px; font-weight: 500; font-size: 18px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--mute); padding-bottom: 6px; max-width: 40em; }

/* the test application form */
.apply, .done { max-width: 560px; }
.narrow { max-width: 680px; }
/* Manual: a big black title, five key figures, a sticky index on the left, numbered sections on the right */
.man-head { padding-bottom: 0; border-bottom: 0; }
.man-title { margin: 6px 0 18px -.04em; font: 900 clamp(72px, 15vw, 230px)/.8 "Pretendard Variable", Pretendard, "Arial Black", var(--sans); letter-spacing: -.1em; }
.man-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding-bottom: 8px; }
.man-sub .lead { margin: 0; }
.man-head { position: relative; }
.man-dl { position: absolute; top: 14px; right: 14px; border: 1px solid var(--fg); padding: 7px 14px 8px; font-weight: 700; white-space: nowrap; text-decoration: none; background: var(--bg); } /* top right, level with the big title */
.man-head .lead { max-width: none; white-space: nowrap; font-size: 15px; font-weight: 600; } /* one line on a wide screen */
.key { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); margin-top: 6px; }
.key div { padding: 14px 14px 12px 0; }
.key div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.key b { display: block; font: 900 clamp(34px, 5vw, 76px)/.9 "Pretendard Variable", Pretendard, "Arial Black", var(--sans); letter-spacing: -.06em; }
.key b small { font-size: .38em; letter-spacing: -.02em; margin-left: .12em; }
.ms .partners { max-width: 46em; }
.key span { display: block; margin-top: 8px; color: var(--mute); font-size: 13px; line-height: 1.3; }
.man { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0 48px; padding: 0 14px 40px; }
.man.solo { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
.man.solo .ms:first-child { border-top: 0; padding-top: 0; }
.man-nav { position: sticky; top: 0; align-self: start; padding: 18px 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.man-nav a { display: flex; gap: 10px; padding: 3px 0; text-decoration: none; }
.man-nav i { font-style: normal; font-weight: 700; color: var(--mute); width: 1.6em; flex: none; font-variant-numeric: tabular-nums; }
.man-nav a:hover i { color: inherit; }
.ms { border-top: 1px solid var(--fg); padding: 16px 0 34px; scroll-margin-top: 0; }
.ms:first-child { margin-top: 0; border-top: 0; } /* the key figures' bottom rule is already right above it; two rules stacked looked thicker on the right half */
.ms h3 { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font: 700 clamp(22px, 2.5vw, 34px)/1.1 var(--sans); letter-spacing: -.035em; }
.ms h3 i { font: 900 clamp(34px, 4.4vw, 64px)/1 "Pretendard Variable", Pretendard, "Arial Black", var(--sans); letter-spacing: -.07em; font-style: normal; }
.ms .checks.plain { border-top: 0; }
.ms .checks.plain li { border-bottom: 0; padding: 5px 0; } /* no rule between the lines of text */
.ms .checks.g { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.pen { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--fg); }
.pen li { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.tag { display: inline-block; border: 1px solid var(--fg); padding: 1px 8px 2px; font-size: 13px; font-weight: 700; white-space: nowrap; text-align: right; }
.tag.dq { background: var(--fg); color: var(--bg); }
.man-end { margin: 8px 0 0; font: 900 clamp(28px, 4vw, 56px)/1 "Pretendard Variable", Pretendard, "Arial Black", var(--sans); letter-spacing: -.06em; }
@media (max-width: 760px) {
  .man-head .lead { white-space: normal; } /* on a phone it has to wrap */
  .man-dl { position: static; display: inline-block; margin: 0 0 12px; }
  .key { grid-template-columns: 1fr 1fr; }
  .key div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .key div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .man { grid-template-columns: 1fr; }
  .man-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; border-bottom: 0; padding-bottom: 12px; }
  .ms .checks.g { grid-template-columns: 1fr; }
  .pen li { grid-template-columns: 1fr; gap: 4px; }
}
.fld { display: grid; grid-template-columns: 8em 1fr; gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.fld span { color: var(--mute); }
.fld input, .fld select { font: inherit; letter-spacing: inherit; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; background: none; padding: 4px 0; width: 100%; outline: 0; }
.fld input:focus, .fld select:focus { background: #f2f2f2; }
.opts { display: flex; gap: 22px; flex-wrap: wrap; margin: 0; padding: 4px 0; align-items: center; }
.opts label { cursor: pointer; }
.btn { font: 700 15px/1 var(--sans); letter-spacing: -.012em; background: var(--fg); color: var(--bg); border: 1px solid var(--fg); border-radius: 0; padding: 11px 18px; cursor: pointer; margin-right: 18px; }
.btn:hover { background: var(--bg); color: var(--fg); }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--fg); border-left: 1px solid var(--rule); }
.partners div { aspect-ratio: 5/3; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; place-items: center; color: var(--mute); font-size: 13px; }

/* print / PDF of the Manual page (the download is made from this): no header menu, footer, index or button; everything flows */
@media print {
  @page { margin: 14mm 12mm; }
  html, body { height: auto; overflow: visible; display: block; }
  .nav, .ft, .man-nav, .man-dl { display: none !important; }
  .hd { border-bottom: 0; padding-top: 0; }
  .panes, .pane { display: block; overflow: visible; height: auto; }
  .man { display: block; padding: 0; }
  .ms { break-inside: auto; padding-bottom: 18px; }
  .ms h3 { break-after: avoid; }
  .ms li, .pen li { break-inside: avoid; }
  .tag.dq, .hd svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .man-head .lead { white-space: normal; }
  .man-title { font-size: 90px; }
}

/* the first page (/ only): the runner film, white on black (assets/intro.mp4), the logo in the middle, ENTER to the race pages. */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; }
.intro-v { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; } /* the source only: assets/intro.js draws it (with its red trail) on .intro-fx */
.intro-fx { position: absolute; inset: 0; width: 100%; height: 100%; filter: contrast(1.5) brightness(.8);
  --screen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M3 .8 5.4 5 .6 5z'/%3E%3C/svg%3E") 0 0 / 6px 6px;
  -webkit-mask: var(--screen); mask: var(--screen); } /* seen only through a fine screen of small triangles; the logo and ENTER sit above it untouched. Dimmed so the logo leads. Contrast pushes the film's near-black to pure black and also hides the faint grey a long trail never quite fades out of (8-bit rounding stops fading below ~0.5/FADE) */
.intro-logo { position: absolute; left: 50%; top: 50%; width: min(50vw, 480px); transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 0 3px #000) drop-shadow(0 0 24px rgba(0,0,0,.85)); } /* centred, plain white, on a soft dark halo so it stands off the background */
.intro-go { position: absolute; left: 50%; bottom: 18vh; transform: translateX(-50%); font: 900 16px/1 "Pretendard Variable", Pretendard, var(--sans); letter-spacing: -.02em; color: #fff; background: none; border: 0; padding: 8px; text-decoration: none; text-shadow: 0 0 3px #000, 0 0 14px rgba(0,0,0,.9); } /* a link to the race pages. Same dark halo as the logo */
.intro-go:hover { background: none; color: #fff; opacity: .6; }
