/* The live page, v3 (includes/live-v3.php). Ported from the approved mock
   (.claude/state/design/live-v3/lp.css). Site tokens for both themes; the hero takes the widget v3
   look: the verdict colours the card, the chart is read against the rider's number, and the glow
   is back (Jeff, 2026-11-14). Dark is the default, as in site-next.css. */
.lp {
    --pg: #0F172A; --card: #1E293B; --inset: rgba(255,255,255,.04); --edge: rgba(255,255,255,.08);
    --ink: #F1F5F9; --text: #E2E8F0; --soft: #B6C2D2; --muted: #8696AC; --faint: #5B6F8A;
    --tap: #4FB0EA; --btn: #1683C4; --btn-ink: #FFFFFF;
    --go: #34C98B; --go-ink: #B9FFE0; --go-soft: rgba(52,201,139,.20); --go-glow: rgba(52,201,139,.40);
    --maybe: #E3B341; --maybe-soft: rgba(227,179,65,.16);
    --calm: #7FA3CC; --calm-soft: rgba(111,143,179,.16); --line15: rgba(241,245,249,.55); --lift: none;
    --grow-a: #5DF0B0; --grow-b: #1E9E6A; --halo: #1E293B; --ghost: rgba(182,194,210,.62);
    --fc-a: #3B4A5F; --fc-b: #7FA3CC;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}
[data-theme="light"] .lp {
    --pg: #EDF1F5; --card: #FFFFFF; --inset: #F1F5F9; --edge: #D5DCE4;
    --ink: #0F172A; --text: #1E293B; --soft: #334155; --muted: #475569; --faint: #94A3B8;
    --tap: #1374AE; --btn: #1683C4; --btn-ink: #FFFFFF;
    --go: #159C63; --go-ink: #0B6B43; --go-soft: rgba(21,156,99,.12); --go-glow: rgba(21,156,99,.22);
    --maybe: #B7860B; --maybe-soft: rgba(183,134,11,.12);
    --calm: #5F84B0; --calm-soft: rgba(95,132,176,.12); --line15: rgba(15,23,42,.45);
    --lift: 0 1px 2px rgba(15,23,42,.05), 0 2px 10px rgba(15,23,42,.04);
    --grow-a: #3FD497; --grow-b: #159C63; --halo: #FFFFFF; --ghost: rgba(51,65,85,.55);
    --fc-a: #B7C9DE; --fc-b: #5F84B0;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp a { color: var(--tap); text-decoration: none; }
.lp-wrap { display: grid; gap: 14px; max-width: 1120px; margin: 0 auto; padding: 14px 16px 28px; min-width: 0; }

.lp-title { padding: 2px 4px 0; }
.lp-title h1 { margin: 0; font-size: 22px; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.lp-title p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

/* ── The hero ── */
.lp-hero {
    --v: var(--calm); --v-soft: var(--calm-soft);
    position: relative; display: grid; gap: 12px; padding: 16px; border-radius: 20px; min-width: 0;
    background: radial-gradient(130% 70% at 0% 0%, var(--v-soft), transparent 62%), var(--card);
    box-shadow: inset 0 0 0 1px var(--edge), var(--lift);
}
.lp-hero.v-go { --v: var(--go); --v-soft: var(--go-soft); }
.lp-hero.v-maybe { --v: var(--maybe); --v-soft: var(--maybe-soft); }
.lp-call { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.lp-callmain { min-width: 0; }
.lp-head { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.lp-hero.v-go .lp-head { color: var(--v); text-shadow: 0 0 22px var(--go-glow); }
.lp-hero.v-maybe .lp-head { color: var(--v); }
.lp-hero.is-pending .lp-head { color: var(--soft); font-size: 20px; }
.lp-sub { margin: 6px 0 0; font-size: 14px; color: var(--soft); text-wrap: pretty; }
.lp-now { flex: none; text-align: right; }
.lp-num { font-size: 44px; line-height: .95; font-weight: 700; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.lp-num small { margin-left: 3px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--soft); }
.lp-hero.v-go .lp-num { color: var(--go); text-shadow: 0 0 26px var(--go-glow); }
.lp-hero.is-stale .lp-num { color: var(--faint); }
.lp-nowsub { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lp-nowsub i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--go); vertical-align: 1px; }
.lp-hero.is-stale .lp-nowsub i { background: var(--faint); }
/* The reading is the headline (Jeff, 2026-11-15); the verdict at the rider's number rides above it. */
.lp-state { margin: 0 0 2px; font-size: 13.5px; font-weight: 600; color: var(--soft); text-wrap: balance; }
.lp-state i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--v, var(--faint)); vertical-align: 1px; }
.lp-hero.v-go .lp-state, .lp-hero.v-maybe .lp-state { color: var(--v); }
.lp-hero .lp-headnum { font-size: 56px; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.lp-headnum small { margin-left: 3px; font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--soft); }
.lp-headnum .lp-dir { margin-left: 10px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--soft); }
.lp-hero.is-pending .lp-headnum { font-size: 56px; color: var(--ink); }
.lp-fcmax { margin-top: 10px; font-size: 15px; color: var(--soft); }
.lp-fcmax b { color: var(--ink); font-weight: 700; }

.lp-chart { position: relative; min-width: 0; }
.lp-chart-wait { height: 196px; border-radius: 12px; background: var(--inset); }
.lp-chart svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.lp-chart .c-ink { fill: var(--ink); } .lp-chart .c-soft { fill: var(--soft); } .lp-chart .c-muted { fill: var(--muted); }
.lp-chart .c-halo { stroke: var(--halo); }
.lp-chart .c-band { fill: var(--muted); fill-opacity: .08; }
.lp-chart .c-line15 { stroke: var(--line15); }
.lp-chart .c-tick { stroke: var(--muted); stroke-opacity: .5; }
.lp-chart .c-meter { stroke: var(--ink); } .lp-chart .c-fc { stroke: var(--calm); }
.lp-chart .c-over { stroke: var(--go-ink); }
.lp-chart .c-glow { fill: var(--go); }
.lp-chart .c-ghost { stroke: var(--ghost); } .lp-chart .c-ghost-halo { stroke: var(--halo); stroke-opacity: .55; }
.lp-grow { transform-origin: 0 var(--base); animation: lpgrow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lpgrow { from { transform: scaleY(.04); } to { transform: none; } }
.lp-pulse { transform-box: fill-box; transform-origin: center; animation: lppulse 2.2s ease-out infinite; }
@keyframes lppulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.lp-tip { position: absolute; top: 0; z-index: 2; padding: 5px 8px; border-radius: 8px; background: var(--ink); color: var(--pg); font-size: 12px; line-height: 1.3; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.lp-tip b { display: block; font-size: 13px; }
.lp-key { margin: -4px 0 0; }
.lp-key i { display: inline-block; width: 18px; height: 0; margin-right: 6px; border-top: 1.6px dashed var(--ghost); vertical-align: 3px; }

.lp-finding { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text); text-wrap: pretty; }
.lp-finding b { color: var(--ink); }
.lp-finding span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); }

.lp-ask { display: grid; gap: 7px; }
.lp a.lp-btn, .lp-btn { display: block; padding: 13px 16px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 15.5px; text-align: center; }
.lp a.lp-btn:hover, .lp a.lp-btn:focus-visible { filter: brightness(1.08); }
.lp-fine { font-size: 12px; color: var(--muted); text-align: center; }
.lp-mine { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: var(--inset); font-size: 13.5px; color: var(--soft); }
.lp-mine b { color: var(--ink); }
.lp-mine a { flex: none; font-weight: 600; }

.lp-links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 4px; font-size: 14px; font-weight: 600; }

/* ── Cards below the hero ── */
.lp-card { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--lift); min-width: 0; }
.lp-card h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.lp-card[hidden] { display: none; }
.lp-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lp-watch { font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--edge); background: var(--inset); color: var(--tap); cursor: pointer; }
.lp-watch.on { background: var(--go-soft); color: var(--go); border-color: transparent; }
.lp-strip { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge), var(--lift); font-size: 14px; color: var(--soft); }
.lp-strip b { color: var(--ink); }
.lp-strip a { flex: none; font-weight: 600; }

.lp-rows { display: grid; gap: 9px; }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.lp a.lp-row { color: inherit; }
.lp-row .nm { min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row .nm small { display: block; font-size: 11.5px; color: var(--muted); white-space: normal; }
.lp-row.here .nm { font-weight: 700; color: var(--ink); }
.lp-row.here .nm small { font-weight: 400; }
.lp-row .val { text-align: right; color: var(--ink); font-weight: 600; white-space: nowrap; }
.lp-bar { position: relative; height: 8px; border-radius: 99px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--edge); }
.lp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--calm); }
.lp-bar i.on { background: var(--go); }
.lp-bar u, .lp-hbar u { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed var(--line15); }

.lp-fold { font-size: 13.5px; color: var(--muted); }
.lp-fold summary { cursor: pointer; color: var(--tap); font-weight: 600; list-style: none; }
.lp-fold summary::-webkit-details-marker { display: none; }
.lp-fold summary::before { content: '+'; display: inline-block; width: 1.1em; }
.lp-fold[open] summary::before { content: '\2013'; }
.lp-fold > div { margin-top: 8px; }
details.lp-card.lp-fold { display: block; }
details.lp-card[hidden] { display: none; }
.lp-foot { margin: 0; font-size: 12px; color: var(--muted); }

.lp-cams { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.lp-cams::-webkit-scrollbar { display: none; }
.lp a.lp-cam { flex: none; width: 148px; display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 12px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13px; color: var(--text); line-height: 1.3; }
.lp a.lp-cam b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp a.lp-cam small { display: block; color: var(--muted); font-size: 11.5px; }

.lp-dots { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.lp-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--go); }
.lp-dots i.miss { background: transparent; box-shadow: inset 0 0 0 2px var(--maybe); }
.lp-dots i.none { background: var(--inset); box-shadow: inset 0 0 0 1px var(--edge); }
.lp-pair { display: grid; gap: 6px; }
.lp-pair .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.lp-pair .lbl b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lp-hbar { position: relative; height: 10px; border-radius: 99px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--edge); }
.lp-hbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--calm); opacity: .75; }
.lp-hbar i.m { background: var(--go); opacity: 1; }
.lp-hbar i.m.under { background: var(--ink); opacity: .7; }
.lp-day { display: grid; gap: 5px; padding-top: 9px; border-top: 1px solid var(--edge); }
.lp-day .lbl { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text); }
.lp-day .lbl em { font-style: normal; color: var(--muted); }
.lp-day .lbl em.came { color: var(--go); font-weight: 600; }
.lp-fold .lp-day { margin-bottom: 9px; }
.lp-premium { display: grid; gap: 7px; padding: 12px; border-radius: 14px; background: var(--inset); }
.lp-premium p { margin: 0; font-size: 14px; color: var(--ink); font-weight: 600; }

/* The shared figures (rose, standard rider) inside a v3 card: the card is the chrome. */
.lp-figwrap { display: block; }
.lp-figwrap .ws-figure { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; max-width: none; }
/* A receipts column is narrower than the figure's own two-up head: stack it. */
.lp-figwrap .ribbon-head { display: block; }
.lp-figwrap .ribbon-head-r { margin-top: 8px; }

.lp-readings summary { font-size: 14px; }
.lp-hero > .lp-readings { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.lp-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; color: var(--text); }
.lp-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 4px 6px 6px 0; border-bottom: 1px solid var(--edge); }
.lp-table td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.lp-table .lp-dayrow td { padding-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lp-readings .lp-foot { margin-top: 8px; }
.lp-nearby ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lp-nearby a { font-weight: 600; }


/* The shared figure chassis' eyebrow is lowercased by live.css for the old page; here it keeps the station id's case (MKGM4). */
body[data-page="live"] .lp .ribbon-eyebrow { text-transform: none; }

/* The chassis hard-codes a light title for its dark default; in the light theme it vanished on the card. */
.lp .ws-figure .ribbon-title { color: var(--ink); }

/* ── Yesterday: the bars on one knot scale ── */
.lp-yb { display: grid; gap: 4px; }
.lp-yb .plot { position: relative; display: grid; gap: 10px; padding-top: 2px; }
.lp-yb .plot.has-th { padding-top: 18px; }
.lp-yb-row { display: grid; gap: 4px; }
.lp-yb-row .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.lp-yb-row .lbl b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lp-yb .trk { height: 14px; border-radius: 4px; background: var(--inset); }
.lp-yb .trk i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--fc-a), var(--fc-b)); transform-origin: left; }
.lp-yb .trk i.cor { background: linear-gradient(90deg, var(--fc-b), var(--tap)); }
.lp-yb .trk i.m { background: linear-gradient(90deg, var(--grow-b), var(--grow-a)); box-shadow: 0 0 14px var(--go-glow); }
.lp-yb .trk i.m.under { background: var(--ink); opacity: .72; box-shadow: none; }
.lp-yb .plot u { position: absolute; top: 14px; bottom: -4px; width: 0; border-left: 2px dashed var(--line15); pointer-events: none; }
.lp-yb .plot u em { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); margin-bottom: 1px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.lp-yb .ax { position: relative; height: 18px; border-top: 1px solid var(--edge); font-size: 11px; color: var(--muted); }
.lp-yb .ax span { position: absolute; top: 3px; transform: translateX(-50%); }
.lp-yb .ax span:first-child { transform: none; }
.lp-yb .ax small { position: absolute; right: 0; top: 3px; font-size: 11px; }
.lp-rec { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.lp-rec b { color: var(--ink); font-weight: 600; }
.lp-fold p { margin: 0 0 8px; }

/* ── Lake breeze: the cam site's receipts figure, in this page's tokens ── */
.lk { display: grid; gap: 12px; min-width: 0; }
.lk-cmp { display: grid; grid-template-columns: auto minmax(0, 1fr) 2.2em; align-items: center; gap: 8px 10px; }
.lk-cmp .cl { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lk-cmp .trk { display: flex; gap: 2px; height: 22px; }
.lk-cmp .trk i { display: block; min-width: 0; font-style: normal; transform-origin: left; }
.lk-cmp .trk i:last-child { border-radius: 0 4px 4px 0; }
.lk-cmp .trk i.fc { background: linear-gradient(90deg, var(--fc-a), var(--fc-b)); }
.lk-cmp .trk i.ob { display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 12px; font-weight: 700; color: #0B2A1C; background: linear-gradient(90deg, var(--grow-b), var(--grow-a)); box-shadow: 0 0 16px var(--go-glow); }
.lk-cmp .n { font-size: 22px; font-weight: 700; line-height: 1; color: var(--soft); }
.lk-cmp .n.top { font-size: 30px; color: var(--ink); }
.lk-cap { margin: -6px 0 0; font-size: 12px; color: var(--muted); }
.lk-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.lk-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lk-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.lk-key i.fc { background: var(--fc-b); }
.lk-key i.ob { background: linear-gradient(to top, var(--grow-b), var(--grow-a)); }
.lk-key i.ln { width: 14px; height: 0; border-radius: 0; border-top: 2px dashed var(--line15); }
.lk-fig { position: relative; margin: 0; min-width: 0; }
.lk-plot { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); font-size: 11px; }
.lk-y { position: relative; color: var(--muted); }
.lk-y span { position: absolute; right: 6px; transform: translateY(50%); line-height: 1; white-space: nowrap; }
.lk-y .ride { color: var(--go); font-weight: 600; }
.lk-y .nogo { color: var(--faint); font-weight: 600; }
.lk-y .ln { color: var(--ink); font-weight: 600; }
.lk-area { position: relative; height: 128px; display: grid; border-bottom: 1px solid var(--edge); }
.lk-zone { position: absolute; top: 0; left: 0; right: 0; border-radius: 6px 6px 0 0; pointer-events: none; background: linear-gradient(to top, var(--go-soft), transparent); }
.lk-col { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; border-radius: 6px 6px 0 0; outline: none; cursor: default; position: relative; }
.lk-col:hover, .lk-col:focus-visible { background: var(--inset); }
.lk-col:focus-visible { box-shadow: 0 0 0 2px var(--tap); }
.lk-col .bar { position: relative; width: min(14px, 42%); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.lk-col .bar.fc { background: linear-gradient(to top, var(--fc-a), var(--fc-b)); }
.lk-col .bar.ob { background: linear-gradient(to top, var(--grow-b), var(--grow-a)); box-shadow: 0 0 12px var(--go-glow); }
.lk-col .bar em { position: absolute; z-index: 2; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 2px; padding: 0 2px; border-radius: 3px; background: var(--card); font-style: normal; line-height: 1.25; color: var(--muted); }
.lk-col .bar.ob em { color: var(--ink); font-weight: 600; }
.lk-col .bar em { font-size: 10px; }
.lk-line { position: absolute; z-index: 1; left: 0; right: 0; height: 0; border-top: 2px dashed var(--line15); pointer-events: none; }
.lk-x { display: grid; margin-top: 5px; color: var(--muted); text-align: center; line-height: 1.25; font-size: 11px; }
.lk-x b { display: block; font-weight: 500; color: var(--soft); }
.lk-x i { display: block; font-style: normal; min-height: 1.25em; }
.lk-tip { position: absolute; z-index: 5; width: max-content; max-width: 210px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--pg); font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.3); pointer-events: none; }
.lk-tip[hidden] { display: none; }
.lk-tip strong { display: block; font-weight: 700; }
#lv3-lake .lp-ask { width: 100%; max-width: 420px; margin: 0 auto; }
.lk-ask { font-size: 14px; color: var(--soft); text-align: center; }

/* The grow-in: drawn once, when the figure first scrolls into view. No script, or reduced motion: drawn. */
.lp.js [data-grow] .trk i, .lp.js [data-grow] .lk-col .bar { transition: transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.lp.js [data-grow]:not(.in) .lp-yb .trk i, .lp.js .lp-yb[data-grow]:not(.in) .trk i { transform: scaleX(0); }
.lp.js .lk[data-grow]:not(.in) .lk-cmp .trk i { transform: scaleX(0); }
.lp.js .lk[data-grow]:not(.in) .lk-cmp .trk i.ob { transition-delay: .6s; }
.lp.js .lk[data-grow]:not(.in) .lk-col .bar { transform: scaleY(0); }
.lp.js .lk[data-grow]:not(.in) .lk-col .bar em, .lp.js .lk[data-grow]:not(.in) .lk-zone { opacity: 0; }
.lp .lk .lk-col .bar em, .lp .lk .lk-zone { transition: opacity .4s .9s; }
.lp.js .lp-yb[data-grow]:not(.in) .plot u { opacity: 0; }
.lp .lp-yb .plot u { transition: opacity .4s .5s; }

/* ── The cards: phone is one column in the old order; wide is a main column and a rail ── */
.lp-below { display: grid; gap: 14px; min-width: 0; }
.lp-main, .lp-rail { display: contents; }
.lp-below .lp-strip { order: 1; }
.lp-below #lv3-upwind { order: 2; }
.lp-below .lp-camcard { order: 3; }
.lp-below #postmortem { order: 4; }
.lp-below .lp-sr { order: 5; }
.lp-below .lp-lake { order: 6; }
.lp-below .lp-rose { order: 7; }
.lp-below .lp-readings { order: 8; }
.lp-below .lp-nearby { order: 9; }

/* Wide: the call beside its chart; the receipts left, the rail right. */
@media (min-width: 900px) {
    .lp-wrap { padding: 18px 24px 36px; gap: 16px; }
    .lp-title h1 { font-size: 28px; }
    .lp-hero { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); grid-template-areas: "call chart" "key chart" "finding chart" "ask chart"; align-items: start; gap: 14px 28px; padding: 22px 24px; }
    .lp-hero .lp-call { grid-area: call; } .lp-hero .lp-chart { grid-area: chart; align-self: center; }
    .lp-hero .lp-key { grid-area: key; margin: 0; } .lp-hero .lp-finding { grid-area: finding; }
    .lp-hero .lp-ask, .lp-hero .lp-mine { grid-area: ask; }
    .lp-hero > .lp-readings { grid-column: 2; grid-row: 5; }
    .lp-head { font-size: 32px; }
    .lp-hero .lp-headnum { font-size: 64px; }
    .lp-chart-wait { height: 250px; }
    .lp-below { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
    .lp-main, .lp-rail { display: grid; gap: 16px; min-width: 0; align-content: start; align-items: start; }
    .lp-below > * , .lp-main > *, .lp-rail > * { order: 0 !important; }
    .lp-cams { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
    .lp a.lp-cam { width: calc(50% - 4px); }
    .lk-area { height: 150px; }
    /* A meter with no receipts has only the readings fold in the main column: don't leave a hole beside the rail.
       The rail takes the width in two columns and the fold runs full width under it. */
    .lp-below:has(.lp-main > .lp-readings:only-child) { grid-template-columns: minmax(0, 1fr); }
    .lp-below:has(.lp-main > .lp-readings:only-child) .lp-rail { grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-below:has(.lp-main > .lp-readings:only-child) .lp-main { grid-row: 2; }
    .lp-below:has(.lp-main > .lp-readings:only-child) .lp-cams { flex-wrap: nowrap; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-grow, .lp-pulse { animation: none; } .lp-pulse { opacity: 0; }
    .lp .lp-yb *, .lp .lk * { transition: none !important; }
}
