/* Additional theme styles for block theme */

/* ------------------------------------------------------ */
/* MSP typography scale — 5 sizes                         */
/* caption 14px | body 18px | lead 20px | heading 32px   */
/* display fluid hero                                     */
/* ------------------------------------------------------ */
:root {
    --msp-type-caption: 0.875rem;
    --msp-type-body: 1.125rem;
    --msp-type-lead: 1.25rem;
    --msp-type-heading: 2rem;
    --msp-type-display: clamp(2.75rem, 5vw, 4.5rem);
}

.text-caption { font-size: var(--msp-type-caption); }
.text-body { font-size: var(--msp-type-body); }
.text-lead { font-size: var(--msp-type-lead); }
.text-heading { font-size: var(--msp-type-heading); }
.text-display { font-size: var(--msp-type-display); }

/* WordPress preset classes (current + legacy slugs) */
.has-caption-font-size,
.has-small-font-size { font-size: var(--msp-type-caption) !important; }

.has-body-font-size,
.has-medium-font-size { font-size: var(--msp-type-body) !important; }

.has-lead-font-size,
.has-large-font-size,
.has-x-large-font-size { font-size: var(--msp-type-lead) !important; }

.has-heading-font-size,
.has-xx-large-font-size { font-size: var(--msp-type-heading) !important; }

.has-display-font-size,
.has-huge-font-size { font-size: var(--msp-type-display) !important; }

/* Custom scrollbar to match theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F39900; 
}

::-webkit-scrollbar-thumb {
    background: #111635; 
    border-radius: 15px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d1129; 
}

/* Body styling – font from Customizer (uploaded fonts) or system stack */
body {
    background-color: #F39900;
    font-size: var(--msp-type-body);
}

/* Custom Logo Styling */
.custom-logo-link {
    display: inline-block;
}

.custom-logo-link img,
.custom-logo {
    height: auto;
    max-height: 96px;
    width: auto;
    max-width: 400px;
}

@media (min-width: 768px) {
    .custom-logo-link img,
    .custom-logo {
        max-height: 96px;
    }
}

/* Ensure logo maintains styling */
.custom-logo-link img {
    object-fit: contain;
    filter: brightness(0) invert(0.1) contrast(5);
}

/* Tailwind-like utility classes for compatibility */
.bg-background-light,
.bg-background-dark {
    background-color: #F39900;
}

.text-accent-navy {
    color: #111635;
}

.text-accent-grey {
    color: #74787e;
}

/* Navigation block – color/weight only; font size from Site Editor applies on frontend */
.wp-block-navigation .wp-block-navigation-item a {
    color: #111635;
    font-weight: 700;
    transition: opacity 0.3s;
}

.wp-block-navigation .wp-block-navigation-item a:hover {
    opacity: 0.7;
}

/* Hierarchical (dropdown) menu – primary nav in header */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
header nav > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}
header nav .menu-item-has-children {
    position: relative;
}
header nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
header nav .msp-nav-dropdown-icon {
    display: inline-flex;
    transition: transform 0.2s ease;
}
header nav .menu-item-has-children:hover > a .msp-nav-dropdown-icon {
    transform: rotate(180deg);
}
header nav .sub-menu,
header nav .msp-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
    margin: 0;
    padding: 0.5rem 0;
    background: #F39900;
    border: 1px solid rgba(17, 22, 53, 0.15);
    border-radius: 15px;
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
    list-style: none;
}
header nav .menu-item-has-children:hover > .sub-menu,
header nav .menu-item-has-children:hover > .msp-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
header nav .sub-menu li,
header nav .msp-nav-dropdown li {
    display: block;
    margin: 0;
}
header nav .sub-menu a,
header nav .msp-nav-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #111635;
    font-size: var(--msp-type-caption);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
header nav .sub-menu a:hover,
header nav .msp-nav-dropdown a:hover {
    background: rgba(17, 22, 53, 0.08);
    opacity: 0.9;
}
header nav .sub-menu .menu-item-has-children,
header nav .msp-nav-dropdown .menu-item-has-children {
    position: relative;
}
header nav .sub-menu .sub-menu,
header nav .sub-menu .msp-nav-dropdown,
header nav .msp-nav-dropdown .sub-menu,
header nav .msp-nav-dropdown .msp-nav-dropdown {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.25rem;
}
header nav .sub-menu .menu-item-has-children:hover > .sub-menu,
header nav .sub-menu .menu-item-has-children:hover > .msp-nav-dropdown,
header nav .msp-nav-dropdown .menu-item-has-children:hover > .sub-menu,
header nav .msp-nav-dropdown .menu-item-has-children:hover > .msp-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Social icons styling to match original design */
.flex.gap-4 {
    display: flex;
    gap: 1rem;
}

.flex.gap-4 a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(17, 22, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111635;
    transition: all 0.3s ease;
    text-decoration: none;
}

.flex.gap-4 a:hover {
    background-color: #111635;
    color: #ffffff;
}

.flex.gap-4 a svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Fixed header - stays at top when scrolling */
body > header,
.site-header,
#site-header,
header.sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 50;
}
/* Reserve space so content is not hidden under fixed header */
body {
    background-color: #F39900 !important;
    min-height: 100vh;
    padding-top: 7rem;
}
body.msp-no-header {
    padding-top: 0 !important;
}
@media (min-width: 768px) {
    body {
        padding-top: 8rem;
    }
    body.msp-no-header {
        padding-top: 0 !important;
    }
}

/* Ensure html also has orange background */
html {
    background-color: #F39900;
}

/* Fix for constrained layout max-width */
.wp-block-group.wp-block-group-is-layout-constrained > .wp-block-group__inner-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Header and footer constrained layout */
header.wp-block-group.alignfull .wp-block-group.wp-block-group-is-layout-constrained,
footer.wp-block-group.alignfull .wp-block-group.wp-block-group-is-layout-constrained {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation block item content – font size from Site Editor applies on frontend */
.wp-block-navigation .wp-block-navigation-item__content {
    color: #111635;
    font-weight: 700;
    transition: opacity 0.3s;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
    opacity: 0.7;
}

/* Button styling - WordPress blocks */
.wp-block-button__link.has-accent-navy-background-color {
    background-color: #111635 !important;
    color: #ffffff !important;
    border-radius: 15px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: var(--msp-type-body);
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1);
    text-decoration: none;
    border: none;
}

.wp-block-button__link.has-accent-navy-background-color:hover {
    opacity: 0.9;
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1);
}

.wp-block-button__link.has-border-color {
    border: 2px solid #111635 !important;
    background-color: transparent !important;
    color: #111635 !important;
    border-radius: 15px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: var(--msp-type-body);
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button__link.has-border-color:hover {
    background-color: #111635 !important;
    color: #ffffff !important;
}

/* Buttons block: keep space between adjacent buttons */
.wp-block-buttons,
.wp-block-buttons.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Tailwind utility classes for buttons */
.bg-accent-navy {
    background-color: #111635 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-accent-navy {
    color: #111635 !important;
}

.rounded-lg,
.entry-content .rounded-lg {
    border-radius: 15px !important;
}

.h-12,
.entry-content .h-12 {
    height: 3rem !important;
    min-height: 3rem !important;
}

.px-8,
.entry-content .px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.text-base {
    font-size: var(--msp-type-body);
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.shadow-xl {
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1);
}

.shadow-accent-navy\/10,
[class*="shadow-accent-navy"] {
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1);
}

.shadow-sm,
.shadow,
.shadow-md,
.shadow-lg,
.shadow-2xl {
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1) !important;
}

/* Reusable 3D pop-card border effect */
.msp-pop-card {
    border-style: solid !important;
    border-width: 1px !important;
    border-top-color: rgba(255, 255, 255, 0.35) !important;
    border-left-color: rgba(255, 255, 255, 0.35) !important;
    border-right-color: rgba(17, 22, 53, 0.35) !important;
    border-bottom-color: rgba(17, 22, 53, 0.35) !important;
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1) !important;
}

.msp-pop-card:hover {
    border-top-color: rgba(255, 255, 255, 0.45) !important;
    border-left-color: rgba(255, 255, 255, 0.45) !important;
    border-right-color: rgba(17, 22, 53, 0.45) !important;
    border-bottom-color: rgba(17, 22, 53, 0.45) !important;
}

/* Team Grid — fill parent block width, left-to-right in config order */
.msp-team-grid-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.msp-pop-container .msp-team-grid-block {
    padding: 0 !important;
}

.msp-team-masonry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

.msp-team-masonry--1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .msp-team-masonry--2,
    .msp-team-masonry--3,
    .msp-team-masonry--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .msp-team-masonry--3,
    .msp-team-masonry--4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .msp-team-masonry--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.msp-team-masonry-item {
    width: 100%;
    min-width: 0;
}

.msp-team-masonry-card,
.msp-team-masonry-card:hover {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
    /* Clip photo to radius without a light fringe at the corners */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(#fff, #000);
}

.msp-pop-container {
    padding: 2.5rem;
    border-radius: 15px !important;
}

/* Reduce nested spacing when Content with Image sits in MSP Pop Container */
.msp-pop-container .msp-content-image-block {
    padding: 0 !important;
}

.msp-pop-container .msp-content-image-block > .mx-auto {
    max-width: 100% !important;
}

.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:bg-opacity-90:hover {
    opacity: 0.9;
}

/* Button with Tailwind classes - more specific selectors with higher specificity */
/* Exclude ecosystem cards (they have 'group' class AND 'flex-col') */
a.bg-accent-navy:not([class*="flex-col"]),
button.bg-accent-navy:not([class*="flex-col"]),
a[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]),
button[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]),
.entry-content a.bg-accent-navy:not([class*="flex-col"]),
.entry-content button.bg-accent-navy:not([class*="flex-col"]),
.entry-content a[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]),
.entry-content button[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]) {
    background-color: #111635 !important;
    color: #ffffff !important;
    border-radius: 15px !important;
    padding: 0.75rem 2rem !important;
    height: 3rem !important;
    min-height: 3rem !important;
    font-weight: 700 !important;
    font-size: var(--msp-type-body) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
    width: auto !important;
    min-width: fit-content !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

a.bg-accent-navy:not([class*="flex-col"]):hover,
button.bg-accent-navy:not([class*="flex-col"]):hover,
a[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]):hover,
button[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]):hover {
    opacity: 0.9;
}

/* Exclude ecosystem cards (they have 'flex-col' class) */
a.bg-transparent:not([class*="flex-col"]),
button.bg-transparent:not([class*="flex-col"]),
a[class*="bg-transparent"]:not([class*="flex-col"]),
button[class*="bg-transparent"]:not([class*="flex-col"]),
.entry-content a.bg-transparent:not([class*="flex-col"]),
.entry-content button.bg-transparent:not([class*="flex-col"]),
.entry-content a[class*="bg-transparent"]:not([class*="flex-col"]),
.entry-content button[class*="bg-transparent"]:not([class*="flex-col"]) {
    background-color: transparent !important;
    border: 2px solid #111635 !important;
    color: #111635 !important;
    border-radius: 15px !important;
    padding: 0.75rem 2rem !important;
    height: 3rem !important;
    min-height: 3rem !important;
    font-weight: 700 !important;
    font-size: var(--msp-type-body) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
    width: auto !important;
    min-width: fit-content !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

a.bg-transparent:not([class*="flex-col"]):hover,
button.bg-transparent:not([class*="flex-col"]):hover,
a[class*="bg-transparent"]:not([class*="flex-col"]):hover,
button[class*="bg-transparent"]:not([class*="flex-col"]):hover {
    background-color: #111635 !important;
    color: #ffffff !important;
}

/* Border utilities */
.border-2,
.entry-content .border-2 {
    border-width: 2px !important;
}

.border-accent-navy,
.entry-content .border-accent-navy {
    border-color: #111635 !important;
}

/* Hover utilities */
.hover\:bg-accent-navy:hover,
[class*="hover:bg-accent-navy"]:hover {
    background-color: #111635 !important;
}

.hover\:text-white:hover,
[class*="hover:text-white"]:hover {
    color: #ffffff !important;
}

.hover\:bg-opacity-90:hover,
[class*="hover:bg-opacity-90"]:hover {
    opacity: 0.9;
}

/* Group hover for arrow icon */
.group:hover .group-hover\:translate-x-1,
.group:hover [class*="group-hover:translate-x-1"] {
    transform: translateX(0.25rem);
}

/* Group hover text colors */
.group:hover .group-hover\:text-white,
.group:hover [class*="group-hover:text-white"]:not([class*="group-hover:text-white/80"]) {
    color: #ffffff !important;
}

.group:hover .group-hover\:text-white\/80,
.group:hover [class*="group-hover:text-white/80"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

.group:hover .group-hover\:text-primary,
.group:hover [class*="group-hover:text-primary"]:not([class*="group-hover:text-primary/50"]) {
    color: #F39900 !important;
}

.group:hover .group-hover\:text-primary\/50,
.group:hover [class*="group-hover:text-primary/50"] {
    color: rgba(243, 153, 0, 0.5) !important;
}

.group:hover .group-hover\:rotate-0,
.group:hover [class*="group-hover:rotate-0"] {
    transform: rotate(0deg) !important;
}

/* Material icons sizing */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: var(--msp-type-lead);
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

/* Ensure span elements inside buttons don't cause overflow */
/* Exclude ecosystem cards (they have 'flex-col' class) */
a.bg-accent-navy:not([class*="flex-col"]) span,
a[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]) span,
button.bg-accent-navy:not([class*="flex-col"]) span,
button[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]) span,
a.bg-transparent:not([class*="flex-col"]) span,
a[class*="bg-transparent"]:not([class*="flex-col"]) span,
button.bg-transparent:not([class*="flex-col"]) span,
button[class*="bg-transparent"]:not([class*="flex-col"]) span,
.entry-content a.bg-accent-navy:not([class*="flex-col"]) span,
.entry-content a[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]) span,
.entry-content button.bg-accent-navy:not([class*="flex-col"]) span,
.entry-content button[class*="bg-accent-navy"]:not([class*="flex-col"]):not([class*="hover:bg-accent-navy"]) span,
.entry-content a.bg-transparent:not([class*="flex-col"]) span,
.entry-content a[class*="bg-transparent"]:not([class*="flex-col"]) span,
.entry-content button.bg-transparent:not([class*="flex-col"]) span,
.entry-content button[class*="bg-transparent"]:not([class*="flex-col"]) span {
    white-space: nowrap !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.text-\[20px\] {
    font-size: var(--msp-type-lead);
}

.text-\[18px\] {
    font-size: var(--msp-type-body);
}

/* Ecosystem Section Cards - Override button styles */
.msp-ecosystem-card,
a.msp-ecosystem-card,
.entry-content .msp-ecosystem-card,
.entry-content a.msp-ecosystem-card {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(17, 22, 53, 0.05) !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    height: auto !important;
    min-height: auto !important;
    width: auto !important;
    min-width: auto !important;
    flex-shrink: 1 !important;
    white-space: normal !important;
    overflow: visible !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    text-decoration: none !important;
    color: inherit;
    cursor: default;
    transition: all 0.3s ease !important;
}

a.msp-ecosystem-card {
    cursor: pointer;
}

.msp-ecosystem-card:hover,
a.msp-ecosystem-card:hover,
.entry-content .msp-ecosystem-card:hover,
.entry-content a.msp-ecosystem-card:hover {
    background-color: #111635 !important;
    box-shadow: 5px 10px 5px 0px rgba(0,0,0,0.1) !important;
    transform: translateY(-0.5rem) !important;
}

/* Ecosystem card utilities */
.rounded-2xl,
.entry-content .rounded-2xl {
    border-radius: 15px !important;
}

.p-8,
.entry-content .p-8 {
    padding: 2rem !important;
}

.bg-white\/10,
[class*="bg-white/10"],
.entry-content .bg-white\/10,
.entry-content [class*="bg-white/10"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.border-accent-navy\/5,
[class*="border-accent-navy/5"],
.entry-content .border-accent-navy\/5,
.entry-content [class*="border-accent-navy/5"] {
    border-color: rgba(17, 22, 53, 0.05) !important;
}

/* ------------------------------------------------------ */
/* Global content heading typography (pages, posts, AGB)  */
/* Scoped to main content so header/hero can override     */
/* ------------------------------------------------------ */

/* Page/post title block */
.wp-block-post-title {
    font-size: var(--msp-type-heading);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: #111635;
}

/* Headings inside main content / post content (core Heading block only) */
main .wp-block-post-content h1.wp-block-heading:not(.msp-hero-heading),
.wp-block-post-content h1.wp-block-heading:not(.msp-hero-heading) {
    font-size: var(--msp-type-heading);
    line-height: 1.2;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: #111635;
}

main .wp-block-post-content h2.wp-block-heading,
.wp-block-post-content h2.wp-block-heading {
    font-size: var(--msp-type-heading);
    line-height: 1.3;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: #111635;
}

main .wp-block-post-content h3.wp-block-heading,
.wp-block-post-content h3.wp-block-heading {
    font-size: var(--msp-type-lead);
    line-height: 1.35;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: #111635;
}

main .wp-block-post-content h4.wp-block-heading,
.wp-block-post-content h4.wp-block-heading {
    font-size: var(--msp-type-lead);
    line-height: 1.4;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #111635;
}

/* Small margin reset when headings follow another heading (core Heading block only) */
.wp-block-post-content h2.wp-block-heading + h3.wp-block-heading,
.wp-block-post-content h3.wp-block-heading + h4.wp-block-heading {
    margin-top: 0.5rem;
}

/* ------------------------------------------------------ */
/* Dedicated styling for Hero block headline              */
/* ------------------------------------------------------ */

.msp-hero-heading {
    font-size: var(--msp-type-display);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.03em;
}

/* Hero block buttons — layout + colors via CSS variables from block settings */
a.msp-hero-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    height: 3rem !important;
    min-height: 3rem !important;
    padding: 0 2rem !important;
    border-radius: 15px !important;
    font-weight: 700 !important;
    font-size: var(--msp-type-body) !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: fit-content !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    box-shadow: 5px 10px 5px 0 rgba(0, 0, 0, 0.1) !important;
    transition: opacity 0.3s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

a.msp-hero-btn:hover {
    opacity: 0.9;
}

a.msp-hero-btn--primary {
    background-color: var(--msp-hero-btn-bg, #111635) !important;
    color: var(--msp-hero-btn-fg, #ffffff) !important;
    border: none !important;
}

a.msp-hero-btn--secondary {
    background-color: var(--msp-hero-btn-bg, transparent) !important;
    color: var(--msp-hero-btn-fg, #111635) !important;
    border: 2px solid var(--msp-hero-btn-border, var(--msp-hero-btn-fg, #111635)) !important;
}

a.msp-hero-btn > span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    line-height: inherit !important;
}

a.msp-hero-btn .material-symbols-outlined {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
}

.msp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.625rem;
    margin-top: 0.25rem;
    color: #111635;
}

.msp-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: currentColor;
    background: color-mix(in srgb, currentColor 10%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
}

.msp-breaking-news {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.msp-breaking-news__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0.35rem 1.15rem 0.35rem 0.35rem;
    border-radius: 9999px;
    background: var(--msp-bn-bg, #D6F54E);
    color: var(--msp-bn-fg, #3B2A86);
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

a.msp-breaking-news__pill:hover {
    opacity: 0.92;
}

.msp-breaking-news__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: var(--msp-bn-badge-bg, #ffffff);
    color: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.msp-breaking-news__text {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: inherit;
}

.msp-breaking-news__arrow {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    flex-shrink: 0;
}

/* Features Grid — square visual tile (icon or image) */
.msp-features-grid-visual {
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    aspect-ratio: 1 / 1 !important;
}

.msp-features-grid-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Features Grid — icon tile uses text color at 10% opacity (hover: solid text color) */
.group:hover .msp-features-grid-icon {
    background-color: var(--msp-features-icon-hover-bg) !important;
    color: var(--msp-features-icon-hover-fg) !important;
}

/* MSP Product — feature list: badge inline, text wraps naturally */
.msp-product-feature-item {
    align-items: flex-start;
}

.msp-product-feature-body {
    overflow-wrap: break-word;
    word-break: normal;
}

.msp-product-feature-badge {
    flex-shrink: 0;
}

/* MSP Product — pricing tiers grid; lone box on last row spans full width */
.msp-product-pricing-grid {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.msp-product-pricing-grid--single {
    grid-template-columns: 1fr;
}

/* ~2 columns in container */
@container (min-width: 336px) and (max-width: 511px) {
    .msp-product-pricing-grid > :last-child:nth-child(2n + 1):not(:only-child) {
        grid-column: 1 / -1;
    }
}

/* ~3 columns in container */
@container (min-width: 512px) and (max-width: 687px) {
    .msp-product-pricing-grid > :last-child:nth-child(3n + 1):not(:only-child) {
        grid-column: 1 / -1;
    }
}

/* ~4 columns in container */
@container (min-width: 688px) and (max-width: 863px) {
    .msp-product-pricing-grid > :last-child:nth-child(4n + 1):not(:only-child) {
        grid-column: 1 / -1;
    }
}

/* ~5 columns in container */
@container (min-width: 864px) {
    .msp-product-pricing-grid > :last-child:nth-child(5n + 1):not(:only-child) {
        grid-column: 1 / -1;
    }
}

.border,
.entry-content .border {
    border-width: 1px !important;
}

/* Flex utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.text-left {
    text-align: left;
}

/* msp Logo Carousel — infinite 3D card fan, constrained to block width */
.msp-logo-carousel-section {
    width: 100%;
    max-width: 100%;
}

.msp-logo-carousel-inner {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

.msp-pop-container .msp-logo-carousel-inner {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.msp-logo-carousel {
    --msp-logo-height: 64px;
    --items: 8;
    --card-w: clamp(150px, 22%, 260px);
    --card-h: clamp(210px, 48%, 360px);
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: min(80vh, 720px);
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-mask-image: linear-gradient(135deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(135deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.msp-logo-carousel.is-dragging {
    cursor: grabbing;
}

.msp-logo-carousel__item {
    --active: 0;
    --zIndex: 1;
    --fade: 1;
    --x: calc(var(--active) * 220%);
    --y: calc(var(--active) * 85%);
    --rot: calc(var(--active) * 55deg);
    overflow: hidden;
    position: absolute;
    z-index: var(--zIndex);
    top: 52%;
    left: 50%;
    width: var(--card-w);
    height: var(--card-h);
    margin: calc(var(--card-h) * -0.5) 0 0 calc(var(--card-w) * -0.5);
    border-radius: 12px;
    background: #ffffff;
    transform-origin: 0% 100%;
    transform: translate(var(--x), var(--y)) rotate(var(--rot));
    transition: transform 0.8s cubic-bezier(0, 0.02, 0, 1), opacity 0.8s cubic-bezier(0, 0.02, 0, 1);
    box-shadow: 0 10px 50px 10px rgba(17, 22, 53, 0.22);
    pointer-events: auto;
    opacity: var(--fade);
}

.msp-logo-carousel__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.5rem 1.6rem;
    box-sizing: border-box;
}

.msp-logo-carousel__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.msp-logo-carousel__img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: var(--msp-logo-height);
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.msp-logo-carousel--grayscale .msp-logo-carousel__img {
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.35s ease, opacity 0.35s ease;
}

.msp-logo-carousel--grayscale .msp-logo-carousel__item.is-active .msp-logo-carousel__img,
.msp-logo-carousel--grayscale .msp-logo-carousel__item:hover .msp-logo-carousel__img {
    filter: none;
    opacity: 1;
}

.msp-logo-carousel--single {
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    cursor: default;
}

.msp-logo-carousel--single .msp-logo-carousel__item {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    transform: none;
    width: var(--card-w);
    height: var(--card-h);
}

@media (prefers-reduced-motion: reduce) {
    .msp-logo-carousel:not(.msp-logo-carousel--single) {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        padding: 0.5rem;
        cursor: default;
    }

    .msp-logo-carousel:not(.msp-logo-carousel--single) .msp-logo-carousel__item {
        position: relative;
        top: auto;
        left: auto;
        margin: 0;
        transform: none;
        width: clamp(140px, 28vw, 220px);
        height: auto;
        min-height: 100px;
        transition: none;
    }
}

/* Contact Form 7 — match theme (navy, 15px radius, CTA submit) */
.wp-block-contact-form-7-contact-form-selector,
.wpcf7 {
    width: 100%;
    color: #111635;
}

.wpcf7 form.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
}

.wpcf7 form.wpcf7-form > p {
    margin: 0;
}

.wpcf7 form.wpcf7-form label {
    display: block;
    font-size: var(--msp-type-body);
    font-weight: 700;
    color: #111635;
    line-height: 1.4;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.4rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="search"],
.wpcf7 input[type="password"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: var(--msp-type-body);
    font-weight: 400;
    line-height: 1.4;
    color: #111635;
    background-color: #ffffff;
    border: 2px solid rgba(17, 22, 53, 0.22);
    border-radius: 15px;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 textarea {
    min-height: 10rem;
    resize: vertical;
}

.wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23111635' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #74787e;
    opacity: 1;
}

.wpcf7 input:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover {
    border-color: rgba(17, 22, 53, 0.45);
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #111635;
    box-shadow: 0 0 0 3px rgba(17, 22, 53, 0.15);
}

.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border-color: #B80C4F;
}

.wpcf7-not-valid-tip {
    margin-top: 0.35rem;
    color: #B80C4F;
    font-size: var(--msp-type-caption);
    font-weight: 600;
}

.wpcf7 .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 1rem 0.5rem 0;
}

.wpcf7 .wpcf7-list-item-label {
    font-weight: 400;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    margin: 0.2rem 0 0;
    padding: 0;
    accent-color: #111635;
    border: 2px solid #111635;
    border-radius: 4px;
    appearance: auto;
    -webkit-appearance: auto;
}

.wpcf7 input[type="radio"] {
    border-radius: 50%;
}

.wpcf7 input[type="file"] {
    width: 100%;
    padding: 0.5rem 0;
    font-size: var(--msp-type-caption);
    color: #111635;
    background: transparent;
    border: none;
}

.wpcf7 input[type="submit"],
.wpcf7 input[type="button"],
.wpcf7 button.wpcf7-submit,
.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 10rem;
    height: 3rem;
    margin: 0.25rem 0 0;
    padding: 0.75rem 2rem;
    font-family: inherit;
    font-size: var(--msp-type-body);
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background-color: #111635;
    border: none;
    border-radius: 15px;
    box-shadow: 5px 10px 5px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="button"]:hover,
.wpcf7 button.wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:hover {
    opacity: 0.9;
}

.wpcf7 input[type="submit"]:focus-visible,
.wpcf7 button.wpcf7-submit:focus-visible,
.wpcf7 .wpcf7-submit:focus-visible {
    outline: 3px solid #111635;
    outline-offset: 3px;
}

.wpcf7 .wpcf7-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wpcf7-spinner {
    background-color: #111635;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 0.85rem 1.15rem;
    font-size: var(--msp-type-caption);
    font-weight: 600;
    color: #111635;
    background: rgba(255, 255, 255, 0.55);
    border-width: 2px;
    border-style: solid;
    border-radius: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #445721;
    color: #445721;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #B80C4F;
    color: #B80C4F;
}

.wpcf7 .captcha-image,
.wpcf7 .cf7ic-style1 {
    margin-top: 0.4rem;
    border: 2px solid rgba(17, 22, 53, 0.22);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.55);
    color: #111635;
}

.wpcf7 .captcha-image label > input:checked + *,
.wpcf7 .captcha-image label > input:focus + *,
.wpcf7 .captcha-image label > input:checked + svg,
.wpcf7 .captcha-image label > input:focus + svg {
    border-color: #111635;
}

.wpcf7 .cf7ic_instructions {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ------------------------------------------------------ */
/* Mobile / iPhone (~393px)                               */
/* ------------------------------------------------------ */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
}

@media (max-width: 767px) {
    html,
    body,
    .wp-site-blocks,
    .entry-content,
    main {
        max-width: 100%;
        overflow-x: clip;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100%;
        height: auto;
    }

    .msp-hero-heading,
    .text-display {
        font-size: clamp(1.75rem, 8.4vw, 2.35rem) !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    a.msp-hero-btn,
    a.msp-hero-btn > span {
        white-space: normal !important;
        flex-shrink: 1 !important;
        max-width: 100% !important;
    }

    a.msp-hero-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 3rem !important;
        padding: 0.75rem 1.15rem !important;
        justify-content: center !important;
        text-align: center;
    }

    .msp-breaking-news__pill {
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        max-width: 100%;
        row-gap: 0.35rem;
        padding: 0.4rem 0.75rem 0.4rem 0.35rem;
    }

    .msp-breaking-news__text {
        flex: 1 1 10rem;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .msp-breaking-news__badge {
        white-space: normal;
    }

    .msp-pop-container,
    .entry-content .msp-pop-container,
    .p-10,
    .entry-content .p-10 {
        padding: 1.15rem !important;
    }

    .msp-ecosystem-card,
    a.msp-ecosystem-card,
    .entry-content .msp-ecosystem-card {
        padding: 1.25rem !important;
    }

    .msp-logo-carousel {
        height: min(52vh, 420px);
        --card-w: min(72vw, 240px);
        --card-h: min(58vw, 300px);
    }

    .wp-block-group.is-layout-flex.is-nowrap {
        flex-wrap: wrap !important;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-wrap: wrap !important;
    }

    .has-huge-font-size,
    .has-x-large-font-size,
    .has-large-font-size {
        font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere;
    }

    .has-fit-text {
        white-space: normal !important;
    }

    a.bg-accent-navy:not([class*="flex-col"]),
    a[class*="bg-accent-navy"]:not([class*="flex-col"]),
    .wp-block-button__link {
        white-space: normal !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 3rem;
    }

    a.bg-accent-navy:not([class*="flex-col"]) span,
    a[class*="bg-accent-navy"]:not([class*="flex-col"]) span {
        white-space: normal !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
    }

    .wp-block-buttons {
        width: 100%;
    }

    .wp-block-buttons > .wp-block-button {
        max-width: 100%;
    }

    .alignfull {
        max-width: 100%;
    }

    .msp-footer {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }

    .msp-footer .grid {
        gap: 1.75rem !important;
        margin-bottom: 2.5rem !important;
    }

    main.wp-block-group {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1.5rem !important;
    }

    .mb-24 {
        margin-bottom: 2.5rem !important;
    }

    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #cc-main,
    .cm-wrapper,
    .pm-wrapper {
        max-width: 100vw;
    }
}

