/* 21CC distantsilehed (mall Distantsileht). Kõik reeglid on .cc21-dist all, et teema stiile mitte mõjutada. */
.cc21-dist {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --stone: #f2f3f5;
  --line: #e1e3e8;
  --muted: #6b707a;
  --blue: #0a5fd6;
  --yellow: #f5c400;
  --cond: "Roboto Condensed", "Arial Narrow", "Roboto", sans-serif;
  --harlequin: conic-gradient(from 45deg at 50% 50%, var(--blue) 0 25%, var(--yellow) 0 50%, var(--ink) 0 75%, #fff 0);
  color: var(--ink);
  padding-bottom: 40px;
}
.cc21-dist * { box-sizing: border-box; }
.cc21-dist h2, .cc21-dist p, .cc21-dist dl, .cc21-dist dd { margin: 0; }
.cc21-dist ul, .cc21-dist ol { list-style: none; margin: 0; padding: 0; }
.cc21-dist ul li, .cc21-dist ol li { margin: 0; padding: 0; }
.cc21-dist ul li::before, .cc21-dist ol li::before { content: none; }
.cc21-dist a { text-decoration: none; }
div.cc21-dist a:hover { text-decoration: none; }
.cc21-dist :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.cc21-dist .cc21-kicker { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.cc21-dist .cc21-lede { max-width: 660px; margin-bottom: 36px; }
div.cc21-dist .cc21-lede p, div.cc21-dist .cc21-lede { font-size: 21px; line-height: 1.55; font-weight: 300; }
div.cc21-dist .cc21-lede p + p, div.cc21-dist .cc21-prep p + p { margin-top: .8em; }
.cc21-dist .cc21-block { margin-bottom: 56px; }
.cc21-dist .cc21-block > h2 { font-weight: 300; font-size: 28px; line-height: 1.2; margin-bottom: 20px; }

/* Ala värvid: ujumine sinine, ratas tume, jooks kollane (nagu treeningute nädala ülevaates) */
.cc21-dist .cc21-swim { --c: var(--blue); }
.cc21-dist .cc21-bike { --c: var(--ink); }
.cc21-dist .cc21-run { --c: var(--yellow); }

/* Redigeerimisvaate teade */
.cc21-dist-admin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 18px; margin-bottom: 24px; border: 2px dashed var(--line); font-size: 14px; }
.cc21-dist-admin b { font-weight: 500; }
.cc21-dist-admin span { flex: 1 1 320px; color: var(--muted); }
.cc21-dist .cc21-dist-admin a { color: var(--blue) !important; }

/* Pikkused */
.cc21-legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .9fr); gap: 0; border-top: 2px solid var(--ink); margin-bottom: 40px; }
.cc21-leg { display: flex; flex-direction: column; gap: 2px; padding: 20px 16px 18px 0; }
.cc21-leg + .cc21-leg { padding-left: 16px; border-left: 1px solid var(--line); }
.cc21-leg-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; margin-bottom: 10px; }
.cc21-run .cc21-leg-ico { color: var(--ink); }
.cc21-leg-ico svg { width: 22px; height: 22px; }
.cc21-leg small { font-size: 13px; color: var(--muted); }
.cc21-leg b { font-weight: 300; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc21-total { justify-content: flex-end; background: var(--stone); padding-left: 16px !important; padding-right: 16px; }
.cc21-total b { font-weight: 500; }
.cc21-split { grid-column: 1 / -1; display: flex; height: 10px; }
.cc21-split i { display: block; background: var(--c); min-width: 6px; }

/* Faktid */
.cc21-dist .cc21-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 56px; }
.cc21-facts > div { position: relative; padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.cc21-facts > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--harlequin) 0 0 / 10px 10px; }
.cc21-facts dt { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cc21-facts dd { font-weight: 400; font-size: 24px; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cc21-facts .cc21-fact-sub { font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 300; margin-top: 6px; }

/* Ettevalmistus */
.cc21-dist .cc21-prep { max-width: 660px; margin-bottom: 24px; }
div.cc21-dist .cc21-prep p, div.cc21-dist .cc21-prep { font-size: 17px; line-height: 1.65; color: #2b2e33; }
.cc21-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: t; }
.cc21-dist .cc21-tips li { counter-increment: t; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; background: var(--stone); }
.cc21-dist .cc21-tips li::before { content: counter(t); position: static; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.cc21-tips b { font-weight: 500; font-size: 16px; }
.cc21-tips span { font-size: 14px; line-height: 1.55; color: #3a3d42; }

/* Võrdlus */
.cc21-cmpd { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cc21-dist .cc21-cmpd li { border-bottom: 1px solid var(--line); }
.cc21-dist .cc21-cmpd a { display: grid; grid-template-columns: 170px minmax(0, 1fr) 80px; align-items: center; gap: 16px; padding: 12px 0; color: var(--ink) !important; transition: background-color .15s; }
.cc21-dist .cc21-cmpd a:hover { background: var(--stone); }
.cc21-cmp-name { font-size: 15px; }
.cc21-cmpd .is-current .cc21-cmp-name { font-weight: 500; }
.cc21-cmp-bar { position: relative; height: 12px; }
.cc21-cmp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 4px;
  background: linear-gradient(90deg, var(--blue) 0 var(--s), var(--ink) var(--s) calc(var(--s) + var(--b)), var(--yellow) calc(var(--s) + var(--b)) 100%); opacity: .35; }
.cc21-cmpd .is-current .cc21-cmp-bar i { opacity: 1; }
.cc21-cmp-km { text-align: right; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cc21-cmpd .is-current .cc21-cmp-km { color: var(--ink); font-weight: 500; }
.cc21-dist .cc21-legend-d { display: flex; gap: 16px; margin-top: 12px !important; font-size: 13px; color: var(--muted); }
.cc21-legend-d span { display: inline-flex; align-items: center; gap: 6px; }
.cc21-legend-d span::before { content: ""; width: 12px; height: 12px; background: var(--c); }

/* Kutse ja navigatsioon */
.cc21-dist .cc21-cta { padding: 28px 32px; background: var(--stone); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.cc21-dist .cc21-cta h2 { font-weight: 300; font-size: 24px; line-height: 1.25; margin-bottom: 4px; }
.cc21-dist .cc21-cta p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 48ch; }
.cc21-dist .cc21-btn { display: inline-block; padding: 10px 18px; background: var(--blue); color: #fff !important; transition: background-color .15s; }
div.cc21-dist a.cc21-btn, div.cc21-dist a.cc21-btn:hover { font-size: 13px; font-weight: 500; font-style: normal; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.cc21-dist .cc21-btn:hover { background: var(--ink); }
.cc21-dnav { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cc21-dist .cc21-dnav a { display: flex; flex-direction: column; gap: 2px; color: var(--ink) !important; font-size: 17px; }
.cc21-dist .cc21-dnav a:hover { color: var(--blue) !important; }
.cc21-dnav small { font-size: 12px; color: var(--muted); }
.cc21-dnav-next { text-align: right; align-items: flex-end; }
.cc21-dist .cc21-credit { font-size: 12px; }
.cc21-dist .cc21-credit a { color: var(--muted) !important; }

@media (max-width: 760px) {
  .cc21-legs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc21-total { grid-column: 1 / -1; flex-direction: row !important; align-items: baseline; justify-content: space-between; padding: 12px 16px !important; border-left: 0 !important; }
  .cc21-total b { font-size: 26px; }
}
@media (max-width: 640px) {
  div.cc21-dist .cc21-lede p, div.cc21-dist .cc21-lede { font-size: 18px; }
  .cc21-dist .cc21-block > h2 { font-size: 24px; }
  .cc21-leg { padding: 16px 8px 14px 0; }
  .cc21-leg + .cc21-leg { padding-left: 10px; }
  .cc21-leg b { font-size: 24px; }
  .cc21-leg-ico { width: 34px; height: 34px; }
  .cc21-dist .cc21-facts, .cc21-tips { grid-template-columns: minmax(0, 1fr); }
  .cc21-dist .cc21-cmpd a { grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; }
  .cc21-cmp-name { font-size: 14px; }
  .cc21-dist .cc21-cta { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc21-dist * { transition: none !important; }
}
