/* =====================================================================
   Round 72 · one colour system (port 8822, cs-*.html).
   The cs-*.css files are the same stylesheets with every colour snapped to this palette (snap.py):
   one cool neutral family (slate, tinted to the navy ink), plus four role colours. Nothing else.

   60  base      white page, slate-2 bands, slate lines           everything sits on this
   30  ink       navy #0f2438 text + the dark section bar/footer
   10  roles     yellow  = the one main action per view (CTA)
                 green   = money: every price, every saving
                 blue    = features & interaction: links, selection, focus, feature icons
                 amber   = caution only (too hot, over budget)
   Information (hints, notes, facts) stays neutral: a slate panel with a blue "i".
   Why white, not sand: Radix pairs a gray with the hue of its accent (slate ↔ blue); the old sand
   ground sat in the same warm family as the yellow CTA and the price tints, so neither stood out.
   ===================================================================== */
/* Round 74 · the base is a TRUE neutral (no hue), measured from live sites: Airbnb #fff / #f7f7f7 / #ebebeb /
   #ddd with text #222; Booking (also a yellow CTA) #fff / #f5f5f5 with text #1a1a1a, navy only in one header strip;
   Google Flights #fff with text #202124; Hopper #fff / #f6f6f6 with #111. Why: a tinted ground (the old slate
   was blue-grey, before that sand) shifts and dulls every accent placed on it (simultaneous contrast); a
   colourless ground leaves yellow, green and blue at full strength, so they are the only colour on the page. */
:root, html[data-tone="brand"] {
  --cs-bg: #ffffff; --cs-band: #f7f7f7; --cs-sunk: #f2f2f2; --cs-line: #e3e3e3; --cs-line-2: #dddddd; --cs-field: #767676;
  --cs-ink: #1d1d1f; --cs-ink-2: #545454; --cs-ink-3: #6a6a6a;
  --cs-blue: #0063ba; --cs-blue-1: #f4f9fe; --cs-blue-2: #eaf3fc; --cs-blue-3: #dcebfa; --cs-blue-line: #b0d1f2; --cs-blue-ink: #00478a;
  --cs-money: #0e6b3d; --cs-money-1: #f2faf5; --cs-money-2: #e6f5eb; --cs-money-line: #b5ddc3; --cs-money-solid: #11804a;
  --cs-warn: #8a5300; --cs-warn-2: #fff0d4; --cs-warn-line: #efc887;
  --cs-cta: #ffc300; --cs-cta-h: #f2b700; --cs-cta-edge: #a37a00;
  --t-tag: var(--cs-money-2); --t-tag-line: var(--cs-money-line);
  --sun-2: var(--cs-sunk); --sun-3: var(--cs-sunk); --sand-3: var(--cs-sunk);
}
html body { background: var(--cs-bg); }

/* ---------- money = green: every price reads as money at a glance ---------- */
html[data-tone] :is(.stamp .price, .mm-price b, .u-rc-tot, .r-opt-p b, .g-price, .cb-top > div > b, .cb-v, .z-facts .price dd:not(.sub), .card-cap .price):not(#_) { color: var(--cs-money) !important; }
html[data-tone] :is(.stamp, .mm-price):not(#_) { background: var(--cs-money-2) !important; border-color: var(--cs-money-line) !important; }
html[data-tone] body[data-zp] .z-facts.big .price:not(#_) { background: var(--cs-money-2) !important; border: 1px solid var(--cs-money-line) !important; }
html[data-tone] body[data-zp] #z-cost .cb-top > div:first-child:not(#_) { background: var(--cs-money-2) !important; border: 1px solid var(--cs-money-line) !important; }
/* a cost on top of your plan is information, not money to celebrate: neutral */
html[data-tone] body[data-zp] .lv-pill.more:not(#_) { background: var(--cs-sunk) !important; color: var(--cs-ink) !important; }
html[data-tone] body[data-zp] .lv-pill.less:not(#_) { background: var(--cs-money-solid) !important; color: #fff !important; }

/* ---------- features & selection = blue (yellow is kept for the CTA alone) ---------- */
html[data-tone="brand"] .p-hic:not(#_) { background: var(--cs-sunk) !important; color: var(--cs-ink) !important; }
html[data-tone="brand"] body[data-zp] :is(.v4-seg.stop, .v4-row.mine .v4-seg.stop):not(#_) { background: var(--cs-blue-3) !important; color: var(--cs-blue-ink) !important; }
html[data-tone="brand"] body[data-zp] .v4-key i.stop:not(#_) { background: var(--cs-blue-3) !important; }

/* ---------- information = neutral panel, blue "i" ---------- */
html[data-tone] body[data-zp] .z-hint:not(#_) { background: var(--cs-band) !important; border: 1px solid var(--cs-line); color: var(--cs-ink-2); }
html[data-tone] body[data-zp] .z-hint svg:not(#_) { color: var(--cs-blue); }

/* ---------- best time: good = blue tint, hot = amber, the rest neutral; no yellow, no green ---------- */

/* ---------- kinds of trip: one neutral tag, not a colour each ---------- */
html[data-tone] .mm-tag[data-kind]:not(#_), html[data-tone] .mm-tag:not(#_) { background: rgba(15, 36, 56, .82) !important; color: #fff !important; }
html[data-tone] body[data-zp] .z-card-in:not(#_) { border-top: 1px solid var(--cs-line) !important; }

/* ---------- surfaces: one line colour, one band colour ---------- */
html[data-tone] body[data-zp] .z-main > :is(.z-story, #z-cost)::before { background: var(--cs-band) !important; }
html[data-tone] body[data-zp] .r-day, html[data-tone] body[data-zp] .g-card { border-color: var(--cs-line) !important; }

/* ---------- the per-kind colour (--k) collapses to the one interactive blue ----------
   pins, route lines, selected kind chips and "your plan" all mean "this is selected / on the map" */
html[data-tone] :is(body, [style*="--k"], .chip[data-dm], .mm-kind, .mm-tag, .z-card-in):not(#_) { --k: #0063ba !important; }
html[data-tone] body[data-zp] .z-stop:not(#_) { border-left-color: var(--cs-line-2) !important; }
html[data-tone] body[data-zp] .z-card-k:not(#_), html[data-tone] body[data-zp] .z-num:not(.sm):not(#_) { color: var(--cs-ink) !important; }
html[data-tone] .chip[data-dm]:not([aria-pressed="true"]):not(#_) { background: #fff !important; border-color: var(--cs-line-2) !important; }
html[data-tone] .chip[data-dm]:not([aria-pressed="true"]) .ico:not(#_) { color: var(--cs-ink-2); }
/* facts on a card (weather, travel time, visa) are information: ink text with a blue tick; green stays for money */
html[data-tone] .mm-ticks :is(li, span, .good):not(#_) { color: var(--cs-ink-2) !important; }
html[data-tone] .mm-ticks :is(svg, .ico):not(#_) { color: var(--cs-blue) !important; }

/* ---------- round 74: blue only where something is interactive or selected; no blue-tinted surfaces ---------- */
/* the section bar: a light grey strip with lines (not dark navy); the current section is a white pill in blue */
html[data-tone] body[data-zp] .r-bar:not(#_) { background: var(--cs-sunk); border-top: 1px solid var(--cs-line-2); border-bottom: 1px solid var(--cs-line-2); }
html[data-tone] body[data-zp] .r-bar a:not([aria-current]):not(#_) { color: var(--cs-ink) !important; }
html[data-tone] body[data-zp] .r-bar a:not([aria-current]):hover:not(#_) { background: #fff; color: var(--cs-ink) !important; }
html[data-tone] body[data-zp] .r-bar a svg:not(#_) { color: var(--cs-ink-2); }
html[data-tone] body[data-zp] .r-bar a small:not(#_) { background: #fff; color: var(--cs-ink-2); }
html[data-tone] body[data-zp] .r-bar a[aria-current]:not(#_) { background: #fff; color: var(--cs-blue) !important; box-shadow: 0 0 0 1.5px var(--cs-blue); }
html[data-tone] body[data-zp] .r-bar a[aria-current] small:not(#_) { background: var(--cs-blue-2); color: var(--cs-blue-ink); }
html[data-tone] body[data-zp] .r-bar a:focus-visible:not(#_) { outline-color: var(--cs-blue); }
/* the logo mark: the same near-black as the text */
html[data-tone] .p-mark rect:not(#_) { fill: var(--cs-ink); }
html[data-tone] .p-mark path[stroke]:not(#_) { stroke: var(--cs-ink); }
/* good months: a white tile with a blue "Best" word, so the grid isn't a wash of tints */
/* information panels and icon circles: neutral grey */
html[data-tone] body[data-zp] :is(.r-hop-i, .r-leg-i):not(#_) { background: var(--cs-sunk) !important; border-color: var(--cs-line) !important; }
html[data-tone] body[data-zp] :is(.r-hop-i, .r-leg-i) svg:not(#_) { color: var(--cs-ink) !important; }
/* swap: a white panel with a blue outline (it is a choice you're making), options on white with grey facts */
html[data-tone] body[data-zp] .r-swap:not(#_), html[data-tone] body[data-zp] .r-swap::before { background: var(--cs-band) !important; border-color: var(--cs-blue) !important; }
html[data-tone] body[data-zp] .r-swap-n:not(#_) { background: var(--cs-sunk); color: var(--cs-ink); }
html[data-tone] body[data-zp] .r-swap-now:not(#_) { border-color: var(--cs-line-2); }
html[data-tone] body[data-zp] .r-swap-d li:not(.save):not(#_) { background: var(--cs-band); }
/* (round 77: the swap button is solid blue; see r-place.css) */
/* the info hint: neutral */
html[data-tone] body[data-zp] .z-hint:not(#_) { background: var(--cs-band) !important; }
/* stop names are headings: full ink */
html[data-tone] body[data-zp] .z-stop-h h4:not(#_) { color: var(--cs-ink) !important; }
