/* Trail map page (trail-map.html, trail-map.js, trail-data.js): a piste map of any resort, drawn on one canvas.
   Colours, type, radii, glass and motion come from design/tokens.css; the app bar and resort picker from resort.css.
   The Ski Map's controls, chips, toast, panels and cards come from its own stylesheets (map.css, friends.css, sos.css…,
   linked before this one), fitted to this page here: they float over the map, which fills the window under the app bar.
   The panel (its tabs, sizes and the compact app bar) is trail-sheet.css. */

.tm-page {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--page); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.tm-page main a { color: var(--accent); }   /* not the app bar, the profile menu or the picker: they keep resort.css's colours */
.tm-page main h1, .tm-page main h2, .tm-page main h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: var(--tracking-title); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* `hidden` must win over the display set by a class (the status pane's grid, the list titles' flex) */
[hidden] { display: none !important; }

/* ---------- The chosen resort (in the panel's Resort info) ---------- */
.tm-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--fill-2); color: var(--text); text-decoration: none; font: inherit; font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer; transition: background var(--dur-fast) var(--ease);
}
.tm-btn:hover { background: var(--fill-hover); }
.tm-btn.primary { background: var(--accent); color: var(--on-accent); }
.tm-btn.primary:hover { background: var(--accent-hover); }
/* Conditions and Directions in the resort's heading: pressed while their panel is open above the side list */
.tm-btn[aria-expanded="true"] { background: rgb(var(--accent-rgb) / .14); color: var(--accent); }
.tm-btn svg { width: 18px; height: 18px; fill: currentColor; }
/* Live cameras' icon is a line drawing (webcams.js), drawn as on Home rather than filled */
.tm-btn[data-webcams-name] svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* "On the Ski Map": the drawing of a map alone, in a round button */
.tm-btn.tm-map-btn { width: 36px; padding: 0; justify-content: center; flex: none; }
.tm-btn.tm-map-btn svg { width: 24px; height: 24px; }
/* Fingers (iOS Safari 2026-11-08): the card's Directions and From here, the resort's chips and the round Ski Map
   button were 36 px, the route's small buttons 32 and the card's "connects to" links 21; all 44 */
@media (max-width: 600px), (pointer: coarse) {
  .tm-btn { height: 44px; }
  .tm-btn.tm-map-btn { width: 44px; }
  .tm-card-links a { min-height: 44px; min-width: 44px; justify-content: center; }   /* a short lift name ("T2") too */
}

/* ---------- Toolbar: difficulty filter and a hint ---------- */
.tm-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-filter {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--stroke); font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.tm-filter:hover { border-color: rgb(var(--navy-rgb) / .3); }
.tm-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tm-filter:focus-visible, .tm-btn:focus-visible, .tm-item:focus-visible, .tm-key-toggle:focus-visible, .tm-close:focus-visible, .tm-star:focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 1px;
}
.tm-glyph { width: 14px; height: 14px; flex: none; overflow: visible; }
.tm-glyph.wide { width: 26px; }

/* ---------- The map ---------- */
/* The map fills the room under the app bar (trail-sheet.css places it beside the panel from 960 px) */
.tm-viewport {
  position: absolute; inset: 0; overflow: hidden; background: #e7edf5;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: grab; outline: none;
}
.tm-viewport.is-dragging { cursor: grabbing; }
.tm-viewport:focus-visible { box-shadow: inset 0 0 0 3px var(--focus-ring); }
.tm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tm-chairs { pointer-events: none; }   /* the chairs moving up the lifts (trail-map.js: paintChairs), over the map */
/* The snow glow on a side that has reached the edge of the resort's frame (as the Ski Map's .europe-edge) */
.tm-edge { position: absolute; pointer-events: none; opacity: 0; transition: opacity 260ms ease-out; --edge: 40px; }
.tm-edge.is-on { opacity: 1; transition-duration: 80ms; }
.tm-edge-top    { top: 0; left: 0; right: 0; height: var(--edge); background: linear-gradient(to bottom, var(--snow), transparent); }
.tm-edge-bottom { bottom: 0; left: 0; right: 0; height: var(--edge); background: linear-gradient(to top, var(--snow), transparent); }
.tm-edge-left   { top: 0; bottom: 0; left: 0; width: var(--edge); background: linear-gradient(to right, var(--snow), transparent); }
.tm-edge-right  { top: 0; bottom: 0; right: 0; width: var(--edge); background: linear-gradient(to left, var(--snow), transparent); }
@media (max-width: 600px) { .tm-edge { --edge: 28px; } }
@media (prefers-reduced-motion: reduce) { .tm-edge { transition: none; } }

/* The compass, at the top of the map's controls (trail-sheet.css places them) */
.tm-compass {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; flex: none;
  background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow); pointer-events: none;
}
.tm-compass svg { width: 24px; height: 24px; transition: transform var(--dur) var(--ease); }
.tm-compass .n { fill: var(--badge); }
.tm-compass .s { fill: #b8c2cf; }

/* The key: a glass panel, folded to a button (the Filters panel holds it, trail-filters.js) */
.tm-key { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; cursor: default; }
.tm-key-toggle {
  order: 2; height: 32px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow); cursor: pointer;
}
.tm-legend {
  order: 1; display: none; list-style: none; margin: 0; padding: 10px 12px; gap: 5px;
  background: var(--glass-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--text); line-height: 1.25;
}
.tm-key.is-open .tm-legend { display: grid; }
.tm-legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tm-legend li[hidden] { display: none; }
#tm-key-closed { grid-column: 1 / -1; white-space: normal; }   /* the closed row (Only what's open): a sentence, its own line */
.tm-legend .tm-glyph { width: 15px; height: 15px; }
.tm-legend .tm-glyph.wide { width: 26px; margin: 0 -5px; }

/* The selected piste or lift: in the panel's Explore, in place of the lists (trail-sheet.js), which scrolls it */
.tm-card {
  position: relative; box-sizing: border-box; cursor: default;
  padding: 4px 4px 12px;
  animation: tm-card-in var(--dur) var(--ease-out);
}
@keyframes tm-card-in { from { opacity: 0; transform: translateY(8px); } }
.tm-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tm-card h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 2px 0 0; color: var(--text); }
.tm-card h2 .ref, .tm-item-name .ref { font-weight: 500; color: var(--muted); font-size: .85em; }
.tm-card-kind { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.tm-card-kind.green { color: var(--piste-green); }
.tm-card-kind.blue { color: var(--piste-blue); }
.tm-card-kind.red { color: var(--piste-red); }
.tm-card-kind.black { color: var(--piste-black); }
.tm-card-kind.orange { color: var(--poi-offpiste-text); }
.tm-card-kind.park { color: var(--poi-park); }
.tm-card-kind.kids { color: var(--poi-kids); }
.tm-card-kind.lift { color: var(--text); }
.tm-card-kind.hut { color: var(--poi-food); }
.tm-card-kind.parking { color: var(--poi-parking); }
.tm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tm-close {
  border: 0; background: var(--fill-2); width: 30px; height: 30px; border-radius: 50%; flex: none;
  font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.tm-close:hover { background: var(--fill-hover); }
.tm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; margin: 12px 0 0; }
.tm-facts div { background: var(--fill); border-radius: var(--radius-sm); padding: 6px 9px; }
.tm-facts dt { color: var(--muted); font-size: 11.5px; }
.tm-facts dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* A piste in sections of other colours (trail-map.js renderCard): the whole row, each colour's shape beside its word */
.tm-facts .tm-sections { grid-column: 1 / -1; }
.tm-sections dd { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; }
.tm-sections dd span { display: inline-flex; align-items: center; gap: 5px; }
.tm-card-links { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.tm-card-links span { color: var(--muted); font-size: 12.5px; width: 100%; }
.tm-card-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }
.tm-card-links a:hover { text-decoration: underline; }
.tm-card-links em { color: var(--muted); font-style: normal; }
.tm-card-foot { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.tm-warning { margin: 10px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: #fff4e5; color: var(--poi-offpiste-text); font-size: 13px; }

/* Loading, empty and error states, over the map above the panel: section-loader.css's look, up to the sheet's top */
.tm-status.section-loader { inset: 0 0 var(--tm-sheet-h, 0px); }

/* ---------- The lists: every lift and piste (the panel's Explore) ---------- */
/* The resort panel's rows (trail-bridge.js) and the lists' rows, all alike */
.tm-explore-lists { display: flex; flex-direction: column; }
.tm-list-title { margin: 0; color: var(--navy); display: flex; }
.tm-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
/* A row: an icon tile, the name (and its state under it), what's at the right and a chevron. The lists' headings
   fold their lists away; the panel's rows open their contents in place. */
.tm-fold {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 7px 4px; margin: 0; box-sizing: border-box;
  font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text); text-align: left;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.tm-list-title .tm-fold { color: inherit; }
.tm-fold:hover { background: var(--fill); }
.tm-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tm-fold:active { background: var(--fill-2); }
.tm-row-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--fill-2); color: var(--navy); }
.tm-row-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-row-icon .tm-sym.lift { width: 16px; }
.tm-row-icon .tm-sym-piste { stroke: var(--piste-blue); stroke-width: 2.6; }
.tm-row-icon .tm-sym.parking { font-size: 11px; }
.tm-chevron { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The lists' chevron is drawn with borders: right while folded, down while open; the panel's is the same shape turned */
.tm-chevron {
  width: 8px; height: 8px; margin-left: auto; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.tm-count + .tm-chevron { margin-left: 0; }   /* after a count the count takes the room */
.tm-fold[aria-expanded="false"] .tm-chevron { transform: translateX(-2px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .tm-chevron { transition: none; } }
/* Hairlines between the rows: every row but the first in the card */
.tm-list-title { border-top: 1px solid var(--separator); }
.tm-explore-lists > .tm-list-title:first-of-type { border-top: 0; }
.tm-list { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-direction: column; gap: 2px; }
.tm-list-group { margin: 6px 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tm-list-empty { color: var(--muted); font-size: 14px; margin: 4px 0 0 4px; }
.tm-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  font: inherit; font-size: 14px; color: inherit; background: none; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 7px 10px; cursor: pointer;
}
.tm-item:hover { background: var(--fill); }
.tm-item[aria-pressed="true"] { border-color: var(--accent); background: rgb(var(--accent-rgb) / .08); }
.tm-item-name { flex: 1; display: flex; flex-direction: column; line-height: 1.3; font-weight: 600; min-width: 0; }
.tm-item-name small { font-weight: 400; color: var(--muted); }
/* What the resort's live report says of a lift or piste (trail-live.js), after its name; with Only what's open on, a
   closed one's row is dimmed, not removed (its card still opens) */
.tm-tag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; vertical-align: 1px;
  font-size: 11.5px; font-weight: 700; line-height: 1.45; letter-spacing: .01em; white-space: nowrap;
}
.tm-tag-open { color: #13703a; background: rgb(31 157 85 / .13); }   /* --live's green, dark enough to read (6:1) */
.tm-tag-closed, .tm-tag-unknown { color: var(--muted); background: var(--fill-2); }
.tm-item.is-closed .tm-sym { opacity: .4; }   /* the row dims by its symbol and a grey wash, its words keep their contrast (WCAG 1.4.3) */
.tm-item.is-closed { background: var(--fill); color: var(--muted); }
.tm-item.is-closed[aria-pressed="true"] { background: rgb(var(--accent-rgb) / .08); color: inherit; }
.tm-list-note { margin: 0 0 6px 4px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.tm-sym { width: 18px; flex: none; display: inline-flex; justify-content: center; }
.tm-sym .tm-glyph { width: 15px; height: 15px; }
.tm-sym.lift { height: 2px; background: var(--lift); border-radius: 1px; }
.tm-sym.lift.drag { background: repeating-linear-gradient(90deg, var(--lift) 0 4px, transparent 4px 7px); }
.tm-card-kind .tm-sym.lift { width: 16px; }
.tm-sym.park { width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--poi-park); margin: 0 4px; }
/* A hut or restaurant: a house in the Ski Map's restaurant colour */
.tm-sym.hut {
  width: 14px; height: 14px; background: var(--poi-food);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1.5 15 8h-2v6.5H3V8H1zM6.6 10.4v4.1h2.8v-4.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1.5 15 8h-2v6.5H3V8H1zM6.6 10.4v4.1h2.8v-4.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tm-sym.kids { width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--poi-kids); margin: 0 4px; }
/* A car park: the blue "P" sign drawn on the map */
.tm-sym.parking { width: 16px; height: 16px; margin: 0 1px; border-radius: 4px; background: var(--poi-parking); color: #fff; font: 800 11.5px/16px var(--font); text-align: center; }

.tm-note { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--fill); color: var(--text); font-size: 14px; }
.tm-credit { margin: 14px 0 0; color: var(--muted); font-size: 13px; max-width: 980px; }



/* ---------- Directions: the Ski Map's panel (route.css) as a view of the panel's Explore (trail-sheet.js) ---------- */

.tm-route { overflow-x: hidden; }
.tm-route .tm-card-head { align-items: center; margin-bottom: 12px; }
.tm-route .tm-card-head h2 { margin: 0; }
.tm-route-back { font-size: 1.5rem; padding-bottom: 3px; }
/* The shared pieces route.css takes from friends.css on the Ski Map */
.tm-route .grow { flex: 1; min-width: 0; }
.tm-route .grow strong, .tm-route .grow > span, .tm-route .grow small { display: block; overflow: hidden; text-overflow: ellipsis; }
.tm-route .grow small, .tm-route .grow > span { font-size: 13px; color: var(--muted); }
.tm-route .hint { margin: 0; font-size: 13px; color: var(--muted); }
.tm-route .route-swap { display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; }
.tm-route .route-swap svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-route .route-error .tm-btn { height: 32px; font-size: 13px; }
.tm-route .tm-card-actions { margin-top: 10px; }
.tm-route .route-offpiste-tag { display: inline-block; margin: 2px 0; padding: 1px 7px; border-radius: 999px; background: #fff4e5; color: var(--poi-offpiste-text); font-size: 11.5px; font-weight: 700; }
.tm-route .route-closed-tag { display: inline-block; margin: 2px 0; }
.tm-route .tm-warning { margin: 10px 0 0; }
.tm-route-tip { margin-top: 8px !important; }
.tm-viewport.tm-picking { cursor: crosshair; }
/* ---------- The resort panel (the panel's Conditions) ---------- */

/* The resort panel in the Conditions tab (trail-bridge.js; its layout is trail-panels.css): the Ski Map's warnings and
   live status (conditions.css, map.css's open-status) */
.tm-panel { font-size: 14px; line-height: 1.4; flex: none; }
.tm-panel .cond-alerts { margin: 6px 0 6px; }

/* ---------- The heading: the resort's name with its star, and what to do there ---------- */
.tm-btn.danger { color: var(--destructive); }

/* ---------- Over the map: the Ski Map's chips, markers and popups, and the toast and panels over the page ---------- */

/* Friends and their popups (trail-host.js's markers, kept over their spot by trail-map.js) */
.tm-markers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tm-marker { position: absolute; top: 0; left: 0; will-change: transform; pointer-events: auto; }
.tm-marker[hidden] { display: none; }
/* MapLibre's popup (trail-host.js makes its markup; friends.css styles the friends' one): its stylesheet's few rules
   for a popup above its spot, rather than all 64 KB of it; :where() keeps them
   below friends.css's own */
:where(.tm-markers) .maplibregl-popup { display: flex; flex-direction: column-reverse; pointer-events: none; }
:where(.tm-markers) .maplibregl-popup-tip { width: 0; height: 0; border: 10px solid transparent; border-bottom: none; border-top-color: #fff; align-self: center; z-index: 1; }
:where(.tm-markers) .maplibregl-popup-content { position: relative; padding: 15px 10px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); pointer-events: auto; }
:where(.tm-markers) .maplibregl-popup-close-button { position: absolute; top: 0; right: 0; border: 0; border-radius: 0 3px 0 0; background: transparent; cursor: pointer; }
:where(.tm-markers) .maplibregl-popup-close-button:hover { background: rgb(0 0 0 / 5%); }
/* The Friends and SOS panels over the page (the toast: trail-sheet.css) */
/* (resort.css widens the page's own sections, which these are too: html body.tm-page > section) */
html body.tm-page > .sheet { position: fixed; z-index: 40; width: auto; }
@media (min-width: 700px) { html body.tm-page > .sheet { left: max(16px, env(safe-area-inset-left)); width: 380px; } }

/* The card lowered to its heading while a spot is picked on the map (piste-reports.js) */
.tm-card.is-peek > :not(.tm-card-head) { display: none; }
/* A junction (junctions.js): the white disc with a ring, like its marker */
.tm-sym.junction { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.6px solid var(--poi-junction); box-sizing: border-box; }
.tm-card .place-pistes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.tm-card .place-pistes li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tm-card .place-pistes li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tm-card .place-pistes li small { color: var(--muted); margin-left: auto; }
.tm-card .place-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
/* The Ski Map's sections in the card: piste checks, lift waits, tags */
.tm-card .place-tags { margin-top: 10px; }
.tm-card .pc, .tm-card .lift-waits, .tm-card .offpiste-warning { margin-top: 12px; }
/* Whether the lift is running, from the resort's live piste map (trail-bridge.js liftLiveHTML): a row like
   lift-waits.js's, its icon green when running and muted when not */
.tm-card .lift-live { display: flex; align-items: center; gap: 10px; margin-top: var(--space-3); padding: 9px 12px 9px 10px; border-radius: 12px; background: var(--fill); }
.tm-card .lift-live + .lift-wait { margin-top: 8px; }
.tm-card .ll-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgb(var(--navy-rgb) / .08); color: var(--navy); }
.tm-card .ll-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-card .lift-live[data-status="open"] .ll-icon { background: rgb(31 154 75 / .14); color: var(--piste-green); }
.tm-card .lift-live[data-status="closed"] .ll-icon { background: rgb(var(--navy-rgb) / .06); color: var(--muted); }
.tm-card .lift-live[data-status="closed"] .lw-label { color: var(--muted); }
/* Not open yet, on hold: neither running nor shut. The words carry it; the icon is amber, never colour alone */
.tm-card .lift-live[data-status="scheduled"] .ll-icon, .tm-card .lift-live[data-status="suspended"] .ll-icon { background: rgb(214 138 0 / .14); color: #9a6200; }
.tm-card .lift-live { align-items: flex-start; }
.tm-card .lift-live .ll-notice { font-variant-numeric: normal; overflow-wrap: anywhere; }
.tm-card .lift-live .lw-src + .lw-src { margin-top: 3px; }
.tm-card .lift-live .lw-hours { display: block; margin-top: 1px; font-size: 13px; line-height: 1.35; font-variant-numeric: tabular-nums; }
/* One statement of the status per card: under the live-status row, lift-waits.js's own "closed, according to …" note
   (on its row with no wait) is hidden; a wait's source line stays */
.tm-card .lift-live ~ .lift-wait[data-state="none"] .lw-src { display: none; }
.tm-card .place-note { margin: 10px 0 0; }
/* The slope where the piste is pointed at (trail-bridge.js), under "Is it really blue?"'s measured line */
.tm-card .pc-probe { margin: 8px 0 0; padding: 0 2px; }
.tm-card .pc-probe-line { margin: 0; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tm-card .pc-probe-line.is-empty { color: var(--muted); font-size: 13px; }
.tm-card .pc-probe-line.warn { color: var(--caution-strong); font-weight: 600; }
.tm-card .pc-probe-note { margin: 2px 0 0; font-size: 12px; line-height: 1.35; color: var(--muted); }
/* Its dot on the piste and the label over it (a marker: the pointer passes through to the map); orange when the spot is
   clearly steeper than the piste's colour, like the steep stretches */
.tm-marker.tm-probe { width: 12px; height: 12px; border-radius: 50%; background: var(--lift); box-shadow: 0 0 0 2.5px var(--map-halo), 0 1px 4px rgb(0 0 0 / .3); pointer-events: none; }
.tm-probe-label { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(calc(-50% + var(--shift, 0px))); width: max-content; max-width: min(300px, 80vw);
  padding: 4px 10px; border-radius: 13px; background: var(--map-halo); color: var(--lift); border: 1px solid rgb(0 0 0 / .18);
  box-shadow: 0 1px 6px rgb(0 0 0 / .2); font: 700 13px/1.3 var(--font, system-ui); text-align: center; font-variant-numeric: tabular-nums; }
.tm-probe.below .tm-probe-label { bottom: auto; top: calc(100% + 8px); }
.tm-probe.over { background: var(--wx-avalanche); }
.tm-probe.over .tm-probe-label { color: var(--caution-strong); border: 2px solid var(--wx-avalanche); }
/* Following a route: the step you're on in large type (route.css's .route-now) */
.tm-route.navigating .route-nav-foot .tm-btn { height: 32px; font-size: 13px; }
@media (max-width: 600px), (pointer: coarse) { .tm-route .route-error .tm-btn, .tm-route.navigating .route-nav-foot .tm-btn { height: 44px; } }   /* see .tm-btn's 44 px above */

@media (prefers-reduced-motion: reduce) {
  .tm-card, .tm-compass svg, .section-loader-text::before { animation: none; transition: none; }
}
