/* The trip matrix (F-222; redrawn in design language v2, F-250, D-610..): the prototype's results, docs/design/booking-v2/index.html (Newsreader with Inter). The tokens and the shared
   pieces (the sky, the sentence, the pickers) are v2-tokens.css and v2.css; this is the results card: the status and legend, the pick bar, and the grid (a place a row, a start day a column,
   each square the whole trip with its start day's sky above its total). One grid at every width: on a phone it scrolls sideways under a sticky place column. The opened square's trip
   drawer (v2drawer.css) grows under the card, on a laptop and on a phone, and the widget rail (v2rail.css) stands beside it. Motion is liquid at every width (D-439), only --v2-* and --motion-* tokens.
   Reduced motion: fades only. */
.mx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mx-results { max-width: 90rem; margin: 0 auto; padding: 0 0 8.75rem; }      /* the grid beside the rail is v2rail.css */
.mx-main { min-width: 0; display: grid; gap: 1.125rem; align-content: start; }

/* the card */
.mx-card { position: relative; border-radius: var(--r-xl); background: var(--card-t); box-shadow: var(--sh3), inset 0 0 0 1px color-mix(in srgb, var(--card-solid) 60%, transparent); padding: 1.125rem 0 0.375rem; overflow: hidden; }
.mx-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0 1.375rem 0.625rem; }
.mx-status { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2rem; color: var(--ink-2); font-weight: 560; }
.mx-st { display: inline-flex; align-items: center; gap: 0.625rem; }
.mx-st > span:last-child { min-width: 0; }
.mx-status b { color: var(--ink); font-weight: 680; }
.mx[data-waiting="0"] .mx-st-wait, .mx[data-waiting="1"] .mx-st-done { display: none; }
.mx-legend { display: flex; gap: 0.5rem; margin-left: auto; flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 0.4375rem; height: 2rem; padding: 0 0.625rem; border-radius: 62.4375rem; background: var(--card-2); font: 560 1rem/1 var(--f-ui); color: var(--ink-2); }
.lg i, .lg span:first-child { width: 0.875rem; height: 0.875rem; border-radius: 0.3125rem; flex: none; }
.lg .i-pick { background: var(--pick); }
.lg .i-cheap { background: var(--see); }
.lg .i-over { background: repeating-linear-gradient(135deg, var(--line-2) 0 0.1875rem, transparent 0.1875rem 0.375rem); box-shadow: inset 0 0 0 1px var(--line-2); }
.lg .i-band { background: color-mix(in srgb, var(--stay) 8%, transparent); box-shadow: inset 0 0 0 0.125rem color-mix(in srgb, var(--stay) 55%, transparent); }
.mx-slow, .mx-est-note { display: none; margin: 0; color: var(--ink-2); font-size: 1rem; }
.mx[data-slow="1"] .mx-slow, .mx[data-est="1"] .mx-est-note { display: inline; }

/* ⓘ About these prices: one quiet control in the top row; its popover holds the sample fine print, the weather's credit and Privacy and Terms (F-238) */
.mx-about { position: relative; }
.mx-about-btn { display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--target); padding: 0 0.5rem; border-radius: 0.625rem; list-style: none; cursor: pointer; color: var(--ink-2); font: 560 1rem/1 var(--f-ui); }
.mx-about-btn::-webkit-details-marker { display: none; }
.mx-about-btn:hover, .mx-about[open] > .mx-about-btn { color: var(--ink); }
.mx-pop { position: absolute; z-index: 50; top: 100%; left: 0; display: grid; gap: 0.625rem; margin: 0.25rem 0 0; padding: 1.125rem; border-radius: 1.5rem; background: var(--card-solid); box-shadow: var(--sh3), 0 0 0 1px var(--line);
  width: min(34rem, calc(100vw - 2rem)); font: 450 1rem/1.4 var(--f-ui); }
.mx-legend-n, .mx-foot-n { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.mx-about-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.375rem; border-top: 1px solid var(--line); }
.mx-about-nav { display: flex; gap: 0.5rem; }
.mx-about-nav a { display: inline-flex; align-items: center; min-height: var(--target); padding: 0 0.5rem; color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 0.1875rem; }
.mx-wx { display: flex; flex-direction: column; gap: 0.25rem; }
.mx-wx-n { color: var(--ink-2); font-size: 1rem; }
.mx-credit { margin: 0; padding: 0.25rem 1.375rem 0.5rem; text-align: center; font-size: 1rem; }
.mx-credit-a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 0.1875rem; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* the pick bar: the find (a nearby trip that beats or nearly matches the asked place), the focal point of the card */
.mx-find { position: relative; margin: 0 1.375rem 0.5rem; display: flex; align-items: center; gap: 1rem; padding: 0.625rem 0.75rem 0.625rem 0.625rem; border-radius: 1.375rem; background: var(--pick); color: var(--pick-on); text-decoration: none;
  box-shadow: var(--sh2); transition: transform var(--v2-quick) var(--v2-ease); width: calc(100% - 2.75rem); box-sizing: border-box; }
.mx-find:hover { color: var(--pick-on); }
.mx-find.is-empty { display: none; }
.mx[data-waiting="1"] .mx-find.is-empty, .mx-find.is-skel { display: flex; min-height: 4.25rem; background: var(--card-2); box-shadow: none; pointer-events: none; }
.mx[data-waiting="1"] .mx-find.is-empty > *, .mx-find.is-skel > * { visibility: hidden; }
.mx-pk-art { width: 4rem; height: 3rem; border-radius: 0.75rem; overflow: hidden; flex: none; }
.mx-pk-art .mx-thumb { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.mx-pk-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.mx-pk-h { font: var(--d-wt) 1.3125rem/1.15 var(--f-display); letter-spacing: var(--d-track); }
.mx-pk-s { color: color-mix(in srgb, var(--pick-on) 86%, transparent); font-size: 1rem; }
.mx-pk-badge { flex: none; background: var(--pick-cap); color: var(--pick-cap-i); font: 700 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; padding: 0.4375rem 0.625rem; border-radius: 62.4375rem; }
.mx-pk-p { font: 760 1.875rem/1 var(--f-ui); font-feature-settings: var(--num-feat); letter-spacing: -0.02em; }
.mx-pk-open { display: inline-flex; align-items: center; gap: 0.375rem; height: 2.5rem; padding: 0 0.875rem; border-radius: 62.4375rem; background: color-mix(in srgb, var(--pick-on) 14%, transparent); font-weight: 620; }

/* the grid */
.mx-cal { min-width: 0; }
.mx-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding: 0 1rem 0.875rem 0; }
.mx-lanes { width: 100%; min-width: max-content; }
.mx-head, .mx-lane { position: relative; display: grid; grid-template-columns: var(--lead) repeat(var(--n), minmax(var(--cw), 1fr)); }
.mx-head { z-index: 4; }
.mx-lane { padding-top: 0.75rem; }
.mx-lead { position: sticky; left: 0; z-index: 5; grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 0.75rem; padding: 0 0.625rem 0 1.375rem; background: var(--lead-bg); box-shadow: 0.625rem 0 0.875rem -0.75rem rgb(20 20 60 / .25); clip-path: inset(0 -1.5rem 0 0); }
.mx-head .mx-lead { align-items: end; padding-bottom: 0.5rem; flex-direction: column; align-items: flex-start; justify-content: end; gap: 0.25rem; }
.mx-ah { font: 650 max(var(--label-min), 0.8125rem)/1.2 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.mx-ah-n { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.25; }
.mx-ah-n:empty { display: none; }
.mx-thumb { width: 3rem; height: 3rem; border-radius: 1rem; overflow: hidden; flex: none; box-shadow: var(--sh1); }
.mx-nm { min-width: 0; display: grid; gap: 0.1875rem; }
.mx-l-n { display: block; font: var(--d-wt) 1.125rem/1.12 var(--f-display); letter-spacing: var(--d-track); }
.mx-l-best { display: block; color: var(--ink-2); font: 600 1rem/1.25 var(--f-ui); font-feature-settings: var(--num-feat); font-variant-numeric: tabular-nums; }
.mx-day { grid-row: 1; display: grid; justify-items: center; align-content: end; padding: 0.25rem 0.25rem 0.5rem; border-radius: 1rem 1rem 0 0; position: relative; }
.mx-dw { font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.mx-dn { font: var(--d-wt) 1.375rem/1.1 var(--f-display); letter-spacing: var(--d-track); }
.mx-mo { font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.mx-day.is-wkend { background: color-mix(in srgb, var(--card-2) 70%, transparent); }
.mx-day.is-ask .mx-dn::after { content: ""; display: block; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--food); margin: 0.125rem auto 0; }
.mx-day.is-skel { background: none; }
.mx-day.is-skel::after { content: ""; width: 1.5rem; height: 1.75rem; border-radius: 0.375rem; background: var(--card-2); }

/* a square: the whole trip for one place and one start day, its start day's sky above the total */
.mx-sq { position: relative; z-index: 1; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem; height: var(--ch); margin: 0 0.25rem; padding: 0.5625rem 0.25rem 0.3125rem; border-radius: 1.125rem; background: var(--cell);
  color: var(--ink); text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent; transition: background-color var(--v2-quick), box-shadow var(--v2-quick), transform var(--v2-quick) var(--v2-ease); }
.mx-sq:hover { background: var(--cell-hover); color: var(--ink); }
.mx-sqw { display: inline-flex; align-items: center; gap: 0.25rem; font: 560 1rem/1 var(--f-ui); font-feature-settings: var(--num-feat); color: var(--ink-2); }
.mx-sqw-i { width: 1.125rem; height: 1.125rem; flex: none; color: var(--sun-ink); }
.mx-sqw.is-wet .mx-sqw-i { color: var(--wx); }
.mx-sqw.is-typ .mx-sqw-t { text-decoration: underline dotted; text-underline-offset: 0.1875rem; }      /* dotted: typical weather, not a forecast (the head cell and the ⓘ say so) */
.mx-v { font: 720 1.25rem/1 var(--f-ui); font-feature-settings: var(--num-feat); font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.mx-w { font: 650 max(var(--label-min), 0.8125rem)/1.15 var(--f-ui); color: var(--ink-2); }
.mx-sq.is-low .mx-v { color: var(--see-i); }
.mx-sq.is-on { box-shadow: inset 0 0 0 0.15625rem color-mix(in srgb, var(--flight) 60%, transparent); }
.mx-sq.is-over { background: repeating-linear-gradient(135deg, transparent 0 0.4375rem, var(--hatch) 0.4375rem 0.875rem), color-mix(in srgb, var(--card-2) 60%, transparent); color: var(--ink-3); }
.mx-sq.is-over .mx-v { font-weight: 560; color: var(--ink-3); }
.mx-sq.is-over .mx-sqw { color: var(--ink-2); }
/* the lit square: the find, or the one opened; open another and the find steps back to a ringed tint, so only one square is lit */
.mx-sq:is(.is-find, .is-open) { background: var(--pick); color: var(--pick-on); box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--pick) 14%, transparent), var(--sh2); }
.mx-sq:is(.is-find, .is-open) :is(.mx-v, .mx-sqw) { color: var(--pick-on); }
.mx-sq:is(.is-find, .is-open) .mx-sqw-i { color: var(--wx-sun); }
.mx-sq.is-find::after, .mx-sq.is-find.is-low::after { content: "Our pick"; position: absolute; top: -0.75rem; left: 50%; translate: -50% 0; white-space: nowrap; padding: 0.3125rem 0.5625rem; border-radius: 62.4375rem; background: var(--pick-cap); color: var(--pick-cap-i);
  font: 700 max(var(--label-min), 0.75rem)/1 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; box-shadow: var(--sh1); z-index: 2; }
.mx-sq.is-find.is-low::after { content: "Pick · cheapest"; }
.mx:has(.mx-sq.is-open:not(.is-find)) .mx-sq.is-find:not(.is-open) { background: var(--flight-t); color: var(--flight-i); box-shadow: inset 0 0 0 0.125rem var(--flight); }
.mx:has(.mx-sq.is-open:not(.is-find)) .mx-sq.is-find:not(.is-open) :is(.mx-v, .mx-sqw) { color: var(--flight-i); }
.mx:has(.mx-sq.is-open:not(.is-find)) .mx-sq.is-find:not(.is-open)::after { display: none; }
.mx-sq.is-wait { background: var(--card-2); overflow: hidden; color: transparent; }
.mx.is-live .mx-sq.is-wait { pointer-events: none; }      /* with the script a waiting square is not a button; without it every square is a link to its own page */
.mx-sq.is-wait > * { visibility: hidden; }
.mx-sq.is-wait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--card-solid) 75%, transparent) 50%, transparent 80%); background-size: 220% 100%;
  animation: mx-shimmer var(--v2-shimmer) ease-in-out infinite; animation-delay: var(--sd, 0s); }
@keyframes mx-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.mx-lead .mx-thumb:empty { background: var(--card-2); box-shadow: none; }
.mx-lane:has(.is-wait) .mx-l-best { color: var(--ink-3); }
/* an estimate while the slider moves (F-237): "about" and a plainer number, never a mark; the answer settles over it */
.mx-est { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink-2); font-weight: 600; }
.mx-about-w { font: 650 max(var(--label-min), 0.8125rem)/1.1 var(--f-ui); }
.mx-sq.is-est .mx-est-n { font-size: 1rem; }

/* the nights: a ringed band across the lane's start days, labelled on its top edge (it moves to the square you tap) */
.mx-band { position: relative; z-index: 0; grid-row: 1; align-self: stretch; margin: -0.375rem 0; border-radius: 1.375rem; pointer-events: none; background: color-mix(in srgb, var(--pc, var(--stay)) 8%, transparent);
  box-shadow: inset 0 0 0 0.15625rem color-mix(in srgb, var(--pc, var(--stay)) 55%, transparent); }
.mx-band::after { content: attr(data-l); position: absolute; right: 0.5rem; top: -0.6875rem; padding: 0.3125rem 0.625rem; border-radius: 62.4375rem; background: var(--band-label); color: var(--pick-on); font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); white-space: nowrap; }
.mx-lane.is-lit .mx-band { background: color-mix(in srgb, var(--pick) 12%, transparent); box-shadow: inset 0 0 0 0.1875rem var(--pick); }
.mx-lane.is-lit .mx-band::after { background: var(--pick-cap); color: var(--pick-cap-i); top: auto; bottom: -0.6875rem; }      /* F-251: the find's lane wears "Our pick" on the square's top edge, so its band's label sits on the bottom edge: two labels never overlap */
.mx-lane.is-lit { padding-bottom: 0.75rem; }

/* the art: the place's own drawing (gitaway/placeart.py), or its plain tint */
.mx-arts { display: flex; overflow: hidden; background: var(--card-2); }
.mx-art-i { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.mx-art-i > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mx-art-i.is-plain { background: var(--wx-t); }
.mx-art-i.is-plain[data-kind="snow"], .mx-art-i.is-plain[data-kind="hike"] { background: var(--see-t); }
.mx-art-i.is-plain[data-kind="desert"] { background: var(--tix-t); }
.mx-arts.n2 .mx-art-i + .mx-art-i { box-shadow: -0.125rem 0 0 var(--card-solid); }

/* while the first squares load (F-230): a small floating island with a sourced fact about the place; it settles in on the spring (GA.motion) and leaves calmly once the first squares land */
.mx-isle { position: sticky; z-index: 40; bottom: calc(1rem + env(safe-area-inset-bottom)); justify-self: center; width: min(24rem, 100%); box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start;
  padding: 0.75rem 1rem; border-radius: 1.5rem; background: var(--card-solid); color: var(--ink); box-shadow: var(--sh3), 0 0 0 1px var(--line); transition: opacity var(--motion-dur) var(--motion-out), translate var(--motion-dur) var(--motion-out); }
.mx-isle.is-gone { display: none; }
.mx-isle.is-leaving { opacity: 0; translate: 0 0.5rem; pointer-events: none; }
.mx-isle-ic { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--card-2); color: var(--ink); }
.mx-isle-b { display: grid; gap: 0.125rem; min-width: 0; }
.mx-isle-b > p { margin: 0; }
.mx-fact-k { font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.mx-fact-t { margin: 0; font-size: 1rem; font-weight: 560; line-height: 1.35; text-wrap: pretty; }
.mx-fact-src { justify-self: start; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 719px) { .mx-isle { grid-template-columns: minmax(0, 1fr); padding: 0.625rem 0.875rem; } .v2:has(.v2-sections) .mx-isle { bottom: calc(4.75rem + env(safe-area-inset-bottom)); } .mx-isle-ic, .mx-isle-b > p:first-child { display: none; } .mx-fact-t { font-weight: 450; } }

/* the rows the booking sheet's pass uses, and the square's own page (the drawer itself is v2drawer.css) */
.mx-one { max-width: 64rem; margin: 0 auto; padding: 1rem; }
.mx-back { justify-self: start; min-height: var(--target); }
.mx-rows { display: grid; }
.mx-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; align-items: start; padding: 0.625rem 0; border-top: 1px solid var(--line); }
.mx-kt { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; color: var(--on); }
.mx-kt.k-flight { background: var(--k-flight); } .mx-kt.k-stay { background: var(--k-stay); } .mx-kt.k-car { background: var(--k-see); }
.mx-r-h { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.25; }
.mx-r-s { margin: 0.125rem 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.35; }
.mx-r-due { color: var(--tix-i); }
.mx-r-n { font: 650 1rem/1 var(--f-ui); font-feature-settings: var(--num-feat); }
.mx-save-f { margin: 0; }
.mx-saved { margin: 0; font-weight: 650; color: var(--see-i); font-size: 1rem; }

.mx-grab { width: 2.5rem; height: 0.3125rem; margin-left: calc(50% - 1.25rem); border-radius: 62.4375rem; background: var(--line-2); }
.mx-x { display: grid; place-items: center; width: var(--target); height: var(--target); border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink); cursor: pointer; }

/* the phone: a narrower place column and smaller squares (the grid is the same and scrolls sideways) */
@media (max-width: 719px) {
  .mx-results { padding: 0 0.75rem 7.5rem; }
  .mx-card { border-radius: 1.625rem; padding-top: 0.875rem; }
  .mx-top { padding: 0 0.875rem 0.625rem; }
  .mx-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -0.875rem; padding: 0 0.875rem; width: calc(100% + 1.75rem); order: 3; }
  .mx-legend::-webkit-scrollbar { display: none; }
  .lg { flex: none; font-size: 1rem; height: 1.875rem; }
  .mx-about { margin-left: auto; }
  .mx-pop { position: fixed; left: 0.75rem; right: 0.75rem; top: auto; bottom: 0.75rem; width: auto; }
  .mx-find { margin: 0 0.75rem 0.625rem; width: calc(100% - 1.5rem); gap: 0.75rem; flex-wrap: wrap; padding-top: 0.875rem; }
  .mx-pk-art { width: 3.25rem; height: 2.75rem; }
  .mx-pk-h { font-size: 1.125rem; }
  .mx-pk-s { font-size: 1rem; }
  .mx-pk-open { display: none; }
  .mx-pk-p { font-size: 1.625rem; }
  .mx-pk-badge { position: absolute; top: -0.625rem; left: 1rem; }
  .mx-lead { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.375rem; padding: 0 0.5rem 0 0.75rem; }
  .mx-thumb { width: 2.5rem; height: 2rem; border-radius: 0.625rem; }
  .mx-l-n { font-size: 1rem; }
  .mx-l-best { font-size: 1rem; }
  .mx-v { font-size: 1.125rem; }
  .mx-sqw { font-size: 1rem; }
}

@media (min-width: 1020px) and (pointer: coarse) { .mx-sq { min-height: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  .mx-sq.is-wait::after { animation: none; }
  .mx-isle { transition: opacity var(--motion-fade) linear; }
  .mx-isle.is-leaving { translate: none; }
}


/* ---------- F-275 (D-860..D-865): the matrix v3, docs/design/matrix-v3 ---------- */

/* the sentence on its own opaque card, its words buttons you can see, a hint and suggestions under it: people who book are not used to a sentence that is a form */
.v2.is-results .v2-hero { display: block; justify-items: stretch; padding: 0.875rem 0 1.5rem; }
/* F-279 (D-872): the sentence is a search, so it is a card of its own: a title with a search icon, a brand-tinted outline and a deeper shadow that set it apart from the results, the words in a
   field-like area, the Try chips in a footer band of the card. The card's padding is two variables so the band can run to its edges. */
.v2-qcard { --qx: 1.75rem; --qb: 1.375rem; width: 100%; box-sizing: border-box; --w-bg: color-mix(in srgb, var(--flight) 11%, var(--card-solid)); --w-line: color-mix(in srgb, var(--flight) 32%, var(--card-solid)); position: relative; padding: 1.375rem var(--qx) var(--qb); border-radius: var(--r-xl); background: var(--card-solid);
  box-shadow: var(--sh3), 0 0 0 1px var(--line); text-align: left; }
.v2-qhead { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-bottom: 0.875rem; }
.v2-qic { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.75rem; background: var(--ink); color: var(--on-ink); }
.v2-qic svg { width: 1.25rem; height: 1.25rem; }
.v2-qtitle { margin: 0; color: var(--ink); font: 700 1.25rem/1.2 var(--f-ui); letter-spacing: -0.01em; }
.v2-ql { font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.v2-hint { display: inline-flex; align-items: center; gap: 0.375rem; margin-left: auto; color: var(--word); font: 620 1rem/1.2 var(--f-ui); }
.v2-hint svg { width: 1rem; height: 1rem; }
.v2-qfield { padding: 0.5rem 1rem; border-radius: 1.25rem; background: color-mix(in srgb, var(--flight) 5%, var(--card-2)); box-shadow: inset 0 0 0 0.09375rem var(--line-2), inset 0 0.125rem 0.375rem -0.125rem rgb(var(--shadow-c) / .14); }
.v2.is-results .v2-qcard .v2-sent { max-width: none; font-size: clamp(1.4rem, 2vw, 2.0625rem); line-height: 1.7; text-wrap: pretty; letter-spacing: -0.012em; color: var(--ink-2); }
.v2-qcard .v2-w { padding: 0.02em 0.3em 0.02em 0.42em; margin: 0 0.04em; border-radius: 0.5em; text-decoration: none; background: var(--w-bg); box-shadow: inset 0 -0.125rem 0 var(--w-line); color: var(--word); }
.v2-qcard .v2-w::after { content: ""; display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.3em; border-right: 0.09em solid currentColor; border-bottom: 0.09em solid currentColor; rotate: 45deg; translate: 0 -0.14em; opacity: .75;
  transition: rotate var(--v2-pop) var(--spring); }
.v2-qcard .v2-w:hover { background: color-mix(in srgb, var(--flight) 20%, var(--card-solid)); box-shadow: inset 0 -0.125rem 0 var(--word); }
.v2-qcard .v2-w[aria-expanded="true"] { background: var(--word); color: var(--card-solid); box-shadow: none; }
.v2-qcard .v2-w[aria-expanded="true"]::after { rotate: 225deg; translate: 0 0.1em; }
.v2-sugs { display: flex; align-items: center; gap: 0.5rem; margin: 1rem calc(var(--qx) * -1) calc(var(--qb) * -1); padding: 0.75rem var(--qx); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); background: color-mix(in srgb, var(--flight) 7%, var(--card-2)); overflow-x: auto; scrollbar-width: none; }
.v2-sugs::-webkit-scrollbar { display: none; }
.v2-sugs > * { flex: none; }
.v2-sug { display: inline-flex; align-items: center; gap: 0.375rem; min-height: var(--target); padding: 0 0.875rem 0 0.75rem; border: 1px dashed var(--line-2); border-radius: 62.4375rem; color: var(--ink); text-decoration: none; font: 580 1rem/1 var(--f-ui); }
.v2-sug svg { width: 1rem; height: 1rem; color: var(--word); }
.v2-sug:hover { background: var(--card-2); border-style: solid; color: var(--ink); }
/* F-280 (D-880): changes wait for Update. A changed word is marked (a filled underline and a dot), the bar below the sentence says nothing is searched yet and holds Update and Reset, and the results stay, dimmed. */
.v2-upd { display: none; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.5rem; padding-top: 0.625rem; border-top: 1px solid var(--line); }
[data-staged="1"] .v2-upd { display: flex; }
.v2-staged-note { margin: 0 auto 0 0; color: var(--ink-2); font: 560 1rem/1.3 var(--f-ui); }
.v2-update, .v2-reset { min-height: var(--target); padding: 0 1.125rem; border-radius: 62.4375rem; font: 650 1rem/1 var(--f-ui); cursor: pointer; }
.v2-update { border: 0; background: var(--word); color: var(--card-solid); box-shadow: var(--sh2); }
.v2-reset { border: 0.09375rem solid var(--line-2); background: transparent; color: var(--ink); }
.v2-qcard .v2-w.is-staged { box-shadow: inset 0 0 0 0.125rem var(--word); }
.v2-qcard .v2-w.is-staged::before { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-right: 0.3em; border-radius: 50%; background: currentColor; translate: 0 -0.08em; }
.v2-qcard .v2-w[aria-expanded="true"].is-staged { box-shadow: none; }
.v2-sug[aria-pressed="true"] { border-style: solid; border-color: var(--word); background: var(--w-bg); }
[data-staged="1"] .mx-results { opacity: .9; filter: saturate(.55); transition: opacity var(--v2-pop) var(--v2-ease), filter var(--v2-pop) var(--v2-ease); }
@media (max-width: 719px) {
  .v2-staged-note { flex-basis: 100%; }
  .v2-update { flex: 1; }
  .v2-qcard { --qx: 1rem; --qb: 0.75rem; padding: 1.125rem var(--qx) var(--qb); border-radius: 1.625rem; }
  .v2-qfield { padding: 0.375rem 0.625rem; border-radius: 1rem; }
  .v2-hint { margin-left: 0; flex-basis: 100%; }
  .v2.is-results .v2-qcard .v2-sent { font-size: 1.3rem; line-height: 1.55; }
  .v2-qcard .v2-w { display: inline-block; box-sizing: border-box; min-height: var(--target); margin-block: 0.1rem; padding-block: 0.6rem 0.4rem; line-height: 1.2; max-width: 100%; }
}

/* go wide on a laptop (founder: use the full screen): the stage, the top bar and the grid take up to 1680px; the columns share what is there */
.v2.is-results :is(.v2-stage, .v2-top) { max-width: 105rem; }
.mx-results { max-width: none; }
.mx { --ch: 5.25rem; }

/* the nights: a tint behind the lane's squares and nothing written on it, so no label ever floats across the row above or below (the status and the lane's own lead say the nights) */
.mx-band::after { content: none; }
.mx-lane.is-lit .mx-band::after { content: none; }
.mx-lane.is-lit { padding-bottom: 0; }

/* the square's mark sits inside it (a caption under the total), never over a neighbour: "Our pick" and "Cheapest" */
.mx-sq.is-find::after, .mx-sq.is-find.is-low::after { position: static; translate: none; margin-top: -0.0625rem; padding: 0.1875rem 0.5rem; box-shadow: none; }
.mx-sq.is-low:not(.is-find)::after { content: "Cheapest"; color: var(--see-i); font: 700 max(var(--label-min), 0.75rem)/1 var(--f-ui); letter-spacing: .05em; text-transform: uppercase; }
.mx-sq.is-wait::after { content: ""; }

.mx-about .mx-pop { left: auto; right: 0; }      /* the About button is at the card's right end now that the card is wide */
@media (max-width: 719px) { .mx-about .mx-pop { left: 0.75rem; right: 0.75rem; } }

/* captions on every square state read 4.5:1 (live check: "Cheapest" was blue on the blue of the opened square) */
.mx-sq.is-open.is-low:not(.is-find)::after { color: var(--pick-on); }
