/* (FINAL-FIX2 perf) 1 selector list 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. */
/* R13 paper.css (1 November 2026, WP3): the paper screens, Home (home.css is its own file), Walk, Choose, Price, Summary, in the "Quiet Instrument" system.
   Scope: html.r13 body ... (rolls back with ?r13=0). Box, colour, material and layout only: NO font, letter-spacing, line-height or text-transform here (css/r13/type.css owns type).
   COLOUR RULE (the user's, over the plan): the paper look is 8791's (Apple-minimal): the ground (--mf-paper #f1f1ef), the white cards, the capsule fills, the 1px hairline plus soft shadow,
   one ink. Nothing in this file changes the ground, a capsule fill or a card fill; the two deliberate departures are marked "DEPARTURE" (section 5 Summary hero, section 3 cost bar).
   No gradients, no glass rim, no blur.
   Sections: 0 tokens and the orb band · 1 Choose · 2 Walk · 3 Price · 4 shared (targets, sample markers) · 5 Summary · 6 the paper rise */

/* ---------- 0 · tokens, the left edge, the orb band ---------- */
/* the mirrors this file draws (the Choose menus, the Price summary row) exist only while r13 is on */
.cx-menus, .px-sum { display: none; }

html.r13 body { --q-pop-sh: 0 0 0 1px rgba(22, 22, 27, .06), 0 1px 2px rgba(22, 22, 27, .06), 0 12px 28px -12px rgba(22, 22, 27, .28); }

/* the paper pages share ONE content edge: --edge-2 (gutter + the 120px rail). Landscape only: portrait and narrow screens keep their old lane (css/ux/qa-fixes.css). */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body { --cx-left: var(--edge-2); }
  /* WP1 hand-off: the 7.6rem / pad + 7.8rem bands become the reserved orb square. The orb sits in the bottom-right --orb-zone square on --edge-1 (chrome.css), so a page
     keeps clear of: gutter + zone + a small gap. This is the one number the A7 paper band (css/ux/apple.css) reads (--orb-band); it is NOT drawn twice, only re-based. */
  html.r13 { --orb-band: calc(var(--edge-1) + var(--orb-zone) + var(--s3) + var(--safe-b)); }
  html.r13 body #place { left: var(--edge-1); }
}

/* ---------- 1 · Choose: one filter row of three menus, a result count, the tray docked ---------- */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-choose { --cx-choose-left: var(--edge-2); --cx-choose-bar: calc(var(--edge-1) + var(--orb-zone) + var(--s2) + var(--safe-b)); }
  html.r13 body #lv-choose .cx-ch { padding: var(--title-top) calc(var(--edge-1) + var(--safe-r)) var(--cx-choose-bar) var(--edge-2); }
  /* the fade under the grid is the page's own paper (same stops as before), shorter, so rows are not washed out above the tray */
  html.r13 body #lv-choose .cx-ch::after { height: var(--cx-choose-bar); }
  /* the tray docks to the bottom edge on the gutter and ends clear of the orb square */
  html.r13 body #lv-choose .cx-tray { left: var(--edge-2); right: calc(var(--edge-1) + var(--orb-zone) + var(--s4) + var(--safe-r)); bottom: calc(var(--edge-1) + var(--safe-b)); }
}
html.r13 body #lv-choose .cx-tray { box-shadow: var(--el-2); }

html.r13 body #lv-choose .cx-menus { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); flex: none; }
html.r13 body #lv-choose .cx-menu { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--q-ctl); padding: 0 var(--s3) 0 var(--s4); border-radius: var(--r-capsule);
  background: var(--surface); color: var(--lg-fg, var(--fg)); box-shadow: var(--el-2); white-space: nowrap;
  transition: background-color var(--d-fade) var(--e-in), box-shadow var(--d-fade) var(--e-in), color var(--d-fade) var(--e-in); }
html.r13 body #lv-choose .cx-menu .cx-mk { color: var(--lg-fg2, var(--fg-2)); }
html.r13 body #lv-choose .cx-menu .cx-mv { color: inherit; }
html.r13 body #lv-choose .cx-menu svg { width: 1rem; height: 1rem; opacity: .64; transition: transform var(--d-fade) var(--e-in); }
html.r13 body #lv-choose .cx-menu[aria-expanded="true"] { box-shadow: var(--el-2), inset 0 0 0 1px var(--fg-3); }
html.r13 body #lv-choose .cx-menu[aria-expanded="true"] svg { transform: rotate(180deg); }
/* a menu that narrows the list is the one filled capsule (the same ink fill as the tray's primary button) */
html.r13 body #lv-choose .cx-menu.on { background: var(--lg-prom, var(--primary-bg)); color: var(--lg-prom-fg, var(--primary-fg)); }
html.r13 body #lv-choose .cx-menu.on .cx-mk { color: inherit; opacity: .72; }
html.r13 body #lv-choose .cx-menu.on svg { opacity: .9; }

/* the filter row: no scroller, no rule under it; the chips live in a popover under their menu button (css/ux/close2.css gave them a scrolling row) */
html.r13 body #lv-choose .cx-filters { display: flex; flex-wrap: nowrap; align-items: center; overflow: visible; clip-path: none; margin: var(--s3) 0 var(--s3); padding: 0; border-bottom: 0; -webkit-mask-image: none; mask-image: none; }
html.r13 body #lv-choose .cx-filters .cx-fg { display: none; position: absolute; z-index: 9; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s2); border: 0; border-radius: var(--r-card);
  background: var(--surface-card); box-shadow: var(--q-pop-sh); }
html.r13 body #lv-choose .cx-filters .cx-fg.open { display: flex; animation: r13-pop var(--d-fade) var(--e-in) both; }
html.r13 body #lv-choose .cx-filters .cx-fg .cx-fl { display: none; }
html.r13 body #lv-choose .cx-filters .cx-opts { flex-direction: column; gap: 0; }
html.r13 body #lv-choose .cx-filters .cx-opts button { justify-content: space-between; gap: var(--s5); min-height: var(--q-ctl); padding: 0 var(--s4); border-radius: var(--r-inner); }
html.r13 body #lv-choose .cx-filters .cx-opts button::before { inset: 0; border-radius: var(--r-inner); }
html.r13 body #lv-choose .cx-filters .cx-opts button.on::before { background: rgba(22, 22, 27, .06); box-shadow: none; }
@keyframes r13-pop { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }

/* one flag only (P2-5): the corner flag says "sample", so the title row does not say it a second time (the text stays in the DOM) */
html.r13 body.sample-on:not(#zz-) #lv-choose .cx-note { display: none; }
/* the building chart keeps its corner (css/ux/motion-close.css), level with the title */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-choose .cx-bld { top: var(--title-top); right: calc(var(--edge-1) + var(--safe-r)); }
}

/* ---------- 2 · Walk: the map is the hero (70% of the width, its right edge on the top row's), ONE stop card floats over its left edge, the plan switch on its top-left corner ---------- */
/* Landscape. Every number is a token sum, so nothing is measured in script (js/modes.js sets --A, the plan's ratio, on #lv-walk):
   --wk-mw the map's width: 70% of the screen, or what the height leaves (the band between the top row and the orb square; on a short screen the map may take the height down to the bottom gutter, the orb then floats over its empty
   bottom-right corner, so it never falls under 68% while the height allows it), or what keeps the card its minimum width;
   --wk-mh its height; --wk-mt its top (centred in the clear band, never above the top row's bottom + 12, never below the bottom gutter); --wk-ml its left;
   --wk-ov how far the card reaches over the map's left edge (11% of the map, more only to keep the card its minimum width, at most 13%: the first stop sits ~17% in);
   --wk-cl the card's and the plan switch's left: --edge-2 (the page's content edge, as the titles of the other paper pages), or nearer the map when the map is narrow, so the card is never a column of its own;
   --wk-cw the card's width. The card's bottom IS the map's bottom (same sum). */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-walk {
    --wk-seg-h: calc(var(--q-ctl) + 6px); --wk-cmin: calc(230px * var(--ui-scale)); --wk-cmax: calc(400px * var(--ui-scale)); --wk-tw: calc(280px * var(--ui-scale));
    --wk-mx: calc(100vw - var(--edge-1) - var(--safe-r));
    --wk-t0: calc(var(--top-row) + var(--q-ctl) + var(--s3) + var(--safe-t));
    --wk-bh: calc(100vh - var(--title-top) - var(--edge-1) - var(--orb-zone) - var(--s2) - var(--safe-b));
    --wk-bf: calc(100vh - var(--wk-t0) - var(--edge-1) - var(--safe-b));
    --wk-mw: min(70vw, calc((var(--wk-mx) - var(--edge-2) - var(--wk-cmin)) / .87), max(calc(var(--wk-bh) * var(--A, 1.82)), min(calc(var(--wk-bf) * var(--A, 1.82)), 68vw)));
    --wk-mh: calc(var(--wk-mw) / var(--A, 1.82));
    --wk-mt: clamp(var(--wk-t0), calc(var(--title-top) + (var(--wk-bh) - var(--wk-mh)) / 2), calc(100vh - var(--edge-1) - var(--safe-b) - var(--wk-mh)));
    --wk-ml: calc(var(--wk-mx) - var(--wk-mw));
    --wk-ov: clamp(calc(var(--wk-mw) * .11), calc(var(--wk-cmin) - var(--wk-ml) + var(--edge-2)), calc(var(--wk-mw) * .13));
    --wk-cl: max(var(--edge-2), calc(var(--wk-ml) + var(--wk-ov) - var(--wk-cmax)), calc(var(--wk-ml) + 24px - var(--wk-tw)));
    --wk-cw: calc(var(--wk-ml) + var(--wk-ov) - var(--wk-cl));
  }
  html.r13 body #lv-walk .wx-when { top: var(--wk-mt); left: var(--wk-cl); right: auto; translate: none; margin: 0; }
  html.r13 body #lv-walk .wk-plan { top: var(--wk-mt); height: var(--wk-mh); bottom: auto; left: var(--wk-ml); right: calc(var(--edge-1) + var(--safe-r)); place-items: start; }
  /* the dock is a zero-height line on the map's bottom edge; the card hangs up from it, so the two bottoms are one number */
  html.r13 body #lv-walk .wk-dock { top: calc(var(--wk-mt) + var(--wk-mh)); bottom: auto; height: 0; left: var(--wk-cl); width: var(--wk-cw); display: block; }
  html.r13 body #lv-walk .wk-card { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: calc(var(--wk-mh) - var(--wk-seg-h) - var(--s3)); box-shadow: var(--q-pop-sh); }
  /* the photo caption (qa-fixes.css) sits at the map's bottom-left: clear of the card */
  html.r13 body #lv-walk.wx-photo .wk-clip::after { left: calc(var(--wk-ov) + var(--s4)); }
}
/* Portrait, and any screen the app lays out as portrait: the map on top, the card under it as a sheet, the plan switch on the map's top-left (inside, one inset) */
@media (orientation: portrait), (max-width: 900px) {
  html.r13 body #lv-walk { --wk-mw: calc(100vw - var(--cx-left) - var(--edge-1) - var(--safe-r)); --wk-mh: calc(var(--wk-mw) / var(--A, 1.82)); }
  html.r13 body #lv-walk .wk-plan { left: var(--cx-left); right: calc(var(--edge-1) + var(--safe-r)); top: var(--title-top); height: var(--wk-mh); bottom: auto; place-items: start; }
  html.r13 body #lv-walk .wx-when { left: calc(var(--cx-left) + var(--s3)); right: auto; top: calc(var(--title-top) + var(--s3)); translate: none; margin: 0; }
  html.r13 body #lv-walk .wk-dock { left: var(--cx-left); right: calc(var(--edge-1) + var(--safe-r)); width: auto; top: calc(var(--title-top) + var(--wk-mh) + var(--s4)); bottom: auto; height: auto; display: block; }
  html.r13 body #lv-walk .wk-card { position: relative; max-height: none; border-radius: var(--r-sheet) var(--r-sheet) var(--r-card) var(--r-card); box-shadow: var(--q-pop-sh); }
}
/* (R14) the "You are here" tag is gone from the Walk (its youShift rule lived here); the camera, the card and the plan switch are css/r14/walk.css */
/* the card: the stop's number is in "Stop N of M" and the progress line, so the badge (its text stays in the page) steps out; the plan switch is a solid track (it sits half on the paper, half on the map) */
/* on a short map (a 1024 or 1133 wide tablet) the stop's text can outgrow the card: it scrolls, and Previous / Next stay on the card's bottom edge */
html.r13 body #lv-walk .wk-nav { position: sticky; bottom: 0; background-color: var(--surface-card, #fff); }
/* the Next pill grows with its text: the last stop's "Back in the lounge" wraps to two lines in a narrow card, so the pill carries equal padding above and below (it had none: the kicker sat on its curved top edge) */
html.r13 body #lv-walk .wk-go { padding-block: var(--s2); }
/* a narrow card (a 1133 to 1230 wide tablet, the card is 260 to 285px): the pill spends less on its edges so "Back in the lounge" keeps one line instead of three lines of text in a tall pill */
@media (min-width: 901px) and (max-width: 1230px) { html.r13:not(.tv) body #lv-walk .wk-go { padding-left: var(--s3); padding-right: var(--s2); gap: var(--s2); } html.r13:not(.tv) body #lv-walk .wk-gi { width: 30px; height: 30px; } }
html.r13 body #lv-walk .wk-num { display: none; }
html.r13 body #lv-walk .wk-card { border-radius: var(--r-card); }
html.r13 body #lv-walk .wx-when { background-color: #e8e8e5; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .06); backdrop-filter: none; }
/* quieter stop tags: every stop keeps its numbered marker, the current stop its name; another stop's name fades in under the finger or the pointer, or on keyboard focus (the names stay in the page and in the buttons' aria-labels) */
html.r13 body #lv-walk .wk-lab { opacity: 0; transition: opacity var(--d-fade) var(--e-in); }
html.r13 body #lv-walk .wk-stop.on .wk-lab, html.r13 body #lv-walk .wk-stop.wk-peek .wk-lab, html.r13 body #lv-walk .wk-stop:active .wk-lab, html.r13 body #lv-walk .wk-stop:focus-visible .wk-lab { opacity: 1; }
html.r13 body #lv-walk .wk-stop.wk-peek, html.r13 body #lv-walk .wk-stop:active, html.r13 body #lv-walk .wk-stop:focus-visible { z-index: 5; }
@media (hover: hover) {
  html.r13 body #lv-walk .wk-stop:hover .wk-lab { opacity: 1; }
  html.r13 body #lv-walk .wk-stop:hover { z-index: 5; }
}
@media (prefers-reduced-motion: reduce) { html.r13 body #lv-walk .wk-lab { transition: none; } }
/* the stop's points: list rows (44 min, hairline between), as the Walk stop list is the reference row of the system */
html.r13 body #lv-walk .wk-pts { gap: 0; }
html.r13 body #lv-walk .wk-pts li { display: flex; align-items: flex-start; gap: var(--s3); min-height: var(--q-row); padding: var(--s3) 0; border-top: 1px solid var(--hairline); }
html.r13 body #lv-walk .wk-pts li:first-child { border-top: 0; }
html.r13 body #lv-walk .wk-body { gap: var(--s2); }

/* ---------- 3 · Price: one scroller, a summary row that stays in view, one presenter cluster ---------- */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-price .px { padding: var(--title-top) calc(var(--edge-1) + var(--safe-r)) calc(var(--orb-band) + var(--s5)) var(--edge-2); gap: var(--s3); }
  html.r13 body[data-level="price"] #lv-price .px { padding-bottom: calc(var(--orb-band) + var(--s5)); }
}
/* the head: title row (title, status; the presenter cluster at the right), then the facts and the recommendation on ONE line */
html.r13 body #lv-price .px-head { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--s6); row-gap: var(--s1); }
html.r13 body #lv-price .px-head > .px-top, html.r13 body #lv-price .px-head > .px-tabs { grid-column: 1 / -1; }
html.r13 body #lv-price .px-top { align-items: center; }
html.r13 body #lv-price .px-pres { margin-top: 0; gap: var(--s2); }
/* "Presenter": the group is labelled (aria-label); its visible eyebrow was a floating pseudo-element, now it sits in the row, left of the buttons (P1-10) */
html.r13 body #lv-price .px-pres::before { position: static; margin-right: var(--s1); font: var(--ty-cap); letter-spacing: var(--tr-cap); color: var(--lg-fg2, var(--fg-2)); }   /* the cap role x --ui-scale (was a literal 12px: ~10 next to the TV's 1.7x buttons) */
html.r13 body #lv-price .px-btn { height: var(--q-ctl); min-height: var(--q-ctl); padding: 0 var(--s4); }
html.r13 body #lv-price .px-rec { margin: 0; }
/* the "Prices are hidden on the TV" banner keeps only its status text: its second Show prices link is out of the picture (the handler and the node stay; tabindex -1 and aria-hidden in js/sales.js).
   opacity 0 and no pointer events: it is not drawn, not hit, and still part of the page text, as the price checks read it */
html.r13 body #lv-price .px-hidden { min-height: 0; padding: var(--s1) 0; background: none; box-shadow: none; position: relative; }
html.r13 body #lv-price .px-hidden .cx-link { position: absolute; right: 0; top: 0; opacity: 0; pointer-events: none; }

/* the summary row (mirrors of the all-inclusive total and the EMI; js/sales.js sumWire): two white cards, sticky under the top row, over a strip of the page's own paper */
html.r13 body #lv-price .px-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); position: sticky; top: calc(var(--top-row) + var(--q-ctl) + var(--s3) - var(--title-top)); z-index: 5; }   /* sticky measures from the scroller's content box (its padding-top is --title-top): this is y = 88 */
html.r13 body #lv-price .px-sum::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * (var(--top-row) + var(--q-ctl) + var(--s3))); bottom: calc(-1 * var(--s2)); left: calc(-1 * var(--edge-2)); right: calc(-1 * var(--edge-1) - var(--safe-r)); background: var(--mf-paper, #f1f1ef); pointer-events: none; opacity: 0; transition: opacity var(--d-fade) var(--e-in); }
html.r13 body #lv-price .px-sum.stuck::before { opacity: 1; }
html.r13 body #lv-price .px-sum-i { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); min-height: var(--q-row-sub); padding: var(--s3) var(--s5); border-radius: var(--r-card); text-align: left;
  background: var(--surface-card); box-shadow: var(--el-1); color: var(--lg-fg, var(--fg)); transition: box-shadow var(--d-fade) var(--e-in); }
html.r13 body #lv-price .px-sum-i span::before { content: attr(data-t); }
html.r13 body #lv-price .px-sk { flex: 1 0 100%; color: var(--lg-fg2, var(--fg-2)); }
html.r13 body #lv-price .px-su { color: var(--lg-fg2, var(--fg-2)); }
html.r13 body #lv-price .px-sum-i:hover { box-shadow: var(--el-1), inset 0 0 0 1px var(--fg-3); }

/* the cards: one white card each (8791's), the hairline and soft shadow of the system; the cost parts are an ink ramp, not six hues (P1-4)
   DEPARTURE from 8791 (which has six colours here): colour means status on paper (done green, now blue stay as they are), so the cost sheet is neutral */
html.r13 body #lv-price .px-card { box-shadow: var(--el-1); }
html.r13 body #lv-price {
  --cost-1: rgba(22, 22, 27, .86); --cost-2: rgba(22, 22, 27, .64); --cost-3: rgba(22, 22, 27, .48); --cost-4: rgba(22, 22, 27, .34); --cost-5: rgba(22, 22, 27, .24); --cost-6: rgba(22, 22, 27, .14);
  --cost-1-d: var(--cost-1); --cost-2-d: var(--cost-2); --cost-3-d: var(--cost-3); --cost-4-d: var(--cost-4); --cost-5-d: var(--cost-5); --cost-6-d: var(--cost-6);
}
html.r13 body #lv-price .px-bar { gap: 1px; border-radius: 3px; }
/* the plan switch (Construction-linked / 10:90 / Subvention 20:80): ONE line per segment at every width (1180 and the TV card are ~290 wide at 1x). The labels size the segments (flex auto, nowrap, 5px sides, no tracking): 250 + 30 of the 284 inside the track */
html.r13 body #lv-price .px-plans > button { white-space: nowrap; padding: 0 calc(5px * var(--ui-scale)); letter-spacing: 0; min-width: 0; }
html.r13.tv body #lv-price .px-card { padding-inline: calc(14px * var(--ui-scale)); }   /* TV: the cards' own side padding was 1.25rem = 34px; the plan switch's labels (425px at 20.4px type) need 438 of inner width */
html.r13.tv body #lv-price .px-plans > button { padding: 0 calc(2px * var(--ui-scale)); }

/* the A7 paper band (css/ux/apple.css, full width, ~230px on the TV) hid the lower fifth of the page for ONE round button. On Price the cards now run to the bottom edge and only the orb gets a soft paper halo (a radial fade around its
   reserved square, not a slab); the scroller's bottom padding (--orb-band) still keeps the last row clear of it. Summary keeps its band (its action bar lives there). */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-price::after { left: auto; width: calc(var(--orb-zone) * 2.6); height: calc(var(--orb-zone) * 2.6);
  background: radial-gradient(circle at calc(100% - var(--edge-1) - var(--safe-r) - var(--orb-zone) / 2) calc(100% - var(--edge-1) - var(--safe-b) - var(--orb-zone) / 2), var(--mf-paper, #f1f1ef) calc(var(--orb-zone) * .5), color-mix(in srgb, var(--mf-paper, #f1f1ef) 0%, transparent) calc(var(--orb-zone) * .66)); }   /* (2 November, FINAL-FIX3 F5, QA-C D8) the halo is the orb's own rim now (the orb is .46 of the zone across): the fade reached .56 to 1.05 and lay over the EMI note at 1180 and the rate figure on the TV */
}

/* the EMI card's lower rows keep clear of the orb at rest, as its sliders and donut already do (close.css: margin-right 6.2rem): the bank note under the sliders sat under the orb now that the full-width band is gone */
@media (min-width: 901px) and (orientation: landscape) { html.r13 body #lv-price .px-emi .note, html.r13 body #lv-price .px-emi .px-emi-sum { margin-right: calc(var(--orb-zone) * 1.12); } }   /* F5: was 6.2rem (about 1.03 zones); the halo ends at .66 of a zone from the orb's centre, the text stays 12% of a zone clear of it */

/* (2 November, FINAL-FIX4 F8, QA-C D14) the sliders and the donut (css/ux/close.css) kept the orb's margin all the way up, so at 1180 and 1280 their values ("25%", "20 years", "8.50%") stopped 107 px short of the card's right padding.
   On a screen of 780 px or more the three sliders end well above the orb (and its halo) at rest, so only the rows that sit beside the orb keep the reserve (the bank note and the total rows above); on a short screen
   (under 780 px tall) and on the TV, where the third slider reaches the orb's height, the sliders and the donut keep it. The halo is unchanged, so text and halo stay clear of each other */
@media (min-width: 901px) and (orientation: landscape) and (min-height: 780px) {
  html.r13 body #lv-price .px-emi .px-sl, html.r13 body #lv-price .px-emi .px-don { margin-right: 0; }
  html.r13.tv body #lv-price .px-emi .px-sl, html.r13.tv body #lv-price .px-emi .px-don { margin-right: calc(var(--orb-zone) * 1.12); }
}

/* nested radii: the plan thumbnail inside a card (20 - 8 padding), the legend's status keys on Home */
html.r13 body #lv-choose .cx-pl { border-radius: var(--r-inner); }
html.r13 body #lv-home .fp-legend :is(.k-av, .k-ho, .k-so) > i { border-radius: var(--r-min); }
html.r13 body #lv-walk .wk-here i { border-radius: var(--r-capsule); }       /* the beacon is a circle: said as a capsule, not 50% */

/* ---------- 4 · shared: targets, rows ---------- */
html.r13 body :is(#lv-choose, #lv-price, #lv-summary, #lv-walk) .cx-btn, html.r13 body :is(#lv-choose, #lv-price, #lv-summary, #lv-walk) .cx-chip, html.r13 body :is(#lv-choose, #lv-price, #lv-summary, #lv-walk) .px-btn, html.r13 body :is(#lv-choose, #lv-price, #lv-summary, #lv-walk) .cx-link { min-height: var(--q-ctl); }

/* ---------- 5 · Summary: the hero is a white card with ink type (Display role in type.css); no black slab (P1-7) ----------
   DEPARTURE from 8791 (its hero is a near-black slab). To get the slab back, delete this section. */
@media (min-width: 901px) and (orientation: landscape) {
  html.r13 body #lv-summary .sm-scroll { padding: var(--title-top) calc(var(--edge-1) + var(--safe-r)) calc(var(--orb-band) + var(--s5)) var(--edge-2); gap: var(--s5); }
  html.r13 body[data-level="summary"] #lv-summary .sm-scroll { padding-bottom: calc(var(--orb-band) + var(--s5)); }
}
html.r13 body #lv-summary .sm-hero { min-height: 0; background-color: var(--surface-card); color: var(--lg-fg, var(--fg)); box-shadow: var(--el-1); border-radius: var(--r-card); }   /* min-height 0: the Display line sets the height, so the QR card clears the orb band at 1280x800 */
html.r13 body #lv-summary .sm-hero::after { content: none; }
html.r13 body #lv-summary .sm-hero .sm-name .k, html.r13 body #lv-summary .sm-hero .sm-prof { color: var(--lg-fg2, var(--fg-2)); }
html.r13 body #lv-summary .sm-hero .sm-name h2 { color: var(--lg-fg, var(--fg)); text-shadow: none; }
html.r13 body #lv-summary .sm-hero .sm-logo { background: var(--lg-fg, var(--fg)); opacity: .9; }
/* the action bar is the system's capsule: hairline + soft shadow */
html.r13 body #lv-summary .sm-acts { box-shadow: var(--el-2); }

/* ---------- 6 · the paper rise: arriving on a paper page, the canvas fades up over --d-sheet (the chrome capsules already swap material in place: chrome.css) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.r13 body.swap-in:is([data-level="home"], [data-level="walk"], [data-level="choose"], [data-level="price"], [data-level="summary"]) .lvl.on { animation: r13-paper var(--d-sheet) var(--e-in) both; }
}
@keyframes r13-paper { from { opacity: 0; } to { opacity: 1; } }
