/* GitAway design language v2, the shared pieces (F-250, D-610; tokens in v2-tokens.css; reference docs/design/booking-v2/index.html, Newsreader with Inter).
   The sky behind everything, the top bar, the sentence whose every word opens a picker (a popover on a laptop, a bottom sheet on a phone), and the pickers' parts.
   A page opts in with one class, `v2`, on its wrapper (layout.page(v2=True)). Frosted glass (backdrop-filter) is for widgets over the sky only; a card holding
   text you read is near-opaque, so every word stays 4.5:1 in light and dark (tests_browser/test_v2_contrast.py measures the real pixels). Motion: only the --v2-* tokens. */
.v2 { position: relative; color: var(--ink); font: 450 1.0625rem/1.5 var(--f-ui); font-optical-sizing: auto; background: transparent; -webkit-font-smoothing: antialiased; overflow-x: clip; }
@media (max-width: 719px) { .v2 { font-size: 1rem; } }
.v2 :is(h1, h2, h3, h4) { font-family: var(--f-display); text-wrap: balance; }
.v2 :where(button) { font: inherit; color: inherit; }
html body .ga-page.v2 { background: transparent; }
html:has(.v2) { background: var(--stage); }
html:has(.v2) body { background: transparent; }
.v2 .num { font-family: var(--f-ui); font-feature-settings: var(--num-feat); font-variant-numeric: tabular-nums; }
.v2 :focus-visible { outline: 0.1875rem solid var(--ink); outline-offset: 0.1875rem; border-radius: 0.625rem; }
.v2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- the stage behind everything (F-296, D-956) ----------
   A flat #F5F5F7 (light) or #000 (dark #161618): the Harbour ground, its sun and moon, ridges, shore and moods are retired. The ground carries nothing, so any colour placed on it is saturated and striking.
   --ground-ink is the words that sit straight on it. */
.v2-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--stage); }
html:has(.v2-bg) { background: var(--stage); }

/* ---------- top bar ---------- */
.v2-top { position: relative; z-index: 20; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 0.75rem; max-width: 90rem; margin: 0 auto; padding: 1.125rem 1.75rem 0; }
.v2-brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--ink); font: 560 1.5625rem/1 var(--f-display); letter-spacing: -0.03em; }
.v2-brand:hover { color: var(--ink); }
.v2-brand { min-height: 3rem; flex: none; }
.v2-top .sp { flex: 1; }
.v2-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.4375rem 0.75rem; border-radius: 62.4375rem; background: var(--ride-t); color: var(--ride-i); font: 650 max(var(--label-min), 0.8125rem)/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.v2-round { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--card-solid); box-shadow: var(--sh1); cursor: pointer; color: var(--ink); text-decoration: none; font: 650 1rem/1 var(--f-ui); transition: transform var(--v2-quick) var(--v2-ease); }
.v2-round:hover { color: var(--ink); }
.v2-round svg { width: 1.25rem; height: 1.25rem; }
.v2-round .ga-mode-sun, .v2-round[aria-pressed="true"] .ga-mode-moon { display: none; }
.v2-round[aria-pressed="true"] .ga-mode-sun { display: inline-flex; }
.v2-round > span { display: inline-flex; }
.v2-signin { display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.125rem; border-radius: 62.4375rem; background: var(--card-solid); box-shadow: var(--sh1); color: var(--ink); font: 620 1rem/1 var(--f-ui); text-decoration: none; }
.v2-signin:hover { color: var(--ink); }
@media (max-width: 719px) { .v2-top { padding: 0.75rem 1rem 0; gap: 0.25rem 0.5rem; flex-wrap: wrap; } .v2-top .ga-preview { order: 5; flex: 1 0 100%; } .v2-top .v2-pill { display: none; } .v2-round { width: 3rem; height: 3rem; } .v2-signin { height: 3rem; } .v2-brand { font-size: 1.375rem; } }
/* the sections pill (F-255, D-650): Plan, Book, Family (or a visitor's Community trips and For creators) in a frosted pill over the sky, the current one filled indigo; on a phone it floats at the bottom */
.v2-sections { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: 62.4375rem; }
.v2-sections a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.125rem; border-radius: 62.4375rem; color: var(--ink); text-decoration: none; font: 620 1rem/1 var(--f-ui); white-space: nowrap; transition: background var(--v2-quick) var(--v2-ease), color var(--v2-quick) var(--v2-ease); }
.v2-sections a:hover { background: var(--cell-hover); color: var(--ink); }
.v2-sections a[aria-current="page"], .v2-sections a[aria-current="page"]:hover { background: var(--pick); color: var(--pick-on); }
/* the account: the avatar opens a small frosted menu that grows out of it (a calm fade on a laptop, assets/js/v2top.js) */
.v2-account { position: relative; flex: none; }
.v2-account .v2-round { position: relative; }
.v2-dot { position: absolute; top: 0.125rem; right: 0.125rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--food); box-shadow: 0 0 0 0.125rem var(--card-solid); }
.v2-menu.v2-glass { position: absolute; z-index: 30; top: calc(100% + 0.5rem); right: 0; min-width: 14rem; padding: 0.375rem; display: flex; flex-direction: column; background: var(--card-t); }
.v2-menu[hidden] { display: none; }
.v2-menu a, .v2-menu button { display: flex; align-items: center; width: 100%; min-height: 3rem; padding: 0 0.875rem; border: 0; border-radius: 1.125rem; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font: 560 1rem/1 var(--f-ui); cursor: pointer; box-sizing: border-box; }
.v2-menu a:hover, .v2-menu button:hover, .v2-menu a:focus-visible, .v2-menu button:focus-visible { background: var(--cell-hover); color: var(--ink); outline-offset: -0.1875rem; }
.v2-menu form { margin: 0.25rem 0 0; padding-top: 0.25rem; border-top: 1px solid var(--line); }
/* the More button (F-293, D-946): one small pill for what a screen's secondary actions are; its menu is the account menu's, with an icon in front of each row */
.v2-more-btn { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1rem 0 0.875rem; border: 0; border-radius: 62.4375rem; background: var(--card-solid); box-shadow: var(--sh1); color: var(--ink); font: 620 1rem/1 var(--f-ui); cursor: pointer; }
.v2-more-btn:hover { box-shadow: var(--sh2); }
.v2-more-btn.is-round { justify-content: center; width: 3rem; padding: 0; }
.v2-more-btn + .v2-menu.v2-glass { background: var(--card-solid); }      /* it hangs over the page's own content: opaque, not frosted */
.v2-more-btn svg { width: 1.25rem; height: 1.25rem; }
.v2-more-btn .v2-dot { top: 0.25rem; right: 0.25rem; }
.v2-menu :is(a, button) { gap: 0.75rem; }
.v2-menu :is(a, button) svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--ink-2); }
.v2-menu .sh-open { min-height: 3rem; padding: 0 0.875rem; justify-content: flex-start; background: transparent; box-shadow: none; color: var(--ink); font: 560 1rem/1 var(--f-ui); }
@media (max-width: 719px) {
  .v2-sections { position: fixed; z-index: 40; left: 50%; translate: -50% 0; bottom: max(0.75rem, env(safe-area-inset-bottom)); max-width: calc(100vw - 1.5rem); }
  .v2-sections.v2-glass { background: var(--card-t); }      /* floating over the page's own content: near-opaque, as a card holding text is */
  .v2-sections a { min-height: 3rem; padding: 0 1.25rem; }
  .v2:has(.v2-sections) { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .v2-menu { min-width: min(16rem, calc(100vw - 2rem)); }
}

/* ---------- the sentence: every part a word you tap ---------- */
.v2-sent { margin: 0; max-width: 70rem; font-family: var(--f-display); font-weight: 600; letter-spacing: var(--d-track); line-height: 1.16; font-size: clamp(2.1rem, 4.3vw, 4.1rem); text-wrap: balance; color: var(--ink); transform-origin: 0 0; view-transition-name: v2-sent; }
.v2-sent .fill { color: var(--ink-2); }
.v2-w { display: inline; padding: 0 .06em; margin: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; color: var(--word);
  text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .14em; text-decoration-color: color-mix(in srgb, var(--word) 30%, transparent);
  border-radius: .18em; transition: background-color var(--v2-quick), text-decoration-color var(--v2-quick); -webkit-tap-highlight-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (min-width: 720px) { .v2-w { white-space: nowrap; } }
.v2-w:hover, .v2-w[aria-expanded="true"] { text-decoration-color: var(--word); background: color-mix(in srgb, var(--flight) 9%, transparent); }
.v2-w:active { background: color-mix(in srgb, var(--flight) 16%, transparent); }
.v2-w.flash { animation: v2-flash var(--v2-flash) var(--v2-ease); }
@keyframes v2-flash { 0% { background: color-mix(in srgb, var(--ride) 70%, transparent); } 100% { background: transparent; } }
.v2-go { display: inline-flex; align-items: center; gap: 0.75rem; height: 4rem; padding: 0 1.875rem 0 2.125rem; border: 0; border-radius: 62.4375rem; cursor: pointer; background: var(--pill-on); color: var(--pill-fg);
  font: 650 1.25rem/1 var(--f-ui); box-shadow: var(--sh2); transition: transform var(--v2-quick) var(--v2-ease), box-shadow var(--v2-quick); }
.v2-go:hover { transform: translateY(-1px); box-shadow: var(--sh3); color: var(--pill-fg); }
.v2-go svg { width: 1.375rem; height: 1.375rem; }
@media (max-width: 719px) { .v2-w { display: inline-block; padding-block: 1rem; margin-block: -1rem; min-width: 3rem; text-align: center; white-space: normal; }      /* a 3rem target that keeps the line's rhythm */
  .v2-sent { font-size: 2rem; line-height: 1.2; } .v2-go { width: 100%; justify-content: center; } }

/* ---------- the stage: the sentence centred on the landing, glided to the top on the results ---------- */
.v2-stage { position: relative; max-width: 90rem; margin: 0 auto; padding: 0 1.75rem; }
.v2-form { display: contents; }
.v2-hero { min-height: calc(100svh - 5rem); display: grid; align-content: center; justify-items: center; text-align: center; gap: 2.125rem; padding: 0 0 22vh; }
.v2.is-results .v2-hero { min-height: 0; padding: 0.875rem 0 1.125rem; justify-items: start; text-align: left; gap: 0; align-content: start; }
.v2.is-results .v2-sent { font-size: clamp(1.35rem, 1.9vw, 1.85rem); max-width: 73.75rem; line-height: 1.28; text-wrap: pretty; }
.v2-import { display: inline-flex; align-items: center; min-height: var(--target); color: var(--ink-2); font: 620 1rem/1 var(--f-ui); text-decoration: underline; text-underline-offset: 0.25rem; }
.v2-import:hover { color: var(--ink); }
.v2-error { margin: 0; max-width: 34rem; padding: 0.75rem 1.125rem; border-radius: 1.125rem; background: var(--food-t); color: var(--food-i); font: 620 1rem/1.4 var(--f-ui); }
.v2-error[hidden] { display: none; }
@media (max-width: 719px) { .v2-stage { padding: 0 1rem; } .v2-hero { gap: 1.625rem; padding-bottom: 26vh; } .v2.is-results .v2-sent { font-size: 1.22rem; line-height: 1.38; } }

/* ---------- pickers: a popover under its word on a laptop, a sheet from the bottom on a phone ---------- */
.v2-pop { position: fixed; z-index: 60; width: var(--v2-sheet-w); max-height: calc(100svh - 1.5rem); overflow-y: auto; padding: 1.25rem; border-radius: 1.5rem; background: var(--card-solid); color: var(--ink); box-shadow: var(--sh3), 0 0 0 1px var(--line);
  text-align: left; font: 450 1.0625rem/1.4 var(--f-ui); letter-spacing: 0; overscroll-behavior: contain; }
.v2-pop[hidden] { display: none; }
.v2-pop h4 { margin: 0 0 0.25rem; font: 650 1rem/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.v2-pop .big { font: var(--d-wt) 2.125rem/1.1 var(--f-display); letter-spacing: var(--d-track); margin: 0.375rem 0 0.875rem; }
.v2-pop .row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0; }
.v2-pop .row + .row { border-top: 1px solid var(--line); }
.v2-pop .row b { font-weight: 620; }
.v2-pop .row small { display: block; color: var(--ink-3); font-size: 1rem; }
.v2-pop .note { margin: 0.875rem 0 0; color: var(--ink-2); font-size: 1rem; }
.v2-step { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border-radius: 62.4375rem; background: var(--card-2); }
.v2-step button { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--card-solid); box-shadow: var(--sh1); cursor: pointer; font-size: 1.375rem; line-height: 1; display: grid; place-items: center; }
.v2-step button:disabled { opacity: .4; cursor: default; }
.v2-step output { min-width: 2rem; text-align: center; font: 700 1.25rem/1 var(--f-ui); font-feature-settings: var(--num-feat); }
.v2-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v2-chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 62.4375rem; border: 0; cursor: pointer; background: var(--card-2); color: var(--ink); font: 560 1rem/1 var(--f-ui); box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--v2-quick), color var(--v2-quick), transform var(--v2-quick); }
.v2-chip[aria-pressed="true"] { background: var(--pill-on); color: var(--pill-fg); box-shadow: none; }
.v2-chip svg { width: 1rem; height: 1rem; }
.v2-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.v2-cal-h .big { margin: 0.375rem 0 0.625rem; }
.v2-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; text-align: center; }
.v2-cal span { font: 600 max(var(--label-min), 0.8125rem)/2 var(--f-ui); color: var(--ink-3); letter-spacing: .05em; }
.v2-cal button { aspect-ratio: 1; border: 0; border-radius: 0.75rem; background: var(--card-2); cursor: pointer; font: 600 1rem/1 var(--f-ui); font-feature-settings: var(--num-feat); }
.v2-cal button:disabled { background: none; color: var(--ink-3); opacity: .5; cursor: default; }
.v2-cal button[aria-pressed="true"] { background: var(--cta-bg); color: var(--cta-fg); }
.v2-cal button.wk:not([aria-pressed="true"]):not(:disabled) { background: color-mix(in srgb, var(--flight-t) 70%, var(--card-2)); }
.v2-range { width: 100%; margin: 0.5rem 0 0.25rem; accent-color: var(--flight); height: 2.25rem; }
.v2-ticks { display: flex; justify-content: space-between; color: var(--ink-3); font: 500 1rem/1 var(--f-ui); font-feature-settings: var(--num-feat); }
.v2-switch { position: relative; width: 3.25rem; height: 2rem; border-radius: 62.4375rem; border: 0; background: var(--line-2); cursor: pointer; transition: background-color var(--v2-quick); flex: none; }
.v2-switch::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.625rem; height: 1.625rem; border-radius: 62.4375rem; background: var(--on); box-shadow: var(--sh1); transition: left var(--v2-pop) var(--spring), width var(--v2-quick); }
.v2-switch:active::after { width: 2rem; }
.v2-switch[aria-checked="true"] { background: var(--see); }
.v2-switch[aria-checked="true"]::after { left: 1.4375rem; }
.v2-switch[aria-checked="true"]:active::after { left: 1.0625rem; }
.v2-done { margin-top: 1rem; width: 100%; height: 3.125rem; border: 0; border-radius: 62.4375rem; background: var(--pill-on); color: var(--pill-fg); font: 650 1.0625rem/1 var(--f-ui); cursor: pointer; }
.v2-scrim { position: fixed; inset: 0; z-index: 55; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--v2-pop); }
.v2-scrim.on { opacity: 1; pointer-events: auto; }
@media (min-width: 720px) { .v2-scrim.on { background: transparent; pointer-events: none; } }      /* a laptop: a tap elsewhere is caught by the script, so another word opens at once */
@media (pointer: coarse) { .v2-range { height: 3rem; } }
@media (max-width: 719px) { .v2-pop.as-sheet { left: 0.5rem !important; right: 0.5rem; top: auto !important; bottom: 0.5rem; width: auto; border-radius: 1.75rem; padding: 1.375rem; } }

/* ---------- a spinner, and the quiet pieces both pages use ---------- */
.v2-spin { width: 1.125rem; height: 1.125rem; border-radius: 50%; border: 0.15625rem solid color-mix(in srgb, var(--flight) 22%, transparent); border-top-color: var(--flight); animation: v2-spin var(--v2-spin-t) linear infinite; flex: none; }
@keyframes v2-spin { to { rotate: 360deg; } }

/* the sentence glides: a cross-document view transition when the browser has them (the old and the new sentence are one named element) */
::view-transition-group(v2-sent) { animation-duration: var(--v2-glide); animation-timing-function: var(--spring-soft); }
::view-transition-old(v2-sent), ::view-transition-new(v2-sent) { height: 100%; width: 100%; object-fit: contain; object-position: 0 0; }

/* ---------- press feedback (F-258): every button and tappable card on a v2 page goes in and springs back, as omxqua does ----------
   One rule set. The individual `scale` property, so it never fights a transform (a hover's lift, a drawer's grow); in at --v2-press, out on the v2 spring. A page pressing by its own transform would press twice, so none does.
   The transition list carries what the elements' own rules animate (colour, shadow, lift, the Book button's width), since this rule is the one that sets `transition` for them. */
.v2 :is(button, [role="button"], [role="radio"], [role="tab"], summary, a.mx-sq, .mx-find, .v2-signin, .v2-sections a, .v2-menu a, .v2-top a, .v2-import, .mx-pk-open, a.btn) {
  transition: scale var(--v2-release) var(--spring), transform var(--v2-quick) var(--v2-ease), background-color var(--v2-quick), color var(--v2-quick), box-shadow var(--v2-quick), text-decoration-color var(--v2-quick), min-width var(--v2-pick) var(--spring-soft), width var(--v2-pick); }
.v2 :is(button, [role="button"], [role="radio"], [role="tab"], summary, a.mx-sq, .mx-find, .v2-signin, .v2-sections a, .v2-menu a, .v2-top a, .v2-import, .mx-pk-open, a.btn):active:not(:disabled, [aria-disabled="true"]) {
  scale: var(--v2-press-scale); transition: scale var(--v2-press) var(--v2-ease); }
@media (min-width: 720px) { .v2-w { display: inline-block; } }      /* a transform-able box: `scale` does not apply to an inline one (the sentence does not wrap on a laptop) */

@media (prefers-reduced-motion: reduce) {
  .v2 *:active { scale: none !important; }
  .v2 *, .v2 *::before, .v2 *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(v2-sent) { animation: none; }
}

/* frosted glass: the one place it is allowed (D-610), a widget over the sky; tests/test_direction_a.py holds this to .v2-glass */
.v2-glass { background: var(--glass); -webkit-backdrop-filter: blur(1.375rem) saturate(170%); backdrop-filter: blur(1.375rem) saturate(170%); border-radius: 1.625rem;
  box-shadow: inset 0 0 0 1px var(--glass-line), var(--glass-sh); }
