/* css/otter/review.css (4 November 2026, marigold otter, review fixes: design-research/marigold-otter/log-P3.md "Review fixes"). Linked LAST in index.html, after phase3.css.
   WHAT IT DOES, on the four map levels (Century, City, Micro-market, Area) only; the Site and the levels after it are untouched:
     1 · the Area lists' "N more ›" control at the right end of the bottom strip (js/levels.js catLens, js/app.js markOverflow): its own space, 44px, press and sound like every button;
     2 · the "2 · 5 · 10 km" toggle under All now says what it does ("Distance rings") and keeps its numbers where they fit;
     3 · the topic row's chips are at least 44px wide (the All chip was 41);
     4 · an open card's foot: no band of another tone; the rows that scroll under it blur and fade out over a soft edge above it (the card's own backdrop, whatever the hour);
     5 · TV: the card's fine print at 18px.
   Tokens are R13's; no custom property on <body>, no [style*=], no :has(). */

/* ---------- 1 · "N more ›" ---------- */
/* #ctx is a centred flex row that holds the strip; the control is its second child. The strip shrinks to leave it room (flex: 0 1 auto, min-width: 0), so it never covers a chip's text. Same skin as the topic row's capsule and Back (glass roles --lg-*). */
html.r13 body #ctx > .ot-more-n { position: relative; flex: none; align-self: center; display: inline-flex; align-items: center; gap: calc(var(--s1) * var(--ui-scale)); height: var(--q-ctl); min-width: var(--q-ctl); margin-left: calc(var(--s3) * var(--ui-scale)); padding: 0 calc(var(--s3) * var(--ui-scale)) 0 calc(var(--s4) * var(--ui-scale));
  border: 0; border-radius: var(--r-capsule); background-color: rgba(28, 28, 32, .9); background-image: none; color: var(--lg-fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), var(--lg-shadow-s);   /* by Night: a solid dark capsule with a hairline (the glass tint alone had no edge against the dark map) */ font: var(--ty-callout); font-weight: 600; letter-spacing: var(--tr-callout); white-space: nowrap; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
html.r13 body #ctx > .ot-more-n[hidden] { display: none; }
html.r13 body #ctx > .ot-more-n svg { width: calc(18px * var(--ui-scale)); height: calc(18px * var(--ui-scale)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--mc-ease-fade, ease-out); }
html.r13 body #ctx > .ot-more-n:hover svg { transform: translateX(2px); }
html.r13 body #ctx > .ot-more-n:focus-visible { outline: 2px solid var(--lg-fg); outline-offset: 2px; }
html.r13 body.glass-day #ctx > .ot-more-n { background-color: #fff; color: #16161b; box-shadow: var(--mf-sh-thumb, 0 6px 18px -8px rgba(0, 0, 0, .45)); }
@media (prefers-contrast: more) { html.r13 body #ctx > .ot-more-n { box-shadow: inset 0 0 0 1.5px currentColor; } }
@media (prefers-reduced-motion: reduce) { html.r13 body #ctx > .ot-more-n svg { transition: none; } }
body.cine #ctx > .ot-more-n { visibility: hidden; pointer-events: none; }

/* ---------- 2 · the rings toggle ---------- */
/* js/levels.js syncFilters: "Distance rings" always, with its numbers ("2 · 5 · 10 km") where the row has room for them (the row gets .ot-nonum when it would scroll with them). The row also gives the toggle a little room: 2px between its buttons (4 was), the panel runs to the next button as the bottom strip does (it stopped 24rem short of the edge), and on the TV the buttons keep 12px at each side (17 was): measured at the four sizes, log-P3.md, Review fixes. */
html.r13 body .gm-flt .gf-row .gf-x small { margin-left: .4em; font-size: .86em; font-weight: 500; opacity: .62; }
html.r13 body .gm-flt .gf-row .gf-x.on small { opacity: .8; }
html.r13 body .gm-flt .gf-row.ot-nonum .gf-x small { display: none; }
html.r13 body[data-level=area] .gm-flt .gf-row { gap: calc(2px * var(--ui-scale)); }
html.r13.tv body[data-level=area] .gm-flt .gf-row button { padding-inline: calc(7px * var(--ui-scale)); }
@media (orientation: landscape) { html.r13 body.has-cta[data-level=area] #lv-map .gm-flt { right: calc(var(--pad) + 12.4rem + var(--safe-r) + var(--cta-w, 11rem) + var(--s4) * var(--ui-scale)); } }

/* ---------- 3 · chips are at least 44px wide ---------- */
html.r13 body #ui > #sdock.ot .ot-chip { min-width: var(--q-ctl); }

/* ---------- 4 · an open card's foot ---------- */
/* The foot (More / Less, Documents, the disclaimer line) had a band of its own in a tone that was not the card's (#1c1c1e at night, #e9e9e6 by day) and cut the row under it mid-text. It has no fill now. Behind it a layer takes the card's own backdrop (a blur of what is under it: the card, and the rows
   scrolling there) and a mask lets it in over 28px, so the rows soften and fade out above the foot instead of being cut, and the foot reads as part of the card at any hour and over any map. A card that does not scroll shows nothing under it to blur. */
html.r13 body #lv-map .info.ot-open > .ot-foot { isolation: isolate; }
html.r13 body #lv-map .info.ot-open > .ot-foot::before { content: ""; position: absolute; z-index: -1; left: calc(var(--s3) * -1); right: calc(var(--s3) * -1); bottom: 0; top: 0; pointer-events: none;   /* (4 November, otter, third pass, A2-N1) top: 0, was -30px: the fade now lies inside the foot's own top padding (just below), so no row ever stands under it, not even the last one at the end of the scroll */
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 calc(30px * var(--ui-scale))); mask-image: linear-gradient(180deg, transparent, #000 calc(30px * var(--ui-scale))); }
html.r13 body #lv-map .info.ot-open > .ot-foot { padding-top: calc(var(--s2) + 30px * var(--ui-scale)); }   /* (4 November, otter, third pass, A2-N1) the fade zone (30px) is the foot's own top padding: a row that is scrolled to the end, or that the card scrolls to when More is tapped (js/levels.js foldScroll), stops above it */
@media (prefers-reduced-transparency: reduce) { html.r13 body #lv-map .info.ot-open > .ot-foot::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lg-solid, #1c1c1e); } }

/* ---------- 5 · TV: the card's fine print ---------- */

/* ---------- 6 · a merged ring is named on the map (an Area list) ---------- */
/* js/plus/gm.js KindRing label(): a ring of crowded places carries one name, its nearest member's and the number of the others ("Theobroma Bakery +5"), placed by the label engine (js/ux/labels.js) in the list's own order. It exists only while a list is on
   (#lv-map.ot-named, js/levels.js catLens) and shows once the engine has placed it (.lbl): until then it would stand at its natural spot over the ring. The look is a place's own name (css/ux/area.css .gm-lab). */
html.r13 body #lv-map .kr-lab { display: none; position: absolute; left: 22px; top: 0; transform: translateY(-50%); max-width: 24em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none;   /* (4 November, otter, third pass, A2-N3) 24em, was 15em: the text is cut in js/levels.js ringName so that its "+N more" suffix always shows; the width must not cut it again */
  font: 600 max(.8rem, 12px)/1 var(--sans); font-size: calc(12px * var(--ty-lbl-scale, 1)); color: var(--text-hi); text-shadow: var(--halo, var(--gm-halo)); }
html.r13 body #lv-map.ot-named .kr-lab { display: block; }
html.r13 body #lv-map .kr-lab:not(.lbl) { opacity: 0; }
html.r13 body #lv-map .kr-lab[data-lbl-hide] { display: none; }

/* ---------- 5b · TV: the card's fine print at 18px ---------- */
/* The TV card runs at --ui-scale 1.25 (css/otter/cards.css 7), which left its caption and foot roles at 15 and 16px: the smallest type on a screen read from across a room (the chips are 25px, the strip 27px). The two roles are 18px on the TV card; the card's room was
   measured again with them (log-P3.md, Review fixes). Spacing and every other role keep the card's scale. */
html.r13.tv body #lv-map .info { --ty-cap: 500 18px/1.3 var(--sans); --ty-foot: 400 18px/1.3 var(--sans); }

/* ---------- 7 · the City legend's replay button ---------- */
/* its glyph (js/plus/story.js, icon "replay") is drawn on a smaller part of its box than the arrow was: the box is 44px (css/ux/market.css .sx-rp), the glyph 1.4rem so it reads as a button */
html.r13 body #ctx .sx-rp svg { width: 1.4rem; height: 1.4rem; }

/* the route's two end names on a growth card (Hebbal, Silkboard): 15px on the TV card, 18 like the rest of its fine print */
html.r13.tv body #lv-map .info .gs-viz > p { font-size: 18px; }

/* ---------- 8 · a topic row that would scroll is tighter ---------- */
/* js/app.js markOverflow puts .ot-tight on the row when its chips are wider than the room between the capsule and the tally: 8px of padding each side (12) and a 2px gap (4), the type unchanged, every chip still the full 44px tall (75 on the TV) and 44 wide at least. The covered dot moves 2px
   nearer the edge so it keeps clear of the label. At 1180x820 this brings the Area's nine chips into the row; on the TV the City row fits and the Area row, which needs 1,170px of the 949 it has, still scrolls sideways under its edge fade as before. */
html.r13 body #ui > #sdock.ot .ot-row.ot-tight { gap: calc(2px * var(--ui-scale)); }
html.r13 body #ui > #sdock.ot .ot-row.ot-tight .ot-chip { padding: 0 calc(8px * var(--ui-scale)); }
html.r13 body #ui > #sdock.ot .ot-row.ot-tight .ot-dot { right: calc(2px * var(--ui-scale)); }

/* ---------- 9 · an open card that scrolls: the x stays in sight, the top edge softens, a cue says there is more below ---------- */
/* (5 November, otter, fourth pass, A3-S3 / B3-1, items 1 and 2) With More open the card scrolls inside itself (js/levels.js foldScroll), and its close x, an absolute child, scrolled away with the content (Prices: y -72 at 1280x800, -103 on the TV) so the guest had to tap Less first.
   While the card is open the x is a sticky item: it stays where it always stood, 4px in from the card's top and right edge, whatever the scroll. In the flow it takes no room (its margins cancel the card's padding, its own height and the flex gap), so at rest every row stands exactly where it stood; the proof is a before/after list of the card's rows
   in log-P3.md. --ot-pt is the card's own top padding (the photo cards, .has-hi, have none: their picture runs to the edge). Scoped to .ot-open, so a card with its More folded is unchanged. */
html.r13 body #lv-map .info.ot-open { --ot-pt: var(--card-pad); }
html.r13 body #lv-map .info.ot-open.has-hi { --ot-pt: 0px; }
html.r13 body[data-level=century] #lv-map .info.ot-open { --ot-gap: 0px; }   /* the Century card is a block (no flex gap between its rows); City, Micro-market and Area cards are flex columns with an 8px gap */
html.r13 body #lv-map .info.ot-open > .x { position: sticky; top: calc(var(--s1) - var(--ot-pt)); right: auto; left: auto; align-self: flex-end; flex: none; z-index: 4; isolation: isolate;   /* top: a sticky item measures from the scroll box's content edge, which lies --ot-pt inside the card's top */
  margin: calc(var(--s1) - var(--ot-band) - var(--ot-gap, var(--s2))) calc(var(--s1) - var(--card-pad)) calc(var(--ot-pt) - var(--s1) - var(--q-ctl) - var(--ot-gap, var(--s2))) auto; }   /* (5 November, otter, fifth pass) the top margin now also takes back the band's height (the band, below, is the card's ::before and stands in the flow before the x); the sum is what it was */
/* the top band (5 November, otter, fifth pass, A4-S1 / B4-4). Once the card has scrolled far enough for a line to reach the x (.ot-st, js/levels.js foldCue and foldBand: the first line that shares the x's columns) a band lies across its full width at the top: solid in the card's colour for the x's height (the x's 4px, its 44px box, 4px again = --ot-band) and fading to nothing over 28px below, so a row leaves the picture
   cleanly beneath it and never runs under the x (the fourth pass's 36px haze and a disc under the x left a value half covered: Trust "3,000+", Prices "+62%", Compare "₹11,900" and Compare's Full table). The solid part is the card's own ::before, a sticky item in the flow before the x (z 3, under the x's 4): it takes no room (height --ot-band, its bottom margin 0, and the x's top margin takes the
   band's height and the flex gap back, see above; the sum is what the x alone had), it catches taps (a row beneath it cannot be tapped) and closes nothing: the card is its target, only the x's own 44px box is the close. The fade is the x's ::after (pointer-events none: a row that shows through it can still be tapped). Both are hidden (visibility) at the top of the scroll, so the card at rest is as it was.
   Block (Century) and flex cards (City, Micro-market, Area) take the same numbers: the margins here never collapse (the bottom margin is 0). */
html.r13 body #lv-map .info.ot-open { --ot-band: calc(var(--s1) * 2 + var(--q-ctl)); }
/* (7 November, otter, sixth pass, B5-M2) THE BAND'S FILL IS THE CARD'S OWN TINT OVER AN OPAQUE BASE, no blur. The card is a glass (80% white by Day, 96% graphite at Dusk and Night), and a plain 80% fill let a row show through at 20% by Day; the fifth pass hid it with a 12px backdrop blur, a third backdrop-filter on the card (B5: one more render pass per frame and two more layers while an open card scrolls, not measurable on a Mac, not ruled out on a tablet). The same tint over an opaque base hides a row as well and is not a filter.
   --ot-base is the base, the colour the card's own tint stands on: a dark grey by Day (body.glass-day, below: the dark map the Day card's 80% white lies on) and the graphite of the card (#1c1c1e) at Dusk and Night, where the 96% tint over it is the card's colour. On the card, as --ot-band is (never on <body>). */
html.r13 body #lv-map .info.ot-open { --ot-base: #1c1c1e; }
html.r13 body.glass-day #lv-map .info.ot-open { --ot-base: #46464a; }   /* (7 November, otter, seventh pass, B6-M2) what the Day card's own 80% white stands on: the Day map under a card is dark, about 70 (read off the card's own colour in its left margin below the band, 4 sizes' worth: Prices 218, Compare 217, Trust 221 at 1280, 215 to 218 on the TV), so the card's surface is 218 and the band (80% white over 70,70,74) is 218 too. The sixth pass's base, #d4d5da, was tuned on a reading taken inside the fade under the band (246), which is white at 80% over the card and not the card: the band stood 25 to 33 levels lighter than the Micro-market's cards (B6) */
html.r13 body #lv-map .info.ot-open::before { content: ""; display: block; position: sticky; top: calc(var(--ot-pt) * -1); z-index: 3; flex: none; align-self: stretch; height: var(--ot-band); margin: calc(var(--ot-pt) * -1) calc(var(--card-pad) * -1) 0; background: linear-gradient(var(--surface-card), var(--surface-card)), var(--ot-base, #1c1c1e); pointer-events: auto; visibility: hidden; opacity: 0; transition: opacity 160ms ease-out, visibility 0s linear 160ms; }
html.r13 body #lv-map .info.ot-open.ot-st::before { visibility: visible; opacity: 1; transition: none; }   /* on at once (a line is about to reach the x), off in 160ms */
html.r13 body #lv-map .info.ot-open > .x::after { content: ""; position: absolute; z-index: -1; left: -100vw; right: calc(var(--s1) * -1); top: calc(var(--q-ctl) + var(--s1)); height: calc(28px * var(--ui-scale)); border-radius: 0; pointer-events: none; visibility: hidden; opacity: 0;
  background: linear-gradient(180deg, var(--surface-card), transparent), linear-gradient(180deg, var(--ot-base), transparent); transition: opacity 160ms ease-out, visibility 0s linear 160ms; }   /* (7 November, otter, seventh pass) the fade starts from the band's own colour, the tint over its base (two layers, as the band is): over the card's dark Day map the tint alone is white at 80% over a card of 218, which began the fade at 246, a lighter stripe 28 levels above the band that now stands at 218 */
html.r13 body #lv-map .info.ot-open.ot-st > .x::after { visibility: visible; opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { html.r13 body #lv-map .info.ot-open::before, html.r13 body #lv-map .info.ot-open > .x::after { transition: none; } }
/* the card's own colour is a glass (80% white by day, 96% graphite at night): a row under the band would show through at 20% by day. (Sixth pass: the band is the tint over an opaque base now, see --ot-base above; the foot keeps its own blur.) */
@media (prefers-reduced-transparency: reduce) { html.r13 body #lv-map .info.ot-open::before { background: var(--lg-solid, #1c1c1e); }
  html.r13 body #lv-map .info.ot-open > .x::after { background: linear-gradient(180deg, var(--lg-solid, #1c1c1e), transparent); } }   /* (7 November, otter, sixth pass, A5-m-4) the fade below starts from the band's own solid (it started from --surface-card, a lighter strip by Day and a darker one at night showed under the band) */
/* the cue: "More below" with a down chevron, a quiet capsule in the foot's fade band at its right end (the foot is sticky, so it stays at the card's bottom). It shows only while content lies below (.ot-bl) and is gone at the end of the scroll. It looks like a button because it is one: a tap scrolls on
   by about one view (js/levels.js foldMore). Same skin as More (hairline, no fill of its own beyond the card's colour), 32px high with a 44px hit box, press and sound from the page's auto-map like every button. The band is the foot's top padding, so the cue takes no room from the disclaimer or from Less. */
html.r13 body #lv-map .info.ot-open > .ot-foot > .ot-below-b { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--q-chip); margin: 0; padding: 0 var(--s3) 0 var(--s4); border: 0; border-radius: var(--r-capsule);
  background-color: var(--surface-card); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--fg); font: var(--ty-callout); letter-spacing: var(--tr-callout); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 160ms ease-out, visibility 0s linear 160ms; }
html.r13 body #lv-map .info.ot-open.ot-bl > .ot-foot > .ot-below-b { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
html.r13 body #lv-map .info.ot-open > .ot-foot > .ot-below-b::after { content: ""; position: absolute; inset: calc(-6px * var(--ui-scale)) calc(-8px * var(--ui-scale)); }   /* a 44px hit box around the 32px capsule, as More has */
html.r13 body #lv-map .info.ot-open > .ot-foot > .ot-below-b svg { width: calc(16px * var(--ui-scale)); height: calc(16px * var(--ui-scale)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.r13 body #lv-map .info.ot-open > .ot-foot > .ot-below-b:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (prefers-contrast: more) { html.r13 body #lv-map .info.ot-open > .ot-foot > .ot-below-b { box-shadow: inset 0 0 0 1.5px currentColor; } }
@media (prefers-reduced-motion: reduce) { html.r13 body #lv-map .info.ot-open > .ot-foot > .ot-below-b { transition: none; } }
html.r13 body #lv-map .info :is(.info-ghost, .mm-ghost) .ot-below-b { display: none !important; }   /* a card leaving as a copy never carries the cue */
