/* The list page (C2): one row design, the filter bar, the near / further divider, Show more, the empty states.
   Colours come only from the beta tokens (static/beta/tokens.css), so light and dark follow them. Sizes are this file's own
   (audit 64-65): titles 17px+, nothing under 14px, every tap target at least 44px. Loaded after beta.css on list_page.html only. */
:root {
  --lm-fs: 15px; --lm-fs-sm: var(--fs-min, 14px); --lm-fs-title: 17px; --lm-fs-price: 17px; --lm-fs-day: 22px; --lm-fs-h1: clamp(26px, 5.4vw, 38px);
  --lm-hit: var(--hit, 44px); --lm-date-w: 50px;          /* the 14px floor and the 44px tap size are site-wide: tokens.css (X4) */
}
:root { --lm-hit: max(var(--hit, 44px), 44px); }          /* never under 44px, even before tokens.css says --hit: 44px (X4) */
@media (min-width: 760px) { :root { --lm-fs: 16px; --lm-fs-title: 18px; --lm-fs-price: 18px; --lm-fs-day: 24px; --lm-date-w: 56px; } }

/* the strip sticks at the top once the top card has gone (list.js pinStrip, every width), so the site header does not (plan rule e6) */
body.b:has([data-lm-strip]) .site-head { position: relative; }          /* fix8: not sticky, but still its own layer (beta.css z-index 30): the open menu sits above the hero and the strip (25), under the sheets (60) and the town box (1000) */

html.lm-lock, html.lm-lock body { overflow: hidden; }

/* ---- the page top (lm/components/top.html): the live hero and finder card (beta.css); only the list machine's own extras here ---- */
.lm-credit .credit { margin: 6px 0 0; }
.lm-top-extra { padding-top: var(--s3); }
/* fix10 items 1-2 (owner): the crumbs sit higher in the hero, and the list heading gets room under the place box; the page is no taller */
@media (max-width: 600px) { .lm-hero .hero-in { padding-top: 8px; padding-bottom: 76px; } }
.lm-top-extra > :first-child { margin-top: 0; }
.lm-top-extra:empty { display: none; }
.lm-intro { margin: var(--s2) 0 0; font-size: var(--lm-fs); color: var(--body); max-width: 70ch; }
/* fix8 A1 (owner 20 Nov 2026): the hero's length lines ('2 days from £99') in two columns on every list page, not one long list */
.lm-hero .hero-sub:has(.hb) > span { display: grid; grid-template-columns: repeat(2, max-content); gap: 5px 22px; }

.lm-page { padding-bottom: var(--s8); }
.lm-page.lm-has-side { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: 28px; align-items: start; }
.lm-main { min-width: 0; }
.lm-page:not(.lm-has-side) .lm-main { max-width: 880px; }
.lm-side-col { display: grid; gap: var(--s5); }
@media (max-width: 979px) { .lm-page.lm-has-side { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 980px) { .lm-page.lm-has-side > .lm-side-col { margin-top: 56px; } }          /* owner 21 Nov: the side panel starts level with the trip list, not with the count/sort row above it */

/* ---- buttons ---- */
.lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--lm-hit); padding: 10px 18px; border: 1px solid var(--btn); border-radius: var(--r-sm); background: var(--btn); color: var(--btn-ink); font: inherit; font-size: var(--lm-fs); font-weight: var(--fw-bold); cursor: pointer; }
.lm-btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.lm-btn-2 { background: var(--panel); color: var(--brand-ink); border-color: var(--brand); }
.lm-btn-2:hover { background: var(--lilac); }
.lm-ic { width: 18px; height: 18px; flex: none; }
.b [data-lm] button:focus-visible, .b [data-lm] a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---- the day trips / holidays pills: in the top card, the live chip look (beta.css .chip / .chip-kind; Fable cp3 task 3) ---- */
.lm-kinds { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.lm-kinds .lm-kn { font-size: 12px; font-weight: var(--fw-bold); color: var(--muted); font-variant-numeric: tabular-nums; }
.lm-kinds .chip[aria-pressed="true"] .lm-kn, .lm-kinds .chip[aria-current] .lm-kn { color: var(--chip-on-ink); opacity: .8; }
.b button.lm-kind { font-family: inherit; }
html:not(.js) .lm-kinds button.lm-kind { display: none; }          /* an in-page switch needs the script; the twin page links work without */
.lm-box-choices[hidden] { display: none; }
.lm-box-choices { display: grid; gap: 8px; }
.lm-box-choices .place-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lm-box-choices .place-choice { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 44px; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-weight: normal; font-size: 16px; cursor: pointer; }
.lm-box-choices .place-choice { flex-direction: column; align-items: flex-start; gap: 2px; }
.lm-box-choices .place-choice:hover, .lm-box-choices .place-choice:focus-visible { border-color: var(--brand); }
.lm-box-choices .pc-n { font-size: 14px; color: var(--muted); }
.lm-box-choices .pc-ask { margin: 0; font-weight: var(--fw-bold); }
.lm-mine { margin: 0; }
.b .lm-mine a { font-weight: var(--fw-bold); color: var(--brand-ink); }
/* the in-list reminder card (live .place-nudge look, beta.css); every text box 16px or more (iPhones zoom the page for less) */
.lm-nudge input { font-size: 16px; }
.lm-nudge .pc-note:empty, .lm-box .pc-form > .pc-note:empty { display: none; }          /* fix8: no empty helper line under the box */
.lm-nudge .lm-box-choices { margin-top: 8px; }

/* ---- the top card's tools row (fix8 A2, owner 20 Nov 2026; lm/components/placebox.html tools_nav), the same on every list page:
   the day trips / holidays pills stacked on the left, the same size; Filters and Month stacked on their right, the same height ---- */
.lm-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.lm-tools:not(.lm-tools-k) { grid-template-columns: minmax(0, 1fr); }
.lm-tools .lm-kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: stretch; }
.lm-tools .lm-kind { justify-content: space-between; min-width: 0; white-space: nowrap; }
.lm-tools .lm-kind.lm-kind-zero { color: var(--muted); border-style: dashed; }          /* fix10 item 5: none near, still tappable (the no-trips box offers the other kind) */
.lm-tbtns { display: grid; gap: 8px; }
.lm-tools:not(.lm-tools-k) .lm-tbtns { display: flex; flex-wrap: wrap; }
html:not(.js) .lm-tbtns > button { display: none; }          /* the sheet needs the script; Month (a <details> of links) and the sort words work without */
.lm-mdet { position: relative; display: grid; }
.lm-mdet > summary { list-style: none; }
.lm-mdet > summary::-webkit-details-marker { display: none; }
.lm-mlinks { display: none; }
html:not(.js) .lm-mdet[open] > .lm-mlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  width: min(320px, calc(100vw - 32px)); padding: 10px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.b .lm-mlinks a { display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: var(--fw-semi); }
.b .lm-mlinks a[aria-current] { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.lm-tbtn { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 38px; padding: 6px 12px; border: 1.5px solid var(--brand); border-radius: var(--r-sm); background: var(--panel); color: var(--brand-ink); font: inherit; font-size: var(--fs-md); font-weight: var(--fw-bold); white-space: nowrap; cursor: pointer; }
.lm-tbtn .lm-ic { color: var(--brand-ink); }
.lm-tbtn:hover { background: var(--lilac); }
.lm-tbtn.is-on { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-ink); }
.lm-tbtn.is-on .lm-ic { color: inherit; }
.lm-tbtn-t { overflow: hidden; text-overflow: ellipsis; max-width: 9em; }
.lm-tbtn .lm-fcount, .lm-fbtn .lm-fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: 12px; }
.lm-tbtn .lm-fcount[hidden], .lm-fbtn .lm-fcount[hidden] { display: none; }
@media (max-width: 600px) { .lm-tbtn { min-height: 36px; padding: 5px 10px; font-size: 13px; } }          /* the phone chip height (beta.css .chip) */
@media (max-width: 374px) {          /* 360px phones: 'Holidays' for 'Coach holidays' before anything wraps (never 3 rows) */
  .lm-tools-k .lm-kind[data-short] { font-size: 0; gap: 0; }          /* the words stay for screen readers and copy; the short form is drawn */
  .lm-tools-k .lm-kind[data-short]::before { content: attr(data-short); font-size: 13px; margin-right: auto; }
  .lm-tools-k .lm-kind[data-short] .lm-kn { margin-left: 7px; }
  .lm-tools .lm-kind { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 760px) {          /* a computer: the same order in one row */
  .lm-tools, .lm-tools .lm-kinds, .lm-tbtns { display: flex; flex-wrap: wrap; align-items: center; }
  .lm-tools .lm-kind { justify-content: flex-start; }
}

/* fix8 B10: this subject's own sub-pages, one quiet line in the top card */
.lm-toplinks { margin: 0; font-size: var(--lm-fs-sm); color: var(--body); }
.b .lm-toplinks a { color: var(--brand-ink); font-weight: var(--fw-bold); }

/* ---- the strip (fix8 A6): unseen until the top card has scrolled away, then one compact row stuck at the top (list.js pinStrip) ---- */
.lm-strip { position: fixed; top: 0; left: 0; right: 0; z-index: 25; padding: 6px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transform: translateY(-110%); visibility: hidden; transition: transform .18s ease-out, visibility .18s; }
.lm-strip.is-on { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .lm-strip { transition: none; } }
html:not(.js) .lm-strip { display: none; }
.lm-strip-in { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; }
.lm-town, .lm-fbtn, .lm-f-btn, .lm-reset { display: inline-flex; align-items: center; gap: 6px; min-height: var(--lm-hit); padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel); color: var(--text); font: inherit; font-size: var(--lm-fs); font-weight: var(--fw-bold); cursor: pointer; white-space: nowrap; }
.lm-town { flex: 0 1 auto; min-width: 0; max-width: 100%; padding-left: 10px; padding-right: 10px; }
.lm-fbtn { flex: none; justify-content: center; border-color: var(--brand); color: var(--brand-ink); padding-left: 10px; padding-right: 10px; }
.lm-fbtn .lm-ic { color: var(--brand-ink); }
.lm-fbtn.is-on { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-ink); }
.lm-fbtn.is-on .lm-ic { color: inherit; }
.lm-town-t { overflow: hidden; text-overflow: ellipsis; }
.lm-town .lm-ic { color: var(--brand-ink); }
/* fix9 item 3 (owner): three equal buttons, Location · Filters · Sort, one row at 360px; each label cut short only when it must be */
.lm-strip-in > .lm-town, .lm-strip-in > .lm-fbtn, .lm-strip-in > .lm-sortbox { flex: 1 1 0; min-width: 0; }
.lm-strip-in > .lm-town, .lm-strip-in > .lm-fbtn, .lm-sortbox > .lm-sbtn { justify-content: center; padding-left: 8px; padding-right: 8px; }
.lm-sortbox > .lm-sbtn { width: 100%; }
.lm-strip .lm-fbtn-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lm-strip .lm-ic, .lm-strip .lm-chev, .lm-strip .lm-fcount { flex: none; }
@media (max-width: 429px) { .lm-strip-in { gap: 6px; } .lm-strip-in > .lm-town, .lm-strip-in > .lm-fbtn, .lm-sortbox > .lm-sbtn { font-size: 14px; gap: 4px; padding-left: 6px; padding-right: 6px; } }
.lm-sortbox { position: relative; }
.lm-sortbox.is-open > .lm-pop { display: grid; gap: 6px; position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; min-width: 180px; padding: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }
.lm-sortbox.is-open .lm-chev { transform: rotate(180deg); }
.b .lm-sortbox .lm-pop a.lm-ch { text-decoration: none; }
.lm-sortbox .lm-ch[aria-current] { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-ink); font-weight: var(--fw-bold); }
.lm-row .row-mt { white-space: nowrap; }          /* fix6 task 7: miles and time on their own line, never cut off (the stop name above may shorten) */
#lm-list-h { scroll-margin-top: 72px; }          /* a jump to the list stops under the stuck strip */

/* ---- the sort words (fix8 A4): 'Soonest · Cheapest · Nearest', the one on bold and dark, the others links ---- */
.lm-sorts { display: inline-flex; align-items: baseline; flex-wrap: nowrap; gap: 0; margin: 0; font-size: var(--lm-fs-sm); white-space: nowrap; }
.lm-sorts .lm-dot { padding: 0 6px; color: var(--muted); }
.b .lm-sorts a { display: inline-flex; align-items: center; min-height: 32px; color: var(--brand-ink); font-weight: var(--fw-semi); text-decoration: underline; text-underline-offset: 3px; }
.b .lm-sorts a[aria-current] { color: var(--text); font-weight: var(--fw-black); text-decoration: none; cursor: default; }
.lm-sorts-strip { font-size: var(--lm-fs-sm); }
.b .lm-sorts-strip a { min-height: var(--lm-hit); }

/* ---- the one sheet (Filters, or Month alone): a bottom sheet on a phone, a centred box on a computer ---- */
.lm-panel { display: none; }
.lm-panel.is-open { display: flex; flex-direction: column; position: fixed; inset: auto 0 0 0; max-height: 88vh; max-height: 88dvh; z-index: 60; background: var(--panel); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }          /* fix7 item 8: as tall as its filters, the page dimmed behind it */
.lm-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px var(--gutter); border-bottom: 1px solid var(--border-soft); }
.lm-panel-t { margin: 0; font-size: 20px; font-weight: var(--fw-black); color: var(--text); }
.lm-x { display: grid; place-items: center; width: var(--lm-hit); height: var(--lm-hit); border: 0; background: transparent; color: var(--text); cursor: pointer; }
.lm-x .ic { width: 24px; height: 24px; }
.lm-fs { flex: 0 1 auto; overflow: auto; overflow-x: hidden; padding: var(--s4) var(--gutter); display: grid; gap: var(--s5); align-content: start; }
.lm-panel .lm-f-btn { display: none; }
.lm-panel .lm-pop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lm-panel .lm-pop .lm-ch { white-space: normal; overflow-wrap: anywhere; min-width: 0; min-height: 52px; }          /* long Type names wrap (Fable cp2 M3) */
.lm-panel.lm-panel-month .lm-f:not(.lm-f-when) { display: none; }          /* Month: the months only */
.lm-panel:not(.lm-panel-month) .lm-f-when { order: 99; }          /* fix9 item 5 (owner): Month back in Filters, last (the strip has no Month button) */
.lm-panel.lm-panel-month .lm-f-h { display: none; }
.lm-panel-foot { display: flex; gap: 10px; align-items: center; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border-soft); background: var(--panel); }
.lm-show { flex: 1 1 auto; min-height: 50px; font-size: 17px; }
.lm-reset { border-color: transparent; background: transparent; color: var(--brand-ink); text-decoration: underline; }
.lm-reset[hidden] { display: none; }
.lm-f { position: relative; }
.lm-f-h { margin: 0 0 8px; font-size: var(--lm-fs); font-weight: var(--fw-black); color: var(--text); }
.lm-pop { display: none; }
.lm-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--panel); color: var(--text); font: inherit; font-size: var(--lm-fs); font-weight: var(--fw-semi); text-align: left; cursor: pointer; }
.lm-ch:hover { border-color: var(--brand); }
.lm-ch[aria-pressed="true"] { border-color: var(--chip-on); background: var(--chip-on); color: var(--chip-on-ink); font-weight: var(--fw-bold); }
.lm-n { font-size: var(--lm-fs-sm); font-weight: var(--fw-body); color: var(--muted); white-space: nowrap; }
.lm-ch[aria-pressed="true"] .lm-n { color: inherit; opacity: .85; }
@media (min-width: 760px) {
  .lm-panel.is-open { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 48px)); max-height: 80vh; border-radius: var(--r); }
  .lm-panel .lm-f-when .lm-pop, .lm-panel .lm-f-type .lm-pop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- list ---- */
.lm-note { margin: 0 0 var(--s3); padding: 12px 14px; border-left: 4px solid var(--brand); border-radius: var(--r-sm); background: var(--lilac); color: var(--text); font-size: var(--lm-fs); }
.lm-far { margin: 0 0 var(--s3); padding: 12px 14px; border-left: 4px solid var(--brand); border-radius: var(--r-sm); background: var(--lilac); color: var(--text); font-size: var(--lm-fs); }          /* fix14 item 7 */
.lm-far-h { margin: 0; }
.lm-far .lm-other { margin: 10px 0 0; }
/* fix12 (owner 21 Nov 2026): the count row. The list H2 is for screen readers only (.vh); ONE slim row: the count at the left
   ('4,564 dates', 'December · 41 dates' + its ✕), the sort words at the right. Two flex items that never break into each other:
   when both do not fit (a filter name at 360-390px), the sort wraps whole onto its own line under the count (space-between puts a
   lone item at the left). Phone and desktop alike. */
.lm-list-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s3); margin: var(--s4) 0 var(--s2); }
/* fix10 items 4 + 6 (owner): the group headers use the full width (beta.css balances every heading); normal wrapping, same font */
.b .lm-list-h, .b .lm-div-h { text-wrap: wrap; }
.lm-div > .lm-div-h { flex: 1 1 100%; min-width: 0; }
.lm-split { font-weight: var(--fw-semi); color: var(--body); }
.lm-list-h:not(.vh) { flex: 1 0 100%; }
.lm-list-h { margin: 0; font-size: 20px; font-weight: var(--fw-black); color: var(--text); }          /* the event page's later-season lists keep theirs */
.lm-list-h:focus { outline: none; }
.lm-list-l { display: flex; align-items: center; gap: 2px; min-width: 0; }
.lm-list-n { margin: 0; font-size: var(--lm-fs-sm); font-weight: var(--fw-semi); color: var(--text); line-height: 32px; }
.lm-list-n .lm-split { font-weight: inherit; color: inherit; }
.b .lm-clear { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); color: var(--brand-ink); }
.lm-clear[hidden] { display: none; }
.lm-clear:hover { background: var(--lilac); }
.lm-clear-x { width: 16px; height: 16px; }
.lm-list-sub { white-space: nowrap; margin: 0; font-size: var(--lm-fs-sm); color: var(--muted); }
@media (max-width: 639px) {
  .lm-sorts-head { font-size: 13px; }
  .lm-sorts-head .lm-dot { padding: 0 4px; }
}
/* the rows ARE the original live trip cards (owner 19 Nov 2026): beta.css .rows / .row[data-dc] / .mhead style them; nothing here
   changes their look. Only the parts the original list has no rule for: an empty list, the dividers inside it, a new row's flash. */
.lm-rows:empty { display: none; }
.rows > .lm-div + .row, .rows > .lm-div + .mhead { border-top: 0; }
.rows > .lm-div + .mhead { padding-top: 12px; }
.lm-row.is-new { animation: lm-in .35s ease-out; }
@keyframes lm-in { from { background: var(--lilac); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .lm-row.is-new { animation: none; } .lm-chev { transition: none; } }

/* the near / further divider: part of the one list, never a closed section */
.lm-div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 -16px; padding: 14px 16px 10px; list-style: none; background: var(--surface); border-top: 1px solid var(--row-line); }
.rows > .lm-div:first-child { border-top: 0; border-radius: var(--r) var(--r) 0 0; margin-top: -4px; }
@media (max-width: 639px) { .list .rows > .lm-div { margin-inline: -12px; padding-inline: 12px; } }          /* the phone list box is 12px inside (beta.css) */
.lm-div-further { border-top: 3px solid var(--border); margin-top: 6px; }
.lm-div-h { margin: 0; font-size: var(--lm-fs); font-weight: var(--fw-black); color: var(--text); }
.lm-div-towns { font-weight: var(--fw-semi); color: var(--body); }
.lm-div-n { font-size: var(--lm-fs-sm); color: var(--muted); font-weight: var(--fw-semi); }
.lm-div-n:empty { display: none; }

/* Show more, the UK link */
.lm-more { display: grid; justify-items: center; gap: 6px; margin: var(--s4) 0 0; }
.lm-more[hidden], .lm-cap[hidden] { display: none; }
.lm-cap { margin: var(--s4) 0 0; text-align: center; font-size: var(--lm-fs); color: var(--body); font-weight: var(--fw-semi); }
.lm-more-btn { min-width: min(320px, 100%); }
.lm-more-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.lm-more-sub { margin: 0; font-size: var(--lm-fs-sm); color: var(--muted); }
.lm-uk { margin: var(--s4) 0 0; text-align: center; font-size: var(--lm-fs); }
.b .lm-uk a { display: inline-flex; align-items: center; min-height: var(--lm-hit); font-weight: var(--fw-bold); color: var(--brand-ink); }
.lm-list[aria-busy="true"] .lm-rows { opacity: .55; transition: opacity .15s; }

/* empty states */
.lm-empty { padding: var(--s5); background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--r); font-size: var(--lm-fs); color: var(--body); }
.lm-empty-h { margin: 0 0 var(--s2); font-size: 20px; font-weight: var(--fw-black); color: var(--text); }
.lm-empty p { margin: 0 0 var(--s3); }
.lm-go { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.b .lm-go a { display: inline-flex; align-items: center; min-height: var(--lm-hit); font-weight: var(--fw-bold); color: var(--brand-ink); }
.lm-go-n { font-size: var(--lm-fs-sm); color: var(--muted); }
.lm-go-meta { white-space: nowrap; }          /* fix8: '· 70 miles · 1 date' never breaks inside */
.lm-other { margin: 0 0 var(--s4); }
.b .lm-other .lm-other-btn { display: inline-block; text-align: left; white-space: normal; text-decoration: none; line-height: 1.4; }
.lm-none { padding: var(--s5); margin-bottom: var(--s3); background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--r); font-size: var(--lm-fs); color: var(--body); }
.lm-none p { margin: 0 0 var(--s3); }
.lm-none-h { font-weight: var(--fw-black); color: var(--text); }

/* "Coach change" tag on network-tour cards (owner 19 Nov 2026, option B): quiet, same pill as the card's other flags */
.row-flag-chg { background: var(--surface); color: var(--body); border: 1px solid var(--border-soft); }

/* ---- page parts the page types share (were place.css / event.css / type.css before the shared top, Fable cp3) ---- */
.lm-from-err { margin-top: var(--s3); }
.lm-held { margin: var(--s4) 0; }
.lm-type-pair { margin: var(--s3) 0 0; }
.lm-place-below, .lm-ev-below, .lm-type-below { margin-top: var(--s5); }
.lm-place-below .ops, .lm-ev-below .ops, .lm-ev-below #getting-there, .lm-ev-below .qa, .lm-also, .lm-type-below .ops, .lm-type-below .panel { margin-top: var(--s5); }

.lm-list-p { flex: 1 0 100%; margin: 2px 0 0; font-weight: var(--fw-semi); }
.lm-list-p[hidden] { display: none; }
.lm-row .row-tix.tix-no { color: var(--muted); font-weight: inherit; }          /* fix6 task 10: "Travel only, no ticket" is a fact, not a warning */

/* fix15 D3: the folded 'Elsewhere in the UK' part (list.js folds it only while near or further away holds dates; without scripts it is open) */
.lm-rows.lm-fold > li[data-group="elsewhere"] { display: none; }
.lm-more.lm-more-fold { display: none; }
.lm-fold-btn { flex-basis: 100%; margin: 6px 0 2px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--border-soft); border-radius: var(--r); background: var(--panel); color: var(--text); font: inherit; font-weight: var(--fw-bold, 700); text-align: left; cursor: pointer; }
.lm-rows:not(.lm-fold) .lm-fold-btn { display: none; }

/* ---- widen_list (fix21, owner 22 Nov 2026): the list heading states the search; the way-back line; the options at the list's end ---- */
.lm-wide-h { font-size: 19px; }
.lm-wayback { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; }
.b .lm-back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--chip-on); border-radius: var(--r-pill); background: var(--chip-on); color: var(--chip-on-ink); font-size: var(--lm-fs-sm); font-weight: var(--fw-bold); text-decoration: none; }
.lm-widen { margin: var(--s5) 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); }
.lm-widen-none { margin: 0 0 var(--s2); font-size: var(--lm-fs-title); color: var(--text); }
.lm-widen-h { margin: 0 0 var(--s2); font-size: var(--lm-fs-sm); font-weight: var(--fw-bold); color: var(--muted); }
.lm-widen-ul { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.b .lm-widen-a { display: block; min-height: var(--lm-hit); padding: 10px 12px; border: 1.5px solid var(--brand); border-radius: var(--r-sm); background: var(--panel); color: var(--brand-ink); font-weight: var(--fw-bold); text-decoration: none; overflow-wrap: break-word; line-height: 1.35; }          /* fix26 item 6: one text flow, so '(+N)' stays on the label's (last) line */
.b .lm-widen-a:hover { background: var(--lilac); }
.lm-widen-n { font-weight: normal; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lm-widen-big { margin-top: var(--s3); padding: 18px 16px; border-left: 4px solid var(--brand); background: var(--lilac); }
.lm-widen-big .lm-widen-a { min-height: 52px; font-size: var(--lm-fs-title); background: var(--panel); }
.b .lm-sorts-head a { min-height: var(--lm-hit); }          /* fix22 item 2: a full tap size on phones */
.lm-tixnote { margin: 0 0 var(--s2); font-size: var(--lm-fs-sm); color: var(--body); }          /* fix23: the ticket line by event / attraction lists */
.lm-tixnote[hidden] { display: none; }
.lm-thin-next { margin: var(--s5) 0 0; font-size: 20px; font-weight: var(--fw-black); color: var(--text); }          /* fix26 item 5: the heading over a thin town's own list */
.lm-kinds[hidden], .lm-kinds > [hidden] { display: none; }          /* fix26 item 2: a pill (or the switch) the server would not print */
.lm-rows .row-mt { display: flex; flex-wrap: wrap; }          /* fix26 item 1: "exact distance not known · 06:00" never runs off a 320px screen (the time drops below) */
