/* The first screens, in the family design (docs/design/FAMILY.md). views/onboard.js draws them.

   Since 19 November 2026 a first visit is the calm flow (#bsOnboard.ob-calm, its block is at the end of this file): two
   steps, the specialty then its conditions, each with one question and one ink button, and the briefing itself beside
   them, its posts moving as a choice is made. The rest of this file is the screens of one question each, which
   window.BS_ONBOARD_FULL brings back.

   One screen per question, and every screen fits the window: the layer is a grid of four rows (the top line, the
   track of steps, the stage, the foot), and only the control inside the card may scroll. Up top, the track: the
   steps as nodes on a line, a fill that travels to the current node with a small overshoot and a tick that draws
   on the node it leaves behind. The stage has the question in a frost card on the left and, on the right, the
   field: one point per real post; the posts that match the answers light up and gather around one large number.
   The card slides with depth in the direction of travel. Tokens only; light and dark follow the theme. Under
   1024px the field sits above the card, smaller. */

#bsOnboard.ob { position: fixed; inset: 0; z-index: 320; display: block; padding: 0; color: var(--color-foreground); font-family: var(--font-heading, inherit); }
html.ob-open { overflow: hidden; }
.ob [hidden] { display: none !important; }
:where(.ob) :where(h1, h2, p, ol, ul) { margin: 0; }
.ob button, .ob input { font-family: inherit; }
.ob :is(button, input):focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.ob-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.ob-paper { position: absolute; inset: 0; background: radial-gradient(900px 600px at 72% 8%, var(--field-a), transparent 70%), radial-gradient(700px 520px at 6% 100%, var(--field-b), transparent 70%), radial-gradient(640px 480px at 96% 92%, var(--field-c), transparent 70%), var(--canvas); }
.ob-frame { position: relative; display: grid; height: 100dvh; grid-template-rows: auto auto minmax(0, 1fr); width: min(1180px, 100%); margin: 0 auto; padding: 0 40px; }

/* ── the top line: the mark, the way out ── */
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 20px 0 0; }
.ob-brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
/* the app's mark on its own, in the theme's ink (18 November 2026, assets/brand/mark.js) */
.ob-mark { display: grid; width: 28px; height: 28px; flex: none; place-items: center; }
.ob-skip { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 14px; font-weight: 500; color: var(--oryn-text-2); transition: color .16s var(--ease-out), border-color .16s var(--ease-out); }
.ob-skip:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); }

/* ── the track: nodes on a line, the fill travels, the tick draws ── */
.ob-track { --node: 36px; position: relative; width: min(760px, 100%); margin: 18px auto 0; padding: 6px 0 34px; }
.ob-track__line { position: absolute; top: calc(6px + var(--node) / 2 - 2px); right: calc(var(--node) / 2); left: calc(var(--node) / 2); height: 4px; overflow: hidden; border-radius: 2px; background: color-mix(in srgb, var(--color-foreground) 10%, transparent); }
.ob-track__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 2px; background: var(--color-brand); transition: width .75s cubic-bezier(.34, 1.45, .64, 1); }
.ob-track__fill::after { content: ''; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 22%, transparent); translate: 0 -50%; }
.ob-steps { position: relative; display: flex; justify-content: space-between; padding: 0; list-style: none; }
.ob-steps li { position: relative; width: var(--node); }
.ob-node { position: relative; display: grid; width: var(--node); height: var(--node); place-items: center; border: 2px solid color-mix(in srgb, var(--color-foreground) 14%, transparent); border-radius: 50%; background: var(--color-background); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); transition: background-color .3s var(--ease-out) .25s, border-color .3s var(--ease-out) .25s, color .25s var(--ease-out), box-shadow .3s var(--ease-out), scale .3s var(--ease-out); }
.ob-node:disabled { cursor: default; }
.ob-steps li.is-done .ob-node { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-primary-foreground); cursor: pointer; }
.ob-steps li.is-done .ob-node:hover { scale: 1.08; }
.ob-steps li[aria-current="step"] .ob-node { border-color: var(--color-brand); background: var(--color-background); color: var(--color-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-brand) 16%, transparent); transition-delay: .45s, .45s, .45s, .45s, 0s; }
.ob-node .ob-node__n { display: block; }
.ob-node .ob-node__tick { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ob-node .ob-node__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .22s ease-in; }
.ob-steps li.is-done .ob-node .ob-node__n { display: none; }
.ob-steps li.is-done .ob-node .ob-node__tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .42s var(--ease-out) .4s; }
.ob-steps__label { position: absolute; top: calc(var(--node) + 8px); left: 50%; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--color-muted-foreground); translate: -50% 0; transition: color .3s var(--ease-out); }
.ob-steps li.is-done .ob-steps__label { color: var(--color-brand-ink); }
.ob-steps li[aria-current="step"] .ob-steps__label { font-weight: 600; color: var(--color-foreground); }
.ob-count { display: none; }

/* ── the stage: the card and the field ── */
.ob-main { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(300px, 372px); align-items: stretch; gap: 32px; padding: 8px 0 28px; }
/* the card and its two buttons, one block centred beside the field */
.ob-left { display: flex; min-width: 0; min-height: 0; flex-direction: column; justify-content: center; gap: 18px; }
/* the card is as tall as its question, up to the room there is; only the control inside it scrolls */
.ob-panel { position: relative; display: flex; min-width: 0; min-height: 0; flex: 0 1 auto; flex-direction: column; padding: 32px 36px 28px; border: 1px solid var(--frost-line); border-radius: 26px; background: var(--frost-strong); box-shadow: var(--frost-rim), var(--frost-shadow); overflow: hidden; }
.ob-screen { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 10px; }
.ob-kicker { font-size: 13px; font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.ob-q { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.022em; line-height: 1.12; text-wrap: balance; }
.ob-hint { max-width: 52ch; font-size: 15px; line-height: 1.45; color: var(--color-muted-foreground); text-wrap: pretty; }
.ob-control { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; gap: 16px; margin-top: 14px; padding: 4px 2px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; -webkit-mask-image: linear-gradient(to bottom, transparent, var(--color-foreground) 6px, var(--color-foreground) calc(100% - 10px), transparent); mask-image: linear-gradient(to bottom, transparent, var(--color-foreground) 6px, var(--color-foreground) calc(100% - 10px), transparent); }
.ob-label { margin: 4px 0 -6px; font-size: 12.5px; font-weight: 500; color: var(--color-muted-foreground); }
.ob-none { padding: 16px 18px; border: 1px dashed var(--frost-line); border-radius: 16px; font-size: 14.5px; line-height: 1.5; color: var(--color-muted-foreground); }

/* chips: a topic or a kind of update, on or off */
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip { display: inline-flex; height: 38px; align-items: center; gap: 7px; padding: 0 14px 0 12px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--color-card); box-shadow: var(--frost-rim); font-size: 14.5px; font-weight: 500; color: var(--oryn-text-2); transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out), color .18s var(--ease-out), scale .18s var(--ease-out); }
.ob-chip i { font-size: 14px; }
.ob-chip:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); }
.ob-chip:active { scale: .95; }
.ob-chip.is-on { border-color: var(--color-brand); background: var(--brand-soft); color: var(--color-brand-ink); }
.ob-chip[data-count]::after { content: attr(data-count); margin-left: 2px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.ob-chip.is-on[data-count]::after { color: var(--color-brand-ink); opacity: .75; }

/* the specialty: one tile to confirm, or a field and a list to choose from */
.ob-pick { display: flex; flex-direction: column; gap: 12px; }
.ob-tile { display: flex; width: 100%; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--color-card); box-shadow: var(--frost-rim); text-align: left; color: var(--color-foreground); transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .3s var(--ease-out); }
.ob-tile.is-on { border-color: var(--color-brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 12%, transparent); }
.ob-tile__ic { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--color-brand) 14%, transparent); color: var(--color-brand); font-size: 21px; }
.ob-tile__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.ob-tile__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.ob-tile__line { font-size: 13.5px; color: var(--color-muted-foreground); }
.ob-tile__check { flex: none; font-size: 22px; color: var(--color-brand); }
.ob-quiet { display: inline-flex; height: 40px; align-self: flex-start; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--oryn-text-2); transition: background-color .16s var(--ease-out), color .16s var(--ease-out); }
.ob-quiet:hover { background: var(--frost-well); color: var(--color-foreground); }
.ob-quiet i { font-size: 15px; }
.ob-field { display: flex; height: 48px; flex: none; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--frost-line); border-radius: 14px; background: var(--color-card); box-shadow: var(--frost-rim); color: var(--color-muted-foreground); transition: border-color .22s var(--ease-out), box-shadow .32s var(--ease-out); }
.ob-field i { font-size: 16px; }
.ob-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15.5px; color: var(--color-foreground); }
.ob-field input::placeholder { color: var(--color-muted-foreground); opacity: 1; }
.ob-field:focus-within { border-color: color-mix(in srgb, var(--color-brand) 70%, transparent); box-shadow: var(--frost-rim), 0 0 0 4px var(--brand-soft); }
/* the field around the search draws the focus (above), so the search itself draws no second ring */
html #bsOnboard .ob-field input:focus-visible { outline: none; }
.ob-list__none { padding: 12px; font-size: 14px; color: var(--color-muted-foreground); }

/* people: who published this week, as rows in one surface */
.ob-people { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--color-card); box-shadow: var(--frost-rim); }
.ob-person { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 11px 16px 11px 14px; border-top: 1px solid var(--color-border); text-align: left; color: var(--color-foreground); transition: background-color .2s var(--ease-out); }
.ob-person:first-child { border-top: 0; }
.ob-person:hover { background: var(--oryn-surface-hover); }
.ob-person.is-on { background: var(--brand-soft); }
.ob-person__av { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--color-brand) 14%, transparent); color: var(--color-brand-ink); font-size: 13px; font-weight: 600; }
.ob-person__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.ob-person__name { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ob-person__line { overflow: hidden; font-size: 13px; color: var(--color-muted-foreground); text-overflow: ellipsis; white-space: nowrap; }
.ob-person__act { display: inline-flex; height: 32px; flex: none; align-items: center; gap: 5px; padding: 0 12px; border: 1px solid var(--frost-line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--oryn-text-2); transition: border-color .16s var(--ease-out), color .16s var(--ease-out), background-color .16s var(--ease-out); }
.ob-person.is-on .ob-person__act { border-color: color-mix(in srgb, var(--color-brand) 55%, transparent); background: color-mix(in srgb, var(--color-brand) 12%, transparent); color: var(--color-brand-ink); }
.ob-person__act i { font-size: 13px; }

/* votes on real posts */
.ob-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ob-card { display: flex; flex-direction: column; padding: 16px 18px; border: 1px solid var(--frost-line); border-radius: 18px; background: var(--color-card); box-shadow: var(--frost-rim); transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), opacity .2s var(--ease-out); }
.ob-card.is-more { border-color: color-mix(in srgb, var(--color-brand) 55%, transparent); background: var(--brand-soft); }
.ob-card.is-less { opacity: .5; }
.ob-card__topics { font-size: 12.5px; color: var(--color-muted-foreground); }
.ob-card__title { display: -webkit-box; flex: 1; margin-top: 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.ob-card__votes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ob-vote { display: inline-flex; height: 38px; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--frost-line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--oryn-text-2); transition: border-color .16s var(--ease-out), background-color .16s var(--ease-out), color .16s var(--ease-out), scale .16s var(--ease-out); }
.ob-vote i { font-size: 15px; }
.ob-vote:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); }
.ob-vote:active { scale: .95; }
.ob-vote[aria-pressed="true"] { border-color: var(--color-brand); background: color-mix(in srgb, var(--color-brand) 12%, transparent); color: var(--color-brand-ink); }
.ob-card.is-less .ob-vote[aria-pressed="true"] { border-color: transparent; background: var(--frost-well); color: var(--color-foreground); }

/* what was chosen, on the last screen */
.ob-sum { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.ob-sum li { display: inline-flex; height: 34px; align-items: center; gap: 7px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--brand-soft); font-size: 14px; font-weight: 500; color: var(--color-brand-ink); }
.ob-sum i { font-size: 16px; color: var(--color-brand); }

/* ── the field: one point per real post ── */
.ob-stage { position: relative; display: flex; min-height: 0; flex-direction: column; align-self: stretch; align-items: center; justify-content: center; }
.ob-stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ob-stage__label { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 36px; text-align: center; pointer-events: none; }
.ob-stage__n { font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--color-foreground); }
.ob-brief__count { font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); }
.ob-stage__line { position: absolute; right: 0; bottom: 6px; left: 0; margin: 0; text-align: center; pointer-events: none; }
.ob-stage.is-quiet .ob-stage__n { color: var(--color-muted-foreground); }

/* ── the foot: Back on the left, the primary action on the right ── */
.ob-foot { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 14px; padding: 0 4px; }
.ob-back { display: inline-flex; min-height: 48px; flex: none; align-items: center; gap: 8px; padding: 0 20px 0 16px; border: 1px solid var(--frost-line); border-radius: 999px; background: var(--frost-strong); box-shadow: var(--frost-rim); font-size: 15px; font-weight: 500; color: var(--oryn-text-2); transition: border-color .16s var(--ease-out), color .16s var(--ease-out); }
.ob-back:hover { border-color: var(--oryn-border-hover); color: var(--color-foreground); }
.ob-back i { font-size: 16px; }
.ob-why { display: none; }
.ob-next { display: inline-flex; min-width: 156px; min-height: 48px; flex: none; align-items: center; justify-content: center; gap: 8px; margin-left: auto; padding: 0 24px; border-radius: 999px; background: var(--color-brand); color: var(--color-primary-foreground); font-size: 15px; font-weight: 600; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 26%, transparent), 0 8px 18px -10px var(--color-brand); transition: background-color .2s var(--ease-out), box-shadow .32s var(--ease-out), scale .16s var(--ease-out); }
.ob-next:hover { background: var(--color-brand-hover); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-card) 30%, transparent), 0 0 0 4px var(--brand-soft), 0 12px 24px -10px var(--color-brand); }
.ob-next:active { scale: .97; }
.ob-next i { font-size: 16px; }

/* a choice leaves a spark that joins the field */
.ob-spark { position: fixed; z-index: 321; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 22%, transparent); pointer-events: none; }

/* ── under 1024px: the field above the card, smaller ── */
@media (max-width: 1023.98px) {
  .ob-frame { padding: 0 16px; }
  .ob-top { min-height: 60px; padding-top: 12px; }
  .ob-track { --node: 28px; width: 100%; margin-top: 10px; padding-bottom: 26px; }
  .ob-node { font-size: 12px; }
  .ob-steps__label { display: none; }
  .ob-steps li[aria-current="step"] .ob-steps__label { display: block; font-size: 12.5px; }
  .ob-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: 132px minmax(0, 1fr); gap: 10px; padding: 0 0 8px; }
  .ob-stage { order: -1; }
  .ob-left { justify-content: flex-start; gap: 12px; }
  .ob-panel { flex: 0 1 auto; }
  .ob-stage__n { font-size: 36px; }
  .ob-panel { padding: 20px 20px 16px; border-radius: 22px; }
  .ob-q { font-size: 23px; }
  .ob-cards { grid-template-columns: minmax(0, 1fr); }
  .ob-foot { padding: 0 0 calc(10px + env(safe-area-inset-bottom)); }
  .ob-next { min-width: 0; flex: 1; }
}
@media (max-width: 479.98px) {
  .ob-brand__name { display: none; }
  /* a phone: the two votes side by side and tighter chips, so each screen asks for less scrolling inside the card (22 October) */
  .ob-card__votes { grid-template-columns: 1fr 1fr; }
  .ob-chip { padding: 0 11px 0 10px; font-size: 13.5px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .ob * { transition-duration: 0s !important; transition-delay: 0s !important; }
}
html.a11y-reduce-motion .ob * { transition-duration: 0s !important; transition-delay: 0s !important; }

/* 44 px to the finger (the phone audit of 3 October 2026, carried over when the two lines of that day were joined: the
   welcome dialog these screens replaced had its Skip at 44 px). On a touch screen the three controls that are smaller
   take a 44 px press without changing how they look. */
@media (pointer: coarse) {
  .ob-skip, .ob-quiet { position: relative; }
  /* measured from inside each control's border: Skip has a 1 px border, a step of the track a 2 px one */
  .ob-skip::after { content: ''; position: absolute; inset: -3px 0; }
  .ob-quiet::after { content: ''; position: absolute; inset: -2px 0; }
  .ob-node::after { content: ''; position: absolute; inset: calc((var(--node) - 4px - 44px) / 2); }
}

/* ── the calm flow (19 November 2026) ──
   The owner, of the one screen of 18 November: does it really work? It seems not; it could be better designed, easier to
   understand, easier on the eye; right now it is crowded, and the motion could be more pleasant. So: two steps, one question
   each, with room around it; the briefing beside the question (under it on a phone) as a quiet card, its count and its first
   posts, which move when a choice is made; one ink button, as wide as its words. Monochrome with the grey accent of
   views/grey-pass.css, the serif for the question and the count, hairlines for cards and pills; a chosen pill or card is
   ringed in ink with its tick, never filled. No gradient, nothing that scrolls inside, nothing that turns or follows the
   pointer; with less motion asked for, nothing moves (views/onboard.js asks the same).
   The rules are written under html #bsOnboard.ob-calm so they outrank the earlier look in clean-first.css, section 3. */
html #bsOnboard.ob-calm { --obc-gap: clamp(48px, 7vw, 112px); color: var(--cl-ink); font-family: var(--cl-sans); }
html #bsOnboard.ob-calm .ob-paper { background: var(--cl-page); }
html #bsOnboard.ob-calm .ob-paper::after { display: none; }
html #bsOnboard.ob-calm .ob-frame { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1120px, 100%); height: 100dvh; margin: 0 auto; padding: 0 56px; }

/* the top line: the mark, the two steps, the way out */
html #bsOnboard.ob-calm .ob-top { position: relative; min-height: 84px; padding: 22px 0 0; }
html #bsOnboard.ob-calm .ob-brand { gap: 10px; font-size: 16px; font-weight: 400; color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-skip { height: 40px; padding: 0 16px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 400; color: var(--cl-ink-3); }
html #bsOnboard.ob-calm .ob-skip:hover { border-color: var(--cl-line-3); background: var(--cl-surface); color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-dots { position: absolute; top: calc(22px + 20px); left: 50%; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; translate: -50% -50%; }
html #bsOnboard.ob-calm .ob-dots li { width: 18px; height: 4px; border-radius: 2px; background: var(--cl-line-2); transition: width .56s var(--cl-spring), background-color .32s var(--cl-out); }
html #bsOnboard.ob-calm .ob-dots li.is-done { background: var(--cl-ink-4); }
html #bsOnboard.ob-calm .ob-dots li.is-on { width: 34px; background: var(--cl-ink); }

/* the stage: the step and its button on the left, the briefing on the right; the whole sits a little above the middle */
html #bsOnboard.ob-calm .ob-main { display: grid; min-height: 0; grid-template-columns: minmax(0, 540px) minmax(330px, 392px); grid-template-rows: auto auto; grid-template-areas: "screen peek" "foot peek"; align-content: center; justify-content: center; column-gap: var(--obc-gap); row-gap: 44px; padding: 0 0 64px; overflow: hidden; }
html #bsOnboard.ob-calm .ob-screen { grid-area: screen; display: flex; min-width: 0; min-height: auto; flex: none; flex-direction: column; gap: 0; }   /* as tall as its words, so what does not fit is seen and gives way (views/onboard.js calmFit) */
html #bsOnboard.ob-calm .ob-screen > * { flex: none; }
html #bsOnboard.ob-calm .ob-hello { margin: 0 0 14px; font-size: 16px; line-height: 1.4; color: var(--cl-ink-3); }
html #bsOnboard.ob-calm .ob-q { max-width: 16ch; font-family: var(--cl-serif); font-size: clamp(36px, 3.3vw, 46px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; color: var(--cl-ink); text-wrap: balance; }
html #bsOnboard.ob-calm .ob-q:focus { outline: none; }
html #bsOnboard.ob-calm .ob-sub { max-width: 42ch; margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--cl-ink-3); }
html #bsOnboard.ob-calm .ob-swap { display: flex; min-height: 0; flex-direction: column; margin-top: 34px; }
html #bsOnboard.ob-calm .ob-none { margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--cl-line-2); border-radius: 16px; font-size: 15px; line-height: 1.5; color: var(--cl-ink-3); }

/* the specialty: two cards, the chosen one ringed in ink with its tick (the choice dialogs of clean.css, section 25) */
html #bsOnboard.ob-calm .ob-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
html #bsOnboard.ob-calm .ob-opt { position: relative; display: flex; min-width: 0; min-height: 88px; align-items: center; gap: 14px; padding: 16px 40px 16px 16px; border: 1px solid var(--cl-line-2); border-radius: 18px; background: var(--cl-surface); text-align: left; color: var(--cl-ink); transition: border-color .2s var(--cl-out), box-shadow .24s var(--cl-out); }
html #bsOnboard.ob-calm .ob-opt:hover { border-color: var(--cl-line-3); }
html #bsOnboard.ob-calm .ob-opt:active { scale: .985; }
html #bsOnboard.ob-calm .ob-opt.is-on { border-color: var(--cl-ink); box-shadow: inset 0 0 0 .5px var(--cl-ink); cursor: default; }
html #bsOnboard.ob-calm .ob-opt.is-on:active { scale: 1; }
html #bsOnboard.ob-calm .ob-opt__ic { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: var(--cl-surface-2); color: var(--cl-ink-3); font-size: 20px; transition: background-color .2s var(--cl-out), color .2s var(--cl-out); }
html #bsOnboard.ob-calm .ob-opt.is-on .ob-opt__ic { background: var(--cl-ink); color: var(--cl-surface); }
html #bsOnboard.ob-calm .ob-opt__w { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
html #bsOnboard.ob-calm .ob-opt__w b { overflow: hidden; font-size: 17px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
html #bsOnboard.ob-calm .ob-opt__w small { font-size: 13.5px; line-height: 1.35; color: var(--cl-ink-3); }
html #bsOnboard.ob-calm .ob-opt__tick { position: absolute; top: 12px; right: 12px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--cl-ink); color: var(--cl-surface); font-size: 12px; }
html #bsOnboard.ob-calm .ob-opt .ob-spec { text-decoration: none; }

/* another specialty: a calm search and the specialties as pills, in the same place */
html #bsOnboard.ob-calm .ob-field { height: 50px; flex: none; gap: 10px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: var(--cl-surface-2); box-shadow: none; color: var(--cl-ink-3); transition: border-color .2s var(--cl-out), background-color .2s var(--cl-out), box-shadow .24s var(--cl-out); }
html #bsOnboard.ob-calm .ob-field:focus-within { border-color: var(--cl-line-3); background: var(--cl-surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl-ink) 7%, transparent); }
html #bsOnboard.ob-calm .ob-field input { font-size: 16px; color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-field input::placeholder { color: var(--cl-ink-4); }
html #bsOnboard.ob-calm .ob-quiet { align-self: flex-start; height: 40px; margin-top: 14px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 400; color: var(--cl-ink-2); }
html #bsOnboard.ob-calm .ob-quiet:hover { background: var(--cl-hover); color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-more { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--cl-ink-4); }
html #bsOnboard.ob-calm .ob-list__none { padding: 10px 2px; font-size: 15px; color: var(--cl-ink-3); }

/* pills: a specialty, a condition, a topic. Off, a hairline with a plus; on, an ink ring with a tick, never filled */
html #bsOnboard.ob-calm .ob-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 8px; margin-top: 16px; }
html #bsOnboard.ob-calm .ob-conds { margin-top: 30px; }
html #bsOnboard.ob-calm .ob-chip { display: inline-flex; height: 44px; align-items: center; gap: 8px; padding: 0 17px 0 14px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: var(--cl-surface); box-shadow: none; font-size: 15.5px; font-weight: 400; color: var(--cl-ink-2); transition: border-color .18s var(--cl-out), box-shadow .22s var(--cl-out), color .18s var(--cl-out); }
html #bsOnboard.ob-calm .ob-chip i { font-size: 15px; color: var(--cl-ink-4); transition: color .18s var(--cl-out); }
html #bsOnboard.ob-calm .ob-chip:hover { border-color: var(--cl-line-3); background: var(--cl-surface); color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-chip:active { scale: .97; }
html #bsOnboard.ob-calm .ob-chip.is-on { border-color: var(--cl-ink); background: var(--cl-surface); box-shadow: inset 0 0 0 .5px var(--cl-ink); color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-chip.is-on i { color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-chip[data-count]::after { margin-left: 1px; font-size: 13px; color: var(--cl-ink-4); }
html #bsOnboard.ob-calm .ob-chip.is-on[data-count]::after { color: var(--cl-ink-3); opacity: 1; }
html #bsOnboard.ob-calm .ob-specs .ob-chip { height: 40px; padding: 0 15px; font-size: 15px; }
html #bsOnboard.ob-calm .ob-specs .ob-chip.is-on { padding-left: 12px; }

/* the foot: Back and the one ink button, as wide as its words */
html #bsOnboard.ob-calm .ob-foot { grid-area: foot; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0; }
html #bsOnboard.ob-calm .ob-back { min-height: 52px; padding: 0 20px 0 16px; border: 1px solid var(--cl-line-2); border-radius: 999px; background: transparent; box-shadow: none; font-size: 15.5px; font-weight: 400; color: var(--cl-ink-2); }
html #bsOnboard.ob-calm .ob-back:hover { border-color: var(--cl-line-3); background: var(--cl-surface); color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-next { min-width: 0; min-height: 52px; margin-left: 0; padding: 0 24px 0 26px; gap: 10px; border-radius: 999px; background: var(--cl-ink); box-shadow: none; font-size: 16px; font-weight: 500; color: var(--cl-surface); transition: background-color .18s var(--cl-out), scale .18s var(--cl-out); }
html #bsOnboard.ob-calm .ob-next:hover { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); box-shadow: none; }
html #bsOnboard.ob-calm .ob-next:active { scale: .97; }
html #bsOnboard.ob-calm .ob-next i { font-size: 17px; }

/* the briefing beside the question: a hairline card, its count in the serif, its first posts in Home's order */
html #bsOnboard.ob-calm .ob-peek { grid-area: peek; position: relative; display: flex; min-width: 0; flex-direction: column; align-self: center; padding: 26px 26px 14px; border: 1px solid var(--cl-line-2); border-radius: 24px; background: var(--cl-surface); }
html #bsOnboard.ob-calm .ob-peek__label { margin: 0; font-size: 14px; color: var(--cl-ink-3); }
html #bsOnboard.ob-calm .ob-peek__count { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; }
html #bsOnboard.ob-calm .ob-peek__n { position: relative; display: inline-block; align-self: flex-start; min-width: .6em; font-family: var(--cl-serif); font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--cl-ink); }
html #bsOnboard.ob-calm .ob-peek__n .ob-roll { display: inline-block; }
html #bsOnboard.ob-calm .ob-peek__n .ob-roll--old { position: absolute; top: 0; left: 0; }
html #bsOnboard.ob-calm .ob-peek__w { font-size: 16px; line-height: 1.4; color: var(--cl-ink-2); }
/* how many of them the picked conditions lift, beside a point of the grey accent; its line is kept while empty, so the
   card does not move when it comes */
html #bsOnboard.ob-calm .ob-peek__sub { display: flex; min-height: 22px; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--cl-ink-2); opacity: 0; transition: opacity .3s var(--cl-out); }
html #bsOnboard.ob-calm .ob-peek__sub::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--cl-lilac); }
html #bsOnboard.ob-calm .ob-peek__sub.is-on { opacity: 1; }
html #bsOnboard.ob-calm .ob-peek.is-bare .ob-peek__sub { display: none; }   /* the first step, nothing picked: no line kept for it */
html #bsOnboard.ob-calm .ob-peek__sub.is-none { color: var(--cl-ink-3); }
html #bsOnboard.ob-calm .ob-peek__sub.is-none::before { background: var(--cl-line-3); }
html #bsOnboard.ob-calm .ob-peek__list { position: relative; margin: 20px 0 0; padding: 0; list-style: none; }
html #bsOnboard.ob-calm .ob-peek__list.is-empty { display: none; }   /* a short phone: every post gave way, the count stays */
html #bsOnboard.ob-calm .ob-peek__row { display: flex; height: 52px; align-items: center; gap: 12px; border-top: 1px solid var(--cl-line); background: var(--cl-surface); }
html #bsOnboard.ob-calm .ob-peek__row.is-leaving { position: absolute; left: 0; z-index: 0; pointer-events: none; }
html #bsOnboard.ob-calm .ob-peek__t { min-width: 0; flex: 1; overflow: hidden; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; color: var(--cl-ink-2); }
html #bsOnboard.ob-calm .ob-peek__tag { display: none; flex: none; max-width: 46%; height: 24px; align-items: center; gap: 6px; padding: 0 10px 0 8px; overflow: hidden; border-radius: 999px; background: var(--cl-surface-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; color: var(--cl-ink-2); }
html #bsOnboard.ob-calm .ob-peek__tag::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--cl-lilac); }
html #bsOnboard.ob-calm .ob-peek__row.is-lifted .ob-peek__tag { display: inline-flex; }
html #bsOnboard.ob-calm .ob-peek__row.is-lifted .ob-peek__t { color: var(--cl-ink); }
html #bsOnboard.ob-calm.is-leaving { pointer-events: none; }

/* up to 1023px: one column, the step, then the briefing as a short card, then the button at the foot of the screen */
@media (max-width: 1023.98px) {
  html #bsOnboard.ob-calm .ob-frame { padding: 0 20px; }
  html #bsOnboard.ob-calm .ob-top { min-height: 68px; padding-top: 14px; }
  html #bsOnboard.ob-calm .ob-dots { top: calc(14px + 22px); }
  html #bsOnboard.ob-calm .ob-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(auto, 1fr); grid-template-areas: "screen" "peek" "foot"; align-content: stretch; justify-content: stretch; row-gap: 22px; padding: 10px 0 calc(16px + env(safe-area-inset-bottom)); }
  html #bsOnboard.ob-calm .ob-hello { margin-bottom: 8px; font-size: 15px; }
  html #bsOnboard.ob-calm .ob-q { max-width: 18ch; font-size: 31px; line-height: 1.1; }
  html #bsOnboard.ob-calm .ob-sub { margin-top: 10px; font-size: 15px; }
  html #bsOnboard.ob-calm .ob-swap { margin-top: 24px; }
  html #bsOnboard.ob-calm .ob-conds { margin-top: 20px; }
  html #bsOnboard.ob-calm .ob-chips { gap: 8px 6px; }
  html #bsOnboard.ob-calm .ob-chip { padding: 0 14px 0 12px; font-size: 15px; }
  html #bsOnboard.ob-calm .ob-peek { align-self: start; padding: 16px 18px 6px; border-radius: 20px; }
  html #bsOnboard.ob-calm .ob-peek__label { display: none; }
  html #bsOnboard.ob-calm .ob-peek__count { flex-direction: row; align-items: baseline; gap: 10px; margin: 0; }
  html #bsOnboard.ob-calm .ob-peek__n { align-self: baseline; font-size: 38px; }
  html #bsOnboard.ob-calm .ob-peek__w { font-size: 15px; }
  html #bsOnboard.ob-calm .ob-peek__sub { min-height: 20px; margin-top: 4px; font-size: 14px; }
  html #bsOnboard.ob-calm .ob-peek__sub:not(.is-on) { display: none; }   /* on a phone no line is kept for it: the room goes to the pills */
  html #bsOnboard.ob-calm .ob-peek__list { margin-top: 10px; }
  html #bsOnboard.ob-calm .ob-peek__row { height: 46px; }
  html #bsOnboard.ob-calm .ob-peek__t { font-size: 14.5px; }
  html #bsOnboard.ob-calm .ob-foot { align-self: end; justify-content: flex-end; }
  html #bsOnboard.ob-calm .ob-next { flex: none; }
  html #bsOnboard.ob-calm .ob-back { margin-right: auto; }
}
/* a short window: the step draws itself tighter before anything gives way (views/onboard.js calmFit) */
@media (max-width: 1023.98px) {
  html #bsOnboard.ob-calm.is-tight .ob-main { row-gap: 14px; padding-top: 2px; }
  html #bsOnboard.ob-calm.is-tight .ob-hello { margin-bottom: 4px; }
  html #bsOnboard.ob-calm.is-tight .ob-q { font-size: 28px; }
  html #bsOnboard.ob-calm.is-tight .ob-sub { margin-top: 6px; font-size: 14.5px; line-height: 1.4; }
  html #bsOnboard.ob-calm.is-tight .ob-conds, html #bsOnboard.ob-calm.is-tight .ob-swap { margin-top: 14px; }
  html #bsOnboard.ob-calm.is-tight .ob-chips { gap: 6px; }
  html #bsOnboard.ob-calm.is-tight .ob-chip { height: 42px; font-size: 14.5px; }
  html #bsOnboard.ob-calm.is-tight .ob-peek { padding-bottom: 12px; }
}
@media (max-width: 639.98px) {
  html #bsOnboard.ob-calm .ob-brand__name { display: none; }
  html #bsOnboard.ob-calm .ob-dots { left: 64px; translate: 0 -50%; }   /* beside the mark, clear of a long Skip ("Omitir por ahora") */
  html #bsOnboard.ob-calm .ob-opts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  html #bsOnboard.ob-calm .ob-opt { min-height: 74px; padding: 13px 40px 13px 14px; border-radius: 16px; }
  html #bsOnboard.ob-calm .ob-opt__ic { width: 40px; height: 40px; }
}
/* 44 px to the finger: Keep in the list of specialties is 40 px tall */
@media (pointer: coarse) {
  html #bsOnboard.ob-calm .ob-quiet::after { inset: -2px 0; }
}
