/* Field guide for the central highlands, within the shared weather guide shell. */
.hiking-guide {
  --ink: #16352c;
  --muted: #52675c;
  --green: #17664a;
  --line: #ccdcd0;
  --paper: #fff;
  --pale: #eff5ed;
  --gold: #855015;
  max-width: 75rem;
  margin: 0 auto;
  color: var(--ink);
}
:root[data-theme="dark"] .hiking-guide {
  --ink: #e9f3e9;
  --muted: #bbcec3;
  --green: #98dabb;
  --line: #3a564b;
  --paper: #182c27;
  --pale: #203a31;
  --gold: #f3c581;
}
.hiking-guide [hidden] { display: none !important; }
.hiking-guide a { color: var(--green); text-underline-offset: .2em; }
.hiking-guide :is(a, summary, button):focus-visible { outline: 3px solid #2481dd; outline-offset: 3px; }
.hiking-guide h2, .hiking-guide h3, .hiking-guide h4, .hiking-guide figure, .hiking-guide section, .hiking-guide p { margin: 0; }
.hiking-guide svg { flex: none; }
.hiking-guide [id] { scroll-margin-top: 1rem; }
.hiking-guide .guide-location-row { margin: 0 0 clamp(1rem,1.5vw,1.5rem); }
.hike-hero {
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(1.15rem, 2vw, 1.8rem);
  background: #294435;
  color: white;
  min-height: clamp(18rem, 28vw, 23rem);
}
.hike-cover, .hike-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hike-cover { z-index: -2; object-fit: cover; object-position: 55% 51%; }
.hike-hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #08231eea, #102b21c4 30%, #16362937 63%, transparent 83%),
              linear-gradient(0deg, #0b251f86 0%, transparent 48%);
}
.hike-hero-copy { max-width: 42rem; padding: clamp(1.7rem, 4vw, 3.4rem); }
.hike-region, .hike-label, .local-day { font-size: .83rem; font-weight: 730; letter-spacing: .055em; }
.hike-region { display: inline-flex; align-items: center; gap: .4rem; color: #edf9d7; }
.hike-region svg { width: 1rem; height: 1rem; }
.hike-hero h1 {
  color: white;
  font-size: clamp(3rem, 5.7vw, 5.25rem);
  line-height: 1.1;
  letter-spacing: -.057em;
  font-weight: 740;
  margin: .15rem 0 .75rem;
}
.hike-hero h1 em { white-space: nowrap; color: #e0f5bc; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; }
.hike-deck { max-width: 28rem; color: #f4f8f0; font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.5; }
.hero-actions, .trail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.hero-actions { margin-top: 1.25rem; }
.hiking-guide .hike-action, .hiking-guide .guide-share button {
  display: inline-flex; gap: .48rem; align-items: center; justify-content: center;
  min-height: 44px; padding: .52rem .88rem; border-radius: .75rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--green);
  text-decoration: none; font: inherit; font-size: .92rem; font-weight: 680; line-height: 1.25;
}
.hike-action svg, .trail-phone svg { width: 1.08rem; height: 1.08rem; }
.hiking-guide .hike-hero-action { color: #143b29; border-color: #e3f3c9; background: #e3f3c9; }
.hiking-guide .hero-actions .guide-share { margin: 0; position: relative; }
.hiking-guide .hero-actions .guide-share button { background: #133026bc; color: #fff; border-color: #ffffff75; margin: 0; }
.hiking-guide .guide-share small { color: white; }
.hiking-guide .guide-share input:not([hidden]) { max-width: 10rem; }
.hiking-guide .hero-caption {
  position: absolute; right: 1.25rem; bottom: 1rem; color: white; text-decoration: none;
  font-size: .8rem; background: #14291fbb; border-radius: 2rem; padding: .24rem .6rem;
}
.hike-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17.5rem, .44fr); gap: clamp(1rem, 2.1vw, 1.75rem); margin: 1.6rem 0; align-items: start; }
.hike-main, .hike-aside { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.hike-select-title, .hike-select-title nav { display:flex; align-items:center; flex-wrap:wrap; gap:.2rem .75rem; }
.hike-select-title { justify-content:space-between; }
.hike-select-title a { display:inline-flex; align-items:center; min-height:44px; font-size:.91rem; font-weight:620; }
.hiking-guide h2 { color: var(--ink); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.23; letter-spacing: -.045em; }
.hike-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin: .85rem 0; }
.hiking-guide .hike-choice {
  display: flex; align-items: center; gap: .53rem; padding: .72rem .62rem;
  color: var(--ink); text-decoration: none; min-height: 4.15rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper);
}
.hike-choice strong, .hike-choice small { display: block; line-height: 1.25; }
.hike-choice strong { font-size: .99rem; margin-top: .18rem; }
.hike-choice small { font-size: .79rem; color: var(--muted); }
.hike-choice-icon { width: 2.2rem; height: 2.2rem; flex: none; display: grid; place-items: center; border-radius: .7rem; }
.hike-choice-icon svg { width: 1.45rem; height: 1.45rem; }
.tone-waterfall { background: #d6ebf3; color: #21617c; }
.tone-ridge { background: #dcebd0; color: #386c39; }
.tone-tent { background: #f5e5cd; color: #855514; }
.hiking-guide .hike-choice[aria-current="true"] { border-color: var(--green); background: var(--pale); box-shadow: inset 0 0 0 1px var(--green); }
.hike-choice:focus-visible, .hike-action:focus-visible { z-index: 1; }
.hike-panel, .hike-map-box, .hike-aside section, .hike-sources { background: var(--paper); border: 1px solid var(--line); border-radius: 1.15rem; }
.hike-panel { padding: clamp(1rem, 2.4vw, 1.75rem); }
.hike-panel + .hike-panel { margin-top: .75rem; }
.hiking-guide [hidden] + .hike-panel { margin-top: 0; }
.hike-selector.has-choice .hike-panel { margin-top: 0; }
.route-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7.5rem, .42fr); align-items: start; gap: 1rem; }
.hike-label { color: var(--green); font-size: .84rem; letter-spacing: .045em; }
.hike-panel h3 { font-size: clamp(1.85rem, 3.1vw, 2.8rem); line-height: 1.12; letter-spacing: -.052em; margin: .25rem 0 .65rem; }
.route-copy > p:last-child, .route-notes p, .hike-aside p, .map-note, .hike-sources p { color: var(--muted); font-size: 1rem; line-height: 1.53; }
.route-photo img { display: block; width: 100%; height: clamp(6.3rem, 12vw, 8.25rem); object-fit: cover; border-radius: .8rem; }
.route-photo figcaption { color: var(--muted); font-size: .77rem; line-height: 1.35; margin-top: .36rem; }
.hike-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 1.15rem 0; border-block: 1px solid var(--line); padding: .74rem 0; }
.hike-facts > div { border-inline-start: 1px solid var(--line); padding-inline-start: .9rem; }
.hike-facts > div:first-child { border: 0; padding-inline-start: 0; }
.hike-facts dt { font-size: .85rem; color: var(--muted); }
.hike-facts dd { margin: .12rem 0 0; font-size: clamp(1.12rem, 2.3vw, 1.53rem); font-weight: 740; letter-spacing: -.04em; white-space: nowrap; line-height: 1.25; }
.route-notes { display: grid; gap: .8rem; }
.route-notes h4, .aside-title, .sky-head, .map-section-head, .map-section-head span { display: flex; align-items: center; gap: .45rem; }
.route-notes h4 { font-size: 1rem; line-height: 1.45; margin-bottom: .13rem; }
.route-notes h4 svg, .aside-title > svg { width: 1.1rem; height: 1.1rem; color: var(--green); }
.trail-actions { margin-top: 1.05rem; }
.hiking-guide .is-solid { background: #205940; color: white; border-color: #205940; }
:root[data-theme="dark"] .hiking-guide .is-solid { background: #b4e3bc; color: #123927; border-color: #b4e3bc; }
.trail-phone { display: inline-flex; align-items: center; gap: .38rem; min-height: 44px; padding: .2rem .1rem; font-size: .92rem; font-weight: 610; }
.hike-message { border-top:1px solid var(--line); margin-top:.8rem; padding-top:.52rem; }
.hike-message summary { color:var(--green); cursor:pointer; padding:.25rem 0; font-weight:640; font-size:.94rem; }
.hike-message p { margin:.65rem 0; line-height:1.55; }
.hike-message p[lang=en],.hike-message small { color:var(--muted); }
.hike-message small { display:inline-block; padding:.3rem .5rem; }
.hike-map-box, .hike-aside section, .hike-sources { padding: clamp(1rem, 2vw, 1.4rem); }
.hike-aside h2 { font-size: clamp(1.2rem, 1.65vw, 1.45rem); }
.hiking-guide .hike-sky { background: var(--pale); }
.sky-head { justify-content: space-between; }
.sky-head > svg { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.hike-sky .local-day { margin-top: .45rem; font-size: .85rem; letter-spacing: .008em; color: var(--muted); }
.daylight-horizon { position: relative; height: 3rem; margin-top: .65rem; }
.daylight-horizon svg { width: 100%; height: 100%; overflow: visible; }
.sun-fill { fill: #e9c15428; }
.sun-arc { fill: none; stroke: #a76f20; stroke-width: 1.6; stroke-dasharray: 3.5 4; vector-effect: non-scaling-stroke; }
.sun-marker { position: absolute; width: .72rem; height: .72rem; border-radius: 50%; background: #f6bd45; border: 2px solid #8b5d12; translate: -50% -50%; box-shadow: 0 0 0 .22rem #e2a93530; }
.sun-times { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: .42rem 0 .3rem; }
.sun-times div:last-child { text-align: right; }
.sun-times strong, .sun-times small { display: block; }
.sun-times strong { font-size: 1.36rem; line-height: 1.23; letter-spacing: -.035em; }
.sun-times small { font-size: .82rem; color: var(--muted); }
.hike-sky .daylight-note { font-size: .79rem; line-height: 1.4; margin-top: .22rem; }
.hike-sky .season-note { margin-top: .7rem; }
.hiking-guide .weather-action { margin: .78rem .4rem 0 0; background: var(--paper); text-align:start; }
.weather-action > span {display:grid; gap:.18rem;}
.weather-action small {font-size:.73rem; font-weight:550; line-height:1.25; color:var(--muted);}
.sky-link { display: inline-block; margin-top: .6rem; padding: .45rem 0; font-size: .91rem; font-weight: 620; }
.hike-aside .lang-note { background: #fbf4e6; border-color: #e5d4af; }
:root[data-theme="dark"] .hike-aside .lang-note { background: #342f22; border-color: #66593c; }
.lang-note .aside-title svg { color: var(--gold); }
.hike-aside .aside-title { align-items: baseline; }
.hike-aside .aside-title + p, .town-stop p + p { margin-top: .62rem; }
.hike-aside .lang-note a { display: inline-block; margin-top: .35rem; padding-block: .3rem; color: var(--gold); font-weight: 640; }
.hike-aside strong, .map-section-head h2 { color: var(--ink); }
.map-section-head { align-items: baseline; justify-content: space-between; }
.map-section-head span { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.map-section-head svg { width: 1rem; height: 1rem; }
.hike-map { position: relative; border-radius: .85rem; overflow: hidden; isolation: isolate; margin: .85rem 0 .55rem; }
.hike-map > img { display: block; width: 100%; height: auto; }
.hike-map .area-pin { position: absolute; display: grid; place-items: center; translate: -50% -50%; min-width: 44px; min-height: 44px; }
.area-pin > span { width: 1.82rem; height: 1.82rem; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; color: #fff; background: #245840; box-shadow: 0 1px 4px #0e302d70; }
.area-pin svg { height: 1rem; width: 1rem; }
.area-pin b, .map-north, .map-scale {
  position: absolute; color: #193a2b; background: #fffffff0; font-size: .78rem;
  line-height: 1.25; padding: .13rem .37rem; border-radius: .35rem; white-space: nowrap;
}
.area-pin b { bottom: calc(50% + 1.1rem); }
.area-pin[data-route-choice="thien-thai"] b { bottom: auto; top: calc(50% + 1.12rem); }
.map-north { top: .6rem; left: .65rem; padding-block-start: .65rem; font-weight: 720; }
.map-north::before { content:""; position:absolute; top:.16rem; left:calc(50% - .23rem); border-inline:.23rem solid transparent; border-bottom:.38rem solid #193a2b; }
.map-scale { width:9.36%; left:.65rem; bottom:.6rem; padding:.12rem 0; border-radius:0; text-align:center; border-bottom:2px solid #193a2b; }
.hiking-guide .map-credit { color:var(--muted); font-size:.76rem; line-height:1.45; margin-bottom:.5rem; }
.area-pin[aria-current="true"] > span { background: #143d2e; outline: 2px solid #26573f; outline-offset: 2px; }
.hike-map .map-city { position: absolute; display:flex; align-items:center; gap:.25rem; transform:translate(-.2rem,-50%); background:#ffffffe8; color:#1b3b2c; padding:.15rem .35rem .15rem 0; border-radius:4rem; font-size:.78rem; font-weight:750; line-height:1.2; }
.map-city::before { content:""; width:.4rem; height:.4rem; border-radius:50%; background:#243e34; }
.map-note { font-size: .9rem; }
.map-links, .source-links { display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.map-links a, .source-links a { display: inline-flex; align-items: center; min-height: 42px; font-weight: 630; font-size: .9rem; }
.hike-sources { margin-top: 1rem; }
.hike-sources summary { cursor: pointer; font-weight: 650; }
.hike-sources summary + div { margin-top: .8rem; }
.hike-sources p { font-size: .9rem; margin-top: .55rem; }
.hike-sources .source-links { gap: 0 .8rem; }
.hike-sources .source-links a { min-height: 32px; font-size: .85rem; }
.hike-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (hover:hover) {
  .hike-choice:hover, .hiking-guide .hike-action:hover { box-shadow: 0 .2rem .65rem #1d443219; border-color: var(--green); }
  .hike-choice:hover .hike-choice-icon { transform: translateY(-2px); }
}
@media (prefers-reduced-motion:no-preference) {
  .hike-choice, .hike-choice-icon, .hike-action { transition: background .18s, border-color .18s, transform .18s, box-shadow .18s; }
  .hike-panel.is-fresh { animation: hike-reveal .22s ease-out; }
  .hike-cover { animation: hike-arrive 1.1s ease-out both; }
  @keyframes hike-reveal { from { opacity:.6; transform:translateY(4px); } }
  @keyframes hike-arrive { from { transform: scale(1.025); } }
}
@media (max-width: 61rem) {
  .hike-layout { grid-template-columns: minmax(0,1fr) minmax(14.6rem,.42fr); }
  .hiking-guide .hike-choice { flex-direction: column; align-items: flex-start; }
  .hike-choice-icon { width: 1.9rem; height: 1.9rem; }
  .route-heading { grid-template-columns: minmax(0,1fr) minmax(6rem,.35fr); gap:.7rem; }
}
@media (max-width: 48rem) {
  .hike-layout { grid-template-columns: minmax(0,1fr); margin-top: 1.15rem; }
  .hike-hero { min-height: 18rem; }
  .hike-hero-copy { padding: 1.5rem; }
  .hiking-guide .hero-caption { right: .7rem; bottom: .5rem; font-size: .74rem; }
  .hike-choices { gap:.35rem; }
  .hike-aside { gap: .8rem; }
}
@media (max-width: 35rem) {
  body:has(.hiking-guide) .guide-header { flex-wrap:nowrap; padding:.45rem .75rem; gap:.3rem; }
  body:has(.hiking-guide) .guide-header .wordmark { flex:1; min-width:0; font-size:clamp(1rem,4.35vw,1.14rem); }
  body:has(.hiking-guide) #guide-display-toggle { padding:.35rem .5rem; }
  main:has(.hiking-guide) { padding-top:.8rem; }
  .hiking-guide .guide-location-row .nearby-weather { display:none; }
  .hike-hero { min-height: 18.35rem; }
  .hike-cover { object-position: 61% 50%; }
  .hike-hero::before { background:linear-gradient(0deg,#0a241fea 4%,#153127bc 54%,#16372a0c 100%); }
  .hike-hero-copy { padding: 3.2rem 1.05rem 2rem; }
  .hike-hero h1 { font-size:clamp(2.52rem,10vw,3.45rem); line-height:1.11; margin:.17rem 0 .4rem; }
  .hike-deck { max-width:25rem; font-size:1rem; line-height:1.4; }
  .hero-actions { margin-top:.8rem; }
  .hiking-guide .hero-caption { background:transparent; padding:0; font-size:.75rem; }
  .hiking-guide .hike-choice { padding:.55rem .43rem; gap:.43rem; }
  .hike-choice strong { font-size:.91rem; }
  .hike-choice small { font-size:.76rem; line-height:1.35; }
  .hike-choices { margin:.62rem 0; }
  .route-heading { display:block; }
  .route-photo { display:none; }
  .hike-facts > div { padding-inline-start:.5rem; }
  .hike-facts dt { font-size:.8rem; }
  .trail-actions { gap:.4rem; }
}
@media (max-width:25rem) {
  .hike-facts { grid-template-columns:.88fr .98fr 1.14fr; }
  .hike-facts dd { font-size:1.02rem; white-space:normal; }
  .hiking-guide .hero-actions :is(.hike-action,button) { padding:.48rem .62rem; font-size:.88rem; }
  .hiking-guide .guide-share small:empty { display:none; }
}
@media print {
  .guide-header,.guide-location-row,footer,.hero-actions,.hike-choices,.hike-aside,.hike-sources,.trail-actions,.back-to-top { display:none !important; }
  .hiking-guide { --ink:#111; --muted:#333; --paper:#fff; --green:#222; --line:#aaa; }
  .hike-hero { display:block; min-height:auto; color:#111; background:white; }
  .hike-hero :is(img,.hero-caption),.hike-hero::before { display:none; }
  .hike-hero h1,.hike-hero h1 em,.hike-hero-copy p { color:#111; }
  .hike-hero-copy,.hike-panel { padding:.5rem 0; }
  .hike-layout { display:block; }
  .hike-map-box { break-inside:avoid; margin-top:.75rem; }
}

.field-stages { margin:1.15rem 0; }
.field-stages > h4 { font-size:1.06rem; margin-bottom:.55rem; }
.trail-stages { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-block:1px solid var(--line); gap:0; }
.trail-stages li { padding:.85rem .65rem; border-inline-start:1px solid var(--line); }
.trail-stages li:first-child { border:0; padding-inline-start:0; }
.trail-stages small,.trail-stages strong { display:block; }
.trail-stages small { font-size:.8rem; color:var(--green); font-weight:700; }
.trail-stages strong { margin:.2rem 0; font-size:1.04rem; line-height:1.2; }
.trail-stages p,.exit-note p,.route-variant p,.hiking-guide .effort-note { color:var(--muted); line-height:1.5; font-size:.94rem; }
.hiking-guide .effort-note { margin:.5rem 0 .8rem; }
.exit-note { border-inline-start:3px solid var(--green); background:var(--pale); padding:.65rem .85rem; border-radius:0 .65rem .65rem 0; }
.route-variant { margin-top:.7rem; }
.hiking-guide :is(.route-variant,.plan-pins,.trail-help details)>summary { cursor:pointer; font-weight:700; color:var(--green); }
.trail-plan { border:1px solid var(--line); border-radius:1.15rem; padding:clamp(1rem,2vw,1.5rem); background:var(--paper); }
.hiking-guide .trail-plan { margin-block:1rem; }
.plan-heading { margin-bottom:.85rem; }
.hiking-guide .plan-heading :is(p,h2){margin:0;}
.trail-plan fieldset { margin:0; padding:0; border:0; min-width:0; }
.trail-plan legend { padding:0; font-weight:700; margin-bottom:.55rem; }
.plan-inputs { display:grid; gap:.65rem; grid-template-columns:repeat(auto-fit,minmax(min(100%,9.7rem),1fr)); }
.plan-inputs label { display:flex; flex-direction:column; gap:.28rem; justify-content:space-between; color:var(--muted); font-size:.86rem; font-weight:650; }
.plan-inputs input,.trail-plan textarea { display:block; box-sizing:border-box; width:100%; max-width:100%; min-width:0; padding:.58rem .6rem; font:inherit; font-size:1rem; min-height:2.7rem; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:.55rem; }
.plan-inputs input:focus-visible { outline:3px solid #2481dd; outline-offset:2px; }
.plan-light { display:block; margin-top:.65rem; padding:.7rem .8rem; background:var(--pale); color:var(--ink); border-radius:.55rem; font-weight:650; }
.hiking-guide .plan-hint,.hiking-guide .plan-pins p { margin:.45rem 0; color:var(--muted); line-height:1.43; font-size:.88rem; }
.plan-pins { border-block:1px solid var(--line); padding:.65rem 0; margin-top:.7rem; }
.pin-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); }
.plan-pins button:disabled { opacity:.52; cursor:auto; }
[data-plan-status]:not(:empty),.hiking-guide .hazard-link { margin-top:.7rem; }
.hazard-link small { display:block; color:var(--muted); }
.trail-help p { margin:.6rem 0; }
.rescue-numbers { display:flex; flex-wrap:wrap; gap:.5rem .85rem; font-weight:700; }
@media(max-width:42rem) {
  .trail-stages { grid-template-columns:1fr; }
  .trail-stages li,.trail-stages li:first-child { border-inline-start:0; padding:.65rem 0; }
  .trail-stages li+li { border-block-start:1px solid var(--line); }
  .trail-stages strong { display:inline; }
  .trail-stages small { display:inline-block; min-width:3.8rem; margin-right:.25rem; }
}
@media(max-width:31rem) { .pin-inputs { grid-template-columns:1fr; } }
.hike-breakfast { margin-top:.8rem; padding-top:.8rem; border-top:1px solid var(--line); }
.hiking-guide .hike-breakfast h3 { font-size:1.04rem; margin:0 0 .35rem; }
.hike-breakfast .map-links { display:grid; justify-items:start; gap:0; }
.hike-breakfast [data-breakfast-picks] small { display:block; }
.hike-contact { margin:.6rem 0; }
.hike-contact summary { display:inline-flex; align-items:center; gap:.4rem; color:var(--green); text-decoration:underline; text-underline-offset:.2em; cursor:pointer; padding:.34rem 0; font-weight:650; }
.hike-contact summary::after { content:"⌄"; text-decoration:none; font-size:.9rem; }
.hike-contact[open] summary::after { transform:rotate(180deg); }
.hike-contact summary svg { width:1.05rem; height:1.05rem; }
.hike-contact>div { background:var(--pale); border:1px solid var(--line); border-radius:.75rem; padding:.75rem .85rem; margin:.15rem 0 .35rem; overflow-wrap:anywhere; }
.hike-contact>div p { margin:.35rem 0; }
.hike-contact>div button { background:var(--paper); color:var(--green); border:1px solid var(--line); border-radius:.4rem; padding:.3rem .45rem; cursor:pointer; font:inherit; font-size:.85rem; }
