/* The look is direction A (design/directions/a). Every value is a variable from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: var(--w-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: var(--s-1); }
:focus-visible { outline: var(--border) solid var(--ink); outline-offset: var(--border); }
.sr { position: absolute; width: var(--hair); height: var(--hair); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- shell ---------- */

.shell { max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-5); }
.name { font-family: var(--font-display); font-size: var(--t-name); text-decoration: none; letter-spacing: var(--track-title); }
.top-nav { display: flex; gap: var(--s-5); font-size: var(--t-small); font-weight: var(--w-medium); }
.top-link { text-decoration: none; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.top-link:hover, .top-link.is-active { color: var(--ink); }
.top-link.is-active { text-decoration: underline; text-decoration-thickness: var(--border); text-decoration-color: var(--marker); text-underline-offset: var(--s-2); }

.tabs { display: none; }

main { padding-bottom: var(--s-8); }

/* ---------- the crow, c1 (app/crow.js). It always sits on something: the mark on the name's baseline, on
   a hairline wire, the full cut on the header's floor line or on a card's top edge. Colours are roles: ink,
   paper for the eye, the marker for its one gift. ---------- */

.crow { display: block; flex: none; overflow: visible; }
.crow.is-mark { width: var(--crow-mark); height: var(--crow-mark); }
.crow.is-big { width: var(--crow-big); height: var(--crow-big); }
.crow .ink, .crow .pupil { fill: var(--ink); }
.crow .limb { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.crow .eye { fill: var(--paper); }
.crow .accent { fill: var(--marker); }

/* the top bar: the mark and the name stand on one baseline (the mark's bottom edge is its toes), and a
   hairline wire runs under both, a little past each end. The mark is taller than the name's ascent, so the
   baseline sits the mark's height from the top of the name, and the wire's top is there. */
.name { position: relative; display: inline-flex; align-items: baseline; gap: var(--s-2); }
.name::after { content: ""; position: absolute; left: calc(-1 * var(--s-2)); right: calc(-1 * var(--s-2)); top: var(--crow-mark); height: var(--hair); background: var(--ink); pointer-events: none; }

/* the first scan while it reads (the taste is still being mapped, nothing else to show): the full cut stands
   in for the mark, at the right, on the header's floor, an ink hairline; the name stands alone above it.
   When the results land, app.js drops .is-reading and the mark comes back beside the name, on its wire. */
.top > .crow.is-big { display: none; }
.top.is-reading { align-items: flex-end; padding-bottom: 0; border-bottom: var(--hair) solid var(--ink); }
.top.is-reading > .name { align-self: flex-start; }
.top.is-reading > .name > .crow, .top.is-reading > .name::after { display: none; }
.top.is-reading > .crow.is-big { display: block; }

/* ---------- type ---------- */

.display {
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: var(--w-regular);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  margin-top: var(--s-5);
}
.display em, .display .count { font-style: italic; }

.page-title { font-family: var(--font-display); font-size: var(--t-ask); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); margin-top: var(--s-5); }

.lead { font-size: var(--t-lead); margin-top: var(--s-4); max-width: var(--measure); }
.lede { margin-top: var(--s-3); max-width: var(--measure); color: var(--muted); }
.fine { font-size: var(--t-small); color: var(--muted); margin-top: var(--s-3); }
.aside { font-family: var(--font-display); font-style: italic; font-size: var(--t-said); margin-top: var(--s-6); }
.quiet { margin-top: var(--s-4); color: var(--muted); }

/* ---------- 1. promise, 2. taste ---------- */

.hero .display { max-width: var(--hero-ch); }
.hero { padding-bottom: var(--s-8); }
.cta { display: block; min-width: var(--button-min); margin-top: var(--s-6); }

.step { max-width: var(--measure); }
.step textarea, .setting textarea, .setting input[type="email"], .ask input, .ready-email input {
  width: 100%;
  min-height: var(--control-h);
  padding: var(--s-3) var(--s-4);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-control);
  background: var(--card);
  resize: vertical;
}
.step textarea { display: block; margin-top: var(--s-5); }
textarea::placeholder, input::placeholder { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.chips:empty { display: none; }
.word {
  padding: var(--s-1) var(--s-3);
  background: var(--marker);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-chip);
  font-size: var(--t-small);
  font-weight: var(--w-bold);
  cursor: pointer;
}

/* ---------- 2. the picker (S11): groups, the specifics under them, never, anything else ---------- */

.pick-form { padding-bottom: 0; }
.picker { margin-top: var(--s-5); }
.pick-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.pick-step + .pick-step, .picker + .pick-step, .sheets + .pick-step { margin-top: var(--s-7); }
.step-label { display: block; font-family: var(--font-display); font-size: var(--t-title); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); padding: 0; }

.tiles { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.tiles.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr)); gap: var(--s-3); margin-top: 0; }
/* tiles in one row share a height, so a one-line tile beside a two-line one doesn't sit short */
.tiles.groups > li { display: flex; }
.tiles.groups > li > .tile { flex: 1; }
.tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  padding: var(--s-2) var(--s-4);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--card);
  font-weight: var(--w-medium);
  line-height: var(--lh-title);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.tile input { position: absolute; opacity: 0; width: var(--hair); height: var(--hair); margin: 0; pointer-events: none; }
.tile:has(input:focus-visible) { outline: var(--border) solid var(--ink); outline-offset: var(--border); }
.tile:active { transform: translateY(var(--border)); }
.tile.group {
  display: flex;
  min-height: var(--tile-h);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-control);
  font-family: var(--font-display);
  font-size: var(--t-said);
  font-weight: var(--w-regular);
  letter-spacing: var(--track-title);
}
.tile.sub { font-size: var(--t-small); }
.tile:has(.tile-note) { flex-direction: column; align-items: flex-start; justify-content: center; }
.tile-note { font-family: var(--font-body); font-size: var(--t-small); font-weight: var(--w-regular); letter-spacing: normal; color: var(--muted); }
.tile[data-state="passion"] .tile-note { color: inherit; }
/* picked: the marker; passion: filled ink, like the primary button; never: struck through on paper */
.tile[data-state="on"] { background: var(--marker); }
.tile[data-state="passion"] { background: var(--ink); color: var(--card); font-weight: var(--w-bold); }
.tile.never { background: transparent; font-size: var(--t-small); }
.tile[data-state="never"] { background: var(--paper); border-style: dashed; text-decoration: line-through; text-decoration-thickness: var(--border); color: var(--muted); }

.key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: 0; font-size: var(--t-small); color: var(--muted); }
.key-tile { min-height: 0; padding: var(--s-1) var(--s-3); font-size: var(--t-small); color: var(--ink); cursor: default; }
.key-tile:active { transform: none; }
.key span:not(.key-tile) { margin-right: var(--s-3); }

.note.cap:empty { display: none; }
.note.cap { margin-top: var(--s-4); font-weight: var(--w-medium); }

/* with the script: "never" only for the groups with nothing picked, once something is picked; it fades in */
.js [data-nevers][data-empty], .js .nevers [data-closed] { display: none; }
.js [data-nevers] { animation: show var(--dur-fast) var(--ease) both; }
@keyframes show { from { opacity: 0; } }

.pick-more { max-width: var(--measure); }
/* the last revealed row never sits under the sticky button bar (cold run, 4 Nov) */
.pick-form .picker { padding-bottom: var(--pick-go-h); }
.pick-form .picker + .pick-step { margin-top: 0; }
.pick-more input, .setting input[type="text"] {
  display: block;
  width: 100%;
  min-height: var(--control-h);
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-4);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-control);
  background: var(--card);
}
.pick-go {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: var(--s-6);
  padding-block: var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: var(--hair) solid var(--rule);
}
.pick-go .cta { margin-top: 0; }
/* keyboard focus and scrolled-to tiles stay clear of the sticky button */
html:has(.pick-go) { scroll-padding-bottom: calc(var(--pick-go-h) + var(--s-4)); }

/* S12: the cities as tiles, one tap each (radio inputs). A chosen city takes the marker, with or without the script. */
.city-step { margin-top: var(--s-6); }
.city-step .tiles { margin-top: var(--s-4); }
.tile.city:has(input:checked) { background: var(--marker); }
ul.tiles.groups.cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { ul.tiles.groups.cities { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.setting-city .tiles { margin-top: var(--s-3); }

.settings .picker { margin-top: var(--s-3); }
.settings .tiles.groups { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr)); }
.settings .pick-step + .pick-step, .settings .sheets + .pick-step { margin-top: var(--s-5); }
.settings .step-label { font-size: var(--t-said); }
.settings .tile.group { min-height: var(--control-h); font-size: var(--t-lead); }

/* S4: an English rendering of a Dutch listing, marked, with the listing's own title and text one tap away */
.orig { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.orig summary { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--control-h); cursor: pointer; list-style: none; color: var(--ink); font-weight: var(--w-medium); }
.orig summary::-webkit-details-marker { display: none; }
/* a small chevron drawn from two borders: right when closed, down when open (cold run, 4 Nov) */
.orig summary::before { content: ""; flex: none; width: var(--s-2); height: var(--s-2); border-right: var(--border) solid currentColor; border-bottom: var(--border) solid currentColor; transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease); }
.orig[open] summary::before { transform: rotate(45deg); }
.orig .open-label, .orig[open] .closed-label { display: none; }
.orig[open] .open-label { display: inline; }
.orig-title { color: var(--ink); font-weight: var(--w-medium); }
.orig-desc { margin-top: var(--s-1); overflow-wrap: anywhere; }
.orig + .when { margin-top: 0; }
.orig[open] { margin-bottom: var(--s-3); }

/* the card's chip when the pick behind it is a passion: filled ink, the picker's passion tile */
.chip.is-passion { background: var(--ink); color: var(--card); }

/* ---------- buttons, links, notes ---------- */

.btn {
  flex: 1 1 auto;
  min-height: var(--control-h);
  padding: var(--s-2) var(--s-4);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-control);
  background: transparent;
  font-weight: var(--w-medium);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--paper); }
.btn:active { transform: translateY(var(--border)); }
.btn:disabled { opacity: 0.5; cursor: default; }
.more, .more:hover { background: var(--marker); }
.more[aria-pressed="true"], .more[aria-pressed="true"]:hover, .send, .send:hover { background: var(--ink); color: var(--card); }
.link { display: inline-flex; align-items: center; min-height: var(--control-h); background: none; border: 0; padding: var(--s-1); text-decoration: underline; text-underline-offset: var(--s-1); font-weight: var(--w-medium); cursor: pointer; }
.note { flex-basis: 100%; font-size: var(--t-small); margin-top: var(--s-2); }
.note.bad { color: var(--error); }

/* ---------- the card ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min)), 1fr));
  gap: var(--s-7) var(--s-5);
  margin-top: var(--s-7);
}
.stack { display: grid; gap: var(--s-7); max-width: var(--measure-wide); margin-top: var(--s-6); }

.card { position: relative; min-width: 0; transition: transform var(--dur-standard) var(--ease); }
.clip {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-card);
  transition: height var(--dur-standard) var(--ease);
}
.body { display: flex; flex-direction: column; height: 100%; padding: var(--s-6) var(--s-6) var(--s-5); transition: opacity var(--dur-fast) var(--ease); }
.chip {
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--s-6);
  max-width: calc(100% - 2 * var(--s-6));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%) rotate(var(--tilt-a));
  padding: var(--s-1) var(--s-3);
  background: var(--marker);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-chip);
  font-size: var(--t-small);
  font-weight: var(--w-bold);
  transition: transform var(--dur-standard) var(--ease), opacity var(--dur-fast) var(--ease);
}
.title { font-family: var(--font-display); font-size: var(--t-title); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); overflow-wrap: anywhere; }
.title a { text-decoration: none; }
.title a:hover { text-decoration: underline; text-decoration-thickness: var(--border); }
.when { margin-top: var(--s-3); font-weight: var(--w-bold); }
.area { color: var(--muted); }
.line { margin-top: var(--s-3); margin-bottom: var(--s-5); overflow-wrap: anywhere; }
.line:empty { display: none; }
.said {
  background-color: transparent;
  color: inherit;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--t-said);
  line-height: var(--lh-title);
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 100% var(--marker-h);
  padding-inline: var(--s-1);
  margin-inline: calc(-1 * var(--s-1));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; }
.acts[hidden] { display: none; }
/* the thanks after a reply, where the buttons were, for a moment (cold run, 4 Nov) */
.flash { display: flex; align-items: center; min-height: var(--control-h); margin-top: auto; font-family: var(--font-display); font-style: italic; font-size: var(--t-said); line-height: var(--lh-title); animation: show var(--dur-fast) var(--ease) both; }
.flash[hidden] { display: none; }
.meta { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.from { color: var(--ink); font-weight: var(--w-bold); }
.dot { width: var(--dot); height: var(--dot); border-radius: var(--r-chip); background: var(--marker); border: var(--hair) solid var(--ink); }
.details { margin-bottom: var(--s-5); border-top: var(--hair) solid var(--rule); }
.details > div { display: flex; gap: var(--s-4); padding-block: var(--s-2); border-bottom: var(--hair) solid var(--rule); }
.details dt { flex: 0 0 var(--s-8); color: var(--muted); font-size: var(--t-small); line-height: var(--lh-title); padding-top: var(--s-1); }
.details dd { min-width: 0; overflow-wrap: anywhere; }

.stub {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease);
}
.stub p { font-family: var(--font-display); font-style: italic; font-size: var(--t-said); }
.is-out .body { opacity: 0; pointer-events: none; } /* a faded card's links never take a tap meant for Undo (Quality's phone pass) */
.is-out .stub { opacity: 1; visibility: visible; }
.is-out .chip { opacity: 0; pointer-events: none; }
.is-folded { align-self: start; }
.is-folded .body { display: none; }
.is-folded .clip { height: auto; }
.is-folded .stub { position: static; }

@media (hover: hover) {
  .card:hover { transform: translateY(var(--lift)); }
  .card:hover .chip { transform: translateY(-50%) rotate(var(--tilt-b)); }
  .card.is-out:hover { transform: none; }
}

/* arrival: soft spring up, then the marker swipes across the reason */
.js .card { animation: arrive var(--dur-standard) var(--ease) both; animation-delay: calc(var(--dur-fast) + var(--i) * var(--stagger)); }
/* audit 13 Nov (readability 10): "You said …" on its own line under the description, as on the phone card */
.line .desc { display: block; margin-bottom: var(--s-2); }
.js .said { animation: swipe var(--dur-slow) var(--ease) both; animation-delay: calc(var(--dur-standard) + var(--i) * var(--stagger)); }
@keyframes arrive { from { opacity: 0; transform: translateY(var(--rise)) scale(var(--settle)); } }
@keyframes swipe { from { background-size: 0% var(--marker-h); } }

/* first scan: cards wait for the reading line; the last line is a safety net if the script fails */
.js .cards[data-wait] .said { animation: none; }
.js .cards[data-wait] .card { animation: failsafe 0ms var(--wait-failsafe) forwards; opacity: 0; }
@keyframes failsafe { to { opacity: 1; } }

/* ---------- 3. the reading wave ---------- */

.count { display: inline-grid; }
.count > * { grid-area: 1 / 1; }
.count-sizer { visibility: hidden; }

.wave { margin-top: var(--s-5); }
.wave canvas { display: block; width: 100%; height: var(--wave-h); }
.wave-days { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: var(--s-1); font-size: var(--t-small); color: var(--muted); }
/* decision 7 (Lina, 13 Nov; design/review/picks-close, proposal-r2.css): the picks page's two-week strip, its headline and
   caption. 14 day columns; on a phone every other day is named, each keeping its slot. */
.wave.is-two-weeks .wave-days { grid-template-columns: repeat(14, 1fr); }
@media (max-width: 720px) { .wave.is-two-weeks .wave-days .odd { visibility: hidden; } }
.wave-cap { margin: var(--s-1) 0 0; font-size: var(--t-small); color: var(--muted); }
.screen-scan .display.is-kept { font-size: var(--t-kept); }
.screen-scan .display .kept-u { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: var(--kept-u); text-underline-offset: var(--kept-u); text-decoration-skip-ink: none; }

.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  margin-top: var(--s-6);
}
/* hidden while the first scan is still reading: the ask comes after a result */
.ask[hidden] { display: none; }
.ask h2 { font-family: var(--font-display); font-size: var(--t-ask); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.ask form, .ask .ask-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); flex: 1 1 var(--form-min); max-width: var(--form-max); }

/* Sign in with Hello Minds (S1): the primary button with the Hello Minds mark, and the one line on what is shared */
.signin { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); flex: 0 1 auto; color: var(--card); text-decoration: none; }
.signin .mark { width: var(--mark); height: var(--mark); flex: none; }
.signin[aria-busy="true"] { opacity: 0.5; }
.shared { flex-basis: 100%; margin-top: 0; }
.signin-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); max-width: var(--form-max); margin-bottom: var(--s-5); }
.empty .signin-row { margin-top: var(--s-5); margin-bottom: 0; }
.signout { margin-top: var(--s-6); }
.ask input { flex: 1 1 var(--field-min); width: auto; min-width: 0; padding-block: var(--s-2); }
.ask .send { flex: 0 1 auto; }

/* ---------- 4. inbox, empty ---------- */

.empty { max-width: var(--measure-wide); }
.status-card {
  margin-top: var(--s-6);
  padding: var(--s-5) var(--s-6);
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: var(--r-card);
}
.status-card p + p { margin-top: var(--s-2); }

/* ---------- settings ---------- */

.settings { max-width: var(--measure); margin-top: var(--s-5); border-top: var(--hair) solid var(--rule); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-4); border-bottom: var(--hair) solid var(--rule); }
.setting.stack { display: block; }
/* B79: a switch with a line under it ("I speak Dutch"), the line on its own row */
.setting-wrap { flex-wrap: wrap; }
.setting-wrap .fine { flex-basis: 100%; margin: 0; }
.setting.stack textarea, .setting.stack input { margin-top: var(--s-2); }
.label { font-weight: var(--w-medium); }
.value { color: var(--muted); }
.mind-line { padding-block: var(--s-3); border-bottom: var(--hair) solid var(--rule); font-size: var(--t-small); color: var(--muted); }
.saved { min-height: calc(var(--t-small) * var(--lh-body)); margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }

.switch {
  appearance: none;
  position: relative;
  flex: none;
  width: var(--switch-w);
  height: calc(var(--s-5) + var(--s-1));
  margin: 0;
  border: var(--border) solid var(--ink);
  border-radius: var(--r-chip);
  background: var(--card);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.switch::after {
  content: "";
  position: absolute;
  top: var(--hair);
  left: var(--hair);
  width: calc(var(--s-5) - var(--border));
  height: calc(var(--s-5) - var(--border));
  border-radius: var(--r-chip);
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease);
}
.switch:checked { background: var(--marker); }
.switch:checked::after { transform: translateX(var(--s-4)); }

.js .no-js-only { display: none; }

/* ---------- phone: bottom tabs, full-width buttons ---------- */

@media (max-width: 720px) {
  .top-nav { display: none; }
  body.has-nav { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
  .tabs {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    border-top: var(--hair) solid var(--rule);
  }
  .tab { display: grid; place-items: center; font-size: var(--t-small); font-weight: var(--w-medium); color: var(--muted); text-decoration: none; }
  .tab.is-active { color: var(--ink); font-weight: var(--w-bold); }
  .cta { width: 100%; }
  .ask form, .ask .ask-act { flex-basis: 100%; }
}

/* ---------- privacy and terms (S10), deleting everything ---------- */

.legal { max-width: var(--measure); margin-top: var(--s-5); }
.legal h1 { font-family: var(--font-display); font-size: var(--t-ask); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.legal h2 { margin-top: var(--s-6); font-family: var(--font-display); font-size: var(--t-said); font-weight: var(--w-regular); line-height: var(--lh-title); }
.legal p, .legal ul { margin-top: var(--s-3); }
.legal ul { list-style: disc; padding-left: var(--s-5); }
.legal li + li { margin-top: var(--s-2); }
.legal code { font-size: var(--t-small); }
.legal-other { margin-top: var(--s-6); }
.danger { max-width: var(--measure); margin-top: var(--s-6); border-top: var(--hair) solid var(--rule); padding-top: var(--s-3); }
.danger summary { list-style: none; color: var(--error); }
.danger summary::-webkit-details-marker { display: none; }
.danger form { margin-top: var(--s-4); }
.danger .btn { flex: none; min-width: var(--button-min); border-color: var(--error); color: var(--error); }

/* ---------- S15 (6 Nov 2026): the sheet, one panel over the page for the picker's groups and the sign-in ask.
   From the bottom on a phone, centred on a wide screen. Without the script it is a section in the page. ---------- */

.sheet { margin-top: var(--s-6); }
.sheet-title { font-family: var(--font-display); font-size: var(--t-title); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.sheet-panel > * + * { margin-top: var(--s-4); }
.sheet-go { position: sticky; bottom: 0; margin-top: var(--s-5); padding-block: var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); background: var(--paper); border-top: var(--hair) solid var(--rule); }
.sheet-go .cta { margin-top: 0; width: 100%; }
.js .sheet { display: none; margin: 0; }
.js .sheet.is-open {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--scrim);
  animation: show var(--dur-fast) var(--ease) both;
}
.js .sheet.is-open .sheet-panel {
  width: 100%;
  max-height: var(--sheet-max-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s-6) var(--gutter) 0;
  background: var(--paper);
  border: var(--border) solid var(--ink);
  border-bottom: 0;
  border-radius: var(--r-card) var(--r-card) 0 0;
  animation: rise-in var(--dur-standard) var(--ease) both;
}
.js .sheet.is-open .sheet-panel:focus { outline: none; }
@keyframes rise-in { from { transform: translateY(var(--rise)); opacity: 0; } }
html.has-sheet { overflow: hidden; }
@media (min-width: 721px) {
  .js .sheet.is-open { align-items: center; padding: var(--s-6); }
  .js .sheet.is-open .sheet-panel { max-width: var(--sheet-w); padding: var(--s-6) var(--s-6) 0; border-bottom: var(--border) solid var(--ink); border-radius: var(--r-card); }
}

/* the picker's group tiles open their sheet; the tile then says how many were picked */
.opener { width: 100%; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-1); text-align: left; color: var(--ink); }
.opener-count { font-family: var(--font-body); font-size: var(--t-small); font-weight: var(--w-bold); letter-spacing: 0; }
.opener-count:empty { display: none; }
.group-sheet .tiles.leaves { margin-top: var(--s-4); }
.tile.all { font-weight: var(--w-bold); }
.pick-more.lang { max-width: none; }
.pick-more.lang .step-label { font-size: var(--t-said); }
/* without the script the sheets are sections in the page, and the group tiles have nothing to open */
html:not(.js) .openers { display: none; }

/* the sign-in ask */
.signin-sheet .ask-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding-bottom: var(--s-6); }
.signin-sheet .sheet-title { font-size: var(--t-ask); max-width: 18ch; }

/* ---------- S15: the card's three buttons, the answer in place, "See the listing" ---------- */

.acts .btn { flex: 1 1 auto; white-space: nowrap; }
.btn.cal { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.answer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--control-h); margin-top: auto; animation: show var(--dur-fast) var(--ease) both; }
.answer[hidden] { display: none; }
.answer-line { font-family: var(--font-display); font-style: italic; font-size: var(--t-said); line-height: var(--lh-title); }
.listing { align-self: flex-start; display: inline-flex; align-items: center; min-height: var(--control-h); margin-top: var(--s-2); font-weight: var(--w-medium); text-underline-offset: var(--s-1); }
.stub-text { min-width: 0; }
.stub-title { font-size: var(--t-small); font-weight: var(--w-bold); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stub .stub-title { font-family: var(--font-body); font-style: normal; font-size: var(--t-small); }

/* the crow standing on a card's top edge: the box's bottom is its toes (crow.js), on the border's outer line.
   At the right, facing left into the card. */
.perch { position: absolute; z-index: 1; bottom: 100%; right: var(--s-6); line-height: 0; pointer-events: none; }
.crow.is-perch { width: var(--crow-mark); height: var(--crow-mark); }
.crow.is-perch-big { width: var(--crow-mail); height: var(--crow-mail); }

/* ---------- S15: Your events ---------- */

.section-title { font-family: var(--font-display); font-size: var(--t-said); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); margin-top: var(--s-6); }
.week-block .cards { margin-top: var(--s-6); }
.week-block + .stack { margin-top: var(--s-7); }
.screen-events .signin-row { margin-top: var(--s-5); }
.cards.saved-list { margin-top: var(--s-7); }
/* Your events: one or two cards keep the card's width instead of stretching across the page */
.cards.saved-list, .week-block .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr)); }

/* ---------- S15: settings, the account ---------- */

.settings.account { margin-bottom: 0; }
.setting-account { align-items: flex-start; flex-wrap: wrap; }
.setting-account .value { margin-top: var(--s-1); }
.setting-account .signout { margin-top: 0; }
.setting-account .signin { flex: 0 1 auto; }
.settings.account + .settings { margin-top: 0; border-top: 0; }
.mind-name { font-size: var(--t-small); }

/* ---------- S14 (6 Nov 2026): the first page, six chapters ---------- */

.screen-promise main { padding-bottom: var(--s-8); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--hero-card));
  grid-template-areas: "text example" "form example";
  column-gap: var(--s-8);
  align-items: start;
  padding-bottom: 0;
}
.hero-text { grid-area: text; }
.hero .display { font-size: var(--t-hero); max-width: var(--hero-ch); }
.hero .example { grid-area: example; align-self: center; margin-top: var(--s-6); }
.hero-form { grid-area: form; }
.hero-form .city-step { margin-top: var(--s-6); }
.example-line { margin-top: 0; margin-bottom: var(--s-6); }
.example-card[hidden] { display: none; }
.example .card .line { margin-bottom: var(--s-2); }
.example .listing { margin-top: 0; }

.chapter { margin-top: var(--chapter-gap); }
.chapter-title { display: block; font-family: var(--font-display); font-size: var(--t-chapter); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); max-width: 22ch; text-wrap: balance; padding: 0; }
.chapter.read .wave { margin-top: var(--s-6); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8); }
.step-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--s-8); align-items: center; }
.step-head { font-family: var(--font-display); font-size: var(--t-ask); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); text-wrap: balance; }
.step-n { display: block; margin-bottom: var(--s-2); font-size: var(--step-n); font-style: italic; color: var(--muted); }
.step-show { min-width: 0; }
.tiles.demo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.demo .tile { cursor: default; }
.tiles.demo .tile:active { transform: none; }
.wave.is-small { margin-top: 0; }
.mail { position: relative; max-height: var(--mail-max-h); overflow: hidden; padding: var(--s-5) var(--s-5) 0; background: var(--paper); border: var(--hair) solid var(--rule); border-radius: var(--r-control); mask-image: linear-gradient(to bottom, var(--ink) 70%, transparent); -webkit-mask-image: linear-gradient(to bottom, var(--ink) 70%, transparent); }
.mail-name { font-family: var(--font-display); font-size: var(--t-name); }
.mail-title { margin-top: var(--s-4); font-family: var(--font-display); font-size: var(--t-title); line-height: var(--lh-title); }
.mail-opener { margin-top: var(--s-3); }
.mail .example-card { margin-top: calc(var(--crow-mail) + var(--s-3)); }

.chapter.wont .quote { margin-top: var(--s-5); max-width: var(--measure); font-family: var(--font-display); font-style: italic; font-size: var(--t-ask); line-height: var(--lh-title); }
.chapter.trust { max-width: var(--measure-wide); }
.trust-line { font-family: var(--font-display); font-size: var(--t-ask); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.final-form .city-step { margin-top: 0; }
.final-form .city-step .tiles { margin-top: var(--s-5); }
.time-line { margin-top: var(--s-3); }

@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "example" "form"; }
  .hero .display { margin-top: var(--s-3); }
  .hero .lead { font-size: var(--t-body); margin-top: var(--s-3); }
  .hero .example { margin-top: var(--s-4); }
  .example-line { margin-bottom: var(--s-6); }
  .hero .example .body { padding: var(--s-5) var(--s-5) var(--s-3); }
  .hero .example .when { margin-top: var(--s-2); }
  .hero .example .line { margin-top: var(--s-1); margin-bottom: 0; }
  .hero-form .city-step { margin-top: var(--s-4); }
  .hero-form .city-step .tiles { margin-top: var(--s-2); }
  .hero-form .cta { margin-top: var(--s-4); }
  .step-row { grid-template-columns: minmax(0, 1fr); }
  .step-head { font-size: var(--t-title); }
}
.stub [data-thanks] { line-height: var(--lh-title); }
.saved-list .acts { margin-top: var(--s-5); }

/* ---------- the Mind is ready (S17): once after the first sign-in, then the first catch by email ---------- */

.ready { max-width: var(--measure); }
.ready .lead { max-width: var(--measure); }
.mind-id { font-weight: var(--w-medium); overflow-wrap: anywhere; }
.ready-email { margin-top: var(--s-7); }
.ready-email .label { display: block; font-family: var(--font-display); font-size: var(--t-title); font-weight: var(--w-regular); line-height: var(--lh-title); letter-spacing: var(--track-title); }
.ready-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.ready-row input { flex: 1 1 var(--field-min); width: auto; min-width: 0; }
.ready-row .btn { flex: 0 0 auto; padding-inline: var(--s-6); }
.ready-email .note:empty { display: none; }
.first-catch { margin-top: var(--s-5); }
.first-catch[hidden] { display: none; }
.first-catch .send { flex: none; min-width: var(--button-min); }
.first-line { max-width: var(--measure); font-family: var(--font-display); font-style: italic; font-size: var(--t-said); line-height: var(--lh-title); }
.first-line.is-off, .first-line.bad { font-family: var(--font-body); font-style: normal; font-size: var(--t-body); line-height: var(--lh-body); }
.first-line.bad { color: var(--error); margin-bottom: var(--s-3); }
.ready-on { margin-top: var(--s-7); font-weight: var(--w-medium); }
.ready-on a { display: inline-flex; align-items: center; min-height: var(--control-h); }
.setting-email .email-note:empty { display: none; }
/* audit 13 Nov (flow 11): Your events asks for the address while there is none; the field and Save on one row */
.email-ask { margin: var(--s-4) 0 var(--s-5); }
.email-ask-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.email-ask-row input { flex: 1 1 var(--signin-min-w); min-height: var(--tap); }
.setting-email .first-catch { margin-top: var(--s-3); }
.setting-email .first-line { font-size: var(--t-body); }
.confirmed { color: var(--ink); }

/* ==========================================================================================================
   Direction C, "On the wire" (Lina's pick, 9 Nov 2026, L24; design/direction/c-wire.html). Sky, ink, white, one
   orange; Bricolage Grotesque, the display cut condensed and heavy; pills for every control; this week's real
   events sitting on the wire as photo cards, the big crow gripping it at the right end.
   ========================================================================================================== */

body { font-variation-settings: var(--fv-body); }
.display, .page-title, .title, .step-label, .chapter-title, .section-title, .ask h2, .ready-email .label, .mail-title, .step-head {
  font-weight: var(--w-display);
  font-variation-settings: var(--fv-title);
  letter-spacing: var(--track-title);
}
.name { font-weight: var(--w-name); font-variation-settings: var(--fv-name); letter-spacing: var(--track-name); text-transform: lowercase; }
.crow .eye { fill: var(--white); }

/* controls: selected = ink with white text; the one primary action in the accent */
.tile[data-state="on"], .tile.city:has(input:checked) { background: var(--ink); color: var(--white); }
.tile[data-state="passion"] { background: var(--marker); color: var(--ink); }
.tile.group { font-weight: var(--w-bold); font-variation-settings: var(--fv-title); }
.send, .send:hover { background: var(--marker); color: var(--ink); font-weight: var(--w-bold); }
.btn:hover { background: var(--white); }
.more, .more:hover { background: var(--white); }
.more[aria-pressed="true"], .more[aria-pressed="true"]:hover { background: var(--ink); color: var(--white); }

/* "You said": an accent underline under ink, not a highlighter */
.said {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: var(--w-bold);
  font-size: var(--t-body);
  background-image: linear-gradient(var(--marker), var(--marker));
  background-position: left bottom;
  background-size: 100% var(--c-said-line);
  padding-inline: 0;
  margin-inline: 0;
}
@keyframes swipe { from { background-size: 0% var(--c-said-line); } }
.chip { background: var(--white); }
.chip.is-passion { background: var(--marker); color: var(--ink); }
.flash, .stub p, .aside, .first-line, .answer-line, .display em, .display .count { font-family: var(--font-body); font-style: normal; font-weight: var(--w-medium); }
.display em, .display .count { font-weight: inherit; font-family: inherit; }

/* ---------- the first page ---------- */

.screen-promise main { padding: 0; }
.c-hero { position: relative; overflow: hidden; background: var(--paper); }
.c-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--c-bar-pad) var(--c-gutter) 0; }
.c-word { display: inline-flex; align-items: baseline; gap: var(--s-1); text-decoration: none; color: var(--ink); }
.c-word b { font-size: var(--t-name); font-weight: var(--w-name); font-variation-settings: var(--fv-name); line-height: var(--lh-display); letter-spacing: var(--track-name); text-transform: lowercase; }
.c-word .c-mark { width: auto; height: var(--c-mark-h); overflow: visible; color: var(--ink); }
.c-nav { display: flex; align-items: center; gap: var(--s-5); font-weight: var(--w-medium); }
.c-nav a { color: var(--ink); text-decoration: none; }
.c-nav a:hover { text-decoration: underline; text-decoration-thickness: var(--border); }
.c-pill, .c-nav a.c-pill { display: inline-flex; align-items: center; min-height: var(--c-pill-h); padding: 0 var(--s-5); border-radius: var(--r-chip); background: var(--ink); color: var(--white); font-weight: var(--w-bold); text-decoration: none; }

.c-top { position: relative; z-index: 2; padding: var(--c-top-pad) var(--c-gutter) 0; }
.c-top h1 { font-size: var(--c-t-hero); font-weight: var(--w-display); font-variation-settings: var(--fv-display); line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: var(--c-h1-max); text-wrap: balance; }
.c-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-7); margin-top: var(--s-5); }
.c-sub { font-size: var(--t-lead); line-height: var(--lh-body); max-width: var(--c-sub-ch); text-wrap: balance; }

.c-ask { min-width: 0; }
.c-cities { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.c-ask-label { display: block; width: 100%; padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: var(--w-bold); }
.c-city { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--c-city-h); padding: 0 var(--s-5); border-radius: var(--r-chip); background: var(--white); font-weight: var(--w-bold); cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.c-city input { position: absolute; opacity: 0; width: var(--hair); height: var(--hair); margin: 0; pointer-events: none; }
.c-city:has(input:checked) { background: var(--ink); color: var(--white); }
.c-city:has(input:focus-visible), .c-start:focus-visible { outline: var(--border) solid var(--ink); outline-offset: var(--border); }
.c-city:active, .c-start:active { transform: translateY(var(--border)); }
.c-start { min-height: var(--c-city-h); padding: 0 var(--s-6); margin-left: var(--s-2); border: 0; border-radius: var(--r-chip); background: var(--marker); color: var(--ink); font-weight: var(--w-bold); cursor: pointer; }
.c-start:disabled { opacity: 0.5; cursor: default; }
.c-small { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.c-ask .c-small { text-align: right; }

/* the wire tableau */
.c-tab { position: relative; height: var(--c-tab-h); margin-top: calc(-1 * var(--c-tab-lift)); }
.c-note { position: absolute; z-index: 3; left: var(--c-gutter); top: var(--c-note-top); font-size: var(--t-fine); color: var(--muted); }
.c-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-wire path { fill: none; stroke: var(--ink); stroke-width: var(--c-wire); vector-effect: non-scaling-stroke; }
.c-wire.is-m { display: none; }
.c-perches { position: absolute; inset: 0; }
.c-perches[hidden] { display: none; }
.c-perch { position: absolute; left: var(--x-d); bottom: var(--b-d); width: var(--c-perch-w); background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--r-card); overflow: hidden; transform: rotate(var(--r-d)); transform-origin: 50% 100%; transition: transform var(--dur-standard) var(--ease); }
.c-perch:hover { transform: rotate(var(--r-d)) translateY(var(--lift)); }
.c-ph { display: block; aspect-ratio: var(--c-perch-ratio); border-bottom: var(--border) solid var(--ink); background: var(--paper); }
.c-ph img, .c-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c-ph.is-none, .c-thumb.is-none { display: flex; flex-direction: column; justify-content: center; padding: var(--s-4); background: var(--white); color: var(--ink); text-decoration: none; background-image: radial-gradient(circle at 88% 18%, var(--marker) 0 var(--dot), transparent calc(var(--dot) + var(--hair))); }
.c-wd { font-size: var(--c-t-card); font-weight: var(--w-bold); text-transform: uppercase; line-height: 1; }
.c-dn { font-size: calc(var(--c-t-card) * 4); font-weight: var(--w-name); font-variation-settings: var(--fv-display); line-height: var(--lh-display); letter-spacing: var(--track-display); }
.c-mo { font-size: var(--c-t-card); font-weight: var(--w-medium); color: var(--muted); }
.c-tx { padding: var(--s-3) var(--s-3) var(--s-3); }
.c-tx h3 { margin: 0; font-size: var(--c-t-card); font-weight: var(--w-bold); font-variation-settings: var(--fv-title); line-height: var(--lh-title); letter-spacing: var(--track-title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-tx h3 a, .c-it b a { color: inherit; text-decoration: none; }
.c-tx h3 a:hover, .c-it b a:hover { text-decoration: underline; }
.c-meta { display: block; margin: var(--s-1) 0 0; font-size: var(--c-t-card-meta); color: var(--muted); }
.c-said { display: inline-block; margin-top: var(--s-2); font-size: var(--c-t-said); font-weight: var(--w-bold); border-bottom: var(--c-said-line) solid var(--marker); }
.c-credit { margin: var(--s-1) 0 0; font-size: var(--c-t-card-meta); color: var(--muted); }
.c-credit a { color: inherit; }
.c-crow { position: absolute; left: var(--cx-d); bottom: var(--cb-d); width: var(--c-crow); height: var(--c-crow); transform: translateX(-42%); pointer-events: none; }
.c-crow .crow { display: block; width: 100%; height: 100%; }

/* the first scroll: white, the count with its turn underlined, her line 11, the Sunday email as it arrives */
.c-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); padding: var(--c-how-pad) var(--c-gutter); background: var(--white); }
.c-how h2 { font-size: var(--c-t-how); font-weight: var(--w-display); font-variation-settings: var(--fv-display); line-height: var(--lh-display); letter-spacing: var(--track-display); text-wrap: balance; }
.c-how h2 em { font-style: normal; text-decoration: underline var(--c-hl-thick) var(--marker); text-underline-offset: var(--c-hl-offset); text-decoration-skip-ink: none; }
.c-line11 { max-width: var(--c-line11-ch); margin-top: var(--s-6); padding-top: var(--s-5); border-top: var(--border) solid var(--ink); font-size: var(--c-t-line11); font-weight: var(--w-medium); line-height: var(--lh-body); }
.c-mailbox { padding: var(--s-6); border-radius: var(--r-panel); background: var(--paper); align-self: start; }
.c-mailset[hidden] { display: none; }
.c-m { padding: var(--s-5); background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--r-card); }
.c-from { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.c-from b { color: var(--ink); }
.c-m h4 { margin: var(--s-3) 0 var(--s-3); font-size: var(--t-title); font-weight: var(--w-bold); font-variation-settings: var(--fv-title); line-height: var(--lh-title); }
.c-it { display: grid; grid-template-columns: var(--c-thumb-w) minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-top: var(--hair) solid var(--rule-soft); }
.c-thumb { display: block; height: var(--c-thumb-h); overflow: hidden; border: var(--border) solid var(--ink); border-radius: var(--r-card); }
.c-thumb.is-none { padding: var(--s-2); }
.c-thumb .c-wd, .c-thumb .c-mo { font-size: var(--t-fine); }
.c-thumb .c-dn { font-size: var(--t-title); }
.c-it b { display: block; font-size: var(--t-body); line-height: var(--lh-title); }

/* the rest of the page changes ground as it scrolls (REFERENCES.md): ink, white, sky */
.c-wont { padding: var(--c-how-pad) var(--c-gutter); background: var(--ink); color: var(--white); }
.c-wont h2 { font-size: var(--c-t-how); font-weight: var(--w-display); font-variation-settings: var(--fv-display); line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: var(--c-h1-max); }
.c-quote { margin-top: var(--s-5); max-width: var(--measure); font-size: var(--c-t-line11); font-weight: var(--w-medium); }
.c-quote::after { content: ""; display: block; width: var(--c-pill-h); height: var(--c-said-line); margin-top: var(--s-4); background: var(--marker); }
.c-trust { padding: var(--c-how-pad) var(--c-gutter); background: var(--white); }
.c-trust-line { max-width: var(--measure-wide); font-size: var(--c-t-line11); font-weight: var(--w-medium); line-height: var(--lh-body); }
.c-final { padding: var(--c-how-pad) var(--c-gutter); background: var(--paper); }
.c-final .c-ask-label { font-size: var(--c-t-how); font-weight: var(--w-display); font-variation-settings: var(--fv-display); line-height: var(--lh-display); letter-spacing: var(--track-display); margin-bottom: var(--s-5); }
.c-final .c-ask .c-small { text-align: left; }

@media (max-width: 720px) {
  .c-nav a:not(.c-pill) { display: none; }
  .c-row { flex-direction: column; align-items: stretch; gap: var(--s-2); margin-top: var(--s-3); } /* item 1: 8 px less above "Where do you live?" (design owner, 10 Nov) */
  .c-cities { display: grid; grid-template-columns: 1fr 1fr; }
  .c-ask-label { grid-column: 1 / -1; }
  .c-start { grid-column: 1 / -1; margin: var(--s-1) 0 0; }
  .c-ask .c-small { text-align: center; }
  .c-wire.is-d { display: none; }
  .c-wire.is-m { display: block; }
  .c-perch { left: var(--x-m); bottom: var(--b-m); transform: rotate(var(--r-m)); }
  .c-perch:hover { transform: rotate(var(--r-m)); }
  .c-perch[data-i="2"] { display: none; }
  .c-perch:not(.no-photo) .c-v { display: none; } /* the credit under it names the venue */
  .c-br { display: none; }
  .c-crow { left: var(--cx-m); bottom: var(--cb-m); }
  .c-tx { padding: var(--s-2); }
  .c-how { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .c-mailbox { padding: var(--s-4); }
  /* item 1, round 2 (design/review/fold-659/SPEC.md): on a phone the order is headline, sub-line, the picks on the wire,
     then "Where do you live?", so the first 659 of Safari's screen ends on the wire, nothing cut */
  .c-hero { display: flex; flex-direction: column; }
  .c-top, .c-row { display: contents; }
  .c-top h1 { order: 1; margin: 0; padding: var(--c-top-pad) var(--c-gutter) 0; position: relative; z-index: 2; }
  .c-sub { order: 2; margin: 0; padding: var(--s-3) var(--c-gutter) 0; position: relative; z-index: 2; }
  .c-tab { order: 3; height: var(--c-tab-h); }
  .c-hero .c-ask { order: 4; padding: var(--s-6) var(--c-gutter) var(--s-7); }
}
/* B59 (Lina, 10 Nov: "the pick and save screens items are quite comically large and look pretty weird on device"):
   on a phone a pick is a row, photo left, words right (design/review/cards-393/compact.css, passed by Quality). The
   description leaves the list; it stays on the listing, which the title links to. Add to calendar stays on the picks
   until Lina's yes moves it to Saved (L10), so the buttons wrap. */
@media (max-width: 720px) {
  .card:has(> .clip > .c-cardtop) .clip { display: grid; grid-template-columns: var(--cc-photo) minmax(0, 1fr); }
  .card .clip > .c-cardtop { grid-column: 1; grid-row: 1 / span 30; height: auto; min-height: 100%; border-bottom: 0; border-right: var(--border) solid var(--ink); }
  .card .clip > .c-cardtop.is-none { padding: var(--s-2); justify-content: center; }
  .card .clip > .c-cardtop.is-none .c-int, .card .clip > .c-cardtop.is-none .c-ven { display: none; }
  .card .clip > .c-cardtop .c-when { font-size: var(--cc-day-big); }
  .card:has(> .clip > .c-cardtop) .body { grid-column: 2; padding: var(--s-3) var(--cc-pad-x); }
  .card:has(> .clip > .c-cardtop) .stub { grid-column: 2; }
  .card:has(> .clip > .c-cardtop) .stub [data-thanks] { font-size: var(--cc-btn); line-height: var(--cc-stub-lh); }
  .card:has(> .clip > .c-cardtop) .stub .stub-title { font-size: var(--cc-orig); color: var(--muted); }
  .card:has(> .clip > .c-cardtop) .title { margin: 0; font-size: var(--cc-title); line-height: var(--lh-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card:has(> .clip > .c-cardtop) .orig { margin: 0; font-size: var(--cc-orig); }
  .card:has(> .clip > .c-cardtop) .orig summary { min-height: var(--cc-orig-row); }
  .card:has(> .clip > .c-cardtop) .orig + .when { margin-top: 0; }
  .card:has(> .clip > .c-cardtop) .when { margin: var(--cc-gap) 0 0; font-size: var(--cc-small); font-weight: var(--w-semi); }
  .card:has(> .clip > .c-cardtop) .area { margin: 0; font-size: var(--cc-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card:has(> .clip > .c-cardtop) .line { margin: var(--s-2) 0 0; }
  .card:has(> .clip > .c-cardtop) .line .desc { display: none; }
  .card:has(> .clip > .c-cardtop) .line .said { font-size: var(--cc-small); }
  .card:has(> .clip > .c-cardtop) .acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--cc-space); }
  .card:has(> .clip > .c-cardtop) .acts .btn { min-height: var(--tap); padding: 0 var(--cc-pad-x); font-size: var(--cc-btn); }
  /* Design, 13 Nov: the quiet Not this time sits right beside Save (the button padding above outranked it) */
  .card:has(> .clip > .c-cardtop) .acts .btn.nope { padding: 0; min-width: 0; justify-content: flex-start; }
  .card:has(> .clip > .c-cardtop) .listing { display: none; }
  /* a search-only card's line is its only link, so it shows on the phone too (Design, 14 Nov); the library's wraps to two */
  .card[data-listing="search"]:has(> .clip > .c-cardtop) .listing { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-small); font-weight: var(--w-semi); white-space: normal; text-align: left; }
  .card:has(> .clip > .c-cardtop) .c-credit { margin-top: var(--cc-gap); font-size: var(--cc-credit); }
  .card:has(> .clip > .c-cardtop) .answer { margin-top: var(--cc-space); font-size: var(--cc-btn); }
  .cards { gap: var(--cc-list-gap); }
}
/* B58: three picks on the scan. The next pick fades up into an answered one's place; a toast carries the answer's line,
   Undo, and (signed out, after a save) a quiet "Sign up for free". When the picks run out, the sign-up prompt takes the
   empty place. Reduced motion: no fade (the global rule below). */
.card.is-arriving { opacity: 0; transform: translateY(var(--rise)); }
.card[data-reply] { transition: opacity var(--dur-standard) var(--ease), transform var(--dur-standard) var(--ease); }
.pick-signup { padding: var(--s-5); border: var(--border) solid var(--ink); border-radius: var(--r-card); background: var(--white); }
/* W1, motion B round 2 (Lina's yes, 11 Nov): the hero crow blinks, glances and leans toward the picks in one 5.6 s cycle.
   It holds on hover, on tap or click of the see-through toggle (until the next tap), on keyboard focus, off screen and in
   a hidden tab (design/rehearsal/motion-b2-SPEC.md); under reduced motion it stays still and the toggle is gone. */
.c-crow .blink { transform-box: fill-box; transform-origin: 50% 50%; animation: crow-blink var(--crow-cycle) infinite; }
.c-crow .glance { transform-box: fill-box; transform-origin: 50% 50%; animation: crow-glance var(--crow-cycle) ease-in-out infinite; }
.c-crow .lean { transform-box: view-box; transform-origin: var(--crow-lean-origin); animation: crow-lean var(--crow-cycle) var(--ease) infinite; }
@keyframes crow-blink {
  0%, 44%, 49%, 87%, 90.5%, 92.5%, 96%, 100% { transform: scaleY(1); }
  46.5%, 89%, 94.5% { transform: scaleY(0.08); }
}
@keyframes crow-glance { 0%, 22%, 62%, 100% { transform: translateX(0); } 30%, 54% { transform: translateX(var(--crow-glance)); } }
@keyframes crow-lean {
  0%, 22%, 100% { transform: rotate(0deg) scaleY(1); }
  30%, 52% { transform: rotate(-4deg) scaleY(1); }
  60% { transform: rotate(0.6deg) scaleY(0.975); }
  66% { transform: rotate(0deg) scaleY(1.008); }
  72% { transform: rotate(0deg) scaleY(1); }
}
.c-hero.crow-held .c-crow :is(.blink, .glance, .lean), .c-hero.crow-off .c-crow :is(.blink, .glance, .lean),
.c-crow:hover :is(.blink, .glance, .lean), .c-crow:has(.c-crow-hold:focus-visible) :is(.blink, .glance, .lean) { animation-play-state: paused; }
/* the button covers the bird only, not the crow's square box (it never reaches a highlight card or its credit) */
.c-crow-hold { position: absolute; left: 28%; right: 6%; top: 10%; bottom: 4%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; }
.c-crow-hold:focus-visible { outline: var(--focus-ring); outline-offset: var(--crow-ring-offset); }
@media (prefers-reduced-motion: reduce) {
  .c-crow :is(.blink, .glance, .lean) { animation: none; }
  .c-crow-hold { display: none; }
}
/* W20 (walkthrough item 20, design/review/wait-toast/toast.css): a small ink pill at the bottom centre, as wide as its words */
.pick-toast { position: fixed; z-index: 30; left: 0; right: 0; bottom: var(--s-4); margin-inline: auto; display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s-4); width: fit-content; max-width: min(calc(100% - 2 * var(--s-4)), var(--toast-max)); min-height: var(--tap); padding: var(--s-1) var(--s-1) var(--s-1) var(--s-5); border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-size: var(--toast-t); line-height: var(--toast-lh); }
.pick-toast[hidden] { display: none; }
.pick-toast p { flex: 0 1 auto; margin: 0; }
.pick-toast .link { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); color: var(--white); font-weight: var(--w-bold); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: var(--toast-line); text-underline-offset: var(--toast-offset); background: none; border: 0; }
.pick-toast .link:focus-visible { outline: var(--focus-ring-on-ink); outline-offset: var(--border); }
@media (max-width: 560px) {
  .pick-toast { border-radius: var(--toast-r-phone); gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); }
  .pick-toast p { flex: 1 1 auto; }
}
/* W13: "Signing you in" waits with the crow on a short wire and three dots hopping along it; still under reduced motion */
.auth-wait { position: relative; width: var(--aw-w); height: var(--aw-h); margin-bottom: var(--s-6); border-bottom: var(--wire) solid var(--ink); }
.auth-wait .crow { position: absolute; right: var(--s-2); bottom: 0; }
.auth-dots { position: absolute; left: 0; bottom: 0; width: var(--aw-dots-w); height: var(--aw-dots-h); }
.auth-dots i { position: absolute; bottom: 0; left: 0; width: var(--aw-dot); height: var(--aw-dot); border-radius: 50%; background: var(--marker); transform: translate(0, 50%); animation: aw-hop var(--aw-dur) var(--ease) infinite; }
.auth-dots i:nth-child(2) { animation-delay: var(--aw-step); }
.auth-dots i:nth-child(3) { animation-delay: calc(2 * var(--aw-step)); }
@keyframes aw-hop {
  0% { transform: translate(0, 50%); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translate(var(--aw-hop-1), -60%); }
  40% { transform: translate(var(--aw-hop-2), 50%); }
  55% { transform: translate(var(--aw-hop-3), -60%); }
  70% { transform: translate(var(--aw-hop-4), 50%); opacity: 1; }
  80%, 100% { transform: translate(var(--aw-hop-4), 50%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-dots i { animation: none; opacity: 1; }
  .auth-dots i:nth-child(1) { transform: translate(var(--aw-still-1), 50%); }
  .auth-dots i:nth-child(2) { transform: translate(var(--aw-still-2), 50%); }
  .auth-dots i:nth-child(3) { transform: translate(var(--aw-still-3), 50%); }
}
/* B57 + item 14: the ready screen's one form; the weekly day is a quiet line with the day as an underlined native select */
.ready-form input[type="email"] { width: 100%; margin-top: var(--s-4); }
.ready-day-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-height: var(--tap); margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.day-pick { position: relative; display: inline-flex; align-items: center; }
.day-pick select { field-sizing: content; appearance: none; -webkit-appearance: none; min-height: var(--tap); padding: 0 var(--s-5) 0 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-weight: var(--w-semi); text-decoration: underline; text-decoration-thickness: var(--border); text-underline-offset: var(--s-1); cursor: pointer; }
.day-pick select:focus-visible { outline: var(--border) solid var(--ink); outline-offset: var(--border); }
.day-chev { position: absolute; right: 0; width: var(--s-3); height: var(--s-2); fill: none; stroke: var(--ink); stroke-width: var(--border); pointer-events: none; }
.ready-form .first-catch { margin-top: var(--s-5); }
.ready-form .first-send { width: 100%; }
/* item 19: a quiet note on a card whose listing is in Dutch, where language matters (also on the first page's highlights) */
.c-lang { margin-top: var(--s-1); font-size: var(--t-small); font-weight: var(--w-semi); color: var(--muted); }
.lang-note { margin-top: var(--s-1); font-size: var(--t-small); font-weight: var(--w-semi); color: var(--muted); }
/* L73: the language tag (design/review/lang-tag/tag.css): over the top-left of the photo or ink day block, so tagged and
   untagged cards keep the same size; a speech mark and the language; not a control, nothing to tap */
.lang-tag { position: absolute; z-index: 2; top: var(--tag-in); left: var(--tag-in); display: inline-flex; align-items: center; gap: var(--s-1); height: var(--tag-h); padding: 0 var(--tag-in); border-radius: var(--r-tag); background: var(--tag-bg); color: var(--ink); font-family: var(--font-body); font-size: var(--t-tag); font-weight: var(--w-semi); line-height: 1; white-space: nowrap; pointer-events: none; }
.lang-tag::before { content: "\201C"; font-weight: var(--w-bold); }
/* on an ink day block the interest name sits top-left, so the tag takes the top-right corner there */
.lang-tag:has(+ .is-none) { left: auto; right: var(--tag-in); }
/* audit 13 Nov (flow 3): on a phone pick row the ink block is the left column and hides its interest name, while the
   card's right corner is the title; so the tag stays top-left, on the ink */
@media (max-width: 720px) {
  .card .clip > .lang-tag:has(+ .c-cardtop.is-none) { left: var(--tag-in); right: auto; }
  /* the left column is narrower than "Listing: Chinese", so a long tag wraps inside it rather than crossing the edge */
  .card .clip > .lang-tag { max-width: calc(var(--cc-photo) - var(--tag-in) * 2); height: auto; min-height: var(--tag-h); padding-block: var(--s-1); white-space: normal; line-height: var(--lh-title); }
}
/* item 11: the city and a way to change it, under the taste and picks headings */
.city-line { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
/* the header's Start lands with "Where do you live?" clear of the sticky header (fold SPEC, follow-on 2) */
#where { scroll-margin-top: calc(var(--c-bar-pad) + var(--c-pill-h) + var(--s-3) + var(--s-3)); }
/* the app header in C: the name, then the mark on its own short wire (no hairline under the name any more) */
.name.c-word { gap: var(--s-1); }
.name.c-word::after { display: none; }

/* ---------- direction C, the design owner's spec (design/system/c/SPEC.md, passed by Quality 9 Nov) ---------- */

:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }

/* 3.1 the header: sticky; sky over the hero, white with a hairline once the hero's Start has scrolled away */
.c-bar { position: sticky; top: 0; z-index: 20; padding-bottom: var(--s-3); background: var(--paper); transition: background-color var(--d-quick) var(--ease); }
.c-bar.is-stuck { background: var(--white); border-bottom: var(--hair) solid var(--rule-soft); }

/* 3.2 the city pills: links in a radiogroup, white; chosen = ink; hover = an inset ink outline; Start always live */
.c-city { color: var(--ink); text-decoration: none; min-height: var(--pill-h); }
.c-city[aria-checked="true"] { background: var(--ink); color: var(--white); }
.c-city:hover { outline: var(--hair) solid var(--ink); outline-width: calc(var(--hair) * 2); outline-offset: calc(var(--hair) * -2); }
.c-city:focus-visible, .c-start:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.c-city:active, .c-start:active, .c-pill:active { transform: scale(0.98); }
.c-start { min-height: var(--pill-h); }

/* 5.1 a card on the wire is one link: the title stretched over the card; the credit stays its own link above it */
.c-perch { --r: var(--r-d); transform: rotate(var(--r)); transition: transform var(--d-quick) var(--ease); }
.c-perch:hover { transform: rotate(0deg) translateY(var(--lift)); }
.c-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.c-credit { position: relative; z-index: 2; }
.c-ph img, .c-thumb img { object-position: 50% 35%; }
.c-it { position: relative; }
.c-opener { margin: 0 0 var(--s-2); font-size: var(--t-opener); color: var(--muted); line-height: var(--lh-body); }

/* the no-photo top: first-class, the photo's height; ink, the interest in small caps, day and time big, the venue,
   the orange gift dot on its bottom edge */
.c-ph.is-none, .c-thumb.is-none { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-1); padding: var(--s-3) var(--s-4); background: var(--ink); background-image: none; color: var(--white); overflow: visible; }
.c-int { font-size: var(--t-small); font-weight: var(--w-bold); text-transform: uppercase; letter-spacing: var(--track-caps); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-when { display: flex; flex-direction: column; margin-top: auto; font-size: var(--nophoto-day); font-weight: var(--w-display); font-variation-settings: var(--fv-display); line-height: 0.9; letter-spacing: var(--track-display); }
.c-ven { font-size: var(--t-small); font-weight: var(--w-semi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-gift { position: absolute; right: var(--s-4); bottom: calc(var(--gift) / -2); width: var(--gift); height: var(--gift); border-radius: var(--r-pill); background: var(--marker); }
.c-thumb.is-none { justify-content: center; padding: var(--s-2); }
.c-thumb .c-int, .c-thumb .c-ven { display: none; }
.c-thumb .c-when { margin-top: 0; font-size: var(--t-h3); }

/* the cards land on the wire one by one on first load (SPEC 4); reduced motion: --d-land is 0 */
.js .c-perch { animation: c-land var(--d-land) var(--ease) backwards; animation-delay: calc(var(--i) * var(--stagger)); }
@keyframes c-land { from { opacity: 0; transform: translateY(var(--land-rise)) rotate(calc(var(--r) + var(--land-turn))); } }

/* 3.5 the footer: ink, the crow mark standing on its top edge (L4), links */
.c-foot { position: relative; padding: var(--s-7) var(--c-gutter); background: var(--ink); color: var(--white); }
.c-foot-crow { position: absolute; left: var(--c-gutter); top: calc(-1 * var(--crow-mark)); line-height: 0; }
.c-foot-links { display: flex; flex-wrap: wrap; gap: var(--s-5); font-weight: var(--w-semi); }
.c-foot-links a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--white); }
.c-foot-links a:focus-visible { outline: var(--focus-ring-on-ink); }

@media (max-width: 720px) {
  .c-perch { --r: var(--r-m); }
  .c-perch:hover { transform: rotate(var(--r-m)); }
  .c-ph.is-none { padding: var(--s-2); }
}
.c-perch .c-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-perch.no-photo .c-v, .c-it.no-photo .c-v { display: none; } /* the no-photo top already names the venue (nothing twice, SPEC 1.7) */

/* ---------- design owner's review of build 1 (design/review/2026-11-09-c-build-1.md) ---------- */

/* 4. every app card has a top: the photo with its credit, or the ink no-photo top; the tag chip is gone */
.c-cardtop { display: block; height: var(--app-top-h); border-bottom: var(--border) solid var(--ink); background: var(--paper); overflow: hidden; }
.c-cardtop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.c-cardtop.is-none { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-1); padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--white); overflow: visible; }
.c-cardtop .c-when { font-size: var(--nophoto-day-app); }
.card .c-credit { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.card .chip { display: none; }

/* 5. Save is the main move: solid ink with white text; Add to calendar and Not this time are outline */
.more, .more:hover { background: var(--ink); color: var(--white); font-weight: var(--w-bold); }
.cal, .cal:hover, .nope, .nope:hover { background: var(--white); color: var(--ink); }

/* 6. the picker on a white sheet over sky; "Show my picks" sticky at the sheet's bottom, the sheet padded under it */
.pick-sheet { margin-top: var(--s-5); padding: var(--s-5) var(--s-5) 0; background: var(--white); border-radius: var(--r-panel) var(--r-panel) 0 0; }
.pick-sheet .pick-go { margin-inline: calc(-1 * var(--s-5)); padding-inline: var(--s-5); background: var(--white); border-top: var(--hair) solid var(--rule-soft); }
.pick-form .picker { padding-bottom: var(--s-5); }

/* the ready screen: the crow's full cut standing on a short wire above the heading (SPEC 6.6) */
.ready-crow { width: var(--crow-full); border-bottom: var(--c-wire) solid var(--ink); line-height: 0; }
.ready-crow .crow { display: block; width: var(--crow-full); height: var(--crow-full); }

@media (max-width: 720px) {
  .pick-sheet { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .pick-sheet .pick-go { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}

/* ---------- Quality's C review (qa/2026-11-09-c-build.md) ---------- */
/* app cards: the top, then the body at its own height, so the actions sit right under the text */
.card .clip { display: flex; flex-direction: column; height: auto; }
.card .body { flex: 1 1 auto; height: auto; }
.cards .card { align-self: start; }
/* the sign-in button and the ready screen's Save are solid ink (SPEC 5.3: one accent button per screen) */
.btn.send.signin, .btn.send.signin:hover, .ready-row .btn, .ready-row .btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
/* the interest name on public cards: the fit line's look, not a link until interest pages exist */
.c-interest { text-transform: none; }
/* design review round 2, item 9: Start answers hover (a 2 px ink inset outline, as the city pills) and pressing */
.c-start:hover, .c-pill:hover { outline: calc(var(--hair) * 2) solid var(--ink); outline-offset: calc(var(--hair) * -2); }
.c-start:active, .c-pill:active, .c-city:active { transform: scale(0.98); }
/* a photo box is sky while its photo loads, never an empty white box (the first page loads its six photos at once) */
.c-thumb, .c-cardtop { background: var(--paper); }

/* the comic strip (design/how-it-works, Quality 10 Nov): on the white ground under the hero, full width; its own
   layout and motion are public/comic-strip.css */
.c-comic { background: var(--white); }

/* Add to calendar (item 6): a small menu, Google, Apple, Outlook; nothing is saved */
.calmenu { position: relative; display: inline-block; }
.calmenu > summary { list-style: none; cursor: pointer; }
.calmenu > summary::-webkit-details-marker { display: none; }
.calmenu-list { position: absolute; z-index: 5; inset-block-start: calc(100% + var(--s-1)); inset-inline-start: 0; display: flex; flex-direction: column; min-inline-size: 100%; background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--r-card); overflow: hidden; }
/* audit 13 Nov (flow 13): Remove under a saved card's buttons, quiet like Not this time */
.remove-saved { margin-top: var(--s-2); }
.remove-saved .link { min-height: var(--tap); color: var(--muted); }
.calmenu-list a { display: flex; align-items: center; min-height: var(--tap); padding: var(--s-2) var(--s-3); color: var(--ink); text-decoration: none; white-space: nowrap; }
.calmenu-list a:hover, .calmenu-list a:focus-visible { background: var(--sky); }

/* B32: one main sign-up button, "powered by Hello Minds" small under it, one quiet "Sign in" link */
.signup { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.signup .powered { margin: 0; color: var(--muted); }
.signup .signin-quiet { color: var(--ink); }
.top-link.is-signup, .tab.is-signup { font-weight: var(--w-bold); }
.signup-inline { margin-inline-start: var(--s-3); }

/* item 9: a back arrow at the top of the taste, picks and sign-up steps, with the sign-in links beside the name */
.top.has-out { display: flex; align-items: center; gap: var(--s-3); }
.top.has-out .top-out { margin-inline-start: auto; display: flex; gap: var(--s-3); }
.top .back { color: var(--ink); text-decoration: none; font-size: var(--t-title); line-height: 1; }

/* B49: "Add your own" under each group's tiles: a field and an Add button on one row */
.own-add .own-row { display: flex; gap: var(--s-2); align-items: stretch; }
.own-add .own-row input { flex: 1 1 auto; min-inline-size: 0; }


/* D5: "How it really works" uses the design owner's .mail (public/really-works.css); the older .mail of the pre-C page
   must not cap, fade or round it */
.real .mail { max-height: none; overflow: visible; padding: 0; background: none; border: 0; border-radius: 0; mask-image: none; -webkit-mask-image: none; }

/* ---------- S23 items 2, 3, 4, 5 and 8 (Quality's UX review; Design, design/review/picks-close/; Product, 12 Nov) ---------- */
/* #3: the picks page header stays at the top with the first page's solid pill; one hairline once scrolled */
.screen-scan header.top { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); border-bottom: var(--hair) solid transparent; transition: border-color var(--dur-fast) var(--ease); }
.screen-scan header.top.is-scrolled { border-bottom-color: var(--rule); }
/* the old picks-step header (top-out, su-stack) became navigation B's header (16 Nov): styles at the end of this file */
}
/* the sticky header never covers what focus or a scroll lands on (Quality's condition) */
.screen-scan .cards > article, .screen-scan .picks-end, .screen-scan .cards .title { scroll-margin-top: var(--under-top); }
/* #4: the headline is a status: one line at 1440, two at 393 */
.screen-scan .display { font-size: var(--scan-display); margin-top: var(--s-3); }
.screen-scan .lead[data-free-line] { margin-top: var(--s-3); }
@media (min-width: 721px) { .screen-scan .lead[data-free-line] { max-width: none; } }
/* #5: one solid button per card; Not this time a quiet link, still a full tap tall (Add to calendar stays until L10) */
.screen-scan .acts { align-items: center; }
.screen-scan .acts .btn.nope { flex: 0 0 auto; min-width: 0; min-height: var(--tap); justify-content: flex-start; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-weight: var(--w-medium); text-decoration: underline; text-decoration-thickness: var(--underline); text-underline-offset: var(--underline-off); }
.screen-scan .acts .btn.nope:hover { color: var(--ink); background: none; }
/* UX item 5: the same quiet Not this time on Your events' Picks, beside Save on one row */
.screen-events .acts .btn.nope { flex: 0 0 auto; min-width: 0; min-height: var(--tap); justify-content: flex-start; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-weight: var(--w-medium); text-decoration: underline; text-decoration-thickness: var(--underline); text-underline-offset: var(--underline-off); }
.screen-events .acts .btn.nope:hover { color: var(--ink); background: none; }
.screen-scan .acts .btn.more { flex: 0 1 auto; }
/* #2: the page closes on one block under the picks */
.picks-end { margin-top: var(--s-5); padding-bottom: var(--s-8); }
.picks-end .more-picks { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--more-h); border: var(--border) solid var(--ink); border-radius: var(--r-chip); background: var(--white); color: var(--ink); font-size: var(--t-more); font-weight: var(--w-bold); text-decoration: none; cursor: pointer; }
.picks-end .more-picks:hover { background: var(--ink); color: var(--white); }
.picks-end .more-picks:focus-visible { outline: var(--focus-ring); outline-offset: var(--border); }
.picks-end.is-done { padding: var(--s-6) var(--s-5); border: var(--border) solid var(--ink); border-radius: var(--r-card); background: var(--white); margin-bottom: var(--s-8); text-align: center; }
.picks-end .end-line { margin: 0; font-family: var(--font-display); font-size: var(--t-end); font-weight: var(--w-display); line-height: 1.1; text-wrap: balance; }
.picks-end .signup { margin-top: var(--s-5); display: flex; flex-direction: column; align-items: center; }
.picks-end.is-done .signup { margin-top: var(--s-4); }
.picks-end .signin { min-width: var(--signin-min-w); }
/* audit 13 Nov (flow 8): Saved (n) under the closing block, centred like the sign-up under it */
.picks-end .saved-link { margin-top: var(--s-4); text-align: center; }
@media (min-width: 721px) {
  .picks-end .more-picks { width: auto; min-width: var(--more-min-w); margin-inline: auto; padding: 0 var(--s-6); }
  .picks-end.is-done { max-width: var(--end-max-w); margin-inline: auto; }
}
/* #8: one pill size; a parent's kinds sit under it on a short ink rule, indented */
.tile.sub { font-size: inherit; }
.tiles.leaves > li.has-kinds { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tiles.leaves .subs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0 0 0 var(--s-4); list-style: none; border-left: var(--border) solid var(--ink); }
.group-sheet .sheet-panel { scroll-padding-bottom: calc(var(--more-h) + var(--s-6)); }
.group-sheet .sheet-go { position: sticky; bottom: 0; }
.group-sheet .sheet-go::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--fade-h); background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none; }

/* audit 13 Nov (flow 18): small controls get a 44 px touch area (--tap) without moving anything on screen. An invisible
   box centred on the control takes the tap: the back arrow, Change city, the "sign up" link in the free-picks line,
   Show the original listing, and the photo credit. The calendar choices grow to 44 px themselves (above). */
.top .back, .city-line a, [data-free-line] a, .orig summary, .c-credit a, .w-h a, .card .title a { position: relative; }
.top .back::after, .city-line a::after, [data-free-line] a::after, .orig summary::after, .c-credit a::after, .w-h a::after, .card .title a::after { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: max(100%, var(--tap)); height: max(100%, var(--tap)); transform: translate(-50%, -50%); }

/* Quality's phone pass (17 Nov): the boxes sit above plain content (z-index 1) and under the controls that set their own
   order. A clamped card title cut its own box off (overflow: hidden clips what's inside it), so a linked title clamps an
   inner span instead and the link's box reaches past the two lines. */
.card:has(> .clip > .c-cardtop) .title:has(> a) { display: block; overflow: visible; -webkit-line-clamp: none; }
.card:has(> .clip > .c-cardtop) .title > a { display: block; }
/* the credit is a card's last line: the card's edge cut its centred box, so it grows upward over the meta line instead */
.card .c-credit a::after { top: auto; bottom: calc(-1 * var(--s-2)); transform: translateX(-50%); }
.card:has(> .clip > .c-cardtop) .title > a > .tc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) {
  .w-h:has(> a) { display: block; overflow: visible; -webkit-line-clamp: none; }
  .w-h > a { display: block; }
  .w-h > a > .tc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

/* ---------- round 2 (design/review/picks-close, proposal-r2.css; Quality passed 13 Nov) ---------- */
/* the crow sits on the card row's top edge, above its right end (L4: on an edge, never floating); it stays put when
   the cards under it change */
.screen-scan [data-scan-cards], .screen-events .week-block .cards { position: relative; }
.crow.row-crow { position: absolute; z-index: 2; right: var(--row-crow-right); top: var(--row-crow-top); width: var(--row-crow); height: var(--row-crow); pointer-events: none; }
.row-crow .eye { fill: var(--white); }
.row-crow .accent { fill: var(--marker); }
.screen-scan [data-scan-cards] { margin-top: var(--s-6); }
@media (max-width: 720px) {
  /* Fable fix 7 (Design, 13 Nov, picks-close/proposal-r2.css): every line above the cards keeps clear of the crow, not only the free-picks line */
  .screen-scan [data-results] > p, .screen-scan [data-results] > .w-intro > p { padding-right: var(--row-crow-clear); }
  .screen-scan [data-scan-cards] { margin-top: var(--s-4); }
}
/* "powered by Hello Minds" once per screen: on a laptop the header carries it, so the closing block's button goes without */
@media (min-width: 721px) { .screen-scan .picks-end .signup .powered { display: none; } }
/* Your events, signed out: the page opens on the picks, and one sign-up block follows the third card */
.screen-events .signin-row.is-after { margin-top: var(--s-5); padding: var(--s-5); border: var(--border) solid var(--ink); border-radius: var(--r-card); background: var(--white); text-align: center; }
.screen-events .signin-row.is-after .signup { display: flex; flex-direction: column; align-items: center; }
.screen-events .signin-row.is-after .signin { min-width: var(--signin-min-w); }
/* Settings: the weekly day as the ready screen's quiet underlined select */
.setting-day .day-pick { margin-top: var(--s-1); }

/* "Free" or the price on the cards (hub, 13 Nov, from the Hong Kong dry run). Design owner, 13 Nov 2026.
   It's text on the card's date line, not a tag and not a button (L85: Save is the only button). It sits right after
   the time, since a person decides on when and how much together. Ink, semibold, so it reads on a muted line. No
   orange: orange stays fill or underline only, and the one orange underline on a card is "You said". */
.when .price b, .c-meta .c-price b, .c-meta .c-age b, .when .w-age b { font-weight: var(--w-semi); color: var(--ink); }
.when .price { white-space: nowrap; }
/* the first page's date line is one line with an ellipsis: the price comes before the venue, so the venue is what
   gets cut (the photo credit names it too), never the price */
.c-perch .c-meta .c-price { white-space: nowrap; }

/* L63 (W18, W25): interest chips (int-chip: .chip is the card label above) over the picks, Your events and Saved (Design's option A, events-categories/opt.css), in
   tokens. One row that scrolls sideways on a phone, wrapping from 721 up; the chosen one ink-filled; a group with nothing
   greyed. */
.int-chips { display: flex; gap: var(--s-2); overflow-x: auto; margin: var(--s-3) calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) var(--s-1); scrollbar-width: none; }
.int-chips::-webkit-scrollbar { display: none; }
.int-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--pill-h); padding: 0 var(--s-4); border: var(--border) solid var(--ink); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-weight: var(--w-bold); font-size: var(--t-small); white-space: nowrap; text-decoration: none; }
.int-chip i { font-style: normal; font-weight: var(--w-semi); color: var(--muted); }
.int-chip.is-on { background: var(--ink); color: var(--white); }
.int-chip.is-on i { color: var(--white); }
.int-chip.is-empty { border-color: var(--rule); color: var(--muted); background: transparent; }
.int-chips-line { margin-top: var(--s-2); }
.group-out { margin-top: var(--s-4); }
@media (min-width: 721px) { .int-chips { flex-wrap: wrap; overflow: visible; margin: var(--s-3) 0 0; padding: 0; } }
/* the crow stands on the cards' top edge, right under this line: the line keeps clear of all of it (L63 check at 393) */
html:not(.js) .screen-scan [data-results] > .int-chips-line, .week-block > .int-chips-line { padding-right: calc(var(--row-crow) + var(--row-crow-right) + var(--s-2)); }

/* ---------- Direction A, piece 1: the picks on the wire (Design, design/review/wire-a; Content confirmed the words) ----------
   public/app.js wireCards places the visible cards and the crow on the picks' card box and draws the wire edge to edge.
   Without the script the cards stay today's stack and grid: .is-wired comes from the script only. */
.js .cards.is-wired { display: block; position: relative; margin-top: var(--s-5); } /* any card list on the wire: the picks page, Your events' Picks and Saved (piece 3) */
.is-wired > .w-wire { position: absolute; top: 0; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.is-wired > .w-wire path { fill: none; stroke: var(--ink); stroke-width: var(--c-wire); }
.is-wired > article:not([hidden]) { position: absolute; z-index: 1; width: var(--w-card-now, var(--w-card)); margin: 0; transform-origin: 50% 100%; transition: none; }
.is-wired > .w-crow { position: absolute; z-index: 1; width: var(--w-crow); height: auto; pointer-events: none; transform-origin: 50% 100%; }
.is-wired > .row-crow { display: none; }
.w-crow .ink, .w-crow .pupil { fill: var(--ink); }
.w-crow .eye { fill: var(--white); }
.w-crow .accent { fill: var(--marker); }
.w-crow .limb { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.is-wired > article.is-arriving { animation: c-land var(--d-land) var(--ease) backwards; }
@media (min-width: 721px) {
  .is-wired .card:has(> .clip > .c-cardtop) .c-cardtop, .is-wired .card .clip > img { height: var(--w-top); }
  .is-wired .card .title { font-size: var(--t-perch-title); line-height: 1.12; }
}
@media (max-width: 900px) {
  .js .screen-scan [data-results] > p, .js .screen-scan [data-results] > .w-intro > p { padding-right: calc(var(--w-crow) + var(--w-crow-gap)); }
  .js .screen-scan [data-results] > .int-chips-line { padding-right: calc(var(--w-crow) + var(--w-crow-gap)); }
  .js .screen-scan [data-chips] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--w-crow) + var(--w-crow-gap)); }
  /* Your events' picks the same way (Fable, 14 Nov: the crow covered the Games chip at 393) */
  .js .week-block > .int-chips-line { padding-right: calc(var(--w-crow) + var(--w-crow-gap)); }
  .js .week-block > [data-chips] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--w-crow) + var(--w-crow-gap)); }
}
/* on the wire a card says what to decide on; the description stays in the email and on the event page */
.is-wired .card .line { display: none; }
/* B: "You said" right under the title, on every card (picks and Your events) */
.card .said-top { display: block; margin: var(--s-1) 0 0; font-size: var(--t-said-top); font-weight: var(--w-bold); line-height: 1.25; }
.card .said-top span { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: var(--c-said-line); text-underline-offset: var(--said-top-offset); text-decoration-skip-ink: none; }
/* B: Eugene's line opens what he says */
.screen-scan .fine.eugene { font-size: var(--t-lead); font-weight: var(--w-semi); color: var(--ink); margin-top: var(--s-5); }
/* B: his sign-off from the emails ends the page */
.signoff { margin: var(--s-6) 0 var(--s-8); max-width: 34ch; font-size: var(--t-lead); line-height: 1.35; }
/* piece 3, Saved: Add to calendar stays the outline button; Remove is the quiet link beside it, as Not this time */
.saved-list .acts { align-items: center; }
.acts > .remove-saved { margin-top: 0; }
/* both on one row in a laptop card (the row is about 217 px at 1440): a slimmer calendar button, Remove without padding */
.saved-list .acts, .saved-list .card:has(> .clip > .c-cardtop) .acts { column-gap: var(--s-2); } /* beats the compact card's gap on a phone (Design, 393); 8 px between the two (Design, 14 Nov) */
.saved-list .acts .btn.cal, .saved-list .card:has(> .clip > .c-cardtop) .acts .btn.cal { padding-inline: var(--s-2); } /* beats the compact card's button padding on a phone */
.acts > .remove-saved .link { padding-inline: 0; }

/* d67 (14 Nov): the first page with no city chosen shows the best highlights of every live city; each names its city on
   its own line under the title (design/review/no-city/nocity.css) */
.c-hero .c-perches.is-mix .c-place { margin: var(--s-1) 0 0; font-size: var(--t-small); font-weight: var(--w-bold); line-height: 1.2; color: var(--ink); }
.c-hero .c-perches.is-mix .c-ph { aspect-ratio: var(--c-perch-ratio-mix); }

/* ---------- Direction A, piece 2: the taste screen (Design, design/review/wire-a; Content confirmed the words) ----------
   public/app.js wireTags lays each chosen interest on a wire under the headline, the crow at its end; a passion in orange.
   The white panel goes: the tiles and "Show my picks" sit on the sky. Without the script, no wire and today's panel. */
.w-tags { position: relative; margin-top: var(--s-3); }
.w-tags > .w-wire { position: absolute; top: 0; height: 100%; overflow: visible; pointer-events: none; }
.w-tags > .w-wire path { fill: none; stroke: var(--ink); stroke-width: var(--c-wire); }
.w-tag { position: absolute; display: inline-flex; align-items: center; min-height: var(--w-tag-h); padding: 0 var(--s-3); background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--r-card); font-weight: var(--w-bold); font-variation-settings: var(--fv-title); font-size: var(--t-wtag); white-space: nowrap; transform-origin: 50% 100%; }
.w-tag.is-passion { background: var(--marker); }
/* Quality, 13 Nov: a passion isn't shown by colour alone. A star before its name on the wire tags, the tiles and the key
   (screen readers skip it and hear ", drop everything") */
/* the ★ that marked a love is replaced by the heart (B48, Design 16 Nov): the marks are at the end of this file */
.w-tag.is-landing { animation: c-land var(--d-land) var(--ease) backwards; }
.w-tags > .w-crow { position: absolute; width: var(--w-crow-taste); height: var(--w-crow-taste); pointer-events: none; transform-origin: 50% 100%; }
.w-tags .w-more { position: absolute; font-size: var(--t-small); font-weight: var(--w-semi); color: var(--muted); white-space: nowrap; }
.js .screen-taste .pick-sheet.is-sky { margin: var(--s-5) 0 0; padding: 0; background: none; border-radius: 0; }
.js .screen-taste .pick-sheet.is-sky .pick-go { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: var(--paper); border-top: var(--hair) solid var(--rule); }

/* The laptop fold with chips (Design, design/review/wire-a/fold.css, 13 Nov): wider than 900 and 900 tall or less only.
   Eugene's line and the free-picks line run as one; the chips' line sits beside the chips when there's room; less air
   above the wire. With the two token cuts in tokens.css, the first title moves from about 819 to 633 at 1440x790. */
@media (min-width: 901px) and (max-height: 900px) {
  .screen-scan [data-results] > .w-intro > [data-eugene], .screen-scan [data-results] > .w-intro > [data-free-line] { display: inline; }
  .screen-scan [data-results] > .w-intro > [data-eugene] { margin-right: var(--s-2); font-size: var(--t-body); }
  .screen-scan [data-results] > .w-intro > [data-free-line] { font-size: var(--t-body); }
  .screen-scan [data-chips] { display: inline-flex; vertical-align: middle; margin: var(--s-4) var(--s-3) 0 0; }
  .screen-scan [data-chips] + [data-chips-line] { display: inline-block; vertical-align: middle; margin: var(--s-4) 0 0; padding-right: 0; }
  .js .cards.is-wired { margin-top: var(--s-3); }
  .screen-scan [data-results] { padding-top: var(--s-2); }
}

/* ---------- B67, the first page on a laptop window (Design, design/review/fold-laptop/short.css rounds 1 to 5 and the
   six-city block, 14 Nov; tokens at the end of tokens.css). Last in the file, the order Design measured in. */
/* a narrower laptop window: the cities and Start stay beside the sub-line */
@media (min-width: 721px) and (max-width: 1366px) {
  .c-hero .c-city { padding: 0 var(--c-city-pad-tight); }
  .c-hero .c-start { padding: 0 var(--c-start-pad-tight); margin-left: 0; }
  .c-hero .c-row { gap: var(--s-6); }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .c-hero .c-sub { flex: 0 1 auto; font-size: var(--c-t-sub-tight); }
  .c-hero .c-ask { flex: 1 0 auto; }
  .c-hero .c-cities { flex-wrap: nowrap; justify-content: flex-end; }
  .c-hero .c-ask-label { width: auto; flex: 1 0 100%; }
  .c-hero .c-city, .c-hero .c-start { padding: 0 var(--c-city-pad-tighter); font-size: var(--c-t-city-tight); }
}
/* a very short window: the note moves to the right, above the crow, clear of the cards */
@media (min-width: 721px) and (max-height: 700px) {
  .c-hero .c-note { left: auto; right: var(--c-gutter); top: var(--c-note-top-right); text-align: right; }
}
/* the shortest windows (about 1000 x 518): two picks, a one-line title, no date line, the credit on one line */
@media (min-width: 721px) and (max-height: 580px) {
  .c-hero .c-perch[data-i="2"] { display: none; }
  .c-hero .c-tx h3 { -webkit-line-clamp: 1; }
  .c-hero .c-perch .c-meta { display: none; }
  .c-hero .c-credit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* rounds 4 and 5: the hero is the window's height; the wire block takes what the text leaves; each card is capped to
   the space under the note (counting a tilted card's rise) and its photo crops, so nothing reaches the sub-line or note */
@media (min-width: 721px) {
  .c-hero { display: flex; flex-direction: column; height: calc(min(100svh, var(--c-hero-max)) - var(--c-bar-pad) - var(--c-pill-h) - var(--s-3) - var(--c-hero-tilt-gap)); min-height: var(--c-hero-min); }
  .c-hero > .c-bar, .c-hero > .c-top { flex: none; }
  .c-hero > .c-tab { flex: 1 1 auto; height: auto; min-height: var(--c-tab-min); margin-top: 0; }
  .c-hero .c-perch { display: flex; flex-direction: column; max-height: calc(100% - var(--b-d) - var(--c-note-space)); }
  .c-hero .c-perch .c-ph { flex: 0 1 auto; min-height: var(--c-ph-min); }
  .c-hero .c-perch .c-tx { flex: none; }
  .c-hero .c-crow { height: min(var(--c-crow), calc(100% - var(--c-crow-gap))); width: auto; aspect-ratio: 1 / 1; }
}
/* the phone: the same structure, so a tall photo crops a little instead of rising into the note */
@media (max-width: 720px) {
  .c-hero .c-perch:not([data-i="2"]) { display: flex; flex-direction: column; max-height: calc(100% - var(--b-m) - var(--c-note-space)); }
  .c-hero .c-perch .c-ph { flex: 0 1 auto; min-height: var(--c-ph-min); }
  .c-hero .c-perch .c-tx { flex: none; }
  .c-hero .c-credit { font-size: var(--c-t-credit-m); }
  .c-hero .c-credit, .c-hero .c-perch .c-credit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* six pills in a window 500 tall or less: the hero and wire block may go under their usual minimums */
@media (min-width: 721px) and (max-height: 500px) {
  .c-hero { min-height: 0; }
  .c-hero > .c-tab { min-height: var(--c-tab-min-short); }
}
/* d67 with six cities (Design, design/review/no-city/mix.css, 14 Nov): on laptops the mixed card names its city in a
   corner tag on its photo (or its ink no-photo top), so it adds no height and clips nothing: the date line is exactly a
   city card's, the venue clipping, never the price. Only one of the two city elements shows at a width, so it's read once
   (the tag is the card's first child, not inside .c-ph, so a photo that fails and turns into the no-photo top keeps it).
   The phone keeps the city line under the title and its shorter photo (--c-perch-ratio-mix). */
.c-place-tag { display: none; }
@media (min-width: 721px) {
  .c-hero .c-perches.is-mix .c-place { display: none; }
  .c-hero .c-perches.is-mix .c-place-tag { position: absolute; z-index: 2; top: var(--s-2); left: var(--s-2); display: inline-flex; align-items: center; min-height: var(--c-place-tag-h); margin: 0; padding: 0 var(--s-2); background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--r-chip); color: var(--ink); font-size: var(--t-small); font-weight: var(--w-bold); line-height: 1; white-space: nowrap; }
  .c-hero .c-perches.is-mix .c-place-tag + .lang-tag { top: calc(var(--s-2) + var(--c-place-tag-h) + var(--s-1)); } /* a listing-language tag goes under it */
  .c-hero .c-perches.is-mix .c-ph { aspect-ratio: var(--c-perch-ratio); }
}

/* ---------- The place picker, Direction 2 (her pick, 13 Nov; Design, design/review/city-picker/picker.css and SPEC.md,
   with Quality's fixes; d67's empty state from no-city/nocity.css). views.js cPicker builds it when SCOUT_PICKER=d2;
   public/app.js runs the list. Tokens at the end of tokens.css. No native select; every target 44 px or more. */
.pk { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.pk-pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--pill-h); padding: 0 var(--s-5); border: 0; border-radius: var(--r-chip); background: var(--white); color: var(--ink); font: var(--w-bold) var(--pk-t)/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.pk-pill:focus-visible, .pk-opt:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.pk-lead { display: inline-flex; align-items: center; gap: var(--pk-lead-gap); min-width: 0; }
.pk-chev { width: var(--pk-chev-w); height: var(--pk-chev-h); flex: none; transition: transform var(--dur-fast) var(--ease); }
[aria-expanded="true"] > .pk-chev { transform: rotate(180deg); }
.pk-sub { font-weight: var(--w-medium); color: var(--muted); }
.pk .c-start { margin-left: 0; }
.pk-panel { position: absolute; z-index: 40; top: calc(100% + var(--s-2)); left: 0; min-width: var(--pk-panel-min); padding: var(--s-3); background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--r-card); }
.pk-panel[hidden], .pk-scrim[hidden] { display: none; }
.pk-panel-title { margin: 0 0 var(--s-2); padding: 0 var(--s-2); font-size: var(--t-small); font-weight: var(--w-bold); color: var(--muted); }
.pk-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); width: 100%; min-height: var(--pk-row-h); padding: 0 var(--s-3); border: 0; border-radius: var(--pk-opt-r); background: transparent; color: var(--ink); font: var(--w-semi) var(--pk-t)/1 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.pk-opt:hover { background: var(--sky); }
.pk-opt[aria-selected="true"] { background: var(--ink); color: var(--white); }
.pk-group { margin: var(--s-2) 0 var(--s-1); padding: 0 var(--s-3); font-size: var(--t-small); font-weight: var(--w-bold); color: var(--muted); }
.pk-group:first-child { margin-top: 0; }
.pk-nest .pk-opt { padding-left: var(--s-5); }
.d2 .pk-place { justify-content: space-between; min-width: var(--pk-place-min); background: var(--white); color: var(--ink); }
.d2 .pk-place[aria-expanded="true"] { outline: var(--pk-outline) solid var(--ink); outline-offset: calc(-1 * var(--pk-outline)); }
.d2 .pk-place .pk-pin { width: var(--pk-pin-w); height: var(--pk-pin-h); flex: none; }
.d2 .pk-place.is-empty [data-pk-cur] { color: var(--muted); font-weight: var(--w-medium); } /* d67: "Choose your city" */
.d2 .pk-why { margin: var(--s-1) 0 var(--s-2); padding: 0 var(--s-2); font-size: var(--pk-t-why); line-height: 1.35; color: var(--ink); }
.pk-scrim { display: none; }
html:not(.js) .pk-place { display: none; } /* without the script the noscript pills choose the city */
.pk-noscript { display: flex; flex-wrap: wrap; gap: var(--s-2); }
/* "Add your city" (B71) and the crow's reply */
.pk-add { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--pk-row-h); margin-top: var(--s-2); padding: 0 var(--s-3); border: 0; border-top: var(--pk-rule) solid var(--rule-soft); border-radius: 0; background: transparent; color: var(--ink); font: var(--w-bold) var(--pk-t-add)/1 var(--font-body); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: var(--pk-underline); text-underline-offset: var(--pk-underline-off); }
.pk-add[hidden], .pk-form[hidden], .pk-reply[hidden] { display: none; }
.pk-add:focus-visible { outline: var(--focus-ring); outline-offset: var(--pk-focus-off); }
.pk-form { margin-top: var(--s-2); padding: var(--s-3) var(--s-3) var(--s-1); border-top: var(--pk-rule) solid var(--rule-soft); }
.pk-form label { display: block; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: var(--w-bold); }
.pk-form .pk-row { display: flex; gap: var(--s-2); }
.pk-form input { flex: 1; min-width: 0; min-height: var(--pk-row-h); padding: 0 var(--s-4); border: var(--border) solid var(--ink); border-radius: var(--r-chip); background: var(--white); color: var(--ink); font: var(--w-medium) var(--pk-t)/1 var(--font-body); }
.pk-form input:focus-visible { outline: var(--focus-ring); outline-offset: var(--pk-focus-off); }
.pk-form button { min-height: var(--pk-row-h); padding: 0 var(--s-5); border: 0; border-radius: var(--r-chip); background: var(--ink); color: var(--white); font: var(--w-bold) var(--pk-t-add)/1 var(--font-body); cursor: pointer; }
.pk-reply { display: grid; grid-template-columns: var(--pk-crow-w) minmax(0, 1fr); gap: var(--s-2); align-items: end; margin-top: var(--s-2); padding: var(--s-3) var(--s-2) var(--s-1); border-top: var(--pk-rule) solid var(--rule-soft); }
.pk-reply svg { width: var(--pk-crow-w); height: var(--pk-crow-h); }
.pk-bubble { position: relative; margin: 0 0 var(--pk-bubble-lift); padding: var(--s-3) var(--s-4); background: var(--sky); border: var(--pk-outline) solid var(--ink); border-radius: var(--pk-bubble-r); font-size: var(--pk-t-bubble); line-height: 1.4; }
@media (max-width: 720px) {
  .d2 .pk { display: grid; grid-template-columns: minmax(0, 1fr); }
  .d2 .pk-place { min-width: 0; width: 100%; }
  /* the list becomes a sheet from the bottom of the screen, the page dimmed and inert behind it */
  .d2 .pk-scrim { display: block; position: fixed; inset: 0; z-index: 39; background: var(--scrim); }
  .d2 .pk-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: var(--pk-sheet-max); overflow-y: auto; padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
  .d2 .pk-panel-title { font-size: var(--pk-t-title-m); color: var(--ink); font-family: var(--font-display); }
}
/* on a laptop the list floats under the whole ask, below "Sign up for free…", and the page under it doesn't move */
@media (min-width: 721px) {
  .c-hero .c-ask:has(.d2) { position: relative; }
  .d2 .pk { position: static; }
  .d2 .pk-panel { top: calc(100% + var(--s-2)); left: 0; width: var(--pk-panel-w); max-height: min(var(--pk-panel-max), calc(100svh - var(--pk-panel-room))); overflow-y: auto; }
  /* the hero clips its big crow sideways; while the list is open it may run past the hero's bottom edge */
  .c-hero:has(.d2 .pk-panel:not([hidden])) { overflow-x: clip; overflow-y: visible; }
  .d2 .pk-panel .pk-panel-title { position: absolute; width: var(--hair); height: var(--hair); margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* visually hidden: the label above asks */
  .d2 .pk-panel .pk-opt { min-height: var(--pk-row-h-d); }
  .d2 .pk-panel .pk-group { margin-top: var(--s-1); }
}
/* hidden means hidden: the phone's sheet rules above give the scrim and the panel a display of their own */
.d2 .pk-scrim[hidden], .d2 .pk-panel[hidden] { display: none; }
/* the same control on the screens after the first page (SPEC "elsewhere"; design/review/city-picker d2-taste, d2-picks,
   d2-settings): under the headline on taste and picks a 44 px pill sized to its words; in Settings the city row's
   full-width pill with an ink border, on the white card. The list opens under the pill (a sheet on a phone). */
.taste-pk { margin-top: var(--s-3); }
.taste-pk .pk-pill { min-height: var(--tap); font-size: var(--pk-t-compact); }
.taste-pk .d2 .pk-place { min-width: 0; width: auto; }
.setting-city .d2 .pk-place { width: 100%; min-width: 0; border: var(--border) solid var(--ink); }
@media (max-width: 720px) {
  .taste-pk .d2 .pk { display: flex; }
  .setting-city .d2 .pk { display: block; }
}
@media (min-width: 721px) {
  .taste-pk .d2 .pk, .setting-city .d2 .pk { position: relative; display: inline-flex; }
  .setting-city .d2 .pk { display: flex; }
}

/* The highlight card's date line (Design, 14 Nov): the date and the price are facts and never clip; only the venue
   shrinks to its ellipsis. When the date and the price can't share a line, the price moves whole to a second one and the
   venue follows it there. B67 round 5's cap crops the photo for that extra line. Phones hide the venue on photo cards.
   The separator never starts a line: every item draws its "·" in front, and the inner row is shifted left by one
   separator's width, so whichever item starts a line has its "·" in the clipped strip. Screen readers get a hidden ", "
   between the parts and no "dot" (the empty alt text; browsers without it keep the plain content line). */
.c-perch .c-meta { display: block; white-space: normal; overflow: hidden; }
.c-meta-in { display: flex; flex-wrap: wrap; margin-left: calc(-1 * var(--c-sep-w)); }
.c-meta-in > .c-dt, .c-meta-in > .c-price, .c-meta-in > .c-age, .c-meta-in > .c-v { white-space: nowrap; }
.c-meta-in > .c-dt::before, .c-meta-in > .c-price::before, .c-meta-in > .c-age::before, .c-meta-in > .c-v::before { content: "·"; content: "·" / ""; display: inline-block; width: var(--c-sep-w); text-align: center; }
.c-perch .c-meta .c-dt, .c-perch .c-meta .c-price, .c-perch .c-meta .c-age { flex: none; }
.c-perch .c-meta .c-v { flex: 1 1 0; min-width: var(--c-venue-min); overflow: hidden; text-overflow: ellipsis; } /* never a bare "…": too little room and the venue takes the next line */

/* The phone picks page's first screen (Design, design/review/wire-a/phone.css; Fable, 14 Nov: the first pick started
   below the first screen). Eugene's line, the free-picks line and the "nothing fits" notes run as one paragraph at body
   size beside the crow, with one right-hand margin; 12 px above the wire instead of 24. */
@media (max-width: 720px) {
  .js .screen-scan [data-results] > .w-intro > [data-eugene], .js .screen-scan [data-results] > .w-intro > [data-free-line], .js .screen-scan [data-results] > .w-intro > .note { display: inline; font-size: var(--t-body); margin: 0; padding-right: 0; }
  .js .screen-scan [data-results] > .w-intro > [data-eugene] { font-weight: var(--w-semi); }
  .js .screen-scan [data-results] > .w-intro > [data-eugene]::after, .js .screen-scan [data-results] > .w-intro > [data-free-line]::after, .js .screen-scan [data-results] > .w-intro > .note::after { content: " "; }
  .js .screen-scan [data-results]:not(:has([data-chips])) > .w-intro { padding-right: calc(var(--w-crow) + var(--w-crow-gap)); } /* the lines only; the cards keep the width */
  .js .screen-scan [data-results] { padding-top: var(--s-3); }
  .js .screen-scan .cards.is-wired { margin-top: var(--s-3); }
}
/* "powered by Hello Minds" once on screen (Design, phone.css; audit 13 Nov, Fable 14 Nov): with the sign-up sheet open the
   sheet's copy is the one, so the page's copies behind the scrim step back */
body:has(.sheet.is-open) .su-stack .powered-top, body:has(.sheet.is-open) main .powered { visibility: hidden; }
/* Lina's line under her sub-line (14 Nov; Design, design/review/no-city/forline.css): small and quiet, in the sub-line's
   column, so it reads as part of the same answer */
.c-hero .c-sub .c-for { display: block; margin: var(--s-1) 0 0; font-size: var(--t-small); line-height: 1.4; color: var(--muted); }

/* The pick card's date line (Design, 15 Nov, design/review/price/age.css): date, price and age as flex units with the first
   page's hidden-separator trick; the date may wrap inside itself, price and age are whole units */
.when { overflow: hidden; }
.w-in { display: flex; flex-wrap: wrap; align-items: baseline; margin-left: calc(-1 * var(--c-sep-w)); }
.w-in > .w-dt::before, .w-in > .price::before, .w-in > .w-age::before { content: "·"; content: "·" / ""; display: inline-block; width: var(--c-sep-w); text-align: center; }
.w-in > .w-dt { flex: 0 1 auto; }
.w-in > .price, .w-in > .w-age { flex: none; white-space: nowrap; }

/* ---------- What's on (Explore B, 15 Nov 2026; public/explore-view.js). App's working look from the tokens; Design sets
   the final one at 393 and 1440 ---------- */
.xp-h1 { margin: var(--s-4) 0 0; font-family: var(--font-display); font-size: var(--t-h2); line-height: var(--lh-h2); font-variation-settings: var(--fv-title); max-width: var(--xp-h1-ch); }
/* Adventure mode's title takes Design's size (ws.css .h1), so its three cards fit above the tabs */
.xp-page.is-adv .xp-h1 { margin-top: var(--s-2); font-size: var(--t-xp-h1); line-height: var(--lh-xp-h1); letter-spacing: var(--track-xp-h1); font-weight: var(--w-display); font-variation-settings: var(--fv-display); }
.xp-lead, .xp-said-line { margin: var(--s-2) 0 0; font-size: var(--t-lead); max-width: var(--measure); }
.xp-count { font-variant-numeric: tabular-nums; }
.xp-small, .xp-n { font-size: var(--t-small); color: var(--muted); font-weight: var(--w-regular); }
.xp-entry { margin: var(--s-3) 0 0; font-size: var(--t-lead); }
.xp-entry a { font-weight: var(--w-bold); }
.xp-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-4); }
.xp-tools { display: grid; gap: var(--s-3); }
.xp-when, .xp-it, .xp-crumbs, .xp-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.xp-crumbs { margin-top: var(--s-3); }
.xp-filters { margin-top: var(--s-2); }
.xp-pill { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); padding: 0 var(--s-4); border: var(--border) solid var(--ink); border-radius: var(--r-pill); background: var(--card); color: var(--ink); font-weight: var(--w-semi); text-decoration: none; cursor: pointer; list-style: none; }
.xp-pill::-webkit-details-marker { display: none; }
.xp-pill.is-sm { min-height: var(--tap); padding: 0 var(--s-3); font-size: var(--t-x-pill); font-weight: var(--w-bold); border-width: var(--hair); } /* Design: every pill on this page is a 44 px target */
.xp-pill.is-on { background: var(--ink); color: var(--paper); }
.xp-pill.is-on .xp-c { color: var(--paper); }
.xp-pill.is-mine { box-shadow: inset 0 calc(-1 * var(--s-1)) 0 var(--marker); }
.xp-c { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: var(--w-semi); }
.xp-cal { display: contents; }
.xp-cal[open] .xp-cal-g { display: grid; }
.xp-cal-g { display: none; flex-basis: 100%; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-1); max-width: var(--xp-cal-max); margin-top: var(--s-2); }
.xp-cal-d { display: grid; justify-items: center; min-height: var(--xp-cal-h); padding: var(--s-1) 0; border: var(--hair) solid var(--ink); border-radius: var(--r-control); background: var(--card); color: var(--ink); text-decoration: none; line-height: var(--lh-title); }
.xp-cal-d small, .xp-cal-d i { font-size: var(--t-tiny); color: var(--muted); font-style: normal; }
.xp-cal-d.is-we { box-shadow: inset 0 calc(-1 * var(--s-1)) 0 var(--rule); }
.xp-cal-d.is-on { background: var(--ink); color: var(--paper); }
.xp-cal-d.is-on small, .xp-cal-d.is-on i { color: var(--paper); }
.xp-search label { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); padding: 0 var(--s-4); border: var(--border) solid var(--ink); border-radius: var(--r-pill); background: var(--white); } /* Design: "Find" inside the field */
.xp-search label:focus-within { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.xp-search input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0; border: 0; background: transparent; font: inherit; color: var(--ink); }
.xp-search input:focus { outline: none; }
.xp-index { display: grid; gap: var(--s-4); margin-top: var(--s-3); }
.xp-index > .xp-pill { justify-self: start; }
.xp-gh { margin: 0 0 var(--s-2); font-family: var(--font-display); font-size: var(--t-x-gh); font-weight: var(--w-bold); font-variation-settings: var(--fv-display); }
.xp-gl { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: var(--w-bold); text-decoration: none; }
.xp-g.is-none .xp-gh { margin: 0; color: var(--muted); font-size: var(--t-body); font-weight: var(--w-medium); }
.xp-none { margin: var(--s-2) 0 0; font-size: var(--t-small); color: var(--muted); }
.xp-none-toggle { display: none; align-items: center; min-height: var(--tap); font-size: var(--t-small); margin-top: var(--s-3); }
.xp-dh { margin: var(--s-5) 0 var(--s-2); font-size: var(--t-h3); }
.xp-dh.xp-first { margin-top: 0; }
.xp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.xp-row { display: grid; grid-template-columns: var(--xp-time-w) var(--xp-img) minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; padding: var(--s-3); border: var(--hair) solid var(--rule); border-radius: var(--r-card); background: var(--card); }
.xp-t { font-weight: var(--w-bold); font-variant-numeric: tabular-nums; line-height: var(--lh-title); }
.xp-t small { display: block; font-size: var(--t-small); font-weight: var(--w-regular); color: var(--muted); }
.xp-img { width: var(--xp-img); height: var(--xp-img); border-radius: var(--r-control); object-fit: cover; background: var(--rule-soft); display: block; }
.xp-h { margin: 0; font-size: var(--t-body); line-height: var(--lh-title); }
.xp-h a { color: var(--ink); }
.xp-h .tag { display: inline-flex; margin-left: var(--s-2); padding: 0 var(--s-2); border-radius: var(--r-tag); background: var(--tag-bg); font-size: var(--t-small); font-weight: var(--w-semi); vertical-align: middle; } /* Design: the listing tag at 13 px */
.xp-m, .xp-kind, .xp-said, .xp-closed { margin: var(--s-1) 0 0; font-size: var(--t-small); }
.xp-m { color: var(--muted); }
.xp-kind { margin: 0 0 var(--s-1); }
.xp-said { font-weight: var(--w-semi); }
.xp-closed { font-weight: var(--w-semi); color: var(--error); }
.xp-save { min-height: var(--tap); padding: 0 var(--s-3); border: var(--hair) solid var(--ink); border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: inherit; font-weight: var(--w-semi); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.xp-save.is-on { background: var(--ink); color: var(--paper); }
.xp-save-f, .xp-add-f { margin: 0; display: inline; }
.xp-signup { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; padding: var(--s-3); border-top: var(--hair) solid var(--rule-soft); }
.xp-back { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-small); }
.xp-chg { margin: var(--s-3) 0 var(--s-1); }
.xp-chg summary { min-height: var(--tap); display: flex; align-items: center; font-size: var(--t-small); font-weight: var(--w-semi); text-decoration: underline; cursor: pointer; }
.xp-more-w { margin-top: var(--s-4); }
.xp-end { margin: var(--s-4) 0 0; max-width: var(--measure); }
/* the end (Design): "That's all n." in the display face on a white block, the crow on its top edge */
.x-end { position: relative; margin: var(--x-end-top) 0 0; padding: var(--x-end-pad-t) var(--x-end-pad) var(--x-end-pad); background: var(--card); border: var(--border) solid var(--ink); border-radius: var(--r-card); }
.x-end-t { margin: 0; font-family: var(--font-display); font-size: var(--t-x-end); font-weight: var(--w-display); line-height: var(--lh-display); font-variation-settings: var(--fv-display); }
.x-end .x-kids { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--w-semi); }
.x-end .crow.x-end-bird { position: absolute; right: var(--x-end-bird-in); top: calc(-1 * var(--x-crow-end) + var(--s-1)); width: var(--x-crow-end); height: var(--x-crow-end); }
.x-kids-line { margin: 0; font-size: var(--t-small); color: var(--muted); }
.xp-kids-board { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: var(--w-semi); }
/* a stand-alone link in a line ("Back to your picks", "Add [kind]") gets a 44 px tap area; its text doesn't move */
.xp-tap { display: inline-block; min-height: var(--tap); padding-block: var(--x-tap-pad); margin-block: calc(-1 * var(--x-tap-pad)); box-sizing: border-box; }
/* the header on the wire (Design): the title and the place pill, then the wire across the window, Eugene at its right end */
.x-head { position: relative; padding-bottom: var(--x-head-pad); }
.x-head .xp-h1 { padding-right: calc(var(--x-crow) + var(--s-2)); }
.x-wire { position: relative; height: calc(var(--x-crow) * 0.62); margin: 0 calc(50% - 50vw); }
.x-head[hidden] + .x-wire { margin-top: var(--x-head-top); }
.x-wire > svg.x-line { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--x-wire-line); overflow: visible; }
/* the wire is decoration: its box, line and line of words let clicks through to the header under it (Quality, 16 Nov: on a
   laptop Adventure mode pulls the wire up over the place picker, so a click never opened it); Eugene keeps his */
.x-wire { pointer-events: none; }
.x-wire .crow.x-bird { pointer-events: auto; }
.x-wire > svg.x-line path { fill: none; stroke: var(--ink); stroke-width: var(--border); vector-effect: non-scaling-stroke; }
.x-wire .crow.x-bird { position: absolute; bottom: var(--x-bird-lift); right: max(var(--gutter), calc((100vw - var(--shell)) / 2)); width: var(--x-crow); height: var(--x-crow); }
.x-wire .x-say { position: absolute; bottom: var(--x-say-lift); right: calc(max(var(--gutter), calc((100vw - var(--shell)) / 2)) + var(--x-crow) + var(--x-say-gap)); max-width: var(--x-say-ch); margin: 0; font-size: var(--t-x-say); font-weight: var(--w-semi); line-height: var(--lh-title); text-align: right; }
/* the first page's way in (Design): a text link before the Start pill on phones too */
.c-nav a.c-whatson { display: inline-flex; align-items: center; min-height: var(--tap); }
.xp-note { margin: var(--s-4) 0 0; padding: var(--s-3); border-radius: var(--r-card); background: var(--card); max-width: var(--measure); }
.xp-hours { margin-top: var(--s-2); }
.xp-foot { margin-top: var(--s-4); }
@media (max-width: 900px) {
  .xp-row { grid-template-columns: var(--xp-img) minmax(0, 1fr) auto; }
  .xp-row .xp-t { grid-column: 1 / -1; display: flex; gap: var(--s-2); align-items: baseline; }
  .xp-row .xp-t small { display: inline; }
  .xp-board.has-answer .xp-side { display: none; }
  .xp-board.has-answer.has-q .xp-side { display: block; }
  .xp-board.has-answer.has-q .xp-index, .xp-board.has-answer.has-q .xp-said-line, .xp-board.has-answer.has-q .xp-side .x-kids-line, .xp-board.has-answer.has-q .xp-back { display: none; }
  .has-script .xp-board:not(.show-none) .xp-none, .has-script .xp-board:not(.show-none) .xp-g.is-none { display: none; } /* folded only where the link can open them */
  .has-script .xp-none-toggle { display: inline-flex; }
}
@media (min-width: 901px) {
  .x-wire { height: calc(var(--x-crow) + var(--x-wire-room)); } /* the crow stays inside the wire's row, clear of the header links */
  .xp-board.has-answer, .xp-board.is-open { grid-template-columns: var(--xp-side-w) minmax(0, 1fr); gap: var(--xp-col-gap); align-items: start; }
  .xp-board .xp-side { position: sticky; top: var(--xp-sticky-top); max-height: calc(100vh - 2 * var(--xp-sticky-top)); overflow: auto; }
  .xp-only-phone { display: none; }
}

/* What's on by genre (Design, drill.css, 15 Nov): the board and a group are tiles only, the taste screen's group tiles; two
   columns on a phone, four on a laptop; "All [group]" last, quieter, with a dashed edge; the answer stands alone */
.d-level { display: block; margin-top: var(--s-4); }
.d-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--d-gap); margin-top: var(--s-4); }
.d-tile { display: flex; align-items: center; justify-content: space-between; gap: var(--d-gap); min-height: var(--d-tile-h); padding: var(--d-gap) var(--s-4); border: var(--border) solid var(--ink); border-radius: var(--r-card); background: var(--card); color: var(--ink); text-align: left; text-decoration: none; }
.d-tile:hover { background: var(--paper); }
.d-tile:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.d-name { font-size: var(--t-body); font-weight: var(--w-bold); line-height: var(--lh-title); }
.d-n { flex: none; font-family: var(--font-display); font-size: var(--t-d-n); font-weight: var(--w-display); font-variation-settings: var(--fv-display); font-variant-numeric: tabular-nums; }
.d-tile.is-mine .d-name { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: var(--d-mine-line); text-underline-offset: var(--s-1); }
.d-tile.d-all { background: transparent; border-style: dashed; }
.d-none { margin-top: var(--s-4); max-width: var(--measure); }
.d-answer { max-width: var(--d-answer-max); }
.d-answer .xp-tools { margin-top: var(--s-2); }
@media (min-width: 901px) { .d-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); max-width: var(--d-tiles-max); } }
/* Quality, 15 Nov: the date line's hidden commas stay in the text flow (zero size, not positioned), so the line reads
   "Thu 19 Nov, 20:30, Free" as text and to a screen reader, never " , " or a comma on a line of its own */
.w-in .sr, .c-meta-in .sr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 0; }

/* the walk (Discovery B, L101): Design's spec (design/review/explore/walk/walk.css on Fable's disc.css), from the tokens.
   Three cards that fit above the tabs at 393 x 852: the reason first, a two-line title, one facts line, the photo beside;
   "What's next to this" and Save under each; the doors under a step; the kinds under "Or start from a kind" */
.w-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--w-gap); margin-top: var(--s-3); }
.w-card { display: flex; flex-direction: column; gap: var(--w-gap); padding: var(--w-pad-y) var(--w-pad-x); background: var(--card); border: var(--border) solid var(--ink); border-radius: var(--r-card); }
.w-why { margin: 0; font-size: var(--t-w-why); line-height: var(--lh-w-why); font-weight: var(--w-bold); }
.w-why span { box-shadow: inset 0 calc(-1 * var(--w-why-line)) 0 var(--marker); }
.w-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--w-gap); align-items: start; }
.w-h { margin: 0; font-size: var(--t-w-title); line-height: var(--lh-title); font-weight: var(--w-display); font-variation-settings: var(--fv-title); }
.w-h a { color: var(--ink); text-decoration: none; }
.w-h a:hover { text-decoration: underline; }
.w-m { margin-top: var(--s-1); font-size: var(--t-w-meta); color: var(--muted); overflow: hidden; }
.w-meta { display: flex; flex-wrap: wrap; margin: 0 0 0 calc(-1 * var(--w-sep)); white-space: nowrap; }
.w-meta > * { flex: none; max-width: calc(100% - var(--w-sep)); overflow: hidden; text-overflow: ellipsis; }
.w-meta > *::before { content: "·"; content: "·" / ""; display: inline-block; width: var(--w-sep); text-align: center; color: var(--muted); font-weight: var(--w-medium); }
.w-meta .k { color: var(--ink); font-weight: var(--w-bold); }
.w-meta .v { flex: 1 1 var(--w-venue-min); min-width: calc(var(--w-venue-min) + var(--w-sep)); max-width: max-content; }
.w-img { flex: none; width: var(--w-img); height: var(--w-img); border-radius: var(--r-control); object-fit: cover; border: var(--hair) solid var(--rule); background: var(--paper); }
.w-acts { display: flex; gap: var(--s-2); align-items: center; margin-top: auto; }
.w-acts .w-next { font-weight: var(--w-bold); }
.w-acts .xp-save-f, .w-acts > .xp-save { margin-left: auto; }
.w-under { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: center; margin-top: var(--s-3); }
.w-under .link { display: inline-flex; align-items: center; min-height: var(--tap); }
.w-kinds { margin-top: var(--w-kinds-top); padding-top: var(--w-kinds-pad); border-top: var(--border) solid var(--ink); }
.w-h2 { margin: 0; font-size: var(--t-w-h2); font-weight: var(--w-display); font-variation-settings: var(--fv-title); }
.w-seed { margin: var(--s-2) 0 0; overflow: hidden; color: var(--muted); font-size: var(--t-w-meta); } /* one facts line, as the cards' (Design, 16:4x) */
.w-seed .w-meta .k { color: var(--muted); font-weight: var(--w-medium); }
.w-doors { margin-top: var(--w-kinds-top); }
.w-door-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
.w-door { display: flex; align-items: center; justify-content: space-between; gap: var(--w-gap); min-height: var(--w-door-h); padding: var(--s-2) var(--s-4); border: var(--border) solid var(--ink); border-radius: var(--r-card); background: var(--card); color: var(--ink); text-decoration: none; }
.w-door .d-name { font-size: var(--t-w-door); font-weight: var(--w-bold); }
.w-door .d-n { font-family: var(--font-display); font-size: var(--t-w-door-n); font-weight: var(--w-display); font-variation-settings: var(--fv-display); font-variant-numeric: tabular-nums; }
.w-door small { display: block; font-size: var(--t-small); font-weight: var(--w-medium); color: var(--muted); }
.w-door.is-later { border-style: dashed; background: transparent; }
.w-door.is-none { border: 0; background: transparent; padding-left: 0; min-height: 0; color: var(--muted); font-size: var(--t-w-meta); }
.d-tile small { font-size: var(--t-small); } /* Design: the 13 px floor */
.w-trail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.w-trail .link { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-small); color: var(--ink); max-width: var(--w-crumb-ch); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-trail b { color: var(--ink); max-width: var(--w-crumb-ch); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .w-h { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* two lines; the full title is read out and opens the listing */
  /* 3. the start page's day choice is one row that scrolls sideways inside the page */
  .w-start > .xp-tools .xp-when { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .w-start > .xp-tools .xp-when::-webkit-scrollbar { display: none; }
  .w-start > .xp-tools .xp-when > .pill, .w-start > .xp-tools .xp-when > .xp-cal { flex: none; }
  .w-start > .xp-tools .xp-when > .xp-cal { display: block; } /* "Pick a date" as one more pill in the row (a contents box made the row 71 px) */
  .w-start > .xp-tools .xp-when > .xp-cal[open] { flex-basis: 100%; }
}
@media (min-width: 901px) {
  .w-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--w-gap-wide); }
  .w-meta .v { flex: none; min-width: 0; } /* a laptop card has room: the venue goes to a second line whole */
  .w-door-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); max-width: var(--w-door-max); }
}

/* the walk's first screen on a phone (Design, disc.css): the header is tight and the place pill steps aside, so the three
   cards sit above the tabs; the wire's row takes the line Eugene says */
@media (max-width: 900px) {
  .is-adv > .x-head:not([hidden]) { padding-bottom: var(--s-1); }
  .is-adv > .x-head:not([hidden]) .taste-pk { display: none; }
  .is-adv > .x-head:not([hidden]) + .x-wire { height: calc(var(--x-crow) * 0.62 + var(--x-tight)); }
  .is-adv > .x-wire .x-say { left: var(--gutter); max-width: none; } /* Content's longer line uses the width left of the crow */
  .xp-page.is-adv .x-head .xp-h1 { margin-top: 0; } /* the app's header is taller than the drawing's: 12 px back, so two cards show at 393 x 659 */
}
@media (min-width: 901px) { .is-adv > .x-head:not([hidden]) + .x-wire { margin-top: calc(-1 * var(--x-tight-wide)); } }
/* Adventure mode's way back to What's on, above its title, from 900 px only: on a phone the tab and "Or start from a kind"
   under the cards are the way back, so the third card stays above the tabs */
.w-back-on { display: none; align-items: center; min-height: var(--tap); font-size: var(--t-small); }
@media (min-width: 901px) { .is-adv .w-back-on { display: inline-flex; } }
.xp-page.is-adv .x-head .xp-h1 { max-width: none; } /* a short title runs to one line beside the crow */
/* the invitation to Adventure mode (Design, walk.css 5): one link, a white sheet, the title with the marker's underline,
   an outlined 44 px pill; one band on a laptop, the pill beside the title on a phone */
.w-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t go" "p go"; gap: var(--s-1) var(--s-5); align-items: center; margin-top: var(--s-4); padding: var(--s-4) var(--x-invite-pad); background: var(--card); border: var(--border) solid var(--ink); border-radius: var(--r-card); color: var(--ink); text-decoration: none; }
.w-invite-t { grid-area: t; font-size: var(--t-w-h2); font-weight: var(--w-display); line-height: var(--lh-title); font-variation-settings: var(--fv-title); }
.w-invite-t span { box-shadow: inset 0 calc(-1 * var(--x-invite-line)) 0 var(--marker); }
.w-invite-p { grid-area: p; font-size: var(--t-body); line-height: var(--lh-body); }
/* Lina locked no button label (15 Nov): a wordless outlined circle with the chevron; the whole block is the link, named by its title and line */
.w-invite-go { grid-area: go; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: var(--border) solid var(--ink); border-radius: var(--r-pill); background: var(--card); }
.w-invite-arrow { flex: none; }
.w-invite:hover .w-invite-go { background: var(--ink); color: var(--card); }
.w-invite:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.w-invite-picks { max-width: var(--w-door-max); margin-top: var(--s-4); }
.w-invite-on { margin: 0 0 var(--s-3); }
@media (max-width: 900px) {
  .w-invite { grid-template-areas: "t go" "p p"; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4) var(--x-invite-pad-b); }
  .w-invite-t { font-size: var(--t-w-title-phone-invite); }
  .w-invite-go { align-self: start; }
}

/* the walk's start: the day choice under the cards and their links (Design, 15 Nov) */
.w-start > .w-day { margin-top: var(--w-day-gap); }
@media (max-width: 380px) { .is-adv > .x-head:not([hidden]) + .x-wire { height: calc(var(--x-crow) * 0.62 + var(--x-tight-small)); } } /* three lines of Eugene at 360 */

/* the walk's place on a phone, under the cards with the day choice (Design, 16:2x): a 44 px pill that opens the cities */
.w-place-low { display: none; }
.w-place-pill { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--r-pill); background: var(--white); color: var(--ink); cursor: pointer; list-style: none; }
.w-place-pill::-webkit-details-marker { display: none; }
.w-place-sub { color: var(--muted); font-weight: var(--w-medium); }
.w-place-list { display: grid; gap: var(--s-1); margin-top: var(--s-2); }
.w-place-list a { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-4); border-radius: var(--r-control); background: var(--card); color: var(--ink); text-decoration: none; font-weight: var(--w-semi); }
.w-place-list a[aria-current="true"] { box-shadow: inset 0 calc(-1 * var(--w-why-line)) 0 var(--marker); }
@media (max-width: 900px) { .is-adv .w-place-low { display: block; margin-top: var(--s-3); } }

/* a step of the walk (Design, disc.css): no wire row, a smaller title, so its three cards sit high */
.is-step > .x-wire { display: none; }
.w-step-h1 { font-size: var(--t-w-step-h1); max-width: var(--w-step-h1-ch); }
.w-step .xp-back { margin-top: var(--s-2); }

/* What's on and Adventure mode: a search-only listing's one link, at the tap size (Quality, 16 Nov; as the picks card) */
.xp-search { margin: 0; }
.xp-search-a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-small); font-weight: var(--w-semi); text-underline-offset: var(--s-1); }


/* Navigation B (Lina, 16 Nov, "Yes, your picks"), from the build spec (Lina approved B, 16 Nov 2026: "Yes, your picks"). Design owner.
   Replaces the review's nav.css for B. Every value is a token from app/public/tokens.css, or one of the three new tokens
   below (App adds them to tokens.css). The one number that can't be a token is the 720 px phone breakpoint, which is
   the app's own (styles.css 478, 654, 829).

   New tokens (in tokens.css): --tabs-h, the bar, 52 px (was 60); --acct-w, the Account menu's width on a laptop;
     --nav-gap, the space between header items, as the landing header.
*/
/* the three tokens are in tokens.css */

/* ---------- 1. the header: the landing header, on every page ---------- */
.top.n-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--nav-gap); background: var(--paper); }
.n-nav { display: flex; align-items: center; gap: var(--nav-gap); margin-left: auto; }
.n-corner { position: relative; display: flex; align-items: center; gap: var(--nav-gap); }
/* every header item is a 44 px target in the body size, ink, medium weight (the landing header, styles.css 750-753) */
.n-link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-body); font-weight: var(--w-medium); text-decoration: none; white-space: nowrap; cursor: pointer; }
.n-link:hover { text-decoration: underline; text-decoration-thickness: var(--border); }
/* the one solid pill: Start on a first visit, Sign up for free with picks (the landing page's .c-pill) */
.n-up { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-5); border-radius: var(--r-chip); background: var(--ink); color: var(--white); font-size: var(--t-body); font-weight: var(--w-bold); text-decoration: none; white-space: nowrap; }
.n-up:hover { outline: var(--border) solid var(--ink); outline-offset: var(--border); }
.n-up:focus-visible { outline: var(--focus-ring-on-ink); outline-offset: var(--focus-offset); }

/* ---------- 2. the active state: the page you're on ----------
   The link carries aria-current="page" (screen readers say "current page"); it looks like the picks' "You said" line:
   an orange underline, 2.5 px, 8 px under the words. Adventure mode lights What's on. Settings, Privacy, Terms and
   sign-in light nothing. */
.n-link[aria-current="page"], .n-tabs .tab[aria-current="page"] { text-decoration: underline; text-decoration-thickness: var(--border); text-decoration-color: var(--marker); text-underline-offset: var(--s-2); }
/* Account while its menu is open */
.n-acct-btn[aria-expanded="true"] { text-decoration: underline; text-decoration-thickness: var(--border); text-underline-offset: var(--s-2); }

/* ---------- 3. Account: a menu under the button on a laptop, a sheet from the bottom on a phone ---------- */
.n-pop { position: absolute; top: calc(100% + var(--s-2)); right: 0; z-index: 30; width: var(--acct-w); padding: var(--s-4) var(--s-5) var(--s-5); background: var(--card); border: var(--border) solid var(--ink); border-radius: var(--r-card); }
.n-pop[hidden], .n-scrim[hidden] { display: none; }
.n-pop-title { display: none; margin: 0 0 var(--s-3); font-family: var(--font-display); font-variation-settings: var(--fv-title); font-size: var(--t-title); font-weight: var(--w-display); letter-spacing: var(--track-title); }
.n-who { margin: 0; font-size: var(--t-body); font-weight: var(--w-bold); overflow-wrap: anywhere; }
.n-hm { margin: var(--s-1) 0 0; font-size: var(--t-fine); color: var(--muted); }
.n-row { display: flex; align-items: center; min-height: var(--pill-h); margin-top: var(--s-4); border-top: var(--hair) solid var(--rule); border-bottom: var(--hair) solid var(--rule); color: var(--ink); font-weight: var(--w-semi); text-decoration: none; }
.n-row:hover { text-decoration: underline; text-decoration-thickness: var(--border); }
.n-signout { margin: var(--s-4) 0 0; } /* not .n-out: that is the signed-out header (Quality, 16 Nov) */
.n-signout .btn { width: 100%; min-height: var(--tap); justify-content: center; text-align: center; }
/* Privacy and terms: two links, each a 44 px target without moving the line */
.n-legal { margin: var(--s-3) 0 0; font-size: var(--t-fine); color: var(--muted); }
.n-legal a { display: inline-block; padding-block: calc((var(--tap) - var(--t-fine) * var(--lh-body)) / 2); color: inherit; }
.n-scrim { position: fixed; inset: 0; z-index: 20; background: transparent; }

/* ---------- 4. the phone (720 px and under): B, the same links in the bar at the bottom ---------- */
@media (max-width: 720px) {
  /* the header keeps the name and the corner: Account signed in; Sign in signed out ("Sign in comes back on phones").
     The links move to the bar; How it works and the pill leave the header, as on the landing page */
  .n-top .n-nav, .n-top .n-up { display: none; }
  .n-corner { margin-left: auto; }
  /* the bar: the same names in the same order, in the body size and ink (they were 13 px grey) */
  body.has-nav { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
  .tabs.n-tabs { height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }
  .n-tabs .tab { min-height: var(--tap); font-size: var(--t-body); font-weight: var(--w-medium); color: var(--ink); }
  .n-tabs .tab[aria-current="page"] { font-weight: var(--w-bold); }
  /* Account is a sheet from the bottom, over a scrim */
  .n-pop { position: fixed; inset: auto 0 0 0; top: auto; width: auto; padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); border-width: var(--border) 0 0; border-radius: var(--r-card) var(--r-card) 0 0; }
  .n-pop-title { display: block; }
  .n-scrim { background: var(--scrim); }
  html.n-lock, html.n-lock body { overflow: hidden; }
}

/* ---------- 5. one city picker, the D2 pill (L65), under the page title on every page ---------- */
.n-city { margin-top: var(--s-3); }
.n-city .taste-pk { margin: 0; }

/* ---------- 6. every header item is a 44 px target, the name and the landing header's links included ---------- */
.n-top .name, .c-bar .c-word { display: inline-flex; align-items: center; min-height: var(--tap); }
.c-nav a, .c-nav a.c-pill { display: inline-flex; align-items: center; min-height: var(--tap); } /* the Start pill too: --c-pill-h is 40 px on a phone */

/* ---------- 7. a first visit (the landing page, and What's on before a city) ----------
   B on a phone, as everywhere: the links (What's on, How it works) go to the bar; the header keeps Wireside and the corner,
   which is Sign in (back on phones, Lina 16 Nov) and the one pill, Start. The four don't fit one row on a phone (they
   need about 385 px; a 393 phone has 361 between its gutters), and B's bar is where the links already live. */
@media (max-width: 720px) {
  .n-cold .n-up { display: inline-flex; }
  .n-top.n-cold .n-corner, .c-nav { gap: var(--s-4); }
  .c-nav a:not(.c-pill) { display: none; }
  .c-nav a.c-signin, .c-nav a[href^="/auth/signin"] { display: inline-flex; }
  .screen-promise .tabs.n-tabs { display: grid; } /* the landing page's layout is bare, so its bar is turned on here */
}

/* ---------- 8. the landing page's first screen with the bar (Design, 16 Nov) ----------
   With the d2 picker's newcomers line live, the page's own Start sat under the bar at 393 x 852. The wire block gives the
   bar its height back (tokens.css, --c-tab-h on phones), so the 10 Nov rule (the first screen fits at 393 x 852) holds. */

/* ---------- 9. "powered by Hello Minds", once on screen (L41; Design, 16 Nov, spec-B.md §4b) ----------
   Signed out, on a laptop, the pill keeps the live treatment: it sits in .su-stack with .powered-top under it (S23 #3).
   The header is sticky, so its copy steps back whenever the page shows its own (the sign-up block on /events, What's on,
   Adventure mode, Settings). Left out of that test: a sign-up sheet (hidden by CSS until it opens; the rule above hides
   the header's copy while one is open) and the picks step's end block, whose line laptops hide (above) so the header's
   is the one. Phones hide the pill and its line, as today. */
.n-top .su-stack { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-1); }
.n-top .su-stack .powered-top { display: block; font-size: var(--t-fine); color: var(--muted); }
body:has(main .powered:not([hidden], [hidden] *, .sheet *, .screen-scan .picks-end *)) .n-top .powered-top { display: none; }
@media (max-width: 720px) { .n-top .su-stack { display: none; } }

/* ---------- 10. follow-ups after launch (Design, 16 Nov, spec-B-fixes.md; live c39ef2cb) ----------
   a) The phone header: 12 px above and below instead of 24 (68 px, was 92); every page gains 24 px.
   b) A walk step on a phone: the "‹ Back to …" link at the top steps aside; the trail at the foot links back to every
      step and the bar's What's on is lit. From 721 px up the link stays.
   c) A walk step's title on a phone is 22 px (tokens.css), still two lines.
   With these, Hong Kong's Adventure mode at 393 x 852 keeps the third card whole above the bar (Design measured 8 screens). */
@media (max-width: 720px) {
  .top.n-top { padding-block: var(--s-3); }
  .is-step .xp-back { display: none; }
}

/* the first page for someone signed out with picks (spec-B-fixes §2): the pill is Sign up for free with "powered by Hello
   Minds" under it on a laptop, as on every other page; on a phone the pill and its line leave the header (Sign in stays) */
.c-nav .su-stack { display: inline-flex; flex-direction: column; align-items: center; gap: var(--s-1); }
.c-nav .su-stack .powered-top { display: block; font-size: var(--t-fine); color: var(--muted); }
body:has(main .powered:not([hidden], [hidden] *, .sheet *, .screen-scan .picks-end *)) .c-nav .powered-top { display: none; }
@media (max-width: 720px) { .c-nav .su-stack { display: none; } }

/* the line under the pill makes the bar taller on a laptop; the hero gives that height back, so the first screen still ends
   at the window's foot (App, 16 Nov: without this the cards crossed the fold by up to 16 px at 1440 x 900 and 1000 x 600) */
/* not where the line sits beside the pill (1101 px wide or more and 800 px tall or less, below): there it adds no height */
@media (min-width: 721px) and (max-width: 1100px), (min-width: 1101px) and (min-height: 801px) {
  main:has(.c-nav .su-stack .powered-top) .c-hero { height: calc(min(100svh, var(--c-hero-max)) - var(--c-bar-pad) - var(--c-pill-h) - var(--s-3) - var(--c-hero-tilt-gap) - var(--s-1) - var(--t-fine) * var(--lh-body)); }
}

/* ---------- 11. the library line on a walk card (Design, 16 Nov, spec-B-fixes §4) ----------
   Hong Kong's "Search for it on the library's site" line was its own 44 px row inside the card. It becomes one text line,
   with its 44 px tap area drawn by ::after, as the back arrow's; 12 px under it keep that area clear of the card's buttons.
   Walk cards only; What's on rows unchanged. */
.w-card .xp-search { margin-block: 0 var(--s-3); line-height: var(--lh-body); }
.w-card .xp-search-a { display: inline; min-height: 0; padding: 0; position: relative; }
.w-card .xp-search-a::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--tap)); height: max(100%, var(--tap)); transform: translate(-50%, -50%); }

/* ---------- B48 and B37 (L42, Lina 10 Nov; Design, design/review/taste-marks/marks.css, 16 Nov) ----------
   The heart marks a love everywhere (loved tiles, the key, Adventure mode's tag, chips); the thumb marks a liked leaf tile
   only. Drawn in the tile's own text colour; decorative (the checkbox and state carry the meaning). */
.tile.leaf[data-state="on"] > span:not(.sr):not(.tile-note):first-of-type::before,
.tile.leaf[data-state="passion"] > span:not(.sr):not(.tile-note):first-of-type::before,
.key-tile::before,
.w-tag.is-passion::before,
.chip.is-passion::before {
  content: "" / "";
  display: inline-block; flex: none;
  width: var(--tile-mark); height: var(--tile-mark);
  margin-inline-end: var(--tile-mark-gap);
  vertical-align: var(--mark-drop);
  background: currentColor;
  -webkit-mask: var(--mark-like) center / contain no-repeat; mask: var(--mark-like) center / contain no-repeat;
}
.tile.leaf[data-state="passion"] > span:not(.sr):not(.tile-note):first-of-type::before,
.key-tile[data-state="passion"]::before,
.w-tag.is-passion::before,
.chip.is-passion::before { -webkit-mask-image: var(--mark-love); mask-image: var(--mark-love); }

/* B37: the key, two tidy pairs. Each pair is a small sample tile (the mark alone, in that state's colours) and its half of
   the sentence; a pair never breaks inside, so at 393 they sit side by side or, if the sheet is narrower, one under the
   other, never with a tile left alone at a line's end. */
.key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: 0; font-size: var(--t-small); color: var(--ink); }
.key-pair { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.key-tile { display: inline-grid; place-items: center; min-height: 0; width: var(--s-6); height: var(--s-5); padding: 0; cursor: default; }
.key-tile::before { margin: 0; width: var(--t-small); height: var(--t-small); }
.key-tile:active { transform: none; }
.key span:not(.key-tile) { margin-right: 0; }
/* Quality, 16 Nov (from U1): with the phone bar (720 px and under), the Save toast sits above it, never over its links */
@media (max-width: 720px) { body.has-nav .pick-toast { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + var(--s-2)); } }
/* B59 on a laptop (Lina, 10 Nov: "the pick and save screens items are quite comically large"; 11 Nov: "it still fits
   very weirdly into the screen"). Design owner, 16 Nov 2026. The pick and saved-pick card above 720 px, on the wire
   (direction A) as built: the same portrait card, compact, so three sit inside the first screen at 1280 x 800 and
   1000 x 600 too. Tokens only: the laptop values of the phone's compact-card tokens (--cc-*), plus one, --cc-top-h. */
@media (min-width: 721px) {
  .card .clip > .c-cardtop .c-when { font-size: var(--cc-day-big); line-height: var(--lh-display); }
  .card .clip > .c-cardtop.is-none .c-int, .card .clip > .c-cardtop.is-none .c-ven { display: none; }
  .card:has(> .clip > .c-cardtop) .body { padding: var(--s-3) var(--cc-pad-x) var(--s-4); }
  .card:has(> .clip > .c-cardtop) .title { margin: 0; font-size: var(--cc-title); line-height: var(--lh-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card:has(> .clip > .c-cardtop) .orig { margin: 0; font-size: var(--cc-orig); }
  .card:has(> .clip > .c-cardtop) .orig summary { min-height: var(--cc-orig-row); }
  .card:has(> .clip > .c-cardtop) .when { margin: var(--cc-gap) 0 0; font-size: var(--cc-small); font-weight: var(--w-semi); }
  .card:has(> .clip > .c-cardtop) .area { margin: 0; font-size: var(--cc-small); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card:has(> .clip > .c-cardtop) .line .said, .card:has(> .clip > .c-cardtop) .said { font-size: var(--cc-small); }
  .card:has(> .clip > .c-cardtop) .line .desc { display: none; }
  .card:has(> .clip > .c-cardtop) .acts { margin-top: var(--cc-space); gap: var(--s-2); }
  .card:has(> .clip > .c-cardtop) .acts .btn { min-height: var(--tap); padding: 0 var(--cc-pad-x); font-size: var(--cc-btn); }
  /* the title is the listing link, as on the phone; a search-only card keeps its line, its only link */
  .card:has(> .clip > .c-cardtop) .listing { display: none; }
  .card[data-listing="search"]:has(> .clip > .c-cardtop) .listing { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--t-small); font-weight: var(--w-semi); }
  .card:has(> .clip > .c-cardtop) .c-credit { margin-top: var(--cc-gap); font-size: var(--cc-credit); }
}

/* ---------- B59 follow-ups (Design, design/review/cards-laptop/README-followups.md and scan-fix.css, 16 Nov) ----------
   1. Signed out with picks, the laptop header ran off from 721 to 777 px (an iPad in portrait): between 721 and 900 that one
      header packs tighter. Same order, same names; the other headers keep 24 px. */
@media (min-width: 721px) and (max-width: 900px) {
  .n-top.n-out:not(.n-cold) { --nav-gap: var(--s-3); }
  .n-top.n-out:not(.n-cold) .n-nav, .n-top.n-out:not(.n-cold) .n-corner { gap: var(--s-3); }
  .n-top.n-out:not(.n-cold) .n-up { padding-inline: var(--s-4); }
}
/* 2. The signed-out picks page on a laptop window 900 px tall or less (with the wire's trim in app.js and the tokens) */
@media (min-width: 901px) and (max-height: 900px) {
  .screen-scan .wave { margin-top: var(--s-3); }
  .screen-scan .int-chips { margin-top: var(--s-2); }
}
@media (min-width: 721px) and (max-height: 900px) { .top.n-top { padding-block: var(--s-4); } }
/* 3. "Show the original listing": its 44 px tap area above the date and place lines; the title's link above it */
.card .orig summary { position: relative; z-index: 1; }
.card .title a { position: relative; z-index: 2; }
/* 4. Laptop windows 800 px tall or less: the header 12 px inside, and, 1101 px wide or more, "powered by Hello Minds" beside
   the pill, to its left, so the header is one line */
@media (min-width: 901px) and (max-height: 800px) { .top.n-top { padding-block: var(--s-3); } }
@media (min-width: 1101px) and (max-height: 800px) {
  .n-top .su-stack, .c-nav .su-stack { flex-direction: row-reverse; align-items: center; gap: var(--s-3); }
}

/* S22: the week strip over Saved (option B). Seven days, a filled dot where something is saved; the chosen day (a jump to
   its list) is outlined. Tokens only; Design reviews. */
.week-strip { margin: 0 0 var(--s-4); }
.week-strip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-1); }
.week-strip a, .week-strip .ws-day { display: grid; justify-items: center; gap: var(--s-1); min-height: var(--control-h); padding: var(--s-2) 0; color: inherit; text-decoration: none; border: var(--hair) solid transparent; }
.week-strip a:hover, .week-strip a:focus-visible { border-color: var(--ink); }
.week-strip li[aria-current="date"] .ws-n { text-decoration: underline; }
.week-strip .is-empty { color: var(--muted); }
.week-strip .ws-wd { font-size: var(--t-small); }
.week-strip .ws-n { font-size: var(--t-h3); line-height: var(--lh-title); }
.week-strip .ws-dot { width: var(--dot); height: var(--dot); border-radius: 50%; border: var(--hair) solid var(--ink); }
.week-strip .ws-dot.is-on { background: var(--ink); }
.saved-days { display: grid; gap: var(--s-5); }
.saved-day { scroll-margin-top: calc(var(--under-top) + var(--s-3)); } /* Quality, 17 Nov: a day jumped to lands under the sticky header, not behind it */
.saved-day:target .saved-day-h { text-decoration: underline; }
.saved-day-h { margin: 0 0 var(--s-2); font-size: var(--t-h3); }
