/* Hikes & walks (/hikes/ and /hikes/<slug>/) */

/* Hero + skyline: the real front range, every hike placed where it tops out */
.tr-hero { padding-bottom: 0; overflow: hidden; }
.tr-hero h1 { max-width: 20ch; font-size: var(--h1-page); }
.tr-hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); margin: var(--sp-24) 0 0; }
.tr-hero-acts .share-btn, .hk-acts .share-btn { min-height: 44px; } /* the site's one Share button, sized to sit beside the main action */
.sk { position: relative; margin-top: clamp(18px, 4vw, 40px); height: clamp(170px, 25vw, 340px); }
.sk-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sk-peak { position: absolute; transform: translate(-50%, calc(-100% - 10px)); font: 600 .75rem/1.15 var(--sans); letter-spacing: .02em; color: var(--ink-2); text-align: center; white-space: nowrap; pointer-events: none; }
.sk-peak.sk-l { transform: translate(-12px, calc(-100% - 10px)); text-align: left; } .sk-peak.sk-r { transform: translate(calc(-100% + 12px), calc(-100% - 10px)); text-align: right; }
.sk-peak.sk-l::after { left: 12px; } .sk-peak.sk-r::after { left: auto; right: 12px; }
.sk-dot.sk-l .sk-tip { left: 0; transform: none; } .sk-dot.sk-r .sk-tip { left: auto; right: 0; transform: none; }
.sk-peak b { display: block; font-weight: 500; color: var(--ink-3); font-size: .68rem; }
.sk-peak::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 1px; height: 6px; background: var(--ink-3); opacity: .5; }
.sk-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; z-index: 2; }
.sk-dot::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c, #2f7d5b); box-shadow: 0 0 0 2.5px #fff8ee, 0 2px 6px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.sk-dot:hover::before, .sk-dot:focus-visible::before, .sk-dot.hl::before { transform: scale(1.45); }
.sk-open, .sk-route_open { --c: #2f7d5b; } .sk-partly_closed { --c: #c47a1c; } .sk-closed { --c: #b9472a; } .sk-no_closure_known { --c: #5f6b76; } .sk-unknown { --c: #8a8f96; }
.sk-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: var(--sp-4) var(--sp-8); border-radius: 8px; background: var(--ink); color: var(--paper);
  font: 600 .75rem/1.2 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.sk-dot:hover .sk-tip, .sk-dot:focus-visible .sk-tip, .sk-dot.hl .sk-tip { opacity: 1; }
.sk-end { position: absolute; bottom: 4px; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 248, 238, .78); }
.sk-w { left: 12px; } .sk-e { right: 12px; }
@media (max-width: 700px) { .sk-peak { font-size: .62rem; } .sk-peak b { display: none; } .sk-peak:nth-of-type(2), .sk-peak:nth-of-type(4), .sk-peak:nth-of-type(5) { display: none; } .sk-end { top: 6px; bottom: auto; color: var(--ink-3); } .sk-dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; } .sk-dot::before { width: 9px; height: 9px; } }

/* Today */
.tr-today { background: var(--sea-deep); color: #f3ece0; padding: var(--sp-32) 0 var(--sp-32); }
.td-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-8) var(--sp-20); margin-bottom: var(--sp-16); }
.td-head h2 { color: #fff8ee; }
.td-when { margin: 0; font-size: .9rem; color: rgba(243, 236, 224, .72); }
.td-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-12); }
@media (max-width: 600px) { .td-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } .td-closed { grid-column: 1 / -1; } .td-tile { padding: var(--sp-16); } .td-big { font-size: 1.5rem; } }
.td-tile { padding: var(--sp-16) var(--sp-16); border-radius: var(--radius); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.td-k { margin: 0 0 var(--sp-8); font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--seaglass); }
.td-big { margin: 0; font: 600 2.1rem/1.05 var(--serif); color: #fff8ee; letter-spacing: -.01em; }
.td-big small { font: 500 .9rem var(--sans); color: rgba(243, 236, 224, .75); }
.td-s { margin: var(--sp-8) 0 0; font-size: .82rem; line-height: 1.45; color: rgba(243, 236, 224, .8); }
.td-s a { color: var(--sun-2); font-weight: 600; }
.td-gauge { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); margin-top: var(--sp-8); }
.td-gauge span { height: 7px; border-radius: 4px; opacity: .3; }
.td-gauge .on { opacity: 1; box-shadow: 0 0 0 2px #fff8ee; }
.td-gauge .g0 { background: #5aa469; } .td-gauge .g1 { background: #4f8fc0; } .td-gauge .g2 { background: #e3c13b; } .td-gauge .g3 { background: #e48a2a; } .td-gauge .g4 { background: #d8452f; }
.td-alerts { list-style: none; margin: var(--sp-16) 0 0; padding: 0; display: grid; gap: var(--sp-8); }
.td-alerts li { padding: var(--sp-8) var(--sp-16); border-radius: var(--radius-sm); background: rgba(239, 161, 58, .16); font-size: .9rem; }

/* Finder */
.tr-explore { padding: var(--sp-32) 0 0; }
.tr-finder { display: grid; gap: var(--sp-8); margin-bottom: var(--sp-24); }
.tf-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); }
.tf-row button { font: 600 .82rem/1 var(--sans); padding: var(--sp-8) var(--sp-16); border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tf-row button:hover { border-color: var(--ink-3); }
.tf-row button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tf-sort button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); }
.tf-k { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: var(--sp-4); }
.tf-countrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-16); min-height: 40px; margin-top: 2px; }
.tf-count { margin: 0; font-size: .9rem; color: var(--ink-3); }
.tf-count:focus { outline: none; }
/* list narrowed to the map view: the way back */
.tf-areaall { font: 600 .82rem/1 var(--sans); min-height: 40px; padding: .6em 1.05em; border-radius: var(--r-ctl); border: 1.5px solid var(--sea); background: #fff; color: var(--sea); cursor: pointer; transition: background .15s, color .15s; }
.tf-areaall:hover { background: var(--sea); color: #fff; }
.tf-count b { color: var(--ink); }

/* List + map */
.tr-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-24); }
.tr-mapcol { order: -1; }
@media (min-width: 1000px) {
  .tr-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .tr-mapcol { order: 0; position: sticky; top: 92px; }
  .tr-mapcol .tr-map { height: calc(100vh - 120px); max-height: 820px; }
}
.tr-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); background: var(--paper-2); }
.tr-map { height: min(52vh, 460px); min-height: 320px; }
.tr-cap { position: absolute; left: 12px; bottom: 12px; right: 56px; margin: 0; max-width: 30em; padding: var(--sp-8) var(--sp-16); border-radius: var(--radius-sm);
  background: rgba(250, 244, 234, .95); color: var(--ink); font-size: .9rem; pointer-events: none; box-shadow: var(--shadow-1); }
.tr-cap:empty { display: none; }
.tr-cap a { pointer-events: auto; color: var(--tile); font-weight: 600; }
.tr-legend { position: absolute; left: 12px; top: 12px; margin: 0; padding: var(--sp-8) var(--sp-12); list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-12); border-radius: var(--radius-sm);
  background: rgba(250, 244, 234, .92); font-size: .75rem; color: var(--ink-2); box-shadow: var(--shadow-1); max-width: calc(100% - 70px); }
.tr-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: var(--sp-8); vertical-align: middle; }
.lg-open { background: #2f7d5b; } .lg-part { background: #c47a1c; } .lg-closed { background: #b9472a; } .lg-known { background: #5f6b76; }

/* the two groups, Hikes then Easy walks: heading close to its own list, groups clearly apart */
.tr-groups { display: grid; gap: var(--sp-32); }
.tr-group { display: grid; gap: var(--sp-12); }
.tr-group[hidden] { display: none; }
.tr-gh h2 { margin: 0; }
.tr-gh p { margin: var(--sp-4) 0 0; font-size: .9rem; color: var(--ink-3); }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-16); }
.tr-card { position: relative; display: grid; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s var(--ease); }
.tr-card:hover, .tr-card.hl { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tr-card.hl { box-shadow: 0 0 0 2px var(--sun), var(--shadow-2); }
.tr-card[hidden] { display: none; }
.tr-card h3 { margin: 0; font-size: 1.3rem; }
.tr-link { color: inherit; text-decoration: none; }
.tr-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tr-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.tr-top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-8); }
.tr-town { font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tr-chip { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .03em; padding: var(--sp-8) var(--sp-12); border-radius: var(--r-tag); color: #fff; white-space: nowrap; }
.tr-closed { background: #b9472a; } .tr-part { background: #9a5a0e; } .tr-open { background: #2f7d5b; } .tr-known { background: #5f6b76; } .tr-unk { background: #6c7279; } /* 4.9:1 with white (a11y gate) */
.tr-dest { margin: 0; font-size: .9rem; color: var(--ink-2); }
.ef { font-weight: 600; }
.ef-easy { color: #2f7d5b; } .ef-moderate { color: #1d5a6e; } .ef-hard { color: #9a5a0e; } .ef-very-hard { color: #a23c22; }
.tr-mid { display: grid; gap: var(--sp-8); align-items: end; }
@media (min-width: 560px) { .tr-mid { grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-24); } .tr-mid .tr-stats { flex-direction: column; gap: var(--sp-8); } }
.tr-spark { width: 100%; height: 84px; display: block; }
.sp-fill { fill: color-mix(in srgb, var(--tile-2) 22%, transparent); }
.sp-line { fill: none; stroke: var(--tile); stroke-width: 2; stroke-linejoin: round; }
.tr-web path { fill: none; stroke: var(--sea); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.tr-stats { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-24); margin: 0; }
.tr-stats div { display: grid; }
.tr-stats dt { font: 600 .68rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tr-stats dd { margin: 0; font: 600 1.12rem/1.25 var(--sans); color: var(--ink); }
.tr-order { margin: 0; font-size: .9rem; color: var(--ink-2); }
.tr-order a { color: var(--tile); font-weight: 600; position: relative; z-index: 1; }
.tr-cond { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); font-size: .9rem; }
.tr-cond li { padding: var(--sp-8) var(--sp-12); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
.tr-cond .tc-flood, .tr-cond .tc-coastal_flood { background: #f8e1d9; }
.tr-cond .tc-hot, .tr-cond .tc-heat_alert { background: #fbeccf; }
.tr-cond .tc-rain { background: #e3eef1; }
.tr-tags { margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.tr-tags span { font-size: .75rem; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: var(--paper-2); color: var(--ink-2); }
.tr-acts { display: flex; gap: var(--sp-8); margin-top: 2px; }
.tr-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; font: 600 .82rem/1 var(--sans); padding: var(--sp-8) var(--sp-16); border-radius: var(--r-ctl); border: 1px solid var(--line);
  background: #fff; color: var(--sea); cursor: pointer; text-decoration: none; }
.tr-btn:hover { border-color: var(--sea); }
.tr-none { color: var(--ink-3); padding: var(--sp-8) 0; }

.tr-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-32); margin: var(--sp-64) 0 var(--sp-20); }
.tr-how p { color: var(--ink-2); }
@media (max-width: 860px) { .tr-how { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* One hike */
.hk-hero { padding-bottom: var(--sp-24); }
.hk-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 6.4vw, 5.4rem); /* type-ok: display */ }
.hk-crumb { margin: 0; font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hk-crumb a { color: var(--tile); text-decoration: none; }
.hk-status { display: flex; gap: var(--sp-16); align-items: flex-start; margin: var(--sp-8) 0 0; padding: var(--sp-16) var(--sp-16); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); max-width: 46em; }
.hk-status > div { display: grid; gap: var(--sp-8); }
/* SBR-374: on a phone the badge sits above the status lines, so long alerts get the card's full width */
@media (max-width: 600px) { .hk-status { flex-direction: column; gap: var(--sp-12); } .hk-status > .tr-chip { align-self: flex-start; } }
.hk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); margin-top: var(--sp-24); }
.hk-body { padding: var(--sp-8) 0 70px; }
.hk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 0 0 var(--sp-24); border-radius: var(--radius); overflow: hidden; background: var(--line); box-shadow: var(--shadow-1); }
.hk-stats div { background: #fff; padding: var(--sp-16) var(--sp-16); }
.hk-stats dt { font: 600 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.hk-stats dd { margin: var(--sp-4) 0 0; font: 600 1.5rem/1.1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.hk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-24); }
@media (min-width: 1000px) { .hk-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.hk-main { display: grid; gap: var(--sp-16); align-content: start; }
.hk-prof { margin: 0; padding: var(--sp-16) var(--sp-16) var(--sp-12); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.pf-plot { position: relative; height: clamp(190px, 26vw, 300px); }
.pf-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; overflow: visible; }
.hk-prof .gr { stroke: var(--line); stroke-width: 1; }
.hk-prof .pl { fill: none; stroke: var(--tile); stroke-width: 3; stroke-linejoin: round; }
.hk-prof .cl { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.hk-prof .hit { cursor: crosshair; }
.pf-y { position: absolute; left: 0; transform: translateY(-115%); font: 500 .75rem/1 var(--sans); color: var(--ink-3); pointer-events: none; }
.pf-lb { position: absolute; transform: translateY(calc(-100% - 8px)); font: 600 .82rem/1 var(--sans); color: var(--ink); pointer-events: none;
  padding: var(--sp-4) var(--sp-8); border-radius: 6px; background: rgba(255, 255, 255, .9); }
.pf-start { left: 0; } .pf-end { right: 0; }
.pf-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.pf-x { position: relative; height: 22px; margin-top: var(--sp-8); font: 500 .75rem/1 var(--sans); color: var(--ink-3); }
.pf-x span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.pf-x span:first-child { transform: none; } .pf-x span:last-child { transform: translateX(-100%); }
.hk-prof figcaption { padding: var(--sp-4) 0 0; font-size: .82rem; color: var(--ink-3); min-height: 1.6em; }
.hk-prof figcaption b { color: var(--ink); }
.hk-map { height: min(58vh, 520px); }
.hk-side { display: grid; gap: var(--sp-20); align-content: start; }
.hk-notes, .hk-near { padding: var(--sp-20) var(--sp-24); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.hk-notes h2, .hk-near h2 { margin-bottom: var(--sp-8); }
.hk-notes ul { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: var(--sp-8); font-size: .9rem; color: var(--ink); }
.hk-notes .src { font-size: .75rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.hk-gen { background: var(--paper-2); box-shadow: none; }
.hk-gen .src { color: var(--ink-2); }
.hk-near ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.hk-near a { display: grid; gap: var(--sp-4); padding: var(--sp-12) var(--sp-16); border-radius: var(--radius); background: var(--paper); color: inherit; text-decoration: none; transition: background .15s; }
.hk-near a:hover { background: var(--paper-2); }
.hk-near .tr-chip { justify-self: start; }
.hk-near b { font: 600 1rem/1.2 var(--sans); }
.hk-near small { font-size: .82rem; color: var(--ink-2); }
.hk-hood { margin: 0; padding: 0 var(--sp-4); font-size: .9rem; color: var(--ink-2); }
.hk-hood a { font-weight: 600; color: var(--tile-deep); }
.hk-back { margin: var(--sp-16) 0 0; }
.hk-back a { color: var(--tile); font-weight: 600; text-decoration: none; }
.hk-flag { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff8ee, 0 2px 8px rgba(0, 0, 0, .4); }
.hk-me { width: 16px; height: 16px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--ink), 0 2px 8px rgba(0, 0, 0, .4); }
.hk-basics { margin: 0 0 var(--sp-24); padding: var(--sp-20) var(--sp-24); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.hk-basics h2 { margin-bottom: var(--sp-12); }
.hk-basics dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-16); margin: 0; }
@media (min-width: 700px) { .hk-basics dl { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-16) var(--sp-24); } }
.hk-basics dt { font: 600 .68rem/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.hk-basics dd { margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-4); font-size: .9rem; line-height: 1.4; color: var(--ink); }
.hk-basics .src { font-size: .75rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* Hike-day forecast (2026-11-22; tiers 2026-11-23): the week strip under "On the trails today", a tier tag on each card,
   8 days on a hike page. The marks are .tmark (tier.css); the word sits under each one */
.hw { padding: var(--sp-24) 0 var(--sp-8); }
.hw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4) var(--sp-16); margin-bottom: var(--sp-12); }
.hw-head h2 { margin: 0; }
.hw-pick { margin: 0; color: var(--ink-2); }
.hw-row { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(76px, 1fr); gap: var(--sp-8); overflow-x: auto; scrollbar-width: none; }
.hw-row::-webkit-scrollbar { display: none; }
/* homes.css has its own .hw-row (auto 1fr columns, baseline): keep it off the hike week, or the first day squeezes to its content */
.hw .hw-row { grid-template-columns: none; align-items: stretch; gap: var(--sp-8); }
.hw-d { display: grid; justify-items: center; gap: var(--sp-4); padding: var(--sp-8) var(--sp-4); border: 1.5px solid var(--line); border-radius: var(--radius); background: #fffaf2; text-align: center; }
.hw-d.is-top { border-color: var(--ink); }
.hw-w { display: grid; font: 600 .9rem/1.15 var(--sans); }
.hw-w small, .hw-n small { font-weight: 500; font-size: .68rem; color: var(--ink-3); }
.hw-n { display: grid; min-height: 2.2em; font: 500 .75rem/1.2 var(--sans); color: var(--ink-2); }
.hw-s { --sz: 36px; margin: 0; }
.hw-n .hw-tw { font: 600 .82rem/1.2 var(--sans); color: var(--ink); }
.hw-fog, .hw-k { margin: var(--sp-8) 0 0; font-size: .9rem; color: var(--ink-2); }
.hw-k { color: var(--ink-3); font-size: .82rem; }
.tr-top:has(.tr-score) { justify-content: flex-start; }
.tr-top:has(.tr-score) .tr-town { margin-left: auto; }
.tr-s { margin: 0; }
.tr-s .ttag-w { font-size: .82rem; }
.tr-today-why { margin: var(--sp-4) 0 0; font-size: .82rem; color: var(--ink-2); }
.hf { margin: var(--sp-24) 0; }
.hf-row { list-style: none; margin: var(--sp-12) 0 var(--sp-8); padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: var(--sp-8); overflow-x: auto; scrollbar-width: none; }
.hf-row::-webkit-scrollbar { display: none; }
.hf-d { display: grid; justify-items: center; align-content: start; gap: var(--sp-4); padding: var(--sp-8); border: 1.5px solid var(--line); border-radius: var(--radius); background: #fffaf2; text-align: center; font-size: .75rem; color: var(--ink-2); }
.hf-w { display: grid; font: 600 .9rem/1.15 var(--sans); color: var(--ink); }
.hf-w small { font-weight: 500; font-size: .68rem; color: var(--ink-3); }
.hf-s { --sz: 40px; margin: 0; }
.hf-tw { font: 600 .9rem/1.15 var(--sans); color: var(--ink); }
.hf-why { color: var(--ink); }
.hf-c { color: var(--ink-3); font-size: .68rem; }
.hf-d.is-closed .hf-x { font-weight: 600; color: var(--tile-deep); padding: var(--sp-8) 0; }
@media (max-width: 600px) { .hw-row { grid-auto-columns: minmax(66px, 1fr); } .hf-row { grid-auto-columns: minmax(92px, 1fr); } }

/* ---------- /hikes/ flagship (2026-11-25): the answer first, photo-or-drawing cards, the finder ---------- */
.tr-head { display: grid; gap: var(--sp-24); align-items: end; }
@media (min-width: 900px) { .tr-head { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: var(--sp-48); } .tr-head.no-ans { grid-template-columns: 1fr; } }
.tr-intro .crumbs { margin-bottom: var(--sp-12); }
.tr-intro h1 { margin-bottom: var(--sp-12); }
.tr-intro .lede { margin: 0; }
.tr-intro .tr-hero-acts { margin-top: var(--sp-20); }
/* the answer card: the day's call as big as a headline, on the page's deep sea */
.tr-ans { position: relative; padding: var(--sp-24); border-radius: var(--radius); background: var(--sea-deep); color: #f3ece0; box-shadow: var(--shadow-2); }
.tr-ans .ta-v[hidden] { display: none; }
.ta-when { margin: 0 0 var(--sp-12); font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--seaglass); }
.ta-call { display: flex; align-items: center; gap: var(--sp-16); }
.ta-mark.tmark { --sz: 64px; flex: none; box-shadow: 0 0 0 2px rgba(255, 250, 242, .85); }
.ta-word { margin: 0; font: 400 var(--h2-sec)/1.05 var(--serif); color: #fff8ee; }
.ta-word b { font-weight: 400; }
.ta-pick { margin: var(--sp-16) 0 0; font-size: 1rem; line-height: 1.45; }
.ta-pick a { color: var(--sun-2); font-weight: 600; }
.ta-pick span { color: rgba(243, 236, 224, .78); }
.ta-facts { list-style: none; margin: var(--sp-16) 0 0; padding: var(--sp-12) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-20); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; color: rgba(243, 236, 224, .86); }
.ta-facts b { color: #fff8ee; }
.ta-checked { margin: var(--sp-12) 0 0; font-size: .82rem; color: rgba(243, 236, 224, .68); }
.ta-checked a { color: inherit; }
@media (max-width: 560px) { .tr-ans { padding: var(--sp-20); } .ta-mark.tmark { --sz: 52px; } }

/* Find a hike: a heading, then labeled rows of choices */
.tr-exhead { margin-bottom: var(--sp-16); }
.tr-exhead h2 { margin: 0; }
.tr-exhead p { margin: var(--sp-4) 0 0; color: var(--ink-3); font-size: .9rem; }
.tr-finder .tf-k { display: inline-block; min-width: 6.5em; }
.tf-want button { display: inline-flex; align-items: center; gap: var(--sp-8); }
.tf-want button small { font: 600 .68rem/1 var(--sans); padding: 2px var(--sp-4); border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tf-want button[aria-pressed="true"] small { background: rgba(255, 255, 255, .18); color: var(--paper); }
.tf-want button[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }
.tf-where { gap: var(--sp-8) var(--sp-24); }
.tf-town { font: 600 .82rem/1 var(--sans); min-height: 36px; padding: var(--sp-8) var(--sp-32) var(--sp-8) var(--sp-12); border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tf-sort { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8); }
.tf-sort button { font: 600 .82rem/1 var(--sans); padding: var(--sp-8) var(--sp-16); border-radius: var(--r-ctl); border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.tf-sort button[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: var(--paper); }
.tf-clear { font: 600 .82rem/1 var(--sans); min-height: 40px; padding: .6em 1.05em; border-radius: var(--r-ctl); border: 1.5px solid var(--tile); background: #fff; color: var(--tile); cursor: pointer; }
.tf-clear:hover { background: var(--tile); color: #fff; }
.tf-clear[hidden], .tf-areaall[hidden] { display: none; }
.tr-shared { list-style: none; margin: 0 0 var(--sp-16); padding: 0; display: grid; gap: var(--sp-8); }
.tr-shared li { padding: var(--sp-8) var(--sp-16); border-radius: var(--radius-sm); background: #e3eef1; font-size: .9rem; }
/* phones: each row of choices scrolls sideways behind its label, so the finder stays short */
@media (max-width: 560px) {
  .tr-finder .tf-k { min-width: 0; flex: none; }
  .tr-finder > *, .tf-sort, .tf-town { min-width: 0; } /* a sideways-scrolling row must not widen the page */
  .tr-finder { grid-template-columns: minmax(0, 1fr); }
  .tf-len, .tf-want, .tf-sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--sp-16)); padding-right: var(--sp-16); }
  .tf-len::-webkit-scrollbar, .tf-want::-webkit-scrollbar, .tf-sort::-webkit-scrollbar { display: none; }
  .tf-len button, .tf-want button, .tf-sort button { flex: none; }
  .tf-where { gap: var(--sp-8); }
  .tf-town { flex: 1; }
  .tf-sort { width: 100%; }
}

/* The card: photo (or the drawing) beside the facts on wider screens, on top on a phone */
.tr-media { position: relative; min-height: 180px; background: var(--night-2); }
.tr-media .pcard { position: absolute; inset: 0; margin: 0; }
.tr-media .pcard img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
/* the credit opens inside the photo's own width, so a narrow side photo doesn't clip it (local-hub.css .lh-card) */
.tr-media .pcred { top: var(--sp-8); left: var(--sp-8); right: var(--sp-8); bottom: auto; z-index: 2; pointer-events: none; }
.tr-media .pcred summary { margin-left: auto; pointer-events: auto; }
.tr-media .pcred-t { top: 34px; bottom: auto; left: 0; right: 0; width: auto; max-width: none; pointer-events: auto; }
.tr-media .tr-score { position: absolute; left: var(--sp-8); bottom: var(--sp-8); z-index: 1; padding: var(--sp-4) var(--sp-8) var(--sp-4) var(--sp-4); border-radius: 999px; background: rgba(255, 250, 242, .94); box-shadow: var(--shadow-1); }
.tr-body { display: grid; gap: var(--sp-8); align-content: start; padding: var(--sp-16) var(--sp-20) var(--sp-20); min-width: 0; }
.tr-body .tr-mid { grid-template-columns: 1fr; gap: var(--sp-8); align-items: start; }
.tr-body .tr-mid .tr-stats { flex-direction: row; gap: var(--sp-4) var(--sp-24); }
.tr-body .tr-spark { height: 48px; }
@media (min-width: 560px) {
  .tr-card { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
  .tr-media { min-height: 100%; }
}
@media (max-width: 559px) { .tr-media { aspect-ratio: 16 / 9; min-height: 0; } }
/* the drawing for a hike without a photo: the ridge behind it and the route, from our own data */
.tr-art { position: absolute; inset: 0; margin: 0; background: linear-gradient(180deg, #f6dcc0 0%, #e9b48f 46%, #b98a8f 100%); }
.tr-art svg { width: 100%; height: 100%; display: block; }
.ta-ridge { fill: #4d4266; opacity: .92; }
.ta-trace { fill: none; stroke: #173f52; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ta-dot { fill: #efa13a; stroke: #fff8ee; stroke-width: 2.5; }
.tr-art figcaption { position: absolute; right: var(--sp-8); top: var(--sp-8); padding: 2px var(--sp-8); border-radius: 999px; background: rgba(255, 250, 242, .8); font: 600 .68rem/1.4 var(--sans); letter-spacing: .04em; color: var(--ink-2); }
.tr-tags .tg-shade { background: #dfeadf; color: #2b5a3c; }
@media (prefers-reduced-motion: reduce) { .tr-card { transition: none; } }

/* No JS: the finder, the map and the Map buttons can't work, so the list stands alone (as on /eat/, /late/) */
.no-js .tr-finder, .no-js .tr-split .tr-mapcol, .no-js .tr-mapbtn { display: none; }
.no-js .tr-split { grid-template-columns: minmax(0, 1fr); }
.hw-row:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
