/* Stylesheet. Design rules: site/STYLE.md — statistics-office register,
   square corners by default, one restrained accent.
   NOTE: .chart polyline { fill: none } is load-bearing, not decorative --
   SVG polylines default to black fill. Keep it whatever else changes.

   LAYERING (2026-10-26): depth is TONE, not shadow. Three surface tones, all
   defined once in :root below (README, "Surfaces and tone"):
     --bg         the page: one step tinted (cool grey)
     --surface    content containers (.box, the chart card, the map, the tab
                  body): white, one step lighter than the page
     --surface-2  secondary containers: control strips, table header bands
     --band       the masthead band, shared with the landing page
   Containers are separated by space (--gap-box) and a faint hairline (--edge);
   no shadows, no gradients, corners square (2px on controls only). */

/* -- tokens ------------------------------------------------------------- */
:root {
  --ink: #111;           /* primary text */
  --ink-soft: #444;      /* secondary text, section labels */
  --ink-mute: #666;      /* captions, notes, table headers */
  --ink-faint: #8f8f8f;  /* censored / placeholder / reference lines */
  --paper: #fff;
  /* surfaces (tone, not shadow) */
  --bg: #f3f4f6;         /* page background */
  --surface: #fff;       /* content container */
  --surface-2: #f7f8fa;  /* secondary container: control strips, header bands */
  --band: #e9ecf0;       /* masthead / landing band */
  --band-line: #d7dbe0;  /* band bottom edge, period control border */
  --edge: #d7dbe0;       /* container border */
  --line: #e6e8eb;       /* hairline between rows inside a container */
  --line-strong: #b9bfc7;/* control borders */
  --seg: #e5e8ec;        /* track of a segmented control */
  --tab-off: #e5e8ec;    /* the inactive tab */
  --rule: #111;          /* heavy statistical rule */
  --accent: #08519c;     /* the one interaction/emphasis blue */
  --accent-soft: #9ecae1;/* filled/interpolated series */
  --ink-faint-ish: #b0b0b0; /* muted star-tier lines (not selected) */
  --accent-pale: #eef3f9;/* hover / selected rows, selected region */
  --sel: #3a1766;        /* the SELECTED star-tier (price) line in charts = the dear end of the map's violet price scale (geo.RAMP); was amber until 2026-11-05 */
  --land: #f1f2f4;       /* region fill on the map */
  --cmp2: #b0603f; --cmp3: #2f86a6;   /* similar-market colours; Compare was removed 2026-11-05, the landing chart still uses --cmp2 / --cmp3 */
  --border: #c9ced5;     /* region outline on the map */
  --card: #f7f8fa;       /* landing: chart card, pickers */
  --card-line: #dde1e6;
  /* frame height = map height: what the first screen leaves under the
     masthead, bounded so phones-in-landscape and 4k stay sane */
  --fh: clamp(380px, calc(100vh - 118px), 700px);
  --gap: 12px;           /* between the map and the panel */
  --gap-box: 10px;       /* between containers */
  --pr-w: 330px;         /* the period control's date area: Range and Stay fill the same box */
}

* { box-sizing: border-box; }

/* -- base ----------------------------------------------------------------*/
html { background: var(--bg); }
html:has(body[data-page="landing"]) { background: var(--bg); }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
body[data-page="landing"] { background: var(--bg); font-size: 16px; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); }
a:not(:hover) { text-decoration-color: var(--line-strong); }

.note, .legend { font-size: 12.5px; color: var(--ink-mute); margin: 8px 0; line-height: 1.55; }

/* -- honesty styling: censored / no-data ----------------------------------
   Priority per STYLE.md — anything that isn't a real observed value must
   visibly say so, not just imply it via layout. */
.censored { color: var(--ink-faint); font-style: italic; }
p.censored, td.censored { font-style: italic; }
td.base { color: var(--ink-mute); font-style: italic; }

/* -- controls: tinted, with a visible selected state and focus ---------------
   Segmented toggles (.seg: period type, chart view) sit on a tinted track, the
   selected segment is FILLED with the accent. Selects and date inputs are white
   fields with a visible border. */
button {
  font: inherit; font-size: 12px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); padding: 2px 9px; cursor: pointer;
  border-radius: 2px;
}
button:hover { border-color: var(--ink-mute); }
button.linklike {
  border: none; padding: 0; background: none; color: var(--accent); font: inherit;
  text-decoration: underline; text-decoration-color: transparent;
  text-align: left; cursor: pointer; border-radius: 0;
}
button.linklike:hover { text-decoration-color: var(--accent); }
select, form.period input[type="date"] {
  font: inherit; font-size: 12.5px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); padding: 3px 6px; border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
select { padding-right: 2px; cursor: pointer; }
select:hover, form.period input[type="date"]:hover { border-color: var(--ink-mute); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--seg); border-radius: 2px; }
.seg button {
  border: none; background: transparent; color: var(--ink-soft); font-size: 12px;
  padding: 3px 11px; line-height: 1.4; border-radius: 2px;
}
.seg button:hover { background: rgba(0,0,0,.07); }
/* equal, fixed-width segments (bold-safe): toggling never changes the control's size */
.seg-eq { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg-eq button { min-width: 66px; text-align: center; white-space: nowrap; }
.viewseg.seg-eq button { min-width: 62px; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
.ctl-title {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute); white-space: nowrap;
}

/* -- masthead: the grey band (shared with the landing page) -------------------
   name · data-through · [period control group] · link. Full bleed; the content
   sits in .wrap. */
.site-head { background: var(--band); border-bottom: 1px solid var(--band-line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; min-height: 52px; padding-top: 8px; padding-bottom: 8px;
}
.site-name { margin: 0; white-space: nowrap; }
/* brand lockup: the mark + the lowercase wordmark, fixed gap (corporate_design 4.2) */
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.brand img { display: block; width: 22px; height: 22px; }
.brand:hover { color: var(--accent); }
.mast-meta { margin: 0; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
/* language switch "A" (beside the brand, always visible, phone too): plain links EN | ES | DE */
.lang-switch { margin: 0; display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); overflow: hidden; }
.lang-opt { padding: 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; line-height: 1.2; }
.lang-opt + .lang-opt { border-left: 1px solid var(--line); }
.lang-opt:hover { color: var(--accent); background: var(--band); }
.lang-opt[aria-current] { background: var(--ink); color: #fff; cursor: default; }
/* first-visit hint for es / de browsers (lang.js): one dismissible line under the masthead, never a redirect */
.lang-hint { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px; background: #fff7e0; border-bottom: 1px solid #ecd9a0; font-size: 13px; }
.lang-hint p { margin: 0; }
.lang-hint a { font-weight: 700; margin-left: 4px; }
.lang-hint button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 2px 6px; }
.mast-spare { flex: 1 1 auto; min-height: 1px; display: flex; justify-content: flex-end; }   /* holds the period control (layout.py) */

/* period control: a titled control group (white field on the band). Range |
   Stay + date inputs; no JS = hidden (the default period then shows everywhere) */
body:not(.js) form.period { display: none; }
form.period {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--band-line); padding: 4px 8px; border-radius: 2px;
}
form.period .pr { display: inline-flex; align-items: center; justify-content: flex-start; gap: 5px; white-space: nowrap; min-width: var(--pr-w); }
form.period [hidden] { display: none; }
form.period .dim { color: var(--ink-mute); }
form.period input[type="date"] { height: 24px; padding: 0 4px; }

/* -- section navigation (lib/nav.py, g_navigation): a second row of the masthead band;
   on phones a "Menu" button folds it out inline. No JS: always visible links. ------- */
.site-head.has-nav .wrap { padding-bottom: 0; }
.nav-btn { display: none; }
.site-nav { flex: 1 1 100%; order: 9; margin: 0 -4px; }
.nav-groups, .nav-items { list-style: none; margin: 0; padding: 0; }
.nav-groups { display: flex; flex-wrap: wrap; }
.nav-group { display: flex; align-items: stretch; }
.nav-group + .nav-group { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--band-line); }
.nav-gt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.nav-items { display: flex; flex-wrap: wrap; }
.nav-link, .nav-soon {
  display: block; padding: 8px 12px 7px; font-size: 13px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav-link:hover { color: var(--accent); background: rgba(255,255,255,.55); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.nav-link .ext { color: var(--ink-faint); font-size: 11px; margin-left: 3px; }
.nav-soon { color: var(--ink-faint); cursor: default; }
.nav-soon small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; margin-left: 5px; }

/* -- plain text pages (/methods/) --------------------------------------------- */
.textpage { max-width: 780px; margin: 0 auto; padding-top: 6px; padding-bottom: 8px; }
.textpage h1 { font-size: 28px; line-height: 1.15; margin: 22px 0 8px; letter-spacing: -.01em; }
.textpage h2 { font-size: 16px; margin: 26px 0 6px; }
.textpage p, .textpage li { font-size: 14.5px; line-height: 1.6; max-width: 70ch; }
.textpage .lede { color: var(--ink-soft); font-size: 16px; }
.textpage ul { padding-left: 20px; }

/* -- the frame: map (3) | panel (2) -------------------------------------- */
main.wrap { margin-top: 12px; padding-bottom: 8px; }
.frame {
  display: grid; grid-template-columns: 3fr 2fr; gap: 0 var(--gap);
  align-items: start;
}
/* the map column (sticky): ONE card = the mode bar on top, the map, the legend band under it */
.mapcol { position: sticky; top: 8px; min-width: 0; }
.map-stage {
  height: var(--fh); position: relative; border: 1px solid var(--edge);
  background: var(--surface); overflow: hidden; display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none;
}
/* the map pane: [canvas: the weather field, Weather mode only] < svg (outlines, dots, names) < label overlay < tip */
.map-wrap { position: relative; flex: 1 1 0; min-height: 0; background: var(--surface); }
#map { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; background: transparent; }
#wxfield { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; transform-origin: 0 0; pointer-events: none; }
#wxov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
#wxov text { font-family: inherit; font-variant-numeric: tabular-nums; }
#wxtip { position: absolute; display: none; z-index: 4; pointer-events: none; background: var(--surface); border: 1px solid var(--line-strong);
  padding: 5px 8px; font-size: 12px; line-height: 1.4; max-width: 250px; color: var(--ink); }
#wxtip b { font-weight: 600; }
#wxtip .mu { color: var(--ink-mute); }
#wxtip.msg { left: 10px; top: 10px; color: var(--ink-mute); }
#map text { font-family: inherit; font-variant-numeric: tabular-nums; }

/* region outlines: faint pale land, hairline borders that stay 1px under
   zoom; the selected region gets the one accent and a faint tint */
#map .ccaa {
  fill: var(--land); stroke: var(--border); stroke-width: 1;
  stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer;
}
#map .ccaa:hover { fill: #e6e8eb; }
#map .ccaa.sel { fill: var(--accent-pale); stroke: var(--accent); stroke-width: 2; }
/* Mountains: two white patches (Sierra Nevada, the Pyrenees) above the
   province regions, hairline grey outline; selected = the same accent outline */
#map .ccaa.mtn { fill: #fff; stroke: #aaa; }
#map .ccaa.mtn:hover { fill: #fbfbfb; }
#map .ccaa.mtn.sel { fill: var(--accent-pale); stroke: var(--accent); }
#map .inset { fill: none; stroke: var(--border); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
#map .inset-label { fill: var(--ink-faint); }      /* font-size: attribute, re-set by site.js per zoom */

#map a.dot circle { stroke: var(--paper); stroke-width: 1; vector-effect: non-scaling-stroke; transition: none; }
/* Price mode with the field under it (class fld, site.js): a 2 px white ring keeps the violet dot clear of any field colour */
#map.fld a.dot circle { stroke-width: 2; }
#map a.dot:hover circle { stroke: var(--ink); stroke-width: 2; }
#map:not(.wx) a.dot.cen circle { fill: #e6e6e6; stroke: #999; stroke-dasharray: 2 2; }
/* Weather mode carries NO price (owner, 2026-11-04): the dots become small neutral position markers (white, one dark ring, no
   price colour; site.js also shrinks them to 55 % of the Price radius and drops the wash). They still link and show a title. */
#map.wx a.dot circle { fill: #fff; stroke: #1c1c1c; stroke-width: 1.5; }
#map.wx a.dot:hover circle { fill: #1c1c1c; stroke: #fff; stroke-width: 1.5; }
#map.wx a.dot.sel circle { fill: #1c1c1c; stroke: #fff; stroke-width: 2; }
#map.wx a.dot.cen circle { fill: #fff; stroke: #1c1c1c; stroke-dasharray: none; }
/* the field shows through the outlines: land fill off, hairline borders stay, the white Mountains patches are not drawn */
#map.wx .ccaa, #map.fld .ccaa { fill: transparent; stroke: rgba(17, 17, 17, .32); }
#map.wx .ccaa.sel, #map.fld .ccaa.sel { fill: transparent; stroke: var(--accent); stroke-width: 2; }
#map.wx .ccaa.mtn, #map.fld .ccaa.mtn { fill: transparent; stroke: transparent; }
#map.wx .ccaa.mtn.sel, #map.fld .ccaa.mtn.sel { stroke: var(--accent); }
#map.wx .ccaa:hover, #map.fld .ccaa:hover { fill: rgba(255, 255, 255, .12); }
#map.wx .clabel, #map.wx .dl, #map.fld .clabel, #map.fld .dl { paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 3px; stroke-linejoin: round; }
/* region labels (overlay, screen px): temperature on a chip in its ramp colour, rain mark, cloud mark + % */
:root { --wx-ink: #26323e; }
#wxov .wl-n { fill: var(--ink-soft); paint-order: stroke; stroke: #fff; stroke-width: 3.2px; stroke-linejoin: round; }
#wxov .wl-chip { stroke: rgba(17, 17, 17, .6); stroke-width: 1; }
#wxov .wl-t { font-weight: 700; }
#wxov .wl-c { fill: var(--ink-soft); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
#wxov .wl-drop { fill: var(--wx-ink); stroke: #fff; stroke-width: 2.2; paint-order: stroke; stroke-linejoin: round; }
#wxov .wl-halo { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
#wxov .wl-snow { fill: none; stroke: var(--wx-ink); stroke-width: 1.7; stroke-linecap: round; }
#wxov .wl-cloudhalo { fill: #fff; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
#wxov .wl-cl0, .wxc-i .cl0 { fill: #fff; stroke: var(--wx-ink); stroke-width: 1.15; stroke-linejoin: round; }
#wxov .wl-cl1, .wxc-i .cl1 { fill: #aeb9c5; stroke: var(--wx-ink); stroke-width: 1.15; stroke-linejoin: round; }
#wxov .wl-cl2, .wxc-i .cl2 { fill: #56636f; stroke: var(--wx-ink); stroke-width: 1.15; stroke-linejoin: round; }
.wxc-i { display: inline-block; vertical-align: -2px; overflow: visible; }
#map a.dot.dim circle { opacity: .28; }
#map a.dot.sel circle { stroke: var(--ink); stroke-width: 2.5; }
#map .clabel { fill: var(--ink-soft); pointer-events: none; }   /* font-size: attribute, see above */
#map .dl { fill: var(--ink); pointer-events: none; }
#map .dl.sel { font-weight: 700; }
#map .dl.cen { fill: var(--ink-faint); font-style: italic; }
.map-stage.zoomed .clabel { display: none; }

/* mode bar (top of the map card): Map shows Price | Weather, the [i], the caption */
.map-modebar { flex: 0 0 auto; display: flex; align-items: center; gap: 4px 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--surface); min-height: 38px; }
.map-modebar .mode-cap { margin-left: auto; font-size: 12px; color: var(--ink-mute); text-align: right; min-width: 0; }
.map-modebar .mode-cap b { color: var(--ink-soft); font-weight: 600; }
body:not(.js) .modeseg, body:not(.js) .map-modebar .ctl-title { display: none; }
.modeseg button { min-width: 66px; }
/* the legend is a band under the map, never an overlay (it would cover the Canaries and the Balearics) */
.map-legend {
  flex: 0 0 auto; border-top: 1px solid var(--line); padding: 6px 10px 7px; font-size: 11.5px;
  color: var(--ink-mute); line-height: 1.4; background: var(--surface);
}
.map-legend { display: grid; }
.map-legend > .lg-l { grid-area: 1 / 1; min-width: 0; }
.map-stage:not(.wxmode) .lg-l-wx, .map-stage.wxmode .lg-l-pr { visibility: hidden; }      /* both stay in layout: the band (and so the map pane) is the same height in both modes */
.map-legend .lg-price, .lg-key { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.map-legend .lg-fld { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 4px; visibility: hidden; }      /* Price mode, row 2: the faint field's ramp; in layout always, shown once the field is drawn */
.map-stage.fldon:not(.wxmode) .lg-fld { visibility: visible; }
body:not(.js) .lg-fld { display: none; }
.map-legend .lg-wx { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.map-legend .lg-key { margin-top: 4px; }
.lg-key { gap: 2px 12px; }
.list-key { margin: -4px 0 12px; font-size: 12px; color: var(--ink-mute); }
.list-key b { color: var(--ink-soft); font-weight: 600; }
.list-key .it { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.list-key .it.dim { color: var(--ink-faint); }
.lg-key .tex { display: inline-flex; align-items: center; gap: 3px; }
.lg-key .tex i { display: block; width: 34px; height: 20px; border: 1px solid rgba(0, 0, 0, .3); }
.lg-key .lg-chip { font-style: normal; font-weight: 700; color: #111; background: #e8e589; border: 1px solid rgba(17, 17, 17, .6); padding: 0 4px; font-size: 11.5px; }
.map-legend .sw { display: inline-block; width: 11px; height: 11px; vertical-align: -1px; margin: 0 2px 0 6px; }
.map-legend .sw.cen { background: #e6e6e6; outline: 1px dashed #999; outline-offset: -1px; }
.map-legend b { color: var(--ink-soft); font-weight: 600; }
.map-legend .it { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.map-legend .it.dim, .map-legend .lg-basis { color: var(--ink-faint); }
.map-legend .lg-basis { flex: 0 1 auto; }
.rampw { display: inline-block; vertical-align: top; }
.ramp { display: grid; grid-template-columns: repeat(8, 24px); grid-auto-rows: 11px; width: 192px; }
.ramp i { border-top: 1px solid #3d3d3d; border-bottom: 1px solid #3d3d3d; }
.ramp i:first-child { border-left: 1px solid #3d3d3d; }
.ramp i:last-child { border-right: 1px solid #3d3d3d; }
.ramp-l { display: grid; grid-template-columns: repeat(8, 24px); width: 192px; font-size: 10.5px; color: var(--ink-mute); margin-top: 1px; }
.ramp-l span { transform: translateX(-4px); }
/* the same marks as HTML: legend, readout, table cells */
.wxg-i { display: inline-block; height: 12px; vertical-align: -2px; overflow: visible; }
.wxg-i.sm { height: 10px; vertical-align: -1px; }
.wxg-i .gl { fill: var(--wx-ink); }
.wxg-i .snow { fill: none; stroke: var(--wx-ink); stroke-width: 1.6; stroke-linecap: round; }
/* [i]: the method / legend popover (a <details>, works without JS) */
.info { position: relative; display: inline-block; font-size: 12px; }
.info summary {
  list-style: none; cursor: pointer; width: 18px; height: 18px; line-height: 16px; text-align: center;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-mute);
  font-style: italic; font-family: Georgia, serif; font-size: 12px; user-select: none; border-radius: 2px;
}
.info summary::-webkit-details-marker { display: none; }
.info summary:hover, .info[open] summary { border-color: var(--ink); color: var(--ink); }
.info-body {
  position: absolute; z-index: 5; width: 340px; max-width: calc(100vw - 40px); max-height: 60vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); padding: 6px 10px;
  font-size: 12px; line-height: 1.5; color: var(--ink-soft); font-style: normal; text-align: left;
}
.info-body p { margin: 5px 0; }
.info-body b { color: var(--ink); font-weight: 600; }
.map-info { z-index: 3; }
.map-info .info-body { left: 0; top: 24px; }
.unit-info { margin-left: 6px; vertical-align: -3px; }
.unit-info .info-body { right: 0; bottom: 24px; }
/* phone, scrolled: the stage is scaled to a thumbnail (site.js); its text bands hide with visibility so the layout never changes */
.map-stage.thumb .map-modebar, .map-stage.thumb .map-legend, .map-stage.thumb .dl { visibility: hidden; }

/* -- context panel: a column of titled containers -------------------------
   Natural height (the page scrolls, the map stays put beside it). #panel-body
   is display:contents so the level-specific slots (head, chart, note, marginal,
   members, table) interleave with the two persistent ones (title, filters) by
   `order`. Read order: headline number -> chart -> details.
     p-filters + p-chart + p-note   ONE chart card, FIRST (2026-11-05: its date drag is universal):
                 hotel-type strip on top, view toggle + key + chart, note at the foot
     p-head      headline container (the unit's name and, by map mode, its price or its weather)
     p-marginal  "Move your dates"
     p-members   (regions only) the member markets
     p-table     "What moves the price": extras box + factor table */
.panel { display: flex; flex-direction: column; min-width: 0; }
.panel-body { display: contents; }
.slot { flex: 0 0 auto; min-height: 0; margin: 0 0 var(--gap-box); }
.p-filters { order: 1; }
.p-chart { order: 2; }
.p-note { order: 3; }
.p-head { order: 4; }
.p-marginal { order: 5; }
.p-members { order: 6; }
.p-table { order: 7; }
/* the map mode decides the panel (data-mode on #frame, site.js; the server renders Price, so no JS = Price): Price shows price
   things, Weather weather things, each with one muted cross-link line (.xline). Tables: the columns follow the mode. */
.frame[data-mode="price"] .wx-only, .frame[data-mode="wx"] .px-only { display: none !important; }
.frame[data-mode="price"] :is(table.members, table.communities, table.marginal) :is(.wx, .wx-h, .wx-r),
.frame[data-mode="wx"] :is(table.members, table.communities, table.marginal) :is(.px, .v, .rl, .rk),
.frame[data-mode="wx"] .p-marginal.nowx, .frame[data-mode="wx"] .p-table { display: none; }
.p-members tr.more { display: none; }
.more-link { margin: 9px 0 0; font-size: 12.5px; }
.xline { margin: 9px 0 0; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-mute); line-height: 1.45; }
.xline b { font-weight: 600; color: var(--ink-soft); }
.xline .linklike { font-size: inherit; color: var(--accent); }
.hd-fig { min-width: 0; }

.box { background: var(--surface); border: 1px solid var(--edge); padding: 12px 14px 12px; }
.box-head { margin: 0 0 2px; }
.box-title, .slot-label b {
  margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-soft);
}
.box-sub { margin: 1px 0 9px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.4; }

.crumb {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap;
  gap: 0 6px; min-width: 0; overflow: hidden; white-space: nowrap;
}
.crumb li + li::before { content: "›"; color: var(--ink-faint); margin-right: 6px; }
.crumb li.current { font-weight: 700; }
.crumb a { color: var(--accent); }
.crumb button.linklike { color: var(--accent); }
.crumb li.current { font-weight: 700; }
/* the one small muted line above the unit's name: breadcrumb, note, permalink icon */
.head-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 3px; min-height: 18px; font-size: 12px; color: var(--ink-mute); }
.head-trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.head-crumb li::after { content: "›"; color: var(--ink-faint); margin-left: 6px; }
.head-crumb li + li::before { content: none; }
.head-crumb a { text-decoration: none; }
.head-crumb a:hover { text-decoration: underline; }
.head-meta { color: var(--ink-mute); }
.permalink { flex: 0 0 auto; display: inline-flex; color: var(--ink-faint); padding: 2px; }
.permalink:hover { color: var(--accent); }

/* headline container: the biggest thing on the page is the number */
.p-head { padding: 12px 14px 11px; }
.head-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.whereis { color: var(--ink-mute); font-size: 12.5px; margin: 1px 0 6px; }
.fig { margin: 0; line-height: 1.1; white-space: nowrap; overflow: hidden; }
.fig b { font-size: 36px; font-weight: 700; letter-spacing: -0.015em; }
.fig b.censored { font-size: 20px; font-weight: 600; }
.fig .unit { font-size: 14px; color: var(--ink-mute); margin-left: 4px; }
.fig .delta { font-size: 13px; color: var(--ink-soft); margin-left: 12px; }
.sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-mute); }
.sub b { color: var(--ink); font-weight: 600; }

/* weather readout: two cells under the price figure (docs/weather.md section 6 #2) */
.wxline { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.25fr; gap: 0 14px; }
.wxline1 { display: block; margin-top: 8px; }
.wxhead { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.wxhead b { color: var(--ink); font-weight: 700; }
.wxcell { min-width: 0; }
.wxcell .lab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); }
.wxcell .val { font-size: 19px; font-weight: 700; line-height: 1.25; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.wxcell .val small { font-size: 13px; font-weight: 600; }
.wxcell .det { font-size: 12px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wxfc { grid-column: 1 / -1; margin: 5px 0 0; font-size: 11.5px; color: var(--ink-mute); line-height: 1.4; }
.wxfc { color: var(--ink-soft); }
.wxfc[hidden] { display: none; }
table.data .wx-h, table.data .wx-r { white-space: nowrap; }
.wxn { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }

/* breakfast / free-cancellation info box: the extras at the top of "What moves the price" */
.optbox {
  display: grid; gap: 2px 18px; margin: 8px 0 10px; padding: 8px 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; text-align: left;
}
.optbox p { margin: 0; white-space: nowrap; }
.optbox .optname { color: var(--ink-soft); display: inline-block; min-width: 118px; }
.optbox .optval { font-weight: 700; color: var(--ink); }
.optbox .opttag { color: var(--ink-faint); font-size: 11px; margin-left: 4px; }
.optbox .opt.censored .optval, .optbox .opt.censored .optname { color: var(--ink-faint); font-weight: 400; }
.optbox .opt.censored .opttag { font-style: italic; }

/* chart card, top: the control strip (hotel type) -- a secondary container,
   joined to the chart below it */
.filters {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center;
  padding: 7px 14px; margin-bottom: 0; font-size: 12.5px; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--edge); border-bottom: 1px solid var(--line);
}
.filters label { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.filters label.censored { color: var(--ink-faint); }
.filter-readout b { font-weight: 700; color: var(--ink); }
.filters button {
  font-size: 12px; padding: 0; border: none; background: none; color: var(--accent);
  text-decoration: underline; text-decoration-color: transparent;
}
.filters button:hover { text-decoration-color: var(--accent); }

.p-chart {
  position: relative; margin-bottom: 0; padding: 10px 14px 4px;
  background: var(--surface); border: 1px solid var(--edge); border-top: none; border-bottom: none;
}
.slot-label { margin: 0; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-label .dim { color: var(--ink-mute); }
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; }
.chart-bar .slot-label { min-width: 0; }
/* chart view toggle: Light | Weather | Compare | Detail, a .seg control (no JS = hidden;
   the server-rendered chart is the Light view) */
body:not(.js) .viewseg { display: none; }
.viewseg { flex: 0 0 auto; }
/* in-chart key: one compact row above the plot; items per view (kv-*) */
.ckey { margin: 0 0 3px; font-size: 11.5px; line-height: 1.4; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: 0 12px; }
.ckey .k { display: none; align-items: center; gap: 4px; white-space: nowrap; }
.ckey.static .k { display: inline-flex; }
.p-chart[data-view="detail"] .ckey .kv-detail, .p-chart[data-view="light"] .ckey .kv-light { display: inline-flex; }
.p-chart[data-tier="3"] .ckey .k-base { display: none; }                     /* 3-star selected: no separate baseline */
.p-chart[data-view="light"]:not([data-tier="3"]) .ckey .k-band { display: none; }   /* light shows the band for 3-star only */
.ckey b { font-weight: 600; color: var(--ink-soft); }
.ckey .ks { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--ink-faint-ish); }
.ckey .ks.sel { border-top-color: var(--sel); border-top-width: 2.5px; }
.ckey .ks.base { border-top-color: var(--accent-soft); }
.ckey .ks.oth { border-top-color: var(--ink-faint-ish); border-top-width: 1px; }
.ckey .ks.nat { border-top: 1.5px dashed #777; }
.ckey .ks.per, .ckey .ks.bandsw { width: 12px; height: 9px; border: 1px solid rgba(8,81,156,.35); background: rgba(8,81,156,.14); }
.ckey .ks.bandsw { border-style: dotted; background: rgba(8,81,156,.07); }
/* drag-to-pick hint (the first words of the note): mouse wording on pointer devices, touch wording on touch screens */
.note-text .hint-touch { display: none; }
@media (pointer: coarse) {
  .note-text .hint-mouse { display: none; }
  .note-text .hint-touch { display: inline; }
}
.chart-empty { margin: 24px 0; text-align: center; }

/* chart card, foot: the note (+ the [i] popover with the unit's tier detail) */
.p-note {
  position: relative; padding: 2px 14px 10px; font-size: 12px; color: var(--ink-mute); line-height: 1.45;
  background: var(--surface); border: 1px solid var(--edge); border-top: none;
}
.p-note b { color: var(--ink-soft); font-weight: 600; }
.key { font-weight: 700; }
.key.main { color: var(--sel); }
.key.tier { color: var(--ink-faint-ish); }
.key.nat { color: #777; letter-spacing: -0.1em; }
.pooled {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-faint); margin-left: 4px;
}

/* -- charts ----------------------------------------------------------------
   Fixed-viewBox SVGs; scale with their slot's width, never distort. */
.chart {
  display: block; width: 100%; max-width: 100%; height: auto; background: var(--paper);
  /* touch: a horizontal drag scrubs the read-out, a vertical one still scrolls the
     page; no long-press selection / callout / tap flash on a chart */
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.p-chart { -webkit-touch-callout: none; }
.chart text { font-family: inherit; font-variant-numeric: tabular-nums; }
.chart polyline { fill: none; }
.chart .grid { stroke: #eee; stroke-width: 1; }
.chart .ref { stroke: var(--ink-faint); stroke-dasharray: 4 3; }
.chart .ref.today { stroke: var(--ink-soft); stroke-dasharray: 2 3; }
.chart .tick.today { fill: var(--ink-soft); }
.chart .tick { font-size: 11px; fill: var(--ink-mute); }
.chart .confound { fill: #f6f6f6; }

/* Star-tier lines (charts.py draws the first frame, site.js every state): in the
   one chart svg every credible tier is a
   polyline.line.tier[data-tier][data-method], the selected tier carries
   .main (yellow, with the 3-star band), the others are thin and muted (clipped to
   the plot, so a taller line runs off the top); pooled tiers dash-dotted;
   censored tiers are not drawn. The national overlay is dashed and thinner;
   filled/interpolated runs visibly lighter, never mistakeable for an
   observation. */
.chart[hidden], .chart [hidden] { display: none; }

/* variable-dates overlays (JS positions them, never the data lines): the
   shaded period, the hover cursor and the pointer capture rect */
.chart .pshade { fill: var(--accent); opacity: .07; stroke: none; pointer-events: none; }
.chart .hline { stroke: var(--ink-soft); stroke-width: 1; pointer-events: none; }
.chart .hov { fill: transparent; stroke: none; cursor: crosshair; touch-action: pan-y; }
.hover-tip {
  position: absolute; z-index: 4; pointer-events: none; white-space: nowrap;
  background: var(--paper); border: 1px solid var(--line-strong); padding: 2px 7px;
  font-size: 11.5px; line-height: 1.4; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.hover-tip[hidden] { display: none; }
.hover-tip .ht-date { color: var(--ink-mute); font-size: 11px; }
.hover-tip .ht-main { color: var(--accent); font-weight: 700; }
.hover-tip .ht-nat { color: var(--ink-mute); }
.chart .line.main { stroke: var(--accent); stroke-width: 1.6; }           /* lead curve etc. */
.chart .line.tier { stroke: var(--ink-faint-ish); stroke-width: 1; }
.chart .line.tier[data-method="pooled"] { stroke: #c2c2c2; stroke-dasharray: 5 2 1.5 2; }
.chart .line.tier.filled { stroke: #d8d8d8; stroke-width: 1; stroke-dasharray: 3 3; }
.chart .line.tier[data-tier="3"]:not(.main) { stroke: var(--accent-soft); stroke-width: 1.3; }  /* baseline, not selected */
.chart .line.tier.main { stroke: var(--sel); stroke-width: 1.7; stroke-dasharray: none; }
.chart .line.tier.main[data-method="pooled"] { stroke-dasharray: 7 2 2 2; }
.chart .line.tier.main.filled { stroke: var(--ink-faint); stroke-width: 1.2; stroke-dasharray: 3 3; }
.chart .line.nat { stroke: #777; stroke-width: 1; stroke-dasharray: 6 4; }
.chart .line.nat.filled { stroke: #c4c4c4; stroke-width: 1; stroke-dasharray: 6 4; }
.chart .tlabel { font-size: 10px; fill: var(--ink-faint); }
.chart .tlabel.main { fill: var(--sel); font-weight: 700; }
.chart .knot { fill: var(--accent); stroke: var(--paper); stroke-width: 1; }

/* model uncertainty band (±1.96 sd) -- one polygon set per tier, drawn
   first under the lines; only the selected tier's band shows; one muted
   accent, no gradients per STYLE.md. Observation dots are gone (2026-10-25). */
.chart .band { fill: var(--accent); opacity: .08; stroke: none; }   /* always the 3-star baseline's band */
.chart .band.filled { opacity: .04; }

/* Price / All tiers: the browser decides which lines are drawn and fades the rest
   (opacity on each line's <g>); nothing is hidden by CSS any more. */

/* -- newsletter box (on /methods/) -----------------------------------------------
   Our own field and button; the Substack iframe is created by site.js on first use. */
.newsletter { margin-top: 18px; max-width: 560px; padding: 10px 14px 10px; }
.nl-line { margin: 2px 0 8px; font-size: 13px; color: var(--ink-soft); }
.nl-form { display: flex; gap: 8px; align-items: stretch; }
.nl-form input[type="email"] {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; padding: 6px 8px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink);
}
.nl-form input[type="email"]:hover { border-color: var(--ink-mute); }
.nl-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 6px 16px; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; text-decoration: none;
}
.nl-btn:hover { background: #063f7a; }
.nl-note { margin: 7px 0 0; font-size: 11.5px; color: var(--ink-mute); line-height: 1.35; }
.nl-form iframe { display: block; width: 100%; max-width: 480px; height: 320px; border: 1px solid var(--edge); background: #fff; }

/* -- tables ----------------------------------------------------------------
   Inside a container: a header row with one dark rule, faint row hairlines, no
   vertical rules. Clickable tables (marginal, members, regions, markets) tint a
   row on hover and show their links in the accent colour with a chevron. */
table.data {
  border-collapse: separate; border-spacing: 0; font-size: 13px; margin: 0;
  width: 100%;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--line); text-align: left;
  padding: 5px 14px 5px 0; white-space: nowrap;
}
table.data th {
  font-weight: 600; color: var(--ink-mute); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--ink); background: transparent;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data th:not(:first-child), table.data td:not(:first-child) {
  text-align: right; padding-right: 0; padding-left: 14px;
}
table.data td.txt, table.data th.txt { text-align: left; padding-right: 14px; padding-left: 0; }
table.data td a { color: var(--accent); text-decoration: none; }
table.data td a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
table.data td.txt:not(.comm) > a::after { content: "›"; margin-left: 6px; color: var(--ink-faint); }
table.data td.txt:not(.comm) > a:hover::after { color: var(--accent); }
table.data tr.grp td {
  padding-top: 11px; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-soft); text-align: left; white-space: normal;
  border-bottom: 1px solid var(--line);
}
table.data tr.grp:first-child td { padding-top: 3px; }
table.data tr.sel td { background: var(--accent-pale); font-weight: 700; }
table.data td.censored { font-weight: 400; }
/* inside the panel's containers */
.box table.data { font-size: 12.5px; }
.box table.data th { padding-top: 3px; }
.box table.data td { padding-top: 4px; padding-bottom: 4px; }
.box table.data td:first-child { color: var(--ink-mute); font-size: 12px; }
table.data.marginal td:first-child, table.data.members td:first-child,
table.data.factors td:first-child, table.data.communities td:first-child { color: var(--ink); font-size: inherit; }
table.data.communities td.txt, table.data.factors td.txt { white-space: normal; }
/* clickable rows */
table.data.marginal tbody tr:hover td, table.data.members tbody tr:hover td,
table.data.communities tbody tr:hover td, table.data.markets tbody tr:hover td { background: var(--accent-pale); }
table.data.marginal tr.sel:hover td { background: var(--accent-pale); }
table.marginal td.txt { white-space: nowrap; }
table.marginal .plabel { color: var(--ink-mute); font-size: 11.5px; margin-left: 4px; font-weight: 400; }
table.marginal button.linklike { text-decoration: none; color: var(--accent); font-size: 12.5px; font-weight: 600; }
table.marginal tr:not(.sel) { cursor: pointer; }
.box table.data + table.data { margin-top: 12px; }

/* "What moves the price": a <details>, collapsed by default; the title row is the summary */
details.details > summary { list-style: none; cursor: pointer; display: block; position: relative; padding-right: 22px; }
details.details > summary::-webkit-details-marker { display: none; }
details.details > summary::after { content: "▸"; position: absolute; right: 2px; top: 1px; color: var(--ink-mute); font-size: 13px; }
details.details[open] > summary::after { content: "▾"; }
details.details > summary:hover .box-title { color: var(--accent); }
details.details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
details.details > summary .box-sub { display: block; margin: 1px 0 0; }
details.details[open] > summary { margin-bottom: 9px; }

/* -- /regions/ and /markets/: one container, sortable columns ---------------------- */
.listpage { padding-top: 6px; padding-bottom: 8px; }
.listbox { padding: 16px 20px 20px; }
.pane-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.pane-sub { margin: 2px 0 14px; font-size: 13px; color: var(--ink-mute); max-width: 90ch; line-height: 1.5; }
.pane-sub a { color: var(--accent); }
.listbox table.data { font-size: 14px; max-width: 960px; }
.listbox table.data td { padding-top: 6px; padding-bottom: 6px; }
.listbox table.data th { padding-bottom: 6px; }
.listbox table.data tbody tr:hover td { background: var(--accent-pale); }
.tscroll-x { overflow-x: auto; }
th.sortable-h { cursor: pointer; user-select: none; -webkit-user-select: none; }
th.sortable-h:hover { color: var(--ink); }
th.sortable-h[aria-sort="ascending"]::after { content: " ▴"; }
th.sortable-h[aria-sort="descending"]::after { content: " ▾"; }
th.sortable-h:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#list-markets td:first-child { color: var(--ink-mute); width: 36px; }
#list-markets td.comm { font-size: 13px; }
#list-markets td.comm a { color: var(--ink-mute); }
#list-markets td.comm a:hover { color: var(--accent); }
.regsub { display: none; }

/* -- footer ------------------------------------------------------------- */
.site-foot { margin-top: 28px; padding: 12px 0 40px; font-size: 12px; color: var(--ink-mute); }
.site-foot .wrap { border-top: 1px solid var(--edge); padding-top: 10px; }
.site-foot p { margin: 4px 0; }
.site-foot b { color: var(--ink-soft); font-weight: 600; }

/* -- landing page "/" (lib/landing.py, assets/landing.js; design: concepts/j8_landing_final) ------
   Two families. THE KEY (.lp-key): the whole "see everything" block is one link in a button's
   design language: white face, 1 px steel border, a flat brand-blue bottom edge (a border: depth is
   tone, never box-shadow) that it presses into on :active, amber focus ring, a blue action bar with an arrow. Flat fills, no
   glow. THE CARDS (.qc): flat boxes, 4 px radius, one sharp question + one number + one small
   visual each; a template for future question pages. Page tone = --bg with white surfaces. */
.lp-head .wrap { max-width: 1180px; }
.lp-foot .wrap { max-width: 1180px; }
main.lp { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; font-size: 14px; line-height: 1.45; }
:where(.lp h1, .lp h2, .lp p) { margin: 0; }
.lp-key {
  position: relative; display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: 1fr auto; column-gap: 30px;
  background: #fff; border: 1px solid #b9c3d0; border-bottom: 4px solid #0a3f78; border-radius: 6px; margin-bottom: 10px;
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .1s ease, border-color .1s;
}
.lp-key:hover { transform: translateY(-1px); border-color: var(--accent); border-bottom-color: #0a3f78; }
.lp-key:active { transform: translateY(3px); border-bottom-width: 1px; margin-bottom: 13px; transition-duration: .04s; }
body[data-page="landing"] .lp-key:focus-visible { outline: 3px solid #c47f00; outline-offset: 6px; }
.lp-l { display: flex; flex-direction: column; padding: 32px 0 20px 36px; min-width: 0; }
.lp-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lp-q { margin-top: 12px; font-size: 17px; color: var(--ink-soft); line-height: 1.35; }
.lp-pl { display: block; margin: 18px 0 4px; font-size: 15px; font-weight: 700; letter-spacing: 0; color: #1f6a86; }
.lp-pl::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--cmp3); vertical-align: middle; margin-right: 8px; }
.lp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-aa { font-size: 46px; line-height: 1.06; font-weight: 700; letter-spacing: -.025em; }
.lp-aa em { font-style: normal; color: var(--sel); }
.lp-nb { display: block; }
.lp-ctx { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--ink-mute); }
.lp-r { padding: 26px 30px 14px 0; min-width: 0; }
.lchart { position: relative; }
.lchart .lsvg { display: none; width: 100%; height: auto; overflow: visible; background: transparent; }
.lchart .lsvg-l { display: block; }
.lsvg text { font-size: 12px; fill: var(--ink-mute); }
.lsvg .tick { font-size: 12px; }
.lsvg .grid { stroke: var(--line); }
.lsvg .grid.axis, .lsvg .grid.tickmark { stroke: #999; }
.lsvg .today { stroke: var(--ink-faint); stroke-dasharray: 2 3; }
.lsvg .today-l { fill: #555; }
.lsvg .line.lp { stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lsvg .line.l1 { stroke: var(--cmp2); }
.lsvg .line.l2 { stroke: var(--cmp3); stroke-width: 3; }
.lsvg .line.nat { stroke: #555; stroke-dasharray: 6 5; }
.lsvg .tlabel.lp { font-size: 13.5px; font-weight: 700; }
.lsvg .tlabel.l1 { fill: var(--cmp2); }
.lsvg .tlabel.l2 { fill: var(--cmp3); }
.lsvg .tlabel.nat { fill: #555; font-weight: 400; }
.lsvg .mk { fill: #fff; stroke-width: 2.6; }
.lsvg .mk.mk-now { stroke: var(--ink); }
.lsvg .mk.mk-peak { stroke: var(--sel); }
.lsvg .mk-l { font-size: 15px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.lsvg .mk-l.mk-now { fill: var(--ink); }
.lsvg .mk-l.mk-peak { fill: var(--sel); }
.hover-tip .ht-date { white-space: nowrap; }
.hover-tip .ht-lp { font-weight: 600; }
.hover-tip .ht-lp.l1 { color: var(--cmp2); }
.hover-tip .ht-lp.l2 { color: #1f6a86; }
.hover-tip .ht-lp.nat { color: var(--ink-mute); font-weight: 400; }
.lp-go {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px 14px 26px; background: var(--accent); color: #fff; border-radius: 0 0 5px 5px; transition: background .1s;
}
.lp-go b { font-size: 22px; letter-spacing: -.01em; }
.lp-go small { display: block; font-size: 13px; font-weight: 400; opacity: .85; margin-top: 1px; }
.lp-arr { flex: none; width: 34px; height: 34px; display: grid; place-items: center; transition: transform .15s; }
.lp-arr svg { width: 28px; height: 28px; }
.lp-key:hover .lp-go { background: #0b5cae; }
.lp-key:hover .lp-arr { transform: translateX(5px); }
.lp-key:active .lp-arr { transform: translateX(2px); }
.lp-fine { margin: 26px 2px 0; font-size: 12px; color: var(--ink-mute); }
.lp-sech { margin: 30px 2px 12px; }
.lp-sect { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.qc {
  position: relative; display: flex; flex-direction: column; min-height: 200px; background: #fff;
  border: 1px solid var(--edge); border-radius: 4px; padding: 14px 16px; color: var(--ink); text-decoration: none;
  transition: border-color .12s, background .12s;
}
.qc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-mute); }
.qc-tag { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.qc h2 { font-size: 17px; line-height: 1.25; font-weight: 700; margin: 12px 0 0; max-width: 20ch; }
.qc-tz { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 14px 34px 0 0; }
.qc-num { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.qc-num small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-mute); letter-spacing: 0; margin-top: 6px; }
.qc-mc { width: 104px; height: 40px; flex: none; }
.qc-chev {
  position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--edge);
  display: grid; place-items: center; color: var(--accent); background: #fff; transition: all .15s;
}
.qc-chev svg { width: 12px; height: 12px; }
.qc:hover { border-color: var(--accent); background: #fbfcfe; }
.qc:hover h2 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.qc:hover .qc-chev { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateX(3px); }
.qc:active { background: var(--accent-pale); }
body[data-page="landing"] .qc:focus-visible { outline: 3px solid #c47f00; outline-offset: 2px; }
/* medium: the key stacks (copy above, chart full width) so the chart text stays readable */
@media (max-width: 999px) {
  .lp-key { display: flex; flex-direction: column; }
  .lp-l { padding: 24px 22px 0; }
  .lp-ctx { display: none; }
  .lp-r { padding: 10px 14px 12px; }
  .lchart .lsvg-l { display: none; }
  .lchart .lsvg-m { display: block; }
}
/* phone: its own layout (key: stacked column, 38 px numerals, 354 x 236 chart; cards 2 x 2, visual as a strip) */
@media (max-width: 760px) {
  main.lp { padding: 14px 12px 28px; }
  .lp-key { margin-bottom: 8px; border-bottom-width: 3px; }
  .lp-key:active { transform: translateY(2px); border-bottom-width: 1px; margin-bottom: 10px; }
  .lp-l { padding: 20px 18px 0; }
  .lp-q { margin-top: 8px; font-size: 14.5px; }
  .lp-pl { margin-top: 14px; }
  .lp-aa { font-size: 38px; }
  .lp-r { padding: 8px 6px 8px; }
  .lchart .lsvg-m { display: none; }
  .lchart .lsvg-s { display: block; }
  .lp-go { padding: 13px 16px 13px 18px; }
  .lp-go b { font-size: 19px; }
  .lp-go small { font-size: 12px; }
  .lp-arr { width: 32px; height: 32px; }
  .lp-fine { margin-top: 22px; }
  .lp-sech { margin: 24px 2px 10px; }
  .lp-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qc { min-height: 178px; padding: 11px 12px; }
  .qc-st { display: none; }
  .qc h2 { font-size: 15px; margin-top: 8px; }
  .qc-tz { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding: 10px 0 0; }
  .qc-mc { width: 100%; height: 30px; }
  .qc-num { font-size: 24px; padding-right: 30px; }
  .qc-num small { margin-top: 3px; }
  .qc-chev { right: 9px; bottom: 9px; width: 24px; height: 24px; }
}
@media (hover: none) {
  .lp-key:hover { transform: none; border-color: #b9c3d0; border-bottom-color: #0a3f78; }
  .lp-key:hover .lp-go { background: var(--accent); }
  .lp-key:hover .lp-arr { transform: none; }
}

/* -- one frame at every level (2026-10-29) ---------------------------------------
   Spain, a region and a market fill the same slots with the same heights, so going
   from one to another moves little: single-line crumb / where / delta / key / note
   (ellipsis rather than wrap), a three-button toggle (Price | Weather | All tiers), a compact members box
   (5 rows + a link to the full list). */
html { scrollbar-gutter: stable; }
.head-trail { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.head-crumb li.current::after { content: none; }
.whereis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ckey { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; height: 18px; }
.ckey .k { flex: 0 0 auto; }
.p-chart[data-unit="ES"] .ckey .k-nat, .p-chart[data-unit="ES"] .ckey .k-band { display: none; }
.seg button:disabled { color: var(--ink-faint); cursor: not-allowed; background: transparent; }
/* -- chart Weather view (REWORK R4, reworked 2026-11-04): the weather is drawn ON the price chart, two more y axes
   on the right, each coloured like its line (site.js wxDraw). Daily high = dark red (the map's Weather ramp, dark end,
   #861b25); chance of a rainy day = blue (#2b7fa3 line, #1d5f7d for text), well apart from the violet price line
   (#3a1766) and the accent blue (#08519c) by hue and, for text, by lightness; the axes are also labelled with unit
   words, so colour is never the only cue. Rain / snow strip ramps are one hue each, four lightness steps. */
.ckey .k[hidden], .note-text[hidden] { display: none !important; }
.p-chart[data-view="weather"] .ckey { flex-wrap: wrap; white-space: normal; height: auto; overflow: visible; }
.p-chart[data-view="weather"] .ckey .kv-weather,
.p-chart[data-view="weather"][data-wsnow="1"] .ckey .kv-snow { display: inline-flex; }
.p-chart[data-view="weather"]:not([data-tier="3"]) .ckey .k-band { display: none; }
.ckey .k-hi > span[data-wxaxis] { color: #861b25; font-weight: 600; }
.ckey .k-rn > span[data-wxraxis] { color: #1d5f7d; font-weight: 600; }
.ckey .ks.wb { width: 12px; height: 9px; border: 0; background: rgba(131,56,34,.16); }
.ckey .ks.wa { border-top: 2px solid #861b25; }
.ckey .ks.wf { border-top: 2px dotted #861b25; }
.ckey .ks.rl { border-top: 2px solid #2b7fa3; }
.ckey .wramp { display: inline-flex; }
.ckey .wramp i { display: inline-block; width: 10px; height: 9px; }
.wk0 { fill: #eef3f5; background: #eef3f5; } .wk1 { fill: #c4dde6; background: #c4dde6; }
.wk2 { fill: #84b9cc; background: #84b9cc; } .wk3 { fill: #3f8cab; background: #3f8cab; }
.sk0 { fill: #f2eef6; background: #f2eef6; } .sk1 { fill: #d9cce6; background: #d9cce6; }
.sk2 { fill: #b49ccf; background: #b49ccf; } .sk3 { fill: #8a63b0; background: #8a63b0; }
.chart .tick.small { font-size: 9.5px; }
.chart .wband { fill: #861b25; opacity: .13; stroke: none; }
.chart .wmed { stroke: #861b25; stroke-width: 1; opacity: .55; }
.chart .fshade { fill: var(--accent); opacity: .05; stroke: none; pointer-events: none; }
.chart .wact { stroke: #861b25; stroke-width: 1.7; }
.chart .wact.prelim { stroke-dasharray: 4 2; }
.chart .wact.fc.prov { stroke-dasharray: 1.5 3; stroke-linecap: round; }
.chart .wrain { stroke: #2b7fa3; stroke-width: 1.5; stroke-linejoin: round; }
.chart .wspine { stroke-width: 1; }
.chart .wspine.hi { stroke: #861b25; } .chart .wspine.rn { stroke: #2b7fa3; }
.chart .wtick { font-size: 10px; }
.chart .wtick.hi { fill: #861b25; } .chart .wtick.rn { fill: #1d5f7d; }

.chart .whdot { fill: #861b25; } .chart .wrdot { fill: #2b7fa3; }
.chart .wdot { stroke: #fff; stroke-width: 1; pointer-events: none; }
.chart .pdot { fill: var(--sel); stroke: #fff; stroke-width: 1; pointer-events: none; }
.chart .rtick { fill: #17465c; }
.chart .stick { fill: #4a2f6a; }
.p-chart[data-view="weather"] .hover-tip { width: max-content; max-width: min(300px, 94%); white-space: normal; }
.hover-tip .ht-wx { margin-top: 1px; }
.hover-tip .ht-wh { color: #861b25; }
.hover-tip .ht-wr { color: #1d5f7d; }
.p-note.wxv { height: auto; }
.p-note.wxv .note-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
@media (max-width: 759px) {
  .p-chart[data-view="weather"] .ckey .k-band { display: none !important; }
  .p-chart[data-view="weather"] .ckey .k-rn .ks { display: none; }
}

/* -- pooled Weather view = the heat-strip ladder (Spain, region; concept L4, owner 2026-11-05). One thin row per weather region,
   one cell per calendar week; colours = the map's ramp (lt0..7, lib/weather.RAMP) or the rain-day classes (lr0..3, deeper than the
   market strip's wk0..3: lib/weather.LADDER_RAIN, tools/check_ramp.py section D). Both lists are asserted equal to the Python ones. */
.lt0 { fill: #3b6fb6; background: #3b6fb6; } .lt1 { fill: #5aa9c8; background: #5aa9c8; } .lt2 { fill: #9ad3b0; background: #9ad3b0; }
.lt3 { fill: #e8e589; background: #e8e589; } .lt4 { fill: #f5b85a; background: #f5b85a; } .lt5 { fill: #ea7a3f; background: #ea7a3f; }
.lt6 { fill: #c43a2c; background: #c43a2c; } .lt7 { fill: #861b25; background: #861b25; }
.lr0 { fill: #e9eef2; background: #e9eef2; } .lr1 { fill: #b3d2e3; background: #b3d2e3; }
.lr2 { fill: #5b9bc1; background: #5b9bc1; } .lr3 { fill: #1b5a86; background: #1b5a86; }
.chart .lsk { fill: #eef1f3; }
.chart .glbl { fill: var(--ink-soft); font-size: 10px; font-weight: 600; }
.chart .rlbl { font-size: 9px; fill: #111; stroke: #fff; stroke-width: 2.4px; paint-order: stroke; stroke-linejoin: round; }
.chart .lhi { fill: none; stroke: #111; stroke-width: 1.2; pointer-events: none; }
.ckey .lt0, .ckey .lr0 { outline: 1px solid rgba(0,0,0,.18); outline-offset: -1px; }
.p-chart[data-lad="r"] .ckey .k-lt, .p-chart:not([data-lad="r"]) .ckey .k-lr { display: none !important; }
.ckey .k-sw .seg { padding: 1px; }
.ckey .k-sw .seg button { min-width: 0; padding: 1px 8px; font-size: 11px; line-height: 1.5; }
.ckey .k-lad .dim { color: var(--ink-faint); }
.hover-tip .ht-lr { font-weight: 700; color: var(--ink); }
.hover-tip .ht-lb { color: var(--ink-mute); font-size: 11px; }
@media (max-width: 759px) {
  .chart .glbl { font-size: 11.5px; }
  .chart .rlbl { font-size: 10.5px; }
}

.seg button:disabled:hover { background: transparent; }
.p-note { display: flex; align-items: flex-start; gap: 6px; height: 46px; padding-bottom: 6px; }
.note-text { flex: 1 1 auto; min-width: 0; overflow: hidden; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-note .unit-info { margin-left: 0; flex: 0 0 auto; }
.tscroll { overflow-x: auto; }
table.data tr.me td { background: var(--accent-pale); font-weight: 700; }

/* -- phone: map on top, sticky and scaling; the containers stack under it ----
   The map stage is sticky at the top of main with a FIXED layout size (--mh); site.js scales it
   (transform from the top left) as the room left for it shrinks, down to a thumbnail
   (MIN_K) that stays docked top left. Layout never changes, so nothing refits or redraws.
   Fallback: drop the transform in site.js and the stage is a plain sticky map. */
@media (max-width: 759px) {
  :root { --mh: min(60vh, 115vw); }
  .wrap { padding: 0 12px; }
  .site-head .wrap { flex-wrap: wrap; gap: 4px 12px; padding-top: 8px; padding-bottom: 10px; }
  .mast-meta { flex-basis: 100%; order: 3; font-size: 11.5px; white-space: normal; }
  .mast-spare { flex: 1 1 100%; order: 4; justify-content: flex-start; }
  :root { --pr-w: 0px; }
  .site-head.has-nav .wrap { padding-bottom: 10px; }
  .site-name { order: 1; }
  .lang-switch { order: 1; }
  body.js .nav-btn:not([hidden]) {
    display: inline-flex; align-items: center; gap: 8px; order: 2; margin-left: auto; min-height: 36px; padding: 0 12px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 2px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
  }
  .nav-btn .bars { width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .nav-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
  .nav-btn[aria-expanded="true"] { border-color: var(--ink); }
  .site-nav { order: 2; margin: 2px -12px 0; background: var(--surface); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
  body.js .site-nav:not(.open) { display: none; }
  .nav-groups { display: block; }
  .nav-group { display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .nav-gt {
    position: static; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 12px 4px; background: var(--surface-2);
    border-top: 1px solid var(--line); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute);
  }
  .nav-group:first-child .nav-gt { border-top: 0; }
  .nav-items { display: block; }
  .nav-link, .nav-soon { padding: 12px 12px; font-size: 15px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
  .nav-link[aria-current="page"] { border-left-color: var(--accent); background: var(--accent-pale); border-bottom-color: var(--line); }
  form.period { gap: 5px 8px; width: 100%; }
  form.period input[type="date"] { height: 28px; }
  .map-info .info-body { width: min(340px, calc(100vw - 48px)); }
  main.wrap { margin-top: 8px; }
  .frame { display: flex; flex-direction: column; }
  .mapcol { display: contents; }
  .panel { order: 1; }
  .map-stage { position: sticky; top: 0; z-index: 2; height: var(--mh); margin-bottom: var(--gap-box); transform-origin: 0 0; }
  .map-modebar { padding: 4px 8px; min-height: 34px; }
  .map-modebar .mode-cap { display: none; }
  .map-legend { padding: 5px 8px 6px; font-size: 11px; }
  .map-legend .hide-s { display: none; }
  .map-legend .lg-key { display: none; }   /* phone: the ramp (and the price scale) only; the [i] explains the rest */
  .ramp, .ramp-l { grid-template-columns: repeat(8, 1fr); width: 192px; }
  .wxcell .val { font-size: 17px; }
  .wxcell .det { white-space: normal; }
  table.marginal .plabel { display: none; }
  table.data td.txt { white-space: normal; }
  .fig b { font-size: 32px; }
  .fig .delta { display: block; margin: 2px 0 0; }
  .box { padding: 11px 12px 11px; }
  .p-head { padding: 11px 12px 10px; }
  .p-chart { padding: 10px 10px 4px; }
  .p-note { padding: 2px 10px 10px; height: 62px; }
  .note-text { -webkit-line-clamp: 3; }
  .filters { padding: 7px 10px; }
  .chart-bar { flex-wrap: wrap; }
  .optbox p { white-space: normal; }
  .optbox .optname { min-width: 0; display: inline; }
  .unit-info .info-body { right: auto; left: 0; }
  /* lists pages: the market's region moves under its name */
  .listbox { padding: 14px 12px 16px; }
  .pane-title { font-size: 17px; }
  .listbox table.data { font-size: 13.5px; }
  #list-markets th.comm, #list-markets td.comm { display: none; }
  .regsub { display: block; font-size: 12px; color: var(--ink-mute); font-weight: 400; line-height: 1.3; }
  .regsub a { color: var(--ink-mute); }
  #list-markets td:first-child { width: 28px; }
  table.data th, table.data td { padding-right: 8px; }
  table.data th:not(:first-child), table.data td:not(:first-child) { padding-left: 8px; }
  table.data td.txt, table.data th.txt { padding-right: 8px; }
  .site-foot .wrap { padding-top: 10px; }
}
.wxcell .val [data-wx="g"]:empty { display: none; }
.p-chart[data-view="weather"][data-unit="ES"] .ckey .k-band { display: none; }   /* Spain has no 3-star band (as in Light) */

/* -- phone: Dates + hotel type in ONE summary row (2026-11-05, J0 triage row 3 / 14) ---------------------
   site.js fills the row, and while the screen is narrow moves the masthead's #period form and the panel's #filters
   form into .ctl-ed (shown by "Edit"); on a wide screen they go back where they were. No JS: the row is not shown. */
.ctl-sum { display: none; }
@media (max-width: 759px) {
  body.js .ctl-sum { display: block; margin: 0 0 var(--gap-box); background: var(--surface); border: 1px solid var(--edge); }
  .ctl-sum-b {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: none;
    font: inherit; font-size: 13.5px; color: var(--ink); text-align: left; cursor: pointer;
  }
  .ctl-sum-b b { font-weight: 700; }
  .ctl-sum-b .cs-f { color: var(--ink-soft); }
  .ctl-sum-b .cs-edit { margin-left: auto; color: var(--accent); font-weight: 600; }
  .ctl-ed { padding: 4px 12px 10px; border-top: 1px solid var(--line); }
  .ctl-ed form.period { margin: 6px 0 0; }
  .ctl-ed .filters { padding: 8px 0 0; border: 0; background: none; }
  .panel.nofilters .p-chart { border-top: 1px solid var(--edge); }
}
@media (max-width: 759px) {
  .frame[data-mode="wx"] table.communities :is(th, td):nth-child(2) { display: none; }   /* Weather mode on a phone: the market count makes room for High and Rain days */
  .p-members table.data th { white-space: normal; }
}

/* -- Price sub-mode "vs its usual" and the "Your weather" map mode (2026-11-05, concept M8; lib/ywmode.py, site.js "pbasis" / "ywscore") ------------
   Two more legend layers share the ONE grid cell of the legend band (always in layout, visibility only), so the band and the map pane
   are the same height in every mode and sub-mode. The server renders Price; everything here is hidden without JS. */
body:not(.js) #psub, body:not(.js) .yw-only { display: none !important; }
.psub { flex: 0 0 auto; }
.psub button { min-width: 0; padding: 3px 10px; }
.map-stage.wxmode #psub, .map-stage.ywmode #psub { visibility: hidden; }
.map-modebar .mode-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-legend > .lg-l-dv, .map-legend > .lg-l-yw { visibility: hidden; }
.map-stage.devmode .lg-l-dv, .map-stage.ywmode .lg-l-yw { visibility: visible; }
.map-stage.devmode .lg-l-pr, .map-stage.ywmode .lg-l-pr { visibility: hidden; }
.map-stage.devmode .lg-fld, .map-stage.ywmode .lg-fld { visibility: hidden !important; }     /* "vs its usual" draws no temperature field */
.map-legend .lg-dev, .map-legend .lg-yw { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 12px; }
.map-legend .lg-dev > b, .map-legend .lg-yw > b { align-self: flex-start; }
.ramp.r7 { grid-template-columns: repeat(7, 28px); width: 196px; }
.ramp.r11 { grid-template-columns: repeat(11, 18px); width: 198px; }
.ramp-t { position: relative; display: block; height: 13px; margin-top: 1px; font-size: 10.5px; color: var(--ink-mute); }
.ramp-t span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ramp-e { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--ink-mute); white-space: nowrap; }
.hatch { display: inline-block; width: 20px; height: 10px; border: 1px solid rgba(0, 0, 0, .25); vertical-align: -1px; }
.kdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #66bd63; border: 2px solid #fff; outline: 1px solid rgba(0, 0, 0, .4); box-sizing: border-box; }
.kdot.est { background: #e6e6e6; border: 2px dashed #333; outline: 0; }
.kdot.hollow { background: #fff; border: 3px solid #66bd63; outline: 0; }
/* dots: "vs its usual" gets the white ring of the field modes; Your weather paints the score on the dot (inline fill), a place with no
   price (G9) is hollow (inline) and one with estimated prices has a dashed dark ring */
#map.dev a.dot circle, #map.yw a.dot circle { stroke-width: 2; }
#map.dev a.dot.sel circle, #map.yw a.dot.sel circle { stroke: var(--ink); stroke-width: 2.5; }
#map.ywwait a.dot circle { fill: #fff !important; }
#map.yw .ccaa, #map.yw .ccaa.mtn { fill: transparent; }
/* the Price panel's "vs its usual" readout */
.pbline { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.pbline[hidden] { display: none; }
.pbline1 { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.pbline1 b { color: var(--ink); font-weight: 700; }
.pb3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
.pb3 > div { display: flex; flex-direction: column; border-left: 2px solid var(--line-strong); padding-left: 7px; min-width: 0; }
.pb3 .k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); }
.pb3 b { font-size: 19px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.pb3 b.up { color: #6c5800; }
.pb3 b.dn { color: #00544f; }
.pb-sub { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-mute); line-height: 1.4; }

/* the mode decides the panel: Your weather shows its own blocks, nothing of the price / weather panels */
.yw-only { display: none; }
.frame[data-mode="yw"] .yw-ctl, .frame[data-mode="yw"] .yw-loc { display: block; }
.frame[data-mode="yw"] :is(.p-chart, .p-note, .p-head, .p-marginal, .p-members, .p-table) { display: none; }
.frame[data-mode="yw"] :is(.px-only, .wx-only) { display: none !important; }
.yw-ctl { order: 2; padding: 0; margin: 0 0 var(--gap-box); }
.yw-loc { order: 3; padding: 0; margin: 0 0 var(--gap-box); }
.yw-railhead { display: flex; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.yw-done { display: none; }
.yw-sec { padding: 11px 14px 6px; border-bottom: 1px solid var(--line); }
.yw-sec.last { border-bottom: 0; padding-bottom: 12px; }
.yw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.yw-lbl { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.yw-top output { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.yw-top output small { font-size: 11.5px; font-weight: 400; color: var(--ink-mute); margin-left: 4px; }
.yw-sl { display: block; width: 100%; max-width: 380px; height: auto; margin: 2px 0 0; touch-action: none; user-select: none; -webkit-user-select: none; overflow: visible; }
.yw-sl text { font-family: inherit; font-size: 10.5px; fill: var(--ink-mute); font-variant-numeric: tabular-nums; }
.yw-sl .ax { fill: var(--ink-mute); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.yw-sl .chip text { fill: #fff; font-size: 11px; font-weight: 700; }
.yw-sl .hd { cursor: grab; outline: none; }
.yw-sl .hd:active { cursor: grabbing; }
.yw-sl .hd:focus-visible .kn, .yw-sl .hd.drag .kn { stroke-width: 3.4; }
.yw-sl .cap-end { cursor: pointer; }
.yw-sl .cap-end text { font-size: 10.5px; fill: var(--ink-soft); }
.yw-sl .cap-end.on text { fill: #1d5f7d; font-weight: 700; }
.yw-sl .cls text { font-size: 10px; fill: var(--ink-soft); text-anchor: middle; }
.yw-sl .hov text { font-size: 10.5px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.yw-cap { margin: 2px 0 6px; font-size: 11.5px; line-height: 1.4; color: var(--ink-mute); min-height: 32px; }
.yw-cap b { color: var(--ink); font-weight: 600; }
#yw-b-cap { margin: 6px 0 0; min-height: 0; }
#yw-bseg button, #yw-basis button { padding: 3px 8px; font-size: 11.5px; min-width: 0; }
.yw-basisrow { margin-top: 8px; }
#yw-price-sec.off #yw-basis { opacity: .45; }
.yw-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.yw-hd select { font: inherit; font-size: 12.5px; padding: 2px 4px; border: 1px solid var(--line-strong); background: #fff; max-width: 190px; }
.yw-bd { padding: 12px 14px 14px; font-size: 13px; }
.yw-big { display: flex; gap: 12px; align-items: center; }
.yw-big .sw { width: 64px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; border: 1px solid rgba(0, 0, 0, .35); flex: none; }
.yw-big .sw small { font-size: 13px; }
.yw-big .sw.hol { background: #fff !important; border-width: 4px; }
.yw-big .nm { font-size: 16px; font-weight: 700; line-height: 1.2; }
.yw-big .sub { font-size: 12px; color: var(--ink-mute); margin-top: 2px; line-height: 1.35; }
.yw-rmp { position: relative; display: flex; height: 8px; margin: 12px 0 2px; border: 1px solid rgba(0, 0, 0, .2); }
.yw-rmp b { flex: 1; }
.yw-rmp i { position: absolute; top: -5px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #111; margin-left: -5px; }
.yw-rmp-l { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-mute); }
.yw-part { margin-top: 14px; }
.yw-part-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.yw-part-h .l2 { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.yw-part-h .num { font-size: 20px; font-weight: 700; line-height: 1; }
.yw-part-h .num small { font-size: 11px; font-weight: 400; color: var(--ink-mute); margin-left: 2px; }
.yw-pr { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 6px 0 5px; border-bottom: 1px solid var(--line); align-items: baseline; }
.yw-pr .k { font-size: 12.5px; color: var(--ink-soft); }
.yw-pr .k b { color: var(--ink); font-weight: 600; }
.yw-pr .v { font-weight: 700; font-size: 13px; text-align: right; min-width: 26px; }
.yw-pr .tr { grid-column: 1 / -1; height: 5px; background: var(--line); position: relative; margin-top: 3px; }
.yw-pr .tr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.yw-pr .tr i.rain { background: #2b7fa3; }
.yw-pr .tr i.price { background: var(--sel); }
.yw-comb { margin-top: 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid #111; padding: 7px 9px; font-size: 12.5px; line-height: 1.45; }
.yw-comb .mu, .yw-mu { color: var(--ink-mute); }
.yw-comb .mu { display: block; font-size: 11.5px; margin-top: 2px; }
.yw-est { display: inline-block; border: 1px dashed #8f8f8f; font-size: 10.5px; padding: 0 4px; color: var(--ink-mute); margin-left: 4px; font-weight: 400; }
.yw-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 6px; }
.yw-trio > div { display: flex; flex-direction: column; border-left: 2px solid var(--line-strong); padding-left: 7px; }
.yw-trio .k { font-size: 10.5px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; }
.yw-trio b { font-size: 16px; font-variant-numeric: tabular-nums; }
.yw-trio b.up { color: #6c5800; }
.yw-trio b.dn { color: #00544f; }
.yw-work { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.yw-work > summary { cursor: pointer; list-style: none; color: var(--accent); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.yw-work > summary::-webkit-details-marker { display: none; }
.yw-work > summary:before { content: ""; display: inline-block; border-left: 6px solid var(--accent); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.yw-work[open] > summary:before { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--accent); border-bottom: 0; }
.yw-work h4 { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin: 12px 0 3px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.yw-work p { margin: 4px 0; font-size: 12.5px; line-height: 1.45; }
.yw-eq { font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 7px; margin: 5px 0; line-height: 1.5; }
.yw-cmp { width: 100%; border-collapse: collapse; font-size: 12px; margin: 5px 0; }
.yw-cmp th { text-align: right; font-weight: 600; color: var(--ink-mute); border-bottom: 1px solid var(--line-strong); padding: 2px 4px; font-size: 11.5px; }
.yw-cmp td { text-align: right; padding: 2px 4px; border-bottom: 1px solid var(--line); }
.yw-cmp th:first-child, .yw-cmp td:first-child { text-align: left; }
.yw-cmp tr.on td { background: var(--accent-pale); }
.yw-fan { max-width: 380px; }
.yw-fan text { font-size: 10px; fill: var(--ink-mute); font-family: inherit; }
.yw-fan .lab { fill: var(--ink); }
.yw-wait { padding: 12px 14px; font-size: 12.5px; color: var(--ink-mute); }
.yw-sheetbar { display: none !important; }
@media (max-width: 759px) {
  .yw-sl { max-width: none; }
  .yw-ctl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; border: 0; border-top: 1px solid var(--ink); max-height: 84vh; overflow-y: auto; display: none !important; }
  body.yw-sheet .frame[data-mode="yw"] .yw-ctl { display: block !important; }
  body.yw-sheet:after { content: ""; position: fixed; inset: 0; background: rgba(17, 17, 17, .35); z-index: 20; }
  .yw-railhead { position: sticky; top: 0; z-index: 2; }
  .yw-done { display: inline-block; margin-left: auto; font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 14px; border: 0; background: var(--accent); color: #fff; border-radius: 2px; }
  .frame[data-mode="yw"] .yw-sheetbar { display: flex !important; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--ink); padding: 8px 10px; height: 54px; }
  body.yw-sheet .yw-sheetbar { display: none !important; }
  .yw-sb-sum { flex: 1; font-size: 12px; line-height: 1.3; color: var(--ink-soft); }
  .yw-sb-sum b { color: var(--ink); }
  .yw-sheetbar button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 14px; background: var(--accent); color: #fff; border: 0; border-radius: 2px; white-space: nowrap; }
  body.yw-on { padding-bottom: 58px; }
  /* one mode bar row in every mode: the label goes, the buttons are compact; at a width that cannot hold it the row wraps in EVERY mode (the sub-toggle keeps its room) */
  .map-modebar { flex-wrap: wrap; gap: 4px; }
  .map-modebar .ctl-title { display: none; }
  .modeseg, .psub { flex: 0 0 auto; }
  .modeseg.seg-eq { display: inline-flex; }
  .modeseg button, .psub button { min-width: 0; padding: 3px 6px; font-size: 11.5px; }
  .yw-bd { padding: 10px 10px 12px; }
}

/* -- sub-pages (B3): window pages, hubs, currency toggle, scales, honesty styling -------------------------------------------
   Server-rendered blocks (lib/blocks.py); sub.js only toggles the lens panels and converts the prices. */
.subpage { padding-top: 6px; padding-bottom: 8px; }
.subbox { padding: 16px 20px 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0 0 10px; padding: 0; font-size: 12.5px; color: var(--ink-mute); }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); }
.subbox h2 { font-size: 16px; margin: 22px 0 4px; }
.subbox .headline { margin: 6px 0 10px; font-size: 15.5px; line-height: 1.5; max-width: 80ch; }
.lens-dates { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-mute); }
.lens-members { margin: 0 0 6px; }
.cur, .lens-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; }
.cur-note { margin: 0; font-size: 12px; color: var(--ink-mute); flex: 1 1 280px; }
html.sub-js .lens:not(.on) { display: none; }
/* the lifecycle strip */
.state { margin: 8px 0 12px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); }
.state-steps { display: flex; gap: 14px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.state-steps li.on { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.state-text { margin: 0; font-size: 13px; color: var(--ink-soft); max-width: 90ch; }
/* place table */
table.subtable { font-size: 13.5px; width: 100%; max-width: none; }
table.subtable td, table.subtable th { white-space: nowrap; }
table.subtable td.comm, table.subtable th.comm { color: var(--ink-mute); font-size: 12px; }
table.subtable td.px-c small { display: block; font-size: 10.5px; color: var(--ink-faint); font-style: italic; line-height: 1.1; }
table.subtable td.px-ahead { color: var(--ink-soft); }
table.subtable td.px-ahead .px { border-bottom: 1px dashed var(--ink-faint); }
table.subtable th small { font-weight: 400; }
table.subtable td.wkc { padding-top: 3px; padding-bottom: 3px; }
table.subtable td.sch, table.subtable th.sch { min-width: 150px; text-align: left; }
.rel { display: inline-block; min-width: 3.2em; padding: 0 5px; font-weight: 700; font-size: 12.5px; text-align: center; border: 1px solid transparent; }
.rel-up { color: #8c1d18; background: #fce8e6; border-color: #f0b8b3; }
.rel-dn { color: #0f5c2a; background: #e4f4e9; border-color: #a8d5b5; }
.rel-flat { color: var(--ink-soft); background: var(--surface-2); border-color: var(--line-strong); }
.rel-na { color: var(--ink-faint); border: 1px dashed var(--line-strong); font-weight: 400; }
.wk { display: inline-flex; gap: 1px; vertical-align: middle; }
.wk i { display: block; width: 9px; height: 14px; }
.wk i.a { opacity: .5; outline: 1px dashed var(--ink-faint); outline-offset: -1px; }
.wk i.n { background: var(--surface-2); outline: 1px solid var(--line-strong); outline-offset: -1px; }
.wk i.w { border-bottom: 3px solid var(--ink); }
.sub-legend, .sub-method { max-width: 100ch; }
.sub-method { font-size: 12px; color: var(--ink-mute); line-height: 1.55; margin-top: 10px; }
/* busy / vibe scales */
.sc-bar { position: relative; display: inline-block; width: 72px; height: 7px; vertical-align: middle; background: var(--line); border: 1px solid var(--line-strong); }
.sc-bar i { position: absolute; top: -4px; width: 3px; height: 13px; margin-left: -1.5px; background: var(--ink); }
.sc-c { display: inline-flex; align-items: center; }
.sc-c .sc-w { margin-left: 8px; min-width: 5.5em; font-size: 12px; color: var(--ink-soft); }
.sc { margin: 8px 0 12px; max-width: 420px; }
.sc-lab { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-mute); margin-bottom: 4px; }
.sc-lab b { color: var(--ink); font-size: 13px; }
.sc-bar.sc-big { display: block; width: 100%; height: 8px; }
.sc-how { margin: 6px 0 0; font-size: 12px; color: var(--ink-mute); line-height: 1.5; }
.lang-opt.lang-off { color: var(--ink-faint); cursor: not-allowed; }
/* related links and the hub */
.related { margin: var(--gap-box) 0 0; padding: 12px 20px 14px; background: var(--surface); border: 1px solid var(--edge); }
.related h2 { margin: 0 0 6px; font-size: 14px; }
.related ul { margin: 0; padding-left: 18px; columns: 2; font-size: 13.5px; }
.hubgrid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hubcard { display: block; height: 100%; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--edge); color: var(--ink); text-decoration: none; }
.hubcard:hover { background: var(--accent-pale); }
.hubcard h2 { margin: 4px 0 4px; font-size: 15px; }
.hubcard p { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.hubcard .hub-dates { font-size: 12px; color: var(--ink-mute); }
.hub-state { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); border: 1px solid var(--line-strong); padding: 0 5px; }
.lp-more { margin-top: 12px; }
.lp-more > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-soft); padding: 6px 0; }
@media (max-width: 759px) {
  .subbox { padding: 14px 12px 16px; }
  .related { padding: 12px; }
  .related ul { columns: 1; }
  table.subtable { font-size: 13px; }
  table.subtable td.comm, table.subtable th.comm { display: none; }     /* the region column makes way for the % chip on a phone */
}

/* 2026-11-10 review fixes: scroll boxes contain their absolutely positioned captions (the page no longer scrolls sideways; STYLE.md forbids gradient cues); German state tabs wrap */
.tscroll-x, .tscroll { position: relative; max-width: 100%; }
.state-steps { flex-wrap: wrap; gap: 4px 14px; }
.pl-row { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.pl-row select { min-width: 0; max-width: 100%; }
.sc { min-width: 0; max-width: 100%; }
table.pw-table td.comm, table.pw-table th.comm { padding-left: 1em; white-space: normal; min-width: 8em; }
@media (max-width: 759px) {
  table.subtable td.px-c small, table.subtable td small { display: block; white-space: normal; max-width: 9em; margin-left: auto; line-height: 1.2; }
  table.subtable th { white-space: normal; }
}
.sc-lab { gap: 2px 8px; flex-wrap: wrap; }
