/* Frame B (Aamir 2026-11-11: "the site feels fragmented ... no unity"): the
   shared classes every brand B page uses for its header, sections, cards,
   buttons, band, rows, chips, fields and prose. The rules in words and the
   reasons are docs/design/frame-b.md; this sheet is that doc in CSS.

   Built from the brand B tokens in app/globals.css ([data-brand="b"]) and
   the values the home (public/css/home-b.css) and the FAQ / Resources /
   trust pages (public/design-b/pages-b.css) already draw, so a page that
   adopts it changes nothing where those two agree. Where they disagreed the
   frame picks one and frame-b.md says which.

   Not linked by any page yet. A page adopts it with one <link> beside its
   own sheet and class swaps (frame-b.md "Adopting the frame").

   Plain CSS, no Tailwind. Mint is var(--porch), never var(--accent): inside
   a [data-brand="b"] element the shadcn layer resets --accent to the wall
   grey. Switch points: 40rem (640 px) and 64rem (1024 px), the ones the home
   and pages-b already use. Motion only under prefers-reduced-motion:
   no-preference.

   Reading sizes (Aamir 11-14: "older people and people with no experience
   ... easy to read"): body text 18 px at 1.55 or more, lines of about 60
   to 68 characters (34em: Onest averages half an em a character, so "ch",
   the width of a zero, ran 85 a line), small print never under 15 px,
   labels 16 px. frame-b.md 14. */

/* ---- Section: one measure, one gutter, one vertical rhythm ------------- */
.fb-section { box-sizing: border-box; max-width: var(--page-w); margin: 0 auto; padding: var(--sec) var(--gutter) 0; }
/* The footer wrap carries the one step above the footer (globals.css). */
.fb-section-last { padding-bottom: 0; }
/* Air (Aamir 11-11 wave 4: "let it breathe"): stacked ideas inside one
   section sit a full section step apart. The step is --sec (globals.css):
   48 phone, 64 from 1024 px, the hubs' rhythm (Aamir 11-14 polish). */
.fb-breathe > * + * { margin-top: var(--sec); }
.fb-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.5rem 1.25rem; margin: 0 0 var(--sec-head); padding-bottom: var(--step-2); border-bottom: 1px solid var(--rule); }
.fb-stack { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

/* ---- Page header: navy ground, crumbs, eyebrow, H1, one lead line ------ */
/* The frame sets its own face: a head or section inside a page whose wrapper
   is not a [data-brand="b"] root inherited brand A's Atkinson (the care
   guide's lead and "Reviewed by" line, 11-14 face-lift). */
.fb-head, .fb-section, .fb-band { font-family: var(--font-sans); }
.fb-head { position: relative; background: radial-gradient(40rem 18rem at 85% -3rem, rgb(91 197 167 / 0.16), transparent 70%), linear-gradient(180deg, var(--ink), var(--navy-deep)); color: var(--paper); }
/* Face-lift 11-17: the home hero's dot texture, fading down, on every page head. */
.fb-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1.5px) 0 0 / 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.fb-head-inner { position: relative; box-sizing: border-box; max-width: var(--page-w); margin: 0 auto; padding: 2.5rem 1rem 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.fb-head-compact .fb-head-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; gap: 0.75rem; }
.fb-head a { color: var(--accent-2); }
/* A button in the head keeps its own text color over the head's link color. */
.fb-head a.fb-btn { color: var(--on-accent); }
.fb-head a.fb-btn-secondary { color: var(--ink); }
.fb-head :focus-visible { outline: 3px solid var(--porch); outline-offset: 2px; }
/* Crumbs (audit 23): one breadcrumb everywhere, "/" with 0.5rem, links not
   underlined until hovered, each a 44 px target. --accent-2 on navy. */
.fb-crumbs ol { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); }
.fb-crumbs li { display: flex; align-items: center; }
/* nav.fb-crumbs outranks a surface sheet's own li gap (.sb-crumbs li), so the "/" sits evenly between crumbs. */
nav.fb-crumbs li { gap: 0; }
.fb-crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.fb-crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--link); text-decoration: none; }
.fb-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fb-crumbs [aria-current="page"] { display: inline-flex; align-items: center; min-height: 2.75rem; }
.fb-head .fb-crumbs ol { color: var(--navy-deep-fine); }
.fb-head .fb-crumbs a { color: var(--accent-2); }
.fb-eyebrow { display: block; margin: 0; font-family: var(--font-sans); font-size: 0.8125rem; line-height: 1.125rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); }
.fb-head .fb-eyebrow, .fb-band .fb-eyebrow { color: var(--accent-2); }
.fb-h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 2.5rem; line-height: 2.75rem; letter-spacing: -0.01em; color: var(--ink); max-width: 51.25rem; text-wrap: balance; overflow-wrap: break-word; }
.fb-head .fb-h1 { color: var(--paper); }
.fb-h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 2.125rem; color: var(--ink); text-wrap: balance; scroll-margin-top: 9.5rem; }
.fb-h3 { margin: 0; font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); text-wrap: balance; }
.fb-lead { margin: 0; max-width: 34em; font-size: 1.125rem; line-height: 1.75rem; color: var(--slate); text-wrap: pretty; }
.fb-head .fb-lead { color: var(--navy-deep-text); }
.fb-fine { margin: 0; font-size: 0.9375rem; line-height: 1.5rem; color: var(--ink-3); }
.fb-head .fb-fine { color: var(--navy-deep-fine); }

/* ---- The five signature touches (Aamir 11-11 wave 4), each once a page -- */
/* (a) The pulse: a 2 px mint hairline under the H1 of a navy head. In the
   head's flex column its 16 px comes from the gap, so no extra margin. */
.fb-pulse { display: block; width: 48px; height: 2px; margin: 16px 0 0; border: 0; padding: 0; background: var(--porch); }
.fb-head-inner > .fb-pulse { margin-top: 0; }
/* (b) Tabular numerals on every count, date and price. */
.fb-num { font-variant-numeric: tabular-nums; }
/* (c) The quiet "Checked Mon D, YYYY" chip, only where the page already carries a checked date. */
.fb-stamp { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.625rem; border: 1px solid var(--rule); border-radius: 999px; font-family: var(--font-sans); font-size: 0.8125rem; line-height: 1.25rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fb-head .fb-stamp { border-color: var(--navy-deep-fine); color: var(--navy-deep-fine); }
/* (d) Section number "01" inside an eyebrow, long reading pages only. */
.fb-eyebrow-n { margin-right: 0.75em; font-variant-numeric: tabular-nums; letter-spacing: 0.14em; }
/* (e) Card hover: 2 px lift + mint border, under "Card" below. */

/* ---- Prose: the reading measure ---------------------------------------- */
.fb-prose { max-width: 34em; font-size: 1.125rem; line-height: 1.8rem; color: var(--slate); }
.fb-prose > * { margin: 0; }
.fb-prose > * + * { margin-top: 1.125rem; }
.fb-prose h2 { margin-top: 2.5rem; font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 2.125rem; color: var(--ink); }
.fb-prose h3 { margin-top: 1.75rem; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.fb-prose ul, .fb-prose ol { padding-left: 1.25rem; }
.fb-prose li + li { margin-top: 0.375rem; }
.fb-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.fb-prose a:hover { text-decoration-thickness: 2px; }

/* ---- Card: the one card. Radius 20, 1 px rule, white, no resting shadow - */
.fb-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; padding: 1.5rem; border: 1px solid var(--rule); border-radius: 20px; background: var(--paper); color: var(--ink); }
.fb-card > * { margin: 0; }
.fb-card > p { text-wrap: pretty; }
.fb-card-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--porch-subtle); color: var(--ink); }
.fb-card-icon svg { display: block; width: 22px; height: 22px; }
.fb-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin-top: auto; padding-top: 0.875rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); }
a.fb-card { text-decoration: none; }
a.fb-card:hover { border-color: var(--porch); }
/* The lift and shadow only where a pointer hovers (emil-design-eng, touch
   hover): a tap on a phone would leave the card raised until the next tap. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) { a.fb-card:hover { box-shadow: 0 14px 34px rgb(18 35 61 / 0.08); transform: translateY(-2px); } }
a.fb-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }

/* ---- Buttons: primary mint, secondary navy outline, text link ---------- */
.fb-btn, .fb-btn-secondary { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; margin: 0; padding: 0 1.5rem; border-radius: 12px; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.25rem; font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; }
.fb-btn { border: 0; background: var(--porch); color: var(--on-accent); }
.fb-btn:hover { background: var(--accent-hover); }
.fb-btn-secondary { border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; }
.fb-btn-secondary:hover { background: var(--wall); }
.fb-btn:focus-visible, .fb-btn-secondary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fb-head .fb-btn:focus-visible, .fb-band .fb-btn:focus-visible { outline-color: var(--porch); }
/* A button drawn as a link inside the head keeps its own colors (.fb-head a would turn it mint-on-mint). */
.fb-head a.fb-btn { color: var(--on-accent); }
.fb-head a.fb-btn-secondary { color: var(--ink); }
.fb-btn:active, .fb-btn-secondary:active { transform: scale(0.98); }
.fb-btn-sm { min-height: 2.75rem; padding: 0 1rem; font-size: 0.9375rem; }
.fb-btn-lg { min-height: 3.5rem; padding: 0 1.875rem; }
.fb-btn svg, .fb-btn-secondary svg { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fb-link { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.75rem; font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fb-link:hover { text-decoration-thickness: 2px; }
.fb-head .fb-link, .fb-band .fb-link { color: var(--accent-2); }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }

/* ---- Band: the navy "what comes next" block, heading + line + button ---- */
.fb-band { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin: var(--sec) 0 0; padding: 2.5rem 0; background: var(--navy-deep); color: var(--paper); box-shadow: 0 0 0 100vmax var(--navy-deep); clip-path: inset(0 -100vmax); }
/* Face-lift 11-17: the close runs edge to edge in the footer's ground; as a page's last block it runs straight into the footer (no white gap). */
.fb-band:last-child { margin-bottom: calc(-1 * var(--sec)); }
.fb-band h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 2.125rem; color: var(--paper); text-wrap: balance; }
.fb-band p { margin: 0.375rem 0 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--navy-deep-text); text-wrap: pretty; }
.fb-band :focus-visible { outline: 3px solid var(--porch); outline-offset: 2px; }

/* ---- List row: a title link over one plain line, between rules ---------- */
.fb-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.fb-rows > li { display: flex; flex-direction: column; gap: 0.125rem; padding: 0.875rem 0 1rem; border-bottom: 1px solid var(--rule); }
.fb-rows a { display: inline-flex; align-items: center; gap: 0.375rem; align-self: flex-start; min-height: 2.75rem; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-wrap: balance; }
.fb-rows a:hover { text-decoration-thickness: 2px; }
.fb-rows p { margin: 0; max-width: 34em; font-size: 1.125rem; line-height: 1.75rem; color: var(--slate); text-wrap: pretty; }
.fb-row-count { font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- Chip: a filter or choice; pressed is navy ------------------------- */
.fb-chip { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-height: 2.75rem; margin: 0; padding: 0 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.25rem; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.fb-chip:hover { border-color: var(--ink); }
.fb-chip:active { transform: scale(0.97); }
.fb-chip[aria-pressed="true"], .fb-chip[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--on-action); }
.fb-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-tag { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 6px; background: var(--porch-subtle); font-size: 0.8125rem; line-height: 1.25rem; font-weight: 700; color: var(--ink); }

/* ---- Form control: a labelled field, 48 px, the field grey ------------- */
.fb-label { display: block; margin: 0 0 0.375rem; font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.fb-input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 3rem; margin: 0; padding: 0.625rem 0.875rem; border: 1px solid var(--control-line); border-radius: 10px; background: var(--field); font-family: var(--font-sans); font-size: 1rem; line-height: 1.5rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.fb-input::placeholder { color: var(--ink-3); opacity: 1; }
.fb-input:hover { border-color: var(--rule-strong); }
.fb-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); background: var(--paper); }
.fb-input[aria-invalid="true"] { border-color: var(--danger); }


/* ---- Shared lines (card 995): links inside fine print, the cross link,
   the operator note, the visible questions, the state facts block -------- */
.fb-fine a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; padding-block: 0.75rem; }
/* The inline padding above makes a fine-print link a 44 px target without moving the line (make-interfaces-feel-better hit areas). */
.fb-fine a:hover { text-decoration-thickness: 2px; }
.fb-cross { margin: 1rem 0 0; max-width: 68ch; }
.fb-cross > .fb-fine { display: block; }
.fb-note { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.fb-note .fb-fine { max-width: 68ch; }
.fb-qa { margin-top: var(--sec); }
.fb-qa-item { max-width: 68ch; margin-top: 1.5rem; scroll-margin-top: 9.5rem; }
.fb-qa > .fb-h2 + .fb-qa-item { margin-top: 1.25rem; }
.fb-qa-item > .fb-prose { margin-top: 0.375rem; }
.fb-qa-item > .fb-fine { margin-top: 0.375rem; }
.fb-facts > details > summary { display: flex; align-items: flex-start; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0; cursor: pointer; list-style: none; color: var(--ink); }
.fb-facts > details > summary::-webkit-details-marker { display: none; }
.fb-facts > details > summary > h2 { flex: 1; min-width: 0; }
.fb-facts > details > summary > h2 > .fb-fine { display: block; margin-top: 0.25rem; font-weight: 400; }
.fb-facts > details > summary > svg { flex: none; margin-top: 0.125rem; color: var(--ink-3); }
.fb-facts > details[open] > summary > svg { transform: rotate(180deg); }
.fb-facts > details > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.fb-facts-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.fb-facts-list > .fb-card { padding: 1rem 1.125rem; gap: 0.375rem; font-size: 0.9375rem; line-height: 1.375rem; color: var(--slate); }
.fb-facts-list .fb-label { margin: 0; }
.fb-facts-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-top: 0.5rem; }
.fb-facts-foot .fb-link { font-size: 0.9375rem; }
.fb-facts > details > .fb-fine { margin-top: 0.5rem; }
.fb-date { display: inline-block; max-width: 100%; }
.fb-date > summary { min-height: 2.75rem; padding: 0 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); cursor: pointer; list-style: none; }
.fb-date > summary::-webkit-details-marker { display: none; }
.fb-date-panel { max-width: min(20rem, calc(100vw - 2rem)); margin-top: 0.5rem; padding: 0.75rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }

.fb-state { margin-top: 1rem; gap: 0.25rem; }
.fb-state > .fb-fine { margin-bottom: 0.25rem; }
.fb-state-n { font-weight: 400; color: var(--ink-3); }
.fb-state summary { cursor: pointer; }
.fb-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); column-gap: 2rem; margin: 0.25rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.fb-towns > li { display: flex; align-items: center; min-height: 2.75rem; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5rem; color: var(--slate); }
.fb-towns a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fb-towns a:hover { text-decoration-thickness: 2px; }
/* Related places (frame-b/related-list.tsx, cards 1060 and 1101): the site's shared section head (.fb-section-head: serif H2 over one hairline) with the list's order in words at the right, then rows on hairlines. Counts sit at the right, the number in ink and the words in grey; a profile's near list stacks each tell under its name. The whole row is the tap target. */
.fb-related-head > h2 { margin: 0; padding: 0; border: 0; font-size: 1.5rem; line-height: 1.875rem; }
.fb-related-main > .fb-related-head > h2 { font-size: var(--h2); line-height: var(--h2-lh); }
.fb-related-head { align-items: baseline; justify-content: flex-start; margin-bottom: 0; }
.fb-related-order { margin-left: 0; font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); }
.fb-related-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 3rem; }
.fb-related-list > li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 1.25rem; min-height: 3.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5rem; color: var(--ink); }
.fb-related-list > li > a { flex: 0 1 auto; max-width: 100%; font-weight: 600; color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.fb-related-list > li > a::after { content: ""; position: absolute; inset: 0; }
.fb-related-list > li:hover > a, .fb-related-list > li > a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.fb-related-list > li > span { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); text-align: right; text-wrap: pretty; }
.fb-related-list .fb-rl-n { font-weight: 700; color: var(--ink); }
/* A profile's near list: the tell under its name, left, one quiet line. */
.fb-related-tells > li { display: block; }
.fb-related-tells > li > span { display: block; margin-top: 0.125rem; text-align: left; }
.fb-related-more { margin-top: 0.75rem; }
.fb-related-more > summary { list-style: none; }
.fb-related-more > summary::-webkit-details-marker { display: none; }
.fb-related-more[open] > summary { margin-bottom: 0.25rem; }
.fb-related-more[open] .fb-related-show, .fb-related-more:not([open]) .fb-related-hide { display: none; }
@media (min-width: 40rem) { .fb-related-order { margin-left: auto; } .fb-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .fb-related-tells { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fb-phone-none { margin: 0; font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.fb-phone-dir { display: grid; gap: 0.5rem; margin-top: 0.75rem; }

.fb-stale { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; padding: 0.625rem 0.75rem; border: 1px solid var(--age); border-radius: 12px; background: var(--age-subtle); font-size: 0.9375rem; line-height: 1.375rem; font-weight: 700; color: var(--age); }
.fb-stale-glyph { flex: none; width: 0.75rem; height: 0.75rem; margin-top: 0.3125rem; }

.fb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: fb-step; }
.fb-steps > li { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.75rem; border-top: 2px solid var(--porch); counter-increment: fb-step; }
.fb-steps > li::before { content: counter(fb-step); font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); }

.fb-note-box { max-width: 40rem; margin: 1.25rem 0 0; padding: 0.875rem 1rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--porch-subtle); font-size: 1rem; line-height: 1.5rem; color: var(--ink); }
.fb-note-box > p { margin: 0; }
.fb-note-box > p + p { margin-top: 0.5rem; }

/* ---- Motion: one entrance, one hover lift, nothing when asked for less -- */
/* One curve and four durations, the tokens in globals.css (Aamir 11-14
   polish): press var(--dur-press) 120 ms, color and underline
   var(--dur-hover) 160 ms, lift, border and disclosure var(--dur-ui) 200 ms,
   the head's entrance var(--dur-enter) 320 ms, all var(--ease-out)
   (emil-design-eng: strong ease-out, UI under 300 ms; transform, opacity and
   color only, so nothing reflows). */
@keyframes fb-enter { from { opacity: 0.4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* A disclosure's body arrives 4 px up from 0 opacity when it opens; closing
   is instant (exit faster than enter). Transform and opacity only. */
@keyframes fb-reveal { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  .fb-head-inner { animation: fb-enter var(--dur-enter) var(--ease-out) both; }
  a.fb-card { transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
  a.fb-card:active { transform: translateY(0) scale(0.98); transition-duration: var(--dur-press); }
  .fb-btn, .fb-btn-secondary { transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
  .fb-chip { transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
  .fb-input { transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
  .fb-link, .fb-rows a, .fb-prose a, .fb-fine a, .fb-towns a, .fb-related-list a { transition: text-decoration-thickness var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
  .fb-facts > details > summary > svg, .fb-date > summary svg { transition: transform var(--dur-ui) var(--ease-out); }
  :where([data-brand="b"]) details[open] > :not(summary) { animation: fb-reveal var(--dur-ui) var(--ease-out) backwards; }
}

/* ---- 640 px: the 32 px gutter, the larger H1 and H2 -------------------- */
@media (min-width: 40rem) {
  .fb-section, .fb-head-inner { padding-left: 2rem; padding-right: 2rem; }
  .fb-h1 { font-size: 3rem; line-height: 3.25rem; }
  .fb-h2, .fb-prose h2 { font-size: 2rem; line-height: 2.375rem; }
  .fb-card { padding: 1.625rem; }
}
/* ---- 1024 px: the spec's sizes and the wide rhythm --------------------- */
@media (min-width: 64rem) {
  .fb-head-inner { padding-top: 4rem; padding-bottom: 3.5rem; }
  .fb-head-compact .fb-head-inner { padding-top: 2rem; padding-bottom: 2rem; }
  .fb-h1 { font-size: 3.375rem; line-height: 3.625rem; }
  .fb-h2 { font-size: 2.25rem; line-height: 2.5rem; scroll-margin-top: 7rem; }
  .fb-prose h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .fb-lead { font-size: 1.1875rem; line-height: 1.8125rem; }
  .fb-band { padding: 3.5rem 0; }
}

/* ==== Hub parts (card 961, Aamir 11-14: "janky ... looks like you just gave
   up"). One rail, one link card, one card grid that never orphans, one row
   of question links. Added after the rules above so the face-lift's edits to
   the card, chip and motion rules stay its own. docs/design/frame-b.md 13. */

/* ---- Rail: "On this page". No box, no underlines; a 2 px rule on the left,
   the current section marked on that rule in navy. Desktop only (from
   1024 px), sticky under the header; below that the sections are the order. */
.fb-with-rail { display: grid; gap: 0; align-items: start; }
.fb-rail { display: none; font-family: var(--font-sans); }
.fb-rail ol { display: flex; flex-direction: column; margin: 0.75rem 0 0; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.fb-rail a { box-sizing: border-box; display: flex; align-items: center; min-height: 2.75rem; margin-left: -2px; padding: 0.5rem 0 0.5rem 1rem; border-left: 2px solid transparent; font-size: 0.9375rem; line-height: 1.375rem; font-weight: 500; color: var(--ink-3); text-decoration: none; text-wrap: pretty; }
.fb-rail a:hover { color: var(--ink); }
.fb-rail a[aria-current] { border-left-color: var(--ink); color: var(--ink); font-weight: 700; }
.fb-rail a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 64rem) {
  .fb-with-rail { grid-template-columns: 13rem minmax(0, 1fr); gap: 4rem; }
  .fb-rail { display: block; position: sticky; top: 7rem; }
}

/* ---- Link card: the one card (.fb-card) whose title is the link. The
   title's ::after covers the card, so the whole card is one target; a link
   inside the card's line (Text 988) sits above it and stays its own. The
   arrow sits on the title's first line, at the right edge. */
.fb-card-go { position: relative; gap: 0.5rem; }
.fb-card-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; text-wrap: pretty; }
.fb-card-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fb-card-title:focus-visible { outline: none; }
.fb-card-go:has(.fb-card-title:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-card-go:hover { border-color: var(--porch); }
.fb-card-go > p { font-size: 1.125rem; line-height: 1.75rem; color: var(--slate); text-wrap: pretty; }
.fb-card-go > p a { position: relative; z-index: 1; display: inline-block; margin: -0.625rem 0; padding: 0.625rem 0; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
/* The arrow: 18 px, green, on the first line (24 px line, 3 px down). */
.fb-go { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.1875rem; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Card grid that never leaves one card alone on a row. One column on
   a phone; two from 640 px (an odd last card spans both); from 1024 px three
   to a row on a 6-track grid: a last lone card spans the row, a last pair
   splits it, four sit two by two. */
.fb-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) {
  .fb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .fb-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
  .fb-cards > * { grid-column: span 2; }
  .fb-cards > :last-child:nth-child(odd) { grid-column: span 2; }
  .fb-cards > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .fb-cards > :nth-last-child(2):nth-child(3n+1), .fb-cards > :last-child:nth-child(3n+2) { grid-column: span 3; }
  .fb-cards:has(> :nth-child(4):last-child) > * { grid-column: span 3; }
}

/* ---- Go rows: a list of related links (questions, types of care) as full
   width rows between rules, the title and a chevron, no underline. A list
   row (.fb-rows) variant: never a card grid, so never an orphan. */
.fb-rows-go > li { padding: 0; gap: 0; }
.fb-rows-go a { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 1rem; align-self: stretch; width: 100%; min-height: 3.5rem; padding: 0.875rem 0; font-size: 1.125rem; line-height: 1.625rem; font-weight: 600; color: var(--ink); text-decoration: none; text-wrap: pretty; }
.fb-rows-go a:hover { color: var(--link); }
.fb-rows-go a .fb-go { margin-top: 0; }
.fb-rows-go a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---- Motion for the hub parts: the same tokens. The lift only where a
   pointer hovers; nothing moves when less motion is asked for. */
@media (prefers-reduced-motion: no-preference) {
  .fb-card-go { transition: transform var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
  .fb-card-go:active { transform: scale(0.98); transition-duration: var(--dur-press); }
  .fb-go { transition: transform var(--dur-ui) var(--ease-out); }
  .fb-card-go:hover .fb-go, .fb-rows-go a:hover .fb-go { transform: translateX(3px); }
  .fb-card-go:hover .fb-go-out, .fb-rows-go a:hover .fb-go-out { transform: translate(2px, -2px); }
  .fb-rows-go a, .fb-rail a { transition: color var(--dur-hover) var(--ease-out), border-color var(--dur-hover) var(--ease-out); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .fb-card-go:hover { box-shadow: 0 14px 34px rgb(18 35 61 / 0.08); transform: translateY(-2px); }
  .fb-card-go:hover:active { transform: translateY(0) scale(0.98); }
}

/* 15. The one search bar (card 999, Aamir 11-14: "the search always looks the same no matter where you click").
   components/public/search-bar-b.tsx draws it on the home hero, the hubs, the city and facet lists, /search/ and the 404.
   The handoff's hero bar: a white plate (radius 18, padding 8), the place field with its small label, "Use my location"
   at the field's right edge, the type of care, the mint Search button 62 px tall. One look on navy and on white; only
   the plate's shadow and the note's color follow the ground. Width: the bar's container sets it (max 52rem). */
.fb-search { box-sizing: border-box; width: 100%; max-width: 52rem; text-align: left; color: var(--ink); }
.fb-search-form { box-sizing: border-box; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 8px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 20px 50px rgb(18 35 61 / 0.12); }
.fb-head .fb-search-form, .home-b-hero .fb-search-form { border-color: transparent; box-shadow: 0 30px 70px rgb(0 0 0 / 0.45); }
.fb-search-label { grid-column: 1; grid-row: 1; margin: 0; padding: 9px 11.5rem 2px 16px; font-family: var(--font-sans); font-size: 0.8125rem; line-height: 1rem; font-weight: 700; color: var(--ink-3); cursor: text; }
.fb-search-input { box-sizing: border-box; grid-column: 1; grid-row: 2; align-self: start; width: 100%; min-width: 0; min-height: 2.25rem; margin: 0; padding: 0 11.5rem 4px 16px; border: 0; border-radius: 0 0 12px 12px; background: transparent; font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.75rem; color: var(--ink); caret-color: var(--green); box-shadow: none; -webkit-appearance: none; appearance: none; }
.fb-search-input::placeholder { color: var(--ink-3); opacity: 1; }
.fb-search-input::-webkit-search-decoration, .fb-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fb-search-input:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.fb-search-locate { grid-column: 1; grid-row: 1 / 3; justify-self: end; align-self: center; display: inline-flex; align-items: center; gap: 0.375rem; min-width: 44px; height: 44px; margin: 0 6px 0 0; padding: 0 0.625rem; border: 0; border-radius: 10px; background: transparent; color: var(--link); font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.25rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.fb-search-locate svg { flex: none; width: 18px; height: 18px; }
.fb-search-locate:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.fb-search-kind { grid-column: 1; position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 9px 16px; border-radius: 12px; cursor: pointer; }
.fb-search-kind span { font-family: var(--font-sans); font-size: 0.8125rem; line-height: 1rem; font-weight: 700; color: var(--ink-3); }
.fb-search-kind select { appearance: none; -webkit-appearance: none; min-height: 1.75rem; margin: 0; padding: 0 1.5rem 0 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312233D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.75rem; color: var(--ink); cursor: pointer; }
.fb-search-kind select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.fb-search-go { grid-column: 1; align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; height: 62px; margin: 0; padding: 0 1.875rem; border: 0; border-radius: 12px; background: var(--porch); color: var(--on-accent); font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 800; cursor: pointer; }
.fb-search-go::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14z M16.5 16.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14z M16.5 16.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat; }
.fb-search-go:hover { background: var(--accent-hover); }
.fb-search-go:active { transform: scale(0.98); }
.fb-search-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fb-search-note { margin: 0.625rem 0 0; font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.375rem; color: var(--ink-3); }
.fb-head .fb-search-note, .home-b-hero .fb-search-note { color: var(--navy-deep-text); }
@media (hover: hover) and (pointer: fine) {
  .fb-search-locate:hover { background: var(--surface-2); color: var(--ink); }
  .fb-search-kind:hover { background: var(--surface-2); }
}
@media (prefers-reduced-motion: no-preference) {
  .fb-search-go { transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-hover) var(--ease-out); }
  .fb-search-locate, .fb-search-kind { transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out); }
}
@media (min-width: 40rem) {
  .fb-search-form { grid-template-columns: minmax(0, 1fr) minmax(10.5rem, 13.5rem) auto; }
  .fb-search-kind { grid-column: 2; grid-row: 1 / 3; justify-content: center; }
  .fb-search-kind::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: -3px; width: 1px; background: var(--rule); }
  .fb-search-go { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 24.9375rem), (min-width: 40rem) and (max-width: 63.9375rem) {
  .fb-search-label, .fb-search-input { padding-right: 60px; }
  .fb-search-locate span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ==== Long pages (card 1050, Aamir 11-15: scan a long page, no empty or
   templated look). Two shared parts; docs/design/frame-b.md 13. */

/* ---- Contents on a phone or tablet: the rail's list in a closed
   disclosure at the top of a long page, under 1024 px only (the rail takes
   over from there). Server markup, no script; every link is in the HTML. */
.fb-toc-m { margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--font-sans); }
.fb-toc-m > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3rem; padding: 0.25rem 0; cursor: pointer; list-style: none; font-size: 0.8125rem; line-height: 1.125rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); }
.fb-toc-m > summary::-webkit-details-marker { display: none; }
.fb-toc-m > summary::after { content: "+" / ""; flex: none; font-size: 1.25rem; font-weight: 700; letter-spacing: 0; color: var(--green); }
.fb-toc-m[open] > summary::after { content: "\2212" / ""; }
.fb-toc-m > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.fb-toc-m ol { margin: 0 0 0.75rem; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.fb-toc-m a { box-sizing: border-box; display: flex; align-items: center; min-height: 2.75rem; margin-left: -2px; padding: 0.375rem 0 0.375rem 1rem; border-left: 2px solid transparent; font-size: 1rem; line-height: 1.375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; text-wrap: pretty; }
.fb-toc-m a:hover { border-left-color: var(--ink); color: var(--ink); }
.fb-toc-m a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (min-width: 64rem) { .fb-toc-m { display: none; } }

/* ---- Link list: the link card's row form for a hub's quieter groups. The
   same markup as the link card (.fb-card.fb-card-go: the title covers the
   row, the arrow on its first line), without the box: a rule above each
   row, two columns from 640 px. No lift; the title turns link blue. */
.fb-links { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.fb-links > .fb-card { padding: 1rem 0 1.125rem; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; }
.fb-links > .fb-card-go:hover, .fb-links > .fb-card-go:hover:active { box-shadow: none; transform: none; }
.fb-links > .fb-card-go:hover .fb-card-title { color: var(--link); }
@media (min-width: 40rem) { .fb-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .fb-links .fb-card-title { transition: color var(--dur-hover) var(--ease-out); } }

/* Card 1074 (posting rules v3): the tier badge, one part on the profile
   head and the list row (frame-b/tier-badge.tsx). The profile tag's size and
   6 px radius (.pb-tag), mint-subtle ground, green words and a seal check, so
   it reads apart from the outlined kind pills and the plain list chip. Static:
   no motion. */
.fb-tier { display: inline-flex; align-items: center; gap: 0.25rem; width: fit-content; max-width: 100%; font-size: 0.75rem; line-height: 1.125rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--green); background: var(--porch-subtle); border-radius: 6px; padding: 1px 8px 1px 6px; overflow-wrap: anywhere; }
.fb-tier::before { content: ""; flex: none; width: 0.875rem; height: 0.875rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
.sb-card .fb-tier { margin: 0.25rem 0 0.125rem; }
