@import url("carousel.840fe02cc028.css");
@import url("components.564b3510f18d.css");
@import url("modals-forms.9e30f4e8c770.css");
@import url("layouts.8db7838167cd.css");


:root {
    --pico-font-family: 'Inter', sans-serif;
    --pico-font-size: 1.2rem;
}

@media (min-width: 1024px) {

    :host,
    :root {
        --pico-font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --pico-font-size: 1.1rem;
    }
}

html,
body {
    overflow-x: clip;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.page-background-section .pico h1,
.page-background-section .pico h2,
.page-background-section .pico h3,
.page-background-section .pico h4,
.page-background-section .pico h5,
.page-background-section .pico h6 {
    padding: 1.3rem 0 0.2rem 0;
    color: inherit;
}

.page-background-section .pico h1 { font-size: 2.25rem; line-height: 1.1; }
.page-background-section .pico h2 { font-size: 1.85rem; line-height: 1.1; }
.page-background-section .pico h3 { font-size: 1.5rem; line-height: 1.1; }
.page-background-section .pico h4 { font-size: 1.25rem; line-height: 1.1; }
.page-background-section .pico h5 { font-size: 1.1rem; line-height: 1.1; }
.page-background-section .pico h6 { font-size: 1.0rem; line-height: 1.1; }

@media (max-width: 766px) {

    .page-background-section .pico h1,
    .page-background-section .pico h2,
    .page-background-section .pico h3,
    .page-background-section .pico h4,
    .page-background-section .pico h5,
    .page-background-section .pico h6 {
        padding: 1rem 0 0.2rem 0;
    }
}

/* --- LOGO & BRAND SECTION --- */

header nav .logo-white,
header nav .logo-red {
    height: 52px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.section-card-content ul {
    padding-right: 2rem;
}

.section-card-content ul li {
    margin-bottom: calc(var(--pico-typography-spacing-vertical) * .95);
}

/* --- HEADER & NAVIGATION --- */

header nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 0.65rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Only 'padding' changes between normal and scrolled states on the nav
       element itself — 'transition: all' was animating every CSS property
       for 300ms after mega menu close, causing a broad compositing repaint
       that produced the delayed white flash. */
    transition: padding 0.3s ease;
}

header nav ul,
header nav li,
header nav a,
header nav [role="button"],
header nav img,
header nav details,
header nav summary {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

header nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    background-color: #ffffff;
    backdrop-filter: none;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    box-shadow: none;
}

header nav.scrolled::before {
    transform: scaleY(1) !important;
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

@media screen and (max-width: 1023px) {
    header nav:not(.responsive):not(.scrolled)::before {
        transform: scaleY(0) !important;
        box-shadow: none !important;
    }
}

@media screen and (min-width: 1024px) {

    header nav:not(.scrolled):hover::before,
    header nav:not(.scrolled):has(.search-container.active)::before {
        transform: scaleY(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Suppress bottom shadow when mega menu is open — avoids a hard seam line
       between the nav bar and the mega menu panel below it. */
    header nav:not(.scrolled):has(details[open])::before {
        transform: scaleY(1);
        box-shadow: none;
    }
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}

header nav ul.search-icon {
    align-items: center;
    gap: 0.5rem;
}

header nav.responsive ul {
    gap: 0rem;
}

header nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav .logo-white {
    display: block;
}

header nav .logo-red {
    display: none;
}

header nav.scrolled .logo-white,
header nav.responsive .logo-white {
    display: none !important;
}

header nav.scrolled .logo-red,
header nav.responsive .logo-red {
    display: block !important;
}

@media screen and (min-width: 1024px) {

    header nav.scrolled .logo-white {
        display: none !important;
    }

    header nav.scrolled .logo-red {
        display: block !important;
    }

    header nav:not(.scrolled):hover .logo-white,
    header nav:has(details[open]) .logo-white,
    header nav:has(.search-container.active) .logo-white {
        display: none !important;
    }

    header nav:not(.scrolled):hover .logo-red,
    header nav:has(details[open]) .logo-red,
    header nav:has(.search-container.active) .logo-red {
        display: block !important;
    }
}

header nav > ul > li > a:not(.icon),
header nav > ul > li > details.dropdown > summary,
header nav > ul > li > details > summary {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, font-size 0.3s ease;
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

header nav.scrolled a,
header nav.scrolled details summary,
header nav.responsive a,
header nav.responsive details summary {
    color: #FF0630 !important;
}

#contact-modal footer button,
footer.site-footer button {
    color: #FF0630;
}

@media screen and (min-width: 1024px) {
    header nav:not(.scrolled):hover a,
    header nav:not(.scrolled):hover details summary,
    header nav:has(details[open]) a,
    header nav:has(details[open]) details summary,
    header nav:has(.search-container.active) a,
    header nav:has(.search-container.active) details summary {
        color: #FF0630 !important;
    }
}

header nav li.pico a[role="button"],
header nav li.pico a[role="button"]:focus,
#contact-modal footer button,
#contact-modal footer button:focus,
#newsletter-modal footer button,
#newsletter-modal footer button:focus,
footer.site-footer button,
footer.site-footer button:focus {
    color: #ffffff !important;
    background-color: #FF0630 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 1.5rem !important;

}

header nav li.pico a[role="button"]:hover,
header nav li.pico a[role="button"]:active,
#contact-modal footer button:hover,
#contact-modal footer button:active,
#newsletter-modal footer button:hover,
#newsletter-modal footer button:active,
footer.site-footer button:hover,
footer.site-footer button:active {
    color: #ffffff !important;
    background-color: #B80443 !important;
    border: none !important;
    box-shadow: none !important;
}

@media screen and (min-width: 1024px) {
    header nav.scrolled {
        position: fixed;

        top: 0;
        padding: 0.4rem 2rem;
    }

    header nav.scrolled .logo-white,
    header nav.scrolled .logo-red {
        height: 44px;
    }

    header nav a,
    header nav details summary,
    header nav .icon {
        font-size: 0.875rem;
    }

    header nav.scrolled::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: scaleY(1);
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        z-index: -1;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    }

    header nav ul.search-icon li.pico a#contact-button {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    header nav ul.search-icon li.login-nav-item {
        margin-right: 0.5rem !important;
    }
}

@media screen and (min-width: 1024px) {

    header nav a:hover,
    header nav details.dropdown>summary:hover,
    header nav details summary:hover,
    header nav a:focus-visible,
    header nav details.dropdown>summary:focus-visible,
    header nav details summary:focus-visible,
    header nav a:active,
    header nav details.dropdown>summary:active,
    header nav details summary:active {
        color: #B80443;
        text-decoration: none;
    }

    /* Plain text nav links (Contact Us, Log In) lack the [role="link"]
       attribute that lets Pico add an underline on summary[role="link"]:hover.
       The general 'header nav a:hover { text-decoration: none }' above wipes
       their underline, so we restore it here with explicit !important.
       Applies on hover, focus-visible (keyboard), and active (desktop click
       AND mobile tap — :active fires on touchstart → touchend). */
    header nav a.contact-button:hover,
    header nav a.contact-button:focus-visible,
    header nav a.contact-button:active,
    header nav .login-nav-item a:hover,
    header nav .login-nav-item a:focus-visible,
    header nav .login-nav-item a:active {
        text-decoration: underline !important;
        text-decoration-color: #B80443 !important;
        text-underline-offset: 3px;
    }
}

header nav details.dropdown>summary,
header nav details summary {
    list-style: none;
}

header nav details.dropdown>summary::-webkit-details-marker,
header nav details summary::-webkit-details-marker {
    display: none;
}

header nav details.dropdown>summary::after {
    content: "";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-left: 0.4rem;
    background-image: var(--pico-icon-chevron);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1) !important;
}

header nav:not(.scrolled):hover details.dropdown>summary::after,
header nav:has(details[open]) details.dropdown>summary::after,
header nav:has(.search-container.active) details.dropdown>summary::after,
header nav.responsive details.dropdown>summary::after,
header nav.scrolled details.dropdown>summary::after {
    filter: invert(11%) sepia(85%) saturate(6321%) hue-rotate(334deg) brightness(85%) contrast(107%) !important;
}

header nav details[open]>summary::after {
    transform: rotate(180deg);
}

/* === SUPPRESS PICO'S FULL-SCREEN CLICK-AWAY BACKDROP ===
   Pico injects a fixed 100vw×100vh pseudo-element on
   'details.dropdown[open] > summary::before' to detect outside clicks.
   For our hover mega menus this is redundant (mobile_nav.js handles it)
   and is the source of the residual white flash: when details[open] is
   removed the fixed overlay disappears, triggering a full-viewport
   compositing repaint that briefly exposes the white panel background. */
header nav details.dropdown.mega-menu[open] > summary::before {
    display: none !important;
    content: none !important;
}

/* --- MEGA MENUS (Absolute Positioning - Desktop Only) --- */

@media screen and (min-width: 1024px) {

    header nav ul li:has(.mega-menu),
    header nav details.dropdown.mega-menu,
    header nav ul.search-icon,
    header nav ul.search-icon li {
        position: static !important;
    }

    html body header nav .mega-menu-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100vw !important;
        background-color: #ffffff !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
        padding: 0.2rem 0rem 1rem 5% !important;
        margin-top: 0 !important;
        z-index: 2000 !important;
        border-radius: 0 !important;
        border: none !important;
        /* CLOSED STATE: display:none removes the panel from the render tree
           entirely. There is no white panel painted, nothing to flash.
           (Previously: display:flex + opacity:0 left a fully-painted white
           panel in the DOM, which produced a white flash on any repaint.) */
        display: none !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        box-sizing: border-box !important;
    }

    /* OPEN STATE: panel re-enters the render tree and fades in via animation.
       CSS animation (not transition) is used so Pico's own 'transition: opacity'
       on 'details.dropdown[open] > summary + ul' cannot interfere. */
    html body header nav details.dropdown.mega-menu[open] .mega-menu-content {
        display: flex !important;
        animation: megaMenuOpen 0.18s ease forwards;
    }

    @keyframes megaMenuOpen {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* === SCROLLED STATE === */
    header nav.scrolled .mega-menu-content {
        background-color: #ffffff !important;
        box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.12) !important;
    }

    .mega-menu-column {
        min-width: 250px !important;
        flex: 0 1 auto !important;
        position: static !important;
    }
}

header nav details.dropdown:not(.mega-menu) {
    position: relative !important;
}

.mega-menu-column ul {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.mega-menu-column h6 {
    font-size: 0.75rem;
    letter-spacing: 0.05rem;
    margin: 1.25rem 0;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    padding: 0.5rem;
    text-transform: uppercase;
}

.mega-menu-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}

.mega-menu-column ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
}

/* === MEGA MENU LINK STATES ===
   The hover pill is rendered on the ::before pseudo-element, NOT on the
   <a> background-color. This sidesteps all Pico cascade conflicts entirely:
   - Pico targets 'li a:hover/active/focus { background-color: #eff1f4 }'
   - Our <a> is always background-color: transparent !important — nothing to flash
   - The ::before is untouched by any Pico rule
   - Transition stays within blue alpha channel (0 → 0.22), never passes through
   - white, so a white flash is physically impossible regardless of browser
     compositing behaviour. */

header nav .mega-menu-column ul li a {
    position: relative;
    /* z-index: 0 creates a stacking context so the ::before with z-index: -1
       is painted behind the text content but above the panel background. */
    z-index: 0;
    display: block;
    padding: 0.35rem 0.65rem;
    margin-left: -0.65rem;
    border-radius: 6px;
    color: #FF0630 !important;
    font-size: 1rem;
    text-decoration: none;
    background-color: transparent !important;
    transition: color 0.2s ease;
    text-align: left !important;
}

/* Prevent browser/Pico from applying purple or grey to visited links */
header nav .mega-menu-column ul li a:visited {
    color: #FF0630 !important;
    background-color: transparent !important;
}

/* Blue pill lives entirely on ::before — Pico has no rules for this
   pseudo-element, so it can never be overridden or cause a flash.
   NO transition here: CSS uses the DESTINATION state's transition, so
   hover-OUT (destination = this base rule) will be instant — the blue
   snaps away cleanly with no window for white to bleed through. */
header nav .mega-menu-column ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background-color: rgba(99, 102, 241, 0);
    pointer-events: none;
    z-index: -1;
}

/* Hover/active/focus — raise alpha to show the blue pill.
   Transition here (destination for hover-IN) gives a smooth 0.15s fade-in. */
header nav .mega-menu-column ul li a:hover::before,
header nav .mega-menu-column ul li a:active::before,
header nav .mega-menu-column ul li a:focus::before,
header nav .mega-menu-column ul li a:focus-visible::before {
    background-color: rgba(99, 102, 241, 0.22);
    transition: background-color 0.15s ease;
}


/* Text colour shifts on hover/active/focus */
header nav .mega-menu-column ul li a:hover,
header nav .mega-menu-column ul li a:active,
header nav .mega-menu-column ul li a:focus {
    color: #B80443 !important;
    background-color: transparent !important;
    outline: none;
}

header nav .mega-menu-column ul li a:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}


/* Standard (non-mega) dropdown panel — glass treatment to match nav */
header nav details.dropdown>ul:not(.mega-menu-content ul) {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    /* Glass panel: same recipe as nav::before and mega menu */
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    z-index: 1001;
}

header nav details.dropdown>ul li a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #FF0630;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, backdrop-filter 0.2s ease;
}

header nav details.dropdown>ul li a:hover {
    /* Glass pill hover — consistent with mega menu link hover */
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #B80443;
}

/* --- BODY STYLING --- */

.pico.container,
.logo-heading-container {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .pico.container,
    .logo-heading-container {
        max-width: 92%;
    }
}

@media (min-width: 1280px) {
    .pico.container,
    .logo-heading-container {
        max-width: 1200px;
    }
}

@media (min-width: 1536px) {
    .pico.container,
    .logo-heading-container {
        max-width: 1450px;
    }
}

.glass-card:not(.callout-flat-color),
.section-card {
    position: relative !important;
    background: var(--glass-card-bg-layer, linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7))), #ffffff !important;
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Glass card tint background overrides to layer on top of solid white */
.glass-card.tint-corvidae-blue, .section-card.tint-corvidae-blue {
    --glass-card-bg-layer: linear-gradient(rgba(28, 22, 78, 0.10), rgba(28, 22, 78, 0.10)) !important;
}
.glass-card.tint-mid-blue, .section-card.tint-mid-blue {
    --glass-card-bg-layer: linear-gradient(rgba(62, 85, 200, 0.10), rgba(62, 85, 200, 0.10)) !important;
}
.glass-card.tint-bright-blue, .section-card.tint-bright-blue {
    --glass-card-bg-layer: linear-gradient(rgba(85, 162, 230, 0.10), rgba(85, 162, 230, 0.10)) !important;
}
.glass-card.tint-stone, .section-card.tint-stone {
    --glass-card-bg-layer: linear-gradient(rgba(107, 124, 147, 0.10), rgba(107, 124, 147, 0.10)) !important;
}
.glass-card.tint-light-blue, .section-card.tint-light-blue {
    --glass-card-bg-layer: linear-gradient(rgba(188, 222, 253, 0.40), rgba(188, 222, 253, 0.40)) !important;
}
.glass-card.tint-white, .section-card.tint-white {
    --glass-card-bg-layer: linear-gradient(rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.10)) !important;
}

/* Ensure Blockquotes inside quote blocks sit on a pristine solid white layer beneath the transparent backdrop */
.quote-block-container blockquote {
    background: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03)), #ffffff !important;
}

/* Prevent callout/glass cards from overflowing their parent grid containers and causing vertical imbalance */
.pico .page-section .callout-card,
.pico .page-section .glass-card,
.pico .full-width-callouts .callout-card,
.pico .full-width-callouts .glass-card,
.pico .grid .callout-card,
.pico .grid .glass-card {
    margin: 0 !important;
}

.pico.breadcrumbs-container,
.pico .breadcrumbs-container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    /* Horizontal padding intentionally omitted — inherited from .pico.container
       cascade in layouts.css to keep breadcrumb flush with main content gutter */
    margin-bottom: 0;
    z-index: 10;
    position: relative;
}

.pico.breadcrumbs-container ul,
.pico .breadcrumbs-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
}

.pico.breadcrumbs-container ul li,
.pico .breadcrumbs-container ul li {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0.25rem 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.pico.breadcrumbs-container ul li:not(:last-child)::after,
.pico .breadcrumbs-container ul li:not(:last-child)::after {
    display: inline-flex !important;
    align-items: center !important;
    position: static !important;
    content: "\f105" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    margin: 0 0.75rem !important;
    color: var(--pico-muted-color) !important;
    font-size: 0.75rem !important;
    width: auto !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.pico.breadcrumbs-container a,
.pico .breadcrumbs-container a {
    text-decoration: none;
    color: var(--pico-primary);
    text-decoration-color: var(--pico-underline);
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pico.breadcrumbs-container a:hover,
.pico .breadcrumbs-container a:hover {
    text-decoration: underline;
}

article.insight-page {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.glass-card.section-card,
.insights .glass-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flow-root;
}

.author-card {
    position: relative !important;
    overflow: hidden !important;
    background: rgba(28, 22, 78, 0.05) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: none;
    display: flow-root;
}

.author-card > *:not(.cta-pattern-overlay) {
    position: relative !important;
    z-index: 2 !important;
}

.insight-card {
    background-color: rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.insight-image-container .cta-pattern-overlay {
    z-index: 2 !important;
}

.insight-image-container .cta-pattern-overlay::before {
    opacity: 0.15 !important;
}

@media (max-width: 766px) {
    .glass-card.section-card {
        padding: 1.5rem;
    }

    .section-card-content {
        padding: 0.2rem;
    }
}

article.insight-page {
    padding-left: 0;
    padding-right: 0;
}

.home-background-section {

    background-image: none !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* --- MOBILE NAVIGATION --- */

.icon {
    display: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

@media screen and (max-width: 1023px) {

    header nav {
        flex-wrap: wrap;
        padding: 8px 1.5rem !important;
    }

    header nav .logo-red,
    header nav .logo-white {
        height: 42px !important;
    }

    header nav ul:first-child,
    header nav ul:first-child li,
    header nav ul:first-child li a {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    header nav ul:not(:first-child) {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
    }

    header nav ul li {
        width: 100%;
        padding: 0.5rem 0;
    }

    header nav ul li a {
        display: block;
        width: 100%;
    }

    .icon {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    header nav.responsive {

        height: auto;
        padding-bottom: 2rem;
    }

    header nav.responsive::before {
        height: 100%;
        transform: scaleY(1);
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        transition: none !important;
    }

    header nav.responsive a,
    header nav.responsive summary,
    header nav.responsive .icon {
        color: #FF0630;
    }

    header nav.responsive .icon {
        top: 29px !important;
    }

    header nav.responsive .logo-white {
        display: none !important;
    }

    header nav.responsive .logo-red {
        display: block !important;
    }

    header nav.responsive ul:not(:first-child) {
        display: flex;
    }

    header nav.responsive details.dropdown.mega-menu .mega-menu-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0.5rem 0 0.5rem 1.5rem !important;
        margin: 0 !important;
        transition: none !important;
        flex-direction: column !important;
    }

    header nav.responsive details.dropdown.mega-menu[open] .mega-menu-content {
        display: flex !important;
    }

    header nav.responsive .mega-menu-column {
        min-width: unset !important;
        margin-bottom: 0.25rem !important;
    }

    header nav.responsive .mega-menu-column h6 {
        margin: 0 0 0.25rem 0;
        border: none;
        padding: 0;
        font-size: 0.75rem;
    }

    header nav.responsive .mega-menu-column ul li a {
        transition: none !important;
        background-color: transparent !important;
        transform: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    header nav.responsive .mega-menu-column ul li a:active,
    header nav.responsive .mega-menu-column ul li a:focus {
        background-color: rgba(197, 47, 33, 0.08) !important;
        border-radius: 4px;
    }

    header nav.responsive details.dropdown ul,
    header nav.responsive details.dropdown .mega-menu-content {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 0 !important;
    }

    header nav a,
    header nav details.dropdown>summary,
    header nav details summary {
        text-shadow: none !important;
    }
}

/* --- FOOTER --- */

footer.site-footer {
    background-color: #f9f9f9;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.footer-cta {
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background-color: #FF0630;
    color: #fff;
    border-radius: var(--pico-border-radius);
}

.footer-cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-cta a[role="button"] {
    background-color: #fff;
    color: #FF0630;
    border: none;
    font-weight: 700;
}

.footer-cta a[role="button"]:hover {
    background-color: #f0f0f0;
    color: #B80443;
}

.site-footer ul {
    margin-bottom: 2rem;
}

.site-footer h5 {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    color: var(--pico-contrast);
}

.qc-admin small {
    font-size: 0.7rem;
}

.qc-hiring {
    color: #00EBA4;
    text-transform: uppercase;
}

/* --- ACCESSIBILITY & UTILITIES --- */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

.card-link:hover,
.card-link:focus,
.card-link:active {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}

.site-footer ul {
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.footer-social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
}

.footer-social-icons a {
    text-decoration: none;
}

.footer-social-icons a i {
    font-size: 1.25rem;
}

@media screen and (max-width: 1023px) {
    .footer-social-icons {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* --- SEARCH FUNCTIONALITY --- */

.search-toggle {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.5rem;
}

.search-toggle:hover,
a.search-toggle:visited {
    color: var(--pico-primary);
}

.search-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff !important;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

header nav.scrolled .search-container {
    background-color: #ffffff !important;
}

.search-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container form {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-input {
    position: absolute;
    right: 1rem;
    color: #888;
    pointer-events: none;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 1rem 0;
    font-size: 1.5rem;
    color: rgb(51, 71, 91);
    border: none;
    border-bottom: 2px solid #FF0630;
    border-radius: 0;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.search-container input[type="text"]::placeholder {
    color: #b0b0b0;
    font-weight: 300;
}

@media screen and (max-width: 1023px) {

    .search-toggle {
        display: none !important;
    }

    .search-form-item {
        width: 100%;
    }

    .search-container {
        display: block !important;
        position: static;
        padding: 0.5rem 0;
        background-color: transparent !important;
        box-shadow: none !important;
        width: 100%;
        animation: none;
        margin-bottom: 1rem;
        top: auto;
    }

    .search-container input[type="text"] {
        font-size: 1rem;
        background-color: #f0f0f0 !important;
        padding-left: 1rem;
        border-radius: 4px;
        border: 1px solid #ddd;
        color: #333 !important;
    }

    .search-container input[type="text"]::placeholder {
        color: #888;
    }

    .search-icon-input {
        color: #FF0630 !important;
        right: 0.5rem;
    }
}

/* --- WAGTAIL ADMIN FRONT END DISPLAY STYLING --- */

.home-content-body,
.service-content-body,
.after-content-body {
    padding-top: 0;
}

.after-content-body {
    margin-top: 3rem;
}

figure.content-image,
figure.standalone-image {
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    box-shadow: var(--pico-card-box-shadow);
    padding: 0;
    margin: 2rem 0;
    max-width: 1000px;
    position: relative;
    z-index: 101;
}

/* Transparent-background variant — editor-toggled via the ImageBlock checkbox.
   Removes all card styling so PNG/WebP images with alpha channels render
   directly against the page without a white surround. */
figure.standalone-image.transparent-bg {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

/* Also strip the inner padding so the image sits flush */
figure.standalone-image.transparent-bg img {
    padding: 0;
}


figure.content-image img,
figure.standalone-image img {
    border-radius: 0;
    display: block;
    width: 100%;
    height: auto;
    padding: 1rem 1rem 0 1rem;
}

.image-caption {
    padding: 1.5rem 2rem !important;
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
    background: var(--pico-card-background-color);
}

.credentials-breakout {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--pico-muted-border-color);
    border-top: 1px solid var(--pico-secondary-underline);
    border-bottom: 1px solid var(--pico-secondary-underline);
    padding: 2.5rem 0;
    margin-bottom: 0;
}

.grid.credentials {
    margin-bottom: 0;
    align-items: center;
}

.grid.credentials>div {
    display: flex;
    justify-content: center;
    align-items: center;
}

figure.standalone-video {
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    overflow: hidden;
    box-shadow: var(--pico-card-box-shadow);
    padding: 0;
    margin: 2rem 0;
    max-width: 1000px;
    position: relative;
    z-index: 101;
}

.section-card-content>figure.standalone-video,
.section-card-content>figure.standalone-image {
    margin: 2rem auto;
}

.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%;

    height: 0;
    overflow: hidden;
}

.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.standalone-image-section {
    padding: 0;
    margin: 0;
}

/* --- FOOTER CREDENTIALS SECTION --- */

.pico.qc-creds-section {
    padding: 2rem 0 1rem 0;
    background-color: rgba(245, 245, 245, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
    border-top: 1px solid var(--pico-muted-border-color);
    border-bottom: none;
    width: 100%;
    margin-left: 0;
    left: 0;
    position: relative;
    margin-bottom: 0 !important;
}

.pico.qc-creds-section h6 {
    margin: 0 0 1rem 0;
    text-align: left;
    color: var(--pico-contrast);
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.pico .creds-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.pico .creds-carousel {
    overflow: hidden;
    padding: 1rem 0;
}

.pico .creds-track {
    display: flex;
    width: max-content;
    animation: logoMarquee 80s linear infinite;
    transform: translate3d(0, 0, 0);
}

.pico .creds-carousel:hover .creds-track {
    animation-play-state: paused;
}

.pico .creds-group {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    padding-right: 3rem;
}

.pico .qc-svg-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 120px;
    flex-shrink: 0;
}

.pico .qc-svg-item svg,
.pico .qc-svg-item img {
    width: auto !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.4s ease-in-out;
}

.pico .qc-svg-item svg:hover,
.pico .qc-svg-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.pico #google-partner-premier {
    width: 92px !important;
}

.pico #google-cert,
.pico #google-sales {
    width: 210px !important;
    max-height: 66px !important;
}

@media (max-width: 768px) {
    .pico .creds-track {
        animation-duration: 40s;
    }

    .pico .creds-group {
        gap: 1.5rem;
        padding-right: 1.5rem;
    }

    .pico .qc-svg-item {
        height: 72px;
        padding: 0.5rem;
    }

    .pico #google-partner-premier {
        width: 58px !important;
    }

    .pico #google-cert,
    .pico #google-sales {
        width: 128px !important;
        max-height: 40px !important;
    }
}

/* --- EXTERNAL LINKS --- */

.external-link::after {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.6em;
    vertical-align: super;
    margin-left: 0.3rem;
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.external-link:hover::after {
    opacity: 1;
}

.gartner-logo {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 2rem 0;
}

/* Style page copy contact-button anchor links as standard Pico buttons */
main.pico a[href="#contact-button"],
main.pico a.contact-button {
    display: inline-block;
    background-color: #FF0630 !important;
    color: var(--pico-primary-inverse) !important;
    border: var(--pico-border-width) solid #FF0630 !important;
    border-radius: var(--pico-border-radius);
    padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
    font-size: 1rem;
    font-weight: var(--pico-font-weight, 600);
    line-height: var(--pico-line-height);
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: var(--pico-button-box-shadow, none);
    transition: background-color var(--pico-transition), border-color var(--pico-transition), box-shadow var(--pico-transition), color var(--pico-transition);
}

main.pico a[href="#contact-button"]:hover,
main.pico a.contact-button:hover,
main.pico a[href="#contact-button"]:active,
main.pico a.contact-button:active,
main.pico a[href="#contact-button"]:focus,
main.pico a.contact-button:focus {
    background-color: #B80443 !important;
    border-color: #B80443 !important;
    color: var(--pico-primary-inverse) !important;
    text-decoration: none !important;
}

/* --- Section Background Helper Classes --- */

/* Standardize vertical padding across all page sections for visual consistency */
.pico .page-section,
.page-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
}

.page-section.has-bg {
    position: relative !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Eliminate sub-pixel gaps between consecutive full-bleed background sections */
.page-section.has-bg + .page-section.has-bg {
    margin-top: -1px !important;
}

/* Zero out default Pico block spacing margins on any inner nested section elements */
.page-section section,
.page-section .kpi-carousel-section,
.page-section .image-carousel-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure full-bleed translateX(-50%) is preserved during page-load scroll animations */
@media (min-width: 1024px) {
    html.js-enabled .page-section.has-bg {
        transform: translateX(-50%) translate3d(0, 40px, 0) scale(0.985) !important;
    }
}

@media (max-width: 1023px) {
    html.js-enabled .page-section.has-bg {
        transform: translateX(-50%) translate3d(0, 25px, 0) !important;
    }
}

html.js-enabled .page-section.has-bg.animate-in {
    transform: translateX(-50%) translate3d(0, 0, 0) scale(1) !important;
}

.page-section.has-bg .section-container {
    max-width: 1300px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    .page-section.has-bg .section-container {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* Color definitions with full opacity (1) to prevent background showing through */

.page-section.has-bg.bg-fog {
    background-color: rgba(246, 246, 249, 1) !important;
}

.page-section.has-bg.bg-corvidae-blue {
    background-color: rgba(28, 22, 78, 1) !important;
}

.page-section.has-bg.bg-qc-red {
    background-color: rgba(255, 6, 48, 1) !important;
}

.page-section.has-bg.bg-slate {
    background-color: rgba(71, 73, 90, 1) !important;
}

.page-section.has-bg.bg-teal {
    background-color: rgba(0, 155, 174, 1) !important;
}

.page-section.has-bg.bg-petrol {
    background-color: rgba(78, 123, 155, 1) !important;
}

.page-section.has-bg.bg-yellow {
    background-color: rgba(255, 182, 114, 1) !important;
}

.page-section.has-bg.bg-pink {
    background-color: rgba(255, 109, 156, 1) !important;
}

.page-section.has-bg.bg-purple {
    background-color: rgba(187, 101, 255, 1) !important;
}

/* QC Red White Text Legibility Overrides */

.page-section.has-bg.bg-qc-red {
    color: #ffffff;
}

.page-section.has-bg.bg-qc-red h1,
.page-section.has-bg.bg-qc-red h2,
.page-section.has-bg.bg-qc-red h3,
.page-section.has-bg.bg-qc-red h4,
.page-section.has-bg.bg-qc-red h5,
.page-section.has-bg.bg-qc-red h6,
.page-section.has-bg.bg-qc-red p,
.page-section.has-bg.bg-qc-red li,
.page-section.has-bg.bg-qc-red span,
.page-section.has-bg.bg-qc-red label,
.page-section.has-bg.bg-qc-red small,
.page-section.has-bg.bg-qc-red strong {
    color: #ffffff;
}

.page-section.has-bg.bg-qc-red a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button) {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 255, 255, 0.5) !important;
    transition: text-decoration-color var(--pico-transition, 0.2s) ease !important;
}

.page-section.has-bg.bg-qc-red a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-qc-red a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-qc-red a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus {
    text-decoration-color: rgba(255, 255, 255, 1) !important;
}

.page-section.has-bg.bg-qc-red .section-subheadline {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-left: 3px solid #ffffff !important;
}

/* White button styling on QC Red background with red text */
.page-section.has-bg.bg-qc-red a[href="#contact-button"],
.page-section.has-bg.bg-qc-red a.contact-button {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #FF0630 !important;
    text-decoration: none !important;
}

.page-section.has-bg.bg-qc-red a[href="#contact-button"]:hover,
.page-section.has-bg.bg-qc-red a.contact-button:hover,
.page-section.has-bg.bg-qc-red a[href="#contact-button"]:active,
.page-section.has-bg.bg-qc-red a.contact-button:active,
.page-section.has-bg.bg-qc-red a[href="#contact-button"]:focus,
.page-section.has-bg.bg-qc-red a.contact-button:focus {
    background-color: #f0f0f0 !important;
    border-color: #f0f0f0 !important;
    color: #B80443 !important;
    text-decoration: none !important;
}

/* Dark Backgrounds Override (Corvidae Blue, Slate, Teal, Petrol)
   - White text and headlines and links
   - Red buttons are kept standard
   - Yellow (#FFB672) Section Sub-Headline and vertical line
*/
.page-section.has-bg.bg-corvidae-blue,
.page-section.has-bg.bg-slate,
.page-section.has-bg.bg-teal,
.page-section.has-bg.bg-petrol {
    color: #ffffff;
}

.page-section.has-bg.bg-corvidae-blue h1, .page-section.has-bg.bg-corvidae-blue h2, .page-section.has-bg.bg-corvidae-blue h3, .page-section.has-bg.bg-corvidae-blue h4, .page-section.has-bg.bg-corvidae-blue h5, .page-section.has-bg.bg-corvidae-blue h6,
.page-section.has-bg.bg-corvidae-blue p, .page-section.has-bg.bg-corvidae-blue li, .page-section.has-bg.bg-corvidae-blue span, .page-section.has-bg.bg-corvidae-blue label, .page-section.has-bg.bg-corvidae-blue small, .page-section.has-bg.bg-corvidae-blue strong,
.page-section.has-bg.bg-slate h1, .page-section.has-bg.bg-slate h2, .page-section.has-bg.bg-slate h3, .page-section.has-bg.bg-slate h4, .page-section.has-bg.bg-slate h5, .page-section.has-bg.bg-slate h6,
.page-section.has-bg.bg-slate p, .page-section.has-bg.bg-slate li, .page-section.has-bg.bg-slate span, .page-section.has-bg.bg-slate label, .page-section.has-bg.bg-slate small, .page-section.has-bg.bg-slate strong,
.page-section.has-bg.bg-teal h1, .page-section.has-bg.bg-teal h2, .page-section.has-bg.bg-teal h3, .page-section.has-bg.bg-teal h4, .page-section.has-bg.bg-teal h5, .page-section.has-bg.bg-teal h6,
.page-section.has-bg.bg-teal p, .page-section.has-bg.bg-teal li, .page-section.has-bg.bg-teal span, .page-section.has-bg.bg-teal label, .page-section.has-bg.bg-teal small, .page-section.has-bg.bg-teal strong,
.page-section.has-bg.bg-petrol h1, .page-section.has-bg.bg-petrol h2, .page-section.has-bg.bg-petrol h3, .page-section.has-bg.bg-petrol h4, .page-section.has-bg.bg-petrol h5, .page-section.has-bg.bg-petrol h6,
.page-section.has-bg.bg-petrol p, .page-section.has-bg.bg-petrol li, .page-section.has-bg.bg-petrol span, .page-section.has-bg.bg-petrol label, .page-section.has-bg.bg-petrol small, .page-section.has-bg.bg-petrol strong {
    color: #ffffff;
}

.page-section.has-bg.bg-corvidae-blue a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button),
.page-section.has-bg.bg-slate a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button),
.page-section.has-bg.bg-teal a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button),
.page-section.has-bg.bg-petrol a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button) {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 255, 255, 0.5) !important;
    transition: text-decoration-color var(--pico-transition, 0.2s) ease !important;
}

.page-section.has-bg.bg-corvidae-blue a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-corvidae-blue a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-corvidae-blue a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus,
.page-section.has-bg.bg-slate a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-slate a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-slate a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus,
.page-section.has-bg.bg-teal a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-teal a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-teal a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus,
.page-section.has-bg.bg-petrol a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-petrol a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-petrol a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus {
    text-decoration-color: rgba(255, 255, 255, 1) !important;
}

.page-section.has-bg.bg-corvidae-blue .section-subheadline,
.page-section.has-bg.bg-slate .section-subheadline,
.page-section.has-bg.bg-teal .section-subheadline,
.page-section.has-bg.bg-petrol .section-subheadline {
    color: #FFB672 !important;
    -webkit-text-fill-color: #FFB672 !important;
    border-left: 3px solid #FFB672 !important;
}

/* Pink & Purple Backgrounds Override (Using Cherry scheme for perfect contrast & accessibility)
   - No change to normal text/buttons
   - Cherry (#B80443) Section Sub-Headline and vertical line
   - Cherry (#B80443) links with 50% transparent underline, transitioning to 100% opaque deep Cherry (#8F0233) on hover
*/
.page-section.has-bg.bg-pink .section-subheadline,
.page-section.has-bg.bg-purple .section-subheadline {
    color: #B80443 !important;
    -webkit-text-fill-color: #B80443 !important;
    border-left: 3px solid #B80443 !important;
}

.page-section.has-bg.bg-pink a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button),
.page-section.has-bg.bg-purple a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button) {
    color: #B80443 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(184, 4, 67, 0.5) !important;
    transition: text-decoration-color var(--pico-transition, 0.2s) ease !important;
}

.page-section.has-bg.bg-pink a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-purple a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):hover,
.page-section.has-bg.bg-pink a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-purple a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):active,
.page-section.has-bg.bg-pink a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus,
.page-section.has-bg.bg-purple a:not([href="#contact-button"]):not(.contact-button):not(.button):not(.pico-button):focus {
    color: #8F0233 !important;
    text-decoration-color: rgba(143, 2, 51, 1) !important;
}

/* Unordered and Ordered Lists Bullet Colors for Theme Variants */

/* QC Red Variant */
.page-section.has-bg.bg-qc-red ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before {
    color: #ffffff;
}
.page-section.has-bg.bg-qc-red ol li::before {
    background-color: #ffffff;
    color: #FF0630;
}

/* Dark Variants (Corvidae Blue, Slate, Teal, Petrol) */
.page-section.has-bg.bg-corvidae-blue ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before,
.page-section.has-bg.bg-slate ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before,
.page-section.has-bg.bg-teal ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before,
.page-section.has-bg.bg-petrol ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before {
    color: #FFB672;
}
.page-section.has-bg.bg-corvidae-blue ol li::before {
    background-color: #FFB672;
    color: #1c164e;
}
.page-section.has-bg.bg-slate ol li::before {
    background-color: #FFB672;
    color: #47495a;
}
.page-section.has-bg.bg-teal ol li::before {
    background-color: #FFB672;
    color: #009bae;
}
.page-section.has-bg.bg-petrol ol li::before {
    background-color: #FFB672;
    color: #4e7b9b;
}

/* Pink and Purple Variants */
.page-section.has-bg.bg-pink ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before,
.page-section.has-bg.bg-purple ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before {
    color: #B80443;
}
.page-section.has-bg.bg-pink ol li::before,
.page-section.has-bg.bg-purple ol li::before {
    background-color: #B80443;
    color: #ffffff;
}

/* Fog and Yellow Variants */
.page-section.has-bg.bg-fog ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before,
.page-section.has-bg.bg-yellow ul:not(.mega-menu-content ul):not(.breadcrumbs-container ul):not(.search-icon ul) li::before {
    color: #FF0630;
}
.page-section.has-bg.bg-fog ol li::before,
.page-section.has-bg.bg-yellow ol li::before {
    background-color: #FF0630;
    color: #ffffff;
}


/* =============================================================================
   FORM CONTRAST STYLING FOR BACKGROUND-TINTED SECTIONS
   ============================================================================= */

/* Dark backgrounds: Corvidae Blue, QC Red, Slate, Teal, Petrol, Purple */
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper,
.page-section.has-bg.bg-qc-red .pico-form-wrapper,
.page-section.has-bg.bg-slate .pico-form-wrapper,
.page-section.has-bg.bg-teal .pico-form-wrapper,
.page-section.has-bg.bg-petrol .pico-form-wrapper,
.page-section.has-bg.bg-purple .pico-form-wrapper {
    color: #ffffff;
}

.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper label,
.page-section.has-bg.bg-qc-red .pico-form-wrapper label,
.page-section.has-bg.bg-slate .pico-form-wrapper label,
.page-section.has-bg.bg-teal .pico-form-wrapper label,
.page-section.has-bg.bg-petrol .pico-form-wrapper label,
.page-section.has-bg.bg-purple .pico-form-wrapper label {
    color: #ffffff !important;
}

.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper .help-text,
.page-section.has-bg.bg-qc-red .pico-form-wrapper .help-text,
.page-section.has-bg.bg-slate .pico-form-wrapper .help-text,
.page-section.has-bg.bg-teal .pico-form-wrapper .help-text,
.page-section.has-bg.bg-petrol .pico-form-wrapper .help-text,
.page-section.has-bg.bg-purple .pico-form-wrapper .help-text,
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper .recaptcha-disclaimer,
.page-section.has-bg.bg-qc-red .pico-form-wrapper .recaptcha-disclaimer,
.page-section.has-bg.bg-slate .pico-form-wrapper .recaptcha-disclaimer,
.page-section.has-bg.bg-teal .pico-form-wrapper .recaptcha-disclaimer,
.page-section.has-bg.bg-petrol .pico-form-wrapper .recaptcha-disclaimer,
.page-section.has-bg.bg-purple .pico-form-wrapper .recaptcha-disclaimer {
    color: rgba(255, 255, 255, 0.7) !important;
}

.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper .recaptcha-disclaimer a,
.page-section.has-bg.bg-qc-red .pico-form-wrapper .recaptcha-disclaimer a,
.page-section.has-bg.bg-slate .pico-form-wrapper .recaptcha-disclaimer a,
.page-section.has-bg.bg-teal .pico-form-wrapper .recaptcha-disclaimer a,
.page-section.has-bg.bg-petrol .pico-form-wrapper .recaptcha-disclaimer a,
.page-section.has-bg.bg-purple .pico-form-wrapper .recaptcha-disclaimer a {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Form Inputs inside Dark Background Sections: pristine, high-contrast white background inputs */
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper select,
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper textarea,
.page-section.has-bg.bg-qc-red .pico-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
.page-section.has-bg.bg-qc-red .pico-form-wrapper select,
.page-section.has-bg.bg-qc-red .pico-form-wrapper textarea,
.page-section.has-bg.bg-slate .pico-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
.page-section.has-bg.bg-slate .pico-form-wrapper select,
.page-section.has-bg.bg-slate .pico-form-wrapper textarea,
.page-section.has-bg.bg-teal .pico-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
.page-section.has-bg.bg-teal .pico-form-wrapper select,
.page-section.has-bg.bg-teal .pico-form-wrapper textarea,
.page-section.has-bg.bg-petrol .pico-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
.page-section.has-bg.bg-petrol .pico-form-wrapper select,
.page-section.has-bg.bg-petrol .pico-form-wrapper textarea,
.page-section.has-bg.bg-purple .pico-form-wrapper input:not([type="checkbox"]):not([type="radio"]),
.page-section.has-bg.bg-purple .pico-form-wrapper select,
.page-section.has-bg.bg-purple .pico-form-wrapper textarea {
    background-color: #ffffff !important;
    color: #1c1c1c !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

/* Fieldset Borders inside Dark Sections */
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper fieldset,
.page-section.has-bg.bg-qc-red .pico-form-wrapper fieldset,
.page-section.has-bg.bg-slate .pico-form-wrapper fieldset,
.page-section.has-bg.bg-teal .pico-form-wrapper fieldset,
.page-section.has-bg.bg-petrol .pico-form-wrapper fieldset,
.page-section.has-bg.bg-purple .pico-form-wrapper fieldset {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Fieldset Legends: background matching active block theme */
.page-section.has-bg.bg-corvidae-blue .pico-form-wrapper fieldset legend {
    background-color: rgb(28, 22, 78) !important;
    color: #ffffff !important;
}
.page-section.has-bg.bg-qc-red .pico-form-wrapper fieldset legend {
    background-color: rgb(255, 6, 48) !important;
    color: #ffffff !important;
}
.page-section.has-bg.bg-slate .pico-form-wrapper fieldset legend {
    background-color: rgb(71, 73, 90) !important;
    color: #ffffff !important;
}
.page-section.has-bg.bg-teal .pico-form-wrapper fieldset legend {
    background-color: rgb(0, 155, 174) !important;
    color: #ffffff !important;
}
.page-section.has-bg.bg-petrol .pico-form-wrapper fieldset legend {
    background-color: rgb(78, 123, 155) !important;
    color: #ffffff !important;
}
.page-section.has-bg.bg-purple .pico-form-wrapper fieldset legend {
    background-color: rgb(187, 101, 255) !important;
    color: #ffffff !important;
}

/* Light backgrounds style: Fog, Yellow, Pink */
.page-section.has-bg.bg-fog .pico-form-wrapper fieldset legend {
    background-color: rgb(246, 246, 249) !important;
}
.page-section.has-bg.bg-yellow .pico-form-wrapper fieldset legend {
    background-color: rgb(255, 182, 114) !important;
}
.page-section.has-bg.bg-pink .pico-form-wrapper fieldset legend {
    background-color: rgb(255, 109, 156) !important;
}

/* Remove top padding for embedded form block sections to run directly into the previous element */
.pico .page-section.block-embedded_form,
.page-section.block-embedded_form {
    padding-top: 0 !important;
}

/* Reduce top padding on callout blocks by half to improve rhythmic content flow following text sections */
.pico .page-section.block-callout_block,
.page-section.block-callout_block,
.pico .page-section.block-callout,
.page-section.block-callout {
    padding-top: 2.75rem !important;
}

/* =============================================================================
   HIGH-CONTRAST TEXT PROTECTION FOR LIGHT CARDS ON DARK BACKGROUNDS
   Ensures that light-themed blocks (Quotes, KPI Tiles, Callouts, FAQs)
   retain high-contrast dark text when parent section colors are changed.
   ============================================================================ */

/* 1. Quotes / Blockquotes */
.page-section.has-bg .quote-block-container blockquote,
.page-section.has-bg .quote-block-container blockquote p,
.page-section.has-bg .quote-block-container blockquote span,
.page-section.has-bg .quote-block-container blockquote strong,
.page-section.has-bg .quote-block-container blockquote li,
.quote-block-container blockquote,
.quote-block-container blockquote p,
.quote-block-container blockquote span,
.quote-block-container blockquote strong,
.quote-block-container blockquote li {
    color: #373c44 !important;
}
.quote-block-container blockquote cite,
.page-section.has-bg .quote-block-container blockquote cite {
    color: #373c44 !important;
}

/* 2. KPI Tiles */
.page-section.has-bg .kpi-tile,
.page-section.has-bg .kpi-tile p,
.page-section.has-bg .kpi-tile span,
.page-section.has-bg .kpi-tile strong,
.page-section.has-bg .kpi-tile li,
.page-section.has-bg .kpi-tile a:not(.button) {
    color: var(--theme-text-color, #1c164e) !important;
}

/* 3. Callout Cards / Glass Cards */
.page-section.has-bg .callout-card:not(.callout-flat-color),
.page-section.has-bg .callout-card:not(.callout-flat-color) h4,
.page-section.has-bg .callout-card:not(.callout-flat-color) p,
.page-section.has-bg .callout-card:not(.callout-flat-color) li,
.page-section.has-bg .callout-card:not(.callout-flat-color) span,
.page-section.has-bg .callout-card:not(.callout-flat-color) strong,
.page-section.has-bg .callout-card:not(.callout-flat-color) a:not(.button),
.page-section.has-bg .glass-card:not(.callout-flat-color),
.page-section.has-bg .glass-card:not(.callout-flat-color) h4,
.page-section.has-bg .glass-card:not(.callout-flat-color) p,
.page-section.has-bg .glass-card:not(.callout-flat-color) li,
.page-section.has-bg .glass-card:not(.callout-flat-color) span,
.page-section.has-bg .glass-card:not(.callout-flat-color) strong,
.page-section.has-bg .glass-card:not(.callout-flat-color) a:not(.button) {
    color: var(--callout-heading-color, #373c44) !important;
}

/* 4. FAQs */
.page-section.has-bg .faq-block-container,
.page-section.has-bg .faq-block-container .faq-question-text,
.page-section.has-bg .faq-block-container .faq-icon,
.page-section.has-bg .faq-block-container .faq-answer,
.page-section.has-bg .faq-block-container .faq-answer p,
.page-section.has-bg .faq-block-container .faq-answer li {
    color: #373c44 !important;
}

/* 5. Form Alerts (Success & Error messages on background-tinted sections) */
.pico .page-section.has-bg .alert,
.pico .page-section.has-bg .pico-form-wrapper .alert {
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pico .page-section.has-bg .alert-success,
.pico .page-section.has-bg .pico-form-wrapper .alert-success {
    background-color: #ffffff;
    border: 1px solid rgba(39, 174, 96, 0.4);
    border-left: 5px solid #27ae60;
}

.pico .page-section.has-bg .alert-success h3,
.pico .page-section.has-bg .pico-form-wrapper .alert-success h3 {
    color: #1c164e;
    margin-bottom: 0.25rem;
}

.pico .page-section.has-bg .alert-success p,
.pico .page-section.has-bg .pico-form-wrapper .alert-success p {
    color: #373c44;
    font-weight: 500;
}

.pico .page-section.has-bg .alert-danger,
.pico .page-section.has-bg .pico-form-wrapper .alert-danger {
    background-color: #ffffff;
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-left: 5px solid #e74c3c;
}

.pico .page-section.has-bg .alert-danger h3,
.pico .page-section.has-bg .pico-form-wrapper .alert-danger h3,
.pico .page-section.has-bg .alert-danger p,
.pico .page-section.has-bg .pico-form-wrapper .alert-danger p {
    color: #c0392b;
}

/* =============================================================================
   CONSECUTIVE SAME-COLOR SECTION ALIGNMENT & HAIRLINE GAP ELIMINATION
   ============================================================================= */

/* 1. Prevent subpixel hairline gaps by adding a robust 2px overlap on consecutive same-color sections */
.page-section.bg-slate + .page-section.bg-slate,
.page-section.bg-corvidae-blue + .page-section.bg-corvidae-blue,
.page-section.bg-teal + .page-section.bg-teal,
.page-section.bg-petrol + .page-section.bg-petrol,
.page-section.bg-fog + .page-section.bg-fog,
.page-section.bg-yellow + .page-section.bg-yellow,
.page-section.bg-pink + .page-section.bg-pink,
.page-section.bg-purple + .page-section.bg-purple,
.page-section.bg-qc-red + .page-section.bg-qc-red {
    margin-top: -2px !important;
}

/* 2. Grouped same-color block animation adjustments.
   Disable translate/scale transforms entirely across the group to treat them as a single continuous block.
   For the first block in the group, let it fade in smoothly. For subsequent blocks, render them instantly
   with full visibility (no separate fade-in required), eliminating any splitting seams or line gaps. */

/* --- First Block in Same-Color Group: Static Transform, Smooth Opacity Transition --- */
html.js-enabled .page-section.bg-slate:has(+ .page-section.bg-slate),
html.js-enabled .page-section.bg-corvidae-blue:has(+ .page-section.bg-corvidae-blue),
html.js-enabled .page-section.bg-teal:has(+ .page-section.bg-teal),
html.js-enabled .page-section.bg-petrol:has(+ .page-section.bg-petrol),
html.js-enabled .page-section.bg-fog:has(+ .page-section.bg-fog),
html.js-enabled .page-section.bg-yellow:has(+ .page-section.bg-yellow),
html.js-enabled .page-section.bg-pink:has(+ .page-section.bg-pink),
html.js-enabled .page-section.bg-purple:has(+ .page-section.bg-purple),
html.js-enabled .page-section.bg-qc-red:has(+ .page-section.bg-qc-red) {
    transform: translateX(-50%) translate3d(0, 0, 0) scale(1) !important;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* --- Second and Subsequent Blocks in Group: Fully Static, Already Visible, Zero Transition Delay --- */
html.js-enabled .page-section.bg-slate + .page-section.bg-slate,
html.js-enabled .page-section.bg-corvidae-blue + .page-section.bg-corvidae-blue,
html.js-enabled .page-section.bg-teal + .page-section.bg-teal,
html.js-enabled .page-section.bg-petrol + .page-section.bg-petrol,
html.js-enabled .page-section.bg-fog + .page-section.bg-fog,
html.js-enabled .page-section.bg-yellow + .page-section.bg-yellow,
html.js-enabled .page-section.bg-pink + .page-section.bg-pink,
html.js-enabled .page-section.bg-purple + .page-section.bg-purple,
html.js-enabled .page-section.bg-qc-red + .page-section.bg-qc-red {
    opacity: 1 !important;
    transform: translateX(-50%) translate3d(0, 0, 0) scale(1) !important;
    transition: none !important;
}


/* Reduce vertical padding of Image, Video, and FAQ blocks to align with callout styling */
.pico .page-section.block-image,
.page-section.block-image,
.pico .page-section.block-video,
.page-section.block-video,
.pico .page-section.block-faq_block,
.page-section.block-faq_block {
    padding-top: 0.6875rem !important;   /* Half of 1.375rem */
    padding-bottom: 0.6875rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Eliminate default block/spacing margins on nested figures inside Image/Video blocks */
.page-section.block-image figure,
.page-section.block-video figure {
    margin: 0 !important;
    padding: 0 !important;
}

/* =============================================================================
   TARGETED PARAGRAPH BACKGROUND FIX: SEGMENT OUT COLOR FROM LAYOUT
   ============================================================================= */
.page-section.block-paragraph.has-bg {
    position: relative !important;
    width: auto !important;
    left: auto !important;
    transform: none !important;
    background: none !important;
}

/* Redefine section-container inside colored paragraphs to match transparent flow */
.page-section.block-paragraph.has-bg .section-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Use a background pseudo-element to render color full-bleed without shifting content layout */
.page-section.block-paragraph.has-bg::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    z-index: -1 !important;
    background-color: transparent !important;
}

/* Override scroll animations specifically for colored paragraphs to prevent horizontal shifts */
@media (min-width: 1024px) {
    html.js-enabled .page-section.block-paragraph.has-bg {
        transform: translate3d(0, 40px, 0) scale(0.985) !important;
    }
}

@media (max-width: 1023px) {
    html.js-enabled .page-section.block-paragraph.has-bg {
        transform: translate3d(0, 25px, 0) !important;
    }
}

html.js-enabled .page-section.block-paragraph.has-bg.animate-in {
    transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Map individual background colors onto the paragraph's pseudo-element */
.page-section.block-paragraph.has-bg.bg-slate::before {
    background-color: rgba(71, 73, 90, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-corvidae-blue::before {
    background-color: rgba(28, 22, 78, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-teal::before {
    background-color: rgba(0, 155, 174, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-petrol::before {
    background-color: rgba(78, 123, 155, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-fog::before {
    background-color: rgba(246, 246, 249, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-yellow::before {
    background-color: rgba(255, 182, 114, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-pink::before {
    background-color: rgba(255, 109, 156, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-purple::before {
    background-color: rgba(187, 101, 255, 1) !important;
}
.page-section.block-paragraph.has-bg.bg-qc-red::before {
    background-color: rgba(255, 6, 48, 1) !important;
}

/* Force the outer insights container to be transparent, overriding generic glass-card white backgrounds */
article.glass-card.insights-outer-card {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem 0 !important;
    margin: 0 !important;
}


