/* ==========================================================================
   SITE THEME LAYER, loads AFTER Bootstrap (assets/vendor/bootstrap).
   Part of the canonical core, overwritten on update.
   Per-site custom CSS belongs in /site (load it from a site template).

   Method:
   1. Bootstrap 5.3 is the component library, use its classes in page bodies
      (btn, card, row/col, accordion, form-control, badge, navbar, …).
   2. CMS Settings drive colors via CSS vars: --primary, --accent,
      --background, --text (emitted in the header). This file maps them onto
      Bootstrap's variables so .btn-primary etc. follow the theme.
   3. The `sl-` namespace is reserved for magic Bootstrap doesn't have:
      sl-snow, sl-drift, sl-hero-showcase, sl-btn-burst, sl-pill,
      sl-rating, sl-photo-card.
   ========================================================================== */

/* ---- Theme mapping: CMS settings → Bootstrap variables ---- */
:root {
    --bs-primary: var(--primary, #1d4ed8);
    --bs-primary-rgb: var(--primary-rgb, 29, 78, 216);
    --bs-link-color: var(--primary, #1d4ed8);
    --bs-link-hover-color: var(--primary, #1d4ed8);
    --bs-link-color-rgb: var(--primary-rgb, 29, 78, 216);
    --bs-link-hover-color-rgb: var(--primary-rgb, 29, 78, 216);
}
/* Bootstrap utilities resolve -rgb vars at the component level too. */
.text-primary { --bs-primary-rgb: var(--primary-rgb, 29, 78, 216); }
.bg-primary { --bs-primary-rgb: var(--primary-rgb, 29, 78, 216); }
.border-primary { border-color: var(--primary, #1d4ed8) !important; }
.link-primary { --bs-link-color-rgb: var(--primary-rgb, 29, 78, 216); --bs-link-hover-color-rgb: var(--primary-rgb, 29, 78, 216); }
body {
    --bs-body-bg: var(--background, #ffffff);
    --bs-body-color: var(--text, #111827);
    background: var(--background, #ffffff);
    color: var(--text, #111827);
}
.btn-primary {
    --bs-btn-bg: var(--primary, #1d4ed8);
    --bs-btn-border-color: var(--primary, #1d4ed8);
    --bs-btn-hover-bg: color-mix(in srgb, var(--primary, #1d4ed8) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--primary, #1d4ed8) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--primary, #1d4ed8) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--primary, #1d4ed8) 75%, #000);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary, #1d4ed8);
    --bs-btn-border-color: var(--primary, #1d4ed8);
    --bs-btn-hover-bg: var(--primary, #1d4ed8);
    --bs-btn-hover-border-color: var(--primary, #1d4ed8);
    --bs-btn-active-bg: var(--primary, #1d4ed8);
    --bs-btn-active-border-color: var(--primary, #1d4ed8);
}
/* Buttons center their label with flex so a theme's line-height or font
   swap can never push the text off center vertically. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
/* Empty and broken image slots: gray area with a photo glyph, sized so the
   layout reads the way it will with a real photo in place. The glyph is a
   CSS background so the div needs no inner markup. */
.sl-img-placeholder {
    display: block;
    width: 100%;
    min-height: 200px;
    border-radius: 10px;
    background: #e2e5e9 center / 44px auto no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/></svg>");
}
/* Same quiet treatment for map and video blocks before a place or link is
   set: the box holds the configured footprint so the layout reads true. */
.sl-map-placeholder {
    display: block;
    width: 100%;
    background: #e2e5e9 center / 44px auto no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0Z'/><circle cx='12' cy='10' r='3'/></svg>");
}
.sl-video-placeholder {
    width: 100%;
    height: 100%;
    background: #e2e5e9 center / 44px auto no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m10 8 6 4-6 4Z'/></svg>");
}
/* Accent (second theme color), Bootstrap has no slot for it, so add one. */
.btn-accent {
    --bs-btn-bg: var(--accent, #16a34a);
    --bs-btn-border-color: var(--accent, #16a34a);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--accent, #16a34a) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--accent, #16a34a) 85%, #000);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--accent, #16a34a) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--accent, #16a34a) 75%, #000);
    --bs-btn-active-color: #fff;
}
.text-accent { color: var(--accent, #16a34a) !important; }
.bg-accent { background-color: var(--accent, #16a34a) !important; color: #fff; }
.badge.bg-accent { color: #fff; }
.bg-primary-theme { background-color: var(--primary, #1d4ed8) !important; color: #fff; }

/* ---- Site chrome: legacy header (unchanged, no scope guard) ---- */
.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    margin-bottom: 2.5rem;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.site-title { font-size: 1.25rem; font-weight: 700; color: var(--primary, #1d4ed8); text-decoration: none; }
.site-nav a { margin-left: 1rem; color: inherit; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--primary, #1d4ed8); }

/* ============================================================
   CUSTOM HEADER SYSTEM
   All new rules are scoped under .custom-header so they cannot
   affect legacy sites that do not have a primary menu assigned.
   ============================================================ */

/* ---- CSS custom properties with defaults ---- */
.custom-header {
    --sl-header-bg:          transparent;
    --sl-header-text:        inherit;
    --sl-header-border:      rgba(0,0,0,0.08);
    --sl-header-h:           72px;
    --sl-header-h-mobile:    60px;
    --sl-header-px:          0px;
    --sl-header-py:          0px;
    --sl-header-bg-opacity:  1;
    --sl-header-blur:        0px;
    --sl-header-radius:      0px;
    --sl-header-z:           1000;
    --sl-nav-gap:            4px;
    --sl-nav-font-size:      15px;
    --sl-nav-font-weight:    400;
    --sl-nav-letter-spacing: 0em;
    --sl-link-color:         inherit;
    --sl-link-hover:         var(--primary, #1d4ed8);
    --sl-link-active:        var(--primary, #1d4ed8);
    --sl-link-focus:         var(--primary, #1d4ed8);
    --sl-link-transp:        inherit;
    --sl-link-scrolled:      inherit;
    --sl-sub-bg:             var(--background, #fff);
    --sl-sub-text:           inherit;
    --sl-sub-hover-bg:       rgba(0,0,0,0.04);
    --sl-sub-hover-color:    var(--primary, #1d4ed8);
    --sl-sub-radius:         8px;
    --sl-sub-min-width:      200px;
    --sl-sub-offset:         4px;
    --sl-transp-bg:          transparent;
    --sl-transp-text:        #fff;
    --sl-scrolled-bg:        var(--background, #fff);
    --sl-scrolled-text:      inherit;
    --sl-mobile-bg:          var(--background, #fff);
    --sl-mobile-text:        inherit;
    --sl-mobile-font-size:   16px;
    --sl-toggle-color:       inherit;
}

/* Base custom header chrome */
.custom-header {
    display: block;
    border-bottom: 1px solid var(--sl-header-border);
    padding: var(--sl-header-py, 0) var(--sl-header-px, 0);
    min-height: var(--sl-header-h);
    background: var(--sl-header-bg);
    color: var(--sl-header-text);
    z-index: var(--sl-header-z);
    border-radius: var(--sl-header-radius);
    margin-bottom: 0;
    /* Never let header chrome widen the page. */
    max-width: 100%;
    overflow-x: clip;
}
.custom-header .sl-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-height: var(--sl-header-h);
    /* Constrain the row so long children (brand text, nav) shrink instead of
       overflowing and pushing controls offscreen. */
    max-width: 100%;
    min-width: 0;
}
/* Every direct child slot of the inner row may shrink to zero and must not
   overflow horizontally. */
.custom-header .sl-header-inner > * { min-width: 0; }

/* Logo */
.custom-header .sl-brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; max-width: 100%; }
.custom-header .sl-brand .sl-logo-img { height: auto; display: block; max-height: 56px; max-width: 100%; }
/* Long text brands shrink and truncate rather than widening the page. */
.custom-header .sl-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary, #1d4ed8);
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Logo height + object-fit variants (driven by --sl-logo-h / logoFit class). */
.custom-header .sl-logo-img { max-height: var(--sl-logo-h, 56px); }
.custom-header .sl-logo-fit-contain .sl-logo-img { object-fit: contain; }
.custom-header .sl-logo-fit-cover   .sl-logo-img { object-fit: cover; }
.custom-header .sl-logo-fit-auto    .sl-logo-img { object-fit: fill; }

/* Transparent-state alternate logo: shown only while transparent-at-top and not
   yet scrolled. Hidden by default and once .is-scrolled. Avoids the invalid
   prefers-color-scheme coupling the earlier build used. */
.custom-header .sl-logo-transparent-img { display: none; }
.custom-header.sl-header-transparent:not(.is-scrolled) .sl-logo-transparent-img { display: block; }
.custom-header.sl-header-transparent:not(.is-scrolled) .sl-logo-default { display: none; }

/* ---- Layout presets ---- */
/* logo-left: logo left, nav right (default) */
.custom-header.sl-header-logo-left .sl-header-inner { justify-content: space-between; }
/* logo-right: logo right, nav left */
.custom-header.sl-header-logo-right .sl-header-inner { flex-direction: row-reverse; justify-content: space-between; }
/* centered-stacked: logo top-center, nav below */
.custom-header.sl-header-centered-stacked .sl-header-inner { flex-direction: column; justify-content: center; gap: 0.25rem; }
.custom-header.sl-header-centered-stacked .sl-header-logo-row { width: 100%; display: flex; justify-content: center; }
.custom-header.sl-header-centered-stacked .sl-header-nav-row  { width: 100%; display: flex; justify-content: center; }
/* centered-split: nav split around centered logo */
.custom-header.sl-header-centered-split .sl-header-inner { justify-content: space-between; }
.custom-header.sl-header-centered-split .sl-header-split-left,
.custom-header.sl-header-centered-split .sl-header-split-right { flex: 1 1 0; min-width: 0; overflow: hidden; }
.custom-header.sl-header-centered-split .sl-header-split-right { display: flex; justify-content: flex-end; }
/* logo-left-action: logo left, nav center, action right */
.custom-header.sl-header-logo-left-action .sl-header-inner { justify-content: space-between; }
.custom-header.sl-header-logo-left-action .sl-nav { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; overflow: hidden; }
.custom-header.sl-header-logo-left-action .sl-header-action { flex-shrink: 0; }
/* logo-center-action: nav-left, logo center, action right */
.custom-header.sl-header-logo-center-action .sl-header-inner { position: relative; justify-content: space-between; }
.custom-header.sl-header-logo-center-action .sl-title,
.custom-header.sl-header-logo-center-action .sl-brand { position: absolute; left: 50%; transform: translateX(-50%); }

/* ---- Split / center-action layouts: desktop halves vs. one mobile nav ----
   centered-split and logo-center-action render their menu twice: split (or
   complete-left) lists for desktop, plus a single .sl-header-mobile-nav that
   carries the toggle and every item for mobile. Desktop shows the split halves
   and hides the mobile nav; the mobile paths below invert this. */
.custom-header .sl-header-mobile-nav { display: none; }
.custom-header .sl-split-desktop { display: flex; }
.custom-header.sl-header-logo-center-action .sl-header-nav-left { flex: 1; display: flex; }

/* ---- Position states ---- */
.custom-header.sl-header-pos-sticky,
.custom-header.sl-header-sticky  { position: sticky; top: 0; z-index: var(--sl-header-z); }
.custom-header.sl-header-pos-fixed,
.custom-header.sl-header-fixed   { position: fixed; top: 0; left: 0; right: 0; z-index: var(--sl-header-z); }
body:has(.custom-header.sl-header-fixed) { padding-top: var(--sl-header-h); }
/* Off-canvas drawer panels translate off-screen when closed; clip horizontal
   overflow at the page root so they can never widen the document. */
body:has(.custom-header .sl-nav[data-mobile-mode^="drawer"]) { overflow-x: clip; }

/* Transparent-at-top: transparent until JS adds .is-scrolled */
.custom-header.sl-header-pos-transparent,
.custom-header.sl-header-transparent {
    border-bottom-color: transparent;
    background: var(--sl-transp-bg, transparent);
    color: var(--sl-transp-text, #fff);
}
.custom-header.sl-header-transparent .sl-nav-link { color: var(--sl-link-transp, inherit); }

/* Scrolled state (added by site-nav.js) */
.custom-header.sl-header-transparent.is-scrolled {
    background: var(--sl-scrolled-bg, var(--background, #fff));
    border-bottom-color: var(--sl-header-border, rgba(0,0,0,0.08));
    color: var(--sl-scrolled-text, inherit);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background var(--sl-scroll-trans, 300ms) ease,
                color var(--sl-scroll-trans, 300ms) ease;
}
.custom-header.sl-header-transparent.is-scrolled .sl-nav-link { color: var(--sl-link-scrolled, inherit); }

/* Active style: underline (default) */
.custom-header .sl-nav-link.active {
    color: var(--sl-link-active);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
/* Active style variants - toggled via data-active-style on <header> by JS or inline */
.custom-header[data-active-style="bar"]    .sl-nav-link.active { text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: calc(var(--sl-header-py,0px) - 2px); }
.custom-header[data-active-style="filled"] .sl-nav-link.active { text-decoration: none; background: rgba(0,0,0,0.07); border-radius: 6px; }
.custom-header[data-active-style="dot"]    .sl-nav-link.active::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 2px auto 0; }
.custom-header[data-active-style="bold"]   .sl-nav-link.active { text-decoration: none; font-weight: 800; }
.custom-header[data-active-style="none"]   .sl-nav-link.active { text-decoration: none; font-weight: inherit; }

/* Shadow helpers */
.custom-header.sl-shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.custom-header.sl-shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.custom-header.sl-shadow-lg { box-shadow: 0 8px 24px rgba(0,0,0,0.14); }

/* Custom box-shadow (value validated server-side by Menus::safeBoxShadow). */
.custom-header { box-shadow: var(--sl-shadow-custom, none); }

/* ---- Border position + width ---- */
.custom-header { --sl-border-width: 1px; }
.custom-header.sl-border-none   { border-top: none; border-bottom: none; }
.custom-header.sl-border-top    { border-top: var(--sl-border-width, 1px) solid var(--sl-header-border); border-bottom: none; }
.custom-header.sl-border-bottom { border-bottom: var(--sl-border-width, 1px) solid var(--sl-header-border); border-top: none; }
.custom-header.sl-border-both   {
    border-top: var(--sl-border-width, 1px) solid var(--sl-header-border);
    border-bottom: var(--sl-border-width, 1px) solid var(--sl-header-border);
}

/* ---- Sticky/scrolled header height ---- */
.custom-header.sl-header-sticky.is-scrolled,
.custom-header.sl-header-transparent.is-scrolled {
    min-height: var(--sl-header-h-sticky, var(--sl-header-h));
}
.custom-header.sl-header-sticky.is-scrolled .sl-header-inner,
.custom-header.sl-header-transparent.is-scrolled .sl-header-inner {
    min-height: var(--sl-header-h-sticky, var(--sl-header-h));
}

/* ---- Overlap content + top offset ---- */
.custom-header.sl-header-overlap {
    position: absolute;
    top: var(--sl-header-top, 0px);
    left: 0; right: 0;
    background: transparent;
    border-bottom-color: transparent;
    z-index: var(--sl-header-z);
}
.custom-header.sl-header-pos-fixed { top: var(--sl-header-top, 0px); }

/* ---- Scrolled style variants (applied in .is-scrolled state) ---- */
.custom-header.sl-scrolled-solid.is-scrolled { background: var(--sl-scrolled-bg, var(--background, #fff)); }
.custom-header.sl-scrolled-dark.is-scrolled  { background: var(--sl-scrolled-bg, #111); color: var(--sl-scrolled-text, #fff); }
.custom-header.sl-scrolled-light.is-scrolled { background: var(--sl-scrolled-bg, #fff); color: var(--sl-scrolled-text, #111); }
/* Disable the scrolled shadow when scrolledShadowEnabled is off. */
.custom-header.sl-no-scrolled-shadow.is-scrolled { box-shadow: none; }

/* ---- Menu text transform ---- */
.custom-header.sl-menu-transform-uppercase  .sl-nav-link { text-transform: uppercase; }
.custom-header.sl-menu-transform-lowercase  .sl-nav-link { text-transform: lowercase; }
.custom-header.sl-menu-transform-capitalize .sl-nav-link { text-transform: capitalize; }

/* ---- Nav link style variants ---- */
.custom-header.sl-navlink-underline .sl-nav-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.custom-header.sl-navlink-pill .sl-nav-link {
    border-radius: 999px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    transition: background 0.15s ease;
}
.custom-header.sl-navlink-pill .sl-nav-link:hover { background: rgba(0,0,0,0.06); }
.custom-header.sl-navlink-highlight .sl-nav-link { position: relative; }
.custom-header.sl-navlink-highlight .sl-nav-link:hover { background: var(--sl-link-hover, rgba(0,0,0,0.06)); color: #fff; border-radius: 6px; }
.custom-header.sl-navlink-border-bottom .sl-nav-link {
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
.custom-header.sl-navlink-border-bottom .sl-nav-link:hover { border-bottom-color: currentColor; }

/* ---- Submenu gap + arrow indicator ---- */
.custom-header .sl-nav-submenu { margin-top: var(--sl-sub-gap, 4px); }
.custom-header .sl-nav-has-children > .sl-nav-link::after {
    content: '';
    display: inline-block;
    width: 0.4em; height: 0.4em;
    margin-left: 0.4em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
}
.custom-header[data-sub-arrow="0"] .sl-nav-has-children > .sl-nav-link::after { content: none; }

/* ---- Action button colors + 44px minimum target ---- */
.custom-header .sl-header-action-btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.custom-header .sl-header-action-btn { background: var(--sl-action-bg, var(--primary, #1d4ed8)); color: var(--sl-action-color, #fff); }
.custom-header .sl-header-action-ghost { background: var(--sl-action-bg, transparent); color: var(--sl-action-color, inherit); }
/* Expanded action styles. */
.custom-header .btn-secondary.sl-header-action-btn { background: var(--sl-action-bg, var(--secondary, #64748b)); color: var(--sl-action-color, #fff); }
.custom-header .btn-outline-primary.sl-header-action-btn {
    background: transparent;
    color: var(--sl-action-bg, var(--primary, #1d4ed8));
    border: 1px solid var(--sl-action-bg, var(--primary, #1d4ed8));
}
.custom-header .btn-outline-secondary.sl-header-action-btn {
    background: transparent;
    color: var(--sl-action-bg, var(--secondary, #64748b));
    border: 1px solid var(--sl-action-bg, var(--secondary, #64748b));
}
.custom-header .sl-header-action-link {
    background: transparent;
    color: var(--sl-action-color, var(--sl-action-bg, var(--primary, #1d4ed8)));
    text-decoration: underline;
    padding: 0.25rem 0.5rem;
    border: none;
}

/* ---- Mobile toggle icon variants ---- */
.custom-header .sl-nav-toggle { width: max(44px, var(--sl-toggle-icon-size, 24px)); height: max(44px, var(--sl-toggle-icon-size, 24px)); }
.custom-header .sl-toggle-icon-grid { display: none; }
.custom-header .sl-toggle-icon-grid .sl-nav-toggle-bar,
.custom-header .sl-toggle-icon-dots .sl-nav-toggle-bar {
    width: calc(var(--sl-toggle-icon-size, 24px) / 2.6);
    height: calc(var(--sl-toggle-icon-size, 24px) / 2.6);
    border-radius: 2px;
}
.custom-header .sl-toggle-icon-dots .sl-nav-toggle-bar { border-radius: 50%; }
/* grid/dots: 2x2 layout */
.custom-header .sl-nav-toggle.sl-toggle-icon-grid,
.custom-header .sl-nav-toggle.sl-toggle-icon-dots {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
}
.custom-header .sl-nav-toggle.sl-toggle-icon-grid .sl-nav-toggle-bar,
.custom-header .sl-nav-toggle.sl-toggle-icon-dots .sl-nav-toggle-bar { flex: 0 0 calc(50% - 3px); }
/* x variant: only 3 bars, animate to an X via existing active-state rules */
.custom-header .sl-nav-toggle.sl-toggle-icon-x .sl-nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.custom-header .sl-nav-toggle.sl-toggle-icon-x .sl-nav-toggle-bar:nth-child(2) { opacity: 0; }
.custom-header .sl-nav-toggle.sl-toggle-icon-x .sl-nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Nav: scoped under .custom-header ---- */
.custom-header .sl-nav { position: relative; min-width: 0; max-width: 100%; }

.custom-header .sl-nav-toggle { display: none; }

.custom-header .sl-nav-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--sl-nav-gap, 4px);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--sl-nav-font-size, 15px);
    font-weight: var(--sl-nav-font-weight, 400);
    letter-spacing: var(--sl-nav-letter-spacing, 0em);
    font-family: var(--sl-nav-font-family, inherit);
    font-style: var(--sl-nav-font-style, normal);
    line-height: var(--sl-nav-line-height, 1.5);
}
.custom-header .sl-nav-list > li { position: relative; }

.custom-header .sl-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    /* At least 44px tall with comfortable horizontal padding for touch/click. */
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    color: var(--sl-link-color, inherit);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s, background-color 0.15s;
    white-space: nowrap;
}
.custom-header .sl-nav-link:hover {
    color: var(--sl-link-hover, var(--primary, #1d4ed8));
    background: rgba(0,0,0,0.04);
}
.custom-header .sl-nav-label {
    display: block; padding: 0.4rem 0.7rem; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: rgba(0,0,0,0.45); cursor: default;
}
/* Menu-item CTA. Design is controlled by the header-level menuCtaStyle class
   plus --sl-cta-bg / --sl-cta-color, independent of the header action button
   and without touching per-item custom classes. */
.custom-header .sl-nav-cta-link {
    background: var(--sl-cta-bg, var(--primary, #1d4ed8));
    color: var(--sl-cta-color, #fff) !important;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 700;
}
.custom-header .sl-nav-cta-link:hover {
    background: color-mix(in srgb, var(--sl-cta-bg, var(--primary, #1d4ed8)) 85%, #000);
    color: var(--sl-cta-color, #fff) !important;
}
/* CTA style variants (menuCtaStyle). */
.custom-header.sl-cta-style-button  .sl-nav-cta-link { border-radius: 8px; }
.custom-header.sl-cta-style-pill    .sl-nav-cta-link { border-radius: 999px; }
.custom-header.sl-cta-style-outline .sl-nav-cta-link {
    background: transparent;
    color: var(--sl-cta-bg, var(--primary, #1d4ed8)) !important;
    border: 1px solid var(--sl-cta-bg, var(--primary, #1d4ed8));
    border-radius: 8px;
}
.custom-header.sl-cta-style-outline .sl-nav-cta-link:hover {
    background: var(--sl-cta-bg, var(--primary, #1d4ed8));
    color: var(--sl-cta-color, #fff) !important;
}
.custom-header.sl-cta-style-text .sl-nav-cta-link {
    background: transparent;
    color: var(--sl-cta-bg, var(--primary, #1d4ed8)) !important;
    border-radius: 0;
    padding: 0.45rem 0.5rem;
}
.custom-header.sl-cta-style-text .sl-nav-cta-link:hover {
    background: transparent;
    text-decoration: underline;
}

/* Disabled item (disabled items are omitted from output; this styles any
   legacy markup that still carries the class). */
.custom-header .sl-nav-disabled { opacity: 0.45; pointer-events: none; }

/* Visibility helpers (applied per-item) */
.custom-header .sl-nav-hide-desktop { display: none !important; }

/* Expand toggle button */
.custom-header .sl-nav-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* At least 44px square so the expand control is a usable target. */
    min-width: 44px;
    min-height: 44px;
    padding: 0.2rem 0.2rem;
    margin-left: -0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.65;
    transition: opacity 0.15s;
}
.custom-header .sl-nav-expand:hover { opacity: 1; }
.custom-header .sl-nav-expand-icon {
    display: inline-block;
    width: 0.42em; height: 0.42em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-bottom: 0.16em;
}
.custom-header .sl-nav-expand[aria-expanded="true"] .sl-nav-expand-icon {
    transform: rotate(-135deg);
    margin-bottom: -0.08em;
}

/* Submenu: CSS hover/focus-within keeps it usable without JS.
   JS adds aria-expanded and removes [hidden] for click/hybrid modes. */
.custom-header .sl-nav-submenu {
    position: absolute;
    top: calc(100% + var(--sl-sub-offset, 4px) + var(--sl-sub-offset-y, 0px));
    left: var(--sl-sub-offset-x, 0px);
    min-width: var(--sl-sub-min-width, 200px);
    max-width: var(--sl-sub-max-width, none);
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    background: var(--sl-sub-bg, var(--background, #fff));
    color: var(--sl-sub-text, inherit);
    border: var(--sl-sub-border-width, 1px) solid var(--sl-sub-border-color, rgba(0,0,0,0.1));
    border-radius: var(--sl-sub-radius, 8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    backdrop-filter: blur(var(--sl-sub-blur, 0));
    z-index: 200;
    /* CSS-only visibility: hidden until hovered/focused; JS can take over */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    pointer-events: none;
}
/* No-JS: hover/focus-within shows the submenu */
.custom-header .sl-nav-list > li:hover > .sl-nav-submenu,
.custom-header .sl-nav-list > li:focus-within > .sl-nav-submenu {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
}
/* JS-enhanced: expand button removes [hidden] */
.custom-header .sl-nav-submenu:not([hidden]) {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
}

.custom-header .sl-nav-sub-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    /* At least 44px tall for touch/click targets. */
    min-height: 44px;
    padding: 0.5rem var(--sl-sub-item-px, 1rem);
    color: inherit;
    text-decoration: none;
    font-size: var(--sl-sub-item-font-size, 0.92rem);
    font-weight: var(--sl-sub-item-font-weight, inherit);
    transition: background 0.12s;
    white-space: nowrap;
}
.custom-header .sl-nav-sub-link:hover {
    background: var(--sl-sub-hover-bg, rgba(0,0,0,0.04));
    color: var(--sl-sub-hover-color, var(--primary, #1d4ed8));
}
/* Active submenu item design. */
.custom-header .sl-nav-sub-link.active {
    color: var(--sl-sub-active-color, var(--sl-link-active));
    background: var(--sl-sub-active-bg, transparent);
    font-weight: 600;
}
/* Optional per-item divider between submenu entries. */
.custom-header .sl-nav-submenu > li + li {
    border-top: 1px solid var(--sl-sub-divider, transparent);
}
/* Submenu open direction: 'up' flips the panel above the item. */
.custom-header.sl-sub-open-up .sl-nav-submenu {
    top: auto;
    bottom: calc(100% + var(--sl-sub-offset, 4px) + var(--sl-sub-offset-y, 0px));
}

/* Icon inside link */
.custom-header .sl-nav-icon { flex-shrink: 0; font-size: 1em; }

/* Focus-visible rings */
.custom-header .sl-nav-link:focus-visible,
.custom-header .sl-nav-sub-link:focus-visible,
.custom-header .sl-nav-expand:focus-visible,
.custom-header .sl-nav-toggle:focus-visible {
    outline: 2px solid var(--sl-link-focus, var(--primary, #1d4ed8));
    outline-offset: 2px;
}

/* Ancestor active */
.custom-header .sl-nav-link.ancestor-active { color: var(--sl-link-active); }

/* Action area. Keep the 44px minimum target established above; do not shrink it. */
.custom-header .sl-header-action { flex-shrink: 0; }
.custom-header .sl-header-action-btn { border-radius: 999px; font-weight: 700; white-space: nowrap; padding: 0.4rem 1.1rem; }
.custom-header .sl-header-action-ghost { background: transparent; border: 1px solid rgba(0,0,0,0.2); }
.custom-header .sl-header-action-ghost:hover { background: rgba(0,0,0,0.05); }

/* Mobile hamburger */
.custom-header .sl-nav-toggle {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    color: var(--sl-toggle-color, inherit);
}
.custom-header .sl-nav-toggle-bar {
    display: block;
    width: 22px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.custom-header .sl-nav-toggle[aria-expanded="true"] .sl-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.custom-header .sl-nav-toggle[aria-expanded="true"] .sl-nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.custom-header .sl-nav-toggle[aria-expanded="true"] .sl-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile navigation ----
   Activation is dual-path so configured breakpoints work AND there is a
   CSS-only fallback with JS disabled:
     - JS path:    site-nav.js adds .sl-nav-js to <html> and toggles
                   .sl-mobile-active on each header at its own
                   data-mobile-breakpoint. Rules below target
                   .custom-header.sl-mobile-active.
     - No-JS path: when .sl-nav-js is absent, the @media (max-width: 767.98px)
                   block re-applies the same rules by also matching
                   html:not(.sl-nav-js) .custom-header at 768px.
   Every mobile selector therefore appears twice: once for the active class and
   once inside the no-JS media query. The declarations are identical. */

/* Toggle button + desktop/mobile visibility helpers. */
.custom-header.sl-mobile-active .sl-nav-toggle { display: inline-flex; }
.custom-header.sl-mobile-active .sl-nav-hide-mobile { display: none !important; }
.custom-header.sl-mobile-active .sl-nav-hide-desktop { display: flex !important; }
.custom-header.sl-mobile-active .sl-nav-mobile-only { display: block; }

/* Split / center-action mobile swap: hide the desktop halves, show the single
   complete mobile nav (which carries the toggle and all items). */
.custom-header.sl-mobile-active .sl-split-desktop { display: none !important; }
.custom-header.sl-mobile-active .sl-header-mobile-nav { display: block; flex: 1 1 0; min-width: 0; }

/* Compact-header safety: remove desktop absolute/flex assumptions in mobile mode
   so nothing is positioned offscreen or forced to a fixed width. The inner row
   becomes a simple space-between bar (logo + toggle) that cannot overflow. */
.custom-header.sl-mobile-active .sl-header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: static;
}
.custom-header.sl-mobile-active .sl-nav {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    overflow: visible;
}
.custom-header.sl-mobile-active .sl-header-inner > .sl-brand,
.custom-header.sl-mobile-active .sl-header-inner > .sl-title {
    display: flex;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 44px;
    min-height: 44px;
    align-items: center;
    overflow: hidden;
}
.custom-header.sl-mobile-active .sl-title {
    display: inline-flex;
}
.custom-header.sl-mobile-active .sl-header-mobile-nav {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    overflow: visible;
}
.custom-header.sl-mobile-active .sl-header-mobile-nav .sl-nav {
    width: 44px;
}
.custom-header.sl-mobile-active.sl-header-logo-center-action .sl-title,
.custom-header.sl-mobile-active.sl-header-logo-center-action .sl-brand {
    position: static;
    left: auto;
    transform: none;
}
.custom-header.sl-mobile-active.sl-header-centered-stacked .sl-header-inner { flex-direction: row; }
/* Hide desktop action slots in the compact header; the configured action is
   rendered inside the mobile panel instead (gated by mobileActionShow). */
.custom-header.sl-mobile-active .sl-header-action { display: none !important; }

/* Mobile-only extras (phone/action) hidden on desktop. */
.custom-header .sl-nav-mobile-only { display: none; }

/* Hide the logo on mobile when mobileShowLogo is off. */
.custom-header.sl-mobile-active.sl-mobile-hide-logo .sl-brand,
.custom-header.sl-mobile-active.sl-mobile-hide-logo .sl-title { display: none; }

/* Hidden/collapsed nav list for dropdown + drawer modes. */
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list,
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode^="drawer"]  .sl-nav-list {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list.is-open,
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode^="drawer"]  .sl-nav-list.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Dropdown mode panel. */
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    max-width: 94vw;
    background: var(--sl-mobile-bg, var(--background, #fff));
    color: var(--sl-mobile-text, inherit);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.14);
    z-index: 500;
    padding: var(--sl-mobile-panel-pad, 8px) 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list.is-open {
    transform: none;
    transition-delay: 0s;
}
.custom-header.sl-toggle-left.sl-mobile-active .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list {
    right: auto;
    left: 0;
}

/* Drawer modes. */
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="drawer-right"] .sl-nav-list,
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="drawer-left"]  .sl-nav-list {
    position: fixed;
    top: 0; bottom: 0;
    width: min(var(--sl-mobile-panel-w, 300px), 85vw);
    flex-direction: column;
    align-items: stretch;
    background: var(--sl-mobile-bg, var(--background, #fff));
    color: var(--sl-mobile-text, inherit);
    border-left: 1px solid rgba(0,0,0,0.1);
    box-shadow: -6px 0 24px rgba(0,0,0,0.12);
    z-index: 900;
    padding: 4rem var(--sl-mobile-panel-pad, 0px) 2rem;
    overflow-y: auto;
    transition: none;
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="drawer-right"] .sl-nav-list {
    right: 0;
    transform: translateX(105%);
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="drawer-left"] .sl-nav-list {
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(0,0,0,0.1);
    box-shadow: 6px 0 24px rgba(0,0,0,0.12);
    transform: translateX(-105%);
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="drawer-right"] .sl-nav-list.is-open,
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="drawer-left"]  .sl-nav-list.is-open {
    transform: translateX(0);
}
/* Drawer backdrop, gated by data-mobile-overlay. */
.custom-header.sl-mobile-active[data-mobile-overlay="1"] .sl-nav[data-mobile-mode^="drawer"].is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--sl-mobile-overlay, rgba(0,0,0,0.38));
    z-index: 899;
}

/* Fullscreen mode. */
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="fullscreen"] .sl-nav-list {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--sl-mobile-bg, var(--primary, #1d4ed8));
    color: var(--sl-mobile-text, #fff);
    z-index: 950;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="fullscreen"] .sl-nav-list.is-open {
    transform: translateY(0);
    transition-delay: 0s;
}
.custom-header.sl-mobile-active .sl-nav[data-mobile-mode="fullscreen"] .sl-nav-link {
    color: inherit;
    font-size: var(--sl-mobile-font-size, 1.4rem);
    padding: 0.75rem 1rem;
}

/* Common mobile overrides. */
.custom-header.sl-mobile-active .sl-nav-list .sl-nav-link { padding: 0.65rem 1rem; width: 100%; min-height: 44px; }
.custom-header.sl-mobile-active .sl-nav-link {
    font-size: var(--sl-mobile-font-size, 16px);
    font-weight: var(--sl-mobile-font-weight, inherit);
    color: var(--sl-mobile-link-color, inherit);
    /* In the narrow mobile panel, long labels wrap instead of overflowing. */
    white-space: normal;
    overflow-wrap: anywhere;
}
.custom-header.sl-mobile-active .sl-nav-sub-link {
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 44px;
}
/* Mobile panels and their lists must never exceed the viewport width. */
.custom-header.sl-mobile-active .sl-nav-list,
.custom-header.sl-mobile-active .sl-nav-submenu { max-width: 100%; }
.custom-header.sl-mobile-active .sl-nav-link:hover {
    color: var(--sl-mobile-link-hover-color, var(--sl-link-hover, var(--primary, #1d4ed8)));
}
.custom-header.sl-mobile-active .sl-nav-link.active {
    color: var(--sl-mobile-link-active-color, var(--sl-link-active, var(--primary, #1d4ed8)));
}
/* Mobile per-item dividers and submenu indent. */
.custom-header.sl-mobile-active .sl-nav-list > li + li {
    border-top: 1px solid var(--sl-mobile-divider, transparent);
}
.custom-header.sl-mobile-active .sl-nav-list > .sl-nav-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
}
.custom-header.sl-mobile-active .sl-nav-list > .sl-nav-has-children > .sl-nav-link {
    grid-column: 1;
    width: auto;
    min-width: 0;
}
.custom-header.sl-mobile-active .sl-nav-list > .sl-nav-has-children > .sl-nav-expand {
    grid-column: 2;
    margin-left: 0;
}
.custom-header.sl-mobile-active .sl-nav-list > .sl-nav-has-children > .sl-nav-submenu {
    grid-column: 1 / -1;
    width: 100%;
}
/* Mobile logo alignment. */
.custom-header.sl-mobile-active.sl-mobile-logo-center .sl-brand,
.custom-header.sl-mobile-active.sl-mobile-logo-center .sl-title { margin-left: auto; margin-right: auto; }
.custom-header.sl-mobile-active.sl-mobile-logo-right .sl-brand,
.custom-header.sl-mobile-active.sl-mobile-logo-right .sl-title { margin-left: auto; }

/* Submenus inline on mobile. */
.custom-header.sl-mobile-active .sl-nav-submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.07);
    border-radius: 0;
    padding: 0;
    background: rgba(0,0,0,0.03);
    visibility: hidden;
    opacity: 0;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
}
.custom-header.sl-mobile-active .sl-nav-list > li:hover > .sl-nav-submenu,
.custom-header.sl-mobile-active .sl-nav-list > li:focus-within > .sl-nav-submenu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
.custom-header.sl-mobile-active .sl-nav-submenu:not([hidden]) {
    max-height: 600px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition-delay: 0s;
}
.custom-header.sl-mobile-active .sl-nav-sub-link { padding-left: calc(1rem + var(--sl-mobile-indent, 16px)); }

/* ---- No-JS fallback: reapply the mobile rules at 768px only when JS has not
   taken control. Selectors mirror the .sl-mobile-active rules above. ---- */
@media (max-width: 767.98px) {
    html:not(.sl-nav-js) .custom-header .sl-nav-toggle { display: inline-flex; }
    html:not(.sl-nav-js) .custom-header .sl-nav-hide-mobile { display: none !important; }
    html:not(.sl-nav-js) .custom-header .sl-nav-hide-desktop { display: flex !important; }
    html:not(.sl-nav-js) .custom-header .sl-split-desktop { display: none !important; }
    html:not(.sl-nav-js) .custom-header .sl-header-mobile-nav { display: block; flex: 1 1 0; min-width: 0; }
    html:not(.sl-nav-js) .custom-header .sl-nav,
    html:not(.sl-nav-js) .custom-header .sl-header-mobile-nav {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        overflow: visible;
    }
    html:not(.sl-nav-js) .custom-header .sl-header-inner > .sl-brand,
    html:not(.sl-nav-js) .custom-header .sl-header-inner > .sl-title {
        display: flex;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 44px;
        min-height: 44px;
        align-items: center;
        overflow: hidden;
    }
    html:not(.sl-nav-js) .custom-header .sl-title { display: inline-flex; }
    html:not(.sl-nav-js) .custom-header .sl-header-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: static;
    }
    html:not(.sl-nav-js) .custom-header.sl-header-logo-center-action .sl-title,
    html:not(.sl-nav-js) .custom-header.sl-header-logo-center-action .sl-brand {
        position: static;
        left: auto;
        transform: none;
    }
    html:not(.sl-nav-js) .custom-header.sl-header-centered-stacked .sl-header-inner { flex-direction: row; }
    html:not(.sl-nav-js) .custom-header .sl-header-action { display: none !important; }
    html:not(.sl-nav-js) .custom-header .sl-nav-mobile-only { display: block; }
    html:not(.sl-nav-js) .custom-header.sl-mobile-hide-logo .sl-brand,
    html:not(.sl-nav-js) .custom-header.sl-mobile-hide-logo .sl-title { display: none; }

    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list,
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode^="drawer"]  .sl-nav-list {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list.is-open,
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode^="drawer"]  .sl-nav-list.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        flex-direction: column;
        align-items: stretch;
        min-width: 220px;
        max-width: 94vw;
        background: var(--sl-mobile-bg, var(--background, #fff));
        color: var(--sl-mobile-text, inherit);
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 10px;
        box-shadow: 0 10px 32px rgba(0,0,0,0.14);
        z-index: 500;
        padding: var(--sl-mobile-panel-pad, 8px) 0;
        transform: translateY(-4px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list.is-open {
        transform: none;
        transition-delay: 0s;
    }
    html:not(.sl-nav-js) .custom-header.sl-toggle-left .sl-nav[data-mobile-mode="dropdown"] .sl-nav-list {
        right: auto;
        left: 0;
    }

    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="drawer-right"] .sl-nav-list,
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="drawer-left"]  .sl-nav-list {
        position: fixed;
        top: 0; bottom: 0;
        width: min(var(--sl-mobile-panel-w, 300px), 85vw);
        flex-direction: column;
        align-items: stretch;
        background: var(--sl-mobile-bg, var(--background, #fff));
        color: var(--sl-mobile-text, inherit);
        border-left: 1px solid rgba(0,0,0,0.1);
        box-shadow: -6px 0 24px rgba(0,0,0,0.12);
        z-index: 900;
        padding: 4rem var(--sl-mobile-panel-pad, 0px) 2rem;
        overflow-y: auto;
        transition: none;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="drawer-right"] .sl-nav-list {
        right: 0;
        transform: translateX(105%);
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="drawer-left"] .sl-nav-list {
        left: 0;
        border-left: none;
        border-right: 1px solid rgba(0,0,0,0.1);
        box-shadow: 6px 0 24px rgba(0,0,0,0.12);
        transform: translateX(-105%);
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="drawer-right"] .sl-nav-list.is-open,
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="drawer-left"]  .sl-nav-list.is-open {
        transform: translateX(0);
    }
    html:not(.sl-nav-js) .custom-header[data-mobile-overlay="1"] .sl-nav[data-mobile-mode^="drawer"].is-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: var(--sl-mobile-overlay, rgba(0,0,0,0.38));
        z-index: 899;
    }

    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="fullscreen"] .sl-nav-list {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--sl-mobile-bg, var(--primary, #1d4ed8));
        color: var(--sl-mobile-text, #fff);
        z-index: 950;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="fullscreen"] .sl-nav-list.is-open {
        transform: translateY(0);
        transition-delay: 0s;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav[data-mobile-mode="fullscreen"] .sl-nav-link {
        color: inherit;
        font-size: var(--sl-mobile-font-size, 1.4rem);
        padding: 0.75rem 1rem;
    }

    html:not(.sl-nav-js) .custom-header .sl-nav-list .sl-nav-link { padding: 0.65rem 1rem; width: 100%; min-height: 44px; }
    html:not(.sl-nav-js) .custom-header .sl-nav-link {
        font-size: var(--sl-mobile-font-size, 16px);
        font-weight: var(--sl-mobile-font-weight, inherit);
        white-space: normal;
        overflow-wrap: anywhere;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-sub-link {
        white-space: normal;
        overflow-wrap: anywhere;
        min-height: 44px;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list,
    html:not(.sl-nav-js) .custom-header .sl-nav-submenu { max-width: 100%; }

    html:not(.sl-nav-js) .custom-header .sl-nav-submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.07);
        border-radius: 0;
        padding: 0;
        background: rgba(0,0,0,0.03);
        visibility: hidden;
        opacity: 0;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0s linear 0.25s;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list > li:hover > .sl-nav-submenu,
    html:not(.sl-nav-js) .custom-header .sl-nav-list > li:focus-within > .sl-nav-submenu {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-submenu:not([hidden]) {
        max-height: 600px;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transition-delay: 0s;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-sub-link { padding-left: calc(1rem + var(--sl-mobile-indent, 16px)); }
    html:not(.sl-nav-js) .custom-header .sl-nav-link { color: var(--sl-mobile-link-color, inherit); }
    html:not(.sl-nav-js) .custom-header .sl-nav-link:hover {
        color: var(--sl-mobile-link-hover-color, var(--sl-link-hover, var(--primary, #1d4ed8)));
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-link.active {
        color: var(--sl-mobile-link-active-color, var(--sl-link-active, var(--primary, #1d4ed8)));
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list > li + li {
        border-top: 1px solid var(--sl-mobile-divider, transparent);
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list > .sl-nav-has-children {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        width: 100%;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list > .sl-nav-has-children > .sl-nav-link {
        grid-column: 1;
        width: auto;
        min-width: 0;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list > .sl-nav-has-children > .sl-nav-expand {
        grid-column: 2;
        margin-left: 0;
    }
    html:not(.sl-nav-js) .custom-header .sl-nav-list > .sl-nav-has-children > .sl-nav-submenu {
        grid-column: 1 / -1;
        width: 100%;
    }
    html:not(.sl-nav-js) .custom-header.sl-mobile-logo-center .sl-brand,
    html:not(.sl-nav-js) .custom-header.sl-mobile-logo-center .sl-title { margin-left: auto; margin-right: auto; }
    html:not(.sl-nav-js) .custom-header.sl-mobile-logo-right .sl-brand,
    html:not(.sl-nav-js) .custom-header.sl-mobile-logo-right .sl-title { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .custom-header .sl-nav-toggle-bar,
    .custom-header .sl-nav-expand-icon,
    .custom-header .sl-nav-submenu,
    .custom-header .sl-nav-list { transition: none !important; animation: none !important; }
    .custom-header.sl-header-transparent.is-scrolled { transition: none !important; }
}

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
}

/* ---- Legacy template hooks (default/landing/sidebar templates) ---- */
.hero {
    background: var(--primary, #1d4ed8);
    color: #fff;
    padding: 4rem 0;
    margin: -2.5rem 0 2.5rem;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero-tagline { font-size: 1.15rem; opacity: 0.9; }
.layout-sidebar { display: flex; gap: 2.5rem; align-items: flex-start; flex-wrap: wrap; }
.layout-sidebar .content-main { flex: 3 1 420px; min-width: 0; }
.layout-sidebar .content-aside { flex: 1 1 200px; }
.content-aside ul { list-style: none; padding-left: 0; }
.content-aside li { margin-bottom: 0.5rem; }

.page-body { margin-bottom: 3rem; }
.page-body img { max-width: 100%; height: auto; }

/* ==========================================================================
   SL MAGIC, effects Bootstrap doesn't ship. Safe on any Bootstrap section.
   ========================================================================== */

/* Falling snow, CSS-only, two parallax layers, respects reduced-motion. */
.sl-snow { position: relative; overflow: hidden; }
.sl-snow > * { position: relative; z-index: 2; }
.sl-snow::before,
.sl-snow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9) 50%, transparent 51%),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.8) 50%, transparent 51%),
        radial-gradient(3px 3px at 220px 140px, rgba(255,255,255,0.9) 50%, transparent 51%),
        radial-gradient(2px 2px at 300px 40px, rgba(255,255,255,0.7) 50%, transparent 51%),
        radial-gradient(3px 3px at 80px 190px, rgba(255,255,255,0.8) 50%, transparent 51%),
        radial-gradient(2px 2px at 360px 220px, rgba(255,255,255,0.9) 50%, transparent 51%);
    background-size: 400px 240px;
    animation: sl-snowfall 9s linear infinite;
}
.sl-snow::after {
    background-size: 300px 180px;
    opacity: 0.6;
    animation-duration: 15s;
    animation-direction: reverse;
    filter: blur(1px);
}
@keyframes sl-snowfall {
    from { background-position: 0 0; }
    to   { background-position: 40px 480px; }
}
@media (prefers-reduced-motion: reduce) {
    .sl-snow::before, .sl-snow::after { animation: none; }
}

/* Showcase hero, bold copy left, photo card right, optional center figure. */
.sl-hero-showcase {
    /* Solid fallback first for browsers without color-mix(); gradient below. */
    background: var(--primary, #b91c1c);
    background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--primary, #b91c1c) 78%, #000 0%) 0%, color-mix(in srgb, var(--primary, #b91c1c) 82%, #000 18%) 100%);
    border-radius: 12px;
    padding: 3.5rem 3rem 6.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    margin-bottom: 2.5rem;
}
.sl-hero-showcase h1 { color: #fff; font-size: 2.6rem; line-height: 1.15; font-weight: 800; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.sl-hero-showcase .lead { color: rgba(255,255,255,0.95); }
.sl-hero-grid { display: grid; grid-template-columns: 1.15fr 0.6fr 1.1fr; gap: 1rem; align-items: center; position: relative; z-index: 2; }
.sl-hero-copy { text-align: left; }
.sl-hero-figure { align-self: end; margin-bottom: -6.5rem; position: relative; z-index: 3; }
.sl-hero-figure img { display: block; width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35)); }
@media (max-width: 900px) {
    .sl-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .sl-hero-copy { text-align: center; }
    .sl-hero-figure { display: none; }
    .sl-hero-showcase { padding: 2.5rem 1.5rem 5rem; }
    .sl-hero-showcase h1 { font-size: 2rem; }
}

/* Star rating row */
.sl-rating { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.sl-rating .sl-stars { color: #fbbf24; font-size: 1.3rem; letter-spacing: 2px; }
.sl-rating small { font-weight: 400; opacity: 0.85; }

/* Photo card, white-bordered tilted polaroid-style frame */
.sl-photo-card { background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.35); transform: rotate(2deg); }
.sl-photo-card img { display: block; width: 100%; border-radius: 8px; }

/* Burst CTA, high-energy pill with dashed inner border */
.sl-btn-burst, a.sl-btn-burst {
    display: inline-block; background: #fbbf24; color: #7f1d1d; font-weight: 800; font-size: 1.15rem;
    text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none;
    padding: 0.9rem 2.2rem; border-radius: 999px; border: 2px solid #fbbf24;
    box-shadow: inset 0 0 0 3px #fbbf24, inset 0 0 0 4px rgba(127,29,29,0.9), 0 6px 18px rgba(0,0,0,0.3);
    outline: 2px dashed #7f1d1d; outline-offset: -8px;
}
.sl-btn-burst:hover { transform: scale(1.03); color: #7f1d1d; }
.sl-btn-burst:focus-visible, .sl-pill:focus-visible {
    outline: 3px solid #fff; outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(0,0,0,0.45);
}

/* Soft translucent pill (for colored backgrounds) */
.sl-pill, a.sl-pill {
    display: inline-block; background: rgba(255,255,255,0.16); color: #fff; text-decoration: none;
    padding: 0.55rem 1.4rem; border-radius: 999px; font-weight: 600; border: 1px solid rgba(255,255,255,0.35);
}
.sl-pill:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Snow drift, soft white mounds along the bottom edge.
   Shares an element with sl-snow: top:auto + animation:none neutralize
   sl-snow's ::before there. */
.sl-drift::before {
    content: ""; position: absolute; top: auto; left: -5%; right: -5%; bottom: -3.5rem; height: 7rem; z-index: 2;
    animation: none; filter: none; opacity: 1;
    background:
        radial-gradient(55% 100% at 12% 0%, #fff 48%, transparent 50%),
        radial-gradient(60% 110% at 38% 12%, #fff 48%, transparent 50%),
        radial-gradient(55% 100% at 65% 0%, #fff 48%, transparent 50%),
        radial-gradient(60% 110% at 90% 10%, #fff 48%, transparent 50%),
        linear-gradient(transparent 28%, #fff 28%);
    pointer-events: none;
}

/* Accordion follows the theme instead of Bootstrap blue. */
.accordion {
    --bs-accordion-active-bg: color-mix(in srgb, var(--primary, #1d4ed8) 10%, #fff);
    --bs-accordion-active-color: var(--primary, #1d4ed8);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--primary, #1d4ed8) 25%, transparent);
}

/* Interactive Feature Tabs advanced builder block. */
.sl-feature-tabs {
    --sl-ft-active: var(--primary, #1d4ed8);
    --sl-ft-active-text: #fff;
    --sl-ft-card-bg: #fff;
    --sl-ft-card-text: var(--text, #111827);
    --sl-ft-icon: var(--accent, #16a34a);
    --sl-ft-icon-bg: color-mix(in srgb, var(--accent, #16a34a) 12%, #fff);
    --sl-ft-panel-bg: #fff;
    --sl-ft-panel-text: var(--text, #111827);
    --sl-ft-check: var(--accent, #16a34a);
    --sl-ft-image-width: 40%;
    --sl-ft-image-pos: center;
}
.sl-feature-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
    margin-bottom: 2rem;
}
.sl-feature-tab {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 148px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 18px 14px;
    border: 1px solid color-mix(in srgb, var(--sl-ft-card-text) 12%, transparent);
    border-radius: 16px;
    background: var(--sl-ft-card-bg);
    color: var(--sl-ft-card-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 7px 22px rgba(16, 24, 40, 0.07);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.sl-feature-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08), 0 12px 28px rgba(16, 24, 40, 0.1);
}
.sl-feature-tab:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sl-ft-active) 38%, transparent);
    outline-offset: 3px;
}
.sl-feature-tab.active {
    border-color: var(--sl-ft-item-active, var(--sl-ft-active));
    background: var(--sl-ft-item-active, var(--sl-ft-active));
    color: var(--sl-ft-active-text);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--sl-ft-item-active, var(--sl-ft-active)) 25%, transparent);
}
.sl-feature-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: var(--sl-ft-item-active, var(--sl-ft-active));
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}
.sl-feature-tab-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sl-ft-icon-bg);
    color: var(--sl-ft-icon);
}
.sl-feature-tab.active .sl-feature-tab-icon {
    background: var(--sl-ft-icon);
    color: #fff;
}
.sl-feature-tab-title {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.25;
}
.sl-feature-tab-text {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.64;
}
.sl-feature-tab.active .sl-feature-tab-text { opacity: 0.82; }
.sl-feature-panels {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--sl-ft-panel-text) 9%, transparent);
    border-radius: 20px;
    background: var(--sl-ft-panel-bg);
    color: var(--sl-ft-panel-text);
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 38px rgba(16, 24, 40, 0.1);
}
.sl-feature-panel-grid {
    display: grid;
    min-height: 450px;
    grid-template-columns: var(--sl-ft-image-width) minmax(0, 1fr);
}
.sl-feature-image-right { grid-template-columns: minmax(0, 1fr) var(--sl-ft-image-width); }
.sl-feature-image-right .sl-feature-content { order: 1; }
.sl-feature-image-right .sl-feature-media { order: 2; }
.sl-feature-media {
    position: relative;
    min-height: 450px;
    overflow: hidden;
    background: color-mix(in srgb, var(--sl-ft-panel-text) 5%, var(--sl-ft-panel-bg));
}
.sl-feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: var(--sl-ft-image-pos);
}
.sl-feature-media-empty {
    min-height: 320px;
    background: #e2e5e9 center / 44px auto no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2ac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/></svg>");
}
.sl-feature-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 4.4vw, 4.5rem);
}
.sl-feature-content h3 {
    margin: 0 0 1rem;
    color: inherit;
    font-size: clamp(1.65rem, 2.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
}
.sl-feature-copy {
    max-width: 62ch;
    color: color-mix(in srgb, var(--sl-ft-panel-text) 72%, transparent);
    font-size: 1rem;
    line-height: 1.65;
}
.sl-feature-copy > :last-child { margin-bottom: 0; }
.sl-feature-cta {
    min-height: 44px;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
}
.sl-feature-lists {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.sl-feature-list h4 {
    margin: 0 0 0.8rem;
    color: inherit;
    font-size: 1rem;
    font-weight: 800;
}
.sl-feature-list ul {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sl-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: color-mix(in srgb, var(--sl-ft-panel-text) 76%, transparent);
    font-size: 0.9rem;
    line-height: 1.4;
}
.sl-feature-list li svg {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: var(--sl-ft-check);
}
@media (max-width: 767.98px) {
    .sl-feature-tab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 1.5rem;
    }
    .sl-feature-tab {
        min-height: 178px;
        padding: 20px 12px;
    }
    .sl-feature-tab-title { font-size: 0.88rem; }
    .sl-feature-tab-text { font-size: 0.76rem; }
    .sl-feature-panel-grid,
    .sl-feature-image-right {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
    }
    .sl-feature-panel-grid .sl-feature-media { order: 1; }
    .sl-feature-panel-grid .sl-feature-content { order: 2; }
    .sl-feature-media,
    .sl-feature-media img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
    .sl-feature-content {
        padding: 2rem;
    }
    .sl-feature-content h3 {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }
    .sl-feature-lists {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        margin-top: 2.25rem;
    }
}
@media (max-width: 380px) {
    .sl-feature-tab-grid { gap: 10px; }
    .sl-feature-tab { min-height: 168px; padding-inline: 9px; }
    .sl-feature-content { padding: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sl-feature-tab { transition: none; }
    .sl-feature-tab:hover { transform: none; }
}

/* Service Area City CTA advanced builder block. */
.sl-service-area-cta {
    --sl-sa-chip-bg: rgba(255, 255, 255, 0.11);
    --sl-sa-chip-text: #fff;
    --sl-sa-chip-icon: var(--accent, #f97316);
    --sl-sa-chip-border: rgba(255, 255, 255, 0.14);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-radius: 24px;
    background-color: #19274d;
    color: #fff;
    box-shadow: 0 2px 5px rgba(16, 24, 40, 0.08), 0 18px 38px rgba(16, 24, 40, 0.16);
}
.sl-service-area-city-list {
    display: flex;
    max-width: 980px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.sl-service-area-city-list li {
    display: flex;
    min-width: 0;
}
.sl-service-area-city-list li > a,
.sl-service-area-city-list li > span {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--sl-sa-chip-border);
    border-radius: 999px;
    background: var(--sl-sa-chip-bg);
    color: var(--sl-sa-chip-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.sl-service-area-city-list li > a:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--sl-sa-chip-icon) 52%, var(--sl-sa-chip-border));
    background: color-mix(in srgb, var(--sl-sa-chip-bg) 78%, #fff 22%);
    color: var(--sl-sa-chip-text);
}
.sl-service-area-city-list li > a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--sl-sa-chip-icon) 58%, #fff);
    outline-offset: 3px;
}
.sl-service-area-city-list svg {
    flex: 0 0 auto;
    color: var(--sl-sa-chip-icon);
}
.sl-service-area-actions {
    margin-top: 0;
}
.sl-service-area-city-list + .sl-service-area-actions {
    margin-top: 2.25rem;
}
.sl-service-area-actions > .d-flex {
    justify-content: center;
    gap: 12px !important;
}
.sl-service-area-actions .btn {
    min-width: 185px;
    min-height: 46px;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 750;
}
@media (max-width: 767.98px) {
    .sl-service-area-cta {
        padding: 2.25rem 1.5rem;
        border-radius: 20px;
    }
    .sl-service-area-city-list {
        gap: 10px;
    }
    .sl-service-area-city-list li > a,
    .sl-service-area-city-list li > span {
        min-height: 44px;
        padding: 0.62rem 1rem;
        font-size: 0.88rem;
    }
    .sl-service-area-city-list + .sl-service-area-actions {
        margin-top: 2.4rem;
    }
    .sl-service-area-actions > .d-flex {
        display: grid !important;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px !important;
    }
    .sl-service-area-actions .btn {
        width: 100%;
        min-height: 56px;
        padding: 0.9rem 1.25rem;
        font-size: 1rem;
    }
}
@media (max-width: 380px) {
    .sl-service-area-cta {
        padding-inline: 1.1rem;
    }
    .sl-service-area-city-list {
        gap: 9px 8px;
    }
    .sl-service-area-city-list li > a,
    .sl-service-area-city-list li > span {
        padding-inline: 0.82rem;
        font-size: 0.83rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sl-service-area-city-list li > a {
        transition: none;
    }
    .sl-service-area-city-list li > a:hover {
        transform: none;
    }
}

/* ---- Builder block effects (entrance animations + hovers) ----------------
   sl-fx is added to <html> by the inline observer script only when JS +
   IntersectionObserver are available, so content is never hidden without it. */
html.sl-fx .sl-anim { opacity: 0; transition: opacity 0.55s ease-out, transform 0.55s ease-out; transition-delay: var(--sl-delay, 0ms); }
html.sl-fx .sl-anim-fade-up { transform: translateY(26px); }
html.sl-fx .sl-anim-fade-down { transform: translateY(-26px); }
html.sl-fx .sl-anim-fade-left { transform: translateX(26px); }
html.sl-fx .sl-anim-fade-right { transform: translateX(-26px); }
html.sl-fx .sl-anim-zoom { transform: scale(0.94); }
html.sl-fx .sl-anim.sl-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.sl-fx .sl-anim { opacity: 1; transform: none; transition: none; }
}
/* Click-to-play YouTube facade (Settings > Speed > Fast video embeds). */
.sl-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.sl-yt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sl-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66px; height: 46px; border-radius: 12px; background: rgba(0, 0, 0, 0.72); color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.15s ease, transform 0.15s ease; }
.sl-yt:hover .sl-yt-play, .sl-yt:focus-visible .sl-yt-play { background: var(--primary, #1d4ed8); transform: translate(-50%, -50%) scale(1.06); }
.sl-yt:focus-visible { outline: 3px solid var(--primary, #1d4ed8); outline-offset: 2px; }

.sl-hov-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sl-hov-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); }
.sl-hov-grow { transition: transform 0.2s ease; }
.sl-hov-grow:hover { transform: scale(1.03); }
.sl-hov-glow { transition: box-shadow 0.2s ease; }
.sl-hov-glow:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #1d4ed8) 30%, transparent), 0 12px 28px color-mix(in srgb, var(--primary, #1d4ed8) 35%, transparent); }

/* Form-block honeypot: invisible to people, tempting to bots. */
.sl-lead-form .sl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sl-lead-form { position: relative; }
