/* Trail status on the website (plugin inc/trail-status.php): the panel on a trail's dark trailhead board, the label
   beside a route's name, and the bar at the top of every page. Green open, amber ride with care, red closed; the
   word always says it too, so colour is never the only signal. */
.tstat{border-top:1px solid rgba(255,255,255,.1);padding:20px 24px 22px;color:var(--on-dark,#fff);font-size:15px;line-height:1.5}
.tstat p{margin:0}
.tstat p + p,.tstat p + ul,.tstat ul + p{margin-top:8px}
.tstat-h{display:flex;align-items:center;gap:12px}
.tstat-h i{flex:none;width:14px;height:14px;border-radius:50%;background:#3DDC84;box-shadow:0 0 0 4px rgba(61,220,132,.18)}
.tstat-care .tstat-h i{background:#F5C426;box-shadow:0 0 0 4px rgba(245,196,38,.2)}
.tstat-closed .tstat-h i{background:#FF5A52;box-shadow:0 0 0 4px rgba(255,90,82,.22)}
.tstat-h small{display:block;font:500 12px/1 var(--mono,monospace);color:var(--on-dark-mute,#C9D0EA);margin-bottom:6px;letter-spacing:0}
.tstat-h b{font:700 22px/1.15 var(--display,Montserrat,Arial,sans-serif);color:var(--white,#fff)}
.tstat-routes{list-style:none;margin:0;padding:0}
.tstat-routes li + li{margin-top:4px}
.tstat-t{font-size:13px;color:var(--on-dark-mute,#C9D0EA)}

.tstat-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;font:600 13px/1 var(--body,Inter,Arial,sans-serif);white-space:nowrap}
.tstat-chip.tstat-open{background:#E6F4EC;color:#0F6B3C}
.tstat-chip.tstat-care{background:#FFF1D6;color:#7A4B00}
.tstat-chip.tstat-closed{background:#FCE9E8;color:#A3120F}

a.ss-open{text-decoration:none;min-width:0}
a.ss-open:hover{text-decoration:underline;text-underline-offset:3px}
.tstat-strip.tstat-care i{background:#F5C426;animation:none;box-shadow:none}
.tstat-strip.tstat-closed i{background:#FF5A52;animation:none;box-shadow:none}

/* The status in the top bar stays on one line and shortens with an ellipsis. */
a.ss-open{flex:0 1 auto;min-width:0;white-space:nowrap}
a.ss-open .ss-k{flex:none}
a.ss-open .tstat-txt{min-width:0;overflow:hidden;text-overflow:ellipsis}
.status-strip .ss-wx{flex:none;white-space:nowrap}

/* Review round 1: the status in the trail page's hero, and a dot on a route that differs. */
.hero-chips .tstat-hero{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:inherit}
.hero-chips .tstat-hero i{flex:none;width:10px;height:10px;border-radius:50%;background:#3DDC84}
.hero-chips .tstat-hero.tstat-care i{background:#F5C426}
.hero-chips .tstat-hero.tstat-closed i{background:#FF5A52}
.hero-chips .tstat-hero:hover{text-decoration:underline;text-underline-offset:3px}
.tstat{scroll-margin-top:96px}
.status-strip a.ss-open .tstat-k{display:inline!important}

/* Review round 2: the word beside a route that differs, a rule under the status panel, "see which" looks like a link. */
.tstat-word{margin-left:6px;font:600 12px/1 var(--body,Inter,Arial,sans-serif)}
.tstat-word.tstat-closed{color:#A3120F}
.tstat-word.tstat-care{color:#7A4B00}
.tstat-word.tstat-open{color:#0F6B3C}
.tstat{border-bottom:1px solid rgba(255,255,255,.1)}
.tstat-more{text-decoration:underline;text-underline-offset:3px}

/* Modern web guidance pass: the pulse is opt-in, runs three times, and stops; the panel title is a real heading. */
.status-strip a.ss-open.tstat-strip i{animation:none}
@media (prefers-reduced-motion:no-preference){.status-strip a.ss-open.tstat-open i{animation:pulse 2.4s 3}}
h2.tstat-h{margin:0;font:inherit;color:inherit;letter-spacing:0;text-transform:none}

h2.tstat-h + p,h2.tstat-h + ul{margin-top:8px}
