/* ==========================================================================
   FRAMEWORK — loads after reset.css, before any brand kit.

   Every color/font/type value below is a CSS custom property with a neutral
   fallback default, so this file renders something reasonable on its own.
   A brand kit (e.g. the active brand kit) loads AFTER this file and simply
   redeclares these same variable names with the real brand's values —
   nothing in this file needs to change per site.

   BREAKPOINTS (consolidated from ~15 inconsistent values down to 4).
   Plain CSS can't use var() inside an @media condition, so these are
   documented here and hardcoded at each usage. If a build step (PostCSS/
   esbuild) gets introduced later, these can become real custom media
   queries — worth revisiting then, not required now.
     sm:  480px  (large phone)
     md:  768px  (tablet)
     lg:  1024px (small desktop)
     xl:  1280px (large desktop)
   ========================================================================== */

html {
    font-size: 62.5%; /* 1rem = 10px */
}

:root {
    /* Color roles — fallback neutrals; a brand kit overrides all of these */
    --color-primary: #3a3a3a;
    --color-secondary: #5a5a5a;
    --color-accent: #7a7a7a;
    --color-dark: #1a1a1a;
    --color-light: #f2f2f2;
    --color-white: #ffffff;
    --color-muted: #8a8a8a;
    --color-on-primary: #ffffff; /* text color placed on top of --color-primary */
    --button-bg: var(--color-primary); /* the default .button background — a brand kit can point this at a gradient instead */
    --button-radius: 9999px; /* a brand kit can set this to square/rounded/pill */
    --button-padding: 1.44rem 2.8rem;
    --button-font-size: 1.6rem;
    --button-font-weight: 700;
    --button-text-transform: none;
    --button-border-width: 2px;

    /* Button colors -- sensible fallback defaults, all overridable per
       style/context/hover-state from the Brand Kit. Primary defaults to
       the same gradient/color in both contexts (a gradient usually doesn't
       need to change); Solid is the one that actually flips (dark bg/white
       text in light context, white bg/dark text in dark context) -- matches
       the common "nav CTA" pattern directly. */
    --btn-primary-bg: var(--color-primary);
    --btn-primary-border: transparent;
    --btn-primary-text: var(--color-on-primary);
    --btn-primary-hover-bg: var(--color-primary);
    --btn-primary-hover-border: transparent;
    --btn-primary-hover-text: var(--color-on-primary);
    --btn-primary-dark-bg: var(--color-primary);
    --btn-primary-dark-border: transparent;
    --btn-primary-dark-text: var(--color-on-primary);
    --btn-primary-dark-hover-bg: var(--color-primary);
    --btn-primary-dark-hover-border: transparent;
    --btn-primary-dark-hover-text: var(--color-on-primary);

    --btn-solid-bg: var(--color-dark);
    --btn-solid-border: transparent;
    --btn-solid-text: var(--color-white);
    --btn-solid-hover-bg: var(--color-dark);
    --btn-solid-hover-border: transparent;
    --btn-solid-hover-text: var(--color-white);
    --btn-solid-dark-bg: var(--color-white);
    --btn-solid-dark-border: transparent;
    --btn-solid-dark-text: var(--color-dark);
    --btn-solid-dark-hover-bg: var(--color-white);
    --btn-solid-dark-hover-border: transparent;
    --btn-solid-dark-hover-text: var(--color-dark);

    --btn-outline-bg: transparent;
    --btn-outline-border: var(--color-dark);
    --btn-outline-text: var(--color-dark);
    --btn-outline-hover-bg: transparent;
    --btn-outline-hover-border: var(--color-dark);
    --btn-outline-hover-text: var(--color-dark);
    --btn-outline-dark-bg: transparent;
    --btn-outline-dark-border: var(--color-white);
    --btn-outline-dark-text: var(--color-white);
    --btn-outline-dark-hover-bg: transparent;
    --btn-outline-dark-hover-border: var(--color-white);
    --btn-outline-dark-hover-text: var(--color-white);

    --btn-ghost-bg: transparent;
    --btn-ghost-border: transparent;
    --btn-ghost-text: var(--color-dark);
    --btn-ghost-hover-bg: transparent;
    --btn-ghost-hover-border: transparent;
    --btn-ghost-hover-text: var(--color-dark);
    --btn-ghost-dark-bg: transparent;
    --btn-ghost-dark-border: transparent;
    --btn-ghost-dark-text: var(--color-white);
    --btn-ghost-dark-hover-bg: transparent;
    --btn-ghost-dark-hover-border: transparent;
    --btn-ghost-dark-hover-text: var(--color-white);

    /* Contextual text colors -- what headings/paragraphs/links actually use.
       Separate from the roles above so a brand kit (or the .on-dark/.on-light
       context classes below) can flip these independently of the palette. */
    --color-heading: var(--color-dark);
    --color-body: var(--color-dark);
    --color-link: var(--color-primary);
    --color-link-hover: var(--color-secondary);
    --nav-link-color: var(--color-link); /* independent from general link color -- overridable separately in Brand Kit */
    --nav-link-hover-color: var(--color-link-hover);
    --nav-link-font-size: 10px; /* matches .primary-nav a's actual computed size before this variable existed -- see brand-kit-output.php */
    --nav-link-font-weight: 400;

    /* Typography */
    --font-heading: system-ui, sans-serif;
    --font-body: system-ui, sans-serif;
    --font-accent: system-ui, sans-serif; /* applied to <i>/<em> nested inside headings, for accent emphasis */
    --type-scale: 1; /* a brand nudges overall heading size up/down via this one variable */

    /* Layout */
    --container-max: 1168px;
    --nav-justify: flex-end; /* Brand Kit: Left/Center/Right nav alignment */
    --header-bg: transparent;
    --header-overlay-offset: 100px;

    /* Site-wide body background + dropdown/flyout panel background --
       both Light/Dark/Custom (Brand Kit), see sbk_resolve_bg_mode_value()
       in brand-kit-output.php. var(--color-white) here matches this
       project's real pre-existing default exactly (a plain white body,
       and the dropdown panel's previous hardcoded var(--color-white)) --
       deliberately NOT var(--color-light), which is a real, independently
       brand-configurable token that happens to equal white on every site
       in this project today but isn't guaranteed to on a future one. */
    --body-bg: var(--color-white);
    --dropdown-bg: var(--color-white);
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ---- Flex row/column ---- */
.flex {
    display: flex;
    flex-wrap: wrap; /* wraps through mobile and tablet by default */
}

@media (min-width: 1024px) {
    .flex {
        flex-wrap: nowrap; /* desktop and up: holds one line unless .wrap-on-mobile or similar overrides it */
    }
    .flex-wrap{
        flex-wrap: wrap !important;
    }
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.no-wrap {
    flex-wrap: nowrap;
}
.wrap-on-mobile {
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .wrap-on-mobile {
        flex-wrap: nowrap;
    }
}
/* Row "Reverse order on desktop": from 768px the row's children run from
   the end side (the right, or the left on a right-to-left page), e.g. an
   image-right split whose image comes first on a phone. Only the visual
   order changes; keyboard and screen-reader order stay the document's.
   A Row only: the stacked (.flex-col) Row has no desktop row to reverse. */
@media (min-width: 768px) {
    .flex.reverse-desktop {
        flex-direction: row-reverse;
    }
}

/* ---- Grid columns (flex-basis percentage system, mobile-first) ----
   Mobile default: every column is full width. From md upward, columns
   take their intended fraction of 12. */
[class^="grid-"], [class*=" grid-"] {
    flex: 1 1 100%;
    max-width: 100%;
}
@media (min-width: 768px) {
    .grid-1  { flex-basis: 8.333%;  max-width: 8.333%; }
    .grid-2  { flex-basis: 16.667%; max-width: 16.667%; }
    .grid-3  { flex-basis: 25%;     max-width: 25%; }
    .grid-4  { flex-basis: 33.333%; max-width: 33.333%; }
    .grid-5  { flex-basis: 41.667%; max-width: 41.667%; }
    .grid-6  { flex-basis: 50%;     max-width: 50%; }
    .grid-7  { flex-basis: 58.333%; max-width: 58.333%; }
    .grid-8  { flex-basis: 66.667%; max-width: 66.667%; }
    .grid-9  { flex-basis: 75%;     max-width: 75%; }
    .grid-10 { flex-basis: 83.333%; max-width: 83.333%; }
    .grid-11 { flex-basis: 91.667%; max-width: 91.667%; }
    .grid-12 { flex-basis: 100%;    max-width: 100%; }
    .grid-onefifth { flex-basis: 20%; max-width: 20%; }
    .grid-auto { flex: 1 1 auto; max-width: none; }
}

/* ---- Grid + gap combined, opt-in (.grid-wrap) ----
   .grid-1-.grid-12 alone were never meant to wrap while also spaced by a
   real `gap` -- flex-basis percentages plus a gap between siblings always
   overflows 100% once more than one gap lands in a row (three .grid-4
   children at 33.333% each + two 2rem gaps > 100%, so only two fit per row
   instead of three). Adding `.grid-wrap` to the row turns on both
   flex-wrap AND a corrected width that actually subtracts the gap's real
   contribution -- opt-in only, so .grid-1-.grid-12 and every existing
   Row/gap combination elsewhere is completely untouched (nothing existing
   carries this class).

   Reads --grid-gap, which every .gap-* class below sets on its children
   (defaults to 0px when no gap-* class is present, matching the plain
   uncorrected percentages exactly). The correction factor per column is
   (columns-per-row - 1) / columns-per-row -- e.g. 3 columns (.grid-4)
   needs to give back 2/3 of one gap per card, since a 3-up row contains
   2 real gaps split across 3 cards.

   Only covers the column counts that repeat evenly across a row --
   1/2/3/4/5(one-fifth)/6/12 columns. .grid-5/7/8/9/10/11 are asymmetric
   split values (e.g. a 5+7 two-up row), not "N equal columns" -- they're
   left at their normal uncorrected width here since there's no single
   "columns per row" to correct against. */
.grid-wrap {
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .grid-wrap > .grid-1        { flex-basis: calc(8.333%  - (11 / 12) * var(--grid-gap, 0px)); max-width: calc(8.333%  - (11 / 12) * var(--grid-gap, 0px)); }
    .grid-wrap > .grid-2        { flex-basis: calc(16.667% - (5 / 6)   * var(--grid-gap, 0px)); max-width: calc(16.667% - (5 / 6)   * var(--grid-gap, 0px)); }
    .grid-wrap > .grid-3        { flex-basis: calc(25%     - (3 / 4)   * var(--grid-gap, 0px)); max-width: calc(25%     - (3 / 4)   * var(--grid-gap, 0px)); }
    .grid-wrap > .grid-4        { flex-basis: calc(33.333% - (2 / 3)   * var(--grid-gap, 0px)); max-width: calc(33.333% - (2 / 3)   * var(--grid-gap, 0px)); }
    .grid-wrap > .grid-6        { flex-basis: calc(50%     - (1 / 2)   * var(--grid-gap, 0px)); max-width: calc(50%     - (1 / 2)   * var(--grid-gap, 0px)); }
    .grid-wrap > .grid-12       { flex-basis: 100%; max-width: 100%; }
    .grid-wrap > .grid-onefifth { flex-basis: calc(20%     - (4 / 5)   * var(--grid-gap, 0px)); max-width: calc(20%     - (4 / 5)   * var(--grid-gap, 0px)); }
}

/* ---- Column: mobile-width override (opt-in, independent of desktop width) ----
   .grid-1-.grid-12's own unqualified base rule above (flex: 1 1 100%;
   max-width: 100%) is what makes every column stack full-width below
   768px by default -- .mobile-half/.mobile-third are the opt-in exception
   to that, for a column that should stay paired/grouped on mobile instead
   (a two-up stat block, a three-up icon row). Same specificity as that
   base rule (one class selector each), so this wins purely on source
   order (declared after it, same as .grid-N's own 768px+ override does)
   -- scoped to max-width:767px specifically so it never fights the
   desktop `width` (grid-N) setting at 768px and up, which these are
   deliberately independent of. Existing .wrap-on-mobile flex-wrap
   mechanics (see above) already make two/three of these sit side by side
   and wrap normally -- no additional wrap handling needed here.

   Gap-corrected by default (not a second .grid-wrap-style opt-in class,
   unlike .grid-N) -- reads the same --grid-gap custom property every
   .gap-* class below already sets, same correction-factor math as
   .grid-wrap's .grid-N rules above ((columns-per-row - 1) / columns-per-
   row: 1/2 for a 2-up mobile-half row, 2/3 for a 3-up mobile-third row).
   --grid-gap is a custom property the parent Row's own .gap-* class sets
   on these Column children (and they pass it down)
   -- CSS custom property inheritance/cascade doesn't depend on which
   rule is declared first in the file the way a normal property's cascade
   would, so this works automatically with no special ordering, same as
   .grid-wrap's own read of the same variable. The var(--grid-gap, 0px)
   fallback means a mobile-half/mobile-third column on a Row with no
   gap-* class at all still computes cleanly to exactly 50%/33.333%, not
   an error or unexpected spacing. Both cases are symmetric (2-up, 3-up),
   so neither needs .grid-wrap's asymmetric-split exclusion list (that
   existed only for .grid-5/7/8/9/10/11, which don't apply here). Unlike
   .grid-N, this correction is built in by default rather than gated
   behind a second opt-in class -- mobile-half/mobile-third are new
   attributes with no existing pages depending on the old uncorrected
   math, so there's no back-compat reason to keep it opt-in here. */
@media (max-width: 767px) {
    .mobile-half { flex: 1 1 calc(50% - (1 / 2) * var(--grid-gap, 0px)); max-width: calc(50% - (1 / 2) * var(--grid-gap, 0px)); }
    .mobile-third { flex: 1 1 calc(33.333% - (2 / 3) * var(--grid-gap, 0px)); max-width: calc(33.333% - (2 / 3) * var(--grid-gap, 0px)); }
}

/* ---- Column: tablet-width override (768-1023px only, opt-in) ----
   Same idea as the mobile override above, for tablets: the Column's
   tabletWidth setting adds .tablet-full, .tablet-half or .tablet-third,
   gap-corrected the same way, and its desktop width (grid-N) applies again
   from 1024px. ".flex >" outranks .grid-N, and these rules come after
   .grid-wrap's, so they win over both. A Row whose own setting stops
   wrapping at 768px (wrap-on-mobile, no-wrap) wraps again at tablet sizes
   when one of its Columns sets a tablet width, so half and third columns
   go two or three to a line instead of squeezing into one. */
@media (min-width: 768px) and (max-width: 1023px) {
    .flex > .tablet-full { flex: 1 1 100%; max-width: 100%; }
    .flex > .tablet-half { flex: 1 1 calc(50% - (1 / 2) * var(--grid-gap, 0px)); max-width: calc(50% - (1 / 2) * var(--grid-gap, 0px)); }
    .flex > .tablet-third { flex: 1 1 calc(33.333% - (2 / 3) * var(--grid-gap, 0px)); max-width: calc(33.333% - (2 / 3) * var(--grid-gap, 0px)); }
    .flex:has(> .tablet-full, > .tablet-half, > .tablet-third) { flex-wrap: wrap; }
}

/* ---- Gap ----
   Each also sets --grid-gap to the same value on the element's children,
   where the gap-corrected widths above (.grid-wrap > .grid-N, mobile-*,
   tablet-*) read it, and their own children inherit it. Not on the element
   itself (v0.5.5): a Column with "Stack content" carries its own gap-*
   class for the space between its items, and that gap set its own width
   too, so a card with gap-1 in a gap-3 Row came out too wide and wrapped
   alone (request #7). */
.gap-none { gap: 0; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }
.gap-4 { gap: 4rem; }
.gap-5 { gap: 5rem; }
.gap-6 { gap: 6rem; }
.gap-7 { gap: 7rem; }
.gap-none > * { --grid-gap: 0px; }
.gap-1 > * { --grid-gap: 1rem; }
.gap-2 > * { --grid-gap: 2rem; }
.gap-3 > * { --grid-gap: 3rem; }
.gap-4 > * { --grid-gap: 4rem; }
.gap-5 > * { --grid-gap: 5rem; }
.gap-6 > * { --grid-gap: 6rem; }
.gap-7 > * { --grid-gap: 7rem; }

/* ---- Alignment ---- */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.space-between { justify-content: space-between; }
.space-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-self-start { align-self: flex-start; }
.align-self-center { align-self: center; }
.align-self-end { align-self: flex-end; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ---- Visually hidden ---- */
/* Standard "hidden visually, still announced by screen readers" pattern --
   unlike display:none/visibility:hidden, which assistive tech also skips.
   First real use: the Quote Carousel's aria-live region
   (blocks/quote-carousel/render.php), but this is a genuine framework-
   level primitive any future component can reach for. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Spacing scale ---- */
/* --space-* tokens keep the scale itself brand-agnostic; sizes rarely
   need per-brand overriding, but they're variables in case a brand's
   density preferences genuinely differ. */
:root {
    --space-xsmall: 1rem;
    --space-small: 2rem;
    --space-medium: 3.5rem;
    --space-large: 6rem;
    --space-xlarge: 11rem;
}
/* The Small and Large text styles' own spacing (their Brand Kit type
   steps), declared here, before the spacing classes, so a marg-* or pad-*
   class on the same element wins (request 31: they came later and always
   won, so class="font-small marg-top-large" had no top margin). A class
   still beats the p and heading element rules. */
.font-small { padding-top: var(--pt-small); padding-bottom: var(--pb-small); margin-top: var(--mt-small); margin-bottom: var(--mb-small); }
.font-large { padding-top: var(--pt-large); padding-bottom: var(--pb-large); margin-top: var(--mt-large); margin-bottom: var(--mb-large); }

.pad-none { padding: 0 !important; }
.pad-xsmall { padding: var(--space-xsmall); }
.pad-small { padding: var(--space-small); }
.pad-medium { padding: var(--space-medium); }
.pad-large { padding: var(--space-large); }
.pad-xlarge { padding: var(--space-xlarge); }

.pad-vert-none { padding-block: 0 !important; }
.pad-vert-xsmall { padding-block: var(--space-xsmall); }
.pad-vert-small { padding-block: var(--space-small); }
.pad-vert-medium { padding-block: var(--space-medium); }
.pad-vert-large { padding-block: var(--space-large); }
.pad-vert-xlarge { padding-block: var(--space-xlarge); }

.pad-horz-none { padding-inline: 0 !important; }
.pad-horz-xsmall { padding-inline: var(--space-xsmall); }
.pad-horz-small { padding-inline: var(--space-small); }
.pad-horz-medium { padding-inline: var(--space-medium); }
.pad-horz-large { padding-inline: var(--space-large); }
.pad-horz-xlarge { padding-inline: var(--space-xlarge); }

.pad-top-none { padding-top: 0 !important; }
.pad-top-xsmall { padding-top: var(--space-xsmall); }
.pad-top-small { padding-top: var(--space-small); }
.pad-top-medium { padding-top: var(--space-medium); }
.pad-top-large { padding-top: var(--space-large); }
.pad-top-xlarge { padding-top: var(--space-xlarge); }

.pad-bottom-none { padding-bottom: 0 !important; }
.pad-bottom-xsmall { padding-bottom: var(--space-xsmall); }
.pad-bottom-small { padding-bottom: var(--space-small); }
.pad-bottom-medium { padding-bottom: var(--space-medium); }
.pad-bottom-large { padding-bottom: var(--space-large); }
.pad-bottom-xlarge { padding-bottom: var(--space-xlarge); }

.pad-left-none { padding-left: 0 !important; }
.pad-left-xsmall { padding-left: var(--space-xsmall); }
.pad-left-small { padding-left: var(--space-small); }
.pad-left-medium { padding-left: var(--space-medium); }
.pad-left-large { padding-left: var(--space-large); }
.pad-left-xlarge { padding-left: var(--space-xlarge); }

.pad-right-none { padding-right: 0 !important; }
.pad-right-xsmall { padding-right: var(--space-xsmall); }
.pad-right-small { padding-right: var(--space-small); }
.pad-right-medium { padding-right: var(--space-medium); }
.pad-right-large { padding-right: var(--space-large); }
.pad-right-xlarge { padding-right: var(--space-xlarge); }

.marg-none { margin: 0 !important; }
.marg-xsmall { margin: var(--space-xsmall); }
.marg-small { margin: var(--space-small); }
.marg-medium { margin: var(--space-medium); }
.marg-large { margin: var(--space-large); }
.marg-xlarge { margin: var(--space-xlarge); }

.marg-vert-none { margin-block: 0 !important; }
.marg-vert-xsmall { margin-block: var(--space-xsmall); }
.marg-vert-small { margin-block: var(--space-small); }
.marg-vert-medium { margin-block: var(--space-medium); }
.marg-vert-large { margin-block: var(--space-large); }
.marg-vert-xlarge { margin-block: var(--space-xlarge); }

.marg-horz-none { margin-inline: 0 !important; }
.marg-horz-xsmall { margin-inline: var(--space-xsmall); }
.marg-horz-small { margin-inline: var(--space-small); }
.marg-horz-medium { margin-inline: var(--space-medium); }
.marg-horz-large { margin-inline: var(--space-large); }
.marg-horz-xlarge { margin-inline: var(--space-xlarge); }

.marg-top-none { margin-top: 0 !important; }
.marg-top-xsmall { margin-top: var(--space-xsmall); }
.marg-top-small { margin-top: var(--space-small); }
.marg-top-medium { margin-top: var(--space-medium); }
.marg-top-large { margin-top: var(--space-large); }
.marg-top-xlarge { margin-top: var(--space-xlarge); }
.margin-top-auto, .marg-top-auto { margin-top:auto !important; }

.marg-bottom-none { margin-bottom: 0 !important; }
.marg-bottom-xsmall { margin-bottom: var(--space-xsmall); }
.marg-bottom-small { margin-bottom: var(--space-small); }
.marg-bottom-medium { margin-bottom: var(--space-medium); }
.marg-bottom-large { margin-bottom: var(--space-large); }
.marg-bottom-xlarge { margin-bottom: var(--space-xlarge); }

.marg-left-none { margin-left: 0 !important; }
.marg-left-xsmall { margin-left: var(--space-xsmall); }
.marg-left-small { margin-left: var(--space-small); }
.marg-left-medium { margin-left: var(--space-medium); }
.marg-left-large { margin-left: var(--space-large); }
.marg-left-xlarge { margin-left: var(--space-xlarge); }

.marg-right-none { margin-right: 0 !important; }
.marg-right-xsmall { margin-right: var(--space-xsmall); }
.marg-right-small { margin-right: var(--space-small); }
.marg-right-medium { margin-right: var(--space-medium); }
.marg-right-large { margin-right: var(--space-large); }
.marg-right-xlarge { margin-right: var(--space-xlarge); }

/* ---- Overlap ----
   overlap-{side}-{size} pulls a block over its neighbour by that spacing
   token, and lifts it above the neighbour. Sides: top (over the block
   before it), bottom (the block after it slides underneath), start and
   end (the reading-direction sides: left and right on a left-to-right
   page, flipped on a right-to-left one). Stored by the Section, Row,
   Column and Box "Overlap" settings (top/bottom on all four, start/end on
   Column and Box).
   - A negative margin plus position: relative and z-index: 2. Two, not
     one: a neighbour with a background photo has .sbk-bg-content at
     z-index 1, which would otherwise paint over an overlap-bottom block.
   - The overlapped neighbour needs at least as much padding on that side
     as the overlap, or its content is covered.
   - A block with a background photo does not clip, so a panel may hang
     out of a photo Section as its child: it sticks out by the overlap
     minus the Section's padding on that side. A following Section with a
     photo of its own needs top padding at least as large as the hang, or
     its content paints over the panel.
   - start and end only from 768px; phones stack, so there is nothing
     beside the block to overlap. top and bottom apply at every width.
   - A Column overlapping sideways also drops its max-width, so it grows
     into the space its negative margin frees instead of leaving a gap at
     the row's end.
   - Declared after the margin classes, so it wins over a same-side
     marg-* size; marg-*-none's !important still wins. */
.overlap-top-xsmall { margin-top: calc(-1 * var(--space-xsmall)); }
.overlap-top-small { margin-top: calc(-1 * var(--space-small)); }
.overlap-top-medium { margin-top: calc(-1 * var(--space-medium)); }
.overlap-top-large { margin-top: calc(-1 * var(--space-large)); }
.overlap-top-xlarge { margin-top: calc(-1 * var(--space-xlarge)); }
.overlap-bottom-xsmall { margin-bottom: calc(-1 * var(--space-xsmall)); }
.overlap-bottom-small { margin-bottom: calc(-1 * var(--space-small)); }
.overlap-bottom-medium { margin-bottom: calc(-1 * var(--space-medium)); }
.overlap-bottom-large { margin-bottom: calc(-1 * var(--space-large)); }
.overlap-bottom-xlarge { margin-bottom: calc(-1 * var(--space-xlarge)); }
:is(.overlap-top-xsmall, .overlap-top-small, .overlap-top-medium, .overlap-top-large, .overlap-top-xlarge, .overlap-bottom-xsmall, .overlap-bottom-small, .overlap-bottom-medium, .overlap-bottom-large, .overlap-bottom-xlarge,
    .overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) {
    position: relative;
    z-index: 2;
}
@media (min-width: 768px) {
    .overlap-start-xsmall { margin-inline-start: calc(-1 * var(--space-xsmall)); }
    .overlap-start-small { margin-inline-start: calc(-1 * var(--space-small)); }
    .overlap-start-medium { margin-inline-start: calc(-1 * var(--space-medium)); }
    .overlap-start-large { margin-inline-start: calc(-1 * var(--space-large)); }
    .overlap-start-xlarge { margin-inline-start: calc(-1 * var(--space-xlarge)); }
    .overlap-end-xsmall { margin-inline-end: calc(-1 * var(--space-xsmall)); }
    .overlap-end-small { margin-inline-end: calc(-1 * var(--space-small)); }
    .overlap-end-medium { margin-inline-end: calc(-1 * var(--space-medium)); }
    .overlap-end-large { margin-inline-end: calc(-1 * var(--space-large)); }
    .overlap-end-xlarge { margin-inline-end: calc(-1 * var(--space-xlarge)); }
    [class*="grid-"]:is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) { max-width: none; }
}

/* Sideways overlap at tablet widths, 768 to 1023px (v0.6.0, brand design
   rev 2.55, 21ba). A Row there may wrap, and a flex item can't shrink below
   its widest word: a long H1 word at the desktop size made the overlap
   panel wider than half the row, so it wrapped onto its own line, kept its
   negative margin and hung past the Row's edge, where the Section clipped
   it. So:
   - a Row holding a sideways overlap Column stays on one line, and the
     overlap Column may shrink to its width (min-width: 0);
   - in that Column every heading takes its level's mobile size, as below
     768px (the desktop size returns from 1024px);
   - overflow-wrap: break-word on those headings is the last resort: a word
     too long even then breaks rather than overflows. No hyphenation.
   Only Columns with an overlap-start-* or overlap-end-* class; other
   panels and columns keep their sizes. */
@media (min-width: 768px) and (max-width: 1023px) {
    .flex:has(> :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge)) { flex-wrap: nowrap; }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) { min-width: 0; }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) h1, :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) .h1 { font-size: var(--fs-h1-mobile); }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) h2, :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) .h2 { font-size: var(--fs-h2-mobile); }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) h3, :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) .h3 { font-size: var(--fs-h3-mobile); }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) h4, :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) .h4 { font-size: var(--fs-h4-mobile); }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) h5, :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) .h5 { font-size: var(--fs-h5-mobile); }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) h6, :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) .h6 { font-size: var(--fs-h6-mobile); }
    :is(.overlap-start-xsmall, .overlap-start-small, .overlap-start-medium, .overlap-start-large, .overlap-start-xlarge, .overlap-end-xsmall, .overlap-end-small, .overlap-end-medium, .overlap-end-large, .overlap-end-xlarge) :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { overflow-wrap: break-word; }
}

/* ---- Typography ----
   Every size below reads a variable computed server-side (see
   brand-kit/inc/brand-kit-output.php) -- either an explicit per-step
   override, or the type-scale calculation. No calc()/branching lives in
   CSS; this file just consumes the final numbers. */
body {
    font-family: var(--font-body);
    background: var(--body-bg);
}
h1, .h1 { font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-h1-mobile); font-weight: var(--fw-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); padding-top: var(--pt-h1); padding-bottom: var(--pb-h1); margin-top: var(--mt-h1); margin-bottom: var(--mb-h1); }
h2, .h2 { font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-h2-mobile); font-weight: var(--fw-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); padding-top: var(--pt-h2); padding-bottom: var(--pb-h2); margin-top: var(--mt-h2); margin-bottom: var(--mb-h2); }
h3, .h3 { font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-h3-mobile); font-weight: var(--fw-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); padding-top: var(--pt-h3); padding-bottom: var(--pb-h3); margin-top: var(--mt-h3); margin-bottom: var(--mb-h3); }
h4, .h4 { font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-h4-mobile); font-weight: var(--fw-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); padding-top: var(--pt-h4); padding-bottom: var(--pb-h4); margin-top: var(--mt-h4); margin-bottom: var(--mb-h4); }
h5, .h5 { font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-h5-mobile); font-weight: var(--fw-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); padding-top: var(--pt-h5); padding-bottom: var(--pb-h5); margin-top: var(--mt-h5); margin-bottom: var(--mb-h5); }
h6, .h6 { font-family: var(--font-heading); color: var(--color-heading); font-size: var(--fs-h6-mobile); font-weight: var(--fw-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-h6); padding-top: var(--pt-h6); padding-bottom: var(--pb-h6); margin-top: var(--mt-h6); margin-bottom: var(--mb-h6); }
@media (min-width: 768px) {
    h1, .h1 { font-size: var(--fs-h1-desktop); }
    h2, .h2 { font-size: var(--fs-h2-desktop); }
    h3, .h3 { font-size: var(--fs-h3-desktop); }
    h4, .h4 { font-size: var(--fs-h4-desktop); }
    h5, .h5 { font-size: var(--fs-h5-desktop); }
    h6, .h6 { font-size: var(--fs-h6-desktop); }
}

/* Accent font: applies automatically to <i>/<em> nested inside any heading --
   e.g. typing "Market<em>Fully</em>" and italicizing "Fully" with the normal
   editor toolbar. No new authoring convention, matches how content already
   marks up brand emphasis. */
h1 i, h2 i, h3 i, h4 i, h5 i, h6 i,
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
.h1 i, .h2 i, .h3 i, .h4 i, .h5 i, .h6 i {
    font-family: var(--font-accent);
    font-style: italic;
}

/* Font utility classes -- override the contextual default font-family on
   any element, regardless of its normal role (heading-font on a
   paragraph, body-font on a heading, accent-font on plain text that
   isn't a semantic <em>/<i> -- e.g. the "why" a brand's accent font
   might be wanted somewhere the auto-applied rule above doesn't reach).
   Add via "Additional CSS Class(es)" in the block editor's Advanced
   panel -- no special block support needed. !important, matching this
   project's existing convention for a utility class whose whole job is
   to force an override (.desktop-only-flex, .hide-on-desktop, etc.)
   regardless of what specificity a different rule elsewhere happens to
   have. Deliberately just font-family -- unlike the <em>/<i> accent rule
   above, .accent-font does NOT force italic, since it's meant for
   arbitrary text, not specifically emphasis. */
.heading-font { font-family: var(--font-heading) !important; }
.body-font { font-family: var(--font-body) !important; }
.accent-font { font-family: var(--font-accent) !important; }

a { color: var(--color-link); }
a:hover { color: var(--color-link-hover); }
/* A link in running text (a paragraph, a core List's item, a table cell,
   a caption, a quote) is underlined on a dark surface (request 2, brand
   design 21au a): there the link and the text around it are both white,
   so colour alone no longer tells them apart. .on-dark sets
   --text-link-decoration, .on-light puts it back. Menus (nav and footer
   lists are not core Lists, and a core List in the footer counts as a
   menu), buttons and button-styled links are left alone, and any rule
   with a class beats this one (zero specificity beyond the a). */
:where(p, td, dd, figcaption, blockquote, .wp-block-list:not(.footer-section *) > li) a:where(:not(.wp-block-button__link, [class*="button-"])) {
    text-decoration-line: var(--text-link-decoration, none);
}

/* Focus ring (request 27, brand design 21au): every keyboard-focused link,
   button, field and focusable element draws a 2px ring in the heading
   colour of the surface it sits on -- the kit's heading colour on light
   surfaces, white under .on-dark (bg-primary sections included), the
   docked bar's text colour on a docked header -- so it keeps 3:1 where a
   light primary or secondary would not. Read through a fallback, not
   set on :root: a custom property set on :root resolves there once, so
   it would not follow .on-dark/.on-light below it. A site may set
   --focus-ring-color itself (it then applies on every surface).
   Shows on focus only: no layout change. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--focus-ring-color, var(--color-heading));
    outline-offset: 2px;
}

.font-small { font-size: var(--fs-small-mobile); font-weight: var(--fw-small); line-height: var(--lh-small); letter-spacing: var(--ls-small); } /* spacing: before the spacing classes */
.font-medium { font-size: 1.8rem; line-height: 1.2; }
.font-large { font-size: var(--fs-large-mobile); font-weight: var(--fw-large); line-height: var(--lh-large); letter-spacing: var(--ls-large); } /* spacing: before the spacing classes */
.font-uppercase { text-transform: uppercase; }
.font-italic { font-style: italic; }
.font-underline { text-decoration: underline; }
@media (min-width: 768px) {
    .font-small { font-size: var(--fs-small-desktop); }
    .font-large { font-size: var(--fs-large-desktop); }
}

.p, p {
    font-family: var(--font-body);
    color: var(--color-body);
    font-weight: var(--fw-body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
    font-size: var(--fs-body-mobile);
    padding-top: var(--pt-body);
    padding-bottom: var(--pb-body);
    margin-top: var(--mt-body);
    margin-bottom: var(--mb-body);
}
/* li matches paragraph font-size only (not the rest of .p/p's properties --
   color/weight/spacing/padding are left to inherit normally) -- reads the
   same --fs-body-* variables, so a Brand Kit or type-scale change to
   paragraph size stays in sync automatically, no separate list-size
   setting to fall out of date. */
li { font-size: var(--fs-body-mobile); }

/* Lists take the same text color as paragraphs. Before this nothing set a
   list color, so list text fell back to the browser default black: black on
   a navy page, black next to navy paragraphs, and
   black on any on-dark section. --color-body is the same variable .p/p use,
   so the Brand Kit default, .on-dark/.on-light (Section, Column, Box) and the
   docked header all apply to lists automatically.
   Set on the LIST, not on li: li (and its ::marker, and any inline child
   with no color of its own) inherits it, so a more specific color on the
   list itself still wins. A rule on li would beat inheritance and override
   those, e.g. a site-specific plugin's ul.checkmark-white { color: #fff }. */
ul, ol { color: var(--color-body); }

/* Generic content list styling (a plain core/list block inside the_content(),
   Brand Kit blocks, etc.) -- solid bullets at every nesting level (browser
   default only uses a filled disc at the top level, switching to a hollow
   circle/square for nested lists) and consistent vertical rhythm between
   items. Bare `ul`/`li` selectors, same convention as `.p, p` and the
   font-size rule above -- deliberately NOT scoped to a content wrapper
   class, since a core/list block can appear in any page's block content,
   not just the blog.
   `list-style-position: inside` (rather than the browser default `outside`
   + an explicit indent) is deliberate: reset.css's `* { margin: 0; padding:
   0; }` already strips `ul`'s default `padding-left`, and re-adding a
   left-padding utility here would leak into every OTHER real <ul> on the
   site that doesn't expect one. `inside` needs no indent at all, so it's
   collision-free by construction.
   The bare `ul`/`li` selectors below DO still collide with `list-style`/
   `padding-bottom` specifically, since reset.css's own `ul, ol { list-
   style: none; }` is the SAME specificity and this file loads after it --
   confirmed by testing, not assumed: it silently put bullets on the
   primary nav, the header CTA menu, and (missed on a first pass) BOTH
   mobile nav panel menus, none of which had their own more-specific
   list-style override to fall back on. Rather than enumerate every
   individual nav/menu class one at a time (fragile -- a new menu location
   added later would silently regress), `.site-header`/`.site-footer` are
   reset wholesale below: those two structural landmarks never contain
   real prose content, so nothing there should ever want a bullet or the
   content spacing. `.table-of-contents`/`.checkmarks`/`.xmarks` live
   outside those landmarks (in the blog content/sidebar) and already have
   their own `list-style: none` from before this change; they only needed
   the new `padding-bottom` reset, added here for the same reason. */
ul, ul ul, ul ul ul {
    list-style-type: disc;
    list-style-position: inside;
}
li {
    padding-bottom: 1.5rem;
}
.site-header ul, .site-footer ul {
    list-style: none;
}
.site-header li, .site-footer li,
.table-of-contents li,
.checkmarks li, .xmarks li {
    padding-bottom: 0;
}
.subtitle { font-size: var(--fs-subtitle-mobile); font-weight: var(--fw-subtitle); line-height: var(--lh-subtitle); letter-spacing: var(--ls-subtitle); padding-top: var(--pt-subtitle); padding-bottom: var(--pb-subtitle); margin-top: var(--mt-subtitle); margin-bottom: var(--mb-subtitle); } /* used under titles */
@media (min-width: 768px) {
    .p, p { font-size: var(--fs-body-desktop); }
    li { font-size: var(--fs-body-desktop); }
    .subtitle { font-size: var(--fs-subtitle-desktop); }
}

/* ---- Color context classes ----
   Put on any Section/Row/Column/Box wrapper to flip every heading and
   paragraph nested inside it at once -- redeclaring the variable, not
   just setting a color, is what makes this cascade correctly to deeply
   nested content (an element's own explicit color rule would otherwise
   ignore a plain inherited color from an ancestor).

   --nav-link-hover-color: never redeclared to the same value as
   --nav-link-color (a real bug once: since the header ALWAYS carries
   .on-dark or .on-light, every hover became a visible no-op and masked
   the Brand Kit's "Nav link hover" field). Since v0.6.0 (request 2,
   brand design 21au) .on-dark sets it to the dark-surface ghost hover,
   like the on-dark link hover, because the kit's one hover colour is
   chosen for light surfaces; .on-light reads the kit's value back from
   :root (--nav-link-hover-color-light), so a light header, a light
   dropdown and the phone panel keep it. The docked bar's values come
   from the Brand Kit's output (.site-header.is-docked), which knows the
   docked mode. */
/* ---- Light-context button/tag aliases: what makes .on-light a real
   inverse of .on-dark ----

   .on-dark reassigns all 24 --btn-*-* variables to their --btn-*-dark-*
   counterparts. The STANDARD (light-surface) values live in those same
   --btn-*-* names, which means that once .on-dark has reassigned them on an
   ancestor there is nothing left in the cascade for a nested element to
   restore -- so a white card inside a dark section rendered the dark-surface
   button variant (a white button on a white card). There was no way to opt
   back out.

   These aliases capture the light values under their own stable names. A
   var() inside a custom-property declaration is substituted at
   computed-value time ON THE DECLARING ELEMENT, so --btn-solid-light-bg
   computes here, at :root, from whatever won the cascade for
   --btn-solid-bg -- the Brand Kit's own value, since its <style> prints
   later in <head> than this file and therefore
   wins on :root. The alias then inherits that frozen light value all the
   way down, including into .on-dark subtrees where --btn-solid-bg itself
   has been reassigned. That is what .on-light below reads back.

   Symmetric with --btn-*-dark-* by design. Nothing emits a --btn-*-light-*
   set today (confirmed by grep before adding these), so there is no
   collision; if the Brand Kit ever emits one it simply supersedes these
   with the same meaning. */
:root {
    --btn-primary-light-bg: var(--btn-primary-bg);
    --btn-primary-light-border: var(--btn-primary-border);
    --btn-primary-light-text: var(--btn-primary-text);
    --btn-primary-light-hover-bg: var(--btn-primary-hover-bg);
    --btn-primary-light-hover-border: var(--btn-primary-hover-border);
    --btn-primary-light-hover-text: var(--btn-primary-hover-text);
    --btn-solid-light-bg: var(--btn-solid-bg);
    --btn-solid-light-border: var(--btn-solid-border);
    --btn-solid-light-text: var(--btn-solid-text);
    --btn-solid-light-hover-bg: var(--btn-solid-hover-bg);
    --btn-solid-light-hover-border: var(--btn-solid-hover-border);
    --btn-solid-light-hover-text: var(--btn-solid-hover-text);
    --btn-outline-light-bg: var(--btn-outline-bg);
    --btn-outline-light-border: var(--btn-outline-border);
    --btn-outline-light-text: var(--btn-outline-text);
    --btn-outline-light-hover-bg: var(--btn-outline-hover-bg);
    --btn-outline-light-hover-border: var(--btn-outline-hover-border);
    --btn-outline-light-hover-text: var(--btn-outline-hover-text);
    --btn-ghost-light-bg: var(--btn-ghost-bg);
    --btn-ghost-light-border: var(--btn-ghost-border);
    --btn-ghost-light-text: var(--btn-ghost-text);
    --btn-ghost-light-hover-bg: var(--btn-ghost-hover-bg);
    --btn-ghost-light-hover-border: var(--btn-ghost-hover-border);
    --btn-ghost-light-hover-text: var(--btn-ghost-hover-text);
    --color-tag-light: var(--color-tag);
    /* Links (request 2): the kit's link, link hover and nav hover, read
       back by .on-light inside an .on-dark. */
    --color-link-light: var(--color-link);
    --color-link-hover-light: var(--color-link-hover);
    --nav-link-hover-color-light: var(--nav-link-hover-color);
    /* A nav hover on dark must show (brand design rev 2.59, 21be): the
       dark ghost hover is white unless the kit sets it, the same as the
       resting nav colour there, so the hover underlines instead. The
       Brand Kit prints none when its ghost dark hover is another colour. */
    --nav-hover-line-on-dark: underline;
}

.on-dark {
    --color-heading: var(--color-white);
    /* Brand Kit color_body_on_dark and color_tag_on_dark (v0.7.0, request
       35a), printed only when set; unset, white. */
    --color-body: var(--color-body-on-dark, var(--color-white));
    --color-tag: var(--color-tag-on-dark, var(--color-white));
    --nav-link-color: var(--color-white);
    /* Links on a dark surface (request 2, brand design 21au): white,
       hovering to the dark-surface ghost hover, as in the dark footer;
       the nav hover follows (a dark header, a dark dropdown). */
    /* Brand Kit color_link_on_dark, color_link_hover_on_dark and
       nav_link_hover_color_on_dark (v0.7.0, request 2), printed only when set. */
    --color-link: var(--color-link-on-dark, var(--color-white));
    --color-link-hover: var(--color-link-hover-on-dark, var(--btn-ghost-dark-hover-text));
    --nav-link-hover-color: var(--nav-link-hover-color-on-dark, var(--btn-ghost-dark-hover-text));
    --nav-link-hover-line: var(--nav-hover-line-on-dark);
    --text-link-decoration: underline;
    --btn-primary-bg: var(--btn-primary-dark-bg);
    --btn-primary-border: var(--btn-primary-dark-border);
    --btn-primary-text: var(--btn-primary-dark-text);
    --btn-primary-hover-bg: var(--btn-primary-dark-hover-bg);
    --btn-primary-hover-border: var(--btn-primary-dark-hover-border);
    --btn-primary-hover-text: var(--btn-primary-dark-hover-text);
    --btn-solid-bg: var(--btn-solid-dark-bg);
    --btn-solid-border: var(--btn-solid-dark-border);
    --btn-solid-text: var(--btn-solid-dark-text);
    --btn-solid-hover-bg: var(--btn-solid-dark-hover-bg);
    --btn-solid-hover-border: var(--btn-solid-dark-hover-border);
    --btn-solid-hover-text: var(--btn-solid-dark-hover-text);
    --btn-outline-bg: var(--btn-outline-dark-bg);
    --btn-outline-border: var(--btn-outline-dark-border);
    --btn-outline-text: var(--btn-outline-dark-text);
    --btn-outline-hover-bg: var(--btn-outline-dark-hover-bg);
    --btn-outline-hover-border: var(--btn-outline-dark-hover-border);
    --btn-outline-hover-text: var(--btn-outline-dark-hover-text);
    --btn-ghost-bg: var(--btn-ghost-dark-bg);
    --btn-ghost-border: var(--btn-ghost-dark-border);
    --btn-ghost-text: var(--btn-ghost-dark-text);
    --btn-ghost-hover-bg: var(--btn-ghost-dark-hover-bg);
    --btn-ghost-hover-border: var(--btn-ghost-dark-hover-border);
    --btn-ghost-hover-text: var(--btn-ghost-dark-hover-text);
}
/* .on-light is a genuine inverse of .on-dark, not a partial one. It used to
   redeclare only these first three variables, which made it a no-op for
   buttons and tags: an element marked as a light surface INSIDE a dark
   section still inherited .on-dark's button/tag colors. That is the
   documented "context classes must explicitly redeclare every variable that
   needs to flip" gotcha, and it is why a .button-solid on a white card in a
   dark hero came out as the dark-surface (white) variant.

   Outside a dark section every declaration below resolves to exactly the
   value :root already holds, so this is a no-op there -- it only does
   anything where .on-dark had overridden something, which is precisely the
   intent. Reached from the editor with no new vocabulary: a Section/Column/
   Box's "Text color -> Light" setting already emits this class, or type
   `on-light` into Additional CSS Class(es) on any other element.

   The phone menu (.mobile-nav-panel) is a white panel, so it is a light
   surface (v0.5.2): it sits inside the header, and in a dark header (a dark
   first Section, or docked in dark mode) it used to inherit the dark context
   and show white links on white. Brand Kit mobile_panel_bg dark (v0.7.0,
   request 35b) gives it .on-dark instead; :where() keeps this rule's weight. */
.on-light,
.mobile-nav-panel:where(:not(.on-dark)) {
    --color-heading: var(--color-dark);
    --color-body: var(--color-dark);
    --nav-link-color: var(--color-dark);
    --color-tag: var(--color-tag-light);
    --color-link: var(--color-link-light);
    --color-link-hover: var(--color-link-hover-light);
    --nav-link-hover-color: var(--nav-link-hover-color-light);
    --nav-link-hover-line: none;
    --text-link-decoration: none;
    --btn-primary-bg: var(--btn-primary-light-bg);
    --btn-primary-border: var(--btn-primary-light-border);
    --btn-primary-text: var(--btn-primary-light-text);
    --btn-primary-hover-bg: var(--btn-primary-light-hover-bg);
    --btn-primary-hover-border: var(--btn-primary-light-hover-border);
    --btn-primary-hover-text: var(--btn-primary-light-hover-text);
    --btn-solid-bg: var(--btn-solid-light-bg);
    --btn-solid-border: var(--btn-solid-light-border);
    --btn-solid-text: var(--btn-solid-light-text);
    --btn-solid-hover-bg: var(--btn-solid-light-hover-bg);
    --btn-solid-hover-border: var(--btn-solid-light-hover-border);
    --btn-solid-hover-text: var(--btn-solid-light-hover-text);
    --btn-outline-bg: var(--btn-outline-light-bg);
    --btn-outline-border: var(--btn-outline-light-border);
    --btn-outline-text: var(--btn-outline-light-text);
    --btn-outline-hover-bg: var(--btn-outline-light-hover-bg);
    --btn-outline-hover-border: var(--btn-outline-light-hover-border);
    --btn-outline-hover-text: var(--btn-outline-light-hover-text);
    --btn-ghost-bg: var(--btn-ghost-light-bg);
    --btn-ghost-border: var(--btn-ghost-light-border);
    --btn-ghost-text: var(--btn-ghost-light-text);
    --btn-ghost-hover-bg: var(--btn-ghost-light-hover-bg);
    --btn-ghost-hover-border: var(--btn-ghost-light-hover-border);
    --btn-ghost-hover-text: var(--btn-ghost-light-hover-text);
}

/* A light header's nav takes the Brand Kit's nav link colour (request 44):
   the kit prints --nav-link-color-kit only when nav_link_color is saved,
   so unset it stays the dark colour. The header's mode decides, not its
   background: a dark header stays white, an overlay header uses it only
   while in light mode. .on-light on a dropdown and the phone panel keep
   the dark colour (they are not .site-header). A docked bar follows
   .site-header.is-docked below: its docked text colour, or the kit's
   colour when the Brand Kit's docked block says it reaches 4.5:1. */
.site-header.on-light {
    --nav-link-color: var(--nav-link-color-kit, var(--color-dark));
}

/* Tags — now use --color-primary instead of a hardcoded hex */
:root {
    --color-tag: var(--color-primary); /* default: just uses primary; a brand kit can override independently */
}
.tag-center, .tag-left {
    position: relative;
    color: var(--color-tag); /* the kit's color_tag; white in .on-dark, the kit's again in .on-light (request 1: nothing read it) */
    text-transform: var(--tag-transform, uppercase); /* Brand Kit tag_transform (R3); uppercase unless a kit sets none */
    font-weight: var(--fw-tag);
    letter-spacing: var(--ls-tag);
    line-height: var(--lh-tag);
    font-size: var(--fs-tag-mobile);
    padding-top: var(--pt-tag);
    padding-bottom: var(--pb-tag);
    margin-top: var(--mt-tag);
    margin-bottom: var(--mb-tag);
}
@media (min-width: 768px) {
    .tag-center, .tag-left { font-size: var(--fs-tag-desktop); }
}
.tag-center { text-align: center; }

/* ---- Font weight ----
   After every text style that sets a weight of its own (.font-small,
   .font-large, .p, .subtitle, .tag-left/.tag-center), so a weight class
   next to one of them wins: class="font-large font-bold" is bold. The
   styles keep their Brand Kit weight (--fw-small etc.) when no weight
   class is set. Headings (.h1-.h6) come before; core Buttons have their
   own weight rules (Text classes on a core Button, below). */
.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-bold { font-weight: 700; }
.font-heavy { font-weight: 800; }
.font-black { font-weight: 900; }

/* ---- Color roles ---- */
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-dark { background-color: var(--color-dark); }
.bg-light { background-color: var(--color-light); }
.bg-white { background-color: var(--color-white); }
.bg-muted { background-color: var(--color-muted); }

.color-primary { color: var(--color-primary); }
.color-secondary { color: var(--color-secondary); }
.color-accent { color: var(--color-accent); }
.color-dark { color: var(--color-dark); }
.color-light { color: var(--color-light); }
.color-white { color: var(--color-white); }
.color-muted { color: var(--color-muted); }

.border-primary { border: 1px solid var(--color-primary); }
.border-secondary { border: 1px solid var(--color-secondary); }
.border-accent { border: 1px solid var(--color-accent); }
.border-dark { border: 1px solid var(--color-dark); }
.border-light { border: 1px solid var(--color-light); }
.border-white { border: 1px solid var(--color-white); }
.border-muted { border: 1px solid var(--color-muted); }
/* Composable modifier -- combine with any .border-* above, e.g.
   class="border-primary border-thick". Declared after the border-*
   rules so its border-width wins over their shorthand when combined. */
.border-thick { border-width: 3px; }

.border-top-primary { border-top: 4px solid var(--color-primary); }
.border-top-secondary { border-top: 4px solid var(--color-secondary); }
.border-top-accent { border-top: 4px solid var(--color-accent); }
.border-top-dark { border-top: 4px solid var(--color-dark); }
.border-top-light { border-top: 4px solid var(--color-light); }
.border-top-muted { border-top: 4px solid var(--color-muted); }

.border-underline-primary { border-bottom: 2px solid var(--color-primary); }
.border-underline-secondary { border-bottom: 2px solid var(--color-secondary); }
.border-underline-accent { border-bottom: 2px solid var(--color-accent); }
.border-underline-dark { border-bottom: 2px solid var(--color-dark); }
.border-underline-light { border-bottom: 2px solid var(--color-light); }
.border-underline-white { border-bottom: 2px solid var(--color-white); }
.border-underline-muted { border-bottom: 2px solid var(--color-muted); }

.hover-bg-primary:hover { background-color: var(--color-primary); }
.hover-bg-secondary:hover { background-color: var(--color-secondary); }
.hover-bg-accent:hover { background-color: var(--color-accent); }
.hover-bg-dark:hover { background-color: var(--color-dark); }
.hover-bg-light:hover { background-color: var(--color-light); }
.hover-bg-white:hover { background-color: var(--color-white); }
.hover-bg-muted:hover { background-color: var(--color-muted); }

.hover-color-primary:hover { color: var(--color-primary); }
.hover-color-secondary:hover { color: var(--color-secondary); }
.hover-color-accent:hover { color: var(--color-accent); }
.hover-color-dark:hover { color: var(--color-dark); }
.hover-color-light:hover { color: var(--color-light); }
.hover-color-white:hover { color: var(--color-white); }
.hover-color-muted:hover { color: var(--color-muted); }

.hover-border-primary:hover { border-color: var(--color-primary); }
.hover-border-secondary:hover { border-color: var(--color-secondary); }
.hover-border-accent:hover { border-color: var(--color-accent); }
.hover-border-dark:hover { border-color: var(--color-dark); }
.hover-border-light:hover { border-color: var(--color-light); }
.hover-border-white:hover { border-color: var(--color-white); }
.hover-border-muted:hover { border-color: var(--color-muted); }

/* ---- Buttons ----
   Shared shape (padding, font, transform, border-width, radius, transition)
   applies to every style equally. Each style's colors -- and its hover
   colors -- are independent CSS variables, with a light-context value as
   the default and a dark-context value swapped in automatically by
   .on-dark (see above). A plain core Button block with no extra class
   defaults to Primary; add .button-solid / .button-outline / .button-ghost
   via "Additional CSS class(es)" for the others. */
.button, .wp-block-button__link,
.button-primary, .button-solid, .button-outline, .button-ghost {
    display: inline-block;
    padding: var(--button-padding);
    font-family: var(--button-font, inherit); /* Brand Kit button_font (v0.7.0); unset, the font around it */
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    text-transform: var(--button-text-transform);
    border-width: var(--button-border-width);
    border-style: solid;
    border-radius: var(--button-radius);
    background-clip: padding-box; /* keeps a gradient strictly inside the border -- without this, a solid border-style (even with a transparent border-color) can cause a visible seam/color-swap right at rounded corners where a gradient meets the border */
    text-align: center;
}
/* Brand Kit button_letter_spacing (v0.7.0, request 37). These can be <button>s
   and can carry a .font-* class, so with nothing to fall back on, no value here
   may change them: zero specificity lets any other rule win, and unset,
   revert leaves a link inheriting and a <button> at the browser's normal. */
:where(.button,
.button-primary, .button-solid, .button-outline, .button-ghost) {
    letter-spacing: var(--button-letter-spacing, revert);
}
/* WordPress's own :root :where(.wp-block-button__link) sets letter-spacing:
   inherit, which beats zero specificity, so the core Button needs a real
   selector. Unset, inherit is what WordPress gives it today. */
a.wp-block-button__link, button.wp-block-button__link, input.wp-block-button__link {
    letter-spacing: var(--button-letter-spacing, inherit);
}

.button, .wp-block-button__link, .button-primary {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
    color: var(--btn-primary-text);
    background-size: 105%;
    background-position: center;
}
.button:hover, .wp-block-button__link:hover, .button-primary:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    color: var(--btn-primary-hover-text);
}

.button-solid {
    background: var(--btn-solid-bg);
    border-color: var(--btn-solid-border);
    color: var(--btn-solid-text);
}
.button-solid:hover {
    background: var(--btn-solid-hover-bg);
    border-color: var(--btn-solid-hover-border);
    color: var(--btn-solid-hover-text);
}

.button-outline {
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}
.button-outline:hover {
    background: var(--btn-outline-hover-bg);
    border-color: var(--btn-outline-hover-border);
    color: var(--btn-outline-hover-text);
}

.button-ghost {
    background: var(--btn-ghost-bg);
    border-color: var(--btn-ghost-border);
    color: var(--btn-ghost-text);
}
.button-ghost:hover {
    background: var(--btn-ghost-hover-bg);
    border-color: var(--btn-ghost-hover-border);
    color: var(--btn-ghost-hover-text);
}

/* core/button's supports.className officially puts a custom class on the
   WRAPPING .wp-block-button div, not the inner .wp-block-button__link --
   and Gutenberg's "Attempt Recovery" (which re-derives attributes purely
   from parsing raw HTML against the block schema) only recognizes the
   class in that official location. The three rules above still work when
   a variant class lands on the link directly (an already-published
   workaround this framework needs to keep rendering correctly), but they
   also match a .wp-block-button div carrying the same class -- painting
   the wrapper itself with a background/border/padding box behind the real
   button. These two-class selectors (.wp-block-button.button-*) are more
   specific than the single-class rules above regardless of source order,
   so they win whenever the div carries the class: first neutralize
   whatever shape/color leaked onto the div, then forward the real
   variant styling to the actual visible link inside. */
.wp-block-button.button-solid,
.wp-block-button.button-outline,
.wp-block-button.button-ghost {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.wp-block-button.button-solid > .wp-block-button__link {
    background: var(--btn-solid-bg);
    border-color: var(--btn-solid-border);
    color: var(--btn-solid-text);
}
.wp-block-button.button-solid > .wp-block-button__link:hover {
    background: var(--btn-solid-hover-bg);
    border-color: var(--btn-solid-hover-border);
    color: var(--btn-solid-hover-text);
}
.wp-block-button.button-outline > .wp-block-button__link {
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}
.wp-block-button.button-outline > .wp-block-button__link:hover {
    background: var(--btn-outline-hover-bg);
    border-color: var(--btn-outline-hover-border);
    color: var(--btn-outline-hover-text);
}
.wp-block-button.button-ghost > .wp-block-button__link {
    background: var(--btn-ghost-bg);
    border-color: var(--btn-ghost-border);
    color: var(--btn-ghost-text);
}
.wp-block-button.button-ghost > .wp-block-button__link:hover {
    background: var(--btn-ghost-hover-bg);
    border-color: var(--btn-ghost-hover-border);
    color: var(--btn-ghost-hover-text);
}

/* Space between buttons side by side in a core Buttons group. WordPress
   gives a flex group 0.5em (5px at the 10px root) in a zero-specificity
   :where() rule, and a classic theme without theme.json cannot set the
   block's own gap, so a button and the link beside it looked glued.
   Horizontal only: buttons that wrap onto a second line, and a vertical
   group, keep WordPress's 0.5em between rows. --wp--style--block-gap is
   what core's width-set buttons (25/50/75%) subtract for the gap, so a
   horizontal group gets the same value or two 50% buttons would no longer
   fit one line (a vertical group has no gap beside a button to subtract). */
.wp-block-buttons {
    column-gap: var(--space-medium);
}
.wp-block-buttons:not(.is-vertical) {
    --wp--style--block-gap: var(--space-medium);
}

/* Text classes on a core Button. The editor puts "Additional CSS class(es)"
   on the .wp-block-button wrapper, but the link inside sets its own size,
   weight and case from the --button-* variables, so .font-small or
   .font-uppercase on the wrapper never reached the text. When the wrapper
   carries one of these classes, the link gets the class's value. Set
   directly, not inherited: a variant class on the same wrapper
   (.button-outline etc.) gives the wrapper the button's own size. */
.wp-block-button.font-small > .wp-block-button__link { font-size: var(--fs-small-mobile); }
.wp-block-button.font-medium > .wp-block-button__link { font-size: 1.8rem; }
.wp-block-button.font-large > .wp-block-button__link { font-size: var(--fs-large-mobile); }
@media (min-width: 768px) {
    .wp-block-button.font-small > .wp-block-button__link { font-size: var(--fs-small-desktop); }
    .wp-block-button.font-large > .wp-block-button__link { font-size: var(--fs-large-desktop); }
}
.wp-block-button.font-regular > .wp-block-button__link { font-weight: 400; }
.wp-block-button.font-bold > .wp-block-button__link { font-weight: 700; }
.wp-block-button.font-heavy > .wp-block-button__link { font-weight: 800; }
.wp-block-button.font-black > .wp-block-button__link { font-weight: 900; }
.wp-block-button.font-uppercase > .wp-block-button__link { text-transform: uppercase; }
.wp-block-button.font-italic > .wp-block-button__link { font-style: italic; }
.wp-block-button.font-underline > .wp-block-button__link { text-decoration: underline; }

/* ---- Shape ---- */
.rounded, .wp-block-image.rounded img { border-radius: var(--radius-default, 8px); }
.rounded-top, .wp-block-image.rounded-top img { border-radius: var(--radius-default, 8px) var(--radius-default, 8px) 0 0; }
.rounded-bottom, .wp-block-image.rounded-bottom img { border-radius: 0 0 var(--radius-default, 8px) var(--radius-default, 8px); }
.rounded-squared, .wp-block-image.rounded-squared img { border-radius: var(--radius-squared, 16px); }
.rounded-full, .wp-block-image.rounded-full img { border-radius: 9999px; }

/* Shadow depths. Fixed, not Brand Kit fields: --shadow-soft is the
   .box-shadow value every earlier version used, --shadow-medium a second,
   deeper one for raised cards and callouts in the theme's pattern CSS.
   Readers outside this file use a fallback equal to these values, so they
   also render on v0.3.0, which has no tokens. */
:root {
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.box-shadow { box-shadow: var(--shadow-soft); }

/* border-radius on a container never clips its children by itself --
   needs overflow:hidden too. Scoped specifically to core/image's own
   wrapper (.wp-block-image) rather than adding overflow:hidden to .rounded
   etc. generally, since that would also affect Box/Column uses of the
   same classes where content is sometimes meant to intentionally overflow
   (see the overflow-visible frame-breaking pattern elsewhere in this file). */
.wp-block-image.rounded,
.wp-block-image.rounded-top,
.wp-block-image.rounded-bottom,
.wp-block-image.rounded-squared,
.wp-block-image.rounded-full {
    overflow: hidden;
}

/* Gradient border -- a real utility class specifically because this
   technique (multi-layer background with padding-box/border-box origins)
   cannot go through the customStyle escape hatch at all: WordPress's own
   get_block_wrapper_attributes() runs any style="" value through
   safecss_filter_attr(), which checks each CSS declaration individually
   against a fixed, WordPress-controlled allowlist -- this pattern isn't
   on it, so it silently gets dropped rather than causing a visible error.
   A plain class name never goes through that filter at all, since it
   isn't CSS being parsed. Add "gradient-border" via a block's own
   "Additional CSS Class(es)" field, not customStyle. */
.gradient-border {
    border: 2px solid transparent;
    background-image:
            linear-gradient(var(--color-white), var(--color-white)),
            linear-gradient(135deg, var(--color-accent), var(--color-primary), var(--color-secondary));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}
.relative { position: relative; }
.h-full { height: 100%; } /* fills an equal-height flex column -- Row's default flex stretch already makes columns equal height, this makes a Box/content inside actually fill that height rather than sitting at its own natural size */

.absolute-img { position: absolute; }
.overflow-visible { overflow: visible; }
.overflow-hidden { overflow: hidden; }
.divider-top-light { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.divider-top-dark { border-top: 1px solid rgba(0, 0, 0, 0.1); }

/* Full-bleed background video/image behind a Section's content -- built as
   a reusable pattern (plain classes), not yet a dedicated block attribute,
   since it isn't confirmed to recur across other pages. Promote it to a
   real Section option if/when it does. Video plays on tablet/desktop;
   a static poster image replaces it below 768px (lighter, no autoplay
   data/battery cost on phones) -- both elements always exist in the
   markup, CSS just toggles which one shows.
   Usage: Section (Full width) gets the "section-bg-media" class; a Custom
   HTML block holding the <video>/<img> tags goes first inside it; the Row
   holding the actual content goes second (add "container" as its own
   class too if it should stay reading-width against the full-bleed
   background, matching how Section's own align:full docs already
   describe this same nest-a-Row-for-constrained-text pattern).
   Put the file in the <video> tag's own src attribute, NEVER a nested
   <source> element: wp_kses allows <video src> but strips <source> on any
   non-Super-Admin save, leaving an empty player that only shows the poster
   (this happened to a live homepage video on 2026-09-23). */
.section-bg-media {
    position: relative;
    overflow: hidden;
}
.section-bg-media .bg-video,
.section-bg-media .bg-video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.section-bg-media .bg-video-poster {
    display: none;
}
@media (max-width: 767px) {
    .section-bg-media .bg-video {
        display: none;
    }
    .section-bg-media .bg-video-poster {
        display: block;
    }
}
.section-bg-media > .wp-block-sbk-row {
    position: relative;
    z-index: 1;
}

/* Optional top fade -- softens the hard edge where a section's background
   video/image starts, transitioning from solid white (matching whatever
   sits above it) down to transparent. Opt-in via "has-top-fade" alongside
   "section-bg-media", same pattern as the ticker's edge-fade toggle.
   z-index ties with the Row above (1) -- real content (the Row) still
   wins and stays legible on top, since it comes later in source order;
   the fade only needs to sit above the video itself (z-index 0). */
.section-bg-media.has-top-fade::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--color-white), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Real <img> background image on Section/Column/Box, driven by the
   backgroundImageId/backgroundFit/backgroundPosition block attributes --
   the formalized, block-attribute version of .section-bg-media above.
   That older convention (hand-built classes + a Custom HTML block) still
   covers the video use case; this covers plain images with a real media
   picker and automatic srcset/sizes via wp_get_attachment_image(), instead
   of a hand-authored <img>. See sbk_render_background_image() in
   blocks/inc/wrapper-attributes.php. object-fit/object-position are set
   per-instance as an inline style (they vary per block, not a fixed set
   of options worth a class each); no-repeat is inherent to using a real
   <img> instead of a CSS background-image, so there's nothing to toggle.

   The block itself does not clip, so content may hang out of it (a panel
   with overlap-bottom-* below a photo Section). The photo and overlay are
   exactly the block's size and the <img> crops its own picture, so nothing
   of theirs sticks out; they inherit the block's border-radius, so a
   rounded block keeps round corners. .sbk-bg-content is flow-root, so a
   first or last child's margin stays inside the block (it would otherwise
   push the photo down when the block has no padding), as the old
   overflow: hidden did. .overflow-hidden on the block clips it again. */
.has-bg-image {
    position: relative;
}
.has-bg-image > .sbk-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}
.has-bg-image > .sbk-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}
.sbk-bg-content {
    position: relative;
    z-index: 1;
    display: flow-root;
}

/* ---- Checkmark lists — color now a variable, not hardcoded ---- */
:root {
    --color-checkmark: var(--color-secondary);
}
.checkmarks, .checkmark, .xmarks {
    list-style: none;
}
.checkmarks li, .xmarks li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
}
.checkmarks.largemarks li { padding-left: 50px; }
.checkmarks li::before, .checkmark li::before, .xmarks li::before {
    content: "\2713";
    font-size: 14px;
    font-weight: bold;
    color: var(--color-checkmark-tick, var(--color-white)); /* request 4: unset, white as before; set on :root, a list or a section */
    background-color: var(--color-checkmark);
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0;
    display: inline-block;
}
.checkmarks.largemarks li::before {
    font-size: 25px;
    width: 34px;
    height: 34px;
    line-height: 34px;
}

/* Plain, breakpoint-independent hide -- for JS-driven show/hide (toggle
   this class rather than setting inline display styles directly), e.g.
   the pricing wizard's step-navigation buttons
   (in a site-specific plugin). !important for
   the same reason the responsive visibility classes below use it: this
   class's whole job is to force an override regardless of whatever other
   display value a more specific rule might otherwise set. */
.is-hidden { display: none !important; }

/* ---- Responsive visibility (consolidated breakpoints) ----
   Every class below has an EXPLICIT rule on both sides of its breakpoint —
   the previous version left several of these to fall back on a display
   element happens to default to, which silently broke for anything that
   wasn't naturally block-level. "Hide" rules use !important so they
   reliably win, in both directions, regardless of source order or media
   query -- an earlier version only marked one side !important, which meant
   the un-marked "show" side could never win against the marked "hide"
   side, no matter the screen width. Confirmed broken via DevTools on
   .desktop-only-flex specifically, but the same asymmetric shape existed
   in three of these six groups -- all six now use !important on both
   states for consistency and reliability. */
.hide-on-mobile, .hide-on-mobile-flex, .hide-on-mobile-inline { display: none !important; }
@media (min-width: 768px) {
    .hide-on-mobile { display: block !important; }
    .hide-on-mobile-flex { display: flex !important; }
    .hide-on-mobile-inline { display: inline !important; }
}

.mobile-only { display: block !important; }
.mobile-only-flex { display: flex !important; }
.mobile-only-inline { display: inline !important; }
@media (min-width: 768px) {
    .mobile-only, .mobile-only-flex, .mobile-only-inline { display: none !important; }
}

.desktop-only, .desktop-only-flex, .desktop-only-inline { display: none !important; }
@media (min-width: 1024px) {
    .desktop-only { display: block !important; }
    .desktop-only-flex { display: flex !important; }
    .desktop-only-inline { display: inline !important; }
}

.hide-on-desktop { display: block !important; }
.hide-on-desktop-flex { display: flex !important; }
.hide-on-desktop-inline { display: inline !important; }
@media (min-width: 1024px) {
    .hide-on-desktop, .hide-on-desktop-flex, .hide-on-desktop-inline { display: none !important; }
}

.tablet-and-up, .tablet-and-up-flex, .tablet-and-up-inline { display: none !important; }
@media (min-width: 768px) {
    .tablet-and-up { display: block !important; }
    .tablet-and-up-flex { display: flex !important; }
    .tablet-and-up-inline { display: inline !important; }
}

.tablet-and-lower { display: block !important; }
.tablet-and-lower-flex { display: flex !important; }
.tablet-and-lower-inline { display: inline !important; }
@media (min-width: 1024px) {
    .tablet-and-lower, .tablet-and-lower-flex, .tablet-and-lower-inline { display: none !important; }
}

/* ---- Navigation ----
   Dropdown submenus (e.g. Services, About), the header-button nav
   button treatment, and social icon circles. Core WordPress doesn't style
   any of this by default.

   Nav rebuild, Part 2 of 4: desktop dropdown/flyout VISUAL layer, built on
   top of Sbk_Nav_Menu_Walker's structural markup (Part 1 -- see that
   file's docblock for the header/featured/description/column/flyout
   authoring conventions this renders). Open/close state
   itself is owned by assets/nav-dropdown.js, not CSS :hover -- see that
   file for why (a plain :hover close is instant and can't support the
   "diagonal mouse movement into the dropdown" grace period this pass
   needs). `:focus-within` is kept below as a real no-JS fallback so
   keyboard tabbing still opens a dropdown even if the script fails to
   load; there is no equivalent `:hover` fallback; a JS failure means
   MOUSE users lose hover-open entirely (:focus-within only tracks focus,
   not the mouse) -- a deliberate trade-off: `:hover`+`.is-open` together
   would fight the JS-owned close delay (the browser's instant :hover
   mismatch on mouseleave would hide the panel regardless of the class),
   so this couldn't be simple JS-optional progressive enhancement.

   Nav rebuild, Part 3 of 4: the CTA dropdown variant (a header
   button such as "Contact" whose menu item itself has children) reuses every rule
   below -- same panel chrome, column layout, edge clamp, chevron,
   featured-link tint -- rather than duplicating any of it. All of those
   rules are scoped to `.nav-dropdowns`, a marker class added to BOTH the
   main `.primary-nav` and the `.header-cta` <nav> (header.php), instead
   of hardcoding `.primary-nav` -- .primary-nav's OWN base layout/
   typography rules just below (flex:1, its <ul>'s row layout, link
   color/size) stay exclusive to .primary-nav since .header-cta already
   has its own separate layout via utility classes and shouldn't inherit
   these. assets/nav-dropdown.js is likewise initialized once per
   `.nav-dropdowns` container, not hardcoded to a single nav. */
.primary-nav ul { list-style: none; }
.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; align-items: center; gap: 2rem; justify-content: var(--nav-justify); }
.primary-nav a {
    color: var(--nav-link-color);
    font-family: var(--nav-link-font, inherit); /* the next three: Brand Kit nav_link_font, _letter_spacing, _transform (v0.7.0, request 37); unset, as today */
    font-size: var(--nav-link-font-size);
    font-weight: var(--nav-link-font-weight);
    letter-spacing: var(--nav-link-letter-spacing, inherit);
    text-transform: var(--nav-link-transform, inherit);
}
.primary-nav a:hover { color: var(--nav-link-hover-color); text-decoration-line: var(--nav-link-hover-line, none); }
.nav-dropdowns .menu-item-has-children { position: relative; }
.nav-dropdowns > ul > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    margin-bottom: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* Shared dropdown/flyout panel chrome -- both .sub-menu (a top-level
   item's dropdown) and .menu-flyout (a second-level item's own children)
   are visually the same floating panel; only position/sizing differ
   below.

   Panel background is now Brand Kit-configurable (Header Zones >
   "Dropdown Background": Light/Dark/Custom, see
   sbk_resolve_bg_mode_value() in brand-kit-output.php) rather than
   the previous hardcoded var(--color-white) -- --dropdown-bg's own
   framework fallback (base :root block, top of this file) still
   resolves to var(--color-white) by default, so this alone is a
   zero-visual-change swap until an admin picks something else.
   Sbk_Nav_Menu_Walker adds a matching .on-dark/.on-light class
   directly to this same <ul> (sbk_get_dropdown_context_class()),
   which is what actually flips the panel's link/header/description text
   color below -- background and text-context intentionally travel
   together on one element, the same way a Section/Column/Box's own
   background + Text color setting already do. */
.nav-dropdowns .sub-menu,
.nav-dropdowns .menu-flyout {
    display: none;
    position: absolute;
    list-style: none;
    background: var(--dropdown-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    /* The Brand Kit's radius_default (always printed; 8px unset), so a
       square brand gets square panels (v0.5.2). */
    border-radius: var(--radius-default, 8px);
    z-index: 20;
}
.nav-dropdowns .sub-menu.is-open,
.nav-dropdowns .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
}
.nav-dropdowns .menu-flyout.is-open,
.nav-dropdowns .has-flyout:focus-within > .menu-flyout {
    display: block;
}

/* Top-level dropdown (.sub-menu): opens below its trigger. Always a flex
   row of one-or-more .menu-dropdown-column children -- Part 1's Walker
   wraps even a plain, un-classed dropdown in one implicit column div, so
   a single-column dropdown (e.g. simple
   Services or Resources/Blog dropdowns) renders as a one-item flex row, visually
   identical to a plain stacked list. */
.nav-dropdowns .sub-menu {
    top: 100%;
    left: 0;
    flex-direction: row;
    /* No flex-wrap by default -- deliberately. An absolutely-positioned
       flex container with flex-wrap always on uses a shrink-to-fit width
       algorithm whose "natural" width collapses to just its WIDEST SINGLE
       COLUMN (since wrapping technically permits an arbitrarily narrow
       container), not the full unwrapped row -- confirmed directly: a
       real 3-column dropdown rendered at ~230px (one column's width)
       instead of ~690px, silently stacking every column into a single
       visual column despite the column-grouping markup being correct.
       Without flex-wrap, shrink-to-fit width is simply the sum of every
       column's own preferred width -- deterministic, and what every
       dropdown (including a plain single-column one) actually wants by
       default. .is-width-clamped (below) turns wrapping back on, but only
       for the one case that actually needs it: nav-dropdown.js has
       measured real overflow and applied an explicit, narrower max-width
       via inline style -- at that point wrapping is exactly what should
       happen, so columns reflow onto a second row instead of clipping. */
    align-items: flex-start;
    gap: 2rem; /* same spacing as the .gap-2 utility, for visual consistency with the rest of the framework */
    padding: 0.5rem 0;
    min-width: 200px; /* matches the earlier implicit dropdown width exactly */
}
/* Single-column width (v0.5.2): the panel is positioned against its menu
   item, so shrink-to-fit sized it to the item's width -- in practice the
   200px floor, wrapping a label like "Couples & Engagement" onto two
   lines. max-content sizes it to its longest label instead; the cap (32rem
   = 320px) keeps a very long label wrapping inside the panel and the panel
   on the screen. Multi-column panels keep their own .cols-N widths. An
   inline max-width from nav-dropdown.js's edge clamp still wins. */
.nav-dropdowns .sub-menu:not(.has-multiple-columns) {
    width: max-content;
    max-width: min(32rem, calc(100vw - 3rem));
}
.nav-dropdowns .sub-menu.is-width-clamped {
    flex-wrap: wrap;
}
/* A real multi-column mega-menu (e.g. Learn/Services) needs more
   breathing room than a single-column list -- .cols-N (stamped server-side
   by Sbk_Nav_Menu_Walker::render_dropdown(), which already knows the
   real column count) scales the panel's max-width with it, rather than
   using one fixed width for every dropdown regardless of content. A
   dropdown whose natural content genuinely exceeds its cap (e.g. columns
   with unusually long item descriptions) shrinks its columns down toward
   their 200px min-width floor instead of wrapping, since flex-wrap isn't
   on for this case -- see the no-flex-wrap-by-default note above. */
.nav-dropdowns .sub-menu.has-multiple-columns {
    padding: 1.5rem;
    min-width: 0;
}
/* min() with a viewport-relative fallback so a mega-menu can never exceed
   the viewport itself, regardless of which edge it's aligned to -- a
   narrow desktop width (near the 1024px breakpoint) combined with a wide
   multi-column panel can otherwise still clip the OPPOSITE edge even
   after .dropdown-align-right flips it, since flipping sides doesn't
   shrink the panel. Confirmed directly: a 3-column panel on a 1100px
   viewport clipped the left edge by ~90px with only the align-right fix;
   this clamp fixes it without needing JS to know the viewport width too. */
.nav-dropdowns .sub-menu.cols-2 { max-width: min(480px, calc(100vw - 3rem)); }
.nav-dropdowns .sub-menu.cols-3 { max-width: min(720px, calc(100vw - 3rem)); }
.nav-dropdowns .sub-menu.cols-4 { max-width: min(960px, calc(100vw - 3rem)); }

.nav-dropdowns .menu-dropdown-column {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

/* Edge-of-viewport handling: a top-level item near the right edge of the
   header needs its dropdown right-aligned to its trigger instead of
   left-aligned, or it clips off-screen. .dropdown-align-right is toggled
   by nav-dropdown.js after measuring the panel's actual rendered position
   against the viewport on open -- column count/width vary per dropdown,
   so this can't be a fixed CSS breakpoint. */
.nav-dropdowns .menu-item-has-children.dropdown-align-right > .sub-menu {
    left: auto;
    right: 0;
}

/* Flyout (third-level): a has-flyout item's own children open to its
   RIGHT, vertically aligned to that specific item -- not the dropdown
   panel's top edge (hovering a specific second-level
   item opens its flyout level with itself, wherever it sits in the
   column). Positioned relative to the has-flyout <li> itself (position:
   relative, set below), not the dropdown panel, since that's the only
   element that actually sits at this item's vertical position. */
.nav-dropdowns .has-flyout {
    position: relative;
}
.nav-dropdowns .menu-flyout {
    top: 0;
    left: 100%;
    margin-left: 4px;
    min-width: 200px;
    width: max-content; /* as a single-column dropdown (v0.5.2) */
    max-width: min(32rem, calc(100vw - 3rem));
    padding: 0.5rem 0;
}
/* Mirrors .dropdown-align-right's logic for a flyout that would otherwise
   overflow the right edge of the viewport -- opens to the LEFT of the
   item instead. Also toggled by nav-dropdown.js. */
.nav-dropdowns .has-flyout.flyout-align-left > .menu-flyout {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 4px;
}
/* Visual affordance that a second-level item opens a flyout -- a small
   right-pointing chevron. Structural hook only; exact styling (color,
   size) can be refined per brand later. */
.nav-dropdowns .has-flyout > a::after,
.nav-dropdowns .has-flyout > .menu-nav-item-header::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    vertical-align: middle;
}

/* Link color was HARDCODED to var(--color-dark) here until the dropdown
   background became Brand Kit-configurable ("the panel is always white
   regardless of header mode" was the old reasoning). Now uses var(--nav-link-color), which .on-dark/.on-light both
   already redeclare -- so this text automatically flips correctly
   whenever sbk_get_dropdown_context_class() (brand-kit-output.php)
   puts one of those classes on the panel itself, based on Header Zones >
   "Dropdown Background." Default (Light, --dropdown-bg's own fallback)
   puts .on-light on the panel, which redeclares --nav-link-color to
   var(--color-dark) -- byte-identical to the old hardcoded value. */
.nav-dropdowns .sub-menu a,
.nav-dropdowns .menu-flyout a {
    display: block;
    padding: 0.2rem 1rem;
    color: var(--nav-link-color);
}
/* Same hover-color variable the primary nav's own top-level links use
   (.primary-nav a:hover, above) -- added after a real user report that
   dropdown/flyout links had no hover color change at all, unlike the
   top-level nav. Also benefits menu-item-featured links (just below),
   which don't set their own `color` and so inherit this rule as-is. */
.nav-dropdowns .sub-menu a:hover,
.nav-dropdowns .menu-flyout a:hover {
    color: var(--nav-link-hover-color);
    text-decoration-line: var(--nav-link-hover-line, none); /* underline on dark when the hover colour is the resting one (21be) */
}

/* Group-header items (rendered as a <span>, never a link -- see
   Sbk_Nav_Menu_Walker::build_item_content()): a sensible DEFAULT any
   brand can override, not a final design decision. No hover state, no
   pointer cursor -- visually distinct from a real link at a glance.

   This shared class also renders in the MOBILE accordion (Part 4),
   whose own panel background isn't part of this feature and stays a
   plain white default regardless of "Dropdown Background" -- so the
   color here intentionally stays the original hardcoded var(--color-dark)
   as the correct default for that context, and a separate, more specific
   .nav-dropdowns-scoped override below wins only for the desktop
   dropdown/flyout case, where the panel's own text-context can now
   genuinely be dark. Same split for .menu-item-description just below. */
.menu-nav-item-header {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-dark);
    opacity: 0.55;
    font-weight: 700;
    font-size: 0.8em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: default;
}
.nav-dropdowns .menu-nav-item-header {
    color: var(--nav-link-color);
}

/* Featured-link items (menu-item-featured class): a distinct baseline
   treatment so a featured link doesn't look identical to a plain one
   without hovering -- also a sensible DEFAULT, not final brand styling.
   Uses var(--color-primary) (an existing brand token), never a hardcoded
   hex, so it automatically follows whatever a brand's primary color is. */
.nav-dropdowns .sub-menu .menu-item-featured > a,
.nav-dropdowns .menu-flyout .menu-item-featured > a {
    border-left: 3px solid var(--color-primary);
    padding-left: calc(1rem - 3px);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* Item descriptions (Appearance > Menus' native "Description" field --
   see Sbk_Nav_Menu_Walker::build_item_content()): reasonable baseline
   typography, same "sensible default, brand can override" posture. Same
   shared-global-rule/desktop-scoped-override split as .menu-nav-item-header
   just above, for the same reason (also renders in the mobile accordion,
   whose own panel background isn't part of this feature). */
.menu-item-description {
    display: block;
    font-size: 0.8em;
    color: var(--color-dark);
    opacity: 0.65;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.nav-dropdowns .menu-item-description {
    color: var(--nav-link-color);
}

/* Nav CTA buttons -- add these classes to a menu item's "CSS Classes" field
   in Appearance > Menus (enable under Screen Options). Forwards the visual
   button styling onto the link inside, so no per-item custom markup is
   needed. Mapped to Solid/Outline specifically (not Primary) to match the
   nav design -- and since they read the same button-color variables as
   everywhere else, wrapping the header in .on-dark or .on-light
   automatically flips them correctly, same as any other button. */
.menu-item-button > a {
    display: inline-block;
    white-space: nowrap; /* The label never wraps, at any width (Brand rev 2.70). */
    padding: var(--button-padding);
    font-family: var(--button-font, inherit); /* Brand Kit button_font (v0.7.0); unset, the font around it */
    letter-spacing: var(--button-letter-spacing, inherit); /* Brand Kit button_letter_spacing (v0.7.0); not the nav's */
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    text-transform: var(--button-text-transform);
    border-width: var(--button-border-width);
    border-style: solid;
    border-radius: var(--button-radius);
    background-clip: padding-box;
    background: var(--btn-solid-bg);
    border-color: var(--btn-solid-border);
    color: var(--btn-solid-text);
}
.menu-item-button > a:hover {
    background: var(--btn-solid-hover-bg);
    border-color: var(--btn-solid-hover-border);
    color: var(--btn-solid-hover-text);
}
.menu-item-button-outline > a {
    display: inline-block;
    white-space: nowrap; /* As .menu-item-button. */
    padding: var(--button-padding);
    font-family: var(--button-font, inherit); /* Brand Kit button_font (v0.7.0); unset, the font around it */
    letter-spacing: var(--button-letter-spacing, inherit); /* Brand Kit button_letter_spacing (v0.7.0); not the nav's */
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    text-transform: var(--button-text-transform);
    border-width: var(--button-border-width);
    border-style: solid;
    border-radius: var(--button-radius);
    background-clip: padding-box;
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}
.menu-item-button-outline > a:hover {
    background: var(--btn-outline-hover-bg);
    border-color: var(--btn-outline-hover-border);
    color: var(--btn-outline-hover-text);
}
/* Header button style (Brand Kit header_button_style, v0.5.2): header.php
   puts .header-button-primary or .header-button-outline on <header>
   (nothing for solid, the default), and the main header button
   (.menu-item-button) takes that style's colors instead of solid's. A
   menu-item-button-outline item is not touched. Same button-color
   variables, so .on-dark/.on-light still flip them. The phone menu's
   copy is below, with the other .mobile-nav-panel button rules. */
.header-button-primary .menu-item-button > a {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
    color: var(--btn-primary-text);
}
.header-button-primary .menu-item-button > a:hover {
    background: var(--btn-primary-hover-bg);
    border-color: var(--btn-primary-hover-border);
    color: var(--btn-primary-hover-text);
}
.header-button-outline .menu-item-button > a {
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}
.header-button-outline .menu-item-button > a:hover {
    background: var(--btn-outline-hover-bg);
    border-color: var(--btn-outline-hover-border);
    color: var(--btn-outline-hover-text);
}

/* ---- Header search + utility bar (Nav rebuild, Part 3) ----
   Both off by default (see sbk_header_search_enabled()/
   sbk_header_utility_bar_enabled() in brand-kit-output.php) -- this
   CSS only ever matches markup that header.php prints when an admin has
   explicitly turned one of these on, so it can't affect an existing
   site's current header. */

/* Icon-triggered expanding input, not a full-page overlay -- expands by
   growing a real layout width (not position:absolute), so it pushes
   whatever sits after it in the header's flex row rather than floating
   on top of anything. Collapsed state is a real zero-width form, not
   display:none, so nav-dropdown.js-style focus/blur handling works
   normally the whole time (a display:none input can't hold focus or
   fire blur/focusout the instant it's needed). */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}
.header-search-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--nav-link-color); /* same context-following color as the rest of the header nav, not a fixed value */
}
.header-search-toggle:hover {
    color: var(--nav-link-hover-color);
}
.header-search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    transition: width 0.25s ease;
}
.header-search.is-open .header-search-form {
    width: 200px;
    margin-left: 0.75rem;
}
.header-search-input {
    width: 100%;
    min-width: 0; /* lets the input actually shrink to 0 during the collapse transition -- inputs otherwise have a non-zero intrinsic minimum width */
    border: none;
    border-bottom: 1px solid currentColor;
    background: transparent;
    padding: 0.25rem 0;
    color: var(--nav-link-color);
    font-size: 1.4rem;
}
/* Keyboard and mouse focus alike (a text field always matches
   :focus-visible): the framework's ring (request 27), in place of the
   outline: none it had, which left no focus indicator at all. */
.header-search-input:focus-visible {
    outline: 2px solid var(--focus-ring-color, var(--color-heading));
    outline-offset: 2px;
}
.header-search-input::placeholder {
    color: currentColor;
    opacity: 0.6;
}

/* Utility bar: a thin strip above the main header row
   -- a generic content slot, not hardcoded to search; see the
   sbk_header_utility_bar_content action in functions.php. Same
   rgba(0,0,0,...) tint/divider convention already used elsewhere in this
   file (.box-shadow, .divider-top-dark) rather than a new brand token --
   darkens either a light or dark header slightly, reading as a
   secondary/recessed zone in both. A sensible DEFAULT, easily overridden
   per brand. Since v0.6.0 (brand design 21av, 35c) the tint is the
   header's ink, --header-ink (below): black on a light header as before,
   white at the same strengths on a dark one, the docked bar's mode when
   docked. */
.header-utility-bar {
    background: rgba(var(--header-ink, 0, 0, 0), 0.03);
    border-bottom: 1px solid rgba(var(--header-ink, 0, 0, 0), 0.06);
}
/* Utility bar settings (v0.7.0, request 23; inc/utility-bar.php sets the
   classes). A background is a solid band in that colour with no hairline,
   on-light or on-dark by contrast, and keeps its colour when the header
   docks. Alignment moves the content; centred, its lines centre too. On
   phones (.flex in place of .desktop-only-flex) the search icon stays in
   the phone menu below 1024px, as it does without the bar. Hidden when
   docked: the docked header moves up by the bar's height
   (--sbk-utility-bar-height, measured by the theme's sticky-header.js),
   so the bar is above the screen; it
   is also invisible, so Tab can't reach its links there. */
.header-utility-bar.utility-bar-filled {
    background: var(--sbk-utility-bar-bg);
    border-bottom: 0;
}
.header-utility-bar.utility-bar-left > .container { justify-content: flex-start; }
.header-utility-bar.utility-bar-center > .container {
    justify-content: center;
    text-align: center;
}
@media (max-width: 1023px) {
    .header-utility-bar .header-search { display: none; }
}
.site-header.is-docked:has(> .header-utility-bar.utility-bar-hide-docked) {
    top: calc(-1 * var(--sbk-utility-bar-height, 0px));
}
.site-header.is-docked > .header-utility-bar.utility-bar-hide-docked { visibility: hidden; }

/* ---- Header layout: desktop nav wrapper, hamburger toggle, mobile panel ---- */

.site-header {
    background: var(--header-bg);
    /* The header's ink, as r, g, b (brand design 21av, 35c): what the
       docked line and the utility bar tint are drawn in. Black on a light
       header, white on a dark one; a docked bar takes its own mode's
       (.site-header.is-docked below). */
    --header-ink: 0, 0, 0;
}
.site-header.on-dark {
    --header-ink: 255, 255, 255;
}

/* Sticky header + docked state. .is-sticky-enabled only applies if the
   Brand Kit toggle is on (class added conditionally in header.php) -- with
   it off, the header behaves exactly as a normal, non-sticky header.
   .is-docked (toggled by JS past a short scroll distance) always uses
   the Brand Kit's explicit docked background/mode, regardless of what
   mode or background the page's own hero specified -- computed once in
   brand-kit-output.php, not something JS needs to know about or swap
   between. */
.site-header.is-sticky-enabled {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Skip link (v0.5.3): header.php's first link, to #main-content (every
   template's <main>). Hidden until it has focus, then fixed at the top
   left above the header (z-index 100, overlay or sticky) and the reading
   progress bar (999), in the primary button's colours and corner radius,
   at the phone body size, semibold (v0.6.0, request 14: it set no size,
   so it took the 10px root). <main> has tabindex="-1", so the jump moves
   focus into it (the next Tab continues from there in every browser); it
   is a landing point, not a control, so it draws no focus ring.
   On the jump, #main-content stops below a sticky header (the
   scroll-padding below). */
.sbk-skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 1rem 1.6rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: var(--radius-default, 8px);
    text-decoration: none;
    font-size: var(--fs-body-mobile);
    font-weight: 600;
    line-height: 1.4;
}
/* Hovered, it keeps the button text colour (v0.6.0): a:hover (a class and
   an element) outranks .sbk-skip-link, so a pointer resting where the link
   appears turned its text the link hover colour, unreadable on the button
   background. */
.sbk-skip-link:hover { color: var(--btn-primary-text); }
.sbk-skip-link:not(:focus) {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* Every in-page jump (an #anchor link, the skip link, a heading found by
   Find, a focused element scrolled into view) stops below a sticky header
   (v0.6.0, request 26). --sticky-header-height is written by
   sticky-header.js (sticky headers only; otherwise 0, and nothing covers
   the target). It is the header's height at the moment of the jump: from
   the top of the page that is the undocked header, taller than the docked
   one it becomes on the way, so the target lands that much lower (about
   50px with the default padding), never under it. */
html { scroll-padding-top: var(--sticky-header-height, 0px); }
#main-content:focus { outline: none; }

/* Overlay mode: header background is Transparent in the Brand Kit, so it
   needs to sit on top of the page's content instead of pushing it down.
   Declared after .is-sticky-enabled so it wins (equal specificity, later
   source order) whenever both classes happen to be present together --
   transparent + sticky is a normal, expected combination, not a conflict. */
.site-header.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

/* Compensates for .header-overlay removing the header from normal document
   flow -- without this, a hero's content would start out hidden underneath
   the (possibly transparent) header. Body class added in functions.php. */
/* Compensates for .header-overlay removing the header from normal document
   flow. Deliberately NOT padding on #main-content itself -- padding never
   lets a child's background bleed into it, so that just left a visible
   gap showing the page's own (blank) background above the hero instead of
   the hero's background extending upward. Instead, this pseudo-element
   copies the first section's own background and stretches it up behind
   the transparent header, without touching that section's real padding
   (and therefore without disturbing its actual vertical spacing design). */
body.sbk-header-overlay #main-content > *:first-child {
    position: relative;
}
body.sbk-header-overlay #main-content > *:first-child::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--header-overlay-offset));
    left: 0;
    right: 0;
    height: var(--header-overlay-offset);
    background: inherit;
    z-index: -1;
}

/* Docked, a sticky header is fixed, at the same top as the sticky rule, and
   sticky-header.js puts a spacer as tall as the undocked header in its place,
   so docking moves nothing below it (v0.7.0). Without JavaScript it never
   docks and stays sticky. */
.site-header.is-sticky-enabled.is-docked {
    position: fixed;
    left: 0;
    right: 0;
}
.site-header.is-docked {
    background-color: var(--header-docked-bg);
    /* A 1px hairline under the soft shadow (v0.5.2), so a white bar shows
       its edge on a near-white page. A shadow, not a border: the docked
       bar keeps its height. */
    box-shadow: 0 1px 0 rgba(var(--header-ink), 0.08), 0 2px 12px rgba(0, 0, 0, 0.08);
    /* The bar keeps the page's .on-dark/.on-light when it docks, so its ink
       is its own mode's: white when the Brand Kit prints
       --header-docked-ink (a dark docked bar), else the light ink, black
       -- never the page header's (a dark hero docking into a light bar
       would draw a white line on white). Only the 1px line follows the
       ink; the soft shadow stays black: over the page's usually light
       content it still marks the bar's edge, where a white one would show
       nothing (brand design 21av, 35c). */
    --header-ink: var(--header-docked-ink, 0, 0, 0);
    --color-heading: var(--header-docked-text);
    --color-body: var(--header-docked-text);
    --nav-link-color: var(--header-docked-text);
}
/* The header row's height (v0.7.0, request 25; Brand Kit header_padding, one
   of the space steps). Unset, the row's own pad-vert-medium value. Lower
   specificity than the docked rule below, so the docked bar stays at 1rem.
   Only the row itself: the utility bar's container is deeper and keeps its own. */
.site-header > .pad-vert-medium { padding-block: var(--header-padding, var(--space-medium)); }
.site-header.is-docked .container {
    padding-block: 1rem; /* shrinks from whatever the header's normal padding utility set */
    transition: padding-block 0.25s ease;
}

/* Two logo variants rendered together, CSS picks which shows -- see
   header.php for why (a page can dock to a different mode than it started
   in, which a single PHP-rendered logo can't react to on its own). */
.site-logo-docked { display: none; }
.site-header.is-docked .site-logo-normal { display: none; }
.site-header.is-docked .site-logo-docked { display: block; }
/* Logo size (v0.5.1): one rule for every logo image -- the header's
   normal and docked copies, the filtered-white copy, the light logo, and
   the Brand Element block (the footer's logo). The Brand Kit's
   logo_height prints --logo-height; unset, 5rem (50px). Same height when docked.
   The width follows the logo's own shape, never wider than its column
   (reset.css's max-width: 100%, repeated here), nor 60vw below 1024px so
   a wide logo leaves room for the menu button. In the header that cap is
   on .site-logo, the header row's flex item: a cap on the img alone
   leaves the item as wide as the uncapped logo, and the menu button wraps
   to a second line. object-fit keeps the shape when a width cap is the
   tighter limit. The site-name text logo has no img and is not affected. */
.site-logo img,
.sbk-brand-element-logo img {
    height: var(--logo-height, 5rem);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 1023px) {
    .site-logo { max-width: 60vw; }
    .sbk-brand-element-logo img { max-width: min(100%, 60vw); }
}
/* The header logo's own heights (v0.7.0, request 52; Brand Kit
   logo_height_mobile and logo_height_docked; Brand rev 2.71). The mobile
   height applies wherever the header shows the menu button: below 1024px, or
   below 1280px under .sbk-nav-switch-1280. The docked height applies in the
   docked bar at every width; unset, the bar keeps the height the header has
   at that width. Unset, each falls back to --logo-height, so nothing changes.
   A Brand Element keeps --logo-height. */
.site-header.is-docked .site-logo img {
    height: var(--logo-height-docked, var(--logo-height, 5rem));
}
@media (max-width: 1023px) {
    .site-logo img { height: var(--logo-height-mobile, var(--logo-height, 5rem)); }
    .site-header.is-docked .site-logo img {
        height: var(--logo-height-docked, var(--logo-height-mobile, var(--logo-height, 5rem)));
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header.sbk-nav-switch-1280 .site-logo img { height: var(--logo-height-mobile, var(--logo-height, 5rem)); }
    .site-header.sbk-nav-switch-1280.is-docked .site-logo img {
        height: var(--logo-height-docked, var(--logo-height-mobile, var(--logo-height, 5rem)));
    }
}
/* The site name as a text logo, in a copy rendered for a dark background
   (sbk_render_header_logo( 'dark' ): an overlay header over a dark hero, a
   dark docked header, a Brand Element set to the light logo). It takes the
   on-dark text colour instead of the link colour, hover included; every
   other copy keeps the link colour. */
a.sbk-logo-text-on-dark,
a.sbk-logo-text-on-dark:hover,
a.sbk-logo-text-on-dark:focus-visible { color: var(--color-white); }

.header-nav-wrapper {
    flex: 1;
    justify-content: flex-end;
}
/* The least room between the logo and the nav, wherever the nav links show
   (v0.7.0; the floor of the factory's fit test, Brand rev 2.70). It is the
   small space step, so space_scale scales it. */
@media (min-width: 1024px) {
    .site-logo { margin-inline-end: var(--space-small); }
}

/* ---- Mobile nav trigger ----
   Nav rebuild, Part 4: two Brand Kit-selectable trigger STYLES sharing
   one base reset -- .mobile-nav-trigger-hamburger (three lines, this
   project's original/default markup and styling, byte-for-byte
   unchanged from before Part 4) and .mobile-nav-trigger-toggle (a
   generic pill-shaped "Menu"/"Close" label swap -- NOT a site's
   own bespoke animated dot/morph effect, which stays that site's own
   CSS/JS layered on top of whichever style it picks here). Trigger
   POSITION is always top-right and isn't a configurable option -- both
   styles just render in the same place the hamburger always has.
   header.php renders only one style's markup at a time (a static,
   site-wide Brand Kit choice known at render time -- no dual-render
   needed the way the logo's docked/normal state needs it). */
.nav-toggle {
    display: none; /* shown via .tablet-and-lower-flex utility already on the element */
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
/* A 44x44 touch target (request 51, WCAG 2.5.5): the hamburger draws at
   26x18, so an empty box at least 44px each way, centred on the button,
   takes the taps. Absolutely placed, so the icon and the header's layout
   don't move; a trigger already bigger keeps its own size. */
.nav-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
}

.mobile-nav-trigger-hamburger {
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
}
.mobile-nav-trigger-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-heading);
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav-trigger-hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-trigger-hamburger.is-active span:nth-child(2) { opacity: 0; }
.mobile-nav-trigger-hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav-trigger-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    background: var(--button-bg);
    color: var(--color-on-primary);
    font-size: 1.3rem;
    font-weight: 600;
}
.mobile-nav-trigger-toggle .nav-toggle-label-close { display: none; }
.mobile-nav-trigger-toggle.is-active .nav-toggle-label-open { display: none; }
.mobile-nav-trigger-toggle.is-active .nav-toggle-label-close { display: inline; }

/* ---- Mobile nav panel ----
   Nav rebuild, Part 4: two Brand Kit-selectable panel STYLES, both real
   position:fixed overlays -- worth stating plainly since this project's
   pre-Part-4 panel was neither: it was a plain block-flow reveal (no
   overlay at all, just appearing inline in the header and pushing page
   content down). See sbk_mobile_nav_panel_style()'s own docblock in
   brand-kit-output.php for why 'fullscreen' (this shared base, no
   further override needed) was chosen as the closer-to-the-old-behavior
   default over 'slide-in'. Consolidates primary nav + CTA + search (if
   on) + utility bar content (if on) all inside itself -- see
   incantive/header.php. */
.mobile-nav-panel {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    padding: 4rem 1.5rem 1.5rem; /* extra top clearance for .mobile-nav-close, positioned absolute below */
    background: var(--color-white);
    overflow-y: auto;
    z-index: 200;
}
.mobile-nav-panel.is-open { display: flex; }
/* The dark panel (Brand Kit mobile_panel_bg, v0.7.0, request 35b). Its text and
   buttons follow from .on-dark; the two faint black lines below don't. */
.mobile-nav-panel.mobile-panel-dark { background: var(--color-dark); }
.mobile-panel-dark .mobile-nav-search-input { border-color: rgba(255, 255, 255, 0.3); }
.mobile-panel-dark .mobile-nav-utility { border-top-color: rgba(255, 255, 255, 0.2); }
@media (min-width: 1024px) {
    .mobile-nav-panel { display: none !important; } /* never shown on desktop, regardless of JS state */
}

.mobile-panel-fullscreen {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
}

/* display:flex (not display:none) even while closed -- deliberately, so
   the transform below has a real "off-screen" starting position to
   transition FROM/TO; visibility swaps instead, so it stays
   non-interactive and unreachable by keyboard/AT while closed despite
   technically being in the layout (harmless here since position:fixed
   already takes it out of normal flow, so it can't visually push or
   overlap anything else while "closed"). */
.mobile-panel-slide-in {
    display: flex;
    right: 0;
    bottom: 0;
    width: min(85vw, 360px);
    height: 100vh;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease;
}
.mobile-panel-slide-in.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* A dimmed backdrop behind the panel -- keyed off the body class
   nav-toggle.js already toggles for scroll-lock, so no extra markup is
   needed. Harmless (invisible, fully covered) when Panel style is
   Fullscreen, since that panel is itself opaque and covers the entire
   viewport at a higher z-index.

   z-index: 50 is deliberate, not arbitrary -- .mobile-nav-panel's own
   200 only wins a DIRECT comparison against this backdrop; it does NOT
   help once .site-header itself creates a stacking context (which
   .header-overlay and .is-sticky-enabled both do, via their own
   position:fixed/sticky + z-index:100 -- see above). A backdrop z-index
   higher than the HEADER's z-index:100 would paint above the header's
   entire subtree, mobile panel included, regardless of the panel's own
   (locally-scoped, now-irrelevant) 200 -- confirmed directly: with this
   at 190, the backdrop blocked every click on the open panel underneath
   it on a transparent-header page. Staying safely below 100 avoids the
   trap regardless of which header stacking mode is active, including
   the common default (transparent header) case. */
body.sbk-mobile-nav-open {
    overflow: hidden; /* the actual scroll-lock */
}
body.sbk-mobile-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 50;
}

.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-heading);
}

/* ---- Mobile nav accordion content ----
   Renders Sbk_Mobile_Nav_Menu_Walker's output (incantive/inc/
   class-mobile-nav-menu-walker.php) -- columns flattened, flyouts as
   nested accordion levels. Role (.menu-nav-item-header) and description
   (.menu-item-description) styling is already global/shared with
   desktop (see the "Navigation" section above) and needs no mobile-
   specific override. .menu-item-featured and the CTA button classes DO
   need one, since this Walker wraps a plain link's <a> one level deeper
   (inside .mobile-nav-item-row) than the desktop Walker does -- those
   rules' `>` direct-child selectors would otherwise never match here. */
.mobile-nav-list,
.mobile-sub-menu {
    list-style: none;
}
.mobile-nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.mobile-nav-item-row > a {
    flex: 1;
    display: block;
    padding: 0.75rem 0;
    color: var(--color-heading);
    font-family: var(--nav-link-font, inherit);
    font-size: 1.6rem;
    letter-spacing: var(--nav-link-letter-spacing, inherit);
    text-transform: var(--nav-link-transform, inherit);
}
.mobile-nav-toggle-chevron {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: inherit;
}
.mobile-nav-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 0;
    cursor: pointer;
    color: var(--color-heading);
    font-family: var(--nav-link-font, revert); /* a <button>: unset, the next three stay the browser's, as today */
    font-size: 1.6rem;
    letter-spacing: var(--nav-link-letter-spacing, revert);
    text-transform: var(--nav-link-transform, revert);
    text-align: left;
}
.mobile-nav-chevron {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
/* Points up once expanded -- the toggle button itself carries
   aria-expanded, kept in sync with actual state by
   mobile-nav-accordion.js; this chevron is its own descendant, so a
   plain descendant selector reaches it without any extra class/JS. */
[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(-135deg);
}

.mobile-sub-menu {
    display: none;
    padding-left: 1.25rem; /* one indentation level per nesting -- a real flyout-become-accordion level (depth 2+) gets this again, cascading naturally from the nested <ul> structure itself, no per-depth class needed */
}
.mobile-sub-menu.is-open {
    display: block;
}

.mobile-nav-panel .menu-item-featured > .mobile-nav-item-row > a,
.mobile-nav-panel .menu-item-featured > .mobile-nav-toggle-row {
    border-left: 3px solid var(--color-primary);
    padding-left: calc(1rem - 3px);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.mobile-nav-panel .menu-item-button > .mobile-nav-item-row > a,
.mobile-nav-panel .menu-item-button-outline > .mobile-nav-item-row > a {
    flex: 0 0 auto;
    display: inline-block;
    padding: var(--button-padding);
    font-family: var(--button-font, inherit); /* Brand Kit button_font (v0.7.0); unset, the font around it */
    letter-spacing: var(--button-letter-spacing, inherit); /* Brand Kit button_letter_spacing (v0.7.0); not the nav's */
    font-size: var(--button-font-size);
    font-weight: var(--button-font-weight);
    text-transform: var(--button-text-transform);
    border-width: var(--button-border-width);
    border-style: solid;
    border-radius: var(--button-radius);
    background-clip: padding-box;
}
.mobile-nav-panel .menu-item-button > .mobile-nav-item-row > a {
    background: var(--btn-solid-bg);
    border-color: var(--btn-solid-border);
    color: var(--btn-solid-text);
}
.mobile-nav-panel .menu-item-button-outline > .mobile-nav-item-row > a {
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}
/* header_button_style in the phone menu (see the desktop rules). The phone
   menu's buttons have no hover colors, for any style. */
.header-button-primary .mobile-nav-panel .menu-item-button > .mobile-nav-item-row > a {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-border);
    color: var(--btn-primary-text);
}
.header-button-outline .mobile-nav-panel .menu-item-button > .mobile-nav-item-row > a {
    background: var(--btn-outline-bg);
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}

.mobile-nav-cta {
    margin-top: 1.5rem;
}

.mobile-nav-search-form {
    margin-bottom: 1.5rem;
}
.mobile-nav-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    font-size: 1.6rem;
    background: transparent;
    color: var(--color-heading);
}

.mobile-nav-utility {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Social icons (footer) */
.social-icons { list-style: none; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid currentColor;
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.social-icon-image { width: 16px; height: 16px; object-fit: contain; } /* uploaded custom icon (Brand Kit > Social Icons) in place of a built-in svg glyph */

/* Forces the site logo to render white in the footer, assuming a simple
   solid-color mark (works for a flat navy logo like the current one). If
   this looks wrong once tested, replace with a dedicated footer-logo
   upload field instead of this filter trick. */
.site-logo-footer img { filter: brightness(0) invert(1); }

/* ---- Header phone (v0.7.0, request 20; Brand Kit header_phone) ----
   The site's number as a tel: link (inc/header-phone.php) in the nav link
   colour and hover, bold, on a 44px-tall target. It is printed at three
   places, each shown only at its widths: in the desktop header row before
   the header button (from 1024px), in the header row beside the menu button
   from 768 to 1023px (only when it shows from 768px), and in the phone menu
   below the width it shows from. So the number shows at every width. Unset,
   nothing is printed. */
.sbk-header-phone > a {
    display: inline-flex;
    align-items: center;
    min-block-size: 4.4rem;
    color: var(--nav-link-color);
    font-family: var(--nav-link-font, inherit);
    font-size: var(--nav-link-font-size);
    font-weight: 700;
    letter-spacing: var(--nav-link-letter-spacing, inherit);
    white-space: nowrap;
}
.sbk-header-phone > a:hover {
    color: var(--nav-link-hover-color);
    text-decoration-line: var(--nav-link-hover-line, none);
}
.sbk-header-phone-tablet {
    display: none;
    margin-inline: auto 1.6rem;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .sbk-header-phone-tablet { display: flex; }
}
.sbk-header-phone-panel {
    margin-top: 1.5rem;
}
.sbk-header-phone-panel > a {
    color: var(--color-heading);
    font-size: 1.6rem;
}
@media (min-width: 768px) {
    .sbk-header-phone-panel.sbk-header-phone-from-768 { display: none; }
}

/* ---- The menu button up to 1280px (v0.7.0, Brand rev 2.70; Brand Kit
   nav_switch_width) ----
   header.php adds .sbk-nav-switch-1280 only at 1280, so these rules reach no
   other header. From 1024 to 1279px the header behaves as it does below
   1024px. The desktop-only and tablet-and-lower utilities stay at 1024px,
   because page content uses them too, so each is outranked here. The utility
   bar still goes by width. The phone sits beside the menu button, and not in
   the phone menu as well. */
@media (min-width: 1024px) and (max-width: 1279px) {
    .site-header.sbk-nav-switch-1280 .header-nav-wrapper { display: none !important; }
    .site-header.sbk-nav-switch-1280 .nav-toggle { display: flex !important; }
    .site-header.sbk-nav-switch-1280 .mobile-nav-panel.is-open { display: flex !important; }
    .site-header.sbk-nav-switch-1280 .site-logo { max-width: 60vw; }
    .site-header.sbk-nav-switch-1280 .sbk-header-phone-tablet { display: flex; }
    .site-header.sbk-nav-switch-1280 .sbk-header-phone-panel { display: none; }
}
/* The row's copy is printed for a phone showing from 1024px too, only for the range above. */
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header.sbk-nav-switch-1280 .sbk-header-phone-tablet.sbk-header-phone-from-1024 { display: none; }
}

/* ---- Mobile action bar (v0.7.0, request 18; Brand Kit mobile_action_bar) ----
   Up to three buttons below 768px (inc/mobile-action-bar.php), printed as
   the last thing in the page and sticky to the bottom of the screen: while
   the page scrolls it sits on the screen's bottom edge, and it keeps its
   own height at the end of the page, so the footer always scrolls clear of
   it, whatever its labels wrap to, with no script. Each button is at least
   48px tall; the bar clears the phone's home indicator
   (safe-area-inset-bottom, where the page allows it). It sits under the
   header (z-index 100) and its phone menu, and under any cookie banner
   (those use far higher z-indexes). Its background is the kit's token
   (default white) and its buttons take the light or dark Button Styles
   (.on-light / .on-dark, chosen by contrast). */
.sbk-action-bar {
    display: none;
}
@media (max-width: 767px) {
    .sbk-action-bar {
        position: sticky;
        inset-block-end: 0;
        z-index: 90;
        display: flex;
        gap: 0.8rem;
        padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid color-mix(in srgb, var(--color-dark) 14%, transparent);
        background: var(--sbk-action-bar-bg, var(--color-white));
        box-shadow: 0 -6px 20px color-mix(in srgb, var(--color-dark) 12%, transparent);
    }
    .sbk-action-bar.on-dark {
        border-top-color: color-mix(in srgb, var(--color-white) 14%, transparent);
        box-shadow: none;
    }
    .sbk-action-bar > .wp-block-button {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
    }
    .sbk-action-bar .wp-block-button__link {
        display: flex;
        align-items: center;
        justify-content: center;
        inline-size: 100%;
        min-block-size: 4.8rem;
        padding: 0.4rem 1rem;
        font-size: 1.5rem;
        overflow-wrap: anywhere;
    }
}

/* ---- sbk/brand-element logo auto-detection (logoMode: 'auto') ----
   Same dual-render + CSS-toggle pattern the header's own normal/docked
   logo already uses (.site-logo-normal/.site-logo-docked above) --
   necessary for the same reason: this block can end up nested inside ANY
   sbk/section's own on-dark/on-light textContext choice, which
   nothing at render time can predict in advance, so both variants are
   always rendered and CSS picks the right one from the nearest ancestor
   .on-dark/.on-light class. Only relevant to logoMode: 'auto' --
   'light'/'normal' render just one variant directly in PHP and never
   touch this toggle at all. Default (no .on-dark ancestor, matching
   .on-light or no context set): the light-background/normal-colored
   variant shows -- same "not dark unless told otherwise" default
   sbk_render_header_logo() itself already uses. */
.sbk-logo-for-dark-bg { display: none; }
.sbk-logo-for-light-bg { display: block; }
/* A caption on a dark surface reads the on-dark body colour. .on-dark sets no
   inherited colour, so a figcaption was left with the browser's dark default
   (a stated exception to "unset renders as 0.6.0"; unreadable text is a bug).
   Every core caption is a figcaption, a gallery's own included. Its captions
   over photos keep core's more specific colour and gradient; .on-light inside
   gets its own --color-body through the same rule. */
.on-dark figcaption { color: var(--color-body); }

.on-dark .sbk-logo-for-dark-bg { display: block; }
.on-dark .sbk-logo-for-light-bg { display: none; }

/* ---- Horizontal overflow: clipped at every Section ----
   A scroll-reveal element waiting off-position (.animate-slide-left starts
   40px right, see below) and any deliberately bleeding image push their
   right edge past the viewport, which made the whole page scroll sideways
   on most pages of the sites it was tested on (measured at 390, 768,
   1024 and 1440). A Section is always full viewport width, so clipping
   horizontally at its edge hides exactly what was already off-screen and
   nothing else. Tighter wrappers (Row, Column) sit inside the container and
   would visibly chop the slide-in, shadows and bleeds mid-page; html/body
   isn't needed because every offender measured lives inside a Section.

   overflow-x: CLIP, not hidden: `hidden` makes the Section a scroll
   container, which breaks position: sticky for anything inside it and
   forces overflow-y to auto (clipping the vertical hero bleeds and
   gradient overlays that deliberately extend past a Section's bottom).
   `clip` does neither. An explicit .overflow-visible / .overflow-hidden on a
   Section still wins, as an escape hatch. */
.wp-block-sbk-section:not(.overflow-visible):not(.overflow-hidden) {
    overflow-x: clip;
}

/* ---- Scroll-reveal animations ----
   Nothing is hidden until motion.js has run (request 3): it first marks
   every element already in view .is-visible (shown at once, no fade),
   then adds .sbk-motion to <html>, which hides the rest at their start
   offsets until they scroll into view (any intersection) and get
   .is-visible. So with JavaScript off, blocked, failing or deferred,
   everything shows. The fade runs only on the way in: the transition is
   on .is-visible, so hiding below the fold is instant. Respects
   prefers-reduced-motion: content shows immediately, no animation, no JS
   observer even runs (see motion.js). */
[class*="animate-"] {
    /* Base delay every animate-* element gets, regardless of stagger --
       --animate-stagger-delay defaults to 0s right here, so an element
       with no .animate-delay-* class just gets the base delay alone. The
       .animate-delay-1..4 classes below only ever set this one custom
       property (never transition-delay directly), so their value always
       composes ADDITIVELY with the base via this one calc() -- e.g.
       .animate-delay-2 becomes 0.1s (base) + 0.2s = 0.3s total, not 0.2s. */
    --animate-stagger-delay: 0s;
}
.sbk-motion [class*="animate-"]:not(.is-visible) { opacity: 0; }
.sbk-motion .animate-fade-up:not(.is-visible) { transform: translateY(24px); }
.sbk-motion .animate-fade-down:not(.is-visible) { transform: translateY(-24px); }
.sbk-motion .animate-slide-left:not(.is-visible) { transform: translateX(40px); }
.sbk-motion .animate-slide-right:not(.is-visible) { transform: translateX(-40px); }

.sbk-motion [class*="animate-"].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 1s ease, transform 1s ease; /* was 0.6s -- read as too quick/snappy for a deliberate reveal */
    transition-delay: calc(0.1s + var(--animate-stagger-delay));
}

.animate-delay-1 { --animate-stagger-delay: 0.1s; }
.animate-delay-2 { --animate-stagger-delay: 0.2s; }
.animate-delay-3 { --animate-stagger-delay: 0.3s; }
.animate-delay-4 { --animate-stagger-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    [class*="animate-"] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ---- Accordion utility ----
   Class-driven (.accordion-toggle/.accordion-content/accordion-icon
   modifiers/.accordion-exclusive), usable on any Row/content anywhere -- not a
   dedicated block. assets/accordion.js wires up the real behavior
   (role="button"/tabindex/aria-expanded/aria-controls, click + keyboard,
   exclusive-group closing, the expand/collapse animation); this CSS only
   supplies sensible-default visual states, which a brand/page can
   restyle further -- see assets/accordion.js in the theme for the full
   class contract.

   .accordion-content's collapsed/expanded state is controlled purely via
   max-height + overflow -- `display` is NEVER set or read here, on
   purpose, not an oversight. An earlier version toggled `display: none`
   <-> `display: block`, which silently overrode a content element's OWN
   needed display value: a two-column flex Row used as .accordion-content
   collapsed its columns into a stack the moment it opened, since the
   accordion's "open" state forced display:block over the Row's own
   display:flex. max-height/overflow control visibility without ever
   touching display, so whatever display an author's own classes specify
   (flex, grid, block, whatever) stays completely untouched, always --
   confirmed directly with a real two-column flex Row as
   .accordion-content, columns staying side by side both collapsed and
   expanded. The actual expand/collapse height animation (measuring
   scrollHeight, transitioning max-height, releasing it to `none` once
   settled so later dynamic content changes aren't clipped) is owned by
   accordion.js -- see that file's own docblock for the full mechanics and
   why display:none would have broken the scrollHeight measurement too.

   IMPORTANT, found via real testing: .accordion-content ITSELF must never
   carry its own padding (or border) -- give any spacing to a single
   wrapper element nested directly inside it instead. This is a real CSS
   floor, not a preference: with box-sizing:border-box, an element's
   padding is never reduced by max-height, only its content area is -- so
   max-height:0 on a `.accordion-content` styled with, say, `pad-medium`
   directly still renders at a visible ~70px tall (2x that padding value)
   even fully "collapsed," confirmed directly by measuring
   getBoundingClientRect() before and after this fix (70px -> a genuine
   0px once the padding moved to a nested wrapper instead). Applies
   equally to plain text content and a flex/grid Row used as
   .accordion-content -- neither is exempt. */
.accordion-toggle {
    cursor: pointer;
}
/* Hover tint and ring from the focus ring colour (request 27), not the
   primary colour: a light primary (a yellow) gave a 1.6:1 ring. A site may
   set --accordion-hover-bg for its own tint. */
.accordion-toggle:hover {
    background-color: var(--accordion-hover-bg, color-mix(in srgb, var(--focus-ring-color, var(--color-heading)) 6%, transparent));
}
.accordion-toggle:focus-visible {
    outline: 2px solid var(--focus-ring-color, var(--color-heading));
    outline-offset: 2px;
}

.accordion-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

/* Icon visual state is driven by the toggle's own aria-expanded attribute
   (accordion.js keeps this in sync on every click/keypress) rather than a
   second class -- that attribute is already the single source of truth
   for open/closed, so nothing else needs to track it again. Both icon
   classes are self-contained: apply the class to an (otherwise empty)
   element and the glyph itself renders via ::before -- an author never
   needs to type a special character by hand.

   Explicit font-size on both -- found necessary via real measurement, not
   assumed: with no font-size of its own, .accordion-icon-chevron's ▾
   glyph inherited whatever the toggle's own (often body-text-sized) font
   size was, which renders as a visually tiny triangle -- small geometric
   glyphs like this read as noticeably smaller than regular text at the
   same font-size in most fonts. .accordion-icon-plusminus's +/− glyphs
   are normal punctuation characters and read at a reasonable size even
   without this (confirmed directly, not assumed), but it gets the same
   explicit size anyway so both icon styles are visually consistent with
   each other by default. */
.accordion-icon-chevron,
.accordion-icon-plusminus {
    display: inline-block;
    font-size: 3rem;
    line-height: 1;
}
.accordion-icon-chevron {
    transition: transform 0.25s ease;
}
.accordion-icon-chevron::before {
    content: "\25BE"; /* ▾ */
}
.accordion-toggle[aria-expanded="true"] .accordion-icon-chevron {
    transform: rotate(180deg);
}

.accordion-icon-plusminus::before {
    content: "+";
}
.accordion-toggle[aria-expanded="true"] .accordion-icon-plusminus::before {
    content: "\2212"; /* − (a real minus sign, not a hyphen) */
}

@media (prefers-reduced-motion: reduce) {
    .accordion-content {
        transition: none;
    }
    .accordion-icon-chevron {
        transition: none;
    }
}

/* ---- Blog components ----
   Structural CSS for the blog archive/single template partials
   (incantive/template-parts/blog/) -- lives here, not in a
   site-specific plugin, since this exact pattern is meant to recur across
   every future site's blog, not just one site's. */

.blog-hero { position: relative; text-align: center; }
.blog-hero.has-bg-image { color: var(--color-white, #fff); }
.blog-hero-title { margin-bottom: 0; }

.card-blog { display: flex; flex-direction: column; overflow: hidden; height: 100%; background: var(--color-white, #fff); }
.card-blog-body { height: 100%; }
.card-blog-image-link { display: block; }
.card-blog-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-blog-featured .card-blog-image { aspect-ratio: 21 / 9; }
.card-blog-title a { color: inherit; text-decoration: none; }
.card-blog-title a:hover { text-decoration: underline; }
.card-blog-category { display: inline-block; }

.blog-filters-form select,
.blog-filters-form input[type="search"] {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-muted);
    border-radius: var(--radius-default, 8px);
    background: var(--color-white, #fff);
}
.blog-tag-pill {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid var(--color-muted);
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
}
.blog-tag-pill.is-active,
.blog-tag-pill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white, #fff);
}

/* the_posts_pagination()'s own markup (home.php) -- .page-numbers is
   WordPress core's own class on each link/current-page span, unstyled by
   default. Font size matches the standard paragraph size (same
   --fs-body-* variables as .p, p) rather than the browser default. */
.blog-pagination { text-align: center; }
.blog-pagination .page-numbers { font-size: var(--fs-body-mobile); }
@media (min-width: 768px) {
    .blog-pagination .page-numbers { font-size: var(--fs-body-desktop); }
}

/* Blog archive redesign, Part 1 -- Load More pagination style
   (pagination.php + assets/load-more.js). Structural/shared since any
   site can pick this Brand Kit option. The button
   itself is a real .button-solid link; .is-loading is only ever toggled
   by load-more.js while its fetch is in flight. */
.load-more-button.is-loading { opacity: 0.6; pointer-events: none; }

.table-of-contents ul { list-style: none; }
.table-of-contents li { padding-block: 0.35rem; }
.table-of-contents .toc-level-3 { padding-left: 1rem; }
.table-of-contents a { color: inherit; text-decoration: none; }
.table-of-contents a:hover { text-decoration: underline; }

/* Blog single redesign, Part 2 -- TOC active-heading bold-tracking
   (assets/toc-active.js). Text-weight only, deliberately no colored
   border/background per item -- that's the separate, continuous Progress
   Bar Style track below, not per-item styling. Shared/generic: applies
   regardless of which Progress Bar Style is active, on every site. */
.toc-link-active { font-weight: 700; }

/* Blog single redesign, Part 2 -- 'toc_sidebar' Progress Bar Style
   (sbk_get_progress_bar_style()): a single continuous vertical track
   to the left of the sidebar TOC's own link list, filling top-down with
   real article scroll progress (assets/toc-progress.js). .toc-progress-wrap
   has no other in-flow child besides the <ul> itself, so its height
   naturally matches the list's -- which is what lets the track below span
   "all TOC entries" as one element, and lets it scroll together with the
   list if .table-of-contents-sidebar's own overflow-y:auto ever kicks in
   for a long heading list, rather than staying pinned to the viewport
   independently of the list it's meant to represent. */
.toc-progress-wrap {
    position: relative;
    padding-left: 1rem;
}
.toc-progress-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    border-radius: 9999px;
    background: var(--color-muted, #eee);
}
.toc-progress-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    border-radius: 9999px;
    background: var(--color-primary);
    transition: height 0.1s linear;
}

/* Sidebar (desktop/tablet) TOC variant -- sticky + height-capped rather
   than a plain full-length outline, so a long post's heading list scrolls
   internally instead of growing past the viewport. Not shown at all below
   768px -- there's no sidebar column at that width (see single-layout.php);
   the inline mobile disclosure variant just below covers that width
   instead, from the exact same sbk_get_post_toc() data.
   --sticky-header-height is written by sticky-header.js (only present at
   all when the Brand Kit's "Sticky header on scroll" toggle is on) and
   re-measured on every scroll tick, since the header's own real height
   shrinks once it docks -- falls back to 0px so a non-sticky header (which
   just scrolls away normally) only needs a small top breathing-room gap,
   not a reserved offset for a header that won't be there. */
.table-of-contents-sidebar {
    display: none;
}
@media (min-width: 768px) {
    .table-of-contents-sidebar {
        display: block;
        position: sticky;
        top: calc(var(--sticky-header-height, 0px) + 1.5rem);
        max-height: calc(80vh - var(--sticky-header-height, 0px));
        overflow-y: auto;
    }
}

/* Gives the sticky TOC its own tall containing block, separate from
   author-info/recommended-blogs (single-layout.php deliberately wraps only
   the TOC in this div, not the whole sidebar) -- without this, a sticky
   element's later flex/block siblings are positioned based on ITS OWN
   natural (unstuck) height, not on how long it actually stays pinned; with
   a short containing block shared by all three sidebar modules, the still-
   pinned TOC visually overlapped author-info/recommended-blogs partway
   through a long article's scroll (confirmed with real migrated content,
   not just reasoned about). `height: 100%` only resolves to a real value
   at all on 768px+ -- .single-blog-sidebar only has a definite height there
   (stretched to match .single-blog-content's height, the default flex
   align-items: stretch on .single-blog-layout, both columns in the same
   row); below 768px the two columns wrap into separate single-item rows,
   .single-blog-sidebar's height stays auto/content-based, and a percentage
   height against a non-definite ancestor resolves to nothing -- so this
   rule is inert there without needing its own breakpoint override, and
   irrelevant anyway since the sidebar TOC variant is display:none below
   768px. Claiming the full column height here is what pushes author-info/
   recommended-blogs down to appear only once the reader nears the end of
   the article, right as the TOC naturally unsticks -- not a workaround,
   the standard resolution for a sticky item sharing a column with normal-
   flow siblings. */
@media (min-width: 768px) {
    .single-blog-toc-wrap {
        height: 100%;
    }
}

/* Mobile TOC variant -- a native <details>/<summary> disclosure, closed by
   default, no JS required for the toggle itself. Genuinely different
   presentation from the sidebar variant above (inline near the top of the
   article content, not sticky, not height-capped), not the same component
   just resized -- see table-of-contents.php. Only shown below 768px; the
   sticky sidebar variant covers 768px and up. */
.table-of-contents-mobile {
    display: block;
}
@media (min-width: 768px) {
    .table-of-contents-mobile {
        display: none;
    }
}
.table-of-contents-mobile summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}
.table-of-contents-mobile summary::-webkit-details-marker {
    display: none; /* Safari/Chrome's default disclosure triangle -- replaced by the +/- below */
}
.table-of-contents-mobile summary::after {
    content: "+";
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
}
.table-of-contents-mobile[open] summary::after {
    content: "\2212"; /* minus sign */
}
.table-of-contents-mobile ul {
    margin-top: 1rem;
}

.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 999;
}
.reading-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.1s linear;
}

.share-copy-link { cursor: pointer; background: none; padding: 0; }
.share-copy-link.is-copied { background: var(--color-primary); color: var(--color-white, #fff); border-color: var(--color-primary); }

.blog-meta-divider { opacity: 0.5; }

/* ------------------------------------------------------------------
   404 (Not Found) -- incantive/404.php
   ------------------------------------------------------------------
   Almost everything here comes from existing utilities (.container,
   .text-center, pad-vert-xlarge, .flex/.gap-2/.justify-center,
   .button-solid/.button-outline, .subtitle). These rules only cover the
   handful of things no utility already provides.

   The search input uses a color-mix(currentColor) border rather than a
   fixed color, so it stays legible if a site ever puts this section on a
   dark background. */
.error-404-code {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 1rem;
    color: var(--color-muted);
}
.error-404-title { margin: 0 0 1.5rem; }
.error-404-message {
    max-width: 44rem;
    margin-inline: auto;
}
.error-404-search {
    max-width: 32rem;
    margin: 2.5rem auto 0;
    flex-wrap: wrap;
}
.error-404-search-input {
    flex: 1 1 14rem;
    padding: 0.75rem 1rem;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: var(--radius-squared, 8px);
    font: inherit;
}
.error-404-actions { margin: 2rem 0 0; }

/* Overlay-header clearance, scoped to body.sbk-header-overlay: with a
   transparent header the <header> is position:fixed and paints ON TOP of
   this section instead of pushing it down, and this page has nothing
   above its own first line of content to absorb that. The framework's generic
   `body.sbk-header-overlay #main-content > *:first-child::before` rule
   only stretches the first section's BACKGROUND up behind the header; it
   adds no clearance for content, which is why each such template carries
   its own padding-top.

   Values were measured against a real render (142px header at both
   desktop and 390px, 20rem/18rem clearing it with room to spare). With a solid (non-overlay) header the header
   occupies real flow space and pad-vert-xlarge is already correct, which
   is why this is not applied unconditionally. */
body.sbk-header-overlay .error-404 { padding-top: 20rem; }
@media (max-width: 767px) {
    body.sbk-header-overlay .error-404 { padding-top: 18rem; }
}
