:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #5f6670;
    --line: #e4e1da;
    --accent: #2f5d50;
    --accent-soft: #e5efeb;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; }

code {
    font-size: .9em;
    background: var(--accent-soft);
    padding: .1em .35em;
    border-radius: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --container, --container-wide and --gutter come from Design → Layout (src/lib/layoutstyle.php) */
.wrap {
    width: 100%;
    max-width: var(--container, 1080px);
    margin: 0 auto;
    padding: 0 var(--gutter, 16px);
}

/* Admin bar (only for logged-in users) */
.admin-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 6px 16px;
    background: #1d2327;
    color: #c3c4c7;
    font-size: .8rem;
}
.admin-bar a { color: #fff; text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }
.admin-bar-user { margin-left: auto; }

/* ---------- Header (built in Admin → Header) ---------- */
.site-header { position: relative; z-index: 30; }
.site-header.is-sticky { position: sticky; top: var(--stick-d); } /* the top bar scrolls away, the rest sticks */
/* Once scrolled (Header style → When scrolling): a soft shadow and/or a thin line */
.site-header.hs-shadow { --hs-shadow: 0 4px 20px rgb(0 0 0 / .08); }
.site-header.hs-line { --hs-line: 0 1px 0 rgb(127 127 127 / .22); }
.site-header.is-scrolled { box-shadow: var(--hs-line, 0 0 #0000), var(--hs-shadow, 0 0 #0000); }
/* Shy header (app.js): slides up out of view while scrolling down, back down when scrolling up */
.site-header.is-shy { transition: translate .3s ease, box-shadow .3s; }
.site-header.is-shy.is-hidden { translate: 0 -100%; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .site-header.is-shy { transition: none; } }

/*
 * Back to top button (Design → Layout, app.js adds .is-shown). Sizes, gaps and colours come from --tt-* on :root;
 * --tt-p (0–1, app.js) fills the ring. Hidden with visibility, so it's out of the Tab order until it shows.
 */
.to-top {
    --tt-s: var(--tt-size, 48px);
    --tt-g: var(--tt-gap, 24px);
    --tt-c: var(--tt-bg, var(--color-primary));
    --tt-ink: var(--tt-fg, #fff);
    --tt-h: var(--tt-hover, color-mix(in srgb, var(--tt-c) 82%, #000));
    --tt-r: 50%;
    position: fixed; bottom: calc(var(--tt-g) + env(safe-area-inset-bottom, 0px)); z-index: 90;
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    min-width: var(--tt-s); height: var(--tt-s); padding: 0; border: 2px solid transparent; border-radius: var(--tt-r);
    background: var(--tt-c); color: var(--tt-ink); font-family: inherit; font-weight: 600; font-size: max(13px, calc(var(--tt-s) * .3)); line-height: 1;
    cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / .18);
    opacity: 0; visibility: hidden; translate: 0 12px;
    transition: opacity .25s, translate .25s ease, visibility 0s .25s, background-color .2s, color .2s, border-color .2s;
}
.to-top--right { right: calc(var(--tt-g) + env(safe-area-inset-right, 0px)); }
.to-top--left { left: calc(var(--tt-g) + env(safe-area-inset-left, 0px)); }
.to-top.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.to-top.is-shown:hover { translate: 0 -2px; }
.to-top svg { width: 46%; height: auto; flex: none; }
.to-top--rounded { --tt-r: calc(var(--tt-s) * .28); }
.to-top--square { --tt-r: 0px; }
.to-top--pill { --tt-r: 999px; padding: 0 1.1em 0 .9em; }
.to-top--pill svg { width: calc(var(--tt-s) * .42); }
.to-top:hover, .to-top:focus-visible { background: var(--tt-h); }
.to-top:focus-visible { outline: 3px solid var(--tt-c); outline-offset: 3px; }
.to-top--outline { background: transparent; border-color: var(--tt-c); color: var(--tt-c); box-shadow: none; }
.to-top--soft { background: color-mix(in srgb, var(--tt-c) 14%, transparent); color: var(--tt-c); box-shadow: none; }
.to-top--outline:hover, .to-top--soft:hover, .to-top--outline:focus-visible, .to-top--soft:focus-visible { background: var(--tt-c); border-color: var(--tt-c); color: var(--tt-ink); }
.to-top--glass { background: color-mix(in srgb, var(--tt-c) 55%, transparent); border-color: rgb(255 255 255 / .25); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); }
.to-top--glass:hover, .to-top--glass:focus-visible { background: color-mix(in srgb, var(--tt-c) 80%, transparent); }
/* The ring: a 3px band just outside the button, filled clockwise by --tt-p over a faint track */
.to-top.has-ring::before {
    content: ""; position: absolute; inset: -7px; border-radius: calc(var(--tt-r) + 7px); padding: 3px; pointer-events: none;
    background: conic-gradient(var(--tt-c) calc(var(--tt-p, 0) * 1turn), color-mix(in srgb, var(--tt-c) 18%, transparent) 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.to-top--circle.has-ring::before { border-radius: 50%; }
.site-header[tabindex="-1"]:focus { outline: none; } /* keyboard focus lands here after "back to top" */
@media (max-width: 767px) {
    .to-top { --tt-s: var(--tt-size-phone, 42px); --tt-g: var(--tt-gap-phone, 16px); }
    .to-top.no-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.is-shown:hover { translate: none; } .to-top { transition: opacity .2s, visibility 0s .2s; } }
@media print { .to-top { display: none; } }

/*
 * ---------- Header style (Design → Header → Header style, see header_shell_attrs) ----------
 * Two layers behind the rows: ::before is the look at the top of the page, ::after the look once scrolled; they
 * cross-fade. hs-top-{solid|glass|clear|shade} and hs-s-{solid|glass|same} say what each state is ("same": it stays
 * as at the top, so the top rules apply while scrolled too). In a state that isn't solid the rows are see-through,
 * so the layer (or the page) shows instead of their own colours.
 * --hs-c / --hs-b: the glass colour and blur; --hs-i: the dark shade; --hs-ext: how far it fades out below the
 * header; the same with -s once scrolled; --hs-fg / --hs-fg-s: the text colour.
 */
.site-header::before, .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: -1; pointer-events: none;
    opacity: 0; transition: opacity .35s ease;
}
.site-header::before {
    height: calc(100% + var(--hs-ext, 0px));
    background-color: var(--hs-c, transparent); background-image: var(--hs-i, none);
    -webkit-backdrop-filter: blur(var(--hs-b, 0px)); backdrop-filter: blur(var(--hs-b, 0px));
}
/* Transparent, frosted fade: the blur fades out downwards, so it has no hard edge */
.site-header.hs-top-fade::before { -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.site-header::after { background-color: var(--hs-c-s, transparent); -webkit-backdrop-filter: blur(var(--hs-b-s, 0px)); backdrop-filter: blur(var(--hs-b-s, 0px)); }
.site-header:is(.hs-top-glass, .hs-top-shade):is(:not(.is-scrolled), .hs-s-same)::before { opacity: 1; }
.site-header.hs-s-glass.is-scrolled::after { opacity: 1; }
.hdr-row { transition: background-color .35s, color .35s; }
.site-header:not(.hs-top-solid):is(:not(.is-scrolled), .hs-s-same) .hdr-row,
.site-header.hs-s-glass.is-scrolled .hdr-row { background-color: transparent; }
.site-header.hs-fg:is(:not(.is-scrolled), .hs-s-same) .hdr-row { color: var(--hs-fg); }
.site-header.hs-fg-s.is-scrolled .hdr-row { color: var(--hs-fg-s); }
.site-header:not(.hs-top-solid):is(:not(.is-scrolled), .hs-s-same) .hdr-row.has-border { border-bottom-color: color-mix(in srgb, currentColor 18%, transparent); }
/* "The top bar takes this look too" off: it keeps its own colours */
.site-header.hs-keep-top .hdr-row--top { background-color: var(--row-bg) !important; color: var(--row-fg) !important; }
/* The logo for the look (Header style → Logo), e.g. a white one over a photo */
.hdr-logo .hdr-logo-alt { display: none; } /* as specific as ".hdr-logo img", which would show it */
.site-header.hs-alt-logo:is(:not(.is-scrolled), .hs-s-same) .hdr-logo:has(.hdr-logo-alt) .hdr-logo-main { display: none; }
.site-header.hs-alt-logo:is(:not(.is-scrolled), .hs-s-same) .hdr-logo-alt { display: block; }
@media (prefers-reduced-motion: reduce) { .site-header::before, .site-header::after, .hdr-row { transition: none; } }

/* Transparent looks: over the page's first section, out of the page's flow */
.site-header.is-transparent { position: absolute; left: 0; right: 0; }
.site-header.is-transparent:not(.is-scrolled) { top: var(--admin-bar-h, 0px); } /* under the admin bar (measured by app.js; visitors have none) */
/* Fades in place: fixed from the start, following the page until the top bar has gone (--hdr-y, app.js) */
.site-header.is-transparent.hs-fixed { position: fixed; top: var(--hdr-y, var(--admin-bar-h, 0px)); }
/* Scrolls away, then slides back in once out of sight (the way it used to be) */
.site-header.is-transparent.hs-slide.is-scrolled { position: fixed; top: var(--stick-d); animation: hdr-slide-in .35s ease-out; }
@media (max-width: 1023px) { .site-header.is-transparent.hs-slide.is-scrolled { top: var(--stick-m); } }
@keyframes hdr-slide-in { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .site-header.is-transparent.is-scrolled { animation: none; } }
/* A slimmer header while stuck (Row settings → Height when stuck): the logo shrinks to fit */
.hdr-wrap { transition: min-height .2s; }
.site-header.is-scrolled .hdr-row--main > .hdr-wrap { min-height: var(--row-h-stuck, var(--row-h)); }
.site-header.is-scrolled .hdr-row--main .hdr-logo img { max-height: calc(var(--row-h-stuck, 999px) - 16px); width: auto; }

/* Desktop and mobile headers are both in the HTML; show the right one (breakpoint: HEADER_MOBILE_BREAKPOINT) */
.hdr--mobile { display: none; }
@media (max-width: 1023px) {
    .hdr--desktop { display: none; }
    .hdr--mobile { display: block; }
    .site-header.is-sticky { top: var(--stick-m); }
}

.hdr-row { background: var(--row-bg); color: var(--row-fg); }
.hdr-row.has-border { border-bottom: 1px solid color-mix(in srgb, var(--row-fg) 12%, transparent); }
.hdr-row--top, .hdr-row--bottom { font-size: .88rem; }
.hdr-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 24px;
    min-height: var(--row-h);
    max-width: var(--container, 1080px);
    margin: 0 auto;
    padding: 0 var(--gutter, 16px);
}
.hdr-wrap--full { max-width: none; padding: 0 24px; }
.hdr-wrap.has-center { grid-template-columns: 1fr auto 1fr; }

/* Floating bar (Header style → Floating bar, or a row's settings): the row's background becomes a rounded bar with space around it */
.hdr-row.is-float { background: transparent; padding: var(--fl-t) var(--fl-s) 0; }
.hdr-row.is-float > .hdr-wrap {
    max-width: var(--fl-max, 100%); padding: 0 max(16px, calc(var(--fl-r) * .75));
    background-color: var(--fl-bg, var(--row-bg)); border-radius: var(--fl-r);
    transition: background-color .35s, box-shadow .35s, padding .35s, max-width .35s, border-radius .35s;
}
/* Bar colour of its own (--fl-bg): the row's Background colour fills the strip behind the bar */
.hdr-row.is-float.fl-strip { background: var(--row-bg); }
.hdr-row.is-float.has-border { border-bottom: 0; }
.hdr-row.is-float.has-border > .hdr-wrap { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--row-fg) 12%, transparent); }
.hdr-row.is-float.fl-shadow-soft > .hdr-wrap { box-shadow: 0 6px 24px rgb(0 0 0 / .1); }
.hdr-row.is-float.fl-shadow-strong > .hdr-wrap { box-shadow: 0 14px 40px rgb(0 0 0 / .22); }
.hdr-row.is-float + .hdr-row.is-float { padding-top: 8px; } /* two floating rows: a small gap between the bars */
.site-header.is-scrolled:has(.hdr-row--main.is-float) { box-shadow: none; } /* the bar has its own shadow */
/* The look paints the bar, not the whole width: glass on the bar, nothing for the transparent looks */
.site-header.hs-float.hs-top-glass:not(.hs-fl-after)::before, .site-header.hs-float::after { display: none; }
.site-header.hs-top-glass:is(:not(.is-scrolled), .hs-s-same) .hdr-row.is-float > .hdr-wrap {
    background-color: var(--hs-c); -webkit-backdrop-filter: blur(var(--hs-b)); backdrop-filter: blur(var(--hs-b));
}
.site-header.hs-s-glass.is-scrolled .hdr-row.is-float > .hdr-wrap {
    background-color: var(--hs-c-s); -webkit-backdrop-filter: blur(var(--hs-b-s)); backdrop-filter: blur(var(--hs-b-s));
}
.site-header:is(.hs-top-clear, .hs-top-shade):is(:not(.is-scrolled), .hs-s-same) .hdr-row.is-float > .hdr-wrap { background-color: transparent; box-shadow: none; }
/* Float only after scrolling: full width at the top (the bar's colour across the row), the floating bar once scrolled */
.site-header:not(.is-scrolled) .hdr-row.is-float.fl-after { padding: 0; }
.site-header:not(.is-scrolled) .hdr-row.is-float.fl-after > .hdr-wrap {
    max-width: var(--container, 1080px); padding: 0 var(--gutter, 16px); border-radius: 0;
    background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.hs-top-solid:not(.is-scrolled) .hdr-row.is-float.fl-after { background-color: var(--fl-bg, var(--row-bg)); }
.hdr-row.is-float.fl-after { transition: padding .35s, background-color .35s; }
@media (prefers-reduced-motion: reduce) { .hdr-row.is-float, .hdr-row.is-float > .hdr-wrap { transition: none; } }
.hdr-col { display: flex; align-items: center; gap: 12px 20px; min-width: 0; }
.hdr-col--center { justify-content: center; }
.hdr-col--right { justify-content: flex-end; }
@media (max-width: 1023px) { .hdr-col { gap: 8px 12px; } }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Logo */
.hdr-logo { display: flex; align-items: center; color: inherit; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.hdr-logo img { display: block; height: var(--logo-h); width: auto; max-width: 60vw; object-fit: contain; }
.hdr-logo-text { white-space: nowrap; }

/* Menu */
.hdr-menu ul { list-style: none; margin: 0; padding: 0; }
/* --menu-* values come from the Menu element's settings in the header builder */
.hdr-menu > ul { display: flex; flex-wrap: wrap; gap: var(--menu-gap, 2px); }
.hdr-menu li { position: relative; }
.hdr-menu > ul > li > a {
    display: block;
    padding: var(--menu-py, 6px) var(--menu-px, 13px);
    color: inherit;
    text-decoration: none;
    font-size: var(--menu-size, 16px);
    letter-spacing: var(--menu-ls, 0);
    text-transform: var(--menu-case, none);
    font-weight: var(--font-nav-weight, 500);
    border-radius: 999px;
    position: relative; isolation: isolate; /* above the gliding marker; its own marker (::before / ::after) behind its text */
    transition: opacity .2s, color .2s;
}

/*
 * ---------- Header menu: marker and text effects (Menu element → Hover & current page) ----------
 * mark-{pill|underline|dot|none}: the current page's link has the marker, and so does the link the pointer (or
 * keyboard focus) is on. With "glides" (data-glide), app.js puts one .nav-mark in the menu and moves it from link to
 * link (.is-gliding); without it (or before app.js runs) each link draws its own, growing into place.
 * fx-*: the text: fade (the others dimmer), roll / roll-word (the text rolls up and comes back from below, .nav-roll),
 * none. --mark-c / --mark-o: the marker colour and the pill's strength; --menu-active: the current link's text colour.
 */
.hdr-menu { --mark: var(--mark-c, currentColor); }
.hdr-menu.fx-fade > ul > li > a { opacity: .78; }
.hdr-menu > ul > li > a:is(:hover, :focus-visible, [aria-current="page"], .is-in-view) { opacity: 1; color: var(--menu-active, inherit); }
.hdr-menu.mark-underline > ul > li > a, .hdr-menu.mark-dot > ul > li > a { border-radius: 0; }
/* Each link's own marker (not gliding): grows into place */
.hdr-menu:not(.is-gliding).mark-pill > ul > li > a::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: color-mix(in srgb, var(--mark) var(--mark-o, 12%), transparent); opacity: 0; scale: .86; transition: opacity .25s, scale .3s cubic-bezier(.3, .7, .2, 1);
}
.hdr-menu:not(.is-gliding):is(.mark-underline, .mark-dot) > ul > li > a::after {
    content: ""; position: absolute; left: var(--menu-px, 13px); right: var(--menu-px, 13px); bottom: 2px; height: 2px; border-radius: 2px;
    background: var(--mark); scale: 0 1; transform-origin: left center; transition: scale .35s cubic-bezier(.3, .7, .2, 1);
}
.hdr-menu:not(.is-gliding).mark-dot > ul > li > a::after { left: 50%; right: auto; width: 5px; height: 5px; margin-left: -2.5px; bottom: 0; border-radius: 50%; scale: 0; transform-origin: center; }
.hdr-menu:not(.is-gliding).mark-pill > ul > li > a:is(:hover, :focus-visible, [aria-current="page"], .is-in-view)::before { opacity: 1; scale: 1; }
.hdr-menu:not(.is-gliding):is(.mark-underline, .mark-dot) > ul > li > a:is(:hover, :focus-visible, [aria-current="page"], .is-in-view)::after { scale: 1; }
/* One marker gliding from link to link (app.js): --mx/--my where it is, --mw/--mh its size */
.hdr-menu.is-gliding { position: relative; }
.nav-mark {
    position: absolute; left: 0; top: 0; z-index: 0; width: var(--mw, 0); height: var(--mh, 0); translate: var(--mx, 0) var(--my, 0);
    pointer-events: none; opacity: 0;
    transition: translate .4s cubic-bezier(.3, .7, .2, 1), width .4s cubic-bezier(.3, .7, .2, 1), height .4s cubic-bezier(.3, .7, .2, 1), opacity .2s;
}
.nav-mark.is-on { opacity: 1; }
.nav-mark.is-jump { transition: opacity .2s; } /* appearing: in place, not sliding in from where it was last */
.mark-pill .nav-mark { border-radius: 999px; background: color-mix(in srgb, var(--mark) var(--mark-o, 12%), transparent); }
.mark-underline .nav-mark::after, .mark-dot .nav-mark::after { content: ""; position: absolute; background: var(--mark); }
.mark-underline .nav-mark::after { left: var(--menu-px, 13px); right: var(--menu-px, 13px); bottom: 2px; height: 2px; border-radius: 2px; }
.mark-dot .nav-mark::after { left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; }
.hdr-menu.is-gliding > ul > li > a { z-index: 1; }
/* Text effect "roll": the text moves up out of view while a copy comes up from below, letter by letter (--i) or as one word */
/* The link's own line height, so the rolling text sits exactly where plain text would (same pill / underline spacing) */
.nav-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.nav-roll-a, .nav-roll-b { display: block; white-space: nowrap; }
.nav-roll-b { position: absolute; left: 0; top: 100%; }
.nav-roll i { display: inline-block; font-style: normal; transition: translate .5s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * 22ms); }
.hdr-menu > ul > li > a:is(:hover, :focus-visible) .nav-roll i { translate: 0 -100%; }
@media (prefers-reduced-motion: reduce) {
    .hdr-menu > ul > li > a::before, .hdr-menu > ul > li > a::after, .nav-mark { transition: opacity .2s; }
    .hdr-menu > ul > li > a:is(:hover, :focus-visible) .nav-roll i { translate: none; }
}
/* The menu's container (Menu element → Container): one capsule behind all the links */
.hdr-menu.has-box { position: relative; padding: var(--mbox-pad); background: var(--mbox-bg); border-radius: var(--mbox-r); }
.hdr-menu.box-border { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }
.hdr-menu.box-glow::after {
    content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, currentColor, transparent); opacity: .45;
}
/* Items with a dropdown: the link, and beside it a small button that opens it (keyboard, touch, screen readers) */
.hdr-menu > ul > li.has-children { display: flex; align-items: center; }
.hdr-menu > ul > li.has-children > a { padding-right: calc(var(--menu-px, 13px) / 2); }
.submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 22px; height: 22px; margin: 0 calc(var(--menu-px, 13px) / 2 - 4px) 0 -4px; padding: 0;
    border: 0; border-radius: 50%; background: none; color: inherit; opacity: .7; cursor: pointer;
}
.submenu-toggle::before { /* the arrow */
    content: ""; width: 6px; height: 6px; margin-top: -3px;
    border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .15s;
}
.submenu-toggle:hover, .submenu-toggle:focus-visible { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.submenu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.hdr-menu li.is-open > .submenu-toggle::before { transform: rotate(225deg); margin-top: 3px; }
/* Inside a dropdown: the button points right, to the next dropdown */
.hdr-menu .submenu li.has-children { display: flex; align-items: center; }
.hdr-menu .submenu li.has-children > a { flex: 1; }
.hdr-menu .submenu .submenu-toggle { margin: 0 2px 0 0; color: var(--dd-link, var(--muted)); }
.hdr-menu .submenu .submenu-toggle::before { transform: rotate(-45deg); margin: 0 0 0 -3px; }

/* Dropdowns. The --dd-* values come from Design → Menu styles (src/lib/menustyle.php); these fallbacks are the defaults. */
.hdr-menu .submenu {
    position: absolute;
    top: calc(100% + var(--dd-offset, 0px));
    left: 0;
    z-index: 5;
    min-width: var(--dd-minw, 210px);
    padding: var(--dd-pad, 6px);
    background: var(--dd-bg, var(--surface));
    color: var(--text);
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-size: var(--dd-link-size, 1rem);
    border: var(--dd-bw, 1px) solid var(--dd-border, var(--line));
    border-radius: var(--dd-radius, var(--radius));
    box-shadow: var(--dd-shadow, 0 10px 30px rgb(0 0 0 / .1));
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.hdr-menu .submenu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--dd-offset, 0px) + 6px); } /* a bridge across the gap, so it stays open on the way down */
.hdr-menu .submenu .submenu::before { inset: 0 100% 0 auto; width: 8px; height: auto; }
.hdr-col--right .hdr-menu > ul > li:last-child > .submenu { left: auto; right: 0; }
.hdr-menu .submenu .submenu { top: calc(-1 * var(--dd-pad, 6px) - var(--dd-bw, 1px)); left: calc(100% + var(--dd-pad, 6px)); }
.hdr-menu .submenu a {
    display: block;
    padding: var(--dd-link-py, 7px) var(--dd-link-px, 12px);
    border-radius: var(--dd-link-radius, 6px);
    color: var(--dd-link, var(--muted));
    text-decoration: none;
    transition: color .12s, background .12s;
}
.hdr-menu .submenu a:hover { color: var(--dd-link-hover, var(--dd-link, var(--text))); background: var(--dd-link-hover-bg, var(--bg)); }
.hdr-menu .submenu a:is([aria-current="page"], .is-in-view) { color: var(--dd-link-active, var(--accent)); background: var(--dd-link-active-bg, var(--accent-soft)); }
/* Open on hover, or with the button (is-open, set by app.js). Not on focus alone: Tab would go through every link in every dropdown. */
.hdr-menu li:hover > :is(.submenu, .mega-menu),
.hdr-menu li.is-open > :is(.submenu, .mega-menu) { opacity: 1; visibility: visible; transform: none; }
@media (hover: none) { .hdr-menu li:not(.is-open):hover > :is(.submenu, .mega-menu) { opacity: 0; visibility: hidden; } } /* touch: only the button opens it */

/* Mega menu: a block as the dropdown (Admin → Menus). Placed against the header row, not the link. */
.hdr-row { position: relative; }
.hdr-menu li.has-mega:not(.mega-fixed) { position: static; }
.hdr-menu .mega-menu {
    position: absolute; top: calc(100% + var(--dd-offset, 0px)); z-index: 5;
    max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--mega-bg, var(--surface)); color: var(--text); text-align: left; text-transform: none; letter-spacing: normal; font-size: 1rem; font-weight: 400;
    border: var(--dd-bw, 1px) solid var(--dd-border, var(--line)); border-radius: 0 0 var(--mega-radius, var(--radius)) var(--mega-radius, var(--radius));
    box-shadow: var(--mega-shadow, 0 18px 40px rgb(0 0 0 / .12));
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.hdr-menu .mega-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; } /* a bridge from the link, so it stays open on the way down */
.hdr-menu .mega-menu--full { left: 0; right: 0; border-radius: 0; border-inline: 0; }
.hdr-menu .mega-menu--container { left: 50%; translate: -50% 0; width: min(var(--container, 1080px), calc(100vw - 32px)); }
.hdr-menu .mega-menu--fixed { left: 0; width: min(var(--mega-w, 640px), calc(100vw - 32px)); border-radius: var(--mega-radius, var(--radius)); }
.hdr-col--right .hdr-menu > ul > li:last-child > .mega-menu--fixed { left: auto; right: 0; }
.mega-inner > .pb-block > .pb-section:first-child { border-top-left-radius: inherit; }
@media (prefers-reduced-motion: reduce) { .hdr-menu :is(.submenu, .mega-menu), .submenu-toggle::before { transition: none; } }

/* Button: the page builder's Button (header_button_fields), on one line and a little more compact in the header */
:is(.site-header, .drawer) .pb-btn { white-space: nowrap; }
:is(.site-header, .drawer) .pb-btn--sm { --size-py: 5px; --size-px: 14px; font-size: .85rem; }
:is(.site-header, .drawer) .pb-btn--md { --size-py: 8px; --size-px: 20px; font-size: .95rem; }
:is(.site-header, .drawer) .pb-btn--lg { --size-py: 12px; --size-px: 28px; font-size: 1.05rem; }

/* Menu icon */
.hdr-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.hdr-toggle:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.hdr-toggle.label-before { flex-direction: row-reverse; }
.hdr-toggle--outline { border: 1.5px solid currentColor; }
.hdr-toggle--filled { background: var(--color-primary); color: #fff; padding-inline: 14px; }
.hdr-toggle--filled:hover { background: color-mix(in srgb, var(--color-primary) 85%, #000); }
.hdr-toggle:has(.hdr-toggle-label) { padding-inline: 14px; }
.hdr-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.show-on-phones { display: none; }
@media (max-width: 767px) {
    .hdr-toggle .hide-on-phones { display: none; }
    .hdr-toggle .show-on-phones { display: block; } /* still visually hidden: the button's name for screen readers */
    .hdr-toggle:has(.hide-on-phones) { padding-inline: 10px; }
}
.hdr-toggle-bars,
.hdr-toggle-bars::before,
.hdr-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.hdr-toggle-bars { position: relative; }
.hdr-toggle-bars::before,
.hdr-toggle-bars::after { content: ""; position: absolute; left: 0; }
.hdr-toggle-bars::before { top: -7px; }
.hdr-toggle-bars::after { top: 7px; }

/* Contact, social, text, divider */
.hdr-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hdr-contact-item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.hdr-contact-item:hover { text-decoration: underline; }
.hdr-contact-item .icon { opacity: .75; }
.hdr-social { display: flex; align-items: center; gap: 4px; }
.hdr-social a { display: inline-flex; padding: 6px; border-radius: 6px; color: inherit; opacity: .8; }
.hdr-social a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.hdr-social--sm .icon { width: 15px; height: 15px; }
.hdr-social--md .icon { width: 19px; height: 19px; }
.hdr-social--lg .icon { width: 24px; height: 24px; }
.hdr-text p { margin: 0; }
.hdr-text a { color: inherit; }
.hdr-divider { width: 1px; height: 1.6em; background: currentColor; opacity: .2; }

/* Mobile menu (slides in from the left). Width, background and text colour come from the header builder. */
.drawer {
    --drawer-fg: var(--text);
    --drawer-muted: var(--muted);
    --drawer-line: color-mix(in srgb, var(--drawer-fg) 12%, transparent);
    --drawer-hover: color-mix(in srgb, var(--drawer-fg) 7%, transparent);
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--drawer-w, 360px), 88vw);
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--drawer-bg, var(--surface));
    color: var(--drawer-fg);
    box-shadow: 10px 0 40px rgb(0 0 0 / .2);
}
.drawer--light-text {
    --drawer-fg: #fff;
    --drawer-muted: rgb(255 255 255 / .72);
}
.drawer::backdrop { background: rgb(0 0 0 / .45); }
.drawer[open] { animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(-100%); } }
/* From the right */
.drawer--right { inset: 0 0 0 auto; box-shadow: -10px 0 40px rgb(0 0 0 / .2); }
.drawer--right[open] { animation-name: drawer-in-right; }
@keyframes drawer-in-right { from { transform: translateX(100%); } }
/* Full screen: big, centred links (for headers with only a Menu button) */
.drawer--full { inset: 0; width: 100%; box-shadow: none; }
.drawer--full[open] { animation: drawer-fade .25s ease-out; }
@keyframes drawer-fade { from { opacity: 0; transform: scale(1.02); } }
.drawer--full .drawer-head { border-bottom: 0; padding: 16px 20px; }
.drawer--full .drawer-body { flex: 1; justify-content: center; align-items: center; width: 100%; max-width: 640px; margin: 0 auto; padding-bottom: 12vh; text-align: center; }
.drawer--full .drawer-body > * { width: 100%; }
.drawer--full .drawer-body > .pb-button-wrap { width: auto; align-self: center; }
.drawer--full .drawer-body :is(.hdr-contact, .hdr-social) { justify-content: center; align-items: center; }
.drawer--full .drawer-menu a { padding: 10px 0; border-bottom: 0; font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: var(--font-headings-weight, 700); }
.drawer--full .drawer-menu .submenu a { padding-left: 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.drawer--full .drawer-menu .submenu-toggle { border-bottom: 0; }
.drawer--full .drawer-menu li.has-children { grid-template-columns: 48px 1fr 48px; }
.drawer--full .drawer-menu li.has-children > a { grid-column: 2; }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
body:has(.drawer[open]) { overflow: hidden; }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; justify-content: flex-end; padding: 8px; border-bottom: 1px solid var(--drawer-line); }
.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
}
.drawer-close:hover { background: var(--drawer-hover); }
.drawer-body { display: flex; flex-direction: column; gap: 24px; padding: 12px 20px 32px; overflow-y: auto; }
.drawer-body > .pb-button-wrap { align-self: stretch; }
.drawer-body > .pb-button-wrap > .pb-btn { width: 100%; }
.drawer--full .drawer-body > .pb-button-wrap > .pb-btn { width: auto; }
.drawer-body .hdr-contact { flex-direction: column; gap: 10px; }
.drawer-body .hdr-social { margin-left: -6px; }
.drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.drawer-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--drawer-line);
    color: var(--drawer-fg);
    text-decoration: none;
    font-weight: var(--font-nav-weight, 500);
    font-size: 1.05rem;
}
.drawer-menu .submenu a { padding-left: 16px; font-weight: 400; font-size: 1rem; color: var(--drawer-muted); }
.drawer-menu .submenu .submenu a { padding-left: 32px; }
/* Sub-menus fold open with the arrow button beside their parent (the current page's start open) */
.drawer-menu li.has-children { display: grid; grid-template-columns: 1fr auto; }
.drawer-menu li.has-children > :is(.submenu, .submenu-group) { grid-column: 1 / -1; }
.drawer-menu li.has-children:not(.is-open) > :is(.submenu, .submenu-group) { display: none; }
.drawer-menu .submenu-toggle {
    width: 48px; height: auto; margin: 0; border-radius: 0; opacity: 1;
    border-bottom: 1px solid var(--drawer-line); color: var(--drawer-muted);
}
.drawer-menu .submenu-toggle:hover { background: var(--drawer-hover); }
.drawer-menu li.is-open > .submenu-toggle::before { transform: rotate(225deg); margin-top: 3px; }
.drawer-menu .mega-menu { padding: 8px 0; border-bottom: 1px solid var(--drawer-line); color: var(--text); }
.drawer-menu .mega-menu a { border-bottom: 0; padding: 0; display: inline; font-weight: inherit; font-size: inherit; color: inherit; }
.drawer-menu .mega-menu .pb-btn { display: inline-flex; }
.drawer-menu a:is([aria-current="page"], .is-in-view) { color: var(--accent); }
.drawer--light-text .drawer-menu a:is([aria-current="page"], .is-in-view) { color: var(--drawer-fg); font-weight: 700; } /* the accent colour can be hard to read on dark backgrounds */

/* Content */
main {
    flex: 1;
    outline: none;
}
/*
 * Page transitions (Design → Layout → Page transitions: data-transition on <html>). app.js adds .pt-leave while
 * the next page is fetched (the content goes out, or the curtain comes over), swaps the content, then .pt-enter
 * (the new content comes in, or the curtain goes away); .pt-back on Back, so a slide goes the other way.
 * Each effect is a pair of animations; --pt-dur is the time each way. None of it plays for reduced motion.
 */
[data-transition="fade"]  { --pt-out: pt-fade-out; --pt-in: pt-fade-in; }
[data-transition="rise"]  { --pt-out: pt-rise-out; --pt-in: pt-rise-in; }
[data-transition="slide"] { --pt-out: pt-slide-out; --pt-in: pt-slide-in; }
[data-transition="slide"].pt-back { --pt-out: pt-slide-out-back; --pt-in: pt-slide-in-back; }
[data-transition="blur"]  { --pt-out: pt-blur-out; --pt-in: pt-blur-in; }
@keyframes pt-fade-out { to { opacity: 0; } }
@keyframes pt-fade-in { from { opacity: 0; } }
@keyframes pt-rise-out { to { opacity: 0; translate: 0 -8px; } }
@keyframes pt-rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes pt-slide-out { to { opacity: 0; translate: -48px 0; } }
@keyframes pt-slide-in { from { opacity: 0; translate: 48px 0; } }
@keyframes pt-slide-out-back { to { opacity: 0; translate: 48px 0; } }
@keyframes pt-slide-in-back { from { opacity: 0; translate: -48px 0; } }
@keyframes pt-blur-out { to { opacity: 0; filter: blur(8px); } }
@keyframes pt-blur-in { from { opacity: 0; filter: blur(8px); } }
@keyframes pt-curtain-in { from { scale: 1 0; } }
@keyframes pt-curtain-out { to { scale: 1 0; } }
.pt-curtain { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .pt-leave main { animation: var(--pt-out, none) var(--pt-dur, 300ms) cubic-bezier(.4, 0, 1, 1) both; }
    .pt-enter main { animation: var(--pt-in, none) var(--pt-dur, 300ms) cubic-bezier(0, 0, .2, 1) both; }
    [data-transition="slide"]:is(.pt-leave, .pt-enter) body { overflow-x: clip; } /* no sideways scrollbar while content is off to one side */
    /* Curtain: a panel in the chosen colour rises over the whole page (header too), then lifts away from the new one */
    [data-transition="curtain"]:is(.pt-leave, .pt-enter) .pt-curtain {
        display: block; position: fixed; inset: 0; z-index: 999; pointer-events: none; background: var(--pt-curtain, #111);
    }
    [data-transition="curtain"] .progress { z-index: 1000; }
    [data-transition="curtain"].pt-leave .pt-curtain { transform-origin: 50% 100%; animation: pt-curtain-in var(--pt-dur, 300ms) cubic-bezier(.65, 0, .35, 1) both; }
    [data-transition="curtain"].pt-enter .pt-curtain { transform-origin: 50% 0; animation: pt-curtain-out var(--pt-dur, 300ms) cubic-bezier(.65, 0, .35, 1) both; }
}
.page-classic { padding-block: 48px 64px; }
.preview-notice { margin-top: 16px; }

h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 .6em;
    letter-spacing: -.01em;
}
h2 { margin-top: 1.8em; font-size: 1.3rem; }

.page-classic .page { max-width: 780px; }

.lead { font-size: 1.2rem; color: var(--muted); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
}
.card ol { padding-left: 1.2em; margin-bottom: 0; }
.card li + li { margin-top: 6px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.grid .card { margin: 0; }
.grid h3 { margin: 0 0 6px; font-size: 1.05rem; }
.grid p { margin: 0; color: var(--muted); }

.preview-notice {
    margin-bottom: 24px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff4d6;
    color: #6b4e00;
    font-size: .9rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    font-size: .92rem;
    color: var(--muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding-block: 32px 16px;
}
.footer-brand { font-weight: 700; color: var(--text); margin: 0 0 4px; }
.site-footer p { margin: 0; }
.site-footer address { font-style: normal; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li + li { margin-top: 4px; }
.footer-nav .submenu { padding-left: 12px; margin-top: 4px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:is([aria-current="page"], .is-in-view) { color: var(--accent); }
.footer-bottom { padding-block: 16px 24px; border-top: 1px solid var(--line); }
/* A block as the footer (Design → Footer): it brings its own colours and spacing */
.site-footer--block { border-top: 0; background: none; font-size: inherit; color: inherit; }
.site-footer--block p { margin: revert; }

/* Top loading bar */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--pt-bar, var(--accent));
    z-index: 10;
    opacity: 0;
}
.is-loading .progress {
    opacity: 1;
    width: 70%;
    transition: width 2s ease-out;
}
[data-loading-bar="off"] .progress { display: none; }

/* ---------- Page builder (see src/lib/builder.php). Phones = under 768px. ---------- */
.page--builder h2 { margin-top: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.page--builder h3 { margin-top: 0; font-size: 1.35rem; line-height: 1.3; }
.page--builder h4, .page--builder h5, .page--builder h6 { margin-top: 0; }
.page--builder h1 { margin: 0; }
/* Heading elements: exactly the site's "space below headings" (--heading-space, Design → Colours & fonts) or the
   heading's own (--h-space) below them. The container's gap is already there, so the margin is the difference. */
.pb-el > .pb-heading { margin: 0 0 calc(var(--h-space, var(--heading-space, 12px)) - var(--el-gap, 20px)); }
.pb-stack > .pb-el > .pb-heading { margin: 0; } /* side by side: the stack's gap is the space */
/* Each container's space between elements (its flex gap), so a heading's margin can make the exact space wanted */
.pb-col { --el-gap: var(--col-gap, 20px); }
.pb-slide-inner { --el-gap: var(--slide-gap, 16px); }
.pb-acc-body, .pb-tab-body { --el-gap: 16px; }
.pb-imgbox-body { --el-gap: var(--imb-gap, 12px); }

.pb-section {
    position: relative;
    padding: var(--pt, 64px) var(--pr, 0) var(--pb, 64px) var(--pl, 0); /* per screen size, see pb_spacing_vars() */
    background-color: var(--bg-color, transparent);
    background-image: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 767px) { .pb-section { background-image: var(--bg-image-m, var(--bg-image, none)); } } /* the 1024px copy on phones */
.pb-section.bg-contain { background-size: contain; }
.pb-section.bg-auto { background-size: auto; }
.pb-section.bg-pos-top { background-position: center top; }
.pb-section.bg-pos-bottom { background-position: center bottom; }
.pb-section.bg-pos-left { background-position: left center; }
.pb-section.bg-pos-right { background-position: right center; }
.pb-section.bg-fixed { background-attachment: fixed; }
@media (hover: none) { .pb-section.bg-fixed { background-attachment: scroll; } } /* not supported well on phones */
.pb-section.has-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay);
    opacity: var(--overlay-opacity, .5);
    pointer-events: none;
}
/* Outer margin and rounded corners (Section → Size & spacing): the section as a card. Clipped so the
   background, overlay and shape dividers follow the corners. */
.pb-section.has-margin { margin: var(--smt) var(--smr) var(--smb) var(--sml); }
.pb-section.has-radius { border-radius: var(--srt) var(--srr) var(--srb) var(--srl); overflow: clip; }
.pb-section.has-radius.has-overlay::before { border-radius: inherit; }

/*
 * ---------- Background slideshow (see pb_bg_slides_html): images taking turns behind the content ----------
 * Above the section's own background, under the overlay (::before) and the content. app.js moves .is-on;
 * the one before stays .was-on underneath while the new one fades in, so nothing shows through between them.
 */
.pb-section.has-bg-slides { isolation: isolate; }
.pb-bg-slides { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.pb-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--bgs-pos, 50% 50%);
    opacity: 0;
    transition: opacity var(--bgs-fade, 1.5s) ease;
}
.pb-bg-slide.was-on { opacity: 1; }
.pb-bg-slide.is-on { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
    /* The same animation on .is-on and .was-on, so it carries on (doesn't restart) while the next one fades in */
    .kb-in .pb-bg-slide:is(.is-on, .was-on),
    .kb-alternate .pb-bg-slide:nth-child(odd):is(.is-on, .was-on) { animation: pb-bgs-in var(--bgs-dur, 7.5s) linear forwards; }
    .kb-out .pb-bg-slide:is(.is-on, .was-on),
    .kb-alternate .pb-bg-slide:nth-child(even):is(.is-on, .was-on) { animation: pb-bgs-out var(--bgs-dur, 7.5s) linear forwards; }
}
@keyframes pb-bgs-in { from { transform: scale(1); } to { transform: scale(var(--bgs-zoom, 1.12)); } }
@keyframes pb-bgs-out { from { transform: scale(var(--bgs-zoom, 1.12)); } to { transform: scale(1); } }
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-section.has-margin { margin: var(--smt-t) var(--smr-t) var(--smb-t) var(--sml-t); }
    .pb-section.has-radius { border-radius: var(--srt-t) var(--srr-t) var(--srb-t) var(--srl-t); }
}
@media (max-width: 767px) {
    .pb-section.has-margin { margin: var(--smt-m) var(--smr-m) var(--smb-m) var(--sml-m); }
    .pb-section.has-radius { border-radius: var(--srt-m) var(--srr-m) var(--srb-m) var(--srl-m); }
}
/* The visible screen height, for full-screen sections and banners: svh leaves out the phone's address bar
   (100vh doesn't, so the bottom of a hero could hide behind it). --site-header-h is measured by app.js. */
:root { --screen-h: 100vh; }
@supports (height: 1svh) { :root { --screen-h: 100svh; } }
/*
 * Stacking (Section → Animate → Stacking): sections (.is-stacked) or a section's rows (.stack-rows) stick while the
 * next one slides over them (later ones paint on top). They stop below a sticky header (--scroll-offset, less its
 * 12px of breathing room), plus the extra space, plus the peek for each one before them in the stack (--stack-i,
 * app.js). Taller than the screen: --stack-fit (app.js) lets them scroll to their end first. As one is covered,
 * app.js sets --stack-p (0–1), which shrinks and darkens it (not for reduced motion).
 */
:is(.pb-section.is-stacked, .pb-section.stack-rows > .pb-inner > .pb-row) {
    position: sticky;
    /* --header-shown: 0 while a shy header is hidden (app.js), so they move up into its place */
    top: min(calc(var(--header-shown, calc(var(--scroll-offset, 12px) - 12px)) + var(--stack-offset, 0px) + var(--stack-i, 0) * var(--stack-peek, 0px)), var(--stack-fit, 100vh));
    transform-origin: 50% 0;
    transition: top .3s ease;
}
/* Opaque: the one below would show through. That includes every section after a stack, because the last stacked
   section stays stuck behind the rest of the page (a sticky element sticks until its parent ends). */
.pb-section.is-stacked, .pb-section.is-stacked ~ .pb-section { background-color: var(--bg-color, var(--bg)); }
@media (max-width: 767px) {
    .pb-section.is-stacked.stack-no-phone, .pb-section.stack-rows.stack-no-phone > .pb-inner > .pb-row { position: relative; top: auto; }
}
@media (prefers-reduced-motion: no-preference) {
    /* Only while being covered (.is-covered, app.js): a transform or filter otherwise breaks fixed backgrounds inside */
    :is(.pb-section.is-stacked.has-stack-fx, .pb-section.stack-rows.has-stack-fx > .pb-inner > .pb-row).is-covered {
        transform: scale(calc(1 - var(--stack-p, 0) * var(--stack-shrink, 0)));
        filter: brightness(calc(1 - var(--stack-p, 0) * var(--stack-dim, 0)));
    }
}
.pb-section.has-min-height { display: flex; flex-direction: column; justify-content: center; min-height: var(--min-h); }
.pb-section.has-min-height.v-top { justify-content: flex-start; }
.pb-section.has-min-height.v-bottom { justify-content: flex-end; }
.pb-inner {
    position: relative; /* above the overlay */
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: var(--container, 1080px);
    margin: 0 auto;
    padding: 0 var(--gutter, 16px);
}
.pb-section--wide > .pb-inner { max-width: var(--container-wide, 1400px); }
.pb-section--full > .pb-inner { max-width: none; padding: 0; }
.pb-section--light-text {
    color: #fff;
    --text-color: #fff;
    --heading-color: #fff;
    --link-color: #fff;
    --link-hover-color: rgb(255 255 255 / .8);
    --muted: rgb(255 255 255 / .75);
}

/* Columns are span/12 of the row. With flex-wrap only the gaps actually between columns count,
   so big gaps still fit on narrow screens (a 12-track grid always adds 11 gaps). */
.pb-row { --gap: 24px; display: flex; flex-wrap: wrap; gap: var(--gap); align-items: stretch; justify-content: var(--rj, flex-start); }
/* Row → Spread the columns, per device (--rj, --rj-t, --rj-m: only set when used) */
@media (min-width: 768px) and (max-width: 1023px) { .pb-row { justify-content: var(--rj-t, var(--rj, flex-start)); } }
@media (max-width: 767px) { .pb-row { justify-content: var(--rj-m, var(--rj, flex-start)); } }
/* Column → Exact width (%), on tablets and desktops; phones keep their twelfths */
@media (min-width: 768px) { .pb-row > .pb-col.has-exact-w { flex-basis: calc(var(--col-w) - .1px); } }
.pb-row.align-top { align-items: flex-start; }
.pb-row.align-center { align-items: center; }
.pb-row.align-bottom { align-items: flex-end; }
/* An inner row (a row inside a column, slide or panel) mustn't pick up its parent column's settings:
   columns only set these variables when they're used */
.pb-row--inner {
    --ct: initial; --cr: initial; --cb: initial; --cl: initial;
    --ct-t: initial; --cr-t: initial; --cb-t: initial; --cl-t: initial;
    --ct-m: initial; --cr-m: initial; --cb-m: initial; --cl-m: initial;
    --col-bg: initial; --col-radius: initial; --col-border: initial; --col-shadow: initial; --col-shadow-h: initial; --col-lift: initial; --order-m: initial;
    --col-blur: initial; --rj: initial; --rj-t: initial; --rj-m: initial;
}
/* Frosted glass (Column → Blur what's behind): blurs whatever is under the column, inside its rounded corners.
   It shows through a see-through background (Column → Background strength below 100). */
.pb-col.has-blur { -webkit-backdrop-filter: blur(var(--col-blur)); backdrop-filter: blur(var(--col-blur)); }
.pb-col {
    flex: 0 0 calc((100% + var(--gap)) * var(--span, 12) / 12 - var(--gap) - .1px);
    display: flex;
    flex-direction: column;
    gap: var(--col-gap, 20px);
    min-width: 0;
    padding: var(--ct, 0) var(--cr, 0) var(--cb, 0) var(--cl, 0);
    background: var(--col-bg, none);
    border-radius: var(--col-radius, 0);
    border: var(--col-border, 0);
    box-shadow: var(--col-shadow, none);
    transition: box-shadow .25s ease, transform .25s ease;
}
.pb-col.has-hover:hover {
    box-shadow: var(--col-shadow-h, var(--col-shadow, none));
    transform: translateY(calc(var(--col-lift, 0px) * -1));
}
@media (prefers-reduced-motion: reduce) { .pb-col.has-hover:hover { transform: none; } }
.pb-col.v-center { justify-content: center; }
.pb-col.v-bottom { justify-content: flex-end; }
/*
 * Sticky column (Column → Sticky): stays in view below the header (--scroll-offset less its 12px of breathing room,
 * or 0 while a shy header is hidden) while the row's taller columns scroll past; it can't stretch to the row's
 * height, or there'd be nothing to stick. Taller than the screen: --sticky-fit (app.js) lets it scroll to its end first.
 * Per screen: sticky-all everywhere, sticky-tablet from 768px, sticky-desktop from 1024px. "Move up or down" is
 * set aside while it sticks.
 */
.pb-row > .pb-col.sticky-all {
    position: sticky; align-self: flex-start;
    top: min(calc(var(--header-shown, calc(var(--scroll-offset, 12px) - 12px)) + var(--sticky-top, 32px)), var(--sticky-fit, 100vh));
    transition: top .3s ease, box-shadow .25s ease, transform .25s ease;
}
@media (min-width: 768px) {
    .pb-row > .pb-col.sticky-tablet {
        position: sticky; align-self: flex-start;
        top: min(calc(var(--header-shown, calc(var(--scroll-offset, 12px) - 12px)) + var(--sticky-top, 32px)), var(--sticky-fit, 100vh));
        transition: top .3s ease, box-shadow .25s ease, transform .25s ease;
    }
}
@media (min-width: 1024px) {
    .pb-row > .pb-col.sticky-desktop {
        position: sticky; align-self: flex-start;
        top: min(calc(var(--header-shown, calc(var(--scroll-offset, 12px) - 12px)) + var(--sticky-top, 32px)), var(--sticky-fit, 100vh));
        transition: top .3s ease, box-shadow .25s ease, transform .25s ease;
    }
}
@media (prefers-reduced-motion: reduce) { .pb-row > .pb-col.is-sticky { transition: none; } }
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

.pb-el { min-width: 0; }
.pb-heading.has-size { font-size: var(--fs); }
/* Heading sizes (pb_heading_sizes): --fs-t only in steps mode; scaling smoothly, --fs already covers tablets */
@media (min-width: 768px) and (max-width: 1023px) { .pb-heading.has-size { font-size: var(--fs-t, var(--fs)); } }
.pb-font-alt { font-family: var(--font-alt); font-weight: var(--font-alt-weight); font-style: var(--font-alt-style); }
.pb-font-base { font-family: var(--font-base); }
/* Text → font size per device, in steps (see pb_element_html 'text'): each class only when that screen has its own size */
.pb-text.has-ts { font-size: var(--ts); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-text.has-ts-t { font-size: var(--ts-t); } }
@media (max-width: 767px) { .pb-text.has-ts-m { font-size: var(--ts-m); } }
.pb-text > :first-child { margin-top: 0; }
.pb-text > :last-child { margin-bottom: 0; }

.pb-image { margin: 0; }
.pb-image img { display: block; width: auto; max-width: min(100%, var(--img-max, 100%)); height: auto; }
/* Rounded corners per screen size: top-left, top-right, bottom-right, bottom-left (pb_spacing_vars 'imgr') */
.pb-image img { border-radius: var(--imgrt, 0px) var(--imgrr, 0px) var(--imgrb, 0px) var(--imgrl, 0px); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-image img { border-radius: var(--imgrt-t, 0px) var(--imgrr-t, 0px) var(--imgrb-t, 0px) var(--imgrl-t, 0px); } }
@media (max-width: 767px) { .pb-image img { border-radius: var(--imgrt-m, 0px) var(--imgrr-m, 0px) var(--imgrb-m, 0px) var(--imgrl-m, 0px); } }
.pb-image.align-center img, .pb-image.align-center figcaption { margin-inline: auto; text-align: center; }
.pb-image.align-right img { margin-left: auto; }
.pb-image.has-shadow img { box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
/* An image not chosen yet (builder and previews only): a striped box in the image's shape, size, corners and border */
.pb-image-empty {
    display: grid; place-items: center; overflow: hidden;
    width: min(100%, var(--img-max, 100%)); aspect-ratio: var(--img-ratio, 4 / 3);
    border-radius: var(--imgrt, 8px) var(--imgrr, 8px) var(--imgrb, 8px) var(--imgrl, 8px);
    background: repeating-linear-gradient(45deg, rgb(128 128 128 / .14) 0 14px, rgb(128 128 128 / .24) 14px 28px);
    color: var(--muted); font-size: 13px; text-align: center;
}
.pb-el .pb-image.has-width > .pb-image-empty { width: min(var(--imgw), var(--img-max, 100%)); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-el .pb-image.has-width > .pb-image-empty { width: min(var(--imgw-t), var(--img-max, 100%)); } }
@media (max-width: 767px) { .pb-el .pb-image.has-width > .pb-image-empty { width: min(var(--imgw-m), var(--img-max, 100%)); } }
.pb-image.align-center > .pb-image-empty { margin-inline: auto; }
.pb-image.align-right > .pb-image-empty { margin-left: auto; }
.pb-image.has-border > .pb-image-empty { border: var(--img-border); }
.pb-image.has-shadow > .pb-image-empty { box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
.pb-stack > .pb-el--image .pb-image-empty { width: var(--img-max, 120px); } /* side by side: no column width to fill */
/* Shape (Image → Shape): cropped from the middle to that ratio. Border: e.g. a white ring around round photos. */
.pb-image.has-ratio img { aspect-ratio: var(--img-ratio); object-fit: cover; object-position: center; }
.pb-image.has-border img { border: var(--img-border); }
/* Width as a % of the column (Image → Width), per screen size; the link around it takes the width instead */
.pb-el .pb-image.has-width > :is(img, a) { width: var(--imgw); max-width: min(100%, var(--img-max, 100%)); }
.pb-el .pb-image.has-width > a > img { width: 100%; }
@media (min-width: 768px) and (max-width: 1023px) { .pb-el .pb-image.has-width > :is(img, a) { width: var(--imgw-t); } }
@media (max-width: 767px) { .pb-el .pb-image.has-width > :is(img, a) { width: var(--imgw-m); } }
.pb-image a[data-lightbox] { display: block; width: fit-content; max-width: 100%; cursor: zoom-in; }
.pb-image.align-center a[data-lightbox] { margin-inline: auto; }
.pb-image.align-right a[data-lightbox] { margin-left: auto; }

/* ---------- Scroll to (pb_scrollto_html) and every #id on a page ----------
   Jumping to an id stops below the sticky header (--scroll-offset, measured by app.js). */
:where([id]) { scroll-margin-top: var(--scroll-offset, 0px); }
.pb-scrollto:focus, :where([id][tabindex="-1"]):focus { outline: none; } /* focused by an in-page link, for keyboard users: no ring */
.pb-scrollto { height: 0; scroll-margin-top: calc(var(--scroll-offset, 0px) + var(--scroll-extra, 0px)); }
.pb-el--scrollto:not(:has(.pb-scrollto-marker)) { margin-bottom: calc(-1 * var(--el-gap, 20px)); } /* takes no space in its column */

/* ---------- Lightbox popup (pb_popup_html): a block in a <dialog>, opened by assets/site/app.js ---------- */
.pb-el--popup:has(> dialog.pb-popup) { display: contents; } /* takes no space in its column */
.pb-popup {
    --w: var(--pop-w, 640px);
    width: min(var(--w), calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--pop-radius, 12px);
    background: var(--pop-bg, #fff);
    color: var(--text);
    box-shadow: 0 24px 60px rgb(0 0 0 / .3);
    overflow: visible;
}
.pb-popup::backdrop { background: var(--pop-overlay, rgb(0 0 0 / .6)); }
.pb-popup-box { max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: inherit; padding: var(--pop-pad, 0); }
.pb-popup-box > .pb-block > .pb-section:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
/* Positions: the slide-in and the bar leave the page usable (no overlay) */
.pb-popup.pos-corner { position: fixed; inset: auto 20px 20px auto; z-index: 1000; margin: 0; }
.pb-popup.pos-bar { position: fixed; inset: auto 0 0 0; z-index: 1000; width: 100%; margin: 0; border-radius: 0; box-shadow: 0 -8px 30px rgb(0 0 0 / .15); }
.pb-popup.pos-full { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
.pb-popup.pos-full .pb-popup-box { height: 100%; max-height: none; }
@media (max-width: 767px) { .pb-popup.pos-corner { inset: auto 12px 12px 12px; width: auto; } }
/* Animations */
.pb-popup[open].anim-zoom { animation: pop-zoom .25s ease-out; }
.pb-popup[open].anim-fade { animation: pop-fade .25s ease-out; }
.pb-popup[open].anim-slide { animation: pop-slide .3s ease-out; }
.pb-popup[open]::backdrop { animation: pop-fade .25s ease-out; }
@keyframes pop-zoom { from { opacity: 0; transform: scale(.94); } }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-slide { from { opacity: 0; transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .pb-popup[open], .pb-popup[open]::backdrop { animation: none !important; } }
/* The close button */
.pb-popup-close {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--pop-close, #1f2328);
    box-shadow: 0 2px 10px rgb(0 0 0 / .18); cursor: pointer; transition: transform .15s;
}
.pb-popup-close:hover { transform: scale(1.08); }
.pb-popup-close:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.pb-popup-close svg { width: 18px; height: 18px; }
.pb-popup.close-outside:is(.pos-center, .pos-corner) .pb-popup-close { top: -14px; right: -14px; }
html.has-popup { overflow: hidden; }

/* ---------- Social icons (pb_social_html) ----------
   Each link has its network's --brand / --brand-on / --brand-bg. --ic (icon), --bgc (shape), --bc (border)
   are set by the colour choice, then again on hover. */
.pb-social { display: flex; flex-wrap: wrap; align-items: center; gap: var(--soc-gap, 8px); margin: 0; padding: 0; list-style: none; }
.pb-social.align-center { justify-content: center; }
.pb-social.align-right { justify-content: flex-end; }
.pb-social li { margin: 0; }
.pb-social-link {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: var(--soc-pad, 10px);
    border: var(--soc-bw, 2px) solid var(--bc, transparent);
    background: var(--bgc, transparent);
    color: var(--ic, currentColor);
    text-decoration: none; line-height: 1;
    transition: color .18s, background .18s, border-color .18s, transform .18s, opacity .18s, box-shadow .18s;
}
.pb-social-icon { width: var(--soc-size, 18px); height: var(--soc-size, 18px); }
.pb-social:not(.style-outline) .pb-social-link { border-color: transparent; }
.pb-social.style-plain .pb-social-link { padding: 4px; border: 0; background: none; }
.pb-social.shape-circle .pb-social-link { border-radius: 50%; }
.pb-social.shape-rounded .pb-social-link { border-radius: 28%; }
.pb-social.shape-square .pb-social-link { border-radius: 0; }
.pb-social.has-names .pb-social-link { padding-inline: calc(var(--soc-pad, 10px) * 1.6); }
.pb-social.has-names.shape-circle .pb-social-link { border-radius: 999px; }
.pb-social.has-names.shape-rounded .pb-social-link { border-radius: 10px; }
.pb-social-name { font-size: .92em; font-weight: 600; white-space: nowrap; }
.pb-social-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

/* Colours: brand */
.pb-social.colors-brand.style-filled .pb-social-link { --ic: var(--brand-on); --bgc: var(--brand-bg, var(--brand)); }
.pb-social.colors-brand:is(.style-outline, .style-plain) .pb-social-link { --ic: var(--brand-plain, var(--brand)); --bc: var(--brand-plain, var(--brand)); }
/* Colours: chosen */
.pb-social.colors-custom.style-filled .pb-social-link { --ic: var(--soc-color, #fff); --bgc: var(--soc-bg, var(--color-primary)); }
.pb-social.colors-custom:is(.style-outline, .style-plain) .pb-social-link { --ic: var(--soc-color, var(--soc-bg, currentColor)); --bc: var(--soc-bg, currentColor); }

/* Hover (and keyboard focus) */
.pb-social.hover-brand .pb-social-link:is(:hover, :focus-visible) { --ic: var(--brand-on); --bgc: var(--brand-bg, var(--brand)); --bc: var(--brand); }
.pb-social.hover-brand.style-plain .pb-social-link:is(:hover, :focus-visible) { --ic: var(--brand-plain, var(--brand)); }
.pb-social.hover-custom .pb-social-link:is(:hover, :focus-visible) { --ic: var(--soc-hover, #fff); --bgc: var(--soc-hover-bg, var(--color-accent)); --bc: var(--soc-hover-bg, var(--color-accent)); }
.pb-social.hover-custom.style-plain .pb-social-link:is(:hover, :focus-visible) { --ic: var(--soc-hover-bg, var(--color-accent)); }
.pb-social.hover-fade .pb-social-link:is(:hover, :focus-visible) { opacity: .7; }
.pb-social.fx-lift .pb-social-link:hover { transform: translateY(-3px); }
.pb-social.fx-lift:not(.style-plain) .pb-social-link:hover { box-shadow: 0 6px 14px rgb(0 0 0 / .15); }
.pb-social.fx-grow .pb-social-link:hover { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .pb-social .pb-social-link:hover { transform: none; } }

/* ---------- List (pb_list_html): stacked (grid) or inline (flex) per screen size ---------- */
.pb-list {
    --disp: var(--ldisp, grid); --cols: var(--lcols, 1); --gap: var(--lgap, 12px); --sep: var(--lsep, none); --div: var(--ldiv, 1);
    display: var(--disp);
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--list-size, inherit);
    color: var(--list-text, inherit);
}
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-list { --disp: var(--ldisp-t, grid); --cols: var(--lcols-t, 1); --gap: var(--lgap-t, 12px); --sep: var(--lsep-t, none); --div: var(--ldiv-t, 1); }
}
@media (max-width: 767px) {
    .pb-list { --disp: var(--ldisp-m, grid); --cols: var(--lcols-m, 1); --gap: var(--lgap-m, 12px); --sep: var(--lsep-m, none); --div: var(--ldiv-m, 1); }
}
.pb-list-item { display: flex; align-items: flex-start; gap: .6em; min-width: 0; margin: 0; }
.pb-list.icon-center .pb-list-item { align-items: center; }
.pb-list-text { min-width: 0; overflow-wrap: anywhere; }
.pb-list.weight-medium { font-weight: 500; }
.pb-list.weight-bold { font-weight: 700; }
.pb-list.align-center { justify-content: center; text-align: center; }
.pb-list.align-center .pb-list-item { justify-content: center; }
.pb-list.align-right { justify-content: flex-end; text-align: right; }
.pb-list.align-right .pb-list-item { justify-content: flex-end; }

/* Before each item: an icon, a number or a bullet, in a box one line tall (so it sits beside the first line) */
.pb-list-marker {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    height: 1lh; min-width: var(--list-icon-size, 18px);
    color: var(--list-icon, var(--color-primary)); /* the text's own font size and line height, so 1lh = one line of the item */
}
.pb-list-marker .pb-icon { display: block; width: var(--list-icon-size, 18px); height: var(--list-icon-size, 18px); }
/* Its own counter: items laid out with flex don't count as list items for the browser's numbering */
.pb-list.marker-numbers { counter-reset: pb-list; }
.pb-list.marker-numbers > .pb-list-item { counter-increment: pb-list; }
.pb-list.marker-numbers .pb-list-marker::before { content: counter(pb-list); font-size: calc(var(--list-icon-size, 18px) * .8); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pb-list.marker-bullets .pb-list-marker::before { content: ""; width: .42em; height: .42em; border-radius: 50%; background: currentColor; }
.pb-list.marker-bullets .pb-list-marker { min-width: .8em; }
/* A shape behind it */
.pb-list:is(.shape-circle, .shape-rounded, .shape-square) .pb-list-marker {
    width: calc(var(--list-icon-size, 18px) * 1.9); height: calc(var(--list-icon-size, 18px) * 1.9);
    background: var(--list-icon-bg, var(--color-light));
}
.pb-list.shape-circle .pb-list-marker { border-radius: 50%; }
.pb-list.shape-rounded .pb-list-marker { border-radius: 28%; }
.pb-list:is(.shape-circle, .shape-rounded, .shape-square).icon-top .pb-list-text { padding-top: max(0px, (var(--list-icon-size, 18px) * 1.9 - 1lh) / 2); } /* level with the shape's middle */

/* Item styles */
.pb-list.style-dividers { row-gap: calc(var(--gap) * (1 - var(--div))); overflow: hidden; } /* the first row's line is cut off */
.pb-list.style-dividers > .pb-list-item {
    margin-top: calc(var(--div) * -1px);
    padding-block: calc(var(--div) * var(--gap) / 2);
    border-top: calc(var(--div) * 1px) solid var(--list-border, var(--line));
}
.pb-list:is(.style-boxed, .style-pills) > .pb-list-item {
    padding: var(--list-py, 10px) var(--list-px, 14px);
    background: var(--list-item-bg, var(--color-light));
    border: 1px solid var(--list-border, transparent);
    border-radius: var(--list-radius, 8px);
}
.pb-list.style-pills > .pb-list-item { align-items: center; }
.pb-list.style-pills .pb-list-marker { height: auto; }

/* Between inline items: a separator in the middle of the gap */
.pb-list[class*=" sep-"] > .pb-list-item + .pb-list-item { position: relative; }
.pb-list[class*=" sep-"] > .pb-list-item + .pb-list-item::before {
    display: var(--sep); position: absolute; top: 50%; left: calc(var(--gap) / -2); translate: -50% -50%; opacity: .45; font-weight: 400;
}
.pb-list.sep-dot > .pb-list-item + .pb-list-item::before { content: "•"; }
.pb-list.sep-slash > .pb-list-item + .pb-list-item::before { content: "/"; }
.pb-list.sep-dash > .pb-list-item + .pb-list-item::before { content: "–"; }
.pb-list.sep-line > .pb-list-item + .pb-list-item::before { content: ""; width: 1px; height: 1.1em; background: currentColor; }
.pb-list[class*=" sep-"] > .pb-list-item.is-row-start::before { display: none; } /* the first item on a wrapped line (marked by app.js) */

/* Links */
.pb-list a { color: var(--list-link, inherit); text-decoration: none; transition: color .15s; }
.pb-list a:is(:hover, :focus-visible) { color: var(--list-link-hover, var(--list-link, inherit)); }
.pb-list.underline-always a, .pb-list.underline-hover a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Gallery (pb_gallery_html): columns and gap per screen size ---------- */
.pb-gallery { --cols: var(--gcols, 3); --gap: var(--ggap, 16px); --radius: var(--grt, 0px) var(--grr, 0px) var(--grb, 0px) var(--grl, 0px); }
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-gallery { --cols: var(--gcols-t, 2); --gap: var(--ggap-t, 16px); --radius: var(--grt-t, 0px) var(--grr-t, 0px) var(--grb-t, 0px) var(--grl-t, 0px); }
}
@media (max-width: 767px) {
    .pb-gallery { --cols: var(--gcols-m, 2); --gap: var(--ggap-m, 8px); --radius: var(--grt-m, 0px) var(--grr-m, 0px) var(--grb-m, 0px) var(--grl-m, 0px); }
}
.pb-gallery--grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.pb-gallery--masonry { columns: var(--cols); column-gap: var(--gap); }
.pb-gallery--masonry .pb-gallery-item { break-inside: avoid; margin-bottom: var(--gap); }
.pb-gallery-item { position: relative; margin: 0; }
/* The image's box: rounded, and clips the zoom */
.pb-gallery-item > a, .pb-gallery-item > img { display: block; overflow: hidden; border-radius: var(--radius); }
.pb-gallery-item > a { position: relative; color: inherit; }
.pb-gallery-item > a[data-lightbox] { cursor: zoom-in; }
.pb-gallery-item img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.pb-gallery--grid .pb-gallery-item img { aspect-ratio: var(--gratio, 1); object-fit: cover; }
.pb-gallery-item figcaption { margin-top: 8px; font-size: .875rem; line-height: 1.4; color: inherit; opacity: .8; }
.pb-gallery-item a:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* Hover effects (also on keyboard focus) */
.pb-gallery img { transition: transform .45s ease, filter .3s ease; }
.pb-gallery-item { transition: transform .25s ease, box-shadow .25s ease; }
.pb-gallery.hover-zoom .pb-gallery-item:is(:hover, :focus-within) img { transform: scale(1.06); }
.pb-gallery.hover-darken .pb-gallery-item:is(:hover, :focus-within) img { filter: brightness(.7); }
.pb-gallery.hover-grayscale img { filter: grayscale(1); }
.pb-gallery.hover-grayscale .pb-gallery-item:is(:hover, :focus-within) img { filter: none; }
.pb-gallery.hover-lift .pb-gallery-item:is(:hover, :focus-within) { transform: translateY(-4px); }
.pb-gallery.hover-lift .pb-gallery-item:is(:hover, :focus-within) > :is(a, img) { box-shadow: 0 14px 30px rgb(0 0 0 / .2); }
@media (prefers-reduced-motion: reduce) {
    .pb-gallery img, .pb-gallery-item { transition: none; }
    .pb-gallery.hover-zoom .pb-gallery-item:is(:hover, :focus-within) img, .pb-gallery.hover-lift .pb-gallery-item:is(:hover, :focus-within) { transform: none; }
}

/* Captions on the image, shown on hover (always on touch screens, which have no hover) */
.pb-gallery.captions-overlay figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 12px 10px;
    border-radius: 0 0 var(--grb, 0px) var(--grl, 0px);
    background: linear-gradient(transparent, rgb(0 0 0 / .7)); color: #fff; opacity: 0;
    transition: opacity .25s ease; pointer-events: none;
}
.pb-gallery--masonry.captions-overlay figcaption { bottom: var(--gap); }
.pb-gallery.captions-overlay .pb-gallery-item:is(:hover, :focus-within) figcaption { opacity: 1; }
@media (hover: none) { .pb-gallery.captions-overlay figcaption { opacity: 1; } }

/* ---------- Lightbox (assets/site/app.js) ---------- */
.lightbox {
    --lb-bg: rgb(10 10 12 / .94); --lb-fg: #fff; --lb-btn: rgb(255 255 255 / .12); --lb-btn-hover: rgb(255 255 255 / .24);
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: var(--lb-bg); color: var(--lb-fg); overflow: hidden;
}
.lightbox.is-light { --lb-bg: rgb(255 255 255 / .97); --lb-fg: #111; --lb-btn: rgb(0 0 0 / .07); --lb-btn-hover: rgb(0 0 0 / .14); }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .2s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 64px; }
.lb-counter { font-size: .875rem; font-variant-numeric: tabular-nums; opacity: .8; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 72px; touch-action: pan-y pinch-zoom; }
.lb-stage img {
    display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    border-radius: 2px; user-select: none; -webkit-user-drag: none;
    transition: opacity .2s ease, transform .2s ease;
}
.lb-stage img.is-loading { opacity: 0; }
.lb-stage .lb-spinner {
    position: absolute; width: 36px; height: 36px; border: 3px solid currentColor; border-right-color: transparent;
    border-radius: 50%; opacity: .5; animation: lb-spin .8s linear infinite;
}
.lb-stage .lb-spinner[hidden] { display: none; }
@keyframes lb-spin { to { transform: rotate(1turn); } }
.lb-caption { margin: 0; padding: 12px 16px 20px; min-height: 52px; text-align: center; font-size: .9375rem; line-height: 1.5; }
.lb-btn {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: var(--lb-btn); color: inherit; cursor: pointer; transition: background .15s;
}
.lb-btn:hover { background: var(--lb-btn-hover); }
.lb-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.lb-btn:disabled { opacity: .3; cursor: default; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
html.has-lightbox { overflow: hidden; }
@media (max-width: 767px) {
    .lb-stage { padding: 0; }
    .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; } /* beside the caption, under the image */
    .lb-caption { padding-inline: 64px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } .lb-stage img { transition: none; } }
.pb-image figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); }

.pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--btn-color);
    border-radius: var(--btn-r, 999px); /* Button → Rounded corners */
    background: var(--btn-color);
    color: var(--btn-text) !important;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: filter .15s, background .15s;
}
.pb-btn:hover { filter: brightness(1.1); }
/* Icons (pb_icon(), src/lib/icons.php): 1em, so they follow the button's text size */
.pb-btn { gap: .5em; }
.pb-btn-icon { flex: none; width: var(--bi-s, 1.15em); height: var(--bi-s, 1.15em); transition: transform .3s, color .2s, background .2s, translate .35s cubic-bezier(.22, 1, .36, 1); } /* --bi-s: Icon style → size */
/* Magnetic (Button → Animate → Magnetic): app.js sets --mag-x/--mag-y while a mouse is near; it springs back when they return to 0.
   With "Text and icon move a bit further", the label and icon go 40% further, for depth. */
.pb-btn.is-magnetic { translate: var(--mag-x, 0px) var(--mag-y, 0px); transition: filter .15s, background .15s, translate .35s cubic-bezier(.22, 1, .36, 1); }
.pb-btn.is-magnetic[data-mag-depth] > :is(span:not(.visually-hidden), .pb-btn-icon) { translate: calc(var(--mag-x, 0px) * .4) calc(var(--mag-y, 0px) * .4); }
.pb-btn.is-magnetic[data-mag-depth] > span:not(.visually-hidden) { transition: translate .35s cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) { .pb-btn.is-magnetic, .pb-btn.is-magnetic > * { translate: none !important; } }
.pb-btn:hover .pb-btn-icon:last-child { transform: translateX(3px); } /* an icon after the text nudges forward */
@media (prefers-reduced-motion: reduce) { .pb-btn:hover .pb-btn-icon:last-child { transform: none; } }
.pb-btn--icon-only { aspect-ratio: 1; padding: 0 !important; width: 2.75em; }
.pb-btn--icon-only.pb-btn--sm { width: 2.3em; }
.pb-btn--icon-only.pb-btn--lg { width: 3.2em; }
.pb-btn--icon-only .pb-btn-icon { width: var(--bi-s, 1.25em); height: var(--bi-s, 1.25em); }
.pb-btn--icon-only:hover .pb-btn-icon:last-child { transform: none; }
.pb-btn--outline { background: transparent; color: var(--btn-color) !important; }
.pb-btn--outline:hover { background: color-mix(in srgb, var(--btn-color) 10%, transparent); filter: none; }
/* Glass (Button → Style → Glass): a see-through tint of the colour over a blur of what's behind, a light edge */
.pb-btn--glass {
    background: color-mix(in srgb, var(--btn-color) var(--glass-o, 20%), transparent);
    border-color: rgb(255 255 255 / .38);
    color: #fff !important;
    -webkit-backdrop-filter: blur(var(--glass-blur, 12px)); backdrop-filter: blur(var(--glass-blur, 12px));
}
.pb-btn--glass:hover { background: color-mix(in srgb, var(--btn-color) min(100%, calc(var(--glass-o, 20%) + 15%)), transparent); filter: none; }
.pb-btn--glass.glass-dark { color: #1f2328 !important; border-color: rgb(0 0 0 / .14); }
.pb-btn--link { border-color: transparent; background: none; padding-inline: 0 !important; color: var(--btn-color) !important; text-decoration: underline; text-underline-offset: 3px; }
/* Sizes set the padding through variables, so a button's own padding (--btn-py / --btn-px) can replace either */
.pb-btn { padding: var(--btn-py, var(--size-py, 10px)) var(--btn-px, var(--size-px, 24px)); }
.pb-btn--sm { --size-py: 6px; --size-px: 16px; font-size: .9rem; }
.pb-btn--md { --size-py: 10px; --size-px: 24px; }
.pb-btn--lg { --size-py: 14px; --size-px: 32px; font-size: 1.1rem; }
.pb-btn--xl { --size-py: 18px; --size-px: 42px; font-size: 1.3rem; }
.pb-btn--icon-only.pb-btn--xl { width: 3.4em; }

/* Show the icon on hover: hidden (no width, no gap) until the pointer is over the button or it has focus */
.pb-btn--reveal .pb-btn-icon { width: 0; opacity: 0; transition: width .2s, margin .2s, opacity .2s, transform .2s; }
.pb-btn--reveal.reveal-after .pb-btn-icon { margin-left: -.5em; transform: translateX(-6px); }
.pb-btn--reveal.reveal-before .pb-btn-icon { margin-right: -.5em; transform: translateX(6px); }
.pb-btn--reveal:hover .pb-btn-icon, .pb-btn--reveal:focus-visible .pb-btn-icon { width: 1.15em; margin: 0; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pb-btn--reveal .pb-btn-icon { transition: none; } }

/* Icon style (Button → Style → Icon style). --bi-* are only set when chosen; the fallbacks are the plain icon. */
.pb-btn .pb-btn-icon { color: var(--bi-c, currentColor); }
.pb-btn:is(:hover, :focus-visible) .pb-btn-icon { color: var(--bi-hc, var(--bi-c, currentColor)); }
.pb-btn--reveal:is(:hover, :focus-visible) .pb-btn-icon { width: var(--bi-s, 1.15em); }
/* A shape behind the icon: the padding is inside the shape, so the icon keeps its size */
.pb-btn.has-icon-bg .pb-btn-icon { box-sizing: content-box; padding: var(--bi-pad); background: var(--bi-bg); border-radius: 50%; }
.pb-btn.has-icon-bg.icon-rounded .pb-btn-icon { border-radius: 25%; }
.pb-btn.has-icon-bg.icon-square .pb-btn-icon { border-radius: 0; }
.pb-btn.has-icon-bg.icon-custom .pb-btn-icon { border-radius: var(--bi-r); }
.pb-btn.has-icon-bg:is(:hover, :focus-visible) .pb-btn-icon { background: var(--bi-hbg, var(--bi-bg)); }
.pb-btn--reveal.has-icon-bg .pb-btn-icon { padding: 0; }
.pb-btn--reveal.has-icon-bg:is(:hover, :focus-visible) .pb-btn-icon { padding: var(--bi-pad); }
/* Margin per screen size, negative allowed (not with "show the icon on hover": that one animates its margin) */
.pb-btn.has-icon-margin:not(.pb-btn--reveal) .pb-btn-icon { margin: var(--bimt) var(--bimr) var(--bimb) var(--biml); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-btn.has-icon-margin:not(.pb-btn--reveal) .pb-btn-icon { margin: var(--bimt-t) var(--bimr-t) var(--bimb-t) var(--biml-t); } }
@media (max-width: 767px) { .pb-btn.has-icon-margin:not(.pb-btn--reveal) .pb-btn-icon { margin: var(--bimt-m) var(--bimr-m) var(--bimb-m) var(--biml-m); } }
/* On hover: turn, spin, move or grow, instead of the usual nudge forward */
.pb-btn.has-icon-fx:is(:hover, :focus-visible) .pb-btn-icon,
.pb-btn.has-icon-fx:is(:hover, :focus-visible) .pb-btn-icon:last-child { transform: var(--bi-fx); }
@media (prefers-reduced-motion: reduce) { .pb-btn.has-icon-fx:is(:hover, :focus-visible) .pb-btn-icon { transform: none; } }
/*
 * Icon background fills the button (Icon style → On hover, the icon background fills the button): the icon's
 * shadow spreads from its shape until it covers the button, which clips it to its own corners. The text sits above
 * it (positioned), the border takes the fill colour. --fill-reach: the button's width (app.js), so the spread
 * takes the whole transition to cover it; 20em until measured (and in the builder).
 */
.pb-btn.icon-fill { overflow: clip; transition: filter .15s, background .15s, border-color .45s, translate .35s cubic-bezier(.22, 1, .36, 1); }
.pb-btn.icon-fill > span:not(.visually-hidden) { position: relative; z-index: 1; transition: color .3s; }
.pb-btn.icon-fill .pb-btn-icon { box-shadow: 0 0 0 0 var(--bi-hbg, var(--bi-bg)); transition: transform .3s, color .2s, background .2s, translate .35s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.4, 0, .2, 1); }
.pb-btn.icon-fill:is(:hover, :focus-visible) { filter: none; border-color: var(--bi-hbg, var(--bi-bg)); }
.pb-btn.icon-fill:is(:hover, :focus-visible) > span:not(.visually-hidden) { color: var(--bi-ft, var(--btn-text)); }
.pb-btn--outline.icon-fill:is(:hover, :focus-visible) > span:not(.visually-hidden),
.pb-btn--link.icon-fill:is(:hover, :focus-visible) > span:not(.visually-hidden) { color: var(--bi-ft, var(--btn-color)); }
.pb-btn.icon-fill:is(:hover, :focus-visible) .pb-btn-icon { box-shadow: 0 0 0 var(--fill-reach, 20em) var(--bi-hbg, var(--bi-bg)); }
@media (prefers-reduced-motion: reduce) { .pb-btn.icon-fill, .pb-btn.icon-fill > span:not(.visually-hidden), .pb-btn.icon-fill .pb-btn-icon { transition: none; } }

.pb-spacer { height: var(--h); }
.pb-divider { width: var(--w, 100%); height: var(--thick, 1px); margin: 0; border: 0; background: var(--divider-color, color-mix(in srgb, currentColor 18%, transparent)); }
.pb-divider.align-center { margin-inline: auto; }
.pb-divider.align-right { margin-left: auto; }
.pb-video { position: relative; aspect-ratio: var(--ratio, 16/9); overflow: hidden; border-radius: 8px; background: #000; }
.pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 768px) {
    .pb-hide-desktop { display: none !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-section { padding: var(--pt-t) var(--pr-t) var(--pb-t) var(--pl-t); }
    .pb-col { padding: var(--ct-t, 0) var(--cr-t, 0) var(--cb-t, 0) var(--cl-t, 0); }
}
@media (max-width: 767px) {
    .pb-section { padding: var(--pt-m) var(--pr-m) var(--pb-m) var(--pl-m); }
    .pb-col { padding: var(--ct-m, 0) var(--cr-m, 0) var(--cb-m, 0) var(--cl-m, 0); }
    .pb-section--full > .pb-inner { padding: 0; }
    .pb-col { flex-basis: calc((100% + var(--gap)) * var(--span-m, 12) / 12 - var(--gap) - .1px); order: var(--order-m, 0); }
    .pb-heading.has-size-m { font-size: var(--fs-m); }
    .pb-btn.full-mobile { display: flex; width: 100%; }
    .pb-spacer { height: var(--h-m); }
    .pb-hide-mobile { display: none !important; }
}

/* Banner element: background image with focus point, overlay, and elements positioned anywhere on it.
   Heights, inner margin and element positions come per device as CSS variables (desktop, -t tablet, -m phone). */
.pb-banner {
    position: relative;
    isolation: isolate;
    min-height: var(--bh, 440px);
    overflow: hidden;
    background: var(--banner-bg, #1f2328);
    border: var(--banner-border, 0);
    border-radius: var(--banner-radius, 0);
    color: var(--text-color);
}
.pb-banner.has-shadow { box-shadow: 0 16px 40px rgb(0 0 0 / .2); }
.pb-banner--light-text { color: #fff; --text-color: #fff; --heading-color: #fff; --link-color: #fff; --link-hover-color: rgb(255 255 255 / .8); --muted: rgb(255 255 255 / .75); }
.pb-banner-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover; /* object-position comes from the focus point */
    transition: transform .7s ease;
}
/*
 * Banner grid (pb_bannergrid_html): a CSS grid of a set height. Per screen size: --bgc columns, --bgr the rows,
 * --bgar the height of extra rows, --bgg the gap, and --bg1…--bg6 the place of items 1–6 (row/column start/end,
 * or auto). Items fill their place: a banner drops its own height, an image covers it.
 */
.pb-bgrid {
    --bgc-x: var(--bgc); --bgr-x: var(--bgr); --bgar-x: var(--bgar); --bgg-x: var(--bgg);
    --bg1-x: var(--bg1); --bg2-x: var(--bg2); --bg3-x: var(--bg3); --bg4-x: var(--bg4); --bg5-x: var(--bg5); --bg6-x: var(--bg6);
    display: grid; gap: var(--bgg-x); grid-template-columns: repeat(var(--bgc-x), minmax(0, 1fr));
    grid-template-rows: var(--bgr-x); grid-auto-rows: var(--bgar-x);
}
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-bgrid {
        --bgc-x: var(--bgc-t); --bgr-x: var(--bgr-t); --bgar-x: var(--bgar-t); --bgg-x: var(--bgg-t);
        --bg1-x: var(--bg1-t); --bg2-x: var(--bg2-t); --bg3-x: var(--bg3-t); --bg4-x: var(--bg4-t); --bg5-x: var(--bg5-t); --bg6-x: var(--bg6-t);
    }
}
@media (max-width: 767px) {
    .pb-bgrid {
        --bgc-x: var(--bgc-m); --bgr-x: var(--bgr-m); --bgar-x: var(--bgar-m); --bgg-x: var(--bgg-m);
        --bg1-x: var(--bg1-m); --bg2-x: var(--bg2-m); --bg3-x: var(--bg3-m); --bg4-x: var(--bg4-m); --bg5-x: var(--bg5-m); --bg6-x: var(--bg6-m);
    }
}
.pb-bgrid > .pb-el:nth-child(1) { grid-area: var(--bg1-x); }
.pb-bgrid > .pb-el:nth-child(2) { grid-area: var(--bg2-x); }
.pb-bgrid > .pb-el:nth-child(3) { grid-area: var(--bg3-x); }
.pb-bgrid > .pb-el:nth-child(4) { grid-area: var(--bg4-x); }
.pb-bgrid > .pb-el:nth-child(5) { grid-area: var(--bg5-x); }
.pb-bgrid > .pb-el:nth-child(6) { grid-area: var(--bg6-x); }
.pb-bgrid > .pb-el { display: flex; flex-direction: column; min-height: 0; }
.pb-bgrid > .pb-el > * { flex: 1 1 auto; min-height: 0; }
.pb-bgrid > .pb-el > .pb-banner { min-height: 0; } /* the grid sets the height, not the banner's own setting */
.pb-bgrid > .pb-el > .pb-image { display: flex; }
.pb-bgrid > .pb-el > .pb-image :is(img, .pb-image-empty) { width: 100%; max-width: none; height: 100%; aspect-ratio: auto; object-fit: cover; }
.pb-bgrid > .pb-el > .pb-image > a { display: block; width: 100%; height: 100%; }
.pb-bgrid.has-radius > .pb-el { border-radius: var(--bg-radius); overflow: hidden; }
.pb-bgrid > .pb-empty-col { grid-column: 1 / -1; }

/* Background video (pb_banner_video_html): over the image, under the overlay; faded in once it plays (app.js).
   YouTube: covers the banner at 16:9 plus 120px, so its title bar and logo at the edges are cut off. */
.pb-banner-video { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; container-type: size; }
.pb-banner-video :is(video, iframe) { opacity: 0; transition: opacity .8s ease; }
.pb-banner-video.is-playing :is(video, iframe) { opacity: 1; }
.pb-banner-video.is-ended iframe { transition-duration: .2s; } /* played once: away before YouTube's end screen is seen */
.pb-bv { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-banner-video iframe {
    --yt-h: max(calc(100cqh + 120px), calc(56.25cqw + 120px));
    position: absolute; left: 50%; top: 50%; width: calc(var(--yt-h) * 16 / 9); height: var(--yt-h); border: 0; translate: -50% -50%;
}
@media print { .pb-banner-video { display: none; } }
.pb-banner.hover-zoom:hover .pb-banner-bg { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .pb-banner.hover-zoom:hover .pb-banner-bg { transform: none; } }
.pb-banner.has-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--overlay);
    opacity: var(--overlay-opacity, .35);
    pointer-events: none;
}
.pb-banner-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.pb-banner-link:focus-visible { outline: 3px solid currentColor; outline-offset: -6px; }

/* The area elements are placed in: the banner minus its inner margin */
.pb-banner-layer {
    position: absolute;
    inset: var(--bct) var(--bcr) var(--bcb) var(--bcl);
    z-index: 1;
}
.pb-banner.has-link .pb-banner-layer { pointer-events: none; } /* clicks go to the banner link... */
.pb-banner.has-link .pb-banner-layer a { pointer-events: auto; } /* ...except on links and buttons inside it */

/* 0% = left/top edge, 100% = right/bottom edge: the element is shifted by the same % of its own size,
   so it always stays inside. Width is % of the banner, or max-content to fit its content. */
.pb-banner-layer > .pb-el {
    position: absolute;
    left: var(--fx);
    top: var(--fy);
    width: var(--fw, max-content);
    max-width: 100%;
    transform: translate(calc(var(--fx) * -1), calc(var(--fy) * -1));
}
.pb-banner-layer > .pb-el > :is(h1, h2, h3, h4, h5, h6) { margin: 0; }

/* "Where elements can go" → inside the site's content width: on big screens the element area lines up with
   the page's content (.pb-inner: the content or wide width from Design → Layout, less its side space), never closer than the inner margin.
   Smaller screens are narrower than that anyway, so the inner margin alone applies there. */
@media (min-width: 1024px) {
    .pb-banner.contain-contained { --bwrap: calc(var(--container, 1080px) - 2 * var(--gutter, 16px)); }
    .pb-banner.contain-wide { --bwrap: calc(var(--container-wide, 1400px) - 2 * var(--gutter, 16px)); }
    .pb-banner.is-contained .pb-banner-layer {
        left: max(var(--bcl), calc((100% - var(--bwrap)) / 2));
        right: max(var(--bcr), calc((100% - var(--bwrap)) / 2));
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-banner { min-height: var(--bh-t); }
    .pb-banner-layer { inset: var(--bct-t) var(--bcr-t) var(--bcb-t) var(--bcl-t); }
    .pb-banner-layer > .pb-el { left: var(--fx-t); top: var(--fy-t); width: var(--fw-t); transform: translate(calc(var(--fx-t) * -1), calc(var(--fy-t) * -1)); }
}
@media (max-width: 767px) {
    .pb-banner { min-height: var(--bh-m); }
    .pb-banner-layer { inset: var(--bct-m) var(--bcr-m) var(--bcb-m) var(--bcl-m); }
    .pb-banner-layer > .pb-el { left: var(--fx-m); top: var(--fy-m); width: var(--fw-m); transform: translate(calc(var(--fx-m) * -1), calc(var(--fy-m) * -1)); }
}
/* Icon box: an icon beside, above or below its text. Direction, alignment and sizes come per device. */
.pb-iconbox {
    position: relative;
    display: flex;
    flex-direction: var(--ib-dir, column);
    align-items: var(--ib-ai, flex-start);
    gap: var(--ib-gap, 16px);
}
.pb-iconbox-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--imt, 0) var(--imr, 0) var(--imb, 0) var(--iml, 0);
    line-height: 0;
}
.pb-iconbox-icon img { display: block; width: var(--ib-w, 56px); height: auto; }
.pb-iconbox-placeholder { display: flex; align-items: center; justify-content: center; width: var(--ib-w, 56px); aspect-ratio: 1; font-size: calc(var(--ib-w, 56px) * .6); line-height: 1; opacity: .35; }
.pb-iconbox-body { flex: 1; min-width: 0; align-self: stretch; }
.pb-iconbox-title { margin: 0 0 6px; }
.page--builder .pb-iconbox-title { font-size: 1.2rem; }
.pb-iconbox-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pb-iconbox-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pb-iconbox.has-link .pb-text a { position: relative; z-index: 2; } /* links in the text stay clickable */
.pb-iconbox.has-link:hover .pb-iconbox-title { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-iconbox { flex-direction: var(--ib-dir-t); align-items: var(--ib-ai-t); }
    .pb-iconbox-icon { margin: var(--imt-t, 0) var(--imr-t, 0) var(--imb-t, 0) var(--iml-t, 0); }
    .pb-iconbox-icon img, .pb-iconbox-placeholder { width: var(--ib-w-t); }
}
@media (max-width: 767px) {
    .pb-iconbox { flex-direction: var(--ib-dir-m); align-items: var(--ib-ai-m); }
    .pb-iconbox-icon { margin: var(--imt-m, 0) var(--imr-m, 0) var(--imb-m, 0) var(--iml-m, 0); }
    .pb-iconbox-icon img, .pb-iconbox-placeholder { width: var(--ib-w-m); }
}

/* ---------- Slider (Splide, see pb_slider_html). Per device: --sl-pp slides visible, --sl-gap, --sl-peek, --sl-sh slide height ---------- */
.pb-slider.splide { visibility: visible; } /* Splide hides sliders until its script runs; ours look right before that */

/* Before Splide starts, or without JavaScript: the same number of slides side by side, as a swipeable strip */
.pb-slider:not(.is-initialized) .splide__track {
    overflow-x: auto;
    padding-right: var(--sl-peek);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.pb-slider:not(.is-initialized) .splide__track::-webkit-scrollbar { display: none; }
.pb-slider:not(.is-initialized) .splide__list { gap: var(--sl-gap); }
.pb-slider:not(.is-initialized) .splide__slide {
    flex: 0 0 calc((100% - (var(--sl-pp) - 1) * var(--sl-gap)) / var(--sl-pp));
    scroll-snap-align: start;
}

.pb-slide {
    display: flex;
    flex-direction: column;
    min-height: var(--sl-sh, auto);
    padding: var(--spt, 0) var(--spr, 0) var(--spb, 0) var(--spl, 0);
    background: var(--slide-bg, none);
    border-radius: var(--slide-radius, 0);
}
.pb-slide.v-center { justify-content: center; }
.pb-slide.v-bottom { justify-content: flex-end; }
.pb-slide-inner { display: flex; flex-direction: column; gap: var(--slide-gap, 16px); }
.pb-slide--light-text { color: #fff; --text-color: #fff; --heading-color: #fff; --link-color: #fff; --muted: rgb(255 255 255 / .75); }
.pb-slider .pb-slide-inner > .pb-el--image .pb-image img { margin-inline: auto; } /* logos sit in the middle of their slide */

/* Arrows */
.pb-slider .splide__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: var(--sl-arrow);
    color: var(--sl-arrow-fg);
    box-shadow: 0 4px 14px rgb(0 0 0 / .15);
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity .2s, transform .2s, filter .2s;
}
.pb-slider .splide__arrow svg { width: 18px; height: 18px; fill: currentColor; }
.pb-slider .splide__arrow--prev { left: 12px; }
.pb-slider .splide__arrow--prev svg { transform: scaleX(-1); }
.pb-slider .splide__arrow--next { right: 12px; }
.pb-slider .splide__arrow:hover:not(:disabled) { filter: brightness(.94); }
.pb-slider .splide__arrow:disabled { opacity: .3; cursor: default; }
.pb-slider .splide__arrow:focus-visible { outline: 3px solid var(--sl-dot); outline-offset: 2px; }
.pb-slider.arrows-circle .splide__arrow { border-radius: 50%; }
.pb-slider.arrows-square .splide__arrow { border-radius: 10px; }
.pb-slider.arrows-minimal .splide__arrow { width: 40px; background: none; box-shadow: none; color: var(--sl-arrow); }
.pb-slider.arrows-minimal .splide__arrow svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .3)); }
@media (min-width: 1024px) {
    .pb-slider.arrows-outside .splide__arrow--prev { left: -62px; }
    .pb-slider.arrows-outside .splide__arrow--next { right: -62px; }
}
.pb-slider.arrows-below .splide__arrows { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.pb-slider.arrows-below .splide__arrow { position: static; transform: none; }

/* Dots: 24px tall buttons (easy to tap) with a small mark inside */
.pb-slider .splide__pagination { gap: 4px; margin-top: 14px; padding: 0; }
.pb-slider.dots-inside .splide__pagination { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; margin: 0; }
.pb-slider .splide__pagination__page {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.pb-slider .splide__pagination__page::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--sl-dot);
    opacity: .3;
    transition: opacity .2s, inset .2s;
}
.pb-slider .splide__pagination__page.is-active::before { opacity: 1; inset: 6px; }
.pb-slider.dots-lines .splide__pagination__page { width: 30px; }
.pb-slider.dots-lines .splide__pagination__page::before { inset: 10px 2px; border-radius: 2px; }
.pb-slider.dots-lines .splide__pagination__page.is-active { width: 44px; }
.pb-slider .splide__pagination__page:focus-visible { outline: 2px solid var(--sl-dot); outline-offset: 0; border-radius: 4px; }

/* Pause / play button (shown when the slider moves by itself) */
.pb-slider-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / .55);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}
.pb-slider-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pb-slider.dots-below .pb-slider-toggle { bottom: 50px; }
/* No dots (e.g. an announcement bar or logo strip): a smaller button in the middle of the right edge */
.pb-slider:not(:has(.splide__pagination)) .pb-slider-toggle { top: 50%; bottom: auto; right: 4px; width: 28px; height: 28px; transform: translateY(-50%); }

@media (min-width: 768px) and (max-width: 1023px) {
    .pb-slider:not(.is-initialized) .splide__track { padding-right: var(--sl-peek-t); }
    .pb-slider:not(.is-initialized) .splide__list { gap: var(--sl-gap-t); }
    .pb-slider:not(.is-initialized) .splide__slide { flex-basis: calc((100% - (var(--sl-pp-t) - 1) * var(--sl-gap-t)) / var(--sl-pp-t)); }
    .pb-slide { min-height: var(--sl-sh-t, auto); padding: var(--spt-t, 0) var(--spr-t, 0) var(--spb-t, 0) var(--spl-t, 0); }
}
@media (max-width: 767px) {
    .pb-slider:not(.is-initialized) .splide__track { padding-right: var(--sl-peek-m); }
    .pb-slider:not(.is-initialized) .splide__list { gap: var(--sl-gap-m); }
    .pb-slider:not(.is-initialized) .splide__slide { flex-basis: calc((100% - (var(--sl-pp-m) - 1) * var(--sl-gap-m)) / var(--sl-pp-m)); }
    .pb-slide { min-height: var(--sl-sh-m, auto); padding: var(--spt-m, 0) var(--spr-m, 0) var(--spb-m, 0) var(--spl-m, 0); }
    .pb-slider .splide__arrow { width: 40px; height: 40px; }
}

/* ---------- Accordion (see pb_accordion_html): <details> panels. Styles: lines, boxed, cards ---------- */
.pb-accordion {
    --acc-line: color-mix(in srgb, currentColor 16%, transparent);
    --acc-px: 0px; /* side padding: none for plain lines, the panel padding for boxes and cards */
    display: flex;
    flex-direction: column;
}
.pb-acc-panel { border-bottom: 1px solid var(--acc-line); }
.pb-accordion--lines > .pb-acc-panel:first-child { border-top: 1px solid var(--acc-line); }
.pb-accordion--boxed, .pb-accordion--cards, .pb-accordion.has-title-bg { --acc-px: var(--acc-pad); }
.pb-accordion--boxed { border: 1px solid var(--acc-line); border-radius: var(--acc-radius); overflow: hidden; }
.pb-accordion--boxed > .pb-acc-panel:last-child { border-bottom: 0; }
.pb-accordion--cards { gap: var(--acc-gap); }
.pb-accordion--cards > .pb-acc-panel { border: 1px solid var(--acc-line); border-radius: var(--acc-radius); overflow: hidden; transition: box-shadow .2s; }
.pb-accordion--cards > .pb-acc-panel[open] { box-shadow: 0 6px 20px rgb(0 0 0 / .07); }

.pb-acc-title {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: var(--acc-pad) var(--acc-px);
    background: var(--acc-title-bg, transparent);
    color: var(--acc-title-color, var(--heading-color, inherit));
    list-style: none;
    cursor: pointer;
    transition: color .15s;
}
.pb-acc-title::-webkit-details-marker { display: none; }
.pb-acc-title:hover, .pb-acc-panel[open] > .pb-acc-title { color: var(--acc-active); }
.pb-acc-title:focus-visible { outline: 2px solid var(--acc-active); outline-offset: -2px; }
.pb-accordion .pb-acc-heading {
    flex: 1;
    margin: 0;
    color: inherit;
    font-family: var(--font-headings);
    font-weight: var(--font-headings-weight, 600);
    font-style: var(--font-headings-style, normal);
    font-size: var(--acc-title-size, 1.1rem);
    line-height: 1.35;
}
.pb-accordion.acc-font-alt .pb-acc-heading { font-family: var(--font-alt); font-weight: var(--font-alt-weight); font-style: var(--font-alt-style); }
.pb-accordion.acc-font-base .pb-acc-heading { font-family: var(--font-base); font-weight: 600; font-style: normal; }

/* The icon, drawn with CSS: an arrow that turns, or a plus that becomes a minus */
.pb-acc-icon { position: relative; flex: none; width: 18px; height: 18px; }
.acc-icon-left .pb-acc-icon { order: -1; }
.acc-icon-none .pb-acc-icon { display: none; }
.acc-icon-chevron .pb-acc-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .2s;
}
.acc-icon-chevron [open] > summary .pb-acc-icon::before { transform: translate(-50%, -30%) rotate(225deg); }
.acc-icon-plus .pb-acc-icon::before, .acc-icon-plus .pb-acc-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .2s;
}
.acc-icon-plus .pb-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-icon-plus [open] > summary .pb-acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.pb-acc-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 var(--acc-px) var(--acc-pad);
    --acc-title-size: initial; --acc-title-color: initial; --acc-title-bg: initial; /* for an accordion further inside */
}
.pb-accordion.has-title-bg .pb-acc-body { padding-top: var(--acc-pad); }
.acc-icon-left:not(.has-title-bg):not(.pb-accordion--boxed):not(.pb-accordion--cards) .pb-acc-body { padding-left: 32px; } /* line up with the title */

/* Smooth opening where the browser supports animating to auto height; elsewhere panels open instantly */
@supports (interpolate-size: allow-keywords) {
    .pb-accordion { interpolate-size: allow-keywords; }
    .pb-acc-panel::details-content { height: 0; overflow: clip; transition: height .25s ease, content-visibility .25s allow-discrete; }
    .pb-acc-panel[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .pb-acc-panel::details-content { transition: none; }
}

/* A panel's own icon before its title */
.pb-acc-ticon { flex: none; font-size: 1.35em; }
.acc-icon-left .pb-acc-ticon { order: -1; }
.acc-icon-left .pb-acc-icon { order: -2; }

/*
 * ---------- Accordion image (see pb_accordion_split_html): the open panel's image beside the panels ----------
 * Per screen size (-d, -t, -m): --acci-dir (row or column), --acci-ord (image first or last), --acci-show,
 * --acci-mw (image width), --acci-ar (shape), --acci-minh, --acci-as (stretch to the panels' height), --acci-pos (sticky).
 */
.pb-acc-split {
    --acci-dir: var(--acci-dir-d, row); --acci-ord: var(--acci-ord-d, 1); --acci-show: var(--acci-show-d, block);
    --acci-mw: var(--acci-mw-d, 50%); --acci-ar: var(--acci-ar-d, auto); --acci-minh: var(--acci-minh-d, 320px);
    --acci-as: var(--acci-as-d, stretch); --acci-pos: var(--acci-pos-d, relative); --acci-top: var(--acci-top-d, auto);
    --acci-stick-top: calc(var(--header-shown, calc(var(--scroll-offset, 12px) - 12px)) + 24px); /* below the header, as sticky columns */
    display: flex;
    flex-direction: var(--acci-dir);
    gap: var(--acci-gap, 48px);
}
.pb-acc-split > .pb-accordion { flex: 1 1 auto; min-width: 0; }
.pb-acc-media {
    display: var(--acci-show);
    order: var(--acci-ord);
    flex: none;
    width: var(--acci-mw);
    aspect-ratio: var(--acci-ar);
    min-height: var(--acci-minh);
    align-self: var(--acci-as);
    position: var(--acci-pos);
    top: var(--acci-top);
    overflow: hidden;
    border-radius: var(--acci-radius, 16px);
    box-shadow: var(--acci-shadow, none);
    background: color-mix(in srgb, currentColor 6%, transparent);
    isolation: isolate; /* keeps the rounded corners while the image zooms (Safari) */
}
.pb-acc-img {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--acci-speed, .5s) ease, visibility 0s var(--acci-speed, .5s), transform var(--acci-speed, .5s) cubic-bezier(.22, 1, .36, 1), clip-path var(--acci-speed, .5s) cubic-bezier(.65, 0, .35, 1);
}
.pb-acc-img.is-shown { opacity: 1; visibility: visible; z-index: 1; transition-delay: 0s; }
.pb-acc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pb-acc-img-empty { display: grid; place-items: center; padding: 24px; text-align: center; font-size: .875rem; opacity: .6; }
.pb-acc-img-empty.is-shown { opacity: .6; }

/* Change effects: the incoming image starts from here */
.acc-fx-zoom .pb-acc-img:not(.is-shown) { transform: scale(1.08); }
.acc-fx-slide .pb-acc-img:not(.is-shown) { transform: translateY(8%); }
.acc-fx-wipe .pb-acc-img { opacity: 1; clip-path: inset(0 0 0 0); }
.acc-fx-wipe .pb-acc-img:not(.is-shown) { clip-path: inset(100% 0 0 0); }
.acc-fx-wipe .pb-acc-img.was-shown { z-index: 0; clip-path: inset(0 0 0 0); } /* the old one stays under the wipe */
.acc-fx-none .pb-acc-img { transition: none; }

@media (min-width: 768px) and (max-width: 1023px) {
    .pb-acc-split {
        --acci-dir: var(--acci-dir-t, row); --acci-ord: var(--acci-ord-t, 1); --acci-show: var(--acci-show-t, block);
        --acci-mw: var(--acci-mw-t, 50%); --acci-ar: var(--acci-ar-t, auto); --acci-minh: var(--acci-minh-t, 320px);
        --acci-as: var(--acci-as-t, stretch); --acci-pos: var(--acci-pos-t, relative); --acci-top: var(--acci-top-t, auto);
    }
}
@media (max-width: 767px) {
    .pb-acc-split {
        --acci-dir: var(--acci-dir-m, column); --acci-ord: var(--acci-ord-m, -1); --acci-show: var(--acci-show-m, block);
        --acci-mw: var(--acci-mw-m, 100%); --acci-ar: var(--acci-ar-m, 4 / 3); --acci-minh: var(--acci-minh-m, 0px);
        --acci-as: var(--acci-as-m, flex-start); --acci-pos: var(--acci-pos-m, relative); --acci-top: var(--acci-top-m, auto);
    }
}
@media (prefers-reduced-motion: reduce) {
    .pb-acc-img, .acc-fx-wipe .pb-acc-img { transform: none !important; clip-path: none !important; transition: opacity .15s, visibility 0s .15s; }
    .pb-acc-img.is-shown { transition: opacity .15s; }
}

/* ---------- Forms (src/lib/forms.php). Field widths per screen size: --fw, --fw-t, --fw-m (12ths) ---------- */
.pb-form {
    --field-border: color-mix(in srgb, currentColor 28%, transparent);
    --choice-border: color-mix(in srgb, currentColor 38%, transparent); /* radio buttons and checkboxes, also in the Filled style */
    --field-bg: transparent;
    --field-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: var(--form-gap, 18px);
}
.pb-form-grid { display: flex; flex-wrap: wrap; gap: var(--form-gap, 18px); }
.pb-form-field {
    flex: 0 0 calc((100% + var(--form-gap, 18px)) * var(--fw, 12) / 12 - var(--form-gap, 18px) - .1px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
@media (min-width: 768px) and (max-width: 1023px) { .pb-form-field { flex-basis: calc((100% + var(--form-gap, 18px)) * var(--fw-t, 12) / 12 - var(--form-gap, 18px) - .1px); } }
@media (max-width: 767px) { .pb-form-field { flex-basis: calc((100% + var(--form-gap, 18px)) * var(--fw-m, 12) / 12 - var(--form-gap, 18px) - .1px); } }
.pb-form-label, .pb-form-field legend { padding: 0; font-weight: 600; font-size: .95rem; }
.pb-form-required { color: #c0392b; }
.pb-form-heading { margin: 8px 0 0; }
.pb-form-field input:not([type="checkbox"]):not([type="radio"]),
.pb-form-field select,
.pb-form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--field-border);
    border-radius: var(--field-radius);
    background: var(--field-bg);
    color: inherit;
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.pb-form-field textarea { resize: vertical; min-height: 120px; }
.pb-form-field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pb-form-field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus { outline: none; border-color: var(--form-accent, var(--color-primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--form-accent, var(--color-primary)) 22%, transparent); }
.pb-form-field :is(input, select, textarea)::placeholder { color: inherit; opacity: .5; }
.pb-form--filled { --field-bg: color-mix(in srgb, currentColor 6%, transparent); --field-border: transparent; }
.pb-form--underline { --field-radius: 0; }
.pb-form--underline .pb-form-field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-width: 0 0 1px; padding-inline: 2px; }
.pb-form--underline .pb-form-field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus { box-shadow: 0 1px 0 0 var(--form-accent, var(--color-primary)); }
/* Radio buttons and checkboxes: drawn with CSS, but still real inputs (keyboard, screen readers, "required") */
.pb-form-choices { display: flex; flex-direction: column; gap: 10px; }
.pb-form-choices--inline { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; }
.pb-form-choice { position: relative; display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.pb-form-choice input {
    appearance: none;
    flex: none;
    display: grid;
    place-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid var(--choice-border);
    border-radius: 6px;
    background: var(--field-bg);
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.pb-form-choice input[type="radio"] { border-radius: 50%; }
.pb-form-choice input::before { /* the tick, or the dot */
    content: "";
    width: 12px;
    height: 12px;
    background: var(--form-accent-fg, #fff);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform .15s ease-out;
}
.pb-form-choice input[type="radio"]::before { width: 8px; height: 8px; border-radius: 50%; clip-path: none; }
.pb-form-choice input:checked { border-color: var(--form-accent, var(--color-primary)); background: var(--form-accent, var(--color-primary)); }
.pb-form-choice input:checked::before { transform: scale(1); }
.pb-form-choice:hover input:not(:checked) { border-color: var(--form-accent, var(--color-primary)); }
.pb-form-choice input:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--form-accent, var(--color-primary)) 28%, transparent); }
.pb-form-field.has-error .pb-form-choice input:not(:checked) { border-color: #c0392b; }
.pb-form-choice > span { padding-top: 1px; }
@media (prefers-reduced-motion: reduce) { .pb-form-choice input, .pb-form-choice input::before { transition: none; } }

/* "As buttons": each option is a pill; the input is hidden (but still there for keyboards and screen readers) */
.pb-form-choices--buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.pb-form-choices--buttons .pb-form-choice {
    align-items: center;
    padding: 9px 18px;
    border: 1.5px solid var(--choice-border);
    border-radius: 999px;
    background: var(--field-bg);
    transition: border-color .15s, background-color .15s, color .15s;
}
.pb-form-choices--buttons .pb-form-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.pb-form-choices--buttons .pb-form-choice > span { padding: 0; }
.pb-form-choices--buttons .pb-form-choice:hover { border-color: var(--form-accent, var(--color-primary)); }
.pb-form-choices--buttons .pb-form-choice:has(input:checked) { border-color: var(--form-accent, var(--color-primary)); background: var(--form-accent, var(--color-primary)); color: var(--form-accent-fg, #fff); }
.pb-form-choices--buttons .pb-form-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px color-mix(in srgb, var(--form-accent, var(--color-primary)) 28%, transparent); }
.pb-form-field.has-error .pb-form-choices--buttons .pb-form-choice { border-color: #c0392b; }
.pb-form-help { margin: 0; font-size: .85rem; opacity: .75; }
.pb-form-error { margin: 0; color: #c0392b; font-size: .75rem; font-weight: 400; }
.pb-form-field.has-error :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { border-color: #c0392b; }
.pb-form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pb-form-actions { display: flex; }
.pb-form-btn-center .pb-form-actions { justify-content: center; }
.pb-form-btn-right .pb-form-actions { justify-content: flex-end; }
.pb-form-btn-stretch .pb-form-actions .pb-btn { flex: 1; }
/* The button's width per screen size (Form element › Button › Width): a % of the form, or auto */
.pb-form-actions .pb-btn { width: var(--fbw, auto); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-form-actions .pb-btn { width: var(--fbw-t, auto); } }
@media (max-width: 767px) { .pb-form-actions .pb-btn { width: var(--fbw-m, auto); } }
.pb-form .pb-btn { border-width: 2px; font: inherit; font-weight: 600; cursor: pointer; }
.pb-form .pb-btn[disabled] { opacity: .6; cursor: progress; }
.pb-form-message, .pb-form-success { padding: 14px 18px; border-radius: 8px; background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-left: 4px solid var(--color-primary); }
.pb-form-message.is-error { background: color-mix(in srgb, #c0392b 8%, transparent); border-left-color: #c0392b; }
.pb-form-success p { margin: 0; white-space: pre-line; }
.pb-form-success:focus { outline: none; }

/* ---------- Image box (see pb_imagebox_html). Layout per screen size: --imb-disp, --imb-dir, --imb-mw (-t, -m) ---------- */
.pb-imgbox {
    /* The values for the screen size: desktop here, tablet and phone in the media queries below */
    --imb-side: var(--imb-side-d, 0%);
    --imb-twn: var(--imb-twn-d, 1);
    --imb-fl: var(--imb-fl-d, 0);
    --imb-fr: var(--imb-fr-d, 0);
    --imb-mrad: var(--imb-mrad-d, 0);
    --imb-grow: var(--imb-grow-d, 1);
    position: relative;
    display: var(--imb-disp, flex);
    flex-direction: var(--imb-dir, column);
    height: 100%;
    /* Not overflow: hidden, so a text box with minus margins can reach outside. The image rounds its own corners. */
    border: var(--imb-border, 0);
    border-radius: var(--imb-radius, 0);
    background: var(--imb-bg, transparent);
    box-shadow: var(--imb-shadow, none);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pb-imgbox > * { grid-area: 1 / 1; } /* only matters for "Behind": the image and the text in one cell */
.pb-imgbox-media {
    position: relative;
    flex: none;
    width: var(--imb-mw, 100%);
    aspect-ratio: var(--imb-ratio, 4 / 3);
    overflow: hidden;
    border-radius: var(--imb-mrad);
    background: color-mix(in srgb, currentColor 6%, transparent);
}
/* "Image corners: Set my own": four corners per screen size, instead of following the box */
.pb-imgbox.has-image-radius > .pb-imgbox-media { border-radius: var(--imirt, 0px) var(--imirr, 0px) var(--imirb, 0px) var(--imirl, 0px); }
.pb-imgbox-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--imb-focus, 50% 50%);
    transition: transform .6s ease, filter .4s ease, opacity .4s ease;
}
.pb-imgbox-empty { display: grid; place-items: center; height: 100%; padding: 12px; font: 13px/1.4 system-ui, sans-serif; text-align: center; opacity: .6; }
.pb-imgbox-overlay { position: absolute; inset: 0; background: var(--imb-overlay); opacity: var(--imb-overlay-o, .4); transition: opacity .35s ease; pointer-events: none; }
.pb-imgbox-body {
    /* Width: a share of the space beside the image (all of the box with the image on top or behind).
       Alignment: the space left over goes into the margins (--imb-fl / --imb-fr: 0, .5 or 1 of it). */
    --imb-room: calc(100% - var(--imb-side));
    --imb-free: calc(var(--imb-room) * (1 - var(--imb-twn)));
    position: relative;
    z-index: 1; /* above the image when it overlaps or is behind the text */
    display: flex;
    flex-direction: column;
    flex: var(--imb-grow) 1 auto; /* beside the image: exactly its width; otherwise it fills the height */
    width: calc(var(--imb-room) * var(--imb-twn));
    gap: var(--imb-gap, 12px);
    min-width: 0;
    padding: var(--imbt, 24px) var(--imbr, 24px) var(--imbb, 24px) var(--imbl, 24px);
    margin: var(--imbmt, 0px) calc(var(--imbmr, 0px) + var(--imb-free) * var(--imb-fr)) var(--imbmb, 0px) calc(var(--imbml, 0px) + var(--imb-free) * var(--imb-fl));
    border-radius: var(--imtrt, 0px) var(--imtrr, 0px) var(--imtrb, 0px) var(--imtrl, 0px); /* top-left, top-right, bottom-right, bottom-left */
    background: var(--imb-tbg, transparent);
    box-shadow: var(--imb-ts, none);
}.pb-imgbox.v-center > .pb-imgbox-body { justify-content: center; }
.pb-imgbox.v-bottom > .pb-imgbox-body { justify-content: flex-end; }
/* A box with its own background and "Theme colours": the normal theme text colours, even in a light-text section */
.pb-theme-text {
    color: var(--theme-text-color, #1d2327);
    --text-color: var(--theme-text-color, #1d2327);
    --heading-color: var(--theme-heading-color, #1d2327);
    --link-color: var(--theme-link-color, #2f5d50);
    --link-hover-color: var(--theme-link-hover-color, #244a40);
    --muted: color-mix(in srgb, var(--theme-text-color, #1d2327) 70%, transparent);
}
.pb-imgbox--light { color: #fff; --text-color: #fff; --heading-color: #fff; --link-color: #fff; --link-hover-color: rgb(255 255 255 / .8); }
.pb-imgbox-body > :first-child { margin-top: 0; }
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-imgbox {
        display: var(--imb-disp-t, flex); flex-direction: var(--imb-dir-t, column);
        --imb-side: var(--imb-side-t, 0%); --imb-twn: var(--imb-twn-t, 1); --imb-fl: var(--imb-fl-t, 0); --imb-fr: var(--imb-fr-t, 0);
        --imb-mrad: var(--imb-mrad-t, 0); --imb-grow: var(--imb-grow-t, 1);
    }
    .pb-imgbox-media { width: var(--imb-mw-t, 100%); }
    .pb-imgbox.has-image-radius > .pb-imgbox-media { border-radius: var(--imirt-t, 0px) var(--imirr-t, 0px) var(--imirb-t, 0px) var(--imirl-t, 0px); }
    .pb-imgbox-body {
        border-radius: var(--imtrt-t, 0px) var(--imtrr-t, 0px) var(--imtrb-t, 0px) var(--imtrl-t, 0px);
        padding: var(--imbt-t, 24px) var(--imbr-t, 24px) var(--imbb-t, 24px) var(--imbl-t, 24px);
        margin: var(--imbmt-t, 0px) calc(var(--imbmr-t, 0px) + var(--imb-free) * var(--imb-fr)) var(--imbmb-t, 0px) calc(var(--imbml-t, 0px) + var(--imb-free) * var(--imb-fl));
    }
}
@media (max-width: 767px) {
    .pb-imgbox {
        display: var(--imb-disp-m, flex); flex-direction: var(--imb-dir-m, column);
        --imb-side: var(--imb-side-m, 0%); --imb-twn: var(--imb-twn-m, 1); --imb-fl: var(--imb-fl-m, 0); --imb-fr: var(--imb-fr-m, 0);
        --imb-mrad: var(--imb-mrad-m, 0); --imb-grow: var(--imb-grow-m, 1);
    }
    .pb-imgbox-media { width: var(--imb-mw-m, 100%); }
    .pb-imgbox.has-image-radius > .pb-imgbox-media { border-radius: var(--imirt-m, 0px) var(--imirr-m, 0px) var(--imirb-m, 0px) var(--imirl-m, 0px); }
    .pb-imgbox-body {
        border-radius: var(--imtrt-m, 0px) var(--imtrr-m, 0px) var(--imtrb-m, 0px) var(--imtrl-m, 0px);
        padding: var(--imbt-m, 18px) var(--imbr-m, 18px) var(--imbb-m, 18px) var(--imbl-m, 18px);
        margin: var(--imbmt-m, 0px) calc(var(--imbmr-m, 0px) + var(--imb-free) * var(--imb-fr)) var(--imbmb-m, 0px) calc(var(--imbml-m, 0px) + var(--imb-free) * var(--imb-fl));
    }
}
/* The whole box as a link: a layer over it, with links and buttons inside above the layer */
.pb-imgbox-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pb-imgbox-link[data-lightbox] { cursor: zoom-in; }
.pb-imgbox-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.pb-imgbox.has-link .pb-imgbox-body :is(a, button, input, select, textarea) { position: relative; z-index: 3; }

/* Hover effects (also with keyboard focus inside) */
.pb-imgbox:is(:hover, :focus-within).ih-zoom .pb-imgbox-media img { transform: scale(1.08); }
.pb-imgbox.ih-zoom-out .pb-imgbox-media img { transform: scale(1.08); }
.pb-imgbox:is(:hover, :focus-within).ih-zoom-out .pb-imgbox-media img { transform: scale(1); }
.pb-imgbox.ih-colour .pb-imgbox-media img { filter: grayscale(1); }
.pb-imgbox:is(:hover, :focus-within).ih-colour .pb-imgbox-media img { filter: grayscale(0); }
.pb-imgbox:is(:hover, :focus-within).ih-grey .pb-imgbox-media img { filter: grayscale(1); }
.pb-imgbox:is(:hover, :focus-within).ih-blur .pb-imgbox-media img { filter: blur(3px); transform: scale(1.04); }
.pb-imgbox:is(:hover, :focus-within).ih-fade .pb-imgbox-media img { opacity: .7; }
.pb-imgbox:is(:hover, :focus-within).ih-glow .pb-imgbox-media img { filter: brightness(1.12) saturate(1.1); }
.pb-imgbox.ov-show .pb-imgbox-overlay { opacity: 0; }
.pb-imgbox:is(:hover, :focus-within).ov-show .pb-imgbox-overlay { opacity: var(--imb-overlay-o, .4); }
.pb-imgbox:is(:hover, :focus-within).ov-hide .pb-imgbox-overlay { opacity: 0; }
.pb-imgbox:not(.hover-text):is(:hover, :focus-within):is(.bh-lift, .bh-lift-shadow) { transform: translateY(-6px); }
.pb-imgbox:not(.hover-text):is(:hover, :focus-within):is(.bh-shadow, .bh-lift-shadow) { box-shadow: 0 18px 40px -8px rgb(0 0 0 / .22); }
/* "Box effect applies to: Text box": the same effects on the text box only (e.g. a card overlapping the image) */
.pb-imgbox.hover-text > .pb-imgbox-body { transition: transform .3s ease, box-shadow .3s ease; }
.pb-imgbox.hover-text:is(:hover, :focus-within):is(.bh-lift, .bh-lift-shadow) > .pb-imgbox-body { transform: translateY(-6px); }
.pb-imgbox.hover-text:is(:hover, :focus-within):is(.bh-shadow, .bh-lift-shadow) > .pb-imgbox-body { box-shadow: 0 18px 40px -8px rgb(0 0 0 / .22); }
@media (prefers-reduced-motion: reduce) {
    .pb-imgbox, .pb-imgbox-media img, .pb-imgbox > .pb-imgbox-body { transition: none; }
    .pb-imgbox:is(:hover, :focus-within), .pb-imgbox:is(:hover, :focus-within) > .pb-imgbox-body { transform: none !important; }
}

/* ---------- Stack (see pb_stack_html): a flexbox line of elements. Direction per screen size. ---------- */
.pb-stack {
    display: flex;
    flex-direction: var(--stack-dir, row);
    gap: var(--stack-gap, 16px);
    align-items: stretch;
}
.pb-stack.is-wrap { flex-wrap: wrap; }
/* Box (Stack → Box): the stack as a panel, e.g. frosted glass with text on a banner */
.pb-stack.has-box { background: var(--stack-bg, none); border-radius: var(--stack-radius, 0); box-shadow: var(--stack-shadow, none); }
.pb-stack.has-blur { -webkit-backdrop-filter: blur(var(--stack-blur)); backdrop-filter: blur(var(--stack-blur)); }
.pb-stack.has-border { border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.pb-stack.has-padding { padding: var(--spt) var(--spr) var(--spb) var(--spl); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-stack.has-padding { padding: var(--spt-t) var(--spr-t) var(--spb-t) var(--spl-t); } }
@media (max-width: 767px) { .pb-stack.has-padding { padding: var(--spt-m) var(--spr-m) var(--spb-m) var(--spl-m); } }
.pb-stack > .pb-el { min-width: 0; }
/* Images side by side: their own size (capped by Maximum width), not "100% of" a box that's only as wide as
   its content, which collapses to nothing */
.pb-stack > .pb-el--image { flex: none; }
.pb-stack > .pb-el--image .pb-image img { max-width: var(--img-max, none); }
/* Overlap (Stack → Overlap): each element pulled over the one before, sideways or up per screen size */
.pb-stack.has-overlap > .pb-el + .pb-el { margin: calc(var(--ovy) * -1) 0 0 calc(var(--ovx) * -1); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-stack.has-overlap > .pb-el + .pb-el { margin: calc(var(--ovy-t) * -1) 0 0 calc(var(--ovx-t) * -1); } }
@media (max-width: 767px) { .pb-stack.has-overlap > .pb-el + .pb-el { margin: calc(var(--ovy-m) * -1) 0 0 calc(var(--ovx-m) * -1); } }
/* Stretch: buttons fill their place, so side by side they're the same height and stacked they're full width */
.pb-stack.items-stretch > .pb-el--button, .pb-stack.items-stretch > .pb-el--button > .pb-button-wrap { display: flex; }
.pb-stack.items-stretch > .pb-el--button > .pb-button-wrap, .pb-stack.items-stretch > .pb-el--button > .pb-button-wrap > .pb-btn { flex: 1; }
.pb-stack.justify-center { justify-content: center; }
.pb-stack.justify-end { justify-content: flex-end; }
.pb-stack.justify-around { justify-content: space-around; }
.pb-stack.justify-between { justify-content: space-between; }
.pb-stack.items-start { align-items: flex-start; }
.pb-stack.items-center { align-items: center; }
.pb-stack.items-end { align-items: flex-end; }
.pb-stack.items-baseline { align-items: baseline; }
@media (min-width: 768px) and (max-width: 1023px) { .pb-stack { flex-direction: var(--stack-dir-t, row); } }
@media (max-width: 767px) { .pb-stack { flex-direction: var(--stack-dir-m, row); } }

/* ---------- Tabs (see pb_tabs_html). Styles: line, pills, square. Horizontal or vertical. ---------- */
.pb-tabs {
    --tabs-line: color-mix(in srgb, currentColor 16%, transparent);
    display: flex;
    flex-direction: column;
    gap: var(--tabs-gap, 24px);
}
.pb-tabs-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pb-tabs-nav::-webkit-scrollbar { display: none; }
.pb-tab {
    flex: none;
    padding: 10px 18px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: .7;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s, opacity .15s;
}
.pb-tab:hover { opacity: 1; }
.pb-tab.is-active { opacity: 1; }
.pb-tab:focus-visible { outline: 2px solid var(--tabs-active); outline-offset: 2px; }
.tabs-upper .pb-tab { text-transform: uppercase; letter-spacing: .06em; font-size: .85em; }
/* Alignment. Margins (not justify-content) so tabs that don't fit still scroll from the first one. */
.tabs-align-center > .pb-tabs-nav > .pb-tab:first-child { margin-left: auto; }
.tabs-align-center > .pb-tabs-nav > .pb-tab:last-child { margin-right: auto; }
.tabs-align-right > .pb-tabs-nav > .pb-tab:first-child { margin-left: auto; }
.tabs-align-stretch > .pb-tabs-nav > .pb-tab { flex: 1 0 auto; }
.pb-tabs-panels { min-width: 0; }
.pb-tab-panel:focus-visible { outline: 2px solid var(--tabs-active); outline-offset: 4px; }
.pb-tab-body { display: flex; flex-direction: column; gap: 16px; }

/* Line: an underline under the active tab */
.pb-tabs--line > .pb-tabs-nav { gap: 24px; border-bottom: 1px solid var(--tabs-line); }
.pb-tabs--line .pb-tab { margin-bottom: -1px; padding: 12px 2px; border-bottom: 2px solid transparent; }
.pb-tabs--line .pb-tab.is-active { border-bottom-color: var(--tabs-active); color: var(--tabs-active); }
/* Pills: rounded, the active one filled */
.pb-tabs--pills .pb-tab { border-radius: 999px; }
.pb-tabs--pills .pb-tab:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.pb-tabs--pills .pb-tab.is-active { background: var(--tabs-active); color: var(--tabs-active-fg); }
/* Square: boxes joined together, the active one filled */
.pb-tabs--square > .pb-tabs-nav { gap: 2px; }
.pb-tabs--square .pb-tab { background: color-mix(in srgb, currentColor 6%, transparent); }
.pb-tabs--square .pb-tab:hover { background: color-mix(in srgb, currentColor 11%, transparent); }
.pb-tabs--square .pb-tab.is-active { background: var(--tabs-active); color: var(--tabs-active-fg); }

/* Vertical: the tabs in a column beside the content (on the right with "Right" alignment) */
@media (min-width: 768px) {
    .pb-tabs--vertical { flex-direction: row; align-items: flex-start; }
    .pb-tabs--vertical.tabs-align-right { flex-direction: row-reverse; }
    .pb-tabs--vertical > .pb-tabs-nav { flex: 0 0 var(--tabs-nav-w, 220px); flex-direction: column; overflow: visible; }
    .pb-tabs--vertical > .pb-tabs-panels { flex: 1; }
    .pb-tabs--vertical .pb-tab { margin: 0 !important; text-align: left; white-space: normal; }
    .pb-tabs--vertical.tabs-align-right .pb-tab { text-align: right; }
    .pb-tabs--vertical.pb-tabs--line > .pb-tabs-nav { gap: 0; border-bottom: 0; border-right: 1px solid var(--tabs-line); }
    .pb-tabs--vertical.pb-tabs--line .pb-tab { margin: 0 -1px 0 0 !important; padding: 11px 18px 11px 0; border-bottom: 0; border-right: 2px solid transparent; }
    .pb-tabs--vertical.pb-tabs--line .pb-tab.is-active { border-right-color: var(--tabs-active); }
    .pb-tabs--vertical.pb-tabs--line.tabs-align-right > .pb-tabs-nav { border-right: 0; border-left: 1px solid var(--tabs-line); }
    .pb-tabs--vertical.pb-tabs--line.tabs-align-right .pb-tab { margin: 0 0 0 -1px !important; padding: 11px 0 11px 18px; border-right: 0; border-left: 2px solid transparent; }
    .pb-tabs--vertical.pb-tabs--line.tabs-align-right .pb-tab.is-active { border-left-color: var(--tabs-active); }
}

/*
 * ---------- Entrance animations (the Animate tab in the page builder, pb_anim_attrs) ----------
 * data-anim names the effect; --anim-dur, -delay, -dist (px), -k (zoom) and -ease come from its settings.
 * app.js adds .is-pending to things below the screen (the start state) and swaps it for .is-animating when
 * they're scrolled to. data-anim-first (the first section) plays by CSS alone as the page opens. Only
 * opacity, translate, scale and blur change: nothing else on the page moves, and the separate translate
 * and scale properties leave transforms alone (banner positions, hover effects).
 */
[data-anim] { --a-o: 0; --a-x: 0px; --a-y: 0px; --a-s: 1; --a-b: 0px; }
[data-anim="fade-up"] { --a-y: var(--anim-dist); }
[data-anim="fade-down"] { --a-y: calc(var(--anim-dist) * -1); }
[data-anim="fade-right"] { --a-x: calc(var(--anim-dist) * -1); }
[data-anim="fade-left"] { --a-x: var(--anim-dist); }
[data-anim="zoom-in"] { --a-s: calc(1 - var(--anim-k)); }
[data-anim="zoom-out"] { --a-s: calc(1 + var(--anim-k)); }
[data-anim="slide-up"] { --a-o: 1; --a-y: calc(var(--anim-dist) * 2); }
[data-anim="blur-in"] { --a-b: calc(var(--anim-dist) / 3); }

/* --mx/--my/--ms: Motion (below), added on, so an element can fade in and drift at once */
[data-anim].is-pending { opacity: var(--a-o); translate: calc(var(--a-x) + var(--mx, 0px)) calc(var(--a-y) + var(--my, 0px)); scale: calc(var(--a-s) * var(--ms, 1)); }
[data-anim="blur-in"].is-pending { filter: blur(var(--a-b)); }
[data-anim].is-animating {
    transition: opacity var(--anim-dur) var(--anim-ease) var(--anim-delay), translate var(--anim-dur) var(--anim-ease) var(--anim-delay),
        scale var(--anim-dur) var(--anim-ease) var(--anim-delay), filter var(--anim-dur) var(--anim-ease) var(--anim-delay);
}
@keyframes pb-anim-in { from { opacity: var(--a-o); translate: calc(var(--a-x) + var(--mx, 0px)) calc(var(--a-y) + var(--my, 0px)); scale: calc(var(--a-s) * var(--ms, 1)); } }
@keyframes pb-anim-blur { from { filter: blur(var(--a-b)); } }
/* .pb-anim-play: the builder's canvas playing it for a preview */
:is([data-anim-first], .pb-anim-play)[data-anim] { animation: pb-anim-in var(--anim-dur) var(--anim-ease) var(--anim-delay) backwards; }
:is([data-anim-first], .pb-anim-play)[data-anim="blur-in"] { animation-name: pb-anim-in, pb-anim-blur; }
.pb-section.has-anim-x { overflow-x: clip; } /* coming in from the side doesn't make the page scroll sideways */

@media (prefers-reduced-motion: reduce) {
    [data-anim].is-pending { opacity: 1; translate: none; scale: none; filter: none; }
    [data-anim] { animation: none !important; transition: none !important; }
}
@media (max-width: 767px) {
    [data-anim-phone="off"].is-pending { opacity: 1; translate: none; scale: none; filter: none; }
    [data-anim-phone="off"] { animation: none !important; }
}
@media print { [data-anim].is-pending { opacity: 1; translate: none; scale: none; filter: none; } }

/*
 * ---------- Shape dividers (pb_divider_html): a shape along a section's or banner's top or bottom edge ----------
 * The SVG stretches to the height (--dv-h, per screen size) and width (--dv-w: over 100% stretches the shape,
 * centred and clipped). Under the content unless "In front"; clicks pass through it. 1px past the edge, so no
 * hairline shows between it and the next section.
 */
.pb-shape-divider { position: absolute; left: 0; right: 0; height: var(--dv-h); overflow: hidden; pointer-events: none; line-height: 0; color: var(--dv-c); }
.pb-shape-divider--top { top: -1px; }
.pb-shape-divider--bottom { bottom: -1px; }
.pb-shape-divider.is-front { z-index: 2; }
.pb-shape-divider svg {
    position: absolute; top: 0; left: 50%; width: calc(var(--dv-w) + 2px); height: 100%; fill: currentColor;
    transform: translateX(-50%) scale(var(--dv-sx, 1), var(--dv-sy, 1));
}
.pb-shape-divider--top svg { --dv-sy: -1; } /* filled at the top: the colour above comes down */
.pb-shape-divider.is-flip svg { --dv-sx: -1; }
@media (min-width: 768px) and (max-width: 1023px) { .pb-shape-divider { height: var(--dv-h-t); } .pb-shape-divider svg { width: calc(var(--dv-w-t) + 2px); } }
@media (max-width: 767px) { .pb-shape-divider { height: var(--dv-h-m); } .pb-shape-divider svg { width: calc(var(--dv-w-m) + 2px); } }

/*
 * ---------- Position & layer (Advanced → Position & layer, pb_position_attrs) ----------
 * Margin can be negative, to pull an element or column over its neighbour. "Move" uses position: relative
 * with left/top, so it never fights transforms (banners, hover effects) or the entrance animations.
 */
:is(.pb-el, .pb-col).has-pos-margin { margin: var(--emt) var(--emr) var(--emb) var(--eml); }
:is(.pb-el, .pb-col).has-pos-move { position: relative; left: var(--mvx); top: var(--mvy); }
:is(.pb-el, .pb-col).has-layer { position: relative; z-index: var(--layer); }
@media (min-width: 768px) and (max-width: 1023px) {
    :is(.pb-el, .pb-col).has-pos-margin { margin: var(--emt-t) var(--emr-t) var(--emb-t) var(--eml-t); }
    :is(.pb-el, .pb-col).has-pos-move { left: var(--mvx-t); top: var(--mvy-t); }
}
@media (max-width: 767px) {
    :is(.pb-el, .pb-col).has-pos-margin { margin: var(--emt-m) var(--emr-m) var(--emb-m) var(--eml-m); }
    :is(.pb-el, .pb-col).has-pos-move { left: var(--mvx-m); top: var(--mvy-m); }
}
.pb-section:has(.has-pos-margin, .has-pos-move) { overflow-x: clip; } /* pulled or moved sideways: phones never scroll sideways */

/*
 * ---------- Steps (pb_steps_html): a numbered process / timeline ----------
 * Per screen size: --stc columns (all the steps, or 1), --std the badge's place (column = above the text,
 * row = beside it), --stv 1 when vertical, --stg the gap. Each step but the last draws the line to the next
 * badge: ::before is the "not yet" line, ::after the coloured part, scaled by --fill (0–1, set by app.js while
 * scrolling; 1 = complete, the default). The line runs behind the badges (they're opaque).
 */
.pb-steps { --stc-x: var(--stc); --std-x: var(--std); --stv-x: var(--stv); --stg-x: var(--stg); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-steps { --stc-x: var(--stc-t); --std-x: var(--std-t); --stv-x: var(--stv-t); --stg-x: var(--stg-t); } }
@media (max-width: 767px) { .pb-steps { --stc-x: var(--stc-m); --std-x: var(--std-m); --stv-x: var(--stv-m); --stg-x: var(--stg-m); } }
.pb-steps-list {
    display: grid; grid-template-columns: repeat(var(--stc-x), minmax(0, 1fr)); gap: var(--stg-x);
    margin: 0; padding: 0; list-style: none;
}
.pb-step { --fill: 1; position: relative; display: flex; flex-direction: var(--std-x); align-items: flex-start; gap: 20px 24px; min-width: 0; }
.pb-step-badge {
    position: relative; z-index: 1; flex: none; display: grid; place-items: center;
    width: var(--sb); height: var(--sb); border-radius: calc(var(--sb) * .3);
    background: var(--st-off); color: var(--st-off-fg);
    font-weight: 700; font-size: calc(var(--sb) * .3); line-height: 1;
    transition: background .35s ease, color .35s ease;
}
.pb-steps.shape-circle .pb-step-badge { border-radius: 50%; }
.pb-steps.shape-square .pb-step-badge { border-radius: 0; }
.pb-step-badge .pb-step-icon { width: 42%; height: 42%; }
.pb-step.is-done .pb-step-badge { background: var(--st-on); color: var(--st-on-fg); }
.pb-step:not(:last-child)::before, .pb-step:not(:last-child)::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    top: calc(var(--sb) / 2 - var(--slw) / 2 * (1 - var(--stv-x)));
    left: calc(var(--sb) / 2 - var(--slw) / 2 * var(--stv-x));
    width: calc((100% + var(--stg-x)) * (1 - var(--stv-x)) + var(--slw) * var(--stv-x));
    height: calc(var(--slw) * (1 - var(--stv-x)) + (100% + var(--stg-x)) * var(--stv-x));
}
.pb-step:not(:last-child)::before { background: var(--st-line, color-mix(in srgb, currentColor 12%, transparent)); }
.pb-step:not(:last-child)::after {
    background: var(--st-on); transform-origin: 0 0;
    scale: calc(1 - (1 - var(--fill)) * (1 - var(--stv-x))) calc(1 - (1 - var(--fill)) * var(--stv-x));
}
.pb-step-body { min-width: 0; padding-top: max(0px, calc(var(--stv-x) * (var(--sb) / 2 - .8em))); } /* vertical: the title beside the badge's middle */
.pb-step-title { margin: 0 0 8px; font-size: var(--st-ts, 1.25rem); line-height: 1.3; }
.pb-step-title a { color: inherit; text-decoration: none; }
.pb-step-title a:hover { text-decoration: underline; }
.pb-step-text { margin: 0; font-size: var(--st-xs, 1rem); color: var(--muted); }

/*
 * ---------- Motion (Animate → Motion, pb_motion_attrs) ----------
 * app.js sets --mx/--my (px), --mr (deg) and --ms (scale) while scrolling or following the pointer, and
 * --tx/--ty for the 3D tilt of the element's content. Only the separate translate/rotate/scale properties:
 * transform stays free for banner positions and hover effects.
 */
.has-motion { translate: var(--mx, 0px) var(--my, 0px); rotate: var(--mr, 0deg); scale: var(--ms, 1); }
.has-tilt > * { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
@media (prefers-reduced-motion: reduce) { .has-motion { translate: none; rotate: none; scale: none; } .has-tilt > * { transform: none; } }
@media print { .has-motion { translate: none; rotate: none; scale: none; } }

/*
 * ---------- Loop (see pb_loop_wrap): an endless gentle movement on the element's content ----------
 * --lp-t: one round; --lp-d (px), --lp-a (deg), --lp-s (scale): how much; --lp-o: a negative delay, so it
 * starts part way through. translate / rotate / scale add to Motion on .pb-el and a tilt's transform.
 * app.js adds .lp-paused while it's off screen.
 */
@media (prefers-reduced-motion: no-preference) {
    .pb-loop.lp-float { animation: pb-lp-float calc(var(--lp-t, 6s) / 2) ease-in-out var(--lp-o, 0s) infinite alternate; }
    .pb-loop.lp-drift { animation: pb-lp-drift var(--lp-t, 6s) linear var(--lp-o, 0s) infinite; }
    .pb-loop.lp-sway { animation: pb-lp-sway calc(var(--lp-t, 6s) / 2) ease-in-out var(--lp-o, 0s) infinite alternate; }
    .pb-loop.lp-spin { animation: pb-lp-spin var(--lp-t, 20s) linear var(--lp-o, 0s) infinite; }
    .pb-loop.lp-spin-back { animation: pb-lp-spin var(--lp-t, 20s) linear var(--lp-o, 0s) infinite reverse; }
    .pb-loop.lp-pulse { animation: pb-lp-pulse calc(var(--lp-t, 6s) / 2) ease-in-out var(--lp-o, 0s) infinite alternate; }
    .pb-loop.lp-paused { animation-play-state: paused; }
}
@keyframes pb-lp-float { from { translate: 0 calc(var(--lp-d, 16px) / 2); } to { translate: 0 calc(var(--lp-d, 16px) / -2); } }
@keyframes pb-lp-sway { from { rotate: calc(var(--lp-a, 8deg) * -1); } to { rotate: var(--lp-a, 8deg); } }
@keyframes pb-lp-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes pb-lp-pulse { from { scale: 1; } to { scale: var(--lp-s, 1.16); } }
/* A figure of eight: x = sin(t), y = sin(2t) / 2, in eight steps */
@keyframes pb-lp-drift {
    0%, 100% { translate: 0 0; }
    12.5% { translate: calc(var(--lp-d, 16px) * .71) calc(var(--lp-d, 16px) * .5); }
    25% { translate: var(--lp-d, 16px) 0; }
    37.5% { translate: calc(var(--lp-d, 16px) * .71) calc(var(--lp-d, 16px) * -.5); }
    50% { translate: 0 0; }
    62.5% { translate: calc(var(--lp-d, 16px) * -.71) calc(var(--lp-d, 16px) * .5); }
    75% { translate: calc(var(--lp-d, 16px) * -1) 0; }
    87.5% { translate: calc(var(--lp-d, 16px) * -.71) calc(var(--lp-d, 16px) * -.5); }
}

/*
 * ---------- Decoration element (see pb_deco_add, pb_deco_html): a shape, icon or image placed freely ----------
 * Layers behind (.pb-decos--back, before .pb-inner) and in front (after it) of the content, clipped to the
 * section. Each .pb-deco is centred on --dx/--dy (% of the section, past the edges too) and --dw wide (px or
 * %, wider than the section if wanted), per screen size. Spill layers are clipped at the sides only, so they
 * reach into the sections above and below without phones scrolling sideways; to sit over those (later on the
 * page) they're lifted, and the content and front layers above them.
 */
.pb-decos { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.pb-decos--spill { overflow: visible; overflow-x: clip; border-radius: 0; z-index: 1; }
.pb-section.has-deco-spill > .pb-inner { z-index: 2; }
.pb-section.has-deco-spill > .pb-decos--front { z-index: 3; }
.pb-deco {
    --x: var(--dx, 50%); --y: var(--dy, 50%); --w: var(--dw, 120px);
    position: absolute; left: var(--x); top: var(--y); width: var(--w);
    translate: -50% -50%; opacity: var(--do, 1);
}
@media (min-width: 768px) and (max-width: 1023px) { .pb-deco { --x: var(--dx-t, var(--dx)); --y: var(--dy-t, var(--dy)); --w: var(--dw-t, var(--dw)); } }
@media (max-width: 767px) { .pb-deco { --x: var(--dx-m, var(--dx)); --y: var(--dy-m, var(--dy)); --w: var(--dw-m, var(--dw)); } }
.pb-deco-art { display: block; width: 100%; }
.pb-deco-art img, .pb-deco-art > .pb-deco-svg { display: block; width: 100%; height: auto; }
.pb-deco-icon { display: grid; place-items: center; aspect-ratio: 1; }
.pb-deco-icon > .pb-deco-svg { width: 100%; height: 100%; }
.pb-deco-icon.has-bg { padding: 26%; border-radius: 50%; background: var(--di-bg); }
.pb-deco-empty { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; border: 1px dashed currentColor; border-radius: 8px; font-size: .8rem; text-align: center; opacity: .6; }
/* Outside a section (e.g. a block shown on its own) a decoration just sits in the layout, no wider than its column */
.pb-el--deco { max-width: 100%; }

/*
 * ---------- Text runner (pb_marquee_html) ----------
 * The track holds the same group twice and moves left by half its width, then starts again: seamless.
 * --mq-dur comes from the speed (px per second; app.js measures it exactly). Angled: the band is rotated and
 * made wider than its place, so its ends run past the screen edges (the section clips them).
 */
.pb-marquee {
    --mq-sz: var(--mq-size); --mq-g: var(--mq-gap); --mq-p: var(--mq-py);
    position: relative; overflow: hidden; padding: var(--mq-p) 0; background: var(--mq-bg, transparent);
    font-size: var(--mq-sz); line-height: 1.15; font-weight: var(--mq-weight, 700); letter-spacing: var(--mq-ls, 0);
}
@media (min-width: 768px) and (max-width: 1023px) { .pb-marquee { --mq-sz: var(--mq-size-t); --mq-g: var(--mq-gap-t); --mq-p: var(--mq-py-t); } }
@media (max-width: 767px) { .pb-marquee { --mq-sz: var(--mq-size-m); --mq-g: var(--mq-gap-m); --mq-p: var(--mq-py-m); } }
.pb-marquee.mq-font-headings { font-family: var(--font-headings); font-style: var(--font-headings-style, normal); }
.pb-marquee.mq-font-alt { font-family: var(--font-alt); font-style: var(--font-alt-style, normal); }
.pb-marquee.mq-font-base { font-family: var(--font-base); }
.pb-marquee.is-upper { text-transform: uppercase; }
.pb-mq-link { display: block; color: inherit; text-decoration: none; }
.pb-mq-track { display: flex; width: max-content; animation: pb-marquee var(--mq-dur, 30s) linear infinite; }
.pb-marquee.dir-right .pb-mq-track { animation-direction: reverse; }
.pb-marquee.pause-hover:hover .pb-mq-track { animation-play-state: paused; }
@keyframes pb-marquee { to { transform: translateX(-50%); } }
.pb-mq-group { display: flex; flex: none; align-items: center; gap: var(--mq-g); padding-right: var(--mq-g); }
.pb-mq-text { white-space: nowrap; color: var(--mq-fill, #fff); -webkit-text-stroke: var(--mq-stroke, 0 transparent); paint-order: stroke fill; }
.pb-mq-sep { display: inline-flex; align-items: center; flex: none; color: var(--mq-sep-color, currentColor); font-size: var(--mq-sep-size, 1em); line-height: 1; }
.pb-mq-sep .pb-mq-icon { width: 1em; height: 1em; }
.pb-mq-sep .pb-mq-img { display: block; height: 1em; width: auto; }
.pb-marquee.is-angled { width: calc(100% + 16vw); margin-inline: -8vw; rotate: var(--mq-angle); }
@media (prefers-reduced-motion: reduce) { .pb-mq-track { animation: none; } }

/*
 * ---------- Animated text (pb_atext_html) ----------
 * The finished text is the normal state. Start states apply only to .is-armed elements (app.js) or, in the
 * first section, through animations with fill "both" (data-at-first), and all of them sit inside
 * prefers-reduced-motion: no-preference, so reduced motion always shows the finished text.
 * .pb-at-w: a word (inline-block, so it can move), .pb-at-u: a letter or word that fills or comes in (--i),
 * .pb-at-hl: highlighted words (--hi: its place in the group), .pb-at-line/.pb-at-li: lines made by app.js (--li).
 */
.pb-atext { --at-sz: var(--at-size); margin: 0; }
/* .pb-el >: stronger than the theme's heading sizes (.page--builder h2…); the margin stays with .pb-el > .pb-heading */
.pb-el > .pb-atext { font-size: var(--at-sz); line-height: var(--at-lh, 1.2); font-weight: var(--at-weight, 700); letter-spacing: var(--at-ls, 0); }
@media (min-width: 768px) and (max-width: 1023px) { .pb-atext { --at-sz: var(--at-size-t); } }
@media (max-width: 767px) { .pb-atext { --at-sz: var(--at-size-m); } }
.pb-atext.at-font-headings { font-family: var(--font-headings); font-style: var(--font-headings-style, normal); }
.pb-atext.at-font-alt { font-family: var(--font-alt); font-style: var(--font-alt-style, normal); }
.pb-atext.at-font-base { font-family: var(--font-base); font-style: normal; }
.pb-atext.is-upper { text-transform: uppercase; }
.pb-at-v { display: inline-block; max-width: 100%; isolation: isolate; } /* isolate: marks sit behind the letters, never behind the section */
.pb-at-w, .pb-at-w .pb-at-u { display: inline-block; }
.pb-at-line { display: block; }
.pb-at-li { display: inline-block; position: relative; }

/* Highlighted words: a colour or a gradient, and a mark under them (wider by a space where the group goes on) */
.pb-at-hl { position: relative; }
.pb-atext.hl-color .pb-at-hl { color: var(--at-hl); }
.pb-atext.hl-gradient .pb-at-hl { color: transparent; background: var(--at-hlg); -webkit-background-clip: text; background-clip: text; }
.pb-atext:is(.mark-underline, .mark-marker) .pb-at-hl::after {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -.04em; height: var(--at-mark-h, 4px);
    border-radius: 99px; background: var(--at-mark); transform-origin: 0 50%; pointer-events: none;
}
.pb-atext.mark-marker .pb-at-hl::after { bottom: .1em; height: .4em; border-radius: .08em; opacity: .5; }
.pb-atext .pb-at-hl.hl-more::after { right: -.3em; }
/* "As one phrase": the words' own colour, gradient and marks give way to the phrase's. The mark is a background on
   .pb-at-ph, sliced across line breaks, so it's one line under all the words and draws in one sweep (--ph-w). */
.pb-atext.hl-phrase .pb-at-hl { position: static; color: inherit; background: none; } /* static: app.js measures offsets from one parent */
.pb-atext.hl-phrase .pb-at-hl::after { content: none; }
.pb-atext.hl-phrase.hl-color .pb-at-ph { color: var(--at-hl); }
.pb-atext.hl-phrase.hl-gradient .pb-at-phg {
    color: transparent; background: var(--at-hlg); -webkit-background-clip: text; background-clip: text;
    -webkit-box-decoration-break: slice; box-decoration-break: slice;
}
/* Words or letters that move can't show a gradient painted behind them: app.js gives each its slice of it (stitchPhrases) */
.pb-atext.hl-phrase.hl-gradient .pb-at-ph.is-stitched .pb-at-phg { color: inherit; background: none; }
.pb-atext.hl-phrase.hl-gradient .pb-at-ph.is-stitched .ph-part {
    color: transparent; background: var(--at-hlg) calc(-1 * var(--ph-x, 0px)) 0 / var(--ph-len, 100%) 100% no-repeat;
    -webkit-background-clip: text; background-clip: text;
}
.pb-atext.hl-phrase:is(.mark-underline, .mark-marker) .pb-at-ph {
    --ph-h: var(--at-mark-h, 4px);
    background: linear-gradient(var(--at-mark), var(--at-mark)) 0 calc(100% + .04em) / var(--ph-w, 100%) var(--ph-h) no-repeat;
    -webkit-box-decoration-break: slice; box-decoration-break: slice;
}
.pb-atext.hl-phrase.mark-marker .pb-at-ph {
    --ph-h: .4em;
    background-image: linear-gradient(color-mix(in srgb, var(--at-mark) 50%, transparent), color-mix(in srgb, var(--at-mark) 50%, transparent));
    background-position: 0 calc(100% - .1em);
}

/* Gradient text: on the text box, so one gradient runs across every word */
.pb-atext.fx-gradient .pb-at-v { color: transparent; background: var(--at-grad); -webkit-background-clip: text; background-clip: text; }
.pb-atext.fx-gradient:is(.grad-shimmer, .grad-scroll) .pb-at-v { background-size: 200% 100%; }
@keyframes pb-at-shimmer { to { background-position: 200% 0; } } /* one whole tile: seamless */

/* Rotating words: all in one grid cell, one shown; app.js sets the box's width to the shown word */
.pb-at-rot { display: inline-grid; justify-items: start; }
.pb-at-ri { grid-area: 1 / 1; white-space: nowrap; }
.pb-at-ri:not(.is-on, .is-out) { visibility: hidden; }
/* A gradient on each word, not on the box: a box's text gradient shows every word inside it, even one fading out */
.pb-atext.hl-gradient .pb-at-rot.pb-at-hl { color: inherit; background: none; }
.pb-atext.hl-gradient .pb-at-rot.pb-at-hl > .pb-at-ri { color: transparent; background: var(--at-hlg); -webkit-background-clip: text; background-clip: text; }
.pb-at-typed { white-space: pre; }
/* Typewriter cursor: no width of its own, so nothing moves while it blinks */
.pb-at-cursor { display: inline-block; position: relative; width: 0; height: .8em; }
.pb-at-cursor::after {
    content: ""; position: absolute; left: .05em; bottom: -.18em; width: .07em; height: 1.1em;
    background: var(--at-cursor, currentColor); pointer-events: none;
}
.pb-at-hl .pb-at-cursor::after { background: var(--at-cursor, var(--at-hl, currentColor)); }
.pb-atext.cur-underscore .pb-at-cursor::after { bottom: -.1em; width: .55em; height: .08em; }
.pb-atext.cur-block .pb-at-cursor::after { width: .55em; opacity: .35; }

@keyframes pb-at-blink { 50% { opacity: 0; } }
@keyframes pb-at-fade { from { opacity: 0; } }
@keyframes pb-at-rise { from { opacity: 0; translate: 0 .55em; } }
@keyframes pb-at-blur { from { opacity: 0; filter: blur(.3em); } }
@keyframes pb-at-up { from { translate: 0 110%; } }
@keyframes pb-at-bar { 0% { scale: 0 1; transform-origin: 0 50%; } 50% { scale: 1 1; transform-origin: 0 50%; } 50.01% { transform-origin: 100% 50%; } 100% { scale: 0 1; transform-origin: 100% 50%; } }
@keyframes pb-at-uncover { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes pb-at-draw { from { scale: 0 1; } }
@keyframes pb-at-draw-phrase { from { background-size: 0 var(--ph-h); } }
@keyframes pb-at-late { to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
    .pb-atext.grad-shimmer .pb-at-v { animation: pb-at-shimmer var(--at-gs, 6s) linear infinite; }
    .pb-atext.grad-scroll .pb-at-v { background-position: calc(var(--at-p, .5) * 100%) 0; }

    /* Fill on scroll: not yet = the colour at --at-dim strength; a highlight shows its gradient once filled */
    .pb-atext.fx-fill.is-armed .pb-at-u { transition: color .3s ease; }
    .pb-atext.fx-fill.is-armed .pb-at-hl { --at-dimc: var(--at-hl); }
    .pb-atext.fx-fill.is-armed .pb-at-u:not(.is-on) { color: color-mix(in srgb, var(--at-dimc, currentColor) var(--at-dim, 20%), transparent); }
    .pb-atext.fx-fill.is-armed.hl-gradient .pb-at-hl:not(.is-drawn) { color: var(--at-hl); background: none; }
    .pb-atext.fx-fill.is-armed .pb-at-u:not(.is-on) .pb-at-hl { color: inherit; background: none; }
    .pb-atext.fx-fill.is-armed .pb-at-hl::after { transition: scale .6s cubic-bezier(.65, 0, .35, 1); }
    .pb-atext.fx-fill.is-armed .pb-at-hl:not(.is-drawn)::after { scale: 0 1; }

    /* Played once: waiting (armed, not in yet), then playing (in, or the first section as the page opens) */
    .pb-atext.fx-entrance.is-armed:not(.is-in) .pb-at-u,
    .pb-atext:is(.fx-reveal, .fx-slide).is-armed:not(.is-in) .pb-at-v { opacity: 0; }
    .pb-atext.fx-entrance:is([data-at-first], .is-in) .pb-at-u {
        animation: pb-at-rise var(--at-dur, 700ms) cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * var(--at-stagger, 60ms)) both;
    }
    .pb-atext.ent-fade:is([data-at-first], .is-in) .pb-at-u { animation-name: pb-at-fade; }
    .pb-atext.ent-blur:is([data-at-first], .is-in) .pb-at-u { animation-name: pb-at-blur; }

    .pb-atext.fx-reveal.is-in:not(.is-done) .pb-at-li::before {
        content: ""; position: absolute; z-index: 1; inset: 0 -.06em; background: var(--at-bar);
        animation: pb-at-bar var(--at-dur, 700ms) cubic-bezier(.77, 0, .18, 1) calc(var(--li, 0) * var(--at-stagger, 60ms)) both;
    }
    .pb-atext.fx-reveal.is-in:not(.is-done) .pb-at-li .pb-at-w { /* also inside a phrase */
        animation: pb-at-uncover var(--at-dur, 700ms) linear calc(var(--li, 0) * var(--at-stagger, 60ms)) both;
    }
    .pb-atext.fx-slide.at-lines .pb-at-line { overflow: clip; padding-bottom: .14em; margin-bottom: -.14em; } /* the mask; room for descenders */
    .pb-atext.fx-slide.is-in:not(.is-done) .pb-at-li {
        animation: pb-at-up var(--at-dur, 700ms) cubic-bezier(.22, 1, .36, 1) calc(var(--li, 0) * var(--at-stagger, 60ms)) both;
    }

    .pb-atext[data-at-play]:not(.type-all).is-armed:not(.is-in) .pb-at-hl::after { scale: 0 1; }
    .pb-atext[data-at-play]:not(.type-all):is([data-at-first], .is-in):not(.is-done) .pb-at-hl::after {
        animation: pb-at-draw .6s cubic-bezier(.65, 0, .35, 1) calc(var(--at-md, 0ms) + var(--hi, 0) * .4s) both;
    }
    /* As one phrase: the whole mark in one sweep; with the fill or typing, once the phrase's last word is done */
    .pb-atext[data-at-play].hl-phrase:not(.type-all).is-armed:not(.is-in) .pb-at-ph { --ph-w: 0%; }
    .pb-atext[data-at-play].hl-phrase:not(.type-all):is([data-at-first], .is-in):not(.is-done) .pb-at-ph {
        animation: pb-at-draw-phrase .9s cubic-bezier(.65, 0, .35, 1) var(--at-md, 0ms) both;
    }
    .pb-atext.hl-phrase:is(.fx-fill, .type-all).is-armed .pb-at-ph { transition: background-size .8s cubic-bezier(.65, 0, .35, 1); }
    .pb-atext.hl-phrase:is(.fx-fill, .type-all).is-armed .pb-at-ph:not(.is-drawn) { --ph-w: 0%; }
    .pb-atext.hl-phrase.hl-gradient.fx-fill.is-armed .pb-at-ph:not(.is-drawn) .pb-at-phg { color: var(--at-hl); background: none; }

    /* Rotating words: the last one goes out quickly (.is-out), then the next comes in; the box's width eases between them */
    .pb-at-rot { transition: width .5s cubic-bezier(.65, 0, .35, 1); }
    .pb-at-ri { transition: opacity .25s ease, translate .3s cubic-bezier(.55, 0, 1, .45), rotate .3s cubic-bezier(.55, 0, 1, .45), filter .25s ease, visibility .3s; }
    .pb-at-ri.is-on {
        transition: opacity .4s ease .2s, translate .5s cubic-bezier(.22, 1, .36, 1) .2s, rotate .5s cubic-bezier(.22, 1, .36, 1) .2s, filter .4s ease .2s, visibility 0s .2s;
    }
    .pb-at-ri:not(.is-on) { opacity: 0; }
    .pb-atext.rot-slide .pb-at-rot { overflow: clip; padding-block: .1em; margin-block: -.1em; }
    .pb-atext.rot-slide .pb-at-ri:not(.is-on) { translate: 0 100%; }
    .pb-atext.rot-slide .pb-at-ri.is-out { translate: 0 -100%; }
    .pb-atext.rot-flip .pb-at-rot { perspective: 600px; }
    .pb-atext.rot-flip .pb-at-ri:not(.is-on) { rotate: x -90deg; }
    .pb-atext.rot-flip .pb-at-ri.is-out { rotate: x 90deg; }
    .pb-atext.rot-blur .pb-at-ri:not(.is-on) { filter: blur(.25em); }

    /* Typewriter: the cursor blinks while waiting, stays solid while typing; the whole text: letters appear one by one */
    .pb-at-cursor::after { animation: pb-at-blink 1.05s steps(1) infinite; }
    .pb-atext.is-typing .pb-at-cursor::after { animation: none; }
    .pb-atext.type-all.is-armed .pb-at-u:not(.is-on) { visibility: hidden; }
    .pb-atext.type-all.is-armed .pb-at-hl::after { transition: scale .5s cubic-bezier(.65, 0, .35, 1); }
    .pb-atext.type-all.is-armed .pb-at-hl:not(.is-drawn)::after { scale: 0 1; }
}
/* First section, lines and typing: hidden until app.js has started (at the latest after 2s, in case it never runs) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    .pb-atext[data-at-first]:is(.fx-reveal, .fx-slide):not(.at-lines, .is-done) .pb-at-v,
    .pb-atext[data-at-first].type-all:not(.is-armed, .is-done) .pb-at-v { opacity: 0; animation: pb-at-late 0s 2s forwards; }
}

/*
 * ---------- Pill ----------
 * pb_pill_html(): a short label in a rounded box, as a <span> or a link, with an icon before, after or on
 * both sides. --pl-* come per element (sizes, padding and alignment per device).
 */
.pb-pill-row { display: flex; justify-content: var(--pl-j, flex-start); }
.pb-pill {
    position: relative;
    display: inline-flex; align-items: center; gap: var(--pl-gap, 8px); max-width: 100%;
    padding: var(--plt, 6px) var(--plr, 16px) var(--plb, 6px) var(--pll, 16px);
    background: var(--pl-bg, transparent); color: var(--pl-c, inherit);
    border: var(--pl-bd, 0); border-radius: var(--pl-r, 999px); box-shadow: var(--pl-shadow, none);
    font-size: var(--pl-fs, 15px); font-weight: var(--pl-w, 500); line-height: 1.3; letter-spacing: var(--pl-ls, normal);
    text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
@media (min-width: 768px) and (max-width: 1023px) {
    .pb-pill-row { justify-content: var(--pl-j-t, var(--pl-j)); }
    .pb-pill { padding: var(--plt-t) var(--plr-t) var(--plb-t) var(--pll-t); font-size: var(--pl-fs-t); }
}
@media (max-width: 767px) {
    .pb-pill-row { justify-content: var(--pl-j-m, var(--pl-j)); }
    .pb-pill { padding: var(--plt-m) var(--plr-m) var(--plb-m) var(--pll-m); font-size: var(--pl-fs-m); }
}
.pb-pill.is-upper { text-transform: uppercase; }
.pb-pill.has-blur { -webkit-backdrop-filter: blur(var(--pl-blur)); backdrop-filter: blur(var(--pl-blur)); }
a.pb-pill:hover, a.pb-pill:focus-visible { background: var(--pl-hbg, var(--pl-bg, transparent)); color: var(--pl-hc, var(--pl-c, inherit)); }
.pb-pill-icon { position: relative; display: inline-grid; place-items: center; flex: none; font-size: var(--pl-is, 1.15em); line-height: 0; color: var(--pl-ic, currentColor); border-radius: 50%; }
.pb-pill-img { display: block; width: 1em; height: 1em; object-fit: contain; }
.pb-pill-img.is-empty { display: grid; place-items: center; font-size: .8em; line-height: 1; opacity: .6; }
.pb-pill.has-icon-bg .pb-pill-icon { background: var(--pl-ibg); padding: .28em; margin-block: -.2em; }
.pb-pill-dot { position: relative; flex: none; width: var(--rp-dot, 8px); height: var(--rp-dot, 8px); border-radius: 50%; background: var(--rp-c); }
/*
 * Rippling circles (Pill → Animate): two rings (or glows) per .rp, half a ripple apart, growing out from the dot,
 * the icon or the whole pill and fading. Rings grow their box outwards (so a pill's ring keeps the pill's shape);
 * glows are a spreading shadow. The pseudo-elements are see-through, so nothing inside is covered.
 */
:is(.rp-rings.rp, .rp-rings .rp, .rp-filled.rp, .rp-filled .rp)::before,
:is(.rp-rings.rp, .rp-rings .rp, .rp-filled.rp, .rp-filled .rp)::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
}
:is(.rp-rings.rp, .rp-rings .rp)::before, :is(.rp-rings.rp, .rp-rings .rp)::after { border: 2px solid var(--rp-c); }
@media (prefers-reduced-motion: no-preference) {
    :is(.rp-rings.rp, .rp-rings .rp)::before, :is(.rp-rings.rp, .rp-rings .rp)::after { animation: pb-rp-ring var(--rp-dur, 2s) cubic-bezier(.2, .6, .35, 1) infinite; }
    :is(.rp-filled.rp, .rp-filled .rp)::before, :is(.rp-filled.rp, .rp-filled .rp)::after { opacity: 1; animation: pb-rp-glow var(--rp-dur, 2s) cubic-bezier(.2, .6, .35, 1) infinite; }
    :is(.rp-rings.rp, .rp-rings .rp, .rp-filled.rp, .rp-filled .rp)::after { animation-delay: calc(var(--rp-dur, 2s) / -2); }
}
@keyframes pb-rp-ring {
    from { inset: 0; opacity: .85; }
    to { inset: calc(var(--rp-spread, 10px) * -1); opacity: 0; }
}
@keyframes pb-rp-glow {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rp-c) 55%, transparent); }
    to { box-shadow: 0 0 0 var(--rp-spread, 10px) color-mix(in srgb, var(--rp-c) 0%, transparent); }
}
