/* Trail pages (/trails/…), generated by scripts/make_trails.py. Loads after site.css. */

.tp { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(72px, 10vw, 120px); }
.tp section, .tp-cta { margin-top: clamp(44px, 6vw, 72px); }
.tp h2 { margin: 0 0 18px; font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.tp h3 { margin: 26px 0 6px; font: 600 1.06rem/1.35 var(--body); color: var(--bone); }
.tp p { max-width: var(--measure); margin: 0 0 12px; color: #CFCDC6; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; font: 400 13px/1.4 var(--mono); color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--rule-2); }
.crumbs a { color: var(--dust); text-decoration: none; }
.crumbs a:hover { color: var(--signal-hi); }

.tp-head h1 { margin: 10px 0 0; font: 800 clamp(2.3rem, 6.4vw, 4.4rem)/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.005em; text-wrap: balance; }
.tp-head .lede { margin: 22px 0 0; max-width: 62ch; font-size: 1.14rem; color: var(--bone); }

.tp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(32px, 5vw, 56px); }
.tp-fig { margin: 0; }
.tp-fig svg { display: block; width: 100%; height: auto; background: var(--shelf); border: 1px solid var(--rule); }
.trail-map { border-radius: 12px 12px 0 0; }
.trail-map:last-of-type { border-radius: 12px; }
.trail-profile { border-top: 0 !important; border-radius: 0 0 12px 12px; }
.tp-fig text { font: 500 12px var(--mono); fill: var(--dim); }
.trail-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-map .casing { stroke: var(--basalt); stroke-width: 8; }
.trail-map .line { stroke: var(--signal); stroke-width: 3.5; stroke-dasharray: 9 5; }
.trail-map .bar { stroke: var(--dim); stroke-width: 2; stroke-linecap: butt; }
.trail-map .start { fill: var(--bone); stroke: var(--basalt); stroke-width: 3; }
.trail-map .end { fill: var(--basalt); stroke: var(--bone); stroke-width: 2.5; }
.trail-profile .fill { fill: rgba(240, 90, 40, 0.16); }
.trail-profile .line { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linejoin: round; }
.tp-fig figcaption { margin-top: 10px; font: 400 12.5px/1.5 var(--mono); color: var(--dim); }

.tp-facts { margin: 0; border-top: 1px solid var(--rule-2); }
.tp-facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.tp-facts dt { font: 500 12.5px/1.7 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.tp-facts dd { margin: 0; font-weight: 500; }
.tp-facts small { display: block; font: 400 13px/1.45 var(--body); color: var(--dust); }

.diff { display: inline-flex; align-items: center; gap: 7px; }
.diff::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--unrated); }
.diff--easy::before { background: var(--easy); }
.diff--moderate::before { background: var(--moderate); }
.diff--difficult::before { background: var(--difficult); }
.diff--extreme::before { background: var(--extreme); }

.tp-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: clamp(22px, 3.4vw, 34px); background: var(--shelf); border: 1px solid var(--rule-2); border-radius: 14px; }
.tp-cta h2 { margin: 0 0 8px; }
.tp-cta p { margin: 0; max-width: 56ch; color: var(--dust); }

.tp-note { padding-left: 18px; border-left: 2px solid var(--moderate); }
.tp-note .asof { font: 400 12.5px/1.5 var(--mono); color: var(--dim); }

.tp-table { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.tp-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tp-table th { padding: 11px 16px; text-align: left; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); background: var(--shelf); border-bottom: 1px solid var(--rule); }
.tp-table td { padding: 11px 16px; border-bottom: 1px solid var(--rule); color: var(--dust); vertical-align: top; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table td:first-child { font-weight: 600; }
.tp-table td:first-child a { color: var(--bone); text-decoration: none; }
.tp-table td:first-child a:hover { color: var(--signal-hi); text-decoration: underline; }
.tp-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-head + .tp-table { margin-top: clamp(32px, 5vw, 56px); }

.tp-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.tp-links li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.tp-links a { color: var(--bone); text-decoration: none; font-weight: 500; }
.tp-links a:hover { color: var(--signal-hi); }
.tp-links span { font: 400 12.5px/1.9 var(--mono); color: var(--dim); white-space: nowrap; }

@media (max-width: 860px) {
  .tp-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-table th:nth-child(2), .tp-table td:nth-child(2) { display: none; }
}
