/* (FINAL-FIX2 perf) 3 selector lists in this file whose last compound was a bare :is(...) are written out one selector per alternative, so Blink buckets each by its own class / id / tag instead of testing every element on every style recalc. Each alternative is padded with :not(#zz-) / :not(.zz-) / :not(zz-) so its specificity is what the :is() gave (the most specific alternative); one that cannot be padded down is a class / type more specific only where no rule anywhere could tell the difference (checked against every stylesheet and the DOM), otherwise it stays in a :is() with a never-matching alternative of the full specificity. Same elements, same cascade. */
/* The opening journey (31 October 2026, A11 L1; js/ux/journey.js, js/ux/weather.js). Loaded last of the stylesheets.
   One material (the main base's Liquid Glass tokens: --lg-*), one motion system (Mirai Calm: --mc-*: critically damped, no overshoot), the type scale and radii of the
   Apple pass (css/tokens.css "A11"), 44px targets, sentence case. The legacy story is a photograph under a gradient (no blur); the welcome sheet is the only live
   backdrop-filter while it is open (its scrim carries none). Everything has a reduced-motion, reduced-transparency and high-contrast version at the end. */

/* ---------- the real form behind the sheet: still in the DOM and the engine (js/app.js), never seen or touched ---------- */
html body #drawer.jr-on.on[aria-hidden="false"] .dr-panel,
html body #drawer.jr-on.on[aria-hidden="false"] .dr-panel * { visibility: hidden !important; pointer-events: none !important; }
html body #drawer.jr-on .dr-scrim { background: rgba(8, 6, 16, .52); -webkit-backdrop-filter: none; backdrop-filter: none; }
body:has(> #drawer.jr-on.jr-fly) .jr-sheet { pointer-events: none; }

/* =====================================================================================================================================================
   1 · The legacy story
   ===================================================================================================================================================== */
.jr-legacy { position: fixed; inset: 0; z-index: 90; overflow: hidden; color: #f5f5f7; background: #14111a; font-family: var(--sans); -webkit-tap-highlight-color: transparent; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.jr-bgs, .jr-bgs .jr-bg, .jr-shade { position: absolute; inset: 0; }
.jr-bgs .jr-bg { background: #1d1a26 center / cover no-repeat; opacity: 0; transition: opacity var(--mc-s3-t) var(--mc-ease-fade); }
.jr-bgs .jr-bg.on { opacity: 1; }
.jr-shade { background: linear-gradient(180deg, rgba(10, 8, 20, .62) 0%, rgba(10, 8, 20, .42) 36%, rgba(10, 8, 20, .58) 66%, rgba(10, 8, 20, .84) 100%); }
.jr-lhead { position: absolute; z-index: 2; left: calc(var(--pad, 24px) + var(--safe-l, 0px) + .4rem); right: calc(var(--pad, 24px) + var(--safe-r, 0px) + .4rem); top: calc(var(--pad, 24px) + var(--safe-t, 0px) + .2rem); display: flex; align-items: center; justify-content: space-between; }
.jr-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.jr-skip { min-height: 44px; min-width: 44px; padding: 0 22px; border: 0; border-radius: var(--rad-pill, 999px); font: var(--ty-callout, 500 16px/1.2 var(--sans)); font-weight: 500; color: #f5f5f7; cursor: pointer;
  background-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.jr-beats { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: calc(var(--pad, 24px) + 72px) 6vw calc(var(--pad, 24px) + 120px); }
.jr-beat { grid-area: 1 / 1; visibility: hidden; opacity: 0; text-align: center; width: 100%; }
.jr-beat.on { visibility: visible; opacity: 1; }
.jr-legacy .jr-k { margin: 0 0 16px; font: 500 clamp(18px, 1.6vw, 24px)/1.3 var(--sans); letter-spacing: .01em; text-transform: none; color: rgba(255, 255, 255, .94); text-shadow: 0 0 2px rgba(0, 0, 0, .6), 0 1px 3px rgba(0, 0, 0, .65), 0 0 9px rgba(0, 0, 0, .75), 0 0 20px rgba(0, 0, 0, .65), 0 0 36px rgba(0, 0, 0, .45); }
.jr-t { margin: 0 auto; padding: 0 4vw; max-width: 15em; font: 300 clamp(40px, 5.4vw, 72px)/1.08 var(--sans); letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 30px rgba(8, 6, 20, .55); }
.jr-t-s { font-size: clamp(30px, 3.6vw, 48px); max-width: 18em; }
.jr-nums, .jr-awards { list-style: none; margin: clamp(28px, 5vh, 56px) auto 0; padding: 0; box-sizing: border-box; width: min(1280px, 100%); display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px); }
.jr-num { flex: 1 1 0; min-width: 0; display: grid; gap: 8px; justify-items: center; }
.jr-n { display: inline-flex; align-items: baseline; font: 300 clamp(52px, 7.4vw, 104px)/1 var(--num, var(--sans)); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 2px 28px rgba(8, 6, 20, .55); }
.jr-ns { font-size: .55em; margin-left: .04em; }
.jr-nu { font: 400 clamp(15px, 1.4vw, 19px)/1.3 var(--sans); color: rgba(245, 245, 247, .86); max-width: 12em; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.jr-aw { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--rad-l, 28px); text-align: left; background: rgba(14, 12, 26, .58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.jr-aw b { font: 600 17px/1.3 var(--sans); }
.jr-aw span { font: 400 15px/1.3 var(--sans); color: rgba(245, 245, 247, .78); }
.jr-foot-n { margin: 22px 0 0; font: 400 16px/1.3 var(--sans); color: rgba(245, 245, 247, .92); text-shadow: 0 0 2px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .55); }
.jr-lfoot { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--pad, 24px) + var(--safe-b, 0px) + .4rem); display: grid; justify-items: center; gap: 20px; }
.jr-dots { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.jr-dots li { width: 7px; height: 7px; border-radius: 99px; background: rgba(245, 245, 247, .38); transition: width var(--mc-s1-t) var(--mc-spring), background-color var(--mc-t-fade) var(--mc-ease-fade); }
.jr-dots li.on { width: 22px; background: #f5f5f7; }
.jr-pill { min-height: 50px; min-width: 132px; padding: 0 30px; border: 0; border-radius: var(--rad-pill, 999px); font: var(--ty-headline, 600 17px/1.2 var(--sans)); font-weight: 600; letter-spacing: -.005em; cursor: pointer;
  background: var(--lg-prom, linear-gradient(180deg, #fff, #f0f0f4)); color: var(--lg-prom-fg, #101014); box-shadow: var(--lg-prom-sh, 0 8px 24px -10px rgba(0, 0, 0, .55)); transition: opacity var(--mc-t-fade) var(--mc-ease-fade); }
.jr-pill:disabled { opacity: .38; cursor: default; box-shadow: none; }
.jr-ghost { min-height: 44px; min-width: 44px; padding: 0 20px; border: 0; border-radius: var(--rad-pill, 999px); background: transparent; color: var(--lg-fg2, rgba(245, 245, 247, .76)); font: 500 17px/1.2 var(--sans); cursor: pointer; }
:is(.jr-legacy, .jr-sheet) .jr-terms:focus-visible, :is(.jr-legacy, .jr-sheet) :is(button, input, .zz-):focus-visible { outline: 2px solid var(--mf-focus-d, rgba(255, 255, 255, .85)); outline-offset: 3px; }

/* =====================================================================================================================================================
   2 · The welcome sheet
   ===================================================================================================================================================== */
.jr-sheet { position: absolute; z-index: 2; left: 50%; top: calc(var(--jr-vh, 100dvh) / 2); translate: -50% -50%; box-sizing: border-box; width: min(620px, calc(100vw - 48px)); max-height: calc(var(--jr-vh, 100dvh) - 32px);
  display: flex; flex-direction: column; padding: 18px 32px 28px; border-radius: var(--rad-xl, 34px); color: var(--lg-fg); font-family: var(--sans);
  background-color: var(--lg-tint-thick); background-image: var(--lg-sheen);
  -webkit-backdrop-filter: blur(var(--lg-blur-card)) saturate(var(--lg-sat)); backdrop-filter: blur(var(--lg-blur-card)) saturate(var(--lg-sat));
  box-shadow: var(--lg-hi), var(--lg-shade), var(--lg-shadow); overflow: hidden; }
.jr-sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg, rgba(255, 255, 255, var(--lg-e0)) 0%, rgba(255, 255, 255, calc(var(--lg-e0) * .24)) 30%, rgba(255, 255, 255, calc(var(--lg-e1) * 1.5)) 62%, rgba(255, 255, 255, var(--lg-e1)) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.jr-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; flex: none; }
.jr-top .jr-dots li { background: var(--lg-line, rgba(255, 255, 255, .15)); background: rgba(245, 245, 247, .28); }
.jr-top .jr-dots li.done { background: rgba(245, 245, 247, .62); }
.jr-top .jr-dots li.on { background: var(--lg-fg, #f5f5f7); }
.jr-x { position: absolute; z-index: 4; right: 20px; top: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; padding: 0; cursor: pointer; color: var(--lg-fg); background: var(--lg-field-hi); }
.jr-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: var(--mf-ico-stroke-x, 1.75); stroke-linecap: round; }
.jr-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 6px 2px 4px; }
.jr-body::-webkit-scrollbar { display: none; }
.jr-sheet .jr-k { margin: 10px 0 6px; font: var(--ty-subhead, 500 15px/1.3 var(--sans)); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--lg-fg3); }
.jr-sheet .jr-k { text-shadow: none; }
.jr-h:focus, .jr-h:focus-visible { outline: none; }
.jr-h { margin: 0 0 18px; font: 300 clamp(30px, 3.3vw, 40px)/1.12 var(--sans); letter-spacing: -.022em; color: var(--lg-fg); outline: none; text-wrap: balance; }
.jr-resume { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: -8px 0 12px; padding: 0 8px 0 14px; border: 0; border-radius: var(--rad-pill, 999px); text-align: left; cursor: pointer; font: 400 15px/1.25 var(--sans); color: var(--lg-fg2); background: var(--lg-field); box-shadow: inset 0 0 0 1px var(--lg-line); }
.jr-resume svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: var(--mf-ico-stroke, 1.5); }
.jr-resume .jr-rs-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-resume .jr-rs-t b { font-weight: 500; color: var(--lg-fg); }
.jr-resume .jr-rs-go { flex: none; font-style: normal; font-weight: 500; font-size: 15px; color: var(--lg-fg); padding: 5px 14px; border-radius: 99px; background: var(--lg-field-hi); }
.jr-steps { display: grid; }
.jr-step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; opacity: 0; visibility: hidden; pointer-events: none; translate: 16px 0;
  transition: opacity var(--mc-t-fade-out) var(--mc-ease-fade), translate var(--mc-s1-t) var(--mc-spring), visibility 0s linear var(--mc-t-fade-out); }
.jr-step.on { opacity: 1; visibility: visible; pointer-events: auto; translate: 0 0; transition: opacity var(--mc-t-fade) var(--mc-ease-fade) 40ms, translate var(--mc-s2-t) var(--mc-spring), visibility 0s; }
.jr-sheet[data-step="0"] .jr-step:not(.on) { translate: -16px 0; }
.jr-sheet:is([data-step="1"], [data-step="2"], [data-step="3"]) .jr-step[data-s="0"]:not(.on), .jr-sheet:is([data-step="2"], [data-step="3"]) .jr-step[data-s="1"]:not(.on), .jr-sheet[data-step="3"] .jr-step[data-s="2"]:not(.on) { translate: -16px 0; }
.jr-f { display: grid; gap: 8px; }
.jr-f > span, .jr-sub { margin: 0; font: var(--ty-subhead, 500 15px/1.3 var(--sans)); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--lg-fg2); }
.jr-in { box-sizing: border-box; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 18px; font: 400 18px/1.2 var(--sans); color: var(--lg-fg); background: var(--lg-field); box-shadow: inset 0 0 0 1px var(--lg-line); caret-color: var(--lg-fg); transition: box-shadow var(--mc-t-fade) var(--mc-ease-fade), background-color var(--mc-t-fade) var(--mc-ease-fade); }
.jr-in::placeholder { color: var(--lg-fg3); }
.jr-in:focus, .jr-in:focus-visible { outline: none; background: var(--lg-field-hi); box-shadow: inset 0 0 0 2px var(--mf-focus-d, rgba(255, 255, 255, .85)); }
.jr-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.jr-chip { min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--rad-pill, 999px); cursor: pointer; font: 500 17px/1.2 var(--sans); color: var(--lg-fg); background: var(--lg-field); box-shadow: inset 0 0 0 1px var(--lg-line);
  transition: background-color var(--mc-t-fade) var(--mc-ease-fade), color var(--mc-t-fade) var(--mc-ease-fade), box-shadow var(--mc-t-fade) var(--mc-ease-fade); }
.jr-chip.on { background: var(--lg-prom); color: var(--lg-prom-fg); box-shadow: var(--lg-prom-sh); }
.jr-terms { max-height: 168px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--lg-fg3) transparent; padding: 18px 20px; border-radius: 22px; background: var(--lg-field); box-shadow: inset 0 0 0 1px var(--lg-line); font: 400 15px/1.45 var(--sans); color: var(--lg-fg2); }
.jr-terms-wrap[data-more] .jr-terms { -webkit-mask-image: linear-gradient(#000 calc(100% - 62px), transparent calc(100% - 16px)); mask-image: linear-gradient(#000 calc(100% - 62px), transparent calc(100% - 16px)); }
.jr-terms-wrap { position: relative; }
.jr-terms-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; pointer-events: none; font: 500 14px/1.3 var(--sans); color: var(--lg-fg2); opacity: 0; transition: opacity var(--mc-t-fade) var(--mc-ease-fade); }
.jr-terms-hint svg { width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: var(--mf-ico-stroke-sm, 2); stroke-linecap: round; stroke-linejoin: round; }
.jr-terms-wrap[data-more] .jr-terms-hint { opacity: 1; }
.jr-terms p { margin: 0 0 10px; }
.jr-terms p:last-child { margin-bottom: 0; }
.jr-terms b { font-weight: 600; color: var(--lg-fg); }
.jr-switch { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 6px 0 2px; border: 0; background: transparent; color: var(--lg-fg); cursor: pointer; text-align: left; font: 500 17px/1.25 var(--sans); }
.jr-sw { position: relative; flex: none; width: 51px; height: 31px; border-radius: 99px; background: var(--lg-field-hi); box-shadow: inset 0 0 0 1px var(--lg-line); transition: background-color var(--mc-t-fade) var(--mc-ease-fade); }
.jr-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .35); transition: translate var(--mc-s1-t) var(--mc-spring), width var(--mc-t-press) var(--mc-ease-fade); }
.jr-switch.on .jr-sw { background: #8fd3a8; box-shadow: none; }
.jr-switch.on .jr-sw::after { translate: 20px 0; }
.jr-switch:active .jr-sw::after { width: 33px; }
.jr-switch.on:active .jr-sw::after { translate: 14px 0; }
.jr-foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 18px; }
.jr-foot [hidden] { display: none !important; }
.jr-back { margin-right: auto; }
.jr-agree.jr-wait { opacity: .72; }
.jr-nextb, .jr-agree { min-width: 164px; }

/* ---- the redesign of the sheet (3 November 2026; js/ux/journey.js, js/ux/phone.js): the number first and mandatory, a returning guest's card, Skip, the back chevron. 8px grid.
   Everything below overrides the first rules of this section; the type roles come from the tokens (css/r13/type.css names the older classes) ---- */
.jr-sheet .jr-top { justify-content: center; position: relative; }   /* the dots sit in the middle: the back chevron is on the left, the close on the right */
.jr-back { position: absolute; z-index: 4; left: 20px; top: 20px; width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--lg-fg); background: var(--lg-field-hi); }
.jr-back[hidden] { display: none; }
.jr-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: var(--mf-ico-stroke-x, 1.75); stroke-linecap: round; stroke-linejoin: round; }
.jr-sheet .jr-h { margin-bottom: 24px; }
.jr-step { gap: 24px; }
.jr-step[data-s="0"] { gap: 16px; }
.jr-g { display: grid; gap: 12px; min-width: 0; }
.jr-chips { gap: 12px; margin-bottom: 0; }
.jr-chip { min-height: 52px; }

/* the slots that open and close in height (a returning guest's card, the Resume row, the NRI currency): the space around them lives INSIDE them, so nothing jumps when they open */
.jr-slot { min-width: 0; }
.jr-slot[hidden] { display: none; }
.jr-slot.jr-run { overflow: hidden; }
.jr-resume-slot .jr-slot-in { padding: 0 0 16px; }
.jr-cue-slot { margin-top: -16px; }
.jr-cue-slot .jr-slot-in { padding: 14px 0 0; }
.jr-nm-slot { margin-top: -16px; }
.jr-nm-slot .jr-slot-in { padding-top: 16px; }
.jr-cur { margin-top: -24px; }
.jr-cur .jr-slot-in { padding-top: 24px; }

/* the number: a label, one field (flag and dial code, then the number), and one quiet line under it that says what is missing */
.jr-body { overflow-x: hidden; }   /* the steps wait beside each other, 16px off: nothing may scroll sideways */
.jr-f-ph { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.jr-lab { margin: 0; font: var(--ty-callout); color: var(--lg-fg2); }
.jr-help { margin: 0; min-height: 1.4em; opacity: 1; color: var(--lg-fg2); font: 400 calc(15px * var(--ui-scale, 1))/1.47 var(--sans); }
.jr-help.on { opacity: 1; min-height: 1.4em; }
.jr-help.warn { color: #ffd7a1; }
.jr-lab-opt { font-style: normal; font-weight: 400; }   /* the name is optional: a lighter label (an i, not a span: css/r13/type.css names ".jr-f > span"), and the word saying so */
.jr-lab-opt em { margin-left: 6px; font-style: normal; color: var(--lg-fg2); }
.jr-sheet .jr-k { color: var(--lg-fg2); }   /* "Step 2 of 3 · Optional" carries a fact: the second grey of the card (4.5:1 over the lightest cloud too) */
.jr-sheet::before { content: none; }   /* no glass rim on the card (R13: one graphite card, a soft shadow) */
/* step 1 with a saved visit on this tablet: the sheet's top edge is pinned (js/ux/journey.js pinTop), so the returning guest's card opens downward and the number being typed stays put */
.jr-sheet.jr-pin { top: var(--jr-pin-top); translate: -50% 0; max-height: var(--jr-pin-mh); }

/* the returning guest's card and the Resume row: one card style */
.jr-cue { display: grid; gap: 14px; padding: 16px 20px; border-radius: 22px; background: var(--lg-field); box-shadow: inset 0 0 0 1px var(--lg-line); }
.jr-cue-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.jr-cue-av { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--lg-field-hi); color: var(--lg-fg); font: 600 calc(17px * var(--ui-scale, 1))/1.3 var(--sans); }
.jr-cue-hd { min-width: 0; }
.jr-cue-h { margin: 0; font: 400 calc(17px * var(--ui-scale, 1))/1.3 var(--sans); color: var(--lg-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-cue-h b { font-weight: 600; color: var(--lg-fg); }
.jr-cue-s { margin: 2px 0 0; font: 400 calc(15px * var(--ui-scale, 1))/1.47 var(--sans); color: var(--lg-fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jr-cue-l { margin: 0; display: grid; gap: 6px; }
.jr-cue-l > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.jr-cue-l dt { margin: 0; font: 500 calc(15px * var(--ui-scale, 1))/1.33 var(--sans); color: var(--lg-fg2); }
.jr-cue-l dd { margin: 0; font: 400 calc(15px * var(--ui-scale, 1))/1.47 var(--sans); color: var(--lg-fg); overflow-wrap: anywhere; }
.jr-cue-a { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.jr-cue-go { min-height: 48px; min-width: 0; max-width: 100%; padding: 0 24px; border: 0; border-radius: var(--rad-pill, 999px); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 calc(17px * var(--ui-scale, 1))/1.3 var(--sans); letter-spacing: -.005em;
  background: var(--lg-prom, linear-gradient(180deg, #fff, #f0f0f4)); color: var(--lg-prom-fg, #101014); box-shadow: var(--lg-prom-sh, 0 8px 24px -10px rgba(0, 0, 0, .55)); }
.jr-cue-no { flex: none; min-height: 48px; min-width: 44px; padding: 0 20px; border: 0; border-radius: var(--rad-pill, 999px); background: transparent; color: var(--lg-fg2, rgba(245, 245, 247, .76)); cursor: pointer; font: 500 calc(15px * var(--ui-scale, 1))/1.33 var(--sans); }   /* not .jr-ghost: css/r13/type.css sets that one's size by name */
.jr-resume { margin: 0; min-height: 52px; padding: 0 8px 0 18px; border-radius: 22px; background: var(--lg-field); }

/* the footer: Skip (quiet, steps 2 and 3) on the left, Next on the right, on one baseline. A waiting Next stays readable: an outline pill, not faded text; the line above says why */
.jr-foot { justify-content: space-between; min-height: 44px; padding: 24px 2px 0; }   /* 2px each side: the footer's edges are the body's (the fields' and the chips') */
.jr-skipb { margin: 0 0 0 -20px; font: var(--ty-callout); }
.jr-sheet .ph-fld .ph-in:focus-visible, .jr-sheet .ph-find input:focus-visible { outline: none; }   /* the field draws its own ring (css/ux/welcome.css) */
.jr-nextwrap { display: inline-flex; margin-left: auto; }
.jr-nextwrap[hidden] { display: none; }
.jr-nextb.jr-pill:disabled, .jr-agree.jr-pill:disabled { opacity: 1; cursor: default; background: transparent; background-image: none; color: var(--lg-fg2); box-shadow: inset 0 0 0 1.5px var(--lg-line); }
.jr-nextwrap.off .jr-nextb { pointer-events: none; }
.jr-agree { margin-left: auto; }
html.tv .jr-sheet .jr-back { zoom: 1.45; }
html.r13.tv body:not(#r13a):not(#z):not(#z):not(.z):not(.z):not(z):not(z):not(z) .jr-sheet .jr-h { font-size: calc(34px * 1.55); }   /* TV: the Large role x 1.7 x the sheet's 1.45 zoom wrapped "Who are we welcoming?" onto two lines; at 1.55 it is one, and the form gets the height it gave away (specificity padded to outrank css/r13/type.css) */
html.tv .jr-help, html.tv .jr-cue { --ui-scale: 1; }   /* the sheet is already zoomed 1.45 on the TV and the type tokens scale 1.7: the new line and card read at the zoom alone, so the card fits the screen */
html.jr-short .jr-sheet .jr-back { top: 6px; left: 10px; }
html.jr-short .jr-sheet .jr-h { margin-bottom: 12px; }
html.jr-short .jr-sheet .jr-step { gap: 12px; }
html.jr-short .jr-sheet .jr-foot { padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { .jr-cue-go, .jr-back { transition: none; } }
@media (prefers-contrast: more) { .jr-cue, .jr-resume { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); } .jr-nextb.jr-pill:disabled, .jr-agree.jr-pill:disabled { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); color: #fff; } .jr-help, .jr-lab, .jr-cue-s { color: #fff; } }

/* =====================================================================================================================================================
   3 · The landing greeting (a quiet line over the map, once)
   ===================================================================================================================================================== */
.jr-greet { position: fixed; z-index: 30; left: calc(var(--pad, 24px) + var(--safe-l, 0px) + .4rem); top: calc(var(--pad, 24px) + var(--safe-t, 0px) + 4.6rem); pointer-events: none; color: #f5f5f7; opacity: 0; font-family: var(--sans); text-shadow: 0 1px 18px rgba(0, 0, 0, .6), 0 0 2px rgba(0, 0, 0, .4); }
.jr-g1 { margin: 0; font: 300 clamp(30px, 3.2vw, 42px)/1.12 var(--sans); letter-spacing: -.022em; }
.jr-g1 b { font-weight: 500; }
.jr-g2 { margin: 8px 0 0; display: flex; align-items: center; gap: 16px; font: 400 17px/1.3 var(--sans); color: rgba(245, 245, 247, .9); font-variant-numeric: tabular-nums lining-nums; }
.jr-wx { display: inline-flex; align-items: center; gap: 8px; }
.jr-wx svg { width: 22px; height: 22px; }
body.cine .jr-greet { top: calc(8dvh + var(--safe-t, 0px) + 1.4rem); }

/* =====================================================================================================================================================
   4 · Weather on the map: cloud density follows the cloud cover (js/ux/weather.js). Adds to the light, never replaces it
   ===================================================================================================================================================== */
#clouds:not(.intro) { opacity: var(--wx-cloud, 1); transition: opacity 2s linear; }

/* =====================================================================================================================================================
   5 · Reduced motion, reduced transparency, high contrast
   ===================================================================================================================================================== */
@media (prefers-reduced-motion: reduce) {
  .jr-bgs .jr-bg, .jr-step, .jr-step.on, .jr-dots li, .jr-sw::after, .jr-sw, .jr-chip, .jr-in { transition: none; }
  #clouds:not(.intro) { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .jr-sheet { background-color: #26233a; background-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .jr-aw, .jr-skip { background-color: #2d2a40; }
  .jr-shade { background: rgba(10, 8, 20, .78); }
}
@media (prefers-contrast: more) {
  .jr-sheet { background-color: #14111a; background-image: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .jr-chip, .jr-in, .jr-terms, .jr-skip, .jr-aw { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
  .jr-k, .jr-sheet .jr-f > span, .jr-sub, .jr-nu { color: #fff; }
  .jr-shade { background: rgba(10, 8, 20, .8); }
}

/* the TV (?tv=1, 1920x1080 mirrored): the sheet, the greeting and the story's small parts scale up with the rest of the interface */
html.tv .jr-sheet { width: min(940px, calc(100vw - 96px)); }
html.tv .jr-sheet .jr-top, html.tv .jr-sheet .jr-body, html.tv .jr-sheet .jr-foot { zoom: 1.45; }
html.tv .jr-sheet .jr-x { zoom: 1.45; }
html.tv .jr-greet .jr-g1, html.tv .jr-greet .jr-g2 { zoom: 1.5; }
html.tv .jr-skip, html.tv .jr-lfoot .jr-pill { zoom: 1.4; }
html.tv .jr-legacy .jr-k { font-size: 26px; }
html.tv .jr-aw b { font-size: 22px; } html.tv .jr-aw span, html.tv .jr-nu, html.tv .jr-foot-n { font-size: 20px; }

/* the keyboard is up (visualViewport shorter than 560px): the sheet compacts so the field and the next step stay in view */
html.jr-short .jr-sheet { padding: 8px 24px 16px; }
html.jr-short .jr-sheet .jr-k { display: none; }
html.jr-short .jr-sheet .jr-h { font-size: 24px; margin-bottom: 10px; }
html.jr-short .jr-sheet .jr-top { min-height: 28px; }
html.jr-short .jr-sheet .jr-x { top: 6px; right: 10px; }
html.jr-short .jr-sheet .jr-in { min-height: 48px; }
html.jr-short .jr-sheet .jr-foot { padding-top: 8px; }
html.jr-short .jr-sheet .jr-step { gap: 8px; }
