.lm { --lm-hdr: 61px; --lm-places: var(--teal); --lm-virtual: var(--navy-2); --lm-virtual-soft: #e3ebf3; --lm-labs: var(--warm); --lm-labs-soft: var(--warm-soft); padding: 0 0 56px; }
.lm-stop, .lm section { padding: 0; }
.lm-head { padding-bottom: 16px; }
.lm-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.lm-head .lede { margin-bottom: .6em; }

.lm-bar { position: sticky; top: var(--lm-hdr); z-index: 30; background: rgba(251, 249, 245, .97); backdrop-filter: saturate(1.2) blur(8px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(18, 48, 74, .06); }
.lm-bar-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter) 10px; display: grid; gap: 8px 24px; grid-template-columns: minmax(0, 1fr); }
.lm-reach-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.lm-reach-h label { font-weight: 650; color: var(--navy); font-size: 14px; }
.lm-readout { font-family: var(--serif); color: var(--teal); font-size: 1rem; line-height: 1.3; }
.lm-bar input[type="range"].ladder-slider { height: 28px; display: block; }
.lm-bar .slider-ticks { margin-top: 0; font-size: 11.5px; }

.lm-mini { display: none; }
.lm-short { min-width: 0; font-size: 13px; font-weight: 600; color: var(--teal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-pick { flex: none; font: inherit; font-size: 13.5px; min-height: 32px; max-width: 40%; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.lm-sw { flex: none; display: inline-block; width: 14px; height: 14px; }
.lm-sw.places { border-radius: 50%; background: var(--lm-places); width: 12px; height: 12px; }
.lm-sw.virtual { height: 6px; width: 18px; border-radius: 3px; background: var(--lm-virtual); }
.lm-sw.labs { width: 11px; height: 11px; background: var(--lm-labs); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }

.lm-jump ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lm-jump button { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; font: inherit; font-size: 13px; line-height: 1.2; text-align: left; min-height: 34px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-soft); background: #fff; color: var(--navy); cursor: pointer; }
.lm-jump button:hover { border-color: var(--teal-2); }
.lm-jump-n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-jump-c { flex: none; font-size: 12px; font-weight: 700; color: var(--teal); }
.lm-jump li:last-child button { background: var(--navy); border-color: var(--navy); color: #fff; }
.lm-jump li:last-child .lm-jump-c { color: #9fd3cd; }
.lm-jump button.out { border-style: dashed; background: transparent; color: var(--muted); }
.lm-jump button.out .lm-jump-c { color: var(--muted); }
.lm-jump button.is-here { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.lm-jump button.is-here::before { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--focus); }

.lm-body { padding-top: 16px; }
.lm-notes:empty { display: none; }
.lm-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.lm-note .lm-sw { margin-top: 6px; }

.lm-group { margin-top: 18px; }
.lm-group-h { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; }
.lm-stop { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(18, 48, 74, .05); margin-bottom: 8px; scroll-margin-top: calc(var(--lm-hdr) + var(--lm-bar-h, 160px) + 8px); }
.lm-group:is([data-g="local"], [data-g="regional"]) .lm-stop { background: #f4f7fa; }
.lm-group[data-g="comm"] .lm-stop { background: var(--teal-mist); }
.lm-group:is([data-g="home"], [data-g="travel"]) .lm-stop { background: var(--sand-2); }
.lm-stop.is-open { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus), var(--shadow); }
.lm-stop.out { opacity: .62; border-style: dashed; }
.lm-stop.out.is-open { opacity: 1; }
.lm-stop-h { margin: 0; font: inherit; }
.lm-stop-btn { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr) 20px; gap: 12px; align-items: start; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 12px 14px; cursor: pointer; border-radius: var(--radius); }
.lm-rung { align-self: stretch; width: 6px; border-radius: 3px; background: var(--teal-2); }
.lm-group:is([data-g="local"], [data-g="regional"]) .lm-rung { background: var(--navy-2); }
.lm-group:is([data-g="home"], [data-g="travel"]) .lm-rung { background: #c9a46a; }
#lm-stop-regional .lm-rung { background: var(--navy); }
.lm-stop-text { display: grid; gap: 2px; min-width: 0; }
.lm-stop-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lm-stop-line { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.lm-stop-count { font-size: 13.5px; color: var(--muted); }
.lm-stop-count strong { color: var(--teal); font-weight: 650; }
.lm-out-note { display: none; }
.lm-stop.out .lm-out-note { display: inline; }
.lm-stop-layers { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lm-stop-layers:empty { display: none; }
.lm-here { display: none; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a5a10; }
.lm-here::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--focus); margin-right: 5px; vertical-align: 1px; }
.lm-stop.is-open .lm-here { display: inline-block; }
.lm-chev { width: 20px; height: 20px; margin-top: 3px; position: relative; }
.lm-chev::before { content: ""; position: absolute; left: 5px; top: 3px; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
[aria-expanded="true"] > .lm-chev::before { transform: translate(0, 4px) rotate(-135deg); }

.lm-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.lm-mark.virtual { color: var(--lm-virtual); }
.lm-mark.labs { color: #8c4826; }

.lm-stop-panel { padding: 0 14px 14px 36px; }
.lm-intro { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; max-width: 62em; }
.lm-intro p { margin: 0 0 8px; }
.lm-members { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 3px; }
.lm-more, .lm-study { margin: 6px 0 10px; font-size: 14px; }
.lm-more summary, .lm-study summary { cursor: pointer; font-weight: 650; color: var(--navy); min-height: 32px; display: list-item; padding: 4px 0; }
.lm-study { background: var(--warm-soft); border-left: 4px solid var(--warm); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 6px 14px; margin: 0 0 8px; }
.lm-study ul, .lm-more ul { margin: 4px 0 6px; padding-left: 18px; color: var(--ink-soft); }
.lm-stays { background: #0d2438; color: #e4edf3; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; margin: 8px 0; }
.lm-stays-h { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9fd3cd; margin-bottom: 4px; }
.lm-stays ul { margin: 0; padding-left: 18px; }

.lm-cols { display: none; }
.lm-phase { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 14px 0 6px; }
.lm-mom { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 6px; }
.lm-mom.v-here { box-shadow: inset 5px 0 0 var(--lm-virtual); }
.lm-mom.lab-here { box-shadow: inset 5px 0 0 var(--lm-labs); }
.lm-mom.v-here.lab-here { box-shadow: inset 5px 0 0 var(--lm-virtual), inset 10px 0 0 var(--lm-labs); }
.lm-mom.is-open { border-color: var(--teal-2); }
.lm-mom-btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; align-items: start; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 9px 12px 9px 16px; cursor: pointer; border-radius: 10px; }
.lm-mom-text { display: grid; gap: 1px; min-width: 0; }
.lm-mom-when { font-size: 12px; font-weight: 650; color: var(--muted); }
.lm-mom-title { font-weight: 650; color: var(--navy); font-size: 15px; line-height: 1.3; }
.lm-mom-sum { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.lm-marks { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.lm-marks:empty { display: none; }
.lm-strip-mini { display: none; }
.lm-mom-panel { padding: 0 14px 12px 16px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.lm-also-line { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }
.lm-checks { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 2px; }
.lm-who { margin: 0 0 6px; }
.lm-lv { margin-top: 8px; padding: 8px 12px; border-radius: 8px; }
.lm-lv-virtual { background: var(--lm-virtual-soft); }
.lm-lv-labs { background: var(--lm-labs-soft); }
.lm-lv-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 2px; }
.lm-lv ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }

.lm-every { margin-top: 22px; max-width: 70em; }
.lm-foot { margin-top: 18px; }

@media (min-width: 760px) {
  .lm-jump ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .lm-bar-in { padding-top: 12px; padding-bottom: 12px; }
  .lm-jump button { font-size: 14px; min-height: 38px; }
  .lm-stop-btn { padding: 14px 18px; }
  .lm-stop-name { font-size: 1.25rem; }
  .lm-stop-panel { padding: 0 18px 18px 40px; }
  .lm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 420px 20px; gap: 10px; align-items: end; padding: 10px 12px 0 16px; font-size: 11.5px; color: var(--muted); }
  .lm-cols-lbl { font-weight: 600; }
  .lm-cols-cells { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; line-height: 1.2; }
  .lm-mom-btn { grid-template-columns: minmax(0, 1fr) 420px 20px; align-items: center; }
  .lm-strip-mini { display: grid; grid-template-columns: repeat(7, 1fr); align-self: stretch; }
  .lm-cell { position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; border-left: 1px dashed var(--line-soft); }
  .lm-cell i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; }
  .lm-cell.on i { width: 14px; height: 14px; border: 0; background: var(--lm-places); }
  .lm-cell[data-col="regional"].on i { background: var(--navy); }
  .lm-cell.here { background: #fdf3df; border-radius: 6px; }
  .lm-cell.here.on i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--focus); }
  .lm-cell.v::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 5px; background: var(--lm-virtual); }
  .lm-cell.lab::before { content: ""; position: absolute; top: 4px; right: calc(50% - 18px); width: 8px; height: 8px; background: var(--lm-labs); border-radius: 50% 0 50% 50%; transform: rotate(-45deg); }
  .lm[data-v="0"] .lm-cell:is([data-col="clinic"], [data-col="pharmacy"], [data-col="orgs"], [data-col="home"], [data-col="traveling"]), .lm[data-v="1"] .lm-cell:is([data-col="home"], [data-col="traveling"]) { opacity: .35; }
  .lm[data-v="0"] .lm-cols-cells span:is([data-col="clinic"], [data-col="pharmacy"], [data-col="orgs"], [data-col="home"], [data-col="traveling"]), .lm[data-v="1"] .lm-cols-cells span:is([data-col="home"], [data-col="traveling"]) { opacity: .45; }
  .lm-also-line .lm-also:first-child { display: inline; }
}
@media (min-width: 1240px) {
  .lm-cols, .lm-mom-btn { grid-template-columns: minmax(0, 1fr) 525px 20px; }
}
@media (max-width: 600px) {
  .lm-bar-in { gap: 2px; padding-top: 6px; padding-bottom: 6px; }
  .lm-reach-h, .lm-bar .slider-ticks, .lm-jump { display: none; }
  .lm-reach-h { display: block; height: 0; overflow: hidden; }
  .lm-bar input[type="range"].ladder-slider { height: 26px; }
  .lm-mini { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .lm-stop-btn { padding: 11px 12px; gap: 10px; }
  .lm-stop-panel { padding: 0 10px 12px 10px; }
  .lm-mom-btn { padding: 9px 10px 9px 14px; }
  .lm-mom-panel { padding: 0 10px 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .lm-chev::before { transition: none; } }
@media print { .lm-bar { position: static; } }

@media (min-width: 900px) {
  .lm { padding-bottom: 32px; }
}
