@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/css/public-sans-400-700.woff2) format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/css/public-sans-400-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Saira Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/css/saira-semi-condensed-600.woff2) format("woff2");
}

:root {
  --ink: #18212e;
  --soft: #4b576a;
  --faint: #8792a4;
  --deep: #14305d;
  --track: #1b3f7a;
  --sprint: #c8202f;
  --paper: #fff;
  --tint: #eef2f7;
  --hair: #dde3eb;
  --rule: #a9b5c6;
  --text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: "Saira Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --measure: 41.5rem;
  --gutter: 1.125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-kerning: normal;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: #d3e0f2; }

a {
  color: var(--track);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(27, 63, 122, .45);
  text-underline-offset: .18em;
}
a:hover { color: var(--deep); text-decoration-color: var(--sprint); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--track); outline-offset: 3px; border-radius: 2px; }
main [tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute;
  left: -100vw;
  top: .5rem;
  z-index: 9;
  padding: .7rem 1rem;
  background: var(--paper);
  font-weight: 600;
}
.skip:focus { left: .5rem; }

.wrap {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* header */
.top { padding-block: .5rem; }
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  color: var(--deep);
  text-decoration: none;
  font: 600 1.65rem/1 var(--head);
}
.brand svg { flex: none; }
.brand:hover { color: var(--track); }
.menu-btn,
.toc-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--deep);
  font: 600 1.15rem/1 var(--head);
  cursor: pointer;
}
.menu-btn { margin-right: -.6rem; padding: 0 .75rem; }
.menu-btn::after,
.toc-btn::after {
  content: "";
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-.18rem) rotate(45deg);
}
.menu-btn[aria-expanded="true"]::after,
.toc-btn[aria-expanded="true"]::after { transform: translateY(.12rem) rotate(-135deg); }
.menu-btn:hover { background: var(--tint); }
.menu { flex-basis: 100%; }
.menu ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: .2rem 0 .9rem;
  list-style: none;
}
.menu li { margin: 0; padding: 0; }
.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font: 600 1.25rem/1.2 var(--head);
}
.menu a:hover {
  color: var(--track);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .32em;
}
.menu a[aria-current="page"] {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--sprint);
  text-underline-offset: .32em;
}
.js .menu { display: none; }
.js .menu.open { display: block; }

/* page head */
main { padding-block: .5rem 4rem; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.5;
}
.crumbs li { margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin: 0 .5rem; color: var(--faint); }
.crumbs a,
.crumbs [aria-current] { display: inline-block; padding-block: .625rem; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--track); text-decoration: underline; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; text-wrap: balance; }
h1 {
  max-width: 48rem;
  margin: .5rem 0 .8rem;
  color: var(--deep);
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem);
  line-height: 1.14;
}
.dates { margin: 0 0 1.6rem; color: var(--soft); font-size: 1rem; line-height: 1.5; }
.dates time { white-space: nowrap; }
.lead { max-width: var(--measure); margin: 0 0 2rem; font-size: 1.16em; line-height: 1.55; }

/* text column */
.body > * { max-width: var(--measure); }
h2 {
  margin: 2.6rem 0 .75rem;
  color: var(--deep);
  font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem);
  line-height: 1.2;
}
h3 {
  margin: 2rem 0 .45rem;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.25;
}
h2 + h3 { margin-top: 1.1rem; }
.body > :first-child { margin-top: 0; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.45em; }
li { margin: 0 0 .5em; padding-left: .25em; }
li::marker { color: var(--track); font-variant-numeric: tabular-nums; }
ol > li::marker { font-weight: 600; }
b, strong { font-weight: 700; }

figure { margin: 2rem 0 2.3rem; }
figure img { width: 100%; }
figcaption {
  max-width: 44rem;
  margin-top: .65rem;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.5;
}
.body > figure.tall { max-width: 24rem; }
.lic { white-space: nowrap; }

/* race data */
.ficha {
  margin: 0 0 2rem;
  padding: .45rem 1.25rem;
  background: var(--tint);
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.45;
}
.ficha div { padding-block: .6rem; }
.ficha div + div { border-top: 1px solid var(--hair); }
.ficha dt { color: var(--soft); font: 600 1rem/1.3 var(--head); }
.ficha dd { margin: .1rem 0 0; }
@media (max-width: 65.9999em) {
  .ficha { max-width: var(--measure); }
  .ficha div { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
  .ficha dd { margin: 0; }
}

/* table of contents: a sticky bar that opens a list on phones and tablets, a sticky column on wide screens */
.side { display: contents; }
.toc { margin: 0 0 2rem; }
.toc-title { margin: 0 0 .4rem; color: var(--deep); font: 600 1.15rem/1.3 var(--head); }
.toc-list, .toc-list ol { margin: 0; padding: 0; list-style: none; }
.toc-list li { margin: 0; padding: 0; }
.toc-list ol { padding-left: 1rem; }
.toc-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: .3rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}
.toc-list ol a { color: var(--soft); }
.toc-list a:hover { color: var(--track); text-decoration: underline; }
.toc-list a[aria-current="true"] {
  color: var(--deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sprint);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}
.js .toc {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--hair);
}
.js .toc-title { display: none; }
.toc-btn { justify-content: space-between; width: 100%; min-height: 48px; padding: 0; border-radius: 0; }
.js .toc-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: min(70vh, 34rem);
  overflow-y: auto;
  padding: .2rem var(--gutter) .9rem;
  background: var(--paper);
  box-shadow: 0 18px 24px -14px rgba(20, 48, 93, .35);
}
.js .toc.open .toc-list { display: block; }
.js .body h2,
.js .body h3,
.js .season { scroll-margin-top: 4rem; }

/* tables */
.tablewrap { overflow-x: auto; margin: 1.3rem 0 2rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top;
  padding: 0 0 .35rem;
  text-align: left;
  color: var(--deep);
  font: 600 1.15rem/1.3 var(--head);
}
thead th {
  padding: .45rem 1rem .45rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--soft);
  font: 600 1rem/1.3 var(--head);
  text-align: left;
  vertical-align: bottom;
}
tbody th, td {
  padding: .6rem 1rem .6rem 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}
tbody th { font-weight: 600; }
th:last-child, td:last-child { padding-right: 0; }
.pos { width: 1%; padding-right: 1.3rem; text-align: right; white-space: nowrap; }
.yr { width: 1%; white-space: nowrap; }
th.num, td.num { text-align: right; }
th.num { white-space: nowrap; }

/* palmarés */
.season > h2 { font-variant-numeric: tabular-nums; }

/* track plan, home */
.plan figcaption { max-width: none; }
.key {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .3rem 1.75rem;
  margin: .6rem 0 .9rem;
}
.k { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.note { display: block; }
.sw {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 1.05rem;
  background: #ecdcbc;
  border-radius: 2px;
}
.sw::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1.5px);
  height: 3px;
  background: var(--c);
}
.sw-azur::after { top: 0; height: 100%; background: #7fc3e6; }
.sw-medida { --c: #1d1d1f; }
.sw-sprint { --c: #c8202f; }
.sw-fondo { --c: #2556ab; }
.sw-meta::after {
  left: calc(50% - 6px);
  right: auto;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, #fff 4.5px, #1d1d1f 4.5px, #1d1d1f 7.5px, #fff 7.5px);
}

/* chronicles: list on the home page, «Otras crónicas» under each one */
.stories { margin: 1.5rem 0 1rem; padding: 0; list-style: none; }
.story {
  position: relative;
  display: grid;
  gap: .75rem;
  margin: 0 0 2.2rem;
  padding: 0;
}
.story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story p { margin: .3rem 0 0; }
.story .credit { margin-top: .35rem; color: var(--soft); font-size: 1rem; line-height: 1.5; }
.story-link {
  display: inline-block;
  padding-block: .3rem;
  color: var(--deep);
  font: 600 1.35rem/1.25 var(--head);
  text-decoration: none;
}
.story-link::after { content: ""; position: absolute; inset: 0; }
.story:hover .story-link {
  text-decoration: underline;
  text-decoration-color: var(--sprint);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.more { margin-top: 3rem; }
.more-title { margin: 0 0 .9rem; color: var(--soft); font: 600 1.15rem/1.3 var(--head); }
.mini { margin: 0; }
.mini .story {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  margin-bottom: 1rem;
}
.mini .story-link { display: flex; align-items: center; min-height: 44px; font-size: 1.2rem; }
.mini .story p { margin-top: 0; }
.mini .story .credit { margin-top: .2rem; }

/* points chart, Pruszków */
.chart { max-width: var(--measure); }
.chart-key {
  display: flex;
  line-height: 1.5;
  flex-wrap: wrap;
  gap: .2rem 1.5rem;
  margin: 0 0 1rem;
  color: var(--soft);
  font-size: 1rem;
}
.chart-key span { display: inline-flex; align-items: center; gap: .45rem; }
.chart-key i { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; }
.bars { margin: 0; padding: 0; list-style: none; }
.bars li { margin: 0 0 .95rem; padding: 0; }
.who { display: block; margin-bottom: .25rem; font-size: 1rem; line-height: 1.3; }
.row { display: flex; align-items: center; min-height: 1.5rem; }
.seg { display: block; height: 1.3rem; }
.seg + .seg { margin-left: 2px; }
.laps { background: var(--track); }
.spr { background: var(--sprint); }
.row b { margin-left: .6rem; font-variant-numeric: tabular-nums; }
.row small { margin-left: .5rem; color: var(--soft); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p60 { width: 35.8%; }
.p44 { width: 26.2%; }
.p16 { width: 9.5%; }
.p7 { width: 4.2%; }

/* 404 */
.lost { padding-block: 1rem 2rem; }
.lost > p { max-width: var(--measure); }
.lost-plan { display: block; width: 100%; max-width: 20rem; height: auto; margin: 2.5rem 0 0; }

/* footer */
.foot {
  padding-block: 2.8rem 3rem;
  background: var(--tint);
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.55;
}
.foot-in { display: grid; gap: 1.25rem; }
.foot p { max-width: 34rem; margin: 0 0 .55rem; }
.foot .name { color: var(--deep); font: 600 1.2rem/1.3 var(--head); }
.foot a { color: var(--deep); }
.mail { display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 3rem; }
.foot-nav ul { margin: 0; padding: 0; list-style: none; }
.foot-nav li { margin: 0; padding: 0; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sprint); }

/* phones: tables that do not fit turn into stacked rows */
@media (max-width: 43.7499em) {
  .stack thead,
  .results thead,
  .medal-list thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .stack, .stack tbody, .results, .results tbody, .medal-list, .medal-list tbody { display: block; }
  .stack caption, .results caption, .medal-list caption { display: block; }
  .stack tr {
    display: flex;
    flex-wrap: wrap;
    column-gap: .6rem;
    padding-block: .65rem;
    border-bottom: 1px solid var(--hair);
  }
  .stack th, .stack td { flex: 0 0 100%; padding: 0; border: 0; }
  .stack .pos { flex: 0 0 auto; width: auto; padding: 0; text-align: left; }
  .stack .pos + td { flex: 1 1 calc(100% - 3.5rem); min-width: 0; }
  .stack td.num { flex: 0 0 auto; margin: .2rem .75rem 0 0; text-align: left; }
  .stack tbody th + td,
  .stack .pos + td + td { margin-top: .2rem; }
  .stack [data-label]::before {
    content: attr(data-label) " ";
    color: var(--soft);
    font: 600 1rem/1.3 var(--head);
  }
  .results tr,
  .medal-list tr {
    display: grid;
    grid-template-columns: 2.9rem minmax(0, 1fr);
    column-gap: .5rem;
    padding-block: .6rem;
    border-bottom: 1px solid var(--hair);
  }
  .results td, .medal-list th, .medal-list td { padding: 0; border: 0; }
  .results .pos { grid-row: 1 / 3; width: auto; padding: 0; text-align: left; }
  .results td:last-child { grid-column: 2; }
  .results .nd { display: none; }
  .medal-list tr { grid-template-columns: 3.4rem minmax(0, 1fr) auto; }
  .medal-list th { grid-column: 1; grid-row: 1 / 3; }
  .medal-list td:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
  .medal-list td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .medal-list td:nth-child(4) { grid-column: 3; grid-row: 2; padding-left: .75rem; text-align: right; }
}

@media (min-width: 43.75em) {
  :root { --gutter: 2.25rem; }
  body { font-size: 1.125rem; line-height: 1.62; }
  .top { padding-block: 1.3rem .5rem; }
  .top-in { flex-wrap: nowrap; }
  .menu-btn { display: none !important; }
  .menu, .js .menu { display: block; flex-basis: auto; }
  .menu ul { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; column-gap: 1.1rem; padding: 0; }
  .menu a { min-height: 44px; font-size: 1.06rem; }
  main { padding-block: 1.4rem 5.5rem; }
  h2 { margin-top: 3rem; }
  .results { table-layout: fixed; }
  .results th.pos { width: 4.6rem; }
  .results th:last-child { width: 36%; }
  .story { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 1.75rem; align-items: start; }
  .story .story-link { padding-top: 0; margin-top: -.2rem; }
  .mini .story { grid-template-columns: 9rem minmax(0, 1fr); align-items: center; }
  .mini .story-link { margin-top: 0; }
  .plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13.5rem;
    column-gap: 2rem;
    align-items: center;
  }
  .plan figcaption { margin-top: 0; }
  .plan .key { grid-template-columns: 1fr; margin-top: 0; }
  .bars li { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); align-items: center; column-gap: 1rem; }
  .who { margin: 0; }
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; }
}

@media (min-width: 66em) {
  :root { --gutter: 3.25rem; --measure: 43.5rem; }
  body { font-size: 1.1875rem; line-height: 1.6; }
  .menu ul { column-gap: 1.6rem; }
  .menu a { font-size: 1.12rem; }
  .page {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(12rem, 17rem);
    justify-content: space-between;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .page > .crumbs { grid-column: 1 / -1; grid-row: 1; }
  .page-head { grid-column: 1; grid-row: 2; }
  .page > .body { grid-column: 1; grid-row: 3; }
  .side { display: block; grid-column: 2; grid-row: 2 / 4; padding-top: .6rem; }
  .toc,
  .js .toc {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .toc-btn { display: none !important; }
  .js .toc-title { display: block; }
  .js .toc-list { display: block; position: static; max-height: none; padding: 0; box-shadow: none; }
  .toc-list a { min-height: 0; padding-block: .38rem; }
  .js .body h2,
  .js .body h3,
  .js .season { scroll-margin-top: 1.25rem; }
  .ficha { margin-bottom: 2.25rem; }
}
