/* ── Route pages (parcours-*.html) and the list of every route (parcours.html), built by tools/routes.py ── */
.route-hero .lead { max-width: 62ch; }
.route-hero .stats dd { font-size: clamp(26px, 3vw, 36px); }

/* the elevation profile */
.route-prof__wrap { margin: 0 0 56px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); border: 1px solid var(--ink-line); padding: clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px) 12px; }
.route-prof { display: block; width: 100%; height: clamp(150px, 22vw, 260px); }
.route-prof__t { fill: var(--on-ink-3); font: 600 22px var(--mono); }
.route-prof__wrap figcaption { display: flex; justify-content: space-between; margin-top: 10px; }

/* how to ride it · the estimated times */
.route-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .route-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } }
.route-p { color: var(--on-ink-2, rgba(255, 255, 255, .78)); font-size: 17px; line-height: 1.6; max-width: 64ch; margin: 0; }
.route-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--on-ink-2, rgba(255, 255, 255, .78)); }
.route-steps li::marker { color: var(--pink); font-weight: 700; }
.route-times { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 16px; }
.route-times ul { list-style: none; margin: 0; padding: 0; display: grid; }
.route-times li { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
.route-times li:last-child { border-bottom: 0; }
.route-times li b { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--on-ink-3); }
.route-times li span { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.route-times .note { margin: 0; font-size: 13px; }

/* other routes, small */
.route-minis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.route-mini { display: grid; border-radius: var(--r); overflow: hidden; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .03); transition: border-color .4s, transform .6s var(--ease); }
.route-mini:hover { border-color: color-mix(in srgb, var(--pink) 60%, transparent); transform: translateY(-3px); }
.route-mini img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.route-mini span { padding: 14px 16px; display: grid; gap: 4px; }
.route-mini small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--on-ink-3); }

/* the list of every route */
.route-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.route-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: var(--on-ink, #fff); }
.route-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.route-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(7, 9, 11, .92)); }
.route-card:hover img { transform: scale(1.06); }
.route-card__in { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: grid; gap: 4px; }
.route-card__in small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.route-card__in b { font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.route-card__in em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--pink); }


/* alternative-zwift.html: the side-by-side table */
.alt-table__wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--ink-line); }
.alt-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.alt-table th, .alt-table td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--ink-line); font-size: 15.5px; line-height: 1.5; }
.alt-table tbody tr:last-child th, .alt-table tbody tr:last-child td { border-bottom: 0; }
.alt-table thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-3); }
.alt-table thead th:nth-child(2) { color: var(--pink); }
.alt-table tbody th { font-weight: 700; width: 22%; }
.alt-table td:nth-child(2) { background: color-mix(in srgb, var(--pink) 7%, transparent); }
.alt-table td:nth-child(3) { color: var(--on-ink-3); }
.alt-honest { margin-top: 18px; padding: clamp(24px, 2.4vw, 34px); display: grid; gap: 12px; }
.alt-honest ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--on-ink-3); }
