/**
 * State Landing Base Theme Styles
 * Uses CSS Custom Properties from theme.json and WordPress core
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
    /* Use WordPress native custom properties from theme.json where available */
    /* Colors: --wp--preset--color--{slug} (primary, accent, white, text, etc.) */
    /* Spacing: --wp--preset--spacing--{slug} (xs, sm, md, lg, xl, 2xl) */
    /* Layout: --wp--custom--layout--content-size, --wp--custom--layout--wide-size */
    
    /* Custom properties for values not in theme.json */
    --slb-content-max-width: var(--wp--custom--layout--content-size, 90rem);
    --slb-content-padding: 30px;
    
    /* Additional colors not in theme.json palette */
    --slb-color-primary-dark: var(--wp--preset--color--primary-dark, #005c9d);
    --slb-color-accent-text: #000;
    --slb-color-bg-light: var(--wp--preset--color--light-accent, var(--wp--preset--color--light-blue, #ECF9FF));
    --slb-color-text-dark: var(--wp--preset--color--neutral-dark, #333333);
    --slb-color-text-light: var(--wp--preset--color--neutral-dark, #333333);
    
    /* Button styles */
    --slb-button-border-radius: 4px;
    --slb-button-padding: 10px 20px;
    --slb-button-min-height: 44px;
    --slb-button-border-width: 2px;
    /* Borders (branding) */
    --slb-border-color: var(--wp--preset--color--neutral, #5f5e5e);
}

/* Responsive: content padding on mobile */
@media (max-width: 768px) {
    :root {
        --slb-content-padding: 24px;
    }
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: var(--wp--preset--spacing--sm, 1rem);
}

/* ==========================================================================
   Layout
   ========================================================================== */
/* Full-width sections with constrained content */
section,
main,
header,
header .wp-block-group {
    width: 100%;
    max-width: 100%;
}

/* Footer: wrapper is full-width (no constrained layout), gets background; inner stays constrained */
.slb-footer-wrapper {
    width: 100%;
    background-color: #00406e;
    color: #fff;
    font-size: 14px;
    padding: var(--wp--preset--spacing--lg, 2rem) 0;
}
.slb-footer-wrapper,
.slb-footer-wrapper a,
.slb-footer-wrapper .wp-block-navigation a,
.slb-footer-wrapper .wp-block-shortcode {
    color: #fff;
}
footer.slb-footer {
    margin: 0;
    padding: 0 var(--wp--preset--spacing--sm, 1rem);
}
footer.slb-footer .slb-footer-inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: var(--slb-content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}
footer.slb-footer .slb-footer-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}
@media (min-width: 769px) {
    footer.slb-footer .slb-footer-primary {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 2.5rem;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }
}
@media (min-width: 769px) {
    footer.slb-footer .slb-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
}
footer.slb-footer .slb-footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0;
}
@media (min-width: 769px) {
    footer.slb-footer .slb-footer-logos {
        justify-content: flex-start;
    }
}
footer.slb-footer .slb-footer-logo-img {
    height: 42px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}
footer.slb-footer .wp-block-navigation,
footer.slb-footer .slb-footer-menu {
    margin: 0;
}
footer.slb-footer .slb-footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    list-style: none;
    margin: 0;
    padding: 0;
}
footer.slb-footer .slb-footer-menu a,
footer.slb-footer .wp-block-navigation a,
footer.slb-footer .wp-block-navigation a:hover,
footer.slb-footer .wp-block-navigation a:focus {
    color: #fff;
    text-decoration: underline;
}
footer.slb-footer .wp-block-shortcode {
    margin: 0;
    color: #fff;
}
/* Fallback: empty footer (no slb-footer class) */
footer.wp-block-group:not(.slb-footer) {
    padding: 0;
    margin: 0;
    min-height: 0;
}
/* Collapse empty paragraph (or other blocks) left in footer from Site Editor */
footer p:empty,
footer .wp-block-paragraph:empty,
footer .wp-block-paragraph:has(> br:only-child) {
    margin: 0;
    padding: 0;
    min-height: 0;
    height: 0;
    overflow: hidden;
    line-height: 0;
}

.wp-block-group.is-layout-constrained {
    max-width: var(--slb-content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--slb-content-padding);
    padding-right: var(--slb-content-padding);
}

/* Utility classes */
.slb-container {
    max-width: var(--slb-content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--slb-content-padding);
    padding-right: var(--slb-content-padding);
}

.slb-section {
    width: 100%;
}

/* Spacing utilities - use WordPress spacing presets */
.slb-p-xs { padding: var(--wp--preset--spacing--xs, 0.5rem); }
.slb-p-sm { padding: var(--wp--preset--spacing--sm, 1rem); }
.slb-p-md { padding: var(--wp--preset--spacing--md, 1.5rem); }
.slb-p-lg { padding: var(--wp--preset--spacing--lg, 2rem); }
.slb-p-xl { padding: var(--wp--preset--spacing--xl, 3rem); }
.slb-p-2xl { padding: var(--wp--preset--spacing--2xl, 4rem); }

.slb-py-xs { padding-top: var(--wp--preset--spacing--xs, 0.5rem); padding-bottom: var(--wp--preset--spacing--xs, 0.5rem); }
.slb-py-sm { padding-top: var(--wp--preset--spacing--sm, 1rem); padding-bottom: var(--wp--preset--spacing--sm, 1rem); }
.slb-py-md { padding-top: var(--wp--preset--spacing--md, 1.5rem); padding-bottom: var(--wp--preset--spacing--md, 1.5rem); }
.slb-py-lg { padding-top: var(--wp--preset--spacing--lg, 2rem); padding-bottom: var(--wp--preset--spacing--lg, 2rem); }
.slb-py-xl { padding-top: var(--wp--preset--spacing--xl, 3rem); padding-bottom: var(--wp--preset--spacing--xl, 3rem); }
.slb-py-2xl { padding-top: var(--wp--preset--spacing--2xl, 4rem); padding-bottom: var(--wp--preset--spacing--2xl, 4rem); }

/* ==========================================================================
   Typography
   ========================================================================== */
body {
    font-family: var(--wp--preset--font-family--body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    color: var(--wp--preset--color--neutral-dark, #333333);
    font-size: 18px; /* Large size - applied to all body content */
    font-weight: 400; /* Regular font weight for Inter */
    line-height: 1.7; /* Increased line height for better readability */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wp--preset--color--primary-darker, #005c9d);
    font-family: var(--wp--preset--font-family--primary, "Lato", sans-serif);
    line-height: 1.3;
}

h1 {
    margin-bottom: 0;
    font-size: 52px;
}

h2 {
    margin: 0 0 40px;
    font-size: 40px;
    font-weight: bold;
}

h3 {
    font-size: 28px;
    font-weight: bold;
}

h4 {
    font-size: 20px;
    font-weight: bold;
}

p {
    line-height: 1.7; /* Increased line height for better readability */
    color: var(--wp--preset--color--neutral-dark, #333333);
    font-size: 18px; /* Large size - applied to all paragraphs */
}

/* Footer: override global p/link styles so footer text is white and 14px */
.slb-footer-wrapper p,
.slb-footer-wrapper .wp-block-shortcode,
.slb-footer-wrapper .wp-block-shortcode p {
    color: #fff;
    font-size: 14px;
}

/* Content link colors (branding) */
main a:not(.wp-block-button__link):not(.slb-button-primary):not(.slb-button-accent):not(.slb-button-outline),
.slb-tab-row-col a,
#explore .slb-tab-content a {
    color: var(--wp--preset--color--primary, #1b75bb);
    transition: color 0.2s ease;
}

main a:not(.wp-block-button__link):not(.slb-button-primary):not(.slb-button-accent):not(.slb-button-outline):hover,
.slb-tab-row-col a:hover,
#explore .slb-tab-content a:hover {
    color: var(--wp--preset--color--primary-dark, #005c9d);
}

/* Unordered lists - reduced left padding */
ul {
    padding-left: 1.5rem; /* Slightly reduced from default */
}

/* Hero section paragraph styling (color from plugin on front-page hero only; see below) */
main > .wp-block-group.is-layout-constrained > p.has-text-align-center {
    margin: 30px 0 50px;
    color: var(--wp--preset--color--primary, #1b75bb);
}

#main-content.wp-block-group.has-background .is-layout-constrained > h1.has-text-align-center {
    color: var(--slc-hero-headline-color, #00406e);
}

#main-content.wp-block-group.has-background .is-layout-constrained > p.has-text-align-center {
    color: var(--slc-hero-subheading-color, #1b75bb);
}

/* Hero headline ([slc_hero]): strip default h1 top margin from core/global block styles */
main.wp-block-group.has-background .is-layout-constrained > h1:first-of-type {
    margin-top: 0;
    margin-block-start: 0;
}

/* Hero inner wrapper: cap width so headline/subheading/buttons don’t span full 90rem content size */
#main-content.wp-block-group.has-background > .wp-block-group.is-layout-constrained {
    max-width: 60rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Hero — top alignment: configurable top/bottom padding via plugin */
body:not(.slc-hero-content-center) main.wp-block-group.has-background {
    padding-top: var(--slc-hero-padding-top, 50px);
    padding-right: 0;
    padding-bottom: var(--slc-hero-padding-bottom, 380px);
    padding-left: 0;
    box-sizing: border-box;
}

/* Centered hero block (plugin adds body.slc-hero-content-center on the front page only) */
body.slc-hero-content-center main.wp-block-group.has-background:first-of-type {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(85vh, 920px);
    padding: 4rem 0;
    box-sizing: border-box;
}

/* Hero buttons - fixed width */
main.wp-block-group.has-background .wp-block-button {
    width: 215px;
}

main.wp-block-group.has-background .wp-block-button__link {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    /* Hero background image sizing comes from plugin inline CSS (cover + center bottom) on all viewports */

    /* Top alignment only: half the configured hero top/bottom padding on small screens */
    body:not(.slc-hero-content-center) main.wp-block-group.has-background {
        padding-top: calc(var(--slc-hero-padding-top, 50px) / 2);
        padding-bottom: calc(var(--slc-hero-padding-bottom, 120px) / 2);
    }

    body.slc-hero-content-center main.wp-block-group.has-background:first-of-type {
        min-height: min(72vh, 720px);
        padding: 3rem 0;
    }

    main.wp-block-group.has-background .slc-hero-cta-buttons {
        align-items: center;
    }

    main.wp-block-group.has-background .slc-hero-cta-buttons .wp-block-button {
        width: auto;
        max-width: 100%;
    }

    main.wp-block-group.has-background .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    main.wp-block-group.has-background .wp-block-button {
        width: 100%;
        max-width: none;
    }
}

/* Map embed: overlay to hide share/fullscreen icons (left drawer stays clickable) */
.slb-map-header-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 101px;
    height: 58px;
    background: #2e312f;
    pointer-events: auto;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.slb-map-container.slb-map-loaded .slb-map-header-overlay {
    opacity: 1;
    transition-delay: 0.2s;
}

/* Map embed: taller on mobile for better viewing */
@media (max-width: 768px) {
    .slb-map-container {
        padding-bottom: 75% !important;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.slb-header-row .slb-header-inner,
.slb-header-row .wp-block-group[style*="justify-content: space-between"] {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.slb-header-row .slb-header-inner > .wp-block-group:first-child,
.slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-group:first-child {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.slb-header-row .wp-block-site-logo {
    margin-right: 50px;
    height: 60px;
}

.slb-header-row .wp-block-site-logo img,
.slb-header-row .wp-block-site-logo svg {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.slb-header-row .slb-header-inner > .wp-block-buttons,
.slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-buttons {
    flex: 0 0 auto;
    min-width: fit-content;
}

.slb-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.slb-nav-links a {
    color: var(--wp--preset--color--neutral-dark, #333333);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    display: inline-block;
}

.slb-nav-links a:hover {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
}

.slb-nav-links a:focus-visible {
    color: var(--wp--preset--color--primary);
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* Mobile Menu Toggle Button - Hidden on desktop by default */
.slb-mobile-menu-toggle-wrapper {
    display: none !important;
    flex-shrink: 0;
    order: 2;
    margin-left: auto;
}

.slb-mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    align-self: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slb-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    gap: 4px;
}

.slb-hamburger span {
    display: block !important;
    height: 2px;
    width: 100%;
    background-color: var(--wp--preset--color--neutral-dark, #333333);
    border-radius: 2px;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

/* Close icon (×) – shown when menu is open, common WordPress-style pattern */
.slb-menu-close-icon {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
    font-weight: 300;
    color: var(--wp--preset--color--neutral-dark, #333333);
}
.slb-mobile-menu-toggle[aria-expanded="true"] .slb-hamburger {
    display: none !important;
}
.slb-mobile-menu-toggle[aria-expanded="true"] .slb-menu-close-icon {
    display: flex !important;
}

/* Mobile Menu */
.slb-mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--wp--preset--color--white, #ffffff);
    z-index: 1000;
    padding: 100px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

/* Account for announcement bar if present */
body:has(#wpfront-notification-bar) .slb-mobile-menu {
    padding-top: 140px;
}

.slb-mobile-menu[aria-hidden="false"] {
    transform: translateX(0);
    visibility: visible;
}

.slb-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.slb-mobile-nav-links a {
    color: var(--wp--preset--color--neutral-dark, #333333);
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slb-border-color);
    transition: color 0.2s ease;
}

.slb-mobile-nav-links a:hover {
    color: var(--wp--preset--color--primary);
}

.slb-mobile-nav-links a:focus-visible {
    color: var(--wp--preset--color--primary);
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

.slb-mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.slb-mobile-button {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: var(--slb-button-border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s ease;
}

.slb-mobile-button.slb-button-outline {
    border: var(--slb-button-border-width) solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
    background-color: transparent;
}

.slb-mobile-button.slb-button-outline:hover {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white, #ffffff);
}

.slb-mobile-button.slb-button-primary {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white, #ffffff);
    border: none;
}

.slb-mobile-button.slb-button-primary:hover {
    background-color: var(--wp--preset--color--primary-dark);
}

/* Announcement bar - WPFront Notification Bar plugin integration */
/* Layout/typography only; bar and text colors come from WPFront plugin settings. */

#wpfront-notification-bar {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 12px 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1000;
}

#wpfront-notification-bar .wpfront-notification-bar-message,
#wpfront-notification-bar div.wpfront-message {
    margin: 0;
    line-height: 1.55 !important;
}

/* Theme body styles must not override plugin message text color. */
#wpfront-notification-bar p,
#wpfront-notification-bar div.wpfront-message strong,
#wpfront-notification-bar div.wpfront-message em,
#wpfront-notification-bar div.wpfront-message span {
    color: inherit;
    font-size: inherit;
    line-height: 1.55 !important;
}

#wpfront-notification-bar .wpfront-notification-bar-message a,
#wpfront-notification-bar div.wpfront-message a {
    color: inherit;
    text-decoration: underline;
}

#wpfront-notification-bar .wpfront-notification-bar-message a:hover,
#wpfront-notification-bar div.wpfront-message a:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
/* Base button styles - Default size (16px, bold, 14px 50px padding) */
.wp-block-button__link,
.slb-submit-button {
    border-radius: var(--slb-button-border-radius);
    box-sizing: border-box;
    min-height: var(--slb-button-min-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 50px;
}

/* Small button style - Header and About box buttons (14px, bold, 10px 14px padding) */
.slb-header-row .wp-block-button__link,
.slb-about-box .wp-block-button__link {
    font-size: 14px;
    font-weight: bold;
    padding: 10px 14px;
}

/* Default buttons - border matches background */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    border: var(--slb-button-border-width) solid;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-primary-background-color {
    border-color: var(--wp--preset--color--primary);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-accent-background-color {
    border-color: var(--wp--preset--color--accent);
    color: var(--slb-color-accent-text);
}

.wp-block-button__link.has-accent-background-color {
    color: var(--slb-color-accent-text);
}

/* Outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
    border: var(--slb-button-border-width) solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
    background-color: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
}

/* Submit button - uses default size */
.slb-submit-button {
    padding: 14px 50px;
    background: var(--wp--preset--color--primary-light, #1a9ed9);
    border: none;
    color: var(--wp--preset--color--white, #ffffff);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--wp--preset--font-family--primary, "Lato", sans-serif);
}

.slb-submit-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.slb-submit-button:active {
    transform: translateY(0);
}

/* ==========================================================================
   Button Variant Classes
   ========================================================================== */
/* Primary button - Dark Blue background/border, White text */
.wp-block-button__link.slb-button-primary,
.wp-block-button.slb-button-primary .wp-block-button__link {
    background-color: var(--wp--preset--color--primary, #1b75bb) !important;
    border-color: var(--wp--preset--color--primary, #1b75bb) !important;
    color: var(--wp--preset--color--white, #ffffff) !important;
}

.wp-block-button__link.slb-button-primary:hover,
.wp-block-button.slb-button-primary .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--primary, #1b75bb) !important;
    border-color: var(--wp--preset--color--primary, #1b75bb) !important;
    color: var(--wp--preset--color--white, #ffffff) !important;
    opacity: 0.9;
}

/* Accent button - Orange background/border, Black text */
.wp-block-button__link.slb-button-accent,
.wp-block-button.slb-button-accent .wp-block-button__link {
    background-color: var(--wp--preset--color--accent, #ee7f22) !important;
    border-color: var(--wp--preset--color--accent, #ee7f22) !important;
    color: var(--wp--preset--color--black, #000000) !important;
}

.wp-block-button__link.slb-button-accent:hover,
.wp-block-button.slb-button-accent .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--accent, #ee7f22) !important;
    border-color: var(--wp--preset--color--accent, #ee7f22) !important;
    color: var(--wp--preset--color--black, #000000) !important;
    opacity: 0.9;
}

/* Outline button - White background, Dark Blue border, Dark Blue text */
.wp-block-button__link.slb-button-outline,
.wp-block-button.slb-button-outline .wp-block-button__link {
    background-color: var(--wp--preset--color--white, #ffffff) !important;
    border-color: var(--wp--preset--color--primary, #1b75bb) !important;
    color: var(--wp--preset--color--primary, #1b75bb) !important;
}

.wp-block-button__link.slb-button-outline:hover,
.wp-block-button.slb-button-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--white, #ffffff) !important;
    border-color: var(--wp--preset--color--primary, #1b75bb) !important;
    color: var(--wp--preset--color--primary, #1b75bb) !important;
    opacity: 0.9;
}

.wp-block-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.wp-block-buttons .wp-block-button {
    margin: 0;
    flex-shrink: 0;
}

/* ==========================================================================
   Resources Section
   ========================================================================== */
/* Desktop: 3 columns (3x2 grid for 6 callouts) */
#resources .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
}

#resources .wp-block-column {
    min-width: 0;
}

/* Tablet: 2 columns (2x2x2) */
@media (max-width: 1024px) {
    #resources .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: single column (stacked) */
@media (max-width: 768px) {
    #resources .wp-block-columns {
        grid-template-columns: 1fr;
    }
}

/* Ensure resource links fill their columns */
#resources .slb-resource-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.slb-resource-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.slb-resource-link .wp-block-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
}

.slb-resource-link h3,
.slb-resource-link p {
    margin: 0;
}

/* Force white text color for headings in resource callouts */
.slb-resource-link .has-white-color,
.slb-resource-link .has-text-color,
.slb-resource-link h3.has-white-color,
.slb-resource-link h3.has-text-color,
.slb-resource-link .wp-block-group.has-text-color h3,
.slb-resource-link .wp-block-group.has-text-color .has-white-color {
    color: var(--wp--preset--color--white) !important;
}

.slb-resource-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 16px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
/* Ensure FAQs wrapper has proper spacing */
#faqs .slb-faqs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slb-faq-item {
    background-color: var(--slb-color-bg-light);
    padding: 20px 30px;
    border-radius: 18px;
    color: var(--wp--preset--color--primary, #1b75bb);
    margin-bottom: 0; /* Gap handled by wrapper */
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.slb-faq-item:hover {
    background-color: color-mix(in srgb, var(--slb-color-bg-light) 75%, var(--wp--preset--color--accent, #ee7f22) 25%);
}

.slb-faq-item summary {
    color: var(--wp--preset--color--primary, #1b75bb);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    display: block;
    width: 100%;
    position: relative;
}

.slb-faq-item summary::-webkit-details-marker,
.slb-faq-item summary::marker {
    display: none;
}

.slb-faq-item summary::after {
    content: '▼';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.2s ease;
    font-size: 0.8em;
    color: var(--wp--preset--color--accent, #ee7f22);
}

.slb-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.slb-faq-item p {
    color: var(--wp--preset--color--neutral-dark, #333333);
    margin-top: 16px;
    margin-bottom: 0;
    max-width: 800px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
/* Ensure contact columns display side-by-side */
#contact .wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 48px;
    align-items: flex-start;
}

#contact .wp-block-column {
    flex: 1 1 0%;
    min-width: 0;
}

/* 40 | 60 column ratio on desktop */
#contact .wp-block-column:first-child {
    flex: 0 0 40%;
    max-width: 40%;
    margin-bottom: 15px;
}

#contact .wp-block-column:last-child {
    flex: 0 0 60%;
    max-width: 60%;
}

#contact .wp-block-column:first-child h2 {
    margin-bottom: 20px;
}

#contact .wp-block-column:last-child h2 {
    padding-left: 40px;
    margin-bottom: 0;
}

@media (max-width: 782px) {
    #contact .wp-block-columns {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    #contact .wp-block-column,
    #contact .wp-block-column:first-child,
    #contact .wp-block-column:last-child {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.slb-contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slb-form-row {
    display: flex;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.slb-form-row:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.slb-contact-form input[type="text"],
.slb-contact-form input[type="email"],
.slb-contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--white);
    border-radius: 4px;
    color: var(--wp--preset--color--white);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.slb-contact-form input[type="text"]::placeholder,
.slb-contact-form input[type="email"]::placeholder,
.slb-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.slb-contact-form input[type="text"]:focus,
.slb-contact-form input[type="email"]:focus,
.slb-contact-form textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary-light, rgba(255, 255, 255, 0.9));
    box-shadow: 0 0 0 2px var(--wp--preset--color--primary-light, rgba(26, 158, 217, 0.4));
}

.slb-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact section text color - ensure all text is white */
#contact h1,
#contact h2,
#contact h4,
#contact h5,
#contact h6,
#contact p,
#contact li,
#contact span,
#contact div:not(.slb-contact-form):not(.slb-form-row),
#contact .wp-block-column h2,
#contact .wp-block-column p,
#contact .wp-block-column,
#contact .wp-block-column *:not(input):not(textarea):not(button) {
    color: var(--wp--preset--color--white) !important;
}

/* Contact section h3 - inherit theme h3 styles but keep white color */
#contact h3,
#contact .wp-block-column h3 {
    margin-bottom: 10px;
    color: var(--wp--preset--color--white) !important;
    /* All other h3 styles (font-size, font-weight, etc.) inherit from theme.css h3 */
}

/* Contact section h4 (contact names) - no bottom margin */
#contact .wp-block-column:first-child h4 {
    margin-bottom: 0;
}

/* Contact section p immediately after each contact name h4 - top margin only */
#contact .wp-block-column:first-child h4 + p {
    margin-top: 6px;
    margin-bottom: 0;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.slb-tabs {
    width: 100%;
}

.slb-tab-nav-wrapper {
    width: 100%;
    max-width: 100%;
    background-color: var(--wp--preset--color--primary);
    padding: 0;
    margin: 0;
}

/* Mobile Dropdown - Hidden on desktop */
.slb-tab-dropdown {
    display: none;
    width: 100%;
    padding: 16px 20px;
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--wp--preset--font-family--primary, "Lato", sans-serif);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 50px;
}

.slb-tab-dropdown option {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--neutral-dark, #333333);
    padding: 12px;
}

.slb-tab-nav {
    display: flex;
    gap: 0;
}

.slb-tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: top;
    gap: 10px;
    padding: 28px 36px 30px;
    background: transparent;
    color: var(--wp--preset--color--white);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
    border: none;
}

.slb-tab-button:hover {
    color: var(--wp--preset--color--white);
}

.slb-tab-button:hover:not(.active) {
    background-color: color-mix(in srgb, var(--wp--preset--color--primary, #1b75bb) 88%, white 12%);
}

.slb-tab-button:focus-visible {
    outline: 2px solid var(--wp--preset--color--white);
    outline-offset: 2px;
}

.slb-tab-button.active {
    color: var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--primary-darker, #00406e);
}

.slb-tab-button-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    display: block;
}

.slb-tab-button-subtitle {
    font-size: 16px;
    display: block;
}

.slb-tab-content {
    display: none;
}

.slb-tab-content.active {
    display: block;
}

.slb-tab-header {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
}

.slb-tab-header-col {
    display: flex;
    flex-direction: column;
}

.slb-tab-header-col:first-child {
    padding: 50px 0;
}

@media (max-width: 768px) {
    .slb-tab-header-col:first-child {
        padding-bottom: 25px;
    }
}

/* Explore, Resources, and FAQs section headings — Primary Darker brand color */
#explore .slb-tab-header-col h2,
#explore .slb-tab-row-col h3,
#explore .slb-about-box h3,
#resources h2,
#faqs h2 {
    color: var(--wp--preset--color--primary-darker, #00406e);
}

.slb-tab-header-col h2 {
    margin: 0 0 10px;
}

.slb-tab-subtitle {
    color: var(--wp--preset--color--primary-dark, #00406e);
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.slb-tab-header-col:last-child {
    height: 100%;
}

.slb-tab-header-col:last-child .slb-about-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.slb-tab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
    align-items: center;
}

.slb-tab-row:last-child {
    margin-bottom: 0;
}

.slb-tab-row-col h3 {
    margin: 0 0 12px 0;
}

.slb-tab-row-col p {
    margin: 0 0 20px 0;
}

.slb-tab-row-col .wp-block-buttons {
    margin-top: 30px;
}

.slb-tab-divider {
    height: 2px;
    width: 100%;
    background-color: var(--wp--preset--color--primary);
    margin: 0 0 48px;
    border: none;
    display: block;
}

/* Hide the blue HR under the About callout on mobile; add bottom margin to replace its spacing */
@media (max-width: 768px) {
    .slb-tab-header + .slb-tab-divider {
        display: none;
    }
    .slb-about-box {
        margin-bottom: 48px;
    }
}

.slb-placeholder-rectangle {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.slb-tab-media-image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

.slb-tab-media-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 18px;
    overflow: hidden;
}

.slb-tab-media-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.slb-about-box {
    background-color: var(--slb-color-bg-light);
    padding: 50px 40px;
    gap: 20px;
}

.slb-about-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slb-about-header .slb-brand-icon {
    width: 70px;
    height: auto;
    flex-shrink: 0;
}

.slb-about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slb-about-box h3 {
    margin: 0;
    font-size: 24px;
    max-width: 200px;
}

.slb-about-box p {
    margin: 0;
    font-size: 14px;
}

p.slb-about-subtitle {
    margin: 0;
    color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Header: use hamburger + drawer before logo/nav/buttons crowd (was 768px). */
@media (max-width: 1024px) {
    /* Hide desktop navigation on mobile */
    .slb-nav-links {
        display: none !important;
    }
    
    /* Show mobile menu toggle button and wrapper - be very aggressive */
    .slb-mobile-menu-toggle-wrapper,
    .wp-block-html .slb-mobile-menu-toggle-wrapper,
    .slb-header-row .slb-mobile-menu-toggle-wrapper,
    header .slb-mobile-menu-toggle-wrapper,
    .wp-block-group .slb-mobile-menu-toggle-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 2 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .slb-mobile-menu-toggle,
    .slb-header-row .slb-mobile-menu-toggle,
    button.slb-mobile-menu-toggle,
    .slb-mobile-menu-toggle-wrapper .slb-mobile-menu-toggle,
    .slb-mobile-menu-toggle-wrapper button,
    .slb-mobile-menu-toggle-wrapper .slb-hamburger {
        display: flex !important;
        visibility: visible !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure hamburger spans are visible - all three lines */
    .slb-mobile-menu-toggle-wrapper .slb-hamburger span,
    .slb-mobile-menu-toggle-wrapper .slb-hamburger span:nth-child(1),
    .slb-mobile-menu-toggle-wrapper .slb-hamburger span:nth-child(2),
    .slb-mobile-menu-toggle-wrapper .slb-hamburger span:nth-child(3) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 2px !important;
        width: 100% !important;
        background-color: var(--wp--preset--color--neutral-dark, #333333) !important;
    }
    
    /* Force visibility - override any other rules - be extremely aggressive */
    .slb-header-row .slb-mobile-menu-toggle-wrapper,
    header .slb-mobile-menu-toggle-wrapper,
    .wp-block-group .slb-mobile-menu-toggle-wrapper,
    .wp-block-html .slb-mobile-menu-toggle-wrapper,
    div.slb-mobile-menu-toggle-wrapper,
    /* Also ensure wp-block-html wrapper doesn't hide it */
    .wp-block-html:has(.slb-mobile-menu-toggle-wrapper) {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Make sure wp-block-html wrapper shows the button */
    .slb-header-row .wp-block-html:has(.slb-mobile-menu-toggle) {
        display: flex !important;
        align-items: center !important;
        order: 2 !important;
        margin-left: auto !important;
    }
    
    /* Adjust header layout for mobile */
    .slb-header-row .slb-header-inner,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .slb-header-row .slb-header-inner > .wp-block-group:first-child,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-group:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    /* Hide desktop buttons on mobile (they're in mobile menu) - be very specific */
    .slb-header-row .wp-block-buttons,
    .slb-header-row .wp-block-group .wp-block-buttons,
    .slb-header-row .slb-header-inner .wp-block-buttons,
    .slb-header-row .slb-header-inner > .wp-block-buttons,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] .wp-block-buttons,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-buttons,
    header .slb-header-row .wp-block-buttons {
        display: none !important; /* Hide desktop buttons on mobile (they're in mobile menu) */
    }
    
    .slb-header-row .wp-block-site-logo {
        margin-right: 20px;
        flex-shrink: 0;
    }
    
    /* Ensure mobile menu wrapper doesn't interfere with layout */
    .slb-header-row .wp-block-html:has(.slb-mobile-menu) {
        display: none !important;
    }
    
    /* Ensure mobile menu toggle is visible and properly positioned */
    .slb-header-row .slb-mobile-menu-toggle {
        display: block !important;
    }
    
    /* Show and position hamburger button - target the button directly */
    .slb-header-row .slb-mobile-menu-toggle {
        display: block !important;
        margin-left: auto;
    }
    
    /* Make sure all wp-block-html wrappers in header are flex containers */
    .slb-header-row .slb-header-inner > .wp-block-html,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-html {
        display: flex;
        align-items: center;
    }
    
    /* Position hamburger button wrapper - it comes after the logo group */
    .slb-header-row .slb-header-inner > .wp-block-group:first-child + .wp-block-html,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-group:first-child + .wp-block-html {
        order: 2;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    /* Hide the mobile menu HTML block wrapper (it's fixed positioned anyway) - comes after hamburger */
    .slb-header-row .slb-header-inner > .wp-block-group:first-child + .wp-block-html + .wp-block-html,
    .slb-header-row .wp-block-group[style*="justify-content: space-between"] > .wp-block-group:first-child + .wp-block-html + .wp-block-html {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Show dropdown on mobile, hide tab buttons */
    .slb-tab-dropdown {
        display: block;
    }
    
    .slb-tab-nav {
        display: none;
    }
    
    .slb-tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .slb-tab-button-title {
        font-size: 16px;
    }
    
    .slb-tab-button-subtitle {
        font-size: 14px;
    }
    
    .slb-tab-header,
    .slb-tab-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .slb-form-row:first-of-type {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Login/Signup Modal
   ========================================================================== */
.slb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
}

.slb-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.slb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.slb-modal-content {
    position: relative;
    background-color: var(--wp--preset--color--white, #ffffff);
    border-radius: 8px;
    padding: 30px;
    max-width: 624px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slb-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--wp--preset--color--neutral-dark, #333333);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slb-modal-close:hover,
.slb-modal-close:focus {
    color: var(--wp--preset--color--primary, #1b75bb);
    outline: 2px solid var(--wp--preset--color--primary, #1b75bb);
    outline-offset: 2px;
    border-radius: 4px;
}

.slb-modal-close span {
    display: block;
    line-height: 1;
}

.slb-modal-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--wp--preset--color--primary-darker, #005c9d);
}

.slb-modal-subtitle {
    text-align: center;
    font-size: 1rem;
    margin: 0 0 30px 0;
    color: var(--wp--preset--color--neutral-dark, #333333);
}

/* Hero Get Started CTA — centered under headline/subheading */
main.wp-block-group.has-background .slc-hero-cta-buttons {
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.slb-modal-get-started-mount {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.slb-modal-section-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Log In / Sign Up — compact segmented control (not a second full tab row) */
.slb-modal-section-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0;
    border-bottom: none;
    background-color: var(--wp--preset--color--light-blue, #e6f2f8);
    border-radius: 10px;
    max-width: 100%;
    min-width: 300px;
    width: min(100%, 360px);
}

.slb-modal-section-tab {
    background: transparent;
    border: none;
    border-bottom: none;
    border-radius: 8px;
    padding: 10px 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--wp--preset--color--neutral, #5f5e5e);
    cursor: pointer;
    position: relative;
    font-family: var(--wp--preset--font-family--primary, "Lato", sans-serif);
    margin-bottom: 0;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.slb-modal-section-tab:hover,
.slb-modal-section-tab:focus {
    color: var(--wp--preset--color--primary-darker, #005c9d);
    outline: 2px solid var(--wp--preset--color--primary, #1b75bb);
    outline-offset: 2px;
}

.slb-modal-section-tab.active {
    color: var(--wp--preset--color--primary-darker, #005c9d);
    background-color: var(--wp--preset--color--white, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

.slb-modal-section-panel {
    display: none;
}

.slb-modal-section-panel.active {
    display: block;
}

/* Audience tabs — lighter secondary nav inside a section */
.slb-modal-section-panel .slb-modal-audience-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--wp--preset--color--light-blue, #e6f2f8);
}

.slb-modal-section-panel .slb-modal-tab {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

.slb-modal-section-panel .slb-modal-tab.active {
    font-weight: 700;
    border-bottom-width: 2px;
}

/* Quick links (optional top-level admin buttons) — bottom, outline style */
.slb-modal-quick-links {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--wp--preset--color--light-blue, #e6f2f8);
    text-align: center;
}

.slb-modal-quick-links-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--wp--preset--color--neutral, #5f5e5e);
}

.slb-modal-buttons-root {
    margin-bottom: 0;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slb-modal-buttons-root .slb-modal-button {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.slb-modal-button.slb-button-outline {
    background-color: var(--wp--preset--color--white, #ffffff) !important;
    border: 2px solid var(--wp--preset--color--primary, #1b75bb) !important;
    color: var(--wp--preset--color--primary, #1b75bb) !important;
}

.slb-modal-button.slb-button-outline:hover,
.slb-modal-button.slb-button-outline:focus {
    background-color: var(--wp--preset--color--light-blue, #e6f2f8) !important;
    color: var(--wp--preset--color--primary-darker, #005c9d) !important;
}

/* Audience tabs within a section */
.slb-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--wp--preset--color--light-blue, #e6f2f8);
    margin-bottom: 30px;
    justify-content: center;
}

.slb-modal-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--wp--preset--color--neutral-dark, #333333);
    cursor: pointer;
    position: relative;
    font-family: var(--wp--preset--font-family--primary, "Lato", sans-serif);
    margin-bottom: -1px;
    flex: 1;
    text-align: center;
}

.slb-modal-tab:hover,
.slb-modal-tab:focus {
    color: var(--wp--preset--color--primary, #1b75bb);
    outline: 2px solid var(--wp--preset--color--primary, #1b75bb);
    outline-offset: -2px;
}

.slb-modal-tab.active {
    color: var(--wp--preset--color--primary-darker, #005c9d);
    font-weight: bold;
    border-bottom: 3px solid var(--wp--preset--color--primary-darker, #005c9d);
}

/* Modal Tab Panels */
.slb-modal-tab-content {
    min-height: 140px;
}

.slb-modal-tab-panel {
    display: none;
}

.slb-modal-tab-panel.active {
    display: block;
}

.slb-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

/* Legacy alias — root buttons use flex centering above */
.slb-modal-buttons-root.slb-modal-buttons {
    display: flex;
    justify-content: center;
    grid-template-columns: none;
    margin-bottom: 20px;
}

.slb-modal-button {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 14px 50px;
    border-radius: var(--slb-button-border-radius);
    font-size: 16px;
    font-weight: bold;
    box-sizing: border-box;
    min-height: var(--slb-button-min-height);
    line-height: 1.4;
    width: 100%;
}

.slb-modal-button.slb-button-primary {
    background-color: var(--wp--preset--color--primary, #1b75bb);
    color: var(--wp--preset--color--white, #ffffff);
    border: var(--slb-button-border-width) solid var(--wp--preset--color--primary, #1b75bb);
}

.slb-modal-button.slb-button-primary:hover,
.slb-modal-button.slb-button-primary:focus {
    background-color: var(--wp--preset--color--primary, #1b75bb);
    border-color: var(--wp--preset--color--primary, #1b75bb);
    color: var(--wp--preset--color--white, #ffffff);
    opacity: 0.9;
}

.slb-modal-button.slb-button-outline {
    background-color: transparent;
    color: var(--wp--preset--color--primary, #1b75bb);
    border: var(--slb-button-border-width) solid var(--wp--preset--color--primary, #1b75bb);
}

.slb-modal-button.slb-button-outline:hover,
.slb-modal-button.slb-button-outline:focus {
    background-color: transparent;
    border-color: var(--wp--preset--color--primary, #1b75bb);
    color: var(--wp--preset--color--primary, #1b75bb);
    opacity: 0.9;
}

/* Modal help text at bottom */
.slb-modal-signup {
    margin: 11px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--wp--preset--color--light-blue, #e6f2f8);
    text-align: center;
    font-size: 16px;
    color: var(--wp--preset--color--neutral-dark, #333333);
}

.slb-modal-signup a {
    color: var(--wp--preset--color--primary, #1b75bb);
    text-decoration: underline;
}

.slb-modal-signup a:hover,
.slb-modal-signup a:focus {
    color: var(--wp--preset--color--primary-darker, #005c9d);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .slb-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .slb-modal-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .slb-modal-section-tabs-wrap {
        margin-bottom: 16px;
    }

    .slb-modal-section-tabs {
        width: 100%;
    }

    .slb-modal-section-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .slb-modal-tabs {
        flex-wrap: wrap;
        gap: 0;
    }
    
    .slb-modal-tab {
        padding: 10px 16px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }
    
    .slb-modal-buttons {
        grid-template-columns: 1fr;
    }
    
    .slb-modal-button {
        padding: 12px 30px;
        font-size: 14px;
    }
    
}

/* Header language switcher (State Microsite → Translations) */
.slb-header-row .wp-block-shortcode p:empty {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

.slb-header-row .wp-block-shortcode:has(.slb-lang-switcher-root) {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}

.slb-lang-switcher-root {
    display: flex;
    align-items: center;
    margin-right: 10px;
    width: fit-content;
    max-width: 100%;
}

.slb-lang-desktop,
.slb-lang-mobile {
    width: fit-content;
    max-width: 100%;
}

.slb-lang-inner {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: fit-content;
    max-width: 100%;
}

.slb-lang-inner br {
    display: none;
}

.slb-lang-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    display: inline-flex;
    line-height: 0;
    color: var(--wp--preset--color--primary, #1b75bb);
}

.slb-lang-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.slb-lang-select {
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 28px 8px 34px;
    border-radius: 4px;
    border: 0;
    background-color: #fff;
    color: var(--wp--preset--color--neutral-dark, #333333);
    width: fit-content;
    max-width: min(100%, 22rem);
    field-sizing: content;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 12px 12px;
}

.slb-lang-select:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary, #1b75bb);
    outline-offset: 2px;
}

@media (min-width: 1025px) {
    .slb-lang-switcher-root .slb-lang-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .slb-lang-switcher-root .slb-lang-desktop {
        display: none !important;
    }

    .slb-lang-switcher-root > .slb-lang-mobile {
        display: none !important;
    }

    .slb-mobile-menu-buttons .slb-lang-mobile {
        display: block !important;
        margin-bottom: 14px;
        width: 100%;
    }

    .slb-mobile-menu-buttons .slb-lang-inner {
        width: 100%;
    }

    .slb-mobile-menu-buttons .slb-lang-select {
        width: 100%;
        max-width: none;
    }
}
