/* Travels with Rhea. Outdoor tones: pine, moss, sand, slate, with an ember accent for
   the live dot and the driven line. Every color is a token; dark mode redefines them. */
:root {
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1d2420;
  --muted: #5f675f;
  --line: #e2dccd;
  --pine: #1f3a2e;
  --moss: #5b7045;
  --sand: #e9dfc9;
  --slate: #4a5560;
  --ember: #c9571f;
  --ember-soft: rgba(201, 87, 31, .14);
  --ember-text: #a3431a;   /* the ember accent as text: 6:1 on the cards (AA) */
  --rhea: #1d5c8c;         /* Rhea's own dot: nothing else on the map is this blue */
  --link: #2f5d45;
  --plan: #8f928a;
  --leg1: #2f6b57;
  --leg2: #3a6687;
  --leg3: #a86f22;
  --steinbeck: #6d5a86;
  --yes: #2f6b3f;
  --yes-bg: #e3efdf;
  --partial: #8a6212;
  --partial-bg: #f5ead0;
  --no: #9a3a24;
  --no-bg: #f6e1da;
  --shadow: 0 1px 2px rgba(20, 30, 25, .08), 0 4px 16px rgba(20, 30, 25, .06);
  --ui: "Seravek", "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, system-ui, sans-serif;
  --slab: Rockwell, "Rockwell Nova", "Roboto Slab", "DejaVu Serif", "Sitka Small", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101612; --card: #171f1a; --ink: #e7e3d8; --muted: #9ba396; --line: #29332c;
    --pine: #9cc4ae; --moss: #a7bb88; --sand: #2b2a22; --slate: #a9b4bd; --ember: #f07b3f;
    --ember-soft: rgba(240, 123, 63, .18); --link: #9cc9ae; --plan: #7b8078; --ember-text: #f39565; --rhea: #6fb3e8;
    --leg1: #5fae92; --leg2: #6ea3c8; --leg3: #d6a04e; --steinbeck: #a996c4;
    --yes: #9fd3a8; --yes-bg: #1d3323; --partial: #e6c070; --partial-bg: #3a3019; --no: #f0a08a; --no-bg: #3d2119;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101612; --card: #171f1a; --ink: #e7e3d8; --muted: #9ba396; --line: #29332c;
  --pine: #9cc4ae; --moss: #a7bb88; --sand: #2b2a22; --slate: #a9b4bd; --ember: #f07b3f;
  --ember-soft: rgba(240, 123, 63, .18); --link: #9cc9ae; --plan: #7b8078; --ember-text: #f39565; --rhea: #6fb3e8;
  --leg1: #5fae92; --leg2: #6ea3c8; --leg3: #d6a04e; --steinbeck: #a996c4;
  --yes: #9fd3a8; --yes-bg: #1d3323; --partial: #e6c070; --partial-bg: #3a3019; --no: #f0a08a; --no-bg: #3d2119;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--ui); overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--slab); line-height: 1.2; color: var(--pine); }
h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 20px 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.lede { font-size: 1.1rem; max-width: 42em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 24px; }
.wrap.narrow { max-width: 760px; }
button, input, textarea, select { font: inherit; color: inherit; }

#devbar { background: #2b2b2b; color: #ffd9a0; font-size: .82rem; padding: 6px 16px; text-align: center; }
#devbar b { color: #fff; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 16px; max-width: 1040px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--pine); font: 700 1.15rem var(--slab); }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; font-size: .95rem; }
.nav a[aria-current] { background: var(--sand); color: var(--pine); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; font-size: .88rem; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill.live { border-color: var(--ember); color: var(--ember-text); }
.pill.new { background: var(--pine); color: var(--paper); border-color: var(--pine); font-weight: 600; }
.pill.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }

.pill.live.dark { border-color: var(--line); color: var(--muted); }
.pill.live.dark::before { background: var(--muted); }
@media (max-width: 640px) {
  .top { padding: 8px 16px; }
  .nav { order: 3; width: 100%; margin: 0 -8px; overflow-x: auto; flex-wrap: nowrap; }
  #livePill { order: 2; margin-left: auto; }
}

/* map hero */
.hero { position: relative; }
.strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; max-width: 1040px; margin: 0 auto; }
.map { height: 64vh; min-height: 380px; max-height: 760px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sand); }
.leaflet-container { font: 14px/1.4 var(--ui); }
.leaflet-control-layers { border-radius: 10px !important; }
.leaflet-control-layers-expanded { padding: 8px 12px; font-size: .92rem; }
/* Rhea's dot: a paw in a white disc, her own blue, always pulsing so it's the first thing you find */
.livedot { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--rhea); border: 3px solid var(--rhea);
  display: grid; place-items: center; box-shadow: 0 0 0 0 var(--rhea); animation: pulse 2.2s ease-out infinite; }
.livedot.moving { animation-duration: 1.2s; }
.livedot svg { width: 20px; height: 20px; }
.lp-paw { color: var(--rhea); display: inline-flex; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rhea) 60%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.pill.live::before { animation: none; }
@keyframes dotpulse { 0% { opacity: 1; } 100% { opacity: .35; } }
.pill.live.moving::before { animation: dotpulse 1s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .livedot, .pill.live.moving::before { animation: none; } }
.sheet { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 800; max-width: 440px; max-height: 70%;
  overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; }
.sheet h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.sheet .x { position: sticky; top: 0; float: right; border: 0; background: var(--sand); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 1.1rem; }
@media (min-width: 900px) { .sheet { left: auto; right: 64px; top: 12px; bottom: auto; max-height: calc(100% - 24px); width: 380px; } }

.today { margin: 16px 0 4px; }
.verdict { display: inline-block; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 1px 10px; text-decoration: none; margin: 2px 4px 2px 0; }
.v-yes { background: var(--yes-bg); color: var(--yes); }
.v-partial { background: var(--partial-bg); color: var(--partial); }
.v-no { background: var(--no-bg); color: var(--no); }
.tag { display: inline-block; font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--muted); margin-left: 4px; }
.tag.ok { border-color: var(--yes); color: var(--yes); }
.tag.new { background: var(--pine); color: var(--paper); border-color: var(--pine); margin: 0 4px 0 0; }
.tag.unconfirmed { border-style: dashed; }
.badge { display: inline-block; font-size: .72rem; background: var(--pine); color: var(--paper); border-radius: 6px; padding: 0 6px; font-weight: 600; vertical-align: 1px; }

/* posts */
.post, .dispatch { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; box-shadow: var(--shadow); }
.dispatch { border-left: 4px solid var(--ember); }
.kicker { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.ptitle { margin: 4px 0 2px; font-size: 1.35rem; }
.ptitle a { color: inherit; text-decoration: none; }
h1.ptitle { font-size: clamp(1.5rem, 5vw, 2rem); }
.meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.body h2, .body h3 { font: 600 .82rem var(--ui); text-transform: uppercase; letter-spacing: .05em; color: var(--moss); margin: 18px 0 2px; }
.body p, .body ul { margin: 6px 0; }
.more { font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 10px 0; }
.photos a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--sand); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .badge { position: absolute; left: 6px; bottom: 6px; }
.embeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.embeds blockquote { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plan { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 16px; margin: 16px 0; }
.plan h2 { margin-top: 6px; font-size: 1rem; }
.pager { display: flex; justify-content: space-between; margin: 20px 0; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.embed { margin: 0; }
.embed iframe { width: 100%; border: 0; border-radius: 10px; background: var(--sand); }
.embed.ig iframe { aspect-ratio: 4 / 5.6; }
.embed.tt iframe { aspect-ratio: 9 / 16; max-height: 740px; }
.embed figcaption, .embed-link { font-size: .85rem; margin-top: 4px; }
button.share { margin-left: 10px; font-size: .75rem; border: 1px solid var(--line); background: var(--card); color: var(--link);
  border-radius: 999px; padding: 6px 12px; min-height: 32px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.dispatch:target, .post:target { outline: 3px solid var(--rhea); outline-offset: 2px; }

/* home intro: who and why, before the map */
.intro { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.intro h1 { margin: 0 0 6px; }
.intro p { margin: 0; max-width: 40em; }
.rhea { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--card); box-shadow: var(--shadow); background: var(--sand); }
.rhea-mark { display: grid; place-items: center; color: var(--rhea); }
.rhea-mark .paw { width: 64px; height: 64px; }
.about-rhea .rhea { width: 200px; height: 200px; margin: 6px 0 4px; }
@media (max-width: 560px) { .intro { grid-template-columns: 1fr; text-align: left; } .rhea { width: 96px; height: 96px; } }

/* subscribe */
.subscribe { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 12px; margin: 24px 0; box-shadow: var(--shadow); }
.subscribe h2 { margin-top: 12px; }
.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.subscribe-form input { flex: 1 1 220px; min-height: 44px; }
.subscribe-form .btn { min-height: 44px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* dogs filter */
.dogfilter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 12px 0 4px; }
.dogfilter label { min-width: 160px; }

/* highlights rail */
.rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 0 16px; }
.rail .photos.rail-in { display: flex; gap: 8px; }
.rail .photos.rail-in a { flex: 0 0 min(62vw, 260px); aspect-ratio: 4 / 3; scroll-snap-align: start; }

/* comments */
.comments { margin: 24px 0; }
.clist .c { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin: 10px 0; }
.clist .c .c { margin-left: 10px; }
.clist .c.chris { border-left-color: var(--pine); }
.clist .c p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmeta { font-size: .88rem; color: var(--muted); }
.cmeta b { color: var(--ink); }
.cmeta .for { font-style: italic; }
form.cform { display: grid; gap: 8px; margin-top: 10px; max-width: 560px; }
form.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { form.cform .row2 { grid-template-columns: 1fr; } }
label { display: grid; gap: 3px; font-size: .88rem; color: var(--muted); }
input, textarea, select { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 16px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--moss); outline-offset: 1px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.btn { background: var(--pine); color: var(--paper); border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--pine); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: default; }
.note { font-size: .9rem; padding: 8px 12px; border-radius: 10px; background: var(--sand); }
.note.err { background: var(--no-bg); color: var(--no); }
.suggest-form { margin-top: 12px; }
.suggest-form summary { cursor: pointer; font-weight: 600; color: var(--link); }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr.today { background: var(--ember-soft); }
tr.past td { color: var(--muted); }
tr.past td a { color: var(--link); }
tr.maybe td { font-style: italic; }
details.leg { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 4px 14px; }
details.leg summary { cursor: pointer; padding: 10px 0; list-style-position: outside; }
details.leg-twr1 { border-left: 5px solid var(--leg1); }
details.leg-twr2 { border-left: 5px solid var(--leg2); }
details.leg-twr3 { border-left: 5px solid var(--leg3); }
.changes li { margin: 4px 0; }
table.dogs td:first-child { min-width: 150px; }
table.dogs td:nth-child(2) { min-width: 170px; }
table.dogs td:first-child a { color: var(--ink); font-weight: 600; display: inline-block; padding: 6px 0; }
table.dogs td[data-label="When"] a { display: inline-block; padding: 10px 0; }
table.dogs tr:target { background: var(--ember-soft); }
.hazard { color: var(--no); margin-top: 4px; }
.sortbar { display: flex; gap: 6px; align-items: center; margin: 12px 0; flex-wrap: wrap; font-size: .9rem; }
.sortbar button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; }
.sortbar button[aria-pressed="true"] { background: var(--pine); color: var(--paper); border-color: var(--pine); }

/* follow bar + footer */
.follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 14px 16px; background: var(--pine); color: var(--paper); }
.follow a { color: var(--paper); text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 12px; font-size: .92rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .follow { background: #1b2a21; } }
.follow-lead { font-weight: 600; margin-right: 4px; }
.foot { text-align: center; font-size: .85rem; padding: 18px 16px 32px; color: var(--muted); }
.foot p { margin: 4px 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 12, 10, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: 96vw; max-height: 92vh; text-align: center; }
.lb img { max-width: 96vw; max-height: 84vh; object-fit: contain; }
.lb figcaption { color: #ddd; font-size: .9rem; margin-top: 6px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.6rem; cursor: pointer; }
.lb-x { top: 12px; right: 12px; }
.lb-p { left: 8px; top: 50%; }
.lb-n { right: 8px; top: 50%; }

/* private tools */
.tool { max-width: 640px; margin: 0 auto; padding: 8px 16px 40px; }
.tool .ph { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px; margin: 6px 0; background: var(--card); }
.tool .ph img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.tool .ph label { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--ink); margin-right: 12px; }
.tool .ph input[type=checkbox] { width: auto; }
.tool .mc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.tool .mc .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tabs button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--pine); color: var(--paper); }
.big { font: 700 2.4rem var(--slab); color: var(--pine); }
.alert { background: var(--no-bg); color: var(--no); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.okbox { background: var(--yes-bg); color: var(--yes); border-radius: 12px; padding: 12px 14px; }

/* dogs table becomes cards on a phone */
@media (max-width: 700px) {
  table.dogs thead { display: none; }
  table.dogs, table.dogs tbody, table.dogs tr, table.dogs td { display: block; width: 100%; }
  table.dogs tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
  table.dogs td { border: 0; padding: 4px 0; min-width: 0 !important; }
  table.dogs td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  table.dogs td:empty, table.dogs td[data-label="Instead"]:not(:has(*)):empty { display: none; }
}

/* conditions strip + desk */
.cstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; }
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; scroll-snap-align: start; border-top: 3px solid var(--line); }
.ccard.now { border-color: var(--ember); }
.ccard.ag-amber, .mc.ag-amber { border-top-color: var(--partial); }
.ccard.ag-red, .mc.ag-red { border-top-color: var(--no); }
.ccard.ag-green, .mc.ag-green { border-top-color: var(--yes); }
.cregion { font-weight: 600; margin: 2px 0; line-height: 1.25; }
.ctemps { font-size: 1.05rem; margin-top: 4px; }
.cicon { font-size: 1.1rem; }
.cflags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cflag { display: inline-block; font-size: .72rem; border-radius: 6px; padding: 1px 7px; background: var(--partial-bg); color: var(--partial); }
.cflag.warn { background: var(--no-bg); color: var(--no); font-weight: 600; }
.cair { display: inline-block; font-size: .72rem; border-radius: 6px; padding: 1px 7px; background: var(--yes-bg); color: var(--yes); }
.cair.a1 { background: var(--partial-bg); color: var(--partial); }
.cair.a2, .cair.a3 { background: var(--no-bg); color: var(--no); font-weight: 600; }
.tool.wide { max-width: 1040px; }
.mc.ag-none { border-top: 3px solid var(--line); }
.mc table { margin-top: 6px; }

/* layers panel + legend (replaces Leaflet's control) */
.lp { background: var(--card); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); font: 14px/1.35 var(--ui); max-width: min(330px, calc(100vw - 70px)); }
.lp-btn { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--pine); font-weight: 600; padding: 8px 12px; cursor: pointer; width: 100%; }
.lp-body { max-height: min(62vh, 560px); overflow-y: auto; padding: 0 12px 10px; border-top: 1px solid var(--line); }
.lp-h { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--moss); margin: 12px 0 4px; }
.lp-item { margin: 2px 0 6px; }
.lp-row { display: grid; grid-template-columns: 18px 32px 1fr; align-items: center; gap: 6px; cursor: pointer; color: var(--ink); font-size: .92rem; }
.lp input[type=checkbox] { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--pine); }
.lp-sw { display: flex; align-items: center; }
.lp-sub { margin: 2px 0 0 24px; }
.lp-key { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.lp-ctl label { display: grid; gap: 2px; font-size: .8rem; margin: 6px 0; }
.lp-ctl select { padding: 5px 8px; font-size: .88rem; border-radius: 8px; }
.lp input[type=range] { width: 100%; padding: 0; border: 0; background: none; accent-color: var(--ember); }
.lp-time { font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-mini { font-size: .8rem; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 2px 10px; cursor: pointer; color: var(--ink); }
.wx-bar { height: 10px; border-radius: 5px; margin-top: 6px; border: 1px solid var(--line); }
.wx-ticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
@media (max-width: 640px) { .lp-body { max-height: 52vh; } }
/* model comparison sheet */
.sheet.wide { max-width: 760px; }
@media (min-width: 900px) { .sheet.wide { width: min(760px, calc(100% - 90px)); } }
table.wx-cmp { font-size: .82rem; }
table.wx-cmp th, table.wx-cmp td { padding: 4px 6px; white-space: nowrap; text-align: center; }
table.wx-cmp tbody th { text-align: left; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .82rem; }
table.wx-cmp tr.cons { background: var(--yes-bg); }
table.wx-cmp tr.official { background: var(--sand); }
table.wx-cmp tr.wn2 th { color: var(--leg2); }
table.wx-cmp tr.spread td, table.wx-cmp tr.spread th { color: var(--muted); font-style: italic; }
.wx-pr { color: #2171b5; font-size: .75rem; }
.wx-rng { color: var(--muted); font-size: .7rem; }
.lp-note { font-size: .8rem; color: var(--muted); }
table.score th, table.score td { text-align: center; }
table.score tbody th { text-align: left; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: .9rem; }
table.score tr.best { background: var(--yes-bg); }
table.score tr.official { background: var(--sand); }

.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.check input { width: auto; }

/* fall color: stage tags on the route page and in map popups */
.stage { display: inline-block; font-size: .8rem; border-radius: 6px; padding: 1px 7px; color: #fff; white-space: nowrap; }
.stage.s-green { background: #5a9a3c; }
.stage.s-turning { background: #d9b21a; color: #2b2400; }
.stage.s-peak { background: #e0641c; }
.stage.s-fading { background: #96562a; }
.stage.s-bare { background: #8e877b; }
.fol-embed { width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fol-src { columns: 2; column-gap: 24px; font-size: .9rem; }
@media (max-width: 640px) { .fol-src { columns: 1; } .fol-embed { height: 420px; } }

/* dark skies */
.ds-icon { background: none; border: 0; }
.stage.s-dark { background: #26215c; }
.stage.s-moon { background: #c9c3a5; color: #2b2400; }
.lp-sw { color: #2657a8; font-size: 1rem; }
