/*
 * The storefront's composed pages in the four vertical demo sites' own look
 * (the `vertical` kit, 27 Sep 2026). Loaded after site.css, and before the
 * tenant's palette, on a composed page of demo-caravan, demo-tennis,
 * demo-dentist or demo-arena.
 *
 * WHY THIS FILE EXISTS. The hand-written pages carried their spacings as
 * style="" attributes, and the hero's picture as an inline background. A
 * composed page's policy has no 'unsafe-inline' (SPEC_STOREFRONT 8), so each
 * became a class here -- the same values, so nothing moves -- and the hero's
 * picture is a library <img> in the same box. It also gives the phase-1
 * content blocks (sf-*) site.css's tokens, for anything an editor places on
 * a vertical page that the kit does not draw itself.
 *
 * THE CLS RULE (SPEC_STOREFRONT 9.1): every picture sits in a box whose
 * shape is stated here. Targets are at least 44 px (the owner's rule).
 */

/* ---- the hand-written pages' inline spacings, as classes ---- */
.sfv-pb0 { padding-bottom: 0; }
.sfv-pb1 { padding-bottom: 1rem; }
.sfv-mt1 { margin-top: 1rem; }
.sfv-mt15 { margin-top: 1.5rem; }
.sfv-mt2 { margin-top: 2rem; }
.sfv-mt25 { margin-top: 2.5rem; }
.sfv-mb15 { margin: 0 0 1.5rem; }
.sfv-confirm { margin: 1.25rem 0 0; }
/* The booker's "from" price and its basis (OPEN_ITEMS 339 row 3). */
.sfv-price { margin: 0 0 .75rem; font-weight: 700; }
.sfv-w26 { max-width: 26rem; }
.sfv-months { align-items: center; gap: .75rem; }
.sfv-important { margin-top: 1.5rem; }
.sfv-important .sfv-important-title { font-size: 1rem; }
.sfv-important ul { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.sfv-important .sfv-accept { margin-top: .9rem; font-size: 1rem; }
/* A KICKER ON THE INVERTED BAND: white, as the hand-written band said inline. */
.band .kicker { color: #fff; }

/* ---- the hero's picture: a library <img> where the background was ---- */
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
                  aspect-ratio: auto; }

/* ---- the testimonial: a <figure>, its attribution a <figcaption> ---- */
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: .9rem; font-size: .9rem; color: var(--ink-soft); }

/* ---- text pages: the cookie and privacy notices ---- */
.sfv-text { padding-top: clamp(2rem, 5vw, 3.5rem); }
.sfv-prose { max-width: 62ch; }
.sfv-prose h2 { margin-top: 2rem; }
.sfv-prose .sf-table-wrap { max-width: 100%; }
.sf-table-wrap { overflow-x: auto; }
.sf-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.sf-table th, .sf-table td { text-align: left; vertical-align: top; padding: .55rem .6rem;
                             border-bottom: 1px solid var(--line); }
.sf-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---- pictures from the library: the box states the shape ---- */
.sf-fit { display: block; width: 100%; height: auto; object-fit: cover; }
.sf-r169 { aspect-ratio: 16 / 9; }
.sf-r43 { aspect-ratio: 4 / 3; }
.sf-r11 { aspect-ratio: 1 / 1; }
.sf-r34 { aspect-ratio: 3 / 4; }

/* ---- the phase-1 content blocks, in site.css's tokens ---- */
.sf-wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.sf-block { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.sf-prose { max-width: 62ch; }
.sf-lead { font-size: 1.15rem; color: var(--ink-soft); }
.sf-eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
              color: var(--accent-text); margin: 0 0 .5rem; }
.sf-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
          border-radius: var(--radius); background: var(--brand); color: #fff; font-weight: 700;
          text-decoration: none; border: 0; }
.sf-btn:hover { background: var(--brand-deep); color: #fff; }
.sf-btn-quiet { background: transparent; color: var(--brand-text); border: 2px solid currentColor; }
.sf-cta { background: var(--paper-warm); padding: 2.5rem 0; }
/* A GALLERY PICTURE, LARGER, ON THE PAGE (17 Nov 2026, OPEN_ITEMS 350 W55;
   worker/src/gallery.js; as sf.css): shown only while it is the address's
   target, never a dialog, no script. */
.sf-gview { display: none; margin: 0 0 1.5rem; scroll-margin-top: 1rem; }
.sf-gview:target { display: block; }
.sf-gview:focus { outline: none; }
.sf-gview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .75rem; }
.sf-gview-where { font-weight: 700; color: var(--ink); margin-right: auto; }
@media (max-width: 40rem) { .sf-gview-where { flex-basis: 100%; } }
/* THE WHOLE PICTURE ON THE SCREEN: never taller than the window. */
.sf-gview .sf-fit { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.sf-gallery-open { display: block; }
.sf-cards, .sf-gallery, .sf-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem;
                                       grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.sf-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.sf-card h3, .sf-card p { padding: 0 1rem; }
.sf-card h3 a { display: inline-flex; min-height: 44px; align-items: center; }
.sf-price { border: 2px solid var(--brand); border-radius: var(--radius); padding: 1.5rem; max-width: 34rem; }
.sf-price-figure { font-size: 2rem; font-weight: 800; margin: 0; }
.sf-price-figure::first-letter { text-transform: uppercase; }
.sf-embed { background: var(--paper-warm); border-radius: var(--radius); padding: 1.5rem; }
.sf-embed-fields { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.sf-field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.sf-field input { width: 100%; min-height: 44px; }
.sf-quote blockquote { margin: 0; font-size: 1.25rem; }
.sf-two { display: grid; gap: 2rem; }
@media (min-width: 50rem) { .sf-two { grid-template-columns: 1fr 1fr; align-items: center; } }
/* COLUMNS ON THESE KITS (27 Oct 2026, OPEN_ITEMS 312). The columns block
 * (storefront.js BLOCKS.columns: .sf-columns > .sf-cols.sf-cols-N) was styled
 * only in sf.css, which a kit page does not load, so on www and the vertical
 * sites it always stacked -- the shape of the sections fix of 21 Oct. Side by
 * side when THE BLOCK is 45rem wide or more (a container query, so a block in
 * a narrow section band stacks too, and Large Text, which raises the rem,
 * stacks it sooner rather than squeezing it); one under another below that,
 * in order or reversed as the editor says. CSS only: the reading and tab
 * order stay the source order. No colours here, so every look keeps its own.
 * The same rules in sf-club.css (test/columns-kits.test.mjs holds both). */
.sf-columns { container-type: inline-size; }
.sf-cols { display: flex; flex-direction: column; gap: 1.5rem; }
.sf-cols-reverse { flex-direction: column-reverse; }
.sf-column { min-width: 0; }
.sf-column > :first-child { margin-top: 0; }
.sf-column > :last-child { margin-bottom: 0; }
.sf-column .sf-fit { margin-bottom: .75rem; }
@container (min-width: 45rem) {
  .sf-cols { display: grid; gap: 2rem; }
  .sf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sf-faq details { border-bottom: 1px solid var(--line); padding: .5rem 0; }
.sf-faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.sf-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 0 0; margin: 0;
                color: var(--ink-soft); font-size: .9rem; }
.sf-crumbs li + li::before { content: "\203a"; margin-right: .5rem; }
.sf-crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.sfj-title { padding-top: 1.5rem; }

/* ---- the shop and the basket pane on a vertical site (29 Sep 2026) ----
 * The product pages of demo-arena's vouchers and demo-tennis's membership
 * plans (shop.js product_grid / product_detail) and the basket pane
 * (camc-basket.js) were styled in the Club's kit only. The same shapes here
 * in site.css's tokens, so the arena's dark paper stays readable: cards and
 * the pane are the tenant's paper, never white. Targets are 44 px. */
.shop-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.25rem;
             grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.shop-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
             overflow: hidden; display: flex; flex-direction: column; }
.shop-card > p { margin: 0 1rem .75rem; }
/* A CARD THAT SELLS ITSELF (OPEN_ITEMS 362 rows 7, 9): its form sits in the
   card's margins, the button at least 44 px. */
.shop-card > .shop-buy-card { margin: 0 1rem 1rem; padding-top: .75rem; }
.shop-buy-card p { margin: 0; }
.shop-buy-card .btn { min-height: 44px; }
.shop-card-link { display: block; color: var(--ink); text-decoration: none; min-height: 44px; }
.shop-card-link:hover .shop-card-name { color: var(--brand-text); text-decoration: underline; }
.shop-card-media { display: block; background: var(--paper-warm); }
.shop-card-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.shop-card-name { font-size: 1.1rem; margin: .75rem 1rem .4rem; }
.shop-price { font-weight: 700; }
.shop-basis { font-weight: 400; color: var(--ink-soft); }
.shop-stock { color: var(--ink-soft); font-size: .95rem; }
.shop-pager { margin-top: 1.5rem; }
.shop-product-row { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .shop-product-row { grid-template-columns: 1fr 1fr; align-items: start; } }
.shop-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.shop-price-big { font-size: 1.6rem; margin: .5rem 0; }
.shop-buy { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.shop-variants { border: 0; padding: 0; margin: 0 0 1rem; }
.shop-variant { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.shop-variant-price { margin-left: auto; font-weight: 700; }
.shop-qty input { width: 6rem; min-height: 44px; border: 1px solid var(--control-line); }
.mini-basket ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-basket li { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .6rem 0;
                  border-bottom: 1px solid var(--line); }
.mini-basket .mini-amount { margin-left: auto; font-weight: 700; }
.bk-pane { position: fixed; top: 0; right: 0; bottom: 0; width: min(24rem, 92vw);
           background: var(--paper); color: var(--ink); border-left: 1px solid var(--line);
           box-shadow: -8px 0 28px rgba(0, 0, 0, .18); display: flex; flex-direction: column; z-index: 60; }
.bk-pane[hidden] { display: none; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
           padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.bk-head h2 { margin: 0; font-size: 1.15rem; }
.bk-close { min-width: 2.75rem; min-height: 2.75rem; border: 0; background: none; font-size: 1.6rem;
            line-height: 1; cursor: pointer; color: var(--ink); border-radius: var(--radius); }
.bk-body { flex: 1; overflow-y: auto; padding: 1.15rem; }
.bk-lines { list-style: none; margin: 0; padding: 0; }
.bk-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0;
               border-bottom: 1px solid var(--line); }
.bk-remove { display: block; margin-top: .3rem; padding: .35rem 0; min-height: 2.75rem; border: 0;
             background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--brand-text);
             text-decoration: underline; cursor: pointer; }
.bk-amount { font-weight: 700; white-space: nowrap; }
.bk-total { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 0; font-size: 1.05rem; }
.bk-foot { padding: 1.15rem; border-top: 1px solid var(--line); }
.bk-foot .btn { width: 100%; margin-bottom: .5rem; }
body.bk-open { overflow: hidden; }

/* ---- A79: selling and checking out on a vertical site (29 Sep 2026) ----
 * The shop's and the checkout's sections say `band` because the Club's kit
 * means a plain section by it; here `band` is the inverting brand band, so a
 * product page and a checkout would turn brand colour. Plain here, on the
 * tenant's own paper and ink. */
.band.shop-band, .band.shop-product, .band.shop-head, .band.mini-basket, .band:has(> .ck-wrap) {
  background: transparent; color: var(--ink); }
.band.shop-band :is(h2, h3), .band.shop-product :is(h2, h3), .band.shop-head :is(h2, h3),
.band.mini-basket :is(h2, h3), .band:has(> .ck-wrap) :is(h2, h3) { color: var(--ink); }
.band.shop-band p, .band.shop-product p, .band.shop-head p, .band.mini-basket p,
.band:has(> .ck-wrap) p { color: inherit; }
.band:has(> .ck-wrap) .btn-quiet, .band.mini-basket .btn-quiet { border-color: var(--control-line); color: var(--ink); }
.band.shop-band, .band.mini-basket { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
/* THE CONTACT PAGE, THE SAME WAY (19 Oct 2026, the owner's walk on www).
 * Its section says `band` and its two panels `map-pick` -- the Club's kit's
 * plain section and white card (camc.css). Here `band` turned the page
 * brand-deep and nothing drew the card, so the form sat on the dark band
 * and "Send my message" -- --brand on --brand-deep -- looked greyed out.
 * Plain section, a card on the paper, ink words; the buttons are the
 * ordinary .btn-primary, as on demo-camc. Tokens only (a11y.css themes). */
.band:has(#contact-form) { background: transparent; color: var(--ink); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.band:has(#contact-form) :is(h1, h2, h3) { color: var(--ink); }
.band:has(#contact-form) p { color: inherit; }
.band:has(#contact-form) .map-pick {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); padding: 1.25rem; margin-bottom: 1rem; }
.band:has(#contact-form) .map-pick .note { color: var(--ink-soft); }
#c-confirm { border-inline-start: 4px solid var(--brand); padding-inline-start: 1rem; margin-bottom: 1rem; }
/* REPLY MODE (20 Oct 2026): the conversation on one request, read top to
 * bottom on a phone; a long word or address wraps rather than widening the
 * page. Tokens only. */
#c-thread { border-inline-start: 4px solid var(--brand); padding-inline-start: 1rem; margin-bottom: 1rem; }
#c-thread-list { padding-inline-start: 1.25rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
#c-thread-list li { border-top: 1px solid var(--line); padding-block: .6rem; }
#c-thread-list li p { margin: .25rem 0; }
#c-answer { width: 100%; }
/* The assistant's button is the Club kit's .btn-teal, which these kits do not
 * draw: it was bare blue words in button padding. The accent button here. */
.band:has(#contact-form) .btn-teal { background: var(--accent); color: #fff; }
.sfj-title + .band.shop-band { padding-top: .5rem; }

/* ---- SECTIONS ON THESE KITS (21 Oct 2026, the www designers' 10) --------
 * A `section_start` opens <section class="sf-band sf-band-<background>
 * sf-band-w-<width> sf-band-pad-<padding>"> (storefront.js sectionOpen). Its
 * rules were only in sf.css, which a kit page does not load, so on www and
 * the vertical sites a section's background, width and padding did nothing.
 * The same choices here, in this kit's tokens (a11y.css themes them). */
.sf-band { position: relative; overflow: hidden; }
.sf-band-surface { background: var(--paper); color: var(--ink); }
.sf-band-muted, .sf-band-picture { background: var(--paper-warm); color: var(--ink); }
.sf-band-brand { background: var(--brand-deep); color: #fff; }
.sf-band-brand :is(h1, h2, h3, p, .lede, .kicker, label, legend, .note) { color: inherit; }
.sf-band-brand a:not(.btn) { color: inherit; }
.sf-band-w-content { width: min(1120px, 100% - 2rem); margin-inline: auto; border-radius: var(--radius); }
.sf-band-w-wide { width: min(1400px, 100%); margin-inline: auto; }
.sf-band-w-full { width: 100%; }
.sf-band-pad-s { padding-block: 1rem; }
.sf-band-pad-m { padding-block: 2rem; }
.sf-band-pad-l { padding-block: 3rem; }
.sf-band-pad-xl { padding-block: 4.5rem; }
.sf-band-inner { position: relative; z-index: 1; }
.sf-band-media { position: absolute; inset: 0; }
.sf-band-media img { width: 100%; height: 100%; object-fit: cover; }
.sf-band-overlay-light .sf-band-media::after,
.sf-band-overlay-dark .sf-band-media::after { content: ""; position: absolute; inset: 0; }
.sf-band-overlay-light .sf-band-media::after { background: color-mix(in srgb, var(--paper) 82%, transparent); }
.sf-band-overlay-dark .sf-band-media::after { background: rgba(0, 0, 0, .6); }
.sf-band-overlay-dark { color: #fff; }
.sf-band-overlay-dark :is(h1, h2, h3, p, .lede, label, legend, .note) { color: inherit; }

/* THE CONTACT BLOCK INSIDE A SECTION draws no band of its own (journeys.js
 * contact: `contact-sec`), so the section's background is the one you see;
 * the form keeps its card on the paper, as on its own. Tokens only. */
.contact-sec { padding-block: clamp(1rem, 3vw, 2rem); }
.contact-sec .map-pick {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); padding: 1.25rem; margin-bottom: 1rem; }
.contact-sec .map-pick :is(h2, h3, p, label, legend) { color: inherit; }
.contact-sec .map-pick .note { color: var(--ink-soft); }
.contact-sec .btn-teal { background: var(--accent); color: #fff; }
/* One box under another had no space between them (the name box sat on the
 * next label); the same gap as a box and its note. */
#contact-form .field + .field { margin-top: .9rem; }

/* THE HEADER BASKET: the word and a count, 44 px, the site's own ink. */
.bk-open-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
               padding: .35rem .75rem; border-radius: 9px; color: var(--ink); font-weight: 700; font-size: .93rem;
               text-decoration: none; flex: none; }
.bk-open-btn:hover { background: var(--paper-warm); }
.bk-open-btn img { display: block; width: 24px; height: 24px; }
.bk-count[hidden] { display: none; }
.bk-count { min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--brand);
            color: #fff; font-size: .78rem; font-weight: 800; line-height: 1.35rem; text-align: center; }

/* ---- THE TOP MENU FOLDS WHEREVER ITS LINKS DO NOT FIT (27 Oct 2026, ------
 * OPEN_ITEMS 311). site.css folds the menu behind its button only at 760px
 * and below, whatever it holds, so www's seven links ran off a 768px tablet
 * (a sideways scroll) and nine ran off a 1024px screen. Here the fold point
 * comes from HOW MANY LINKS the Worker drew (:has counts them, no class and
 * no script) and is measured against THE ROW ITSELF (a container query): the
 * row stops at 1120px, so nine links fold even on a wide screen, and the
 * thresholds are in rem, so Large Text, which raises the rem, folds sooner.
 * Dyslexia Friendly's wider face and spacing need about a fifth more room,
 * so it moves up a tier. The row needs about 18rem (the name, the gaps, one
 * utility link) plus about 6rem a link (measured
 * in headless Edge with labels of 7 to 12 letters and "Book a demo"); each
 * tier folds a little before the links would touch.
 *
 * NO LAYOUT SHIFT: the decision is the row's width and the count, both known
 * at the first layout, never the font's measured width. The button is shown
 * only where sf-vertical-menu.js has shown it (not [hidden]) -- or in design
 * mode, where no site script runs and a worded button is drawn closed, as
 * sfd.css does below 48rem. A button with no words stays hidden and the
 * links stay on screen.
 *
 * THE SAFETY NET: the row and the lists may wrap, so labels longer than
 * these tiers allow put the links on a second line under the brand -- taller,
 * never wider than the screen. The guide says to keep labels short
 * (WWW_SITE_DEVELOPER_GUIDE, the top menu); test/menu-fold.test.mjs holds the
 * tiers and the overflow check measures them. */
.masthead-row { container: sfv-head / inline-size; flex-wrap: wrap; row-gap: 0; }
.masthead-row .nav, .masthead-row .nav ul { flex-wrap: wrap; }
@container sfv-head (width < 42rem) {
  .masthead-row:has(.nav-links > :nth-child(4))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)) { display: inline-flex; }
  .masthead-row:has(.nav-links > :nth-child(4))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)):not([aria-expanded="true"]) + .nav { display: none; }
}
@container sfv-head (width < 48rem) {
  :is(.masthead-row:has(.nav-links > :nth-child(5)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(3)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)) { display: inline-flex; }
  :is(.masthead-row:has(.nav-links > :nth-child(5)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(3)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)):not([aria-expanded="true"]) + .nav { display: none; }
}
@container sfv-head (width < 55rem) {
  :is(.masthead-row:has(.nav-links > :nth-child(6)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(4)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)) { display: inline-flex; }
  :is(.masthead-row:has(.nav-links > :nth-child(6)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(4)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)):not([aria-expanded="true"]) + .nav { display: none; }
}
@container sfv-head (width < 60rem) {
  :is(.masthead-row:has(.nav-links > :nth-child(7)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(5)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)) { display: inline-flex; }
  :is(.masthead-row:has(.nav-links > :nth-child(7)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(5)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)):not([aria-expanded="true"]) + .nav { display: none; }
}
@container sfv-head (width < 67rem) {
  :is(.masthead-row:has(.nav-links > :nth-child(8)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(6)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)) { display: inline-flex; }
  :is(.masthead-row:has(.nav-links > :nth-child(8)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(6)))
    > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)):not([aria-expanded="true"]) + .nav { display: none; }
}
/* Nine or more (seven or more in Dyslexia Friendly) never fit the 1120px row. */
:is(.masthead-row:has(.nav-links > :nth-child(9)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(7)))
  > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)) { display: inline-flex; }
:is(.masthead-row:has(.nav-links > :nth-child(9)), [data-theme="a11y-dyslexia"] .masthead-row:has(.nav-links > :nth-child(7)))
  > .nav-toggle:is(:not([hidden]), :root[data-sf-design] :not(:empty)):not([aria-expanded="true"]) + .nav { display: none; }
/* OPENED, at any width: the links under the row, one to a line, as site.css
 * draws them at 760px and below. (Open only ever follows a press of a button
 * that is shown, so a menu laid out like this is one somebody opened.) */
.masthead-row > .nav-toggle:not([hidden])[aria-expanded="true"] + .nav {
  display: flex; width: 100%; flex-direction: column; align-items: stretch;
  padding: 0 0 .9rem; border-top: 1px solid var(--line);
}
.masthead-row > .nav-toggle:not([hidden])[aria-expanded="true"] + .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
.masthead-row > .nav-toggle:not([hidden])[aria-expanded="true"] + .nav a { width: 100%; }
.masthead-row > .nav-toggle:not([hidden])[aria-expanded="true"] + .nav .nav-util { margin-top: .5rem; }
.masthead-row > .nav-toggle:not([hidden])[aria-expanded="true"] + .nav .nav-util a { justify-content: center; }

@media (max-width: 760px) {
  /* BESIDE THE MENU BUTTON on a phone, never under the folded menu: the
     brand, the basket and the menu on one row. */
  .masthead-row { column-gap: .5rem; }
  /* A BASIS OF NOTHING, so the row shrinks the brand's name onto two lines
     rather than wrapping the menu button onto a row of its own. */
  .masthead-row .brand { order: 0; min-width: 0; flex: 1 1 0; }
  .masthead-row .brand-name { font-size: .95rem; line-height: 1.15; }
  .masthead-row .bk-open-btn { order: 1; padding: .35rem .45rem; }
  .masthead-row .nav-toggle { order: 2; }
  .masthead-row .nav { order: 3; }
}
@media (max-width: 480px) {
  /* THE WORD HIDDEN, NOT GONE: it stays the button's name for a screen
     reader, and a drawn bag and the count say it on screen. */
  .bk-open-btn .bk-open-label { position: absolute; width: 1px; height: 1px; overflow: hidden;
                                clip: rect(0 0 0 0); white-space: nowrap; }
  .bk-open-btn::before { content: ""; width: 18px; height: 14px; margin-top: 5px; border: 2px solid currentColor;
                         border-radius: 2px 2px 5px 5px; box-sizing: border-box; }
  .bk-open-btn::after { content: ""; position: absolute; left: calc(.45rem + 5px); top: calc(50% - 11px); width: 8px;
                        height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0;
                        box-sizing: border-box; }
}

/* A LINE'S NOTES -- how many, held until when -- under its name. */
.bk-what small, .rate-note { display: block; margin-top: .2rem; font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.bk-what .bk-remove { margin-top: .2rem; }
/* WHAT CHANGED ON A LINE WHEN PAYMENT WAS ASKED FOR (1 Oct 2026): words and a
   glyph, never colour alone; the kit's tokens, which every theme recolours. */
.bk-what .ck-line-state { margin-top: .3rem; font-size: .9rem; font-weight: 600; color: var(--accent-text); }
.bk-what .ck-line-accepted { color: var(--ok); }
.ck-glyph { font-weight: 700; }
.ck-accept { display: block; margin-top: .2rem; padding: .35rem 0; min-height: 2.75rem; border: 0;
             background: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--brand-text);
             text-decoration: underline; cursor: pointer; }

/* THE CHECKOUT, THE CARD PAGE AND THE CONFIRMATION. */
/* THE COLUMN, NOT THE WRAP: a narrow column on the page's own left edge, in
   line with the header and the footer. */
.ck-wrap > * { max-width: 44rem; }
#ck-back a { display: inline-flex; align-items: center; min-height: 44px; }
.ck-lines { margin-top: 1rem; }
.ck-terms { margin: 1rem 0; }
.ck-wall, .ck-done { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-top: 1.25rem;
                     background: var(--paper); }
.ck-wall h2, .ck-done h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.ck-wall p { margin: 0; }
.ck-wall p:last-child, .ck-done p:last-child { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.ck-done .bk-total { margin: .35rem 0 0; }
.ck-done > p:not(.bk-total):not(:last-child) { margin-top: 1rem; }
.ck-card { display: grid; gap: 1rem; max-width: 26rem; margin-top: 1rem; }
.ck-card input { width: 100%; min-height: 44px; border: 1px solid var(--control-line); border-radius: 9px;
                 padding: .55rem .75rem; background: var(--paper); color: var(--ink); font: inherit; }
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ck-amount { font-size: 1.1rem; }
.demo-note { border: 1px dashed var(--control-line); border-radius: var(--radius); padding: .9rem 1.1rem;
             background: var(--paper-warm); color: var(--ink); margin: 0 0 1.25rem; }
#ck-status:empty { display: none; }
#ck-status.bad, .ck-done .bad { color: var(--accent-text); font-weight: 700; }
.wallet-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.wallet-buttons[hidden] { display: none; }
.wallet-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem;
              border-radius: 10px; background: #000; color: #fff; text-decoration: none; font-weight: 700; }
.wallet-btn small { display: block; font-weight: 400; font-size: .75rem; opacity: .85; }
/* THE TRAIL AND THE WAY BACK in the site's own link colour, on one line. */
.sf-crumbs ol { align-items: center; }
.sf-crumbs a, #ck-back a { color: var(--brand-text); }

/* ---- SITE-LOOK OPTIONS IN A KIT'S LOOK (17 Nov 2026, OPEN_ITEMS 350 W46, W48, W49, W68) ----
   The same rules in sf-club.css and sf-vertical.css (held equal by
   demo-sites/worker/test/site-look-options.test.mjs); sf.css has its own in
   the storefront's tokens. Every colour is the kit's token, which a11y.css
   hands each accessibility theme; the shadow and a frame's tilt are drawn in
   the default look only. ICONS IN COLUMNS (W49): whole, small, on no tile.
   A PICTURE'S STYLE (W68): square, rounded, rounded with a soft shadow, or
   framed like a printed photograph. A BAND'S DARK TONE AND SIDE-BY-SIDE
   LAYOUT (W48): the ink as the band, the paper as its words; the picture
   beside the words from 50rem, above them below that. */
/* THE HERO AS A SLIDER (W46) on a kit's page, as sf.css draws it there. */
.sf-hero-slides { --sf-hero-h: 30rem; position: relative; }
.sf-hero-stage { display: grid; }
.sf-hero-stage > * { grid-area: 1 / 1; min-width: 0; }
.sf-hero-over { z-index: 2; align-self: start; width: 100%; max-width: var(--wrap, 1100px); justify-self: center;
  padding: clamp(16px, 4vw, 48px) 16px 0; pointer-events: none; }
.sf-hero-over .sf-hero-panel { pointer-events: auto; max-width: 42rem; margin: 0 auto; text-align: center; }
.sf-hero-slides .sf-hero-track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column;
  grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
/* max-width none: Calm's and Dyslexia's reading measure (a11y.css) is for words, not a slide. */
.sf-hero-slides .sf-hero-slide { max-width: none; display: grid; scroll-snap-align: start; background: var(--paper); }
.sf-hero-slide > :is(img, picture) { grid-area: 1 / 1; display: block; }
.sf-hero-slide img { width: 100%; height: 100%; min-height: var(--sf-hero-h); aspect-ratio: auto; object-fit: cover; }
.sf-hero-slide-words { grid-area: 2 / 1; }
.sf-hero-panel { background: rgba(0, 0, 0, .62); color: #ffffff; padding: 1rem 1.25rem; }
.sf-hero-panel :is(h1, h2, p, .sf-lead, .sf-eyebrow) { color: inherit; }
.sf-hero-panel > :last-child { margin-bottom: 0; }
.sf-hero-panel a:not(.sf-btn) { color: inherit; }
.sf-hero-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem;
  padding-top: .75rem; padding-bottom: .75rem; }
:is(.sf-hero-controls, .sf-moving-toggle)[hidden] { display: none; }
/* Once the script draws previous, next and the dots, they replace the scrollbar. */
.sf-hero-slides[data-sf-ready] .sf-hero-track { scrollbar-width: none; }
.sf-hero-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.sf-hero-dot { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 0; background: transparent; cursor: pointer; }
.sf-hero-dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.sf-hero-dot[aria-current="true"]::before { background: var(--ink); }
@media (min-width: 600px) {
  .sf-hero-slides { --sf-hero-h: 34rem; }
  .sf-hero-slide-words { grid-area: 1 / 1; z-index: 1; align-self: end; justify-self: center; max-width: 42rem;
    margin: 0 1rem 1.5rem; text-align: center; }
}
html[data-theme="a11y-high-contrast"] .sf-hero-panel { background: #000000; border: 2px solid #ffffff; }
html[data-theme="a11y-dyslexia"] .sf-hero-panel { text-align: left; }
@media (prefers-reduced-transparency: reduce) { .sf-hero-panel { background: #000000; } }
.sf-cols-icons .sf-whole { width: 6rem; height: 6rem; aspect-ratio: 1 / 1; object-fit: contain;
  background: transparent; border-radius: 0; box-shadow: none; }
.sf-cols-icons picture { display: block; width: 6rem; }
.sf-ps-square img { border-radius: 0; }
:is(.sf-ps-rounded, .sf-ps-shadow) img { border-radius: .75rem; }
.sf-ps-framed img { box-sizing: border-box; padding: .75rem .75rem 2.75rem; background-color: var(--paper);
  border: 1px solid var(--line); border-radius: 2px; }
html:not([data-theme^="a11y-"]) .sf-ps-shadow img { box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .18); }
html:not([data-theme^="a11y-"]) .sf-ps-framed img { background-color: #ffffff; box-shadow: 0 .6rem 1.75rem rgba(0, 0, 0, .18);
  transform: rotate(-1.5deg); }
html:not([data-theme^="a11y-"]) .sf-ps-framed li:nth-child(even) img { transform: rotate(1.5deg); }
.sfj-tone-dark { background: var(--ink); color: var(--paper); }
.sfj-tone-dark :is(h2, p) { color: inherit; }
.sfj-tone-dark a:not(.btn) { color: inherit; }
.sfj-tone-dark .btn { background: var(--paper); color: var(--ink); }
.sfj-split { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
.sfj-split img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sfj-split h2 { text-align: left; }
@media (min-width: 50rem) {
  .sfj-split { grid-template-columns: 1fr 1fr; }
  .sfj-split-right .sfj-split-media { order: 1; }
}

/* ---- where a posted item goes (2 Oct 2026) -------------------------
   Theme tokens only, so all six accessibility themes recolour it; one
   column at phone width; touch targets 44px. */
.ck-delivery { margin: 1.25rem 0; border: 1px solid var(--line); }
.ck-delivery legend { font-weight: 700; padding: 0 .4rem; color: var(--ink); }
.ck-dl-new, .ck-dl-file { display: grid; gap: .75rem; margin-top: .75rem; }
.ck-dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ck-field { display: grid; gap: .3rem; font-weight: 600; color: var(--ink); }
.ck-field input { width: 100%; min-height: 44px; border: 1px solid var(--control-line); border-radius: 9px;
                  padding: .55rem .75rem; background: var(--paper); color: var(--ink); font: inherit; }
.ck-dl-choice { display: flex; gap: .6rem; align-items: center; min-height: 44px; color: var(--ink); }
.ck-dl-choice input { width: 1.25rem; height: 1.25rem; flex: none; }
.ck-dl-lead { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 30rem) { .ck-dl-pair { grid-template-columns: 1fr; } }

/* ---- THE TABLE BLOCK (14 Oct 2026, OPEN_ITEMS 266; SPEC_STOREFRONT 4.2.1) ----
   RULES, NOT FILLS: no stripe and no tint anywhere, so every word in a table
   is var(--ink) or var(--ink-soft) on the page's own var(--paper) -- the pairs a11y.css's
   looks are measured on (AA, AAA in High Contrast) -- and High Contrast,
   whose second surface is white, loses nothing. Every colour a token; every
   size rem (the 44px target is the owner's rule, as everywhere). Cells wrap,
   never truncate. No !important and no font or spacing rule, so Dyslexia
   Friendly and Calm keep theirs (Dyslexia's left-aligned cells win over
   `num`'s end alignment, by design: its rule is the person's). The region
   scrolls sideways inside itself, never the page; it takes the focus ring.
   THE STICKY FIRST COLUMN (scroll mode, row headings only) sits on a solid
   var(--paper), never a translucent one, so reduced transparency needs nothing
   more; border-collapse is `separate` because a collapsed border on a
   sticky cell scrolls away from it in Chromium and Safari. */
.sf-tbl .tbl { max-width: 100%; overflow-x: auto; margin: 1rem 0 0; }
.sf-tbl .tbl:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sf-tbl table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; }
.sf-tbl caption { caption-side: top; text-align: start; font-weight: 700; color: var(--ink); padding: 0 0 .6rem; }
.sf-tbl th, .sf-tbl td { text-align: start; vertical-align: top; padding: .65rem .75rem; min-width: 6rem;
  border-bottom: 1px solid var(--line); color: var(--ink); white-space: normal; overflow-wrap: break-word; }
.sf-tbl thead th { vertical-align: bottom; font-weight: 700; border-bottom: 2px solid var(--ink); }
.sf-tbl tbody th { font-weight: 700; }
.sf-tbl .num { text-align: end; font-variant-numeric: tabular-nums; }
.sf-tbl :is(th, td).is-rec { border-inline: 2px solid var(--brand); }
.sf-tbl tr.is-rec > :is(th, td) { font-weight: 700; border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand); }
.sf-tbl .tag { display: inline-block; margin-inline-start: .35rem; padding: .05rem .4rem; border: 1px solid currentColor;
  border-radius: .25rem; font-size: .8rem; font-weight: 700; color: var(--ink); }
.sf-tbl .tbl-link a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.sf-tbl .tbl-scroll.tbl-heads :is(thead th:first-child, tbody th[scope="row"]) {
  position: sticky; inset-inline-start: 0; z-index: 1; background-color: var(--paper); border-inline-end: 1px solid var(--line); }
.sf-tbl .tbl-note { margin: .75rem 0 0; font-size: .95rem; color: var(--ink-soft); }
/* PHONE: STACK -- each row its own small block below 40rem, the table above. */
.sf-tbl .tbl-rows { display: none; }
.sf-tbl .tbl-rows ul { list-style: none; margin: 0; padding: 0; }
.sf-tbl .tbl-rows li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.sf-tbl .tbl-rows li.is-rec { border-inline-start: 4px solid var(--brand); padding-inline-start: .75rem; }
.sf-tbl :is(.tbl-rows-cap, .tbl-rows-head) { margin: 0 0 .4rem; font-weight: 700; color: var(--ink); }
.sf-tbl .tbl-rows dl { margin: 0; }
.sf-tbl .tbl-rows dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .25rem 0; }
.sf-tbl .tbl-rows dt { color: var(--ink-soft); }
.sf-tbl .tbl-rows dd { margin: 0; color: var(--ink); }
@media (max-width: 40rem) {
  .sf-tbl .tbl.tbl-stack { display: none; }
  .sf-tbl .tbl-rows { display: block; }
}
@media (prefers-reduced-transparency: reduce) {
  .sf-tbl .tbl-scroll.tbl-heads :is(thead th:first-child, tbody th[scope="row"]) { background-color: var(--paper); }
}
