/*
 * Stoei Core — website components ("Stoei CSS"). Load after tokens.css and
 * base.css; a site's theme file loads last.
 *
 * Page frame, type, buttons, forms, cards, chips, tabs, pagination, hero,
 * page heads, page sections and photo uploads, from the approved Louisville
 * Finds mockups (Nov 2026). Directory parts (listing pages, contact box and
 * bar, people, filter bar, area bands) are in recipes/directory.css.
 *
 * Rules: every look value comes from tokens.css (checked by
 * tools/check-css.php); no shadows; one heading scale; one spacing scale;
 * focus is always visible; nothing moves for visitors who turn motion off.
 * Class names start with "st-".
 */

/* ---------- 2. Base ---------- */

/* The footer always sits at the bottom, even on short pages. */
body { min-height: 100vh; display: flex; flex-direction: column; }

body > main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--st-font-display);
  font-weight: var(--st-weight-heading);
  line-height: var(--st-leading-heading);
  letter-spacing: var(--st-tracking-heading);
  margin: 0;
}
h1, .st-head__title { font-size: var(--st-text-h1); line-height: var(--st-leading-title); letter-spacing: var(--st-tracking-title); }
h2 { font-size: var(--st-text-h2); }
h3 { font-size: var(--st-text-h3); line-height: var(--st-leading-tight); }
p { margin: 0; }

a { text-decoration: none; }
a:hover, .st-prose a, .st-footer__credit { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { border-radius: var(--st-radius-focus); }


@media (prefers-reduced-motion: no-preference) {
  a, .st-card {
    transition: color var(--st-motion), background-color var(--st-motion), border-color var(--st-motion);
  }
}

/* ---------- 3. Layout ---------- */

.st-container { max-width: var(--st-container); margin-inline: auto; padding-inline: var(--st-gutter); }
.st-narrow { max-width: var(--st-measure); }
.st-results-page { max-width: var(--st-measure-wide); } /* the search page */
/* The search page: title, search box and what follows sit --st-search-space apart. */
.st-results-page > .st-stack { gap: var(--st-search-space); }
.st-results-page > .st-after-head { margin-top: var(--st-search-space); }
.st-reading { max-width: var(--st-measure-reading); }

/* Page sections: one rhythm everywhere, the same space above and below
   (--st-section-space: 64px, 48px on phones). Owner rule 2026-11-18. */
.st-page { padding-block: var(--st-page-top) var(--st-section-space); }
.st-page > * + * { margin-top: var(--st-section-space); }
/* The page head is part of the top, not a section: less space above it
   (--st-page-top) and after it (--st-head-space). Also after a breadcrumb
   that starts the page (listings) and a site's box around a page head
   (.st-head-wrap). An article page (.st-article) keeps the section gap. */
.st-page > :is(.st-head, .st-breadcrumb, .st-head-wrap) + * { margin-top: var(--st-head-space); }
.st-stack, .st-list, .st-head, .st-signup { display: flex; flex-direction: column; gap: var(--st-space-4); }
.st-stack--md { gap: var(--st-space-5); }
.st-stack--lg { gap: var(--st-space-6); }

.st-grid { display: grid; gap: var(--st-space-5); grid-template-columns: repeat(auto-fill, minmax(min(var(--st-grid-min, 260px), 100%), 1fr)); } /* a column is never wider than its box (0.71.1: 300px screens) */

.st-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--st-space-2) var(--st-space-6); margin-bottom: var(--st-space-6); }
.st-section-head a { font-weight: var(--st-weight-strong); }
/* Content right under a plain h2 (no section head row). */
.st-after-head { margin-top: var(--st-space-6); }
.st-section-head + .st-after-head { margin-top: 0; } /* the head row already leaves the gap */
/* Text flow: short lines of text in a block (.st-flow, or straight inside an
   .st-after-head) sit --st-flow-space apart, and a row of chips or buttons
   after text gets --st-flow-to-actions. Only text elements take part, so
   cards, lists, tabs and forms keep their own spacing; .st-prose, stacks
   and forms that are also .st-after-head keep theirs. */
:is(.st-flow, .st-after-head:not(.st-prose, .st-stack, .st-form)) > :is(p, h2, h3, h4) + :is(p, h2, h3, h4) { margin-top: var(--st-flow-space); }
:is(.st-flow, .st-after-head:not(.st-prose, .st-stack, .st-form)) > :is(p, h2, h3, h4) + :is(.st-chips, .st-actions) { margin-top: var(--st-flow-to-actions); }

/* ---------- 4. Text pieces ---------- */

.st-lead { font-size: var(--st-text-lead); color: var(--st-color-text-muted); max-width: var(--st-measure-reading); }
.st-muted { color: var(--st-color-text-muted); }
.st-small { font-size: var(--st-text-small); }
.st-eyebrow { font-size: var(--st-text-label); font-weight: var(--st-weight-strong); letter-spacing: var(--st-tracking-label); text-transform: uppercase; color: var(--st-color-accent-text); }

.st-prose { font-size: var(--st-text-prose); line-height: var(--st-leading-prose); }
.st-prose > * + * { margin-top: var(--st-space-6); }
.st-prose h2 { margin-top: var(--st-space-9); }
.st-prose h3 { margin-top: var(--st-space-7); }
/* What starts a prose block has no space above it: the section or page
   around it sets that gap, so a first heading does not add its own on top. */
.st-prose > :first-child { margin-top: 0; }
.st-prose ul, .st-prose ol { padding-left: 1.3em; }
.st-prose li + li { margin-top: var(--st-space-2); }
.st-prose blockquote { margin-inline: 0; padding-left: var(--st-space-5); border-left: 3px solid var(--st-color-line); color: var(--st-color-text-muted); }
.st-prose figure { margin-inline: 0; }
.st-prose figcaption { margin-top: var(--st-space-3); font-size: var(--st-text-caption); color: var(--st-color-text-muted); }
.st-prose img { border-radius: var(--st-radius-card); }
/* Pictures inside the text (Stoei Markdown ![](media:id)): full text width, never wider. */
.st-picture img { display: block; width: 100%; height: auto; }
/* Tables inside the text use the shared table part, .st-table in controls.css. */

/* ---------- 5. Page frame: header, menu, footer, breadcrumb ---------- */

.st-header, .st-footer, .st-tone--band { background: var(--st-color-band); color: var(--st-color-on-band); } /* .st-tone--band: a page section on the dark band */
.st-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-4) var(--st-space-7); padding-block: var(--st-space-4); }
.st-logo { font-family: var(--st-font-display); font-weight: 700; font-size: var(--st-text-logo); letter-spacing: var(--st-tracking-heading); color: var(--st-color-on-band); white-space: nowrap; }
.st-logo:hover { text-decoration: none; color: var(--st-color-on-band); }
.st-logo__glow { color: var(--st-color-band-accent); }
.st-header__actions { display: flex; gap: var(--st-space-2); margin-left: auto; }

.st-nav { flex: 1 1 auto; }
.st-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-1) var(--st-space-6); font-weight: 500; font-size: var(--st-text-5); }
/* Buttons in the menu (.st-btn) keep their own colours and size; only plain menu links take the band look. */
.st-nav a:not(.st-btn) { color: var(--st-color-on-band); display: inline-block; padding-block: var(--st-space-2); }
.st-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--st-color-band-accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Search bar next to the logo (approved mockup docs/mockups/header-search/, Option B).
   Computers: logo, wide search bar and theme switch on top, the menu on a second
   row under a thin line. Phones: see the 959px block below. */
.st-hsearch {
  display: flex; align-items: center; gap: var(--st-space-1);
  height: var(--st-touch); padding: var(--st-space-1) var(--st-space-1) var(--st-space-1) var(--st-space-5);
  background: var(--st-color-surface); border-radius: var(--st-radius-pill);
  flex: 1 1 auto; max-width: 560px; min-width: 0;
}
.st-hsearch input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent;
  font: inherit; font-size: var(--st-text-5); color: var(--st-color-text); outline: none;
}
.st-hsearch input::placeholder { color: var(--st-color-text-muted); opacity: 1; }
.st-hsearch button {
  flex: none; width: 36px; height: 36px; border: 0; border-radius: var(--st-radius-pill);
  background: var(--st-color-accent); color: var(--st-color-on-accent); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-hsearch button:hover { background: var(--st-color-accent-hover); }
@media (min-width: 960px) {
  .st-header__inner:has(.st-hsearch) { row-gap: 0; padding-bottom: 0; }
  .st-hsearch ~ .st-nav { order: 3; flex-basis: 100%; margin-top: var(--st-space-3); border-top: var(--st-line-width) solid color-mix(in srgb, var(--st-color-on-band) 18%, transparent); padding-block: var(--st-space-1); }
}

.st-menu-btn { display: none; }
/* Menu icon becomes a cross while the menu is open. */
.st-menu-btn .st-menu-btn__close, .st-menu-btn[aria-expanded="true"] .st-menu-btn__open { display: none; }
.st-menu-btn[aria-expanded="true"] .st-menu-btn__close { display: block; }

/* Below 960px (phones and tablets) the menu folds into a Menu button. Only when the
   menu script has run (.st-js); without it the menu just wraps. */
@media (max-width: 959px) {
  /* Logo and buttons share one row on phones. */
  .st-header__inner { column-gap: var(--st-space-3); flex-wrap: wrap; }
  .st-js .st-menu-btn { display: inline-flex; }
  .st-js .st-nav { order: 3; flex-basis: 100%; }
  .st-js .st-nav:not(.is-open) { display: none; }
  .st-js .st-nav ul { flex-direction: column; gap: 0; padding-bottom: var(--st-space-2); }
  .st-js .st-nav a:not(.st-btn) { display: block; padding-block: var(--st-space-3); }
  /* The search bar gets its own full-width row under the logo row. */
  .st-hsearch { order: 2; flex: 1 1 100%; max-width: none; height: var(--st-control-height); }
  .st-hsearch button { width: 40px; height: 40px; }
}

.st-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--st-space-6); padding-block: var(--st-space-8); font-size: var(--st-text-small); }
.st-footer .st-logo { font-size: var(--st-text-9); }
.st-footer__tagline { opacity: 0.85; margin-top: var(--st-space-2); }
.st-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-2) var(--st-space-6); }
.st-footer a { color: var(--st-color-on-band); }
.st-footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--st-space-2) var(--st-space-6); opacity: 0.8; font-size: var(--st-text-caption); }

.st-breadcrumb, .st-card__line, .st-steps__note, .st-sticky__line { font-size: var(--st-text-small); color: var(--st-color-text-muted); }
.st-breadcrumb ol, .st-tabs ul, .st-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-2); }
.st-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: var(--st-space-2); }
.st-breadcrumb a { color: var(--st-color-text-muted); }

/* ---------- 6–7. Buttons and forms ----------
   Buttons, fields, field messages, .st-actions and .st-errors are in
   controls.css (shared with apps). Website-only form parts below. */

.st-form { display: flex; flex-direction: column; gap: var(--st-space-6);
  --st-button-wrap: normal; } /* a form's button may take two lines when the form has no room for one (0.70.1: "Email me a sign-in link" pushed a 300px phone sideways) */
.st-panel { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); padding: var(--st-space-7); }
.st-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-5); }
.st-fieldset legend { padding: 0; margin-bottom: var(--st-space-4); font-family: var(--st-font-display); font-size: var(--st-text-10); font-weight: var(--st-weight-heading); }
.st-tip { border: var(--st-line-width) solid var(--st-color-accent); background: var(--st-color-featured); border-radius: var(--st-radius-control); padding: var(--st-space-3) var(--st-space-4); font-size: var(--st-text-small); margin: 0; }
.st-tip a { font-weight: var(--st-weight-strong); }
.st-tip[hidden] { display: none; }
/* Words only needed when the page's script isn't running. */
.st-js .st-nojs-only { display: none; }
/* Spam trap on visitor forms: off screen, never seen or tabbed to by people. */
.st-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* What replaces a one-shot form once it's sent. */
.st-success { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); padding: var(--st-space-8); display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-success h2, .st-success h3 { font-size: var(--st-text-box-title); }

/* ---------- 8. Callout ---------- */

.st-callout { background: var(--st-color-sunk); border-radius: var(--st-radius-big); padding: var(--st-space-8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--st-space-6);--st-button-wrap: normal; } /* its button may take two lines when the box has no room for one (0.73.6) */
.st-callout__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-callout h2 { font-size: var(--st-text-12); }

/* =====================================================================
 * Part 2 of 4: cards and listing parts.
 * One link per card (its title). That link stretches over the whole
 * card, so the card is clickable without repeating the link for
 * screen readers.
 * ===================================================================== */

/* ---------- 9. Icons and photo boxes ---------- */

.st-icon { flex: none; display: inline-block; vertical-align: -2px; }

.st-photo { position: relative; overflow: hidden; background: var(--st-color-placeholder); color: var(--st-color-on-placeholder); }
.st-photo--4x3  { aspect-ratio: 4 / 3; }
.st-photo--16x9 { aspect-ratio: 16 / 9; }
.st-photo--21x9 { aspect-ratio: 21 / 9; }
.st-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-photo--empty { display: flex; align-items: center; justify-content: center; }

/* ---------- 10. Card basics ---------- */

.st-card { position: relative; background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); overflow: hidden; display: flex; flex-direction: column; }
.st-card:hover, .st-card:focus-within { border-color: var(--st-color-accent); }
.st-card__body { padding: var(--st-space-5) var(--st-space-5) var(--st-space-6); display: flex; flex-direction: column; gap: var(--st-space-2); flex: 1; }
.st-card__title { font-family: var(--st-font-display); font-size: var(--st-text-card-title); font-weight: var(--st-weight-heading); line-height: var(--st-leading-tight); margin: 0; overflow-wrap: anywhere; } /* a word longer than the card's line breaks inside the card, and never sets how narrow the card can get (0.72.1: "Surfboards" beside a search result's photo ran past its border at 300 wide) */
.st-card__title--lg { font-size: var(--st-text-11); }
.st-card__title a { color: var(--st-color-text); }

/* The title link covers the whole card. */
.st-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.st-card__link:focus-visible { outline: none; }
.st-card__link:hover { text-decoration: none; }

/* Area and opening hours under a card. They follow the title with the card's
   normal gap; only the contact buttons (.st-card__contact) or a card's own
   link (.st-card__cta) are pushed to the bottom, so text starts at the top and
   buttons line up across a row (owner rule 2026-11-18). */
.st-meta { list-style: none; margin: 0; padding: var(--st-space-1) 0 0; display: flex; flex-wrap: wrap; gap: var(--st-space-1) var(--st-space-4); font-size: var(--st-text-small); color: var(--st-color-text-muted); }
.st-meta li { display: flex; align-items: center; gap: var(--st-space-2); }
.st-meta:not(:has(li)) { display: none; } /* hide an empty line */

/* ---------- 11. Card types ---------- */


/* Section card (home). */
.st-card--section { padding: var(--st-space-6); gap: var(--st-space-2); --st-button-wrap: normal; } /* a button here may take two lines when the card has no room for one (0.73.3: "Register my interest" kept the card, and the page, 313px wide at 300) */
.st-card__cta { margin-top: auto; padding-top: var(--st-space-2); color: var(--st-color-accent-text); font-weight: var(--st-weight-strong); font-size: var(--st-text-small); display: flex; align-items: center; gap: var(--st-space-2); }


/* Article card: no border, photo rounded on its own. */
.st-card--article { background: transparent; border: 0; border-radius: 0; overflow: visible; gap: var(--st-space-3); }
.st-card--article .st-photo { border-radius: var(--st-radius-card); }
.st-card--article:hover .st-card__title a { color: var(--st-color-accent-text); }
.st-card--article .st-card__title { line-height: 1.25; }

/* Search result row. */
.st-card--result { flex-direction: row; align-items: center; gap: var(--st-space-5); padding: var(--st-space-4); }
.st-card__photo { flex: none; width: 120px; }
.st-card__photo .st-photo { border-radius: var(--st-radius-control); }
.st-card--result .st-card__body { padding: 0; gap: var(--st-space-1); min-width: 0; }
.st-card--result .st-card__title { font-size: var(--st-text-9); line-height: 1.25; }
@media (max-width: 480px) { .st-card__photo { width: 88px; } }
/* A narrow result card (its inside under 16rem: a 300px screen; 284px and more from 360 up) gives its name more room: a smaller
   photo and name, so a long word ("Waterproofing", "Surfboards") stays whole (0.72.1). */
.st-card--result { container-type: inline-size; }
@container (max-width: 16rem) {
  .st-card--result .st-card__photo { width: var(--st-space-9); }
  .st-card--result .st-card__title { font-size: var(--st-text-7); }
}


/* ---------- 12. Card grids ---------- */

.st-grid--sections { --st-grid-min: 240px; grid-template-columns: repeat(auto-fit, minmax(min(var(--st-grid-min), 100%), 1fr)); }
.st-grid--articles { --st-grid-min: 300px; }
/* Lists used as grids: no bullets. :where() keeps this weak so spacing classes win. */
:where(ul.st-grid, ol.st-grid, ul.st-list, ol.st-list, ul.st-submenu__panel) { list-style: none; margin: 0; padding: 0; }
.st-grid > li, .st-list > li, .st-jump { display: flex; flex-direction: column; }
.st-grid > li > .st-card, .st-list > li > .st-card { flex: 1; }
/* Masonry (0.23.0; Stoei CMS Design › Archive layout): CSS columns, no script.
   Cards flow down each column, then on to the next, so what you see, the Tab
   key and screen readers follow one order. Each card is only as tall as its
   content, so buttons sit straight under the text. A real photo keeps its own
   shape (its width and height attributes reserve the space, so nothing jumps);
   an empty photo box keeps the card's set shape. Phones get one column, as the
   column width never fits twice. */
.st-grid--masonry { display: block; columns: var(--st-grid-min, 260px); column-gap: var(--st-space-5); }
.st-grid--masonry > li { display: block; break-inside: avoid; margin-bottom: var(--st-space-5); }
.st-grid--masonry .st-photo:not(.st-photo--empty) { aspect-ratio: auto; }
.st-grid--masonry .st-photo:not(.st-photo--empty) img { height: auto; }

/* A row to swipe (0.74.0; Stoei CMS Auto-filled list › On phones): on phones the cards sit side by side,
   the next one showing at the edge, and snap into place. Wider screens keep the grid. --st-swipe-card: a card's width. */
@media (max-width: 640px) {
  :is(.st-grid, .st-acards).st-grid--swipe { min-width: 0; inline-size: 100%; contain: inline-size; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: var(--st-swipe-card, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--st-space-2) var(--st-space-3) 0; }
  .st-grid--swipe > li { scroll-snap-align: start; }
}

/* =====================================================================
 * Part 3 of 4: chips, filter bar, tabs, pagination.
 * All plain links and a GET form: they work without JavaScript, and every
 * filtered view has its own address.
 * ===================================================================== */

/* ---------- 13. Chips ---------- */

.st-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-3); }
.st-chip {
  display: inline-flex; align-items: center; gap: var(--st-space-2); border-radius: var(--st-radius-pill);
  font-size: var(--st-text-small); font-weight: var(--st-weight-strong); color: var(--st-color-text); text-decoration: none;
}
.st-chip:hover { text-decoration: none; color: var(--st-color-text); }
.st-chip--tag { min-height: var(--st-control-height-sm); padding: 0 var(--st-space-4); background: var(--st-color-sunk); }
.st-chip--tag:hover { background: color-mix(in srgb, var(--st-color-sunk) 80%, var(--st-color-accent)); }
.st-chip--plain:hover { background: var(--st-color-sunk); } /* not a link */
.st-chip--outline { min-height: var(--st-touch); padding: 0 var(--st-space-5); border: var(--st-line-width) solid var(--st-color-line); background: var(--st-color-surface); font-weight: 500; }
.st-chip--outline:hover { border-color: var(--st-color-accent); }
/* A chip as a button (a choice of one, e.g. a time frame: Stoei CMS live numbers); the chosen one has aria-pressed="true". */
button.st-chip { margin: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
.st-chip--outline[aria-pressed="true"] { background: var(--st-chip-on-fill); border-color: var(--st-chip-on-fill); color: var(--st-chip-on-text); font-weight: var(--st-weight-strong); }
.st-chip--outline[aria-pressed="true"]:hover { color: var(--st-chip-on-text); }
.st-chip--remove { min-height: var(--st-control-height-sm); padding: 0 var(--st-space-3) 0 var(--st-space-4); background: var(--st-color-sunk); font-weight: 500; }
.st-chip--remove:hover { background: color-mix(in srgb, var(--st-color-sunk) 80%, var(--st-color-accent)); }

/* ---------- 15. Tabs ---------- */

.st-tab {
  display: inline-flex; align-items: center; gap: var(--st-space-2); min-height: var(--st-touch); padding: 0 var(--st-space-4);
  border-radius: var(--st-radius-pill); border: var(--st-line-width) solid var(--st-color-line); background: var(--st-color-surface);
  color: var(--st-color-text); font-size: var(--st-text-small); font-weight: var(--st-weight-strong); text-decoration: none;
}
.st-tab:hover, .st-pager-link:hover { border-color: var(--st-color-accent); color: var(--st-color-text); text-decoration: none; }
.st-tab[aria-current="page"], .st-pager-link[aria-current="page"] { background: var(--st-color-accent); border-color: var(--st-color-accent); color: var(--st-color-on-accent); }

/* ---------- 16. Pagination ---------- */

.st-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--st-space-2); }
.st-pager-link {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--st-space-2);
  min-width: var(--st-touch); height: var(--st-touch); padding: 0 var(--st-space-2); border-radius: var(--st-radius-control);
  border: var(--st-line-width) solid var(--st-color-line); background: var(--st-color-surface); color: var(--st-color-text); font-weight: var(--st-weight-strong); text-decoration: none;
}
.st-pager-link--wide { padding: 0 var(--st-space-4); }
.st-pager-link--gap { border-color: transparent; background: transparent; min-width: 24px; color: var(--st-color-text-muted); }
.st-pagination__where { display: none; }
/* Small phones: Previous, "Page 5 of 12", Next on one line. Arrows only;
   their labels still say "Previous page" and "Next page". */
@media (max-width: 480px) {
  .st-pagination__num { display: none; }
  .st-pagination__where { display: flex; align-items: center; padding: 0 var(--st-space-3); font-weight: var(--st-weight-strong); }
  .st-pager-link--wide { padding: 0; width: var(--st-touch); }
  .st-pager-link__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* =====================================================================
 * Part 4 of 4: page parts.
 * (d1) page tops and bands: hero, search box, page heads, wide photo,
 * "nothing found" box. (d2) listing page and forms follow.
 * ===================================================================== */

/* ---------- 17. Hero (home page top) ---------- */

.st-hero { background: var(--st-color-band); color: var(--st-color-on-band); padding-block: var(--st-section-space); }
.st-hero .st-eyebrow { color: var(--st-color-band-accent); }
.st-hero__title { font-size: var(--st-text-hero); line-height: 1.05; letter-spacing: var(--st-tracking-title); max-width: 820px; color: var(--st-color-on-band); }
.st-hero__lead { font-size: var(--st-text-lead); max-width: 620px; }
.st-hero .st-search { margin-top: var(--st-space-3); max-width: 860px; }

/* ---------- 18. Search box ---------- */

.st-search { background: var(--st-color-surface); border-radius: var(--st-radius-card); padding: var(--st-space-2); display: flex; flex-wrap: wrap; gap: var(--st-space-2); }
.st-search--outlined { border: var(--st-line-width) solid var(--st-color-line); }
.st-search__q, .st-search__area { min-height: var(--st-control-height-lg); font: inherit; color: var(--st-color-text); }
.st-search__q { flex: 2 1 260px; border: 0; background: transparent; padding: 0 var(--st-space-4); min-width: 0; }
.st-search__area { flex: 1 1 200px; border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-control); background: var(--st-color-surface); padding: 0 var(--st-space-4); }
.st-search .st-btn { flex: 0 0 auto; min-height: var(--st-control-height-lg); padding: 0 var(--st-space-7); }
/* Phones: each part gets the full width, the button too. */
@media (max-width: 600px) {
  .st-search > input, .st-search > select, .st-search > .st-btn { flex-basis: 100%; }
}

/* ---------- 19. Page heads ---------- */

/* Always the page-title size, whatever the heading level. */
.st-head__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-2) var(--st-space-4); font-size: var(--st-text-small); color: var(--st-color-text-muted); }
.st-head .st-chips { margin-top: var(--st-space-1); }
.st-head--article { max-width: var(--st-measure); margin-inline: auto; }
/* Breadcrumb close to the title (or the eyebrow over it): the head's 16px
   gap pulled up to --st-crumb-space (8px). Anything else between them, such
   as an ad, keeps the normal gap. */
.st-head > .st-breadcrumb + :is(.st-head__title, .st-eyebrow) { margin-top: calc(var(--st-crumb-space) - var(--st-space-4)); }

/* ---------- 20. Wide photo with caption (article top) ---------- */

.st-figure { margin: 0 auto; width: 100%; max-width: 1100px; }
.st-figure .st-photo { border-radius: var(--st-radius-big); }
.st-figure figcaption { max-width: var(--st-measure); margin: var(--st-space-3) auto 0; font-size: var(--st-text-caption); color: var(--st-color-text-muted); }

/* An article page: head, wide photo, then the text in a centered reading column. */
.st-article > * + * { margin-top: var(--st-space-7); }
.st-article > .st-reading { margin-inline: auto; margin-top: var(--st-space-8); }
/* Sections after an article: reading-width ones line up with the text; wide ones (bands, card grids) stay wide. */

/* ---------- 21. Nothing found ---------- */

.st-empty { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); padding: var(--st-space-7); display: flex; flex-direction: column; gap: var(--st-space-4); }
.st-empty h2, .st-empty h3 { font-size: var(--st-text-box-title); }
.st-empty__foot { margin-top: var(--st-space-2); padding-top: var(--st-space-4); border-top: var(--st-line-width) solid var(--st-color-line); color: var(--st-color-text-muted); }
.st-empty__foot a { font-weight: var(--st-weight-strong); }

/* Style guide only: full-width parts shown inside the page column. */
.st-demo { border-radius: var(--st-radius-big); overflow: hidden; }

/* ---------- 23. Forms that check as you go ---------- */

.st-form--compact { padding: var(--st-space-6); gap: var(--st-space-5); }
.st-field-row > .st-field--small { flex: 0 1 140px; }
.st-field input[type="file"] { padding: var(--st-space-3) var(--st-space-4); max-width: 100%; }
/* Fieldsets grow to fit their widest content by default; keep them in the column. */
.st-fieldset, .st-choices { min-width: 0; }
.st-field input[type="file"]::file-selector-button {
  margin-right: var(--st-space-3); padding: var(--st-space-2) var(--st-space-4); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-pill);
  background: var(--st-color-sunk); color: var(--st-color-text); font: inherit; font-weight: var(--st-weight-strong); cursor: pointer;
}
.st-field select:disabled { opacity: 0.6; cursor: not-allowed; }
.st-choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-1); }
.st-fieldset .st-choices legend, .st-fieldset .st-hours legend { padding: 0; margin-bottom: var(--st-space-2); font-family: var(--st-font-body); font-size: var(--st-text-small); font-weight: var(--st-weight-strong); }
.st-field input, .st-field select { min-width: 0; }
.st-success__title { font-family: var(--st-font-display); font-size: var(--st-text-box-title); font-weight: var(--st-weight-heading); line-height: var(--st-leading-tight); }
.st-success:focus:not(:focus-visible) { outline: none; }

/* What happens after a form is sent. */
/* A note above a form (e.g. "A note from us" on a private edit link). */
.st-note { background: var(--st-color-sunk); border-left: 4px solid var(--st-color-accent); border-radius: var(--st-radius-card); padding: var(--st-space-6); margin-bottom: var(--st-space-6); display: flex; flex-direction: column; gap: var(--st-space-2); }
.st-note p { margin: 0; }
.st-note__title { font-weight: var(--st-weight-strong); }
div.st-steps { background: var(--st-color-sunk); border-radius: var(--st-radius-card); padding: var(--st-space-6); display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-steps__title { font-weight: var(--st-weight-strong); }
div.st-steps ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--st-space-2); }

/* ---------- 24. Page sections (templates/<theme>/section-*.php) ---------- */

/* Text with photo: side by side, the photo drops under the text on narrow screens. */
.st-split { display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-space-7) var(--st-space-9); }
.st-split__text { flex: 1 1 420px; max-width: var(--st-measure-reading); }
.st-split__media { flex: 1 1 360px; }
.st-split__media .st-photo { border-radius: var(--st-radius-card); }
.st-split__frame { transform: rotate(var(--st-split-photo-turn)); border: var(--st-split-photo-frame); border-radius: var(--st-split-photo-radius); overflow: hidden; } /* Text with photo: the photo's frame (0.59.0) */
.st-split--left .st-split__media { order: -1; }
.st-split--solo .st-split__text { flex-basis: 100%; }

/* Questions and answers: each question opens to show its answer. */
.st-faq__list { border-top: var(--st-line-width) solid var(--st-color-line); }
.st-faq__item { border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--st-space-4); min-height: var(--st-control-height); padding-block: var(--st-space-4); font-weight: var(--st-weight-strong); font-size: var(--st-text-7); }
.st-faq__item summary::-webkit-details-marker { display: none; }
.st-faq__item summary::after { content: "+"; flex: none; font-size: var(--st-text-10); line-height: 1; color: var(--st-color-accent-text); }
.st-faq__item[open] summary::after { content: "−"; }
.st-faq__item summary:hover { color: var(--st-color-accent-text); }
.st-faq__answer { padding-bottom: var(--st-space-5); font-size: var(--st-text-6); line-height: 1.6; }
/* A Hero further down a page sits inside the page column, with rounded corners. */
.st-page > .st-hero { border-radius: var(--st-radius-big); }
/* A saved section's preview in the admin: just the section, with the page's side and top spacing. */
body.st-preview { min-height: 0; }
.st-preview .st-page { padding-block: var(--st-space-7); }

/* ---------- 25. Back to top (footer.php button, stoei.js part 5) ---------- */

/* A round button in the bottom right corner. It shows once the visitor has
   scrolled down a screen and a half, and fades in. On phones it sits above the
   contact bar on listing pages, so Call, Website and Directions stay free. */
.st-totop {
  position: fixed; right: var(--st-gutter); bottom: var(--st-space-5); z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--st-control-height); height: var(--st-control-height); padding: 0; border-radius: var(--st-radius-pill);
  background: var(--st-color-band); color: var(--st-color-on-band);
  border: var(--st-line-width) solid color-mix(in srgb, var(--st-color-on-band) 30%, transparent);
  cursor: pointer; opacity: 0; transform: translateY(8px); visibility: hidden; /* not clickable or reachable by Tab until shown */
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.st-totop.is-shown { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.st-totop:hover { background: color-mix(in srgb, var(--st-color-band) 85%, var(--st-color-on-band)); }
.st-totop[hidden] { display: none; }
@media (max-width: 720px) {
  .st-totop { right: var(--st-space-4); bottom: var(--st-space-4); width: var(--st-touch); height: var(--st-touch); }
}
/* phones: the floating buttons (back to top, and a site's corner note) sit in a strip the footer reserves, so they never lie on the last lines of text or on a footer link */
@media (max-width: 720px) {
  .st-footer { padding-block-end: calc(var(--st-touch) + var(--st-space-6)); }
}
@media (prefers-reduced-motion: reduce) { .st-totop { transition: none; transform: none; } }
@media print { .st-totop { display: none; } }

/* ---------- 26. Sticky buttons (Stoei CMS core part sticky-buttons.php; stoei.js part 12) ----------

   One bar at the bottom of the screen with the next step (mockups 1 to 3,
   approved by Jansie 19 Nov 2026). Phones (720px and narrower): always
   there, at most three buttons sharing the width, icon above the word, an
   after-hours line above them. No JavaScript needed. Wide screens: the site's
   script shows it (data-up) once the contact box has scrolled off, with the
   name and today's hours on the left and up to four buttons on the right, at
   site width; without the script, or with .st-sticky--phones, there is none.
   The page keeps matching space at the bottom, and focus never hides behind
   it (scroll-padding-bottom). No safe-area padding (see the contact bar in
   recipes/directory.css). */
:root {
  --st-sticky-height: 72px;          /* phones: the bar with one row of buttons */
  --st-sticky-height-tall: 100px;    /* phones: with the "Calls from" line above */
  --st-sticky-height-wide: 80px;     /* wide screens */
  --st-sticky-button-height: var(--st-contact-bar-button-height, 56px); /* phones; the same as the contact bar's */
  --st-sticky-article-button-height: 48px; /* phones: the one article button, beside the name */
}
.st-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--st-color-surface); border-top: var(--st-line-width) solid var(--st-color-line);
  transform: translateZ(0); /* own layer: steadier while the browser's address bar slides away */
}
.st-sticky[hidden] { display: none; }
.st-sticky__inner { display: flex; align-items: center; gap: var(--st-space-4); padding-block: var(--st-space-2); }
.st-sticky__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
.st-sticky__name { font-weight: var(--st-weight-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sticky__from { margin: 0; font-size: var(--st-text-small); color: var(--st-color-text-muted); }
.st-sticky__from[hidden], .st-sticky__over { display: none; }
.st-sticky__buttons { display: flex; gap: var(--st-space-3); min-width: 0; }
.st-sticky__buttons .st-btn[hidden] { display: none; }
@media (max-width: 720px) {
  .st-sticky__inner, .st-contact-bar--sticky:has(> .st-contact-bar__from:not([hidden])) { flex-wrap: wrap; row-gap: var(--st-space-1); }
  .st-sticky__info, .st-sticky__wide { display: none; }
  .st-sticky__from { flex: 1 0 100%; text-align: center; }
  .st-sticky__buttons { flex: 1 1 100%; gap: var(--st-space-2); }
  /* Also the listing contact bar on phones (recipes/directory.css), so the two look the same. */
  .st-sticky__buttons .st-btn, .st-contact-bar--sticky .st-btn {
    flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px;
    min-height: var(--st-sticky-button-height); padding: var(--st-space-1) var(--st-space-2); font-size: var(--st-text-caption);
  }
  .st-sticky__buttons .st-btn span, .st-contact-bar--sticky .st-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  body:has(.st-sticky:not([hidden])) { padding-bottom: var(--st-sticky-height); }
  body:has(.st-sticky:not([hidden]) .st-sticky__from:not([hidden])) { padding-bottom: var(--st-sticky-height-tall); }
  html:has(.st-sticky:not([hidden])) { scroll-padding-bottom: var(--st-sticky-height-tall); }
  body:has(.st-sticky:not([hidden])) .st-totop { bottom: calc(var(--st-sticky-height) + var(--st-space-3)); }
  body:has(.st-sticky:not([hidden]) .st-sticky__from:not([hidden])) .st-totop { bottom: calc(var(--st-sticky-height-tall) + var(--st-space-3)); }
}
@media (min-width: 721px) {
  .st-sticky:not([data-up]), .st-sticky--phones, .st-sticky__from { display: none; }
  .st-sticky__buttons { flex: 0 1 auto; }
  .st-sticky__buttons .st-btn { white-space: nowrap; }
  body:has(.st-sticky[data-up]:not([hidden])) { padding-bottom: var(--st-sticky-height-wide); }
  html:has(.st-sticky[data-up]:not([hidden])) { scroll-padding-bottom: var(--st-sticky-height-wide); }
  body:has(.st-sticky[data-up]:not([hidden])) .st-totop { bottom: calc(var(--st-sticky-height-wide) + var(--st-space-3)); }
}
/* Articles (mockups 4 to 6, approved by Jansie 19 Nov 2026): one button, with
   the listing's name and "Listing in this article" beside it, on phones too.
   It needs the core script on every screen (data-sticky-js): it shows once the
   top photo has scrolled off (data-sticky-after) and goes once the end button
   or the "Listing mentioned" card is on screen (data-sticky-watch). Without
   the script there is no bar and the button at the end of the article works.
   At reading width on wide screens. */
.st-sticky--js:not([data-up]) { display: none; }
.st-sticky--article .st-sticky__inner { max-width: var(--st-measure-reading); }
/* a page's bar (Stoei CMS 4.82.0): the article's one-button look, at the site's full width, the button at its right edge */
.st-sticky--page .st-sticky__inner { max-width: none; }
.st-sticky--article .st-sticky__buttons { flex: 0 0 auto; }
.st-sticky--article .st-sticky__buttons .st-btn { white-space: nowrap; }
/* The button at the end of an article (Stoei CMS part article-button.php): long wording wraps on narrow screens. */
.st-article-end .st-btn { white-space: normal; max-width: 100%; text-align: center; padding-block: var(--st-space-2); }
/* A plain link (no listing name beside it): the button on the right, or across the whole bar on phones. */
.st-sticky--article .st-sticky__buttons:only-child { margin-left: auto; }
@media (max-width: 720px) {
  .st-sticky--article .st-sticky__inner { flex-wrap: nowrap; }
  .st-sticky--article .st-sticky__info { display: flex; }
  .st-sticky--article .st-sticky__buttons { flex: 0 1 auto; }
  .st-sticky--article .st-sticky__buttons .st-btn { flex: 0 1 auto; flex-direction: row; gap: var(--st-space-2); min-height: var(--st-sticky-article-button-height); padding: var(--st-space-2) var(--st-space-4); font-size: var(--st-text-small); }
  .st-sticky--article .st-sticky__line { font-size: var(--st-text-caption); }
  .st-sticky--article .st-sticky__buttons:only-child, .st-sticky--article .st-sticky__buttons:only-child .st-btn { flex: 1 1 auto; }
}
/* data-up is set by the core script: on wide screens, and on articles on every screen. */
@media (prefers-reduced-motion: no-preference) {
  .st-sticky[data-up] { animation: st-sticky-up 0.2s ease-out; }
}
@keyframes st-sticky-up { from { transform: translateY(100%); } to { transform: translateZ(0); } }
@media print { .st-sticky { display: none; } }

/* Photo boxes on visitor forms (Media step 4, approved mockup docs/mockups/media/form.html).
   Without JavaScript they are plain file boxes; stoei.js part 7 turns them into previews with ×. */
.st-fieldset__hint { margin-top: calc(var(--st-space-2) * -1); font-size: var(--st-text-small); color: var(--st-color-text-muted); }
.st-upload, .st-nl-extra { display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-upload__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--st-space-3); grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); }
.st-upload__list:empty { display: none; }
.st-upload__item { border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-control); overflow: hidden; background: var(--st-color-surface); display: flex; flex-direction: column; min-width: 0; }
.st-upload__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--st-color-placeholder); }
.st-upload__item--logo { max-width: 200px; }
.st-upload__item--logo img { aspect-ratio: 1 / 1; object-fit: contain; padding: var(--st-space-2); background: var(--st-color-sunk); }
.st-upload__item.is-removed img { opacity: 0.35; }
.st-upload__info { padding: var(--st-space-2) var(--st-space-3); display: flex; align-items: center; gap: var(--st-space-2); font-size: var(--st-text-caption); min-height: var(--st-control-height-lg); }
.st-upload__info span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--st-color-text-muted); }
.st-upload__info:has(.st-choice:not([hidden])) { flex-wrap: wrap; }
.st-upload__info:has(.st-choice:not([hidden])) span { flex-basis: 100%; }
.st-upload__info .st-choice { min-height: var(--st-control-height-sm); gap: var(--st-space-2); font-weight: 400; }
.st-upload__info .st-choice input { width: 18px; height: 18px; }
.st-upload__remove { flex: none; min-width: 36px; min-height: var(--st-control-height-sm); border-radius: var(--st-radius-pill); border: var(--st-line-width) solid var(--st-color-line); background: var(--st-color-surface); color: var(--st-color-text); font: inherit; font-size: var(--st-text-7); line-height: 1; cursor: pointer; }
.st-upload__remove:hover { border-color: var(--st-color-accent); }
.st-upload__add { border: 2px dashed var(--st-color-line); border-radius: var(--st-radius-control); background: var(--st-color-sunk); color: var(--st-color-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--st-space-1); min-height: 120px; padding: var(--st-space-3); text-align: center; font-weight: var(--st-weight-strong); font-size: var(--st-text-small); cursor: pointer; }
.st-upload__add:hover { border-color: var(--st-color-accent); }
.st-upload__add svg { color: var(--st-color-accent); }
.st-upload__add small { font-weight: 400; color: var(--st-color-text-muted); font-size: var(--st-text-caption); }
.st-upload__add[hidden], .st-upload [hidden] { display: none; }
.st-fieldset legend .st-field__optional { font-family: var(--st-font-body); font-size: var(--st-text-small); }

/* "More details": fields made in the admin, label and value (fields_details()). One column on phones. */
.st-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--st-space-2) var(--st-space-6); margin: 0; font-size: var(--st-text-small); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); background: var(--st-color-surface); padding: var(--st-space-4); max-width: 62ch; }
.st-details dt { color: var(--st-color-text-muted); }
.st-details dd, .st-receipt dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .st-details { grid-template-columns: minmax(0, 1fr); gap: 2px; } .st-details dd + dt { margin-top: var(--st-space-2); } }

/* ---------- 26. Sign-up box and "All" tick lists (Stoei Newsletter, approved mockup
   louisville-finds docs/mockups/email-updates/, 16 Nov 2026; stoei.js part 8) ---------- */
.st-signup__row { display: flex; flex-wrap: wrap; gap: var(--st-space-3); align-items: flex-end; }
.st-signup__row .st-field { flex: 1 1 260px; min-width: 0; }
.st-signup__title { font-family: var(--st-font-display); font-size: var(--st-text-10); font-weight: var(--st-weight-heading); margin: 0; line-height: var(--st-leading-tight); }
.st-signup .st-choice, .st-topics .st-choice { align-items: flex-start; }
.st-signup .st-choice input, .st-topics .st-choice input, .st-nl-extra > .st-choice input, .st-works-at__line .st-icon { margin-top: 2px; flex: none; } /* a long label mustn't squeeze the box */
.st-signup > p, .st-signup .st-form > p { margin: 0; }
.st-topics { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-topics legend { font-weight: var(--st-weight-strong); margin-bottom: var(--st-space-2); padding: 0; }
.st-topics__all { padding-bottom: var(--st-space-2); margin-bottom: var(--st-space-1); border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-topics__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0 var(--st-space-4); }
.st-topics .st-choice:has(input:disabled) { color: var(--st-color-text-muted); }
.st-topics .st-choice input:disabled { opacity: 0.55; }
.st-topics__hint { margin: calc(var(--st-title-gap) - 2px) 0 0; } /* 8px under the choices with the fieldset's 2px gap */
.st-topics .st-field__msg { margin-top: var(--st-space-1); }
.st-nl-extra > .st-choice { align-items: flex-start; }
.st-nl-extra [hidden] { display: none; }
.st-nl-extra > div, .st-location { display: flex; flex-direction: column; gap: var(--st-space-2); }
.st-nl-extra p { margin: 0; }

/* Photo lightbox (Core 0.14.0). A photo grid's links ([data-lightbox] > a) open the
   photo big in a <dialog> made by the site's script; without the script each link
   simply opens the full-size photo. Follows the theme: a pale stage in light, a dark
   one in dark. No headings inside. */
.st-photo-link { display: block; border-radius: var(--st-radius-card); cursor: zoom-in; }
.st-photo-link .st-photo { border-radius: inherit; }
.st-photo-link img { transition: opacity 0.15s; }
.st-photo-link:hover img { opacity: 0.88; }
.st-lightbox {
  --st-lightbox-stage: light-dark(#F6F6F3, #0E0E0E);
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--st-lightbox-stage); color: var(--st-color-text);
  overscroll-behavior: contain;
}
.st-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.st-lightbox::backdrop { background: var(--st-color-backdrop); }
.st-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-3); padding: var(--st-space-3) var(--st-space-4); }
.st-lightbox__count { margin: 0; font-size: var(--st-text-small); font-variant-numeric: tabular-nums; color: var(--st-color-text-muted); padding-inline: var(--st-space-2); }
.st-lightbox__stage { position: relative; margin: 0; min-height: 0; display: grid; place-items: center; padding: 0 var(--st-space-4); touch-action: pan-y pinch-zoom; }
.st-lightbox__img { display: block; max-width: 100%; max-height: calc(100dvh - var(--st-lightbox-room, 200px)); width: auto; height: auto; object-fit: contain; border-radius: var(--st-radius-2); user-select: none; -webkit-user-drag: none; }
.st-lightbox__img[data-loading] { opacity: 0; }
.st-lightbox__caption { margin: 0 auto; max-width: 70ch; padding: var(--st-space-3) var(--st-space-4) 0; text-align: center; font-size: var(--st-text-small); color: var(--st-color-text); }
.st-lightbox__caption:empty { display: none; }
.st-lightbox__nav { display: flex; justify-content: center; gap: var(--st-space-3); padding: var(--st-space-3) var(--st-space-4) var(--st-space-4); }
.st-lightbox__btn {
  display: inline-flex; align-items: center; justify-content: center; width: var(--st-control-height); height: var(--st-control-height); padding: 0;
  border: var(--st-line-width) solid var(--st-color-line-strong); border-radius: var(--st-radius-full);
  background: var(--st-color-surface); color: var(--st-color-text); cursor: pointer;
}
.st-lightbox__btn:hover { border-color: var(--st-color-text); }
.st-lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-lightbox--one .st-lightbox__nav, .st-lightbox--one .st-lightbox__count { visibility: hidden; }
/* Wider screens: Previous and Next sit at the sides of the photo. */
@media (min-width: 720px) {
  .st-lightbox { --st-lightbox-room: 150px; }
  .st-lightbox__stage { padding: 0 calc(var(--st-control-height) + var(--st-space-4) * 2); }
  .st-lightbox__nav { padding: 0; display: contents; }
  .st-lightbox__prev, .st-lightbox__next { position: fixed; top: 50%; translate: 0 -50%; }
  .st-lightbox__prev { left: var(--st-space-4); }
  .st-lightbox__next { right: var(--st-space-4); }
  .st-lightbox[open] { grid-template-rows: auto minmax(0, 1fr) auto; padding-bottom: var(--st-space-5); }
}
@keyframes st-lightbox-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .st-lightbox[open] { animation: st-lightbox-in 0.18s ease-out; }
  .st-lightbox__img { transition: opacity 0.18s; }
}

/* ---------- 27. Account pages (Stoei Promote's My account, Core 0.24.0; approved mockups
   stoei-cms docs/mockups/promote-step3/, 1 to 8, Jansie 19 Nov 2026) ---------- */
/* Sign in: the intro beside the email box, which stays a readable width. */
.st-account-signin { align-items: flex-start; }
.st-account-signin .st-split__media { max-width: 480px; }
.st-account-signin h1 { margin: 0; }
/* A short list with a tick before each line. */
.st-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-2); }
.st-ticks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--st-space-3); }
.st-ticks li::before { content: "✓"; color: var(--st-color-ok); font-weight: var(--st-weight-strong); flex: none; }
/* A long ticked list in columns where there is room (0.72.0). Filled column by column, not row by row,
   so an item that wraps never leaves a hole beside a short one; it reads down each column. */
.st-ticks--cols { display: block; columns: var(--st-ticks-col); column-gap: var(--st-ticks-col-gap); }
.st-ticks--cols li { break-inside: avoid; padding-bottom: var(--st-space-2); }
.st-ticks--cols li:last-child { padding-bottom: 0; }
/* The account's top: title on the left, "Signed in as … · Sign out" on the right. */
.st-account-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--st-space-3) var(--st-space-6); margin-bottom: var(--st-space-5); }
.st-account-head h1 { margin: 0; }
.st-account-head__who { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--st-space-2); }
.st-page > :is(.st-account-head, .st-account-tabs) + * { margin-top: 0; } /* their own space below, not a section's */
.st-account-tabs { margin-bottom: var(--st-space-7); padding-bottom: var(--st-space-4); border-bottom: var(--st-line-width) solid var(--st-color-line); }
/* A box for a step that can't be undone (Delete my account). */
.st-danger-box { border: var(--st-line-width) dashed var(--st-color-bad); border-radius: var(--st-radius-card); padding: var(--st-space-6);--st-button-wrap: normal; } /* as .st-card--section */
.st-danger-box :is(h2, h3), .st-banner-row__text h3 { font-size: var(--st-text-box-title); margin: 0; }
.st-danger-box p { margin: 0; }
/* A small coloured tag on a card (Launching soon, Book now) is the shared .st-tag
   in controls.css (st-tag--info, --ok, --bad), in an .st-tags row. */

/* Payment pages (Core 0.25.0, Stoei Promote step 4): the dashed "Test payment" mark,
   the receipt's lines, and the small spinner on "Checking with Stripe". */
.st-test-mark { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--st-space-2); margin: 0; padding: var(--st-space-1) var(--st-space-3); border: 2px dashed var(--st-color-warn); border-radius: var(--st-radius-pill); color: var(--st-color-warn); font-size: var(--st-text-small); font-weight: var(--st-weight-strong); }
.st-receipt { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--st-space-1) var(--st-space-4); margin: 0; }
.st-receipt dt { color: var(--st-color-text-muted); }
.st-spinner { flex: none; display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--st-color-line); border-top-color: var(--st-color-text); }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .st-spinner { animation: st-spin 0.9s linear infinite; }
}
.st-wait-line { display: flex; align-items: center; gap: var(--st-space-3); margin: 0; }

/* ---------- 28. Banner ads (Stoei Promote step 5, Core 0.26.0; approved mockups
   stoei-cms docs/mockups/promote-step5/ 1 to 8 and promote-step3/ 11 to 17) ---------- */
/* One banner: a plain picture link, the picture whole (never cropped) on the
   background the advertiser chose. Twice as wide as tall; an exclusive banner
   shows its wide picture (six times as wide) once the banner is 720px wide. */
.st-banner { display: block; container-type: inline-size; border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-control); overflow: hidden; background: var(--st-color-surface); color: var(--st-color-text-muted); }
.st-banner--light { background: var(--st-banner-light); }
.st-banner--dark { background: var(--st-banner-dark); }
.st-banner__img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
.st-banner__img--wide { display: none; aspect-ratio: 6 / 1; }
@container (min-width: 720px) {
  .st-banner--exclusive .st-banner__img--narrow { display: none; }
  .st-banner--exclusive .st-banner__img--wide { display: block; }
}
.st-banner .st-banner__img[hidden], .st-banner__empty[hidden] { display: none; }
.st-banner__empty { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: var(--st-space-4); font-weight: var(--st-weight-strong); text-align: center; }
.st-banner:focus-visible, 
/* Previous / Next and dots under a row of banners that swipes (core.js part 4). */
.st-swipe-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-3); margin-top: var(--st-space-3); }
.st-swipe-nav[hidden] { display: none; }
.st-swipe-nav__btn { inline-size: var(--st-control-height-sm); block-size: var(--st-control-height-sm); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-pill); background: var(--st-color-surface); color: var(--st-color-text); font: inherit; font-size: var(--st-text-9); line-height: 1; cursor: pointer; }
.st-swipe-nav__btn:disabled { opacity: 0.4; cursor: default; }
.st-swipe-nav__dots { display: flex; gap: var(--st-space-2); }
.st-swipe-nav__dots span { inline-size: 8px; block-size: 8px; border-radius: var(--st-radius-pill); border: var(--st-line-width) solid var(--st-color-line); }
.st-swipe-nav__dots .is-on { background: var(--st-color-text); }

/* Choices drawn as boxes in a row (Where it shows, How long), with a small "2 free". */
.st-pick { display: flex; flex-wrap: wrap; gap: var(--st-space-2); }
.st-pick__item { display: inline-flex; align-items: center; gap: var(--st-space-2); min-height: var(--st-control-height-sm); padding: var(--st-space-2) var(--st-space-4); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-control); background: var(--st-color-surface); cursor: pointer; }
.st-pick__item:has(input:checked) { background: var(--st-color-featured); font-weight: var(--st-weight-strong); }
.st-pick__item input { accent-color: var(--st-color-accent); margin: 0; }
.st-pick__free { font-size: var(--st-text-small); font-weight: 400; color: var(--st-color-text-muted); }

/* Book a banner: the form, and beside it the price, Pay and how it will look (under it on narrow screens). */
.st-book { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--st-space-7); align-items: start; }
.st-book__side { display: flex; flex-direction: column; gap: var(--st-space-6); min-width: 0; }
.st-book__frame--phone { max-width: 340px; }
.st-book__preview { grid-column: 1 / -1; }
.st-book--one { grid-template-columns: minmax(0, 760px); }
.st-price { margin: 0; font-family: var(--st-font-display); font-size: var(--st-text-12); font-weight: var(--st-weight-heading); line-height: var(--st-leading-tight); }
.st-book [hidden] { display: none; }
@media (max-width: 880px) {
  .st-book { grid-template-columns: minmax(0, 1fr); }
}
/* On a phone the computers' preview would only show the phone's layout again. */
@media (max-width: 600px) {
  .st-book__wide-only { display: none; }
}

/* My account › Banners: one row per banner (picture, words, button), stacked on phones. */
.st-banner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-space-5); }
.st-banner-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: var(--st-space-5); align-items: start; background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-card); padding: var(--st-space-5); }
.st-banner-row--plain { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.st-banner-row__text { display: grid; gap: var(--st-space-3); align-content: start; min-width: 0; }
.st-banner-row__text > :first-child { justify-self: start; } /* the status tag stays its own size */
.st-banner-row__text p, .st-banner-row__text .st-note { margin: 0; }
.st-banner-row__nums { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-space-5); font-size: var(--st-text-small); }
.st-banner-row__nums b { display: block; font-family: var(--st-font-display); font-size: var(--st-text-9); }
.st-banner-row__actions { display: flex; flex-wrap: wrap; gap: var(--st-space-2); justify-content: flex-end; }
.st-banner-row__actions:not(:has(*)) { display: none; } /* nothing to do now: no empty space */
@media (max-width: 760px) {
  .st-banner-row, .st-banner-row--plain { grid-template-columns: minmax(0, 1fr); }
  .st-banner-row__actions { justify-content: flex-start; }
}

/* People (Stoei Promote step 6B): a round photo or initials, and a person beside it (Team rows, agent pages). */
.st-avatar { flex: none; display: inline-grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 50%; overflow: hidden; background: var(--st-color-sunk); color: var(--st-color-text); font-family: var(--st-font-display); font-weight: var(--st-weight-strong); font-size: var(--st-text-small); line-height: 1; }
.st-avatar img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.st-avatar--lg { inline-size: 96px; block-size: 96px; font-size: var(--st-text-9); }
.st-person { display: flex; align-items: center; gap: var(--st-space-4); min-width: 0; }
.st-person > div { display: grid; gap: var(--st-space-1); min-width: 0; }
.st-person p, .st-person h1, .st-person h3 { margin: 0; }


/* ============================ Page section kinds ============================
   Full-width bands with their own container, drawn by the CMS's section templates
   (templates/default/section-<kind>.php). Put them straight in <main>, not inside .st-page.
   Looks come from the section tokens in tokens.css. */

/* ---- Section, tone, head ---- */
.st-sec { border-bottom: var(--st-sec-rule); }
.st-sec__in { max-width: var(--st-container); margin-inline: auto; padding: var(--st-sec-pad) var(--st-gutter); display: flex; flex-direction: column; gap: var(--st-sec-gap); }
.st-sec--tight .st-sec__in { gap: var(--st-sec-gap-tight); }
.st-tone--surface { background: var(--st-color-surface); }
.st-tone--sunk { background: var(--st-color-sunk); } /* the light band (0.59.0) */
.st-sec--wave { position: relative; z-index: 1; margin-block: calc(var(--st-wave-size) * -1); -webkit-mask: var(--st-wave-mask); mask: var(--st-wave-mask); } /* wavy edges on a band; it overlaps the sections above and below by the wave's height */
.st-sec--wave > .st-sec__in { padding-block: calc(var(--st-sec-pad) + var(--st-wave-size)); }
.st-eyebrow__num { display: inline-block; margin-inline-end: var(--st-space-1); padding: var(--st-eyebrow-num-pad); border-radius: var(--st-radius-1); background: var(--st-eyebrow-num-fill); color: var(--st-eyebrow-num-text); }
.st-tone--band .st-eyebrow__num { --st-eyebrow-num-fill: var(--st-color-band-accent); --st-eyebrow-num-text: var(--st-color-band); }
.st-sec__head { display: flex; flex-direction: column; gap: var(--st-sec-head-gap); max-width: var(--st-sec-head-max); }
.st-sec__headrow { display: flex; flex-wrap: wrap; gap: var(--st-k4); justify-content: space-between; align-items: end; }
.st-eyebrow { margin: 0; font-family: var(--st-label-font); font-size: var(--st-text-3); font-weight: var(--st-label-weight); letter-spacing: var(--st-label-tracking); text-transform: var(--st-label-case); color: var(--st-color-accent-text); }
.st-tone--band .st-eyebrow { color: var(--st-color-band-accent); }
.st-tone--accent .st-eyebrow { color: var(--st-color-on-accent); }
.st-sec__title { margin: 0; font-size: var(--st-title-size); font-weight: var(--st-title-weight); line-height: var(--st-title-leading); font-stretch: var(--st-title-stretch); }
.st-sec__intro { margin: 0; font-size: var(--st-text-7); line-height: 1.6; color: var(--st-color-text-muted); }
.st-tone--band .st-sec__intro { color: var(--st-color-on-band-muted); }
.st-tone--accent .st-sec__intro { color: var(--st-color-on-accent); }
.st-link { font-weight: var(--st-weight-strong); text-decoration: underline; text-underline-offset: 4px; color: var(--st-color-text); }
.st-link:hover { color: var(--st-color-accent-text); }
.st-sec--beside .st-sec__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--st-k7); align-items: center; }
.st-sec--beside .st-sec__head { max-width: none; }
.st-sec--beside .st-link { align-self: flex-start; }
.st-sec--split .st-sec__in, .st-textbeside { /* .st-textbeside: Text beside its heading */  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: var(--st-k8); align-items: start; }
.st-sec--split .st-sec__head { max-width: none; }
.st-sec__text { display: flex; flex-direction: column; gap: var(--st-k5); font-size: var(--st-text-7); line-height: 1.6; }
.st-sec__text > p { margin: 0; }
.st-sec__text > p + p { color: var(--st-color-text-muted); }

/* ---- feature_grid ---- */
.st-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--st-grid-gap); margin: 0; padding: 0; list-style: none; }
.st-fgrid__item { position: relative; border-top: var(--st-frame-heavy) solid var(--st-color-text); padding-top: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k3); }
.st-num { font-family: var(--st-label-font); font-size: var(--st-text-2); font-weight: var(--st-label-weight); color: var(--st-color-accent-text); }
.st-item__title { margin: 0; font-size: var(--st-item-title-size); font-weight: var(--st-item-title-weight); line-height: var(--st-item-title-leading); font-stretch: var(--st-item-title-stretch); }
.st-item__text { margin: 0; font-size: var(--st-text-5); line-height: 1.55; color: var(--st-color-text-muted); }

/* ---- steps ---- */
ol.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border: var(--st-frame) solid var(--st-frame-color); background: var(--st-color-surface); }
ol.st-steps > li { padding: var(--st-cell-pad); display: flex; flex-direction: column; gap: var(--st-k3); border-right: 1px solid var(--st-color-line); border-bottom: 1px solid var(--st-color-line); }
.st-steps__num { font-family: var(--st-label-font); font-size: var(--st-num-size); font-weight: 600; color: var(--st-color-accent-text); line-height: 1; }
ol.st-steps--detail { display: flex; flex-direction: column; gap: var(--st-grid-gap); border: 0; background: none; }
ol.st-steps--detail > li { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; padding: 0; border: var(--st-frame) solid var(--st-frame-color); border-top: max(var(--st-bar), var(--st-frame)) solid var(--st-bar-color); border-radius: var(--st-radius-card); background: var(--st-color-bg); }
.st-steps__cell { padding: var(--st-cell-pad); display: flex; flex-direction: column; gap: var(--st-k3); border-right: 1px solid var(--st-color-line); }
.st-steps__cell:last-child { border-right: 0; }
.st-steps__label { font-family: var(--st-label-font); font-size: var(--st-text-1); font-weight: var(--st-label-weight); letter-spacing: var(--st-label-tracking); text-transform: uppercase; color: var(--st-color-text-muted); }
.st-steps__cell p { margin: 0; font-size: var(--st-text-6); line-height: 1.55; }

/* ---- checklist ---- */
.st-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--st-k2) var(--st-k5); font-family: var(--st-label-font); font-size: var(--st-text-3); }
.st-checks li { display: inline-flex; align-items: center; gap: var(--st-k2); }
.st-checks svg { flex: none; }
.st-strip { border: 1px solid var(--st-color-line-strong); background: var(--st-color-sunk); display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-k4) var(--st-k6); padding: var(--st-k5) var(--st-k6); }
.st-strip__title { margin: 0; font-family: var(--st-label-font); font-size: var(--st-text-2); font-weight: var(--st-label-weight); letter-spacing: var(--st-label-tracking); text-transform: var(--st-label-case); color: var(--st-color-accent-text); }

/* steps, detail layout: the step, what you do, what you get, in columns wide enough to read */
.st-steps__label--step { font-size: var(--st-text-3); color: var(--st-color-accent-text); text-transform: none; letter-spacing: 0; }
ol.st-steps .st-steps__title { margin: 0; font-size: var(--st-card-title-size); font-weight: var(--st-item-title-weight); font-stretch: var(--st-card-title-stretch); line-height: var(--st-item-title-leading); }

/* Backgrounds: what the kinds above take on a dark band or the accent band */
.st-tone--band :is(.st-item__text, .st-steps__cell p, .st-steps__label) { color: var(--st-color-on-band-muted); }
.st-tone--band :is(.st-num, .st-steps__num, .st-steps__label--step, .st-strip__title) { color: var(--st-color-band-accent); }
.st-tone--band .st-fgrid__item { border-top-color: var(--st-color-on-band); }
.st-tone--band :is(.st-steps, .st-steps > li, .st-steps__cell, .st-strip) { border-color: var(--st-color-on-band-muted); }
.st-tone--band :is(.st-steps, .st-steps--detail > li, .st-strip) { background: none; }
.st-tone--accent :is(.st-item__text, .st-num, .st-steps__num, .st-steps__label, .st-steps__label--step, .st-steps__cell p, .st-strip__title) { color: var(--st-color-on-accent); }
.st-tone--accent .st-fgrid__item { border-top-color: var(--st-color-on-accent); }
.st-tone--accent :is(.st-steps, .st-steps > li, .st-steps__cell, .st-strip) { border-color: var(--st-color-on-accent); }
.st-tone--accent :is(.st-steps, .st-steps--detail > li, .st-strip) { background: none; }

/* feature_grid, Look = Boxed cards (.st-fgrid--cards), darker text (--dark) or small (--sm): each block a box with a frame and a bar on top */
.st-fgrid--cards { gap: var(--st-k5); }
.st-fgrid--cards .st-fgrid__item { background: var(--st-color-surface); border: var(--st-frame) solid var(--st-frame-color); border-top: max(var(--st-bar), var(--st-frame)) solid var(--st-bar-color); border-radius: var(--st-radius-card); padding: var(--st-k5); }
.st-tone--surface .st-fgrid--cards .st-fgrid__item { background: var(--st-color-bg); }
.st-fgrid--cards .st-item__title, .st-tickbox__title { margin: 0; font-size: var(--st-box-title-size); font-weight: var(--st-item-title-weight); font-stretch: var(--st-card-title-stretch); line-height: var(--st-box-title-leading); }
.st-fgrid--cards .st-item__text { font-size: var(--st-text-body); }
.st-fgrid--dark .st-item__text { color: var(--st-color-text); }
.st-fgrid--sm .st-fgrid__item { border-color: var(--st-color-line); border-top-color: var(--st-bar-color); }
.st-fgrid--sm .st-item__title { font-size: var(--st-box-title-size-sm); line-height: var(--st-leading-heading); }
.st-fgrid--sm .st-item__text { font-size: var(--st-text-5); }
.st-sec:has(.st-fgrid--sm) .st-sec__in { gap: var(--st-sec-gap-tight); }

/* steps: the note under the steps (a small line, e.g. where the prices are) */
.st-steps__note p { margin: 0; font-size: var(--st-text-label); line-height: 1.5; }

/* checklist, Layout = Beside: the head on the left (.st-checksbeside, with .st-pricebeside below), a card of ticked rows on the right */
.st-checkcard { list-style: none; margin: 0; padding: 0; background: var(--st-color-surface); border: var(--st-frame) solid var(--st-frame-color); border-top: max(var(--st-bar), var(--st-frame)) solid var(--st-bar-color); border-radius: var(--st-radius-card); }
.st-checkcard li { display: flex; gap: var(--st-k3); align-items: flex-start; padding: var(--st-k4) var(--st-k5); border-bottom: 1px solid var(--st-color-line); font-size: var(--st-text-body); line-height: 1.45; }
.st-checkcard svg { flex: none; margin-top: var(--st-k1); color: var(--st-color-accent-text); }

/* checklist, Layout = Ticked list: a box with a title over a check mark and a line each, three columns wide, two on a tablet, one on a phone */
.st-tickbox { background: var(--st-color-surface); border: 1px solid var(--st-color-line); border-top: max(var(--st-bar-thin), 1px) solid var(--st-bar-color); border-radius: var(--st-radius-card); padding: var(--st-k6); display: flex; flex-direction: column; gap: var(--st-k5); }
.st-tickrow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--st-k3) var(--st-k6); }
.st-tickrow li { display: flex; gap: var(--st-k3); align-items: flex-start; font-size: var(--st-text-body); line-height: 1.4; }
.st-tickrow svg { flex: none; margin-top: 2px; color: var(--st-color-accent-text); }
.st-sec--checks-ticks .st-sec__in { padding-block: var(--st-k8); }
@media (max-width: 960px) { .st-tickrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-tickrow { grid-template-columns: minmax(0, 1fr); } .st-tickbox { padding: var(--st-k4); } }

/* ---- price_cards: tags (a row of price tags, usually beside the section head) ---- */
.st-tags { margin: 0; gap: 0; align-items: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: var(--st-frame-heavy) solid var(--st-color-text); border-radius: var(--st-radius-card); background: var(--st-color-bg); }
.st-tags > div { padding: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k2); border-right: 1px solid var(--st-color-line); border-bottom: 1px solid var(--st-color-line); border-top: var(--st-bar) solid var(--st-bar-color); }
.st-tags dt { display: flex; flex-direction: column; gap: var(--st-k1); }
.st-tags dd { margin: 0; display: flex; flex-direction: column; gap: var(--st-k1); }
.st-code:not(:has(> .st-code__text)) { display: inline; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.st-code { font-family: var(--st-label-font); font-size: var(--st-text-1); color: var(--st-color-text-muted); }
.st-tag-name { font-size: var(--st-text-8); font-weight: var(--st-item-title-weight); font-stretch: var(--st-item-title-stretch); line-height: 1.2; }
.st-price-note { font-family: var(--st-label-font); font-size: var(--st-text-2); line-height: 1.45; color: var(--st-color-text-muted); }
.st-price { font-family: var(--st-label-font); font-size: var(--st-text-12); font-weight: 600; line-height: 1.1; }


/* ---- cards: spec sheet, feature, outlined on a band, numbered with a link, plain ---- */
.st-pcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--st-pcard-min, 440px)), 1fr)); gap: var(--st-grid-gap); margin: 0; padding: 0; list-style: none; }
.st-pcard { position: relative; background: var(--st-color-surface); border: 1px solid var(--st-color-line-strong); border-top: max(var(--st-bar), 1px) solid var(--st-bar-color); border-radius: var(--st-radius-card); display: flex; flex-direction: column; }
.st-pcard__body { padding: var(--st-cell-pad) var(--st-cell-pad) var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k3); }
.st-pcard__title { margin: 0; font-size: var(--st-card-title-size); font-weight: var(--st-item-title-weight); font-stretch: var(--st-card-title-stretch); line-height: 1.1; }
.st-pcard__text { margin: 0; font-size: var(--st-text-6); line-height: 1.55; color: var(--st-color-text-muted); }
.st-pcard__text strong { color: var(--st-color-text); }
.st-pcard__text--plain { color: var(--st-color-text); }
.st-pcard__foot { padding: var(--st-k5) var(--st-cell-pad); border-top: 1px solid var(--st-color-line); margin-top: auto; }
.st-spec, .st-ptable { width: 100%; border-collapse: collapse; font-size: var(--st-text-4); }
.st-spec caption { text-align: left; padding: var(--st-k2) var(--st-cell-pad); font-family: var(--st-label-font); font-size: var(--st-text-1); letter-spacing: var(--st-label-tracking); text-transform: uppercase; color: var(--st-color-text-muted); background: var(--st-color-sunk); border-top: 1px solid var(--st-color-line); }
.st-spec tr { border-top: 1px solid var(--st-color-line); }
.st-spec th { text-align: left; font-weight: 500; padding: var(--st-k3) var(--st-cell-pad); width: 34%; vertical-align: top; color: var(--st-color-text-muted); font-family: var(--st-label-font); font-size: var(--st-text-2); }
.st-spec td { padding: var(--st-k3) var(--st-cell-pad) var(--st-k3) 0; vertical-align: top; line-height: 1.45; }
/* an example box inside a card (the content is the theme's or the editor's; Core only frames it) */
.st-example { margin: 0 var(--st-cell-pad) var(--st-cell-pad); border: 1px solid var(--st-color-line); background: var(--st-color-sunk); border-radius: var(--st-radius-card); }
.st-example__bar { display: flex; justify-content: space-between; padding: var(--st-k2) var(--st-k4); border-bottom: 1px solid var(--st-color-line); font-family: var(--st-label-font); font-size: var(--st-text-1); color: var(--st-color-text-muted); text-transform: uppercase; letter-spacing: var(--st-label-tracking); }
/* band layout: outlined cards on a dark band, with a list of rows */
.st-tone--band .st-pcard { background: none; border: 1px solid var(--st-color-on-band-muted); }
.st-tone--band .st-pcard__text { color: var(--st-color-on-band-muted); }
.st-tone--band .st-pcard__text--plain { color: var(--st-color-on-band); }
.st-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.st-rows li { border-top: 1px solid var(--st-color-line); padding: var(--st-k3) 0; display: flex; flex-direction: column; gap: var(--st-k1); }
.st-tone--band .st-rows li { border-top-color: var(--st-rule-on-band, var(--st-color-line)); }
.st-rows strong { font-size: var(--st-text-6); font-weight: 700; line-height: 1.35; }
.st-rows span { font-size: var(--st-text-5); line-height: 1.5; color: var(--st-color-text-muted); }
.st-tone--band .st-rows span { color: var(--st-color-on-band-muted); }
.st-pcard--link { padding: var(--st-k5); gap: var(--st-k3); }
.st-pcard--link .st-pcard__title { font-size: var(--st-text-9); font-stretch: var(--st-card-title-stretch); line-height: 1.15; }
.st-pcard--link .st-link { margin-top: auto; font-size: var(--st-text-6); }
.st-action { border: var(--st-frame-heavy) solid var(--st-color-on-band); padding: var(--st-k6); display: flex; flex-wrap: wrap; gap: var(--st-k5); align-items: center; justify-content: space-between; --st-button-wrap: normal; } /* its button may take two lines when the box has no room for one (0.73.2: "Book a 15-minute call" ran 35px past the box at 285 wide) */
.st-action p { margin: 0; font-size: var(--st-text-8); font-weight: 700; max-width: 40rem; line-height: 1.4; }


/* cards, plain layout: a card with all its text in the body, on the page colour */
.st-pcard--plain { background: var(--st-color-bg); padding: var(--st-cell-pad); gap: var(--st-k3); }

/* ---- price_cards, plan cards: code, name, detail, then the prices in labelled cells ---- */
.st-pcard--plan .st-pcard__body { padding: var(--st-k5) var(--st-k5) var(--st-k4); gap: var(--st-k2); }
.st-pcard--plan .st-pcard__text { font-size: var(--st-text-5); line-height: 1.5; }
.st-pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--st-color-line); }
.st-pair > div { padding: var(--st-k4) var(--st-k5); }
.st-pair > div + div { border-left: 1px solid var(--st-color-line); }
.st-pair .st-code { text-transform: uppercase; letter-spacing: .04em; display: block; }
.st-incl { background: var(--st-color-sunk); border: 1px solid var(--st-color-line-strong); border-radius: var(--st-radius-card); padding: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k3); }
.st-incl .st-strip__title { margin: 0; }
.st-incl ul, .st-pcard__ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--st-k2); font-size: var(--st-text-5); line-height: 1.45; }
.st-incl li, .st-pcard__ticks li { display: flex; gap: var(--st-k2); align-items: flex-start; }
.st-incl li svg, .st-pcard__ticks li svg { flex: none; margin-top: .25rem; color: var(--st-color-accent-text); }
.st-incl--mono ul { font-family: var(--st-label-font); font-size: var(--st-text-3); }
.st-incl--mono li svg { margin-top: .2rem; }
.st-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--st-k5); margin: 0; padding: 0; list-style: none; }
.st-sec--tight-head { --st-sec-head-gap: var(--st-k3); --st-sec-gap: var(--st-k6); }

/* ---- price_cards, table layout: plans in a table with a side list ---- */
.st-pricetable { display: flex; flex-wrap: wrap; gap: var(--st-k6); align-items: flex-start; }
.st-pricetable__main { flex: 2 1 560px; min-width: 0; background: var(--st-color-bg); border: 1px solid var(--st-color-line-strong); border-top: max(var(--st-bar), 1px) solid var(--st-bar-color); border-radius: var(--st-radius-card); }
.st-pricetable .st-incl { flex: 1 1 320px; min-width: 0; }
.st-ptable caption { text-align: left; padding: var(--st-k3) var(--st-cell-pad); font-family: var(--st-label-font); font-size: var(--st-text-1); font-weight: var(--st-label-weight); letter-spacing: var(--st-label-tracking); text-transform: var(--st-label-case); color: var(--st-color-text-muted); background: var(--st-color-sunk); }
.st-ptable thead tr { font-family: var(--st-label-font); font-size: var(--st-text-1); color: var(--st-color-text-muted); text-align: left; }
.st-ptable thead th { padding: var(--st-k2) var(--st-k4); font-weight: 500; text-align: right; }
.st-ptable thead th:first-child { padding-inline: var(--st-cell-pad) var(--st-k4); text-align: left; }
.st-ptable thead th:last-child { padding-inline-end: var(--st-cell-pad); }
/* both price columns one fixed width, so prices line up from page to page (owner, 27 Nov 2026) */
.st-ptable { table-layout: fixed; }
.st-ptable thead th:not(:first-child) { width: calc(var(--st-k9) + var(--st-k9) + var(--st-k4)); }
.st-ptable tbody tr { border-top: 1px solid var(--st-color-line); }
/* the plan's code, name and detail: a small step apart, not touching */
.st-ptable tbody th { text-align: left; padding: var(--st-k5) var(--st-cell-pad); vertical-align: top; font-weight: 400; }
.st-ptable tbody th span { display: block; }
.st-ptable tbody th .st-code { line-height: var(--st-k4); margin-bottom: var(--st-k1); }
.st-ptable__name { font-size: var(--st-text-7); font-weight: var(--st-item-title-weight); font-stretch: var(--st-item-title-stretch); line-height: 1.25; }
.st-ptable__detail { margin-top: var(--st-k1); line-height: 1.45; color: var(--st-color-text-muted); }
/* prices sit level with the plan's name, not its code */
.st-ptable td { padding: var(--st-k5) var(--st-k4); vertical-align: top; text-align: right; font-family: var(--st-label-font); font-size: var(--st-text-8); font-weight: 600; line-height: 1.125; white-space: nowrap; }
.st-ptable tr:has(.st-code) td { padding-top: calc(var(--st-k5) + var(--st-k4) + var(--st-k1)); }
.st-ptable td:last-child { padding-inline-end: var(--st-cell-pad); }
/* the note under the table is a sentence: the body font */
.st-pricetable__note { padding: var(--st-k4) var(--st-cell-pad); border-top: 1px solid var(--st-color-line); background: var(--st-color-sunk); font-family: var(--st-font-body); font-size: var(--st-text-3); line-height: 1.5; color: var(--st-color-text-muted); }
/* a price with words in it ("You add them yourself") wraps; a short price stays on one line */
.st-ptable__unit { display: block; font-family: var(--st-label-font); font-size: var(--st-text-2); font-weight: 400; color: var(--st-color-text-muted); }
.st-ptable td.st-ptable__words { white-space: normal; font-family: var(--st-font-body); font-size: var(--st-text-4); font-weight: var(--st-weight-strong); line-height: 1.45; }
/* phones: no sideways scrolling table (owner rule, 23 Nov 2026). Each row stacks: code, name, detail, then the prices.
   Each price is its label with the amount under it, two side by side (owner, 27 Nov 2026); a price in words, a row holding one,
   and a row with a single price take the full width. Caption, rows and note share one edge. */
@media (max-width: 720px) {
  .st-ptable, .st-ptable tbody, .st-ptable tr, .st-ptable th, .st-ptable td { display: block; }
  /* a caption inside a block would shrink to its own words (the narrow grey "SPEC SHEET" tab): make it the full width, on one line when it fits */
  .st-ptable caption, .st-spec caption { display: block; box-sizing: border-box; width: 100%; }
  .st-spec, .st-spec tbody, .st-spec tr, .st-spec th, .st-spec td { display: block; }
  .st-spec th { width: auto; padding: var(--st-k3) var(--st-k4) 0; }
  .st-spec td { padding: 0 var(--st-k4) var(--st-k3); }
  .st-spec caption { padding-inline: var(--st-k4); white-space: nowrap; }
  .st-ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .st-ptable { table-layout: auto; }
  .st-ptable caption, .st-pricetable__note { padding-inline: var(--st-k4); }
  .st-ptable tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--st-k3) var(--st-k4); padding: var(--st-k4); }
  .st-ptable tbody th { grid-column: 1 / -1; padding: 0; }
  .st-ptable td, .st-ptable td:last-child, .st-ptable tr:has(.st-code) td { display: flex; flex-direction: column; align-items: flex-start; gap: var(--st-k1); padding: 0; text-align: left; white-space: normal; }
  .st-ptable td { font-size: var(--st-text-8); }
  .st-ptable td::before { content: attr(data-label); text-align: left; font-family: var(--st-label-font); font-size: var(--st-text-1); font-weight: var(--st-label-weight); line-height: 1.5; text-transform: uppercase; letter-spacing: var(--st-label-tracking); color: var(--st-color-text-muted); }
  .st-ptable td > .st-ptable__unit { display: block; font-size: var(--st-text-2); font-weight: 400; color: var(--st-color-text-muted); }
  .st-ptable td.st-ptable__words { font-size: var(--st-text-4); }
  .st-ptable tr:has(.st-ptable__words) td, .st-ptable td:only-of-type { grid-column: 1 / -1; }
  .st-pair { grid-template-columns: minmax(0, 1fr); }
  .st-pair > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--st-k4); padding: var(--st-k3) var(--st-k5); }
  .st-pair > div + div { border-left: 0; border-top: 1px solid var(--st-color-line); }
  .st-pair .st-price { font-size: var(--st-text-8); text-align: right; }
}

/* cards: how wide a card wants to be before the row wraps, per layout (a class, not a style attribute: the CMS's content policy blocks inline styles) */
.st-pcards--spec { --st-pcard-min: 440px; }
.st-pcards--feature { --st-pcard-min: 520px; }
.st-pcards--rows { --st-pcard-min: 480px; }
.st-pcards--link { --st-pcard-min: 280px; --st-grid-gap: var(--st-k5); }
.st-pcards--plain { --st-pcard-min: 420px; }

/* cards, Ticks layout (Stoei CMS 4.114.0): a title and a ticked list in each card */
.st-pcards--ticks { --st-pcard-min: 340px; --st-grid-gap: var(--st-k5); }
.st-pcard--ticks { background: var(--st-color-bg); padding: var(--st-cell-pad); gap: var(--st-k4); }
.st-pcard--ticks .st-pcard__title { margin-bottom: var(--st-k3); font-size: var(--st-ticks-title-size); line-height: 1.2; }
/* cards, Groups layout: each card a small label, a heading and a stack of boxes, with no frame of its own */
.st-pcards--groups { --st-pcard-min: 460px; --st-grid-gap: var(--st-k7); align-items: start; }
.st-pcard--group { background: none; border: 0; border-radius: 0; gap: var(--st-k5); }
.st-pcard--group .st-sec__head { gap: var(--st-k3); }
.st-pcard__boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--st-k4); }
.st-pcard__box { background: var(--st-color-bg); border: 1px solid var(--st-color-line-strong); border-radius: var(--st-radius-card); padding: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k2); }
.st-pcard__box--bar { border-top: max(var(--st-bar), 1px) solid var(--st-bar-color); }
.st-pcard__box .st-item__title, .st-pcard__box .st-item__text { margin: 0; }
/* a card with only an example box: the box alone, no card frame; the box fills the card, without the inset a theme gives an example inside a framed card */
.st-pcard--bare { background: none; border: 0; border-radius: 0; padding: 0; }
.st-pcards > .st-pcard.st-pcard--bare > * { margin: 0; } /* three classes: wins over a theme's inset for an example in a card (two classes, loaded after Core) */
/* the source line under a card's text (Markdown; links to other sites open in a new tab) */
.st-pcard__source { margin: 0; font-family: var(--st-label-font); font-size: var(--st-text-2); line-height: 1.5; color: var(--st-color-text-muted); }

/* ---- hero (a page's first section: copy on one side, a side panel, facts or a form on the other) ---- */
.st-sec-hero .st-sec__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: var(--st-k8); align-items: center; }
.st-sec-hero__copy, .st-sec-hero__side, .st-formbeside__copy, .st-sec--aside .st-textbeside__head /* the words beside Facts, Notes, a panel, a jump list or the sign-up */ { display: flex; flex-direction: column; gap: var(--st-k5); }
.st-sec-hero__title { margin: 0; font-size: var(--st-hero-title-size); line-height: var(--st-hero-title-leading); font-weight: var(--st-title-weight); font-stretch: var(--st-hero-title-stretch); letter-spacing: var(--st-hero-title-tracking); text-wrap: balance; }
.st-sec-hero__lead { margin: 0; font-size: var(--st-text-8); line-height: 1.55; color: var(--st-color-text-muted); max-width: 36rem; }
.st-actions { display: flex; flex-wrap: wrap; gap: var(--st-k4); padding-top: var(--st-k2); }
.st-plate { background: var(--st-color-surface); border: var(--st-frame-heavy) solid var(--st-color-text); border-radius: var(--st-radius-card); }
.st-plate__bar { display: flex; justify-content: space-between; gap: var(--st-k4); padding: var(--st-k3) var(--st-k5); background: var(--st-color-text); color: var(--st-color-bg); font-family: var(--st-label-font); font-size: var(--st-text-2); font-weight: 600; letter-spacing: var(--st-label-tracking); text-transform: uppercase; }
.st-plate__cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.st-plate__cell { display: flex; flex-direction: column; gap: var(--st-k3); padding: var(--st-k6) var(--st-k5); text-decoration: none; color: inherit; }
.st-plate__cell + .st-plate__cell { border-left: 1px solid var(--st-color-line); }
.st-plate__name { font-size: var(--st-text-10); font-weight: var(--st-item-title-weight); font-stretch: var(--st-card-title-stretch); line-height: 1.1; }


/* ---- Hero beside-column parts (from stoei.co): facts card, light and form panels, jump list, panel cells that link ---- */
.st-speccard, .st-notebox { background: var(--st-color-surface); border: var(--st-frame) solid var(--st-frame-color); border-top: max(var(--st-bar), var(--st-frame)) solid var(--st-bar-color); border-radius: var(--st-radius-3); }
.st-speccard--flat { border-top: var(--st-frame) solid var(--st-frame-color); }
.st-speccard__head { padding: var(--st-k5) var(--st-k6) var(--st-k4); display: flex; flex-direction: column; gap: var(--st-k2); }
.st-speccard__title { font-size: var(--st-speccard-title-size); font-weight: var(--st-speccard-title-weight); font-stretch: var(--st-speccard-title-stretch); line-height: 1.1; }
.st-speccard__rows { margin: 0; display: grid; grid-template-columns: max-content 1fr; font-size: var(--st-speccard-rows-size); line-height: 1.45; }
.st-speccard__rows dt.st-code { display: block; padding: var(--st-k3) var(--st-k5) var(--st-k3) var(--st-k6); border-top: var(--st-line-width) solid var(--st-color-line); font-size: var(--st-text-2); font-weight: var(--st-weight-strong); }
.st-speccard__rows dd { margin: 0; padding: var(--st-k3) var(--st-k6) var(--st-k3) 0; border-top: var(--st-line-width) solid var(--st-color-line); }
.st-speccard__rows:first-child dt:first-of-type, .st-speccard__rows:first-child dt:first-of-type + dd { border-top: 0; }
/* phones (owner, 27 Nov 2026: label above value): one column, each name with its value under it, on one edge with the head,
   so a long name ("Nothing matches") no longer squeezes its value into a narrow column or pushes it past the card */
@media (max-width: 720px) {
  .st-speccard__head { padding: var(--st-k4) var(--st-k4) var(--st-k3); }
  .st-speccard__rows { grid-template-columns: minmax(0, 1fr); }
  .st-speccard__rows dt.st-code { padding: var(--st-k3) var(--st-k4) 0; }
  .st-speccard__rows dd { padding: var(--st-k1) var(--st-k4) var(--st-k3); border-top: 0; }
}
.st-plate--light, .st-plate--form { border: var(--st-frame) solid var(--st-frame-color); border-top: max(var(--st-bar), var(--st-frame)) solid var(--st-bar-color); }
.st-plate--light .st-plate__bar { background: var(--st-color-surface); color: var(--st-color-text); border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-plate .st-code, .st-where h3 { background: none; padding: 0; }
.st-plate .st-visitor-form { border: 0; padding: var(--st-k5) var(--st-k5) var(--st-k6); }
.st-jump a { display: flex; gap: var(--st-k4); align-items: baseline; min-block-size: var(--st-touch-min); /* a 44px tap target */ padding: var(--st-k3) var(--st-k5); border-bottom: var(--st-line-width) solid var(--st-color-line); text-decoration: none; font-weight: var(--st-weight-strong); line-height: 1.35; }
.st-jump a:last-child { border-bottom: 0; }
.st-jump .st-code { flex-shrink: 0; min-width: var(--st-jump-code-min); color: var(--st-color-accent-text); background: none; padding: 0; }
.st-plate__cell { position: relative; }
.st-plate__cell:has(.st-card__link:focus-visible) { outline: var(--st-focus-ring); outline-offset: calc(-1 * var(--st-focus-width)); }
.st-plate__cell:has(.st-card__link):hover { background: var(--st-color-sunk); }
.st-plate__cell .st-card__cue { margin-top: var(--st-k2); text-decoration: none; }
.st-plate__cell .st-card__cue::after { content: "→"; display: inline-block; margin-inline-start: .4em; transition: transform var(--st-motion); }
.st-plate__cell:hover .st-card__cue { color: var(--st-color-accent-text); }
.st-plate__cell:hover .st-card__cue::after { transform: translateX(var(--st-cue-nudge)); }
@media (prefers-reduced-motion: reduce) { .st-plate__cell .st-card__cue::after { transition: none; } }


/* ---- closing band: a section on the accent band with its heading beside the buttons ---- */
.st-cta .st-sec__in { flex-direction: row; flex-wrap: wrap; gap: var(--st-k6); align-items: end; justify-content: space-between; }
.st-cta .st-sec__head { max-width: var(--st-cta-head-max-wide); }
.st-cta .st-sec__title { text-wrap: balance; }
/* the Callout band section (0.59.0): stacked unless its Layout is a row (.st-cta--row); Text width Wider is .st-cta--wide */
.st-cta:not(.st-cta--row) .st-sec__in { flex-direction: column; align-items: flex-start; gap: var(--st-k5); }
.st-cta:not(.st-cta--row) .st-sec__head, .st-cta:not(.st-cta--row) .st-sec__intro { max-width: var(--st-cta-head-max); }
.st-cta--wide:not(.st-cta--row) .st-sec__head { max-width: var(--st-cta-head-max-wide); }
.st-cta .st-sec__intro { line-height: 1.5; }
.st-cta .st-cta__btn, .st-cta .st-cta__btn:hover:not(:disabled, [aria-disabled="true"]) { /* inside the band, so a theme's plain .st-btn rule doesn't undo it */ background: var(--st-cta-btn-fill); color: var(--st-cta-btn-text); }
.st-cta .st-cta__btn--second, .st-cta .st-cta__btn--second:hover:not(:disabled, [aria-disabled="true"]) { background: transparent; color: var(--st-cta-btn-fill); border: var(--st-cta-btn-line) solid var(--st-cta-btn-fill); }
.st-tone--band.st-cta { --st-cta-btn-fill: var(--st-color-on-band); --st-cta-btn-text: var(--st-color-band); }
.st-tone--surface.st-cta { --st-cta-btn-fill: var(--st-color-accent-fill); --st-cta-btn-text: var(--st-color-on-accent); }


/* ---- Text: beside its heading, in a card, in a box (from stoei.co) ---- */
.st-textbeside__head .st-sec__head { max-width: none; }
.st-textbeside__body { display: flex; flex-direction: column; gap: var(--st-k5); font-size: var(--st-textblock-body-size); line-height: 1.6; }
.st-textbeside__body > p, .st-textbeside__body blockquote p, .st-textcard blockquote p, .st-textbox p { margin: 0; }
.st-textbeside__body > p:not(:first-child), .st-textbeside__body blockquote p { color: var(--st-color-text-muted); }
.st-textbeside__body a, .st-textbox a { font-weight: var(--st-textblock-link-weight); text-decoration: underline; text-underline-offset: 4px; }
.st-textbeside__body blockquote { margin: 0; padding-left: var(--st-k4); border-left: var(--st-textblock-edge); }
.st-textbeside__body > .st-sec__more { color: var(--st-color-text); }
.st-textbox { background: var(--st-color-sunk); border: var(--st-line-width) solid var(--st-color-line-strong); border-left: var(--st-textblock-edge); border-radius: var(--st-radius-3); padding: var(--st-k6); max-width: var(--st-textblock-box-max); display: flex; flex-direction: column; gap: var(--st-k3); }
.st-sec--text .st-textbox .st-code { font-size: var(--st-text-2); font-weight: var(--st-weight-strong); letter-spacing: .06em; text-transform: uppercase; color: var(--st-color-accent-text); }
.st-textbox p { font-size: var(--st-textblock-box-size); line-height: 1.6; }
.st-textbox + .st-sec__more { margin-top: var(--st-k4); }
.st-textbeside__body.st-textcard { display: block; background: var(--st-color-bg); border: var(--st-line-width) solid var(--st-color-line-strong); border-left: var(--st-textblock-edge); border-radius: var(--st-radius-3); padding: var(--st-k6); font-size: var(--st-textblock-card-size); line-height: 1.5; font-weight: var(--st-weight-strong); }
.st-textcard blockquote { margin: 0; padding: 0; border: 0; }
.st-textcard blockquote p { color: var(--st-color-text); }
.st-textcard > p { margin: var(--st-k4) 0 0; font-family: var(--st-label-font); font-size: var(--st-text-2); font-weight: var(--st-textblock-note-weight); line-height: 1.5; color: var(--st-color-text-muted); }

/* ---- Text and Hero with something on the right: the shared aside (0.63.0, from stoei.co's own kinds) ---- */
/* Text beside an example box (.st-textex's grid is with .st-pricebeside): the words on the left, one of the site's example boxes on the right */
.st-textex.st-textex--alone { grid-template-columns: minmax(0, var(--st-textex-alone-max)); }
.st-textex__copy, .st-search-none, .st-textex__copy > p { margin: 0; }
/* Text beside this page's form: the words (and a box with a coloured edge) on the left, the form on the right */
.st-formbeside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--st-k7); align-items: start; }
.st-where { background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-left: var(--st-textblock-edge); border-radius: var(--st-radius-3); padding: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k2); }
.st-where h3, .st-where p { margin: 0; }
/* Notes: a boxed list, each a bold line over a grey line; or Facts, a small label beside its text */
.st-notelist { list-style: none; margin: 0; padding: 0; background: var(--st-color-surface); border: var(--st-frame) solid var(--st-frame-color); border-top: max(var(--st-bar), var(--st-frame)) solid var(--st-bar-color); border-radius: var(--st-radius-3); }
.st-tone--surface .st-notelist { background: var(--st-color-bg); }
.st-notelist li { padding: var(--st-k4) var(--st-k5); border-bottom: var(--st-line-width) solid var(--st-color-line); display: flex; flex-direction: column; gap: var(--st-k1); }
.st-notelist li:last-child { border-bottom: 0; }
.st-notelist__title { font-size: var(--st-notes-title-size); font-weight: var(--st-notes-title-weight); line-height: 1.35; }
.st-notelist__text { font-size: var(--st-notes-text-size); line-height: 1.5; color: var(--st-color-text-muted); }
.st-notebox__title { margin: 0; padding: var(--st-k5) var(--st-k5) var(--st-k2); font-size: var(--st-notes-box-title-size); font-weight: var(--st-weight-heading); line-height: 1.2; }
.st-notebox > .st-notelist, .st-notebox > .st-factlist { border: 0; border-radius: 0; background: none; }
/* Notes as a numbered list (0.64.0, Jeffreys Bay's list box): a small number before each line */
.st-notelist--numbered { counter-reset: st-note; }
.st-notelist--numbered li { counter-increment: st-note; flex-direction: row; align-items: baseline; gap: var(--st-k4); }
.st-notelist--numbered li::before { content: counter(st-note, decimal-leading-zero); color: var(--st-color-accent-text); font-size: var(--st-text-2); font-weight: var(--st-notes-title-weight); }
.st-factlist { margin: 0; display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); font-size: var(--st-notes-pairs-size); line-height: 1.45; background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line); border-radius: var(--st-radius-3); }
.st-factlist dt, .st-factlist dt.st-code { padding: var(--st-k3) var(--st-k5); border-bottom: var(--st-line-width) solid var(--st-color-line); font-size: var(--st-text-2); font-weight: var(--st-weight-strong); color: var(--st-color-text-muted); }
.st-factlist dd { margin: 0; padding: var(--st-k3) var(--st-k5) var(--st-k3) 0; border-bottom: var(--st-line-width) solid var(--st-color-line); }
/* a label is at most 40% of the list and a value fills the rest; a word too long for its line breaks, so neither pushes
   past the list (0.72.2); the last pair has no line of its own over the list's border; under a title, one box holds both */
.st-factlist dt, .st-factlist dd { overflow-wrap: anywhere; }
.st-factlist dt:last-of-type, .st-factlist dd:last-of-type { border-bottom: 0; }
/* phones: in a numbered note the number stays at the left and the bold line sits over the grey line beside it, so a short bold line is not squeezed into a narrow column (0.73.5) */
@media (max-width: 720px) {
  .st-notelist--numbered li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--st-k4); row-gap: var(--st-k1); align-items: baseline; }
  .st-notelist--numbered li > * { grid-column: 2; }
  .st-notelist--numbered li::before { grid-column: 1; grid-row: 1; }
}
/* phones: each label above its value, on the same 24px edge as the Notes list and the box's title */
@media (max-width: 720px) {
  .st-factlist { grid-template-columns: minmax(0, 1fr); }
  .st-factlist dt, .st-factlist dt.st-code { padding: var(--st-k3) var(--st-k5) 0; border-bottom: 0; }
  .st-factlist dd { padding: var(--st-k1) var(--st-k5) var(--st-k3); }
}

/* ---- Questions and answers, beside its heading (0.59.0): the head on the left, boxed questions on the right; one column on a phone ---- */
.st-sec--faq .st-sec__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--st-k7); align-items: start; }
.st-qa { display: flex; flex-direction: column; gap: var(--st-qa-gap); }
.st-qa__item { border: var(--st-qa-frame); border-radius: var(--st-qa-radius); background: var(--st-color-surface); }
.st-qa__item > summary { display: flex; justify-content: space-between; gap: var(--st-k4); align-items: center; min-height: var(--st-control-height); padding: var(--st-k4) var(--st-k5); cursor: pointer; font-weight: var(--st-qa-title-weight); font-size: var(--st-qa-title-size); list-style: none; }
.st-qa__item > summary::-webkit-details-marker { display: none; }
.st-qa__plus { font-size: var(--st-qa-plus-size); line-height: 1; transition: transform var(--st-motion); }
.st-qa__item[open] .st-qa__plus { transform: rotate(45deg); }
.st-qa__answer { padding: 0 var(--st-k5) var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k3); font-size: var(--st-text-6); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .st-qa__plus { transition: none; } }
@media (max-width: 800px) { .st-sec--faq .st-sec__in { grid-template-columns: minmax(0, 1fr); gap: var(--st-k5); } }


/* ---- article cards for an auto-filled list (a picture, a small tag, a title) ---- */
.st-acards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--st-grid-gap); margin: 0; padding: 0; list-style: none; }
.st-acard { position: relative; background: var(--st-color-surface); border: 1px solid var(--st-color-line-strong); border-radius: var(--st-radius-card); display: flex; flex-direction: column; }
.st-acard__img { aspect-ratio: 16 / 9; background: var(--st-color-sunk); border-bottom: 1px solid var(--st-color-line); display: flex; align-items: center; justify-content: center; font-family: var(--st-label-font); font-size: var(--st-text-1); color: var(--st-color-text-muted); }
.st-acard__body { padding: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k3); }
.st-acard__tag { font-family: var(--st-label-font); font-size: var(--st-text-1); letter-spacing: var(--st-label-tracking); text-transform: uppercase; color: var(--st-color-text-muted); }
.st-acard__title a, .st-plate__cell .st-card__link { text-decoration: none; color: inherit; }

/* a section that continues the one above it (no second helping of padding between them), and smaller headings */
.st-sec:has(+ .st-sec--join) > .st-sec__in { padding-bottom: var(--st-k7); }
.st-sec--join > .st-sec__in { padding-top: 0; }
.st-sec--join .st-sec__title { font-size: var(--st-item-title-size, 1.25rem); }
.st-sec--title-md .st-sec__title { font-size: var(--st-title-size-md); }
.st-sec--title-sm .st-sec__title { font-size: var(--st-title-size-sm); }
.st-plans--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.st-textex, .st-pricebeside, .st-checksbeside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--st-k7); align-items: start; }
.st-pricebeside__head .st-sec__head, .st-checksbeside__head .st-sec__head { max-width: none; }
/* Prices, Layout = Beside (0.67.0, from stoei.co's Stoei Reports block): one framed box with the site's edge on the left, the heading
   on the left and the price table on the right; the table hides its header row, each row has its code beside the name, its price on the right */
.st-pricebeside { gap: 0; border: var(--st-frame) solid var(--st-frame-color); border-left: var(--st-textblock-edge); border-radius: var(--st-radius-card); overflow: hidden; background: var(--st-color-surface); align-items: stretch; }
.st-pricebeside__head { padding: var(--st-cell-pad); }
.st-pricebeside__table { border-left: var(--st-line-width) solid var(--st-color-line); }
.st-pricebeside .st-pricetable, .st-pricebeside .st-pricetable__main { display: block; width: 100%; }
.st-pricebeside .st-pricetable__main, .st-pricebeside .st-ptable { width: 100%; border: 0; border-radius: 0; background: none; }
.st-pricebeside .st-ptable { table-layout: auto; }
.st-pricebeside .st-ptable thead { display: none; }
.st-pricebeside .st-ptable caption { padding: var(--st-k2) var(--st-k4); border-bottom: var(--st-line-width) solid var(--st-color-line); }
.st-pricebeside .st-ptable tr { border-top: var(--st-line-width) solid var(--st-color-line); }
.st-pricebeside .st-ptable tr:first-child { border-top: 0; }
.st-pricebeside .st-ptable th[scope="row"] { display: grid; grid-template-columns: var(--st-pricebeside-code-width) 1fr; column-gap: var(--st-k3); padding: var(--st-k3) var(--st-k4); }
.st-pricebeside .st-ptable th[scope="row"] .st-code { grid-column: 1; grid-row: 1 / span 2; }
.st-pricebeside .st-ptable th[scope="row"] > span:not(.st-code) { grid-column: 2; }
.st-pricebeside .st-ptable td, .st-pricebeside .st-ptable tr:has(.st-code) td { padding: var(--st-k3) var(--st-k4); }
@media (max-width: 720px) {
  .st-pricebeside .st-ptable tr { display: grid; }
  .st-pricebeside .st-ptable th[scope="row"] { display: block; padding: 0; }
  .st-pricebeside .st-ptable th[scope="row"] > span { display: block; }
  .st-pricebeside .st-ptable td, .st-pricebeside .st-ptable tr:has(.st-code) td { padding: 0; }
}
.st-sec--snug > .st-sec__in { padding-block: var(--st-k8); gap: var(--st-k6); }

/* ---- menus with sub-links (core 4.76.0, public/core/stoei.js part 13): the structure only; a theme gives them their look ----
   <nav data-submenu="dropdown"> (a row of links on a computer) or <div data-submenu="accordion"> (the off-canvas phone menu); each link with
   links under it: <li data-submenu-item><a href>Products</a><button data-submenu-toggle aria-expanded aria-controls hidden>…</button><ul data-submenu-panel>…</ul></li> */
.st-submenu__item { position: relative; }
.st-submenu__toggle { display: inline-flex; align-items: center; justify-content: center; min-inline-size: var(--st-touch-min); min-block-size: var(--st-touch-min); padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.st-submenu__toggle svg { transition: transform var(--st-motion, 0.15s); }
.st-submenu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
[data-submenu="dropdown"] .st-submenu__panel { position: absolute; inset-inline-start: 0; inset-block-start: 100%; z-index: 30; min-inline-size: 15rem; }
/* without the script: a dropdown's list shows on hover and keyboard focus; the script takes over with the button */
[data-submenu="dropdown"]:not([data-submenu-js]) .st-submenu__panel { display: none; }
[data-submenu="dropdown"]:not([data-submenu-js]) .st-submenu__item:is(:hover, :focus-within) > .st-submenu__panel { display: block; }

/* a card that links is one stretched link (.st-card__link on its heading's link) and a cue that is plain text */
.st-card__cue { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.st-pcard:hover .st-card__cue, .st-acard:hover .st-card__cue, .st-card:hover .st-card__cue, .st-fgrid__item:hover .st-card__cue { color: var(--st-color-accent-text); }
.st-footer nav a { display: inline-flex; align-items: center; min-block-size: var(--st-touch-min); }

/* ---------- 29. The search page and the 404 page (Stoei CMS 4.115.0, templates/default/search-results.php and not-found.php;
   stoei.co plan step 5: stoei.co's approved design, its rules moved here for every site) ---------- */
/* The search box joined (the field and its button touch), one row at every width: on the search page and in the 404 page's top. */
:is(.st-sec-hero, .st-search-page) .st-search { display: flex; flex-wrap: nowrap; gap: 0; padding: 0; background: none; border-radius: 0; max-width: var(--st-search-joined-width); }
:is(.st-sec-hero, .st-search-page) .st-search__q { flex: 1 1 auto; min-width: 0; height: var(--st-control-height-lg); min-height: var(--st-control-height-lg); box-sizing: border-box; padding: 0 var(--st-k4); font-size: var(--st-text-6); color: var(--st-color-text); background: var(--st-color-surface); border: var(--st-frame-heavy) solid var(--st-color-text); border-right: 0; border-radius: var(--st-radius-3) 0 0 var(--st-radius-3); }
:is(.st-sec-hero, .st-search-page) .st-search .st-btn { flex: 0 0 auto; min-height: var(--st-control-height-lg); padding: 0 var(--st-k5); border-radius: 0 var(--st-radius-3) var(--st-radius-3) 0; border-color: var(--st-color-text); }
:is(.st-sec-hero, .st-search-page) .st-search > .st-btn { flex-basis: auto; }
.st-search-page .st-sec__head, .st-search-none { max-width: var(--st-search-head-width); } /* the "nothing found" block is a column too: section 24's .st-textex__copy rule */
/* The note when the words were fixed or only some matched: a box with the accent edge on the left. */
.st-search-note { margin: 0; padding: var(--st-k4) var(--st-k5); background: var(--st-color-surface); border: var(--st-line-width) solid var(--st-color-line-strong); border-left: var(--st-textblock-edge); border-radius: var(--st-radius-3); }
/* The results: rows between lines; each a section label, a title link, its address and a line. */
.st-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: var(--st-line-width) solid var(--st-color-line); }
.st-result { display: flex; flex-direction: column; gap: var(--st-k2); padding: var(--st-k5) 0; border-bottom: var(--st-line-width) solid var(--st-color-line); max-width: var(--st-result-width); }
.st-result__title { margin: 0; font-size: var(--st-item-title-size); font-weight: var(--st-item-title-weight); font-stretch: var(--st-item-title-stretch); }
.st-result__title a { text-decoration: none; }
.st-result__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-result__address { color: var(--st-color-text-muted); }
/* The section chips over the results: an outline chip each, the chosen one filled (a site may draw its chips its own way). */
.st-chip--on, .st-chip--off { min-height: var(--st-touch); padding: 0 var(--st-space-5); border: var(--st-line-width) solid var(--st-color-line); background: var(--st-color-surface); }
.st-chip--off:hover { border-color: var(--st-color-accent); }
.st-chip--on { background: var(--st-chip-on-fill); border-color: var(--st-chip-on-fill); color: var(--st-chip-on-text); }
.st-chip--on .st-code { color: inherit; }

/* ---------- 30. A long page in parts (Stoei CMS 4.116.0, Text with Layout "A long page in parts"; stoei.co plan step 6:
   stoei.co's Privacy page, its own Policy kind's rules moved here for every site) ---------- */
/* One reading column; each part (an <article>, started by a ## heading in the Markdown) under the last, a small heading
   (###) a little further from what comes before it. A heading's address ({#collect}) is on the heading itself. A part's own
   column is the .st-textex__copy rule in section 24. */
.st-parts { max-width: var(--st-parts-width); margin-inline: auto; display: flex; flex-direction: column; gap: var(--st-k7); }
.st-parts > article { display: flex; flex-direction: column; gap: var(--st-k4); }
.st-parts h2 { margin: 0; font-size: var(--st-parts-title-size); font-weight: var(--st-parts-title-weight); font-stretch: var(--st-parts-title-stretch); line-height: var(--st-parts-title-leading); }
.st-parts h3 { margin: var(--st-k3) 0 0; font-size: var(--st-parts-small-size); font-weight: var(--st-parts-title-weight); font-stretch: var(--st-parts-small-stretch); }
.st-parts p { margin: 0; font-size: var(--st-parts-text-size); line-height: var(--st-parts-text-leading); color: var(--st-color-text); }
.st-parts ul, .st-parts ol { margin: 0; padding-left: var(--st-k5); display: flex; flex-direction: column; gap: var(--st-k3); font-size: var(--st-parts-text-size); line-height: var(--st-parts-text-leading); }
.st-parts a { font-weight: var(--st-parts-link-weight); }
