/* trail-note only. Tokens from ds.css only. Signature element: the weekend card (two day columns with a grade chip) and the 100-mountain map.
   Copied to public/trail.css at build time so the Worker-rendered pages (/m/*, /park/*, /region/*, /season/*, /p/*) use the same styles. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label { font-weight: 700; color: var(--text-2); margin: var(--s4) 0 var(--s2); font-size: var(--t-sm); }
.tool .results li a { font-weight: 700; }
.chips.regions { margin-bottom: var(--s3); }
.chips.regions a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; }
.chips.regions a:hover { border-color: var(--accent); color: var(--accent); }
.top-weekend .list .v { font-weight: 400; }

/* grade chips: good = accent, caution = ink outline, poor = error colour; never colour alone (the word is always written) */
.grade { display: inline-block; padding: 0 var(--s2); border-radius: var(--r1); font-size: var(--t-sm); font-weight: 700; line-height: 1.6; border: 1px solid var(--rule); color: var(--text-2); white-space: nowrap; }
.grade.g-good { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }
.grade.g-fair { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.grade.g-poor { background: var(--err-weak); border-color: var(--err); color: var(--err); }

/* weekend card */
.wk-card h2 { margin-top: 0; }
.wk-days { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: var(--s4) 0; }
.wk-day { border: 1px solid var(--rule); border-radius: var(--r2); padding: var(--s4) var(--s5); background: var(--surface); }
.wk-date { margin: 0; font-weight: 700; font-size: var(--t-body); display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.wk-sky { margin: var(--s2) 0 0; font-size: var(--t-h2); font-weight: 700; color: var(--ink); line-height: 1.3; }
.wk-t { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-list { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.wk-list li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s1) 0; border-top: 1px solid var(--rule); font-size: var(--t-sm); }
.wk-list b { font-variant-numeric: tabular-nums; }
.wk-sun { margin: var(--s3) 0 0; color: var(--text-2); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.fire { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r1); border: 1px solid var(--rule); font-size: var(--t-sm); line-height: 1.6; }
.fire.on { border-color: var(--err); background: var(--err-weak); }
.fire b { margin-right: var(--s2); }
.wk-table td, .wk-table th { white-space: nowrap; }

/* courses and the finish-time calculator */
.courses td[lang] { min-width: 14rem; }
.calc { margin-top: var(--s5); }
.calc h3, .plan-card h2 { margin-top: 0; }
.result-line { margin: var(--s4) 0 0; font-size: var(--t-h2); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.park-courses td[lang] { min-width: 14rem; }
.plan-card { margin-top: var(--s6); }
.plan-out { margin-top: var(--s4); padding: var(--s4); border-radius: var(--r2); background: var(--accent-weak); }
.plan-out a.link { word-break: break-all; font-weight: 700; }
.ko-src summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; font-weight: 600; }
.sec h3 { font-size: var(--t-body); margin: var(--s5) 0 var(--s2); }
.ai-label { display: inline-block; margin-left: var(--s2); }

/* app */
.app-tabs .chips a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.app-tabs .chips a[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.map-card h2 { margin-top: 0; }
.map-grid { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 40rem) { .map-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }
.summit-map { width: 100%; height: auto; max-width: 20rem; display: block; }
.summit-map .frame { fill: var(--accent-weak); stroke: var(--rule); }
.summit-map .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.summit-map .dot.on { fill: var(--accent); }
.map-card .big { font-size: var(--t-h2); font-weight: 700; color: var(--accent); margin: 0; }
.card-maker { margin-top: var(--s3); }
.card-maker img { display: block; width: 100%; max-width: 16rem; height: auto; border: 1px solid var(--rule); border-radius: var(--r2); }
.list.favs .v, .list.climbs .v, .list.plans .v { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; align-items: center; font-weight: 400; }
.list.climbs .k, .list.plans .k { max-width: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.check { display: flex; gap: var(--s3); align-items: center; min-height: 2.75rem; margin: 0 0 var(--s2); }
.check input { width: 1.25rem; height: 1.25rem; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.fields { align-items: start; }
.fields.two { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.table tbody th[scope='row'] { white-space: normal; min-width: 7rem; }
.table.cmp td { white-space: nowrap; }
.table td.num { white-space: nowrap; }
@media (max-width: 30rem) { .wk-sky { font-size: var(--t-body); } .list.favs > li, .list.climbs > li, .list.plans > li { flex-wrap: wrap; } .list.favs .v, .list.climbs .v, .list.plans .v { justify-content: flex-start; text-align: left; } }
/* Home weekend list: the English day labels are longer, so the grades wrap under the name instead of pushing past 360px (QA 2026-11-26). */
.top-weekend .list > li { flex-wrap: wrap; }
.top-weekend .list .v { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: flex-end; }
.list > li.stack .route { margin: var(--s2) 0 0; font-weight: 600; line-height: 1.6; }
.brief-pick { font-weight: 700; color: var(--accent); margin: 0 0 var(--s2); }
/* A card followed by a section or another card touched it (0px gap on mountain, app and settings pages; independent QA 2026-11-26). */
.panel + .sec, .panel + .panel, .panel + section { margin-top: var(--s7); }
