/* =============================================================================
   SharedBrains - Custom CSS
   TYPO3 13 / Bootstrap 5.3 adaptation
   Original design: Astra WordPress theme
   Converted to Bootstrap 5.3 CSS custom properties
   ============================================================================= */

/* === DESIGN TOKENS === */
:root {
    --sb-primary: #0067FF;
    --sb-primary-rgb: 0, 103, 255;
    --sb-primary-dark: #005EE9;
    --sb-text-dark: #0F172A;
    --sb-text-secondary: #364151;
    --sb-bg-light: #E7F6FF;
    --sb-white: #FFFFFF;
    --sb-gray-light: #D1DAE5;
    --sb-gray-border: #E8ECF1;
    --sb-gray-muted: #A0AEC0;
    --sb-gray-bg: #FAFBFC;
    --sb-dark: #070614;
    --sb-dark-rgb: 7, 6, 20;
    --sb-dark-alt: #222222;
    --sb-green: #57d71c;
    --sb-accent-secondary: #38B2AC;
    --sb-status-high: #DC2626;
    --sb-status-medium: #F59E0B;
    --sb-status-low: #6B7280;
    --sb-font-body: 'Lora', serif;
    --sb-font-heading: 'Nunito Sans', sans-serif;
    --sb-font-ui: 'Heebo', sans-serif;
    --sb-container-max: 1200px;
    --bs-navbar-nav-link-padding-x: 1.0rem;
    --bs-gutter-x: 1.5rem;
}

/* === GLOBAL === */
body {
    font-family: var(--sb-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--sb-text-dark);
    background: var(--sb-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--sb-text-dark);
}

h1 { font-size: 2.75rem;
    line-height: 1.15;
    margin-top: 3.5rem;
}
h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
}
h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container { max-width: var(--sb-container-max); }

/* Page-level content container must allow overflow so that
   full-bleed container sections can stretch beyond its bounds. */
.site-main > .sb-section > .container {
    overflow: visible;
}

a {
    color: var(--sb-primary);
    transition: color 0.2s;
}
a:hover {
    color: var(--sb-primary-dark);
}


/* === HEADER === */
.sb-header {
    background: var(--sb-dark);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.sb-header .navbar {
    padding: 0.5rem 0;
}
.sb-header .navbar-brand img {
    max-width: 92px;
    height: auto;
}
.sb-header .navbar-brand {
    padding: 0;
    margin-right: 2rem;
}
.sb-header .nav-link {
    font-family: var(--sb-font-ui);
    font-weight: 500;
    font-size: 15px;
    color: var(--sb-white) !important;
    padding: 0.75rem 0.75rem;
    transition: color 0.2s;
}
.sb-header .nav-link:hover,
.sb-header .nav-link.active {
    color: var(--sb-primary) !important;
}
.sb-header .search-icon {
    color: var(--sb-white);
    font-size: 18px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}
.sb-header .search-icon:hover {
    color: var(--sb-primary);
}
.sb-header .btn-cta {
    background: var(--sb-green);
    color: var(--sb-white);
    font-family: var(--sb-font-ui);
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    transition: opacity 0.2s;
}
.sb-header .btn-cta:hover {
    opacity: 0.9;
    color: var(--sb-white);
}
.sb-header .navbar-toggler-icon {
    filter: invert(1);
}

/* === MEGA MENU === */
/* Anchor the dropdown panel to .navbar (position: relative) not the toggle */
.sb-header .nav-item.dropdown {
    position: static;
}

.sb-mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--sb-dark);
    border: none;
    border-top: 2px solid rgba(var(--sb-primary-rgb), 0.35);
    border-radius: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    padding: 1.75rem 2rem;
}

/* CSS multi-column grid: groups flow top→bottom, left→right automatically */
.sb-mega-menu__grid {
    columns: 4;
    column-gap: 2.5rem;
}

/* Each group (level 2 + its level 3 children) stays together in one column */
.sb-mega-menu__group {
    break-inside: avoid;
    margin-bottom: 1.75rem;
}

/* Level 2: group header link (e.g. Machinebouw) */
.sb-mega-menu__group-link {
    display: block;
    font-family: var(--sb-font-ui);
    font-weight: 700;
    font-size: 13px;
    /* text-transform: uppercase;*/
    letter-spacing: 0.06em;
    color: var(--sb-white);
    text-decoration: none;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.15s;
}

.sb-mega-menu__group-link:hover,
.sb-mega-menu__group-link.active {
    color: var(--sb-primary);
    text-decoration: none;
}

/* Level 3: sub-link list (e.g. DBR) */
.sb-mega-menu__sublist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-mega-menu__sublink {
    display: block;
    font-family: var(--sb-font-ui);
    font-size: 13px;
    color: var(--sb-gray-muted);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.15s;
}

.sb-mega-menu__sublink:hover,
.sb-mega-menu__sublink.active {
    color: var(--sb-primary);
    text-decoration: none;
}

/* Subtitle tooltip on hover — shown via data-tooltip attribute */
.sb-mega-menu__group-link,
.sb-mega-menu__sublink {
    position: relative;
}

.sb-mega-menu__group-link[data-tooltip]:not([data-tooltip=""])::after,
.sb-mega-menu__sublink[data-tooltip]:not([data-tooltip=""])::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--sb-text-dark);
    color: var(--sb-white);
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-mega-menu__group-link[data-tooltip]:not([data-tooltip=""]):hover::after,
.sb-mega-menu__sublink[data-tooltip]:not([data-tooltip=""]):hover::after {
    opacity: 1;
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 991.98px) {
    .sb-mega-menu__grid {
        columns: 2;
    }
}

/* Mobile: collapse inline below the toggle */
@media (max-width: 991.98px) {
    .sb-header .nav-item.dropdown {
        position: relative;
    }
    .sb-mega-menu {
        position: static;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 4px;
        margin: 0.25rem 0;
        padding: 0.5rem 0.75rem;
    }
    .sb-mega-menu__grid {
        columns: 1;
    }
    .sb-mega-menu__group {
        margin-bottom: 1rem;
    }
}

/* === HERO SECTION === */
.sb-hero {
    position: relative;
    color: var(--sb-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.sb-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sb-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sb-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(var(--sb-dark-rgb), 0.88) 0%,
        rgba(var(--sb-dark-rgb), 0.82) 40%,
        rgba(var(--sb-dark-rgb), 0.6) 65%,
        rgba(var(--sb-dark-rgb), 0.3) 100%
    );
    z-index: 1;
}
.sb-hero-triangle {
    position: absolute;
    right: -5%;
    top: 0;
    width: 40%;
    height: 100%;
    background: var(--sb-primary);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.85;
    z-index: 2;
}
.sb-hero .container {
    position: relative;
    z-index: 3;
}
.sb-hero h6 {
    color: var(--sb-primary);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}
.sb-hero h1 {
    color: var(--sb-white);
    margin-bottom: 1.5rem;
    max-width: 650px;
    font-size: 4.5rem;
    line-height: 1.1
}
.sb-hero .lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    font-family: var(--sb-font-body);
}
.sb-hero .lead strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.sb-hero .btn-primary {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    font-family: var(--sb-font-heading);
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 4px;
}
.sb-hero .btn-primary:hover {
    background: var(--sb-primary-dark);
    border-color: var(--sb-primary-dark);
}
.sb-hero .btn-text-link {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--sb-white);
    text-decoration: none;
    padding: 0.75rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}
.sb-hero .btn-text-link:hover {
    opacity: 0.8;
    color: var(--sb-white);
}

/* === PAGE HEADER (subpages) === */
.sb-page-header {
    background: var(--sb-bg-light);
    padding: 3rem 0;
    border-bottom: 1px solid var(--sb-gray-light);
}
.sb-page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}
.sb-breadcrumb-bar {
    padding: 0.75rem calc(var(--bs-gutter-x) * .5) 0.25rem;
}
.sb-breadcrumb {
    font-family: var(--sb-font-ui);
    font-size: 0.8rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}
.sb-breadcrumb .breadcrumb-item {
    color: var(--sb-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.sb-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">" !important;
    color: var(--sb-text-secondary);
    padding: 0 0.35rem;
}
.sb-breadcrumb a {
    color: var(--sb-primary);
    text-decoration: none;
}

/* === READING WIDTH (Nielsen L3: 60-75 chars, ~680px) === */
.sb-reading { max-width: 680px; }

/* === SECTIONS === */
.sb-section {
    padding: 0;
}

/* Full-bleed: allow sb-section inside a .container to stretch to viewport edges.
   Uses margin/padding trick so the background covers the full viewport width
   while inner .container constrains the content to max-width. */
.sb-section--full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 3.5rem 0;
}

.sb-section-light {
    background: var(--sb-bg-light);
    padding: 1.5rem 0;
}

/* Indent: extra horizontal padding inside the container */
.sb-indent > .container,
.sb-indent.container {
    padding-inline: 6rem;
}
@media (max-width: 575.98px) {
    .sb-indent > .container,
    .sb-indent.container {
        padding-inline: 1.5rem;
    }
}

/* Center: center text, images, and block elements */
.sb-center-content > .container,
.sb-center-content.container {
    text-align: center;
}
.sb-center-content figure,
.sb-center-content img,
.sb-center-content .frame-type-image,
.sb-center-content .frame-type-textmedia {
    margin-inline: auto;
}
.sb-center-content h2 {
    margin-inline: auto;
}
/* Card grid modifier: render the wide column of a 2col layout as a 2-column card grid.
   Apply via frame_class: sb-card-grid on the container.
   Works with col-lg-7 (2col-5-7) and col-lg-8 (2col-33-66). */
.sb-card-grid .col-lg-7,
.sb-card-grid .col-lg-8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    align-items: start;
    align-content: start;
}
@media (max-width: 767.98px) {
    .sb-card-grid .col-lg-7,
    .sb-card-grid .col-lg-8 {
        grid-template-columns: 1fr;
    }
}
/* sb-card-bootstrap: refined card defaults */
.sb-section .card {
    border: 1px solid var(--sb-gray-light);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}
.sb-section .card:hover {
    box-shadow: 0 8px 24px rgba(var(--sb-primary-rgb), 0.12);
}
.sb-section .card .card-body {
    padding: 1.5rem;
}
.sb-section .card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}
/* Checklist alignment: icon stays top-left, multiline text wraps cleanly */
.sb-section .card .list-unstyled {
    margin: 0.5rem 0 0;
}
.sb-section .card .list-unstyled li {
    font-size: 0.9rem;
    color: var(--sb-text-secondary);
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.35rem;
}
.sb-section .card .list-unstyled li:last-child {
    margin-bottom: 0;
}
.sb-section .card .list-unstyled li > i.bi {
    position: absolute;
    left: 0;
    top: 0.15em;
    margin-right: 0;
}
/* When multiple cards stack inside a flex column, share space equally */
.sb-section .d-flex.flex-column > .card.h-100 {
    flex: 1 1 0%;
    height: auto;
}
@media (max-width: 767.98px) {
    .sb-3col-5-7 > .container > .row > .col-md-4:first-child,
    .sb-3col-5-7 > .container > .row > .col-md-4:nth-child(2),
    .sb-3col-5-7 > .container > .row > .col-md-4:nth-child(3) {
        width: 100%;
    }
}

/* Callout content element — reusable styled block via frame_class: sb-callout.
   Pattern: CType text, header empty, bodytext contains <h5><i class="bi bi-*"></i>Title</h5><p>Description</p> */
.frame-sb-callout {
    border-left: 3px solid var(--sb-primary);
    padding: 1.25rem 1.5rem;
    background: rgba(var(--sb-primary-rgb), 0.04);
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
}
.frame-sb-callout h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.frame-sb-callout p {
    font-size: 0.95rem;
    color: var(--sb-text-secondary);
    margin: 0;
}

/* === ACCENT CARD FRAME VARIANTS ===
   Generic colored card. Apply as frame_class on CType text.
   Pairs with sb-container-2col for side-by-side layouts.
   Variants: success (green), danger (red), info (light blue), cyan (light teal)
   Use cases: do/don't · before/after · pro/con · good/bad · current/future      */

.frame-sb-accent-success,
.frame-sb-accent-danger,
.frame-sb-accent-info,
.frame-sb-accent-cyan {
    border-radius: 12px;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid;
    height: 100%;
}
.frame-sb-accent-success::before,
.frame-sb-accent-danger::before,
.frame-sb-accent-info::before,
.frame-sb-accent-cyan::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

/* Success (green) — Do's, advantages, benefits, "after" state */
.frame-sb-accent-success {
    background: #F0FFF4;
    border-color: #C6F6D5;
}
.frame-sb-accent-success::before { background: var(--sb-green); }
.frame-sb-accent-success h3,
.frame-sb-accent-success h4,
.frame-sb-accent-success h5,
.frame-sb-accent-success h6 { color: #276749; }

/* Danger (red) — Don'ts, risks, drawbacks, "before" state */
.frame-sb-accent-danger {
    background: #FFF5F5;
    border-color: #FED7D7;
}
.frame-sb-accent-danger::before { background: #E53E3E; }
.frame-sb-accent-danger h3,
.frame-sb-accent-danger h4,
.frame-sb-accent-danger h5,
.frame-sb-accent-danger h6 { color: #C53030; }

/* Info (light blue) — Neutral information, context, baseline */
.frame-sb-accent-info {
    background: var(--sb-bg-light);
    border-color: var(--sb-gray-light);
}
.frame-sb-accent-info::before { background: var(--sb-primary); }
.frame-sb-accent-info h3,
.frame-sb-accent-info h4,
.frame-sb-accent-info h5,
.frame-sb-accent-info h6 { color: var(--sb-primary); }

/* Cyan (teal) — Transition, neutral-positive, process steps */
.frame-sb-accent-cyan {
    background: #E6FFFA;
    border-color: #81E6D9;
}
.frame-sb-accent-cyan::before { background: var(--sb-accent-secondary); }
.frame-sb-accent-cyan h3,
.frame-sb-accent-cyan h4,
.frame-sb-accent-cyan h5,
.frame-sb-accent-cyan h6 { color: #285E61; }

/* === STYLED LIST VARIANTS (CKEditor selectable styles) ===
   Apply via CKEditor Styles dropdown to ul elements.
   sb-list-check: green ✓  — do's, advantages, conditions met
   sb-list-cross: red ✗    — don'ts, risks, conditions not met             */

ul.sb-list-check,
ul.sb-list-cross {
    list-style: none;
    padding-left: 0;
}
ul.sb-list-check li,
ul.sb-list-cross li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
}
ul.sb-list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #276749;
}
ul.sb-list-cross li::before {
    content: '✗';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #E53E3E;
}

.sb-section-dark {
    background: var(--sb-dark);
    color: var(--sb-white);
}
.sb-section-dark h2,
.sb-section-dark h3,
.sb-section-dark h5,
.sb-section-dark h6 {
    color: var(--sb-white);
}
.sb-section-dark p {
    color: rgba(255,255,255,0.8);
}
.sb-section h6 {
    color: var(--sb-primary);
    margin-bottom: 1rem;
}
.sb-section h2 {
    margin-bottom: 1.5rem;
    width: fit-content;
}
.sb-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--sb-primary);
    margin-top: 0.75rem;
}

/* === INFO BOX (icon + heading + text cards) === */
.sb-infobox {
    padding: 2rem;
    height: 100%;
}
.sb-infobox .sb-icon {
    width: 48px;
    height: 48px;
    background: var(--sb-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-white);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.sb-infobox h3,
.sb-infobox h5 {
    margin-bottom: 0.75rem;
}
.sb-infobox h6 {
    color: var(--sb-primary);
    margin-bottom: 0.75rem;
}

/* === CARD INSIGHT (layout 4 example card — insight note below description) ===
   Scoped to .card-body to reach specificity (0,2,0) and override the greedy base
   rule [class*="sb-"][class*="-card"] which also matches this class name.         */
.card-body .sb-card-insight {
    font-size: 0.875rem;
    background: var(--sb-bg-light);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    color: var(--sb-text-secondary);
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.card-body .sb-card-insight strong {
    color: var(--sb-primary);
    font-weight: 600;
}

/* === CARD KICKER (used in bodytext HTML) === */
.sb-card-kicker {
    font-family: var(--sb-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--sb-primary, #0d6efd);
    margin-bottom: 0.9rem;
}
.sb-card-result {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 0.5rem;
    margin-top: auto;
    font-size: 0.85rem;
}

/* === PLATFORM CARDS === */
.sb-platform-card {
    background: var(--sb-white);
    border: 1px solid var(--sb-gray-light);
    border-radius: 12px;
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.sb-platform-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.sb-platform-card__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}
.sb-platform-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}
.sb-platform-card__icon img {
    width: 100%;
    height: auto;
    display: block;
}
.sb-platform-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.sb-platform-card__divider {
    border: none;
    border-top: 2px dashed var(--sb-gray-light);
    margin: 1rem 0;
}
.sb-platform-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.sb-platform-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--sb-text-secondary);
    margin-bottom: 0.75rem;
}
.sb-platform-card__feature:last-child {
    margin-bottom: 0;
}
.sb-platform-card__check {
    color: var(--sb-status-medium);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.sb-platform-card__cta {
    margin-top: auto;
}
.sb-platform-card__link {
    font-family: var(--sb-font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sb-text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.sb-platform-card__link:hover {
    text-decoration: underline;
}
.sb-platform-card__link i {
    transition: transform 0.2s;
}
.sb-platform-card:hover .sb-platform-card__link i {
    transform: translateX(3px);
}

/* === CARD STYLE UTILITIES === */
.sb-card-bg-light { background: var(--sb-bg-light); }
.sb-card-bg-white { background: var(--sb-white); }
.sb-card-bg-dark { background: var(--sb-dark); color: var(--sb-white); }
.sb-card-bg-dark h1, .sb-card-bg-dark h2, .sb-card-bg-dark h3,
.sb-card-bg-dark h4, .sb-card-bg-dark h5, .sb-card-bg-dark h6 { color: var(--sb-white); }
.sb-card-bg-dark p, .sb-card-bg-dark .sb-card-kicker { color: rgba(255, 255, 255, 0.8); }
.sb-card-bg-transparent { background: transparent; border-color: transparent; }
.sb-card-radius-none { border-radius: 0; }
.sb-card-radius-sm { border-radius: 4px; }
.sb-card-radius-lg { border-radius: 16px; }
.sb-card-shadow { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); }
.sb-card-border-none { border: none; }

/* === ICON-CARD VARIANTS (layouts 5 & 6) === */
.sb-card-icon-header {
    color: var(--sb-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.sb-card-icon-media {
    color: var(--sb-primary);
    font-size: 2rem;
    line-height: 1.2;
}

/* Stat-top layout: metric moves above header, subtitle to bottom */
.sb-card-stat-top .sb-card-metric {
    order: -1;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    font-size: 1.5rem;
    font-family: var(--sb-font-heading);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.sb-card-stat-top .sb-card-kicker {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    color: var(--sb-primary);
}
.sb-card-stat-top .card-text {
    text-align: center;
}
.sb-card-stat-top h3 { margin-top: 0.5rem; }
.sb-card-stat-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.sb-card-stat-top { position: relative; overflow: hidden; border-radius: 16px; }

/* Color variants for stat-top cards */
.sb-card-variant-danger {
    background: #FFF5F5;
    border-color: #FED7D7;
}
.sb-card-variant-danger::before { background: #E53E3E; }
.sb-card-variant-danger .sb-card-metric { color: #E53E3E; }
.sb-card-variant-danger .sb-card-kicker { color: #9B2C2C; }

.sb-card-variant-warning {
    background: #FFFAF0;
    border-color: #FEEBC8;
}
.sb-card-variant-warning::before { background: #DD6B20; }
.sb-card-variant-warning .sb-card-metric { color: #DD6B20; }
.sb-card-variant-warning .sb-card-kicker { color: #9C4221; }

.sb-card-variant-success {
    background: #F0FFF4;
    border-color: #C6F6D5;
}
.sb-card-variant-success::before { background: var(--sb-green, #38A169); }
.sb-card-variant-success .sb-card-metric { color: #276749; }
.sb-card-variant-success .sb-card-kicker { color: #276749; }

/* Nested full-bleed reset: strip viewport stretch when a multi-col
   container is nested inside another b13 container's column */
.sb-section--full-bleed .container .sb-section--full-bleed {
    width: auto;
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}
.sb-section--full-bleed .container .sb-section--full-bleed > .container {
    max-width: none;
    padding: 0;
}

/* === SEPARATOR === */
.sb-separator {
    width: 60px;
    height: 3px;
    background: var(--sb-primary);
    margin: 1.5rem 0;
}

/* === FEATURE COMPARISON TABLE === */
.sb-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}
.sb-comparison-table th,
.sb-comparison-table td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--sb-gray-light);
    font-family: var(--sb-font-heading);
    font-size: 0.9rem;
}
.sb-comparison-table th {
    background: var(--sb-dark);
    color: var(--sb-white);
    font-weight: 600;
}
.sb-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.sb-comparison-table .check {
    color: var(--sb-green);
    font-size: 1.25rem;
}
.sb-comparison-table .cross {
    color: var(--sb-gray-light);
}

/* === FULL-WIDTH IMAGE === */
.sb-fullwidth-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* === CTA SECTION === */
.sb-cta {
    background: var(--sb-primary);
    color: var(--sb-white);
    padding: 4rem 0;
}
.sb-cta h2,
.sb-cta h3,
.sb-cta h4 {
    color: var(--sb-white);
    margin-top: 0;
}
.sb-cta p {
    color: rgba(255,255,255,0.9);
}
.sb-cta .btn-light {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
}
.sb-cta .btn-outline-light {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 4px;
}

.sb-cta-btn {
    font-family: var(--sb-font-heading);
    font-weight: 600;
}

/* === ARTICLE CARDS (Knowledge page) === */
.sb-article-list {
    padding: 3rem 0;
}
.sb-article-card {
    border: 1px solid var(--sb-gray-light);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--sb-white);
}
.sb-article-card:hover {
    box-shadow: 0 8px 24px rgba(var(--sb-primary-rgb), 0.12);
    transform: translateY(-2px);
}
.sb-article-card .card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--sb-bg-light) 0%, var(--sb-gray-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-primary);
    font-size: 3rem;
}
.sb-article-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.sb-article-card h5 {
    margin-bottom: 0.75rem;
}
.sb-article-card h5 a {
    color: var(--sb-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.sb-article-card h5 a:hover {
    color: var(--sb-primary);
}
.sb-article-card .read-more {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sb-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

/* === NEWS DETAIL === */
.sb-news-hero {
    max-height: 500px;
    overflow: hidden;
}
.sb-news-hero-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}
.sb-news-meta {
    font-family: var(--sb-font-ui);
    font-size: 0.9rem;
    color: var(--sb-text-secondary);
}
.sb-news-body {
    font-size: 1.05rem;
    line-height: 1.8;
}
.sb-news-body p {
    margin-bottom: 1.25rem;
}
.sb-news-body h2 {
    font-size: 1.75rem;
    margin: 2rem 0 1rem;
}
.sb-news-body h3 {
    font-size: 1.35rem;
    margin: 1.5rem 0 0.75rem;
}
.sb-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sb-badge-category {
    background: var(--sb-primary);
    color: var(--sb-white);
    font-family: var(--sb-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}
.sb-badge-category-sm {
    background: var(--sb-bg-light);
    color: var(--sb-primary);
    font-family: var(--sb-font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}
.sb-content-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}
.sb-badge-tag {
    background: transparent;
    color: var(--sb-text-secondary);
    font-family: var(--sb-font-ui);
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--sb-gray-light);
    border-radius: 3px;
}
.sb-back-link {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--sb-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.sb-back-link:hover {
    color: var(--sb-primary-dark);
}

/* === NEWS LIST (blog-style layout) === */
.sb-news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    padding: 2rem 0;
}

/* --- News card base --- */
.sb-news-card {
    border: 1px solid var(--sb-gray-light);
    border-radius: 8px;
    overflow: hidden;
    background: var(--sb-white);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.2s;
}
.sb-news-card:hover {
    box-shadow: 0 8px 24px rgba(var(--sb-primary-rgb), 0.12);
    transform: translateY(-2px);
}

/* --- Featured hero card (spans left column) --- */
.sb-news-card--featured {
    grid-column: 1;
    grid-row: 1;
}
.sb-news-card--featured .sb-news-card__title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.sb-news-card--featured .sb-news-card__title a {
    color: var(--sb-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.sb-news-card--featured .sb-news-card__title a:hover {
    color: var(--sb-primary);
}

/* --- Card image --- */
.sb-news-card__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 602 / 300;
    object-fit: cover;
}
.sb-news-card__placeholder {
    aspect-ratio: 602 / 300;
    background: linear-gradient(135deg, var(--sb-bg-light) 0%, var(--sb-gray-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sb-primary);
    font-size: 3rem;
}

/* --- Card body --- */
.sb-news-card__body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- Card title (default for grid/sidebar cards) --- */
.sb-news-card__title {
    font-family: var(--sb-font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.sb-news-card__title a {
    color: var(--sb-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.sb-news-card__title a:hover {
    color: var(--sb-primary);
}

/* --- Card description --- */
.sb-news-card__description {
    font-size: 0.95rem;
    color: var(--sb-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* --- Card footer (author + date) --- */
.sb-news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-family: var(--sb-font-ui);
    font-size: 0.85rem;
    color: var(--sb-text-secondary);
}
.sb-news-card__author {
    margin: 0;
    font-weight: 500;
}
.sb-news-card__date {
    margin: 0;
    color: var(--sb-text-secondary);
}

/* --- Horizontal card (sidebar, text-only) --- */
.sb-news-card--horizontal {
    flex-direction: row;
    border: none;
    border-bottom: 1px solid var(--sb-gray-light);
    border-radius: 0;
    background: transparent;
}
.sb-news-card--horizontal:hover {
    box-shadow: none;
    transform: none;
    background: var(--sb-bg-light);
}
.sb-news-card--horizontal .sb-news-card__body {
    padding: 0.75rem 0;
}
.sb-news-card--horizontal .sb-news-card__title {
    font-size: 1rem;
    line-height: 1.4;
}
.sb-news-card--horizontal:last-child {
    border-bottom: none;
}

/* --- Sidebar (right column, spans both rows) --- */
.sb-news-sidebar {
    grid-column: 2;
    grid-row: 1;
    border: 1px solid var(--sb-gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--sb-white);
}
.sb-news-sidebar__header h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sb-primary);
}

/* --- Highlights grid (full-width row below) --- */
.sb-news-highlights {
    grid-column: 1 / -1;
    grid-row: 2;
}
.sb-news-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.sb-news-grid__item {
    display: flex;
}
.sb-news-grid__item .sb-news-card {
    width: 100%;
}
.sb-news-grid__item .sb-news-card__title {
    font-size: 0.95rem;
}
.sb-news-grid__item .sb-news-card__description {
    font-size: 0.85rem;
}

/* --- News list responsive --- */
@media (max-width: 992px) {
    .sb-news-featured {
        grid-template-columns: 1fr;
    }
    .sb-news-card--featured {
        grid-column: 1;
    }
    .sb-news-sidebar {
        grid-column: 1;
        grid-row: auto;
    }
    .sb-news-highlights {
        grid-column: 1;
        grid-row: auto;
    }
    .sb-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .sb-news-grid {
        grid-template-columns: 1fr;
    }
}

/* === PAGINATION === */
.pagination .page-link {
    font-family: var(--sb-font-ui);
    font-size: 0.9rem;
    color: var(--sb-primary);
    border-color: var(--sb-gray-light);
}
.pagination .page-item.active .page-link {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    color: var(--sb-white);
}
.pagination .page-link:hover {
    background: var(--sb-bg-light);
    color: var(--sb-primary-dark);
}

/* === CONTACT FORM === */
.sb-form .form-control {
    border-radius: 4px;
    border: 1px solid var(--sb-gray-light);
    padding: 0.75rem 1rem;
    font-family: var(--sb-font-body);
}
.sb-form .form-control:focus {
    border-color: var(--sb-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--sb-primary-rgb), 0.15);
}
.sb-form .btn-primary {
    background: var(--sb-primary);
    border-color: var(--sb-primary);
    font-family: var(--sb-font-heading);
    font-weight: 600;
    padding: 0.75rem 2rem;
}

/* === STATUS BADGES === */
.sb-badge {
    display: inline-block;
    font-family: var(--sb-font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sb-badge--high { background: var(--sb-status-high); color: white; }
.sb-badge--medium { background: var(--sb-status-medium); color: #1a1a1a; }
.sb-badge--low { background: var(--sb-status-low); color: white; }

/* === CONTENT TABLES === */
table, .sb-table {
    width: 100%;
    /* border-collapse: collapse; */
    border-collapse: separate;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    width: 100%;
    border-spacing: 0;
}

table thead, table th, .sb-table thead, .sb-table th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

table th, .sb-table th, table td, .sb-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sb-gray-light);
    text-align: left;
}

table th, .sb-table th {
    font-family: var(--sb-font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sb-text-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--sb-gray-light);
    text-align: left;
}
table td, .sb-table td {
    /* font-family: var(--sb-font-ui); */
    font-family: var(--sb-font-body);
    font-size: 0.9rem;
}
table tr:nth-child(even) { background: rgba(var(--sb-primary-rgb), 0.03); }
.sb-table tr:nth-child(even) { background: rgba(var(--sb-primary-rgb), 0.03); }
.sb-table-compact th, .sb-table-compact td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Neutralize Bootstrap's .table cell reboot */
.table > :not(caption) > * > * {
    padding: 0.75rem 1rem;          /* match your custom value */
    background-color: transparent;
    box-shadow: none;
    border-bottom-width: 1px;       /* match your custom value */
}

.frame-layout-1 .table > tbody > tr > td:first-child {
    font-weight: 600;
}

/* === QUADRANT DIAGRAM === */
.sb-quadrant-wrapper { max-width: 800px; margin: 0 auto; }
.sb-quadrant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border-radius: 8px;
    overflow: hidden;
}
.sb-quadrant {
    padding: 1.75rem 1.5rem;
    min-height: 180px;
}
.sb-quadrant h5 {
    font-family: var(--sb-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.sb-quadrant ul { list-style: none; padding: 0; margin: 0; }
.sb-quadrant li {
    font-family: var(--sb-font-ui);
    font-size: 0.9rem;
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}
.sb-quadrant li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    font-weight: 700;
}
.sb-quadrant li small {
    display: block;
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 0.1rem;
}
.sb-quadrant--prepare { background: #FEF3C7; color: #92400E; }
.sb-quadrant--prepare h5 { color: #92400E; }
.sb-quadrant--prepare li::before { color: #D97706; }
.sb-quadrant--urgent { background: #FEE2E2; color: #991B1B; }
.sb-quadrant--urgent h5 { color: #991B1B; }
.sb-quadrant--urgent li::before { color: #DC2626; }
.sb-quadrant--monitor { background: #F3F4F6; color: #374151; }
.sb-quadrant--monitor h5 { color: #374151; }
.sb-quadrant--monitor li::before { color: #6B7280; }
.sb-quadrant--plan { background: #DBEAFE; color: #1E40AF; }
.sb-quadrant--plan h5 { color: #1E40AF; }
.sb-quadrant--plan li::before { color: #3B82F6; }
.sb-quadrant-axes {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: var(--sb-font-ui);
    font-size: 0.8rem;
    color: var(--sb-text-secondary);
}
.sb-quadrant-label {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === LAYER STACK DIAGRAM === */
.sb-layer-stack { max-width: 700px; margin: 2rem auto; }
.sb-layer {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid;
    position: relative;
}
.sb-layer h6 {
    font-family: var(--sb-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.35rem;
}
.sb-layer p {
    font-family: var(--sb-font-ui);
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--sb-text-secondary);
}
.sb-layer-pct {
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    font-family: var(--sb-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    opacity: 0.6;
}
.sb-layer--3 { background: #FEF3C7; border-color: #D97706; }
.sb-layer--3 h6 { color: #92400E; }
.sb-layer--2 { background: #DBEAFE; border-color: #3B82F6; }
.sb-layer--2 h6 { color: #1E40AF; }
.sb-layer--1 { background: #DCFCE7; border-color: #22C55E; }
.sb-layer--1 h6 { color: #166534; }

/* === PULL QUOTE === */
.sb-pullquote {
    border-left: 4px solid var(--sb-primary);
    padding: 1.5rem 2rem;
    background: var(--sb-bg-light);
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}
.sb-pullquote p {
    font-family: var(--sb-font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sb-text-dark);
    margin-bottom: 0;
    line-height: 1.6;
}

/* === FOOTER === */
.sb-footer {
    background: var(--sb-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.sb-footer h6 {
    color: var(--sb-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.sb-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.sb-footer a:hover {
    color: var(--sb-primary);
}
.sb-footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}
.sb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 3rem;
    text-align: center;
    font-family: var(--sb-font-ui);
    font-size: 0.85rem;
}

/* === RELATED LINKS === */
.sb-related {
    border-top: 1px solid var(--sb-gray-light);
    padding-top: 2rem;
    margin-top: 2.5rem;
}
.sb-related h3 {
    font-size: 1.15rem;
    margin-top: 0;
}
.sb-related ul {
    list-style: none;
    padding: 0;
}
.sb-related li {
    padding: 0.4rem 0;
    font-family: var(--sb-font-ui);
    font-size: 0.95rem;
}
.sb-related li i {
    color: var(--sb-primary);
    margin-right: 0.4rem;
}

/* === ARTICLE BODY LINKS === */
article a:not(.btn) {
    border-bottom: 1px solid transparent;
    text-decoration: none;
    transition: border-color 0.2s;
}
article a:not(.btn):hover {
    border-bottom-color: var(--sb-primary);
}

/* === INLINE CONTENT LINKS === */
.sb-section a:not(.btn):not(.nav-link),
.sb-hero a:not(.btn):not(.nav-link),
.sb-infobox a:not(.btn),
.sb-news-body a:not(.btn),
.sb-article-list p a:not(.btn):not(.read-more) {
    color: var(--sb-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.sb-section a:not(.btn):not(.nav-link):hover,
.sb-hero a:not(.btn):not(.nav-link):hover,
.sb-infobox a:not(.btn):hover,
.sb-news-body a:not(.btn):hover,
.sb-article-list p a:not(.btn):not(.read-more):hover {
    border-bottom-color: var(--sb-primary);
}
.sb-section-dark a:not(.btn):not(.nav-link) {
    color: var(--sb-primary);
}

/* === FRAME SPACING (TYPO3 fluid_styled_content → Bootstrap 5.3 spacing) ===
   default → 0 (0), extra-small → 1 (0.25rem), small → 2 (0.5rem),
   medium → 3 (1rem), large → 4 (1.5rem), extra-large → 5 (3rem) */
.frame-space-before-default     { margin-top: 0 !important; }
.frame-space-before-extra-small { margin-top: 0.25rem !important; }
.frame-space-before-small       { margin-top: 0.5rem !important; }
.frame-space-before-medium      { margin-top: 1rem !important; }
.frame-space-before-large       { margin-top: 1.5rem !important; }
.frame-space-before-extra-large { margin-top: 3rem !important; }

.frame-space-after-default      { margin-bottom: 0 !important; }
.frame-space-after-extra-small  { margin-bottom: 0.25rem !important; }
.frame-space-after-small        { margin-bottom: 0.5rem !important; }
.frame-space-after-medium       { margin-bottom: 1rem !important; }
.frame-space-after-large        { margin-bottom: 1.5rem !important; }
.frame-space-after-extra-large  { margin-bottom: 3rem !important; }

.frame-indent {
    padding: 0 5.0rem;
}
/* === NARRATIVE CONTRAST CARDS (Without/With section) ===
   Apply frame_class: sb-narrative-cards on sb-container-2col.
   Each child column gets a card treatment with accent bar. */
.sb-narrative-cards > .container > .row > .col-md-6 > .frame {
    background: var(--sb-white);
    border: 1px solid var(--sb-gray-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.sb-narrative-cards > .container > .row > .col-md-6 > .frame::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sb-gray-light), var(--sb-gray-border));
}
.sb-narrative-cards > .container > .row > .col-md-6:last-child > .frame::before {
    background: linear-gradient(90deg, var(--sb-primary), var(--sb-accent-secondary));
}
/* Hanging indent: timestamp in left margin, text aligned */
.sb-narrative-cards .frame > p:has(> strong:first-child),
.sb-narrative-cards .ce-bodytext > p:has(> strong:first-child) {
    padding-left: 5rem;
}
.sb-narrative-cards .frame > p > strong:first-child,
.sb-narrative-cards .ce-bodytext > p > strong:first-child {
    display: inline-block;
    width: 5rem;
    margin-left: -5rem;
}
.sb-narrative-cards h6 {
    color: var(--sb-gray-muted);
}
.sb-narrative-cards > .container > .row > .col-md-6:last-child h6 {
    color: var(--sb-primary);
}

/* Contrast section background */
.sb-section--contrast-bg {
    background: var(--sb-gray-bg);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    .sb-hero { min-height: auto; padding: 6rem 0; }
    .sb-hero-triangle { width: 50%; opacity: 0.5; }
    .sb-page-header h1 { font-size: 2.5rem; }
}
/* === EQUAL-HEIGHT CARDS IN GRID COLUMNS === */
/* When a column contains exactly one .frame child (one card per column),
   stretch it to fill the column for equal-height rows.
   When multiple cards are stacked (3 per column in the 5/7 layout),
   :only-child doesn't match so cards size to content instead. */
[class*="col-"] > .frame:only-child {
    height: 100%;
}

/* === CONTENT ELEMENT UTILITIES === */
.ce-headline-center {
    text-align: center !important;
    margin-inline: auto;
}

.ce-supline {
    font-family: var(--sb-font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sb-primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    .sb-section { padding: 3rem 0; }
    .sb-fullwidth-img { height: 250px; }
    .sb-hero-triangle { display: none; }
    .sb-quadrant-grid { grid-template-columns: 1fr; }
    .sb-quadrant { min-height: auto; }
    .sb-table th, .sb-table td { padding: 0.5rem; font-size: 0.8rem; }
    .sb-layer-pct { position: static; display: block; margin-bottom: 0.25rem; }
}
@media (max-width: 544px) {
    h1 { font-size: 1.75rem; }
    .sb-hero .lead { font-size: 1rem; }
    .sb-infobox { padding: 1.25rem; }
}

/* =============================================================================
   VERTICAL NAV SLIDER
   ============================================================================= */

/* --- Tokens (aligned with sandbox.sharedbrains.com palette) --- */
.sb-slider {
    --sb-slider-bg-nav: var(--sb-primary, #0067FF);
    --sb-slider-bg-content: var(--sb-bg-light, #E7F6FF);
    --sb-slider-text-nav: rgba(255, 255, 255, 0.7);
    --sb-slider-text-nav-active: #FFFFFF;
    --sb-slider-accent: #ffffff;
    --sb-slider-radius: 6px;
    --sb-slider-dur: 8s; /* overridden by JS */
}

/* --- Layout shell (33/67 split, height = tallest slide) --- */
.sb-slider {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: var(--sb-slider-radius);
    position: relative;
}

/* --- Left vertical nav (33%) --- */
.sb-slider__nav {
    flex: 0 0 33.333%;
    background: var(--sb-slider-bg-nav);
    display: flex;
    flex-direction: column;
    padding: 2rem 0 1.5rem;
    overflow-y: auto;
}

/* --- Nav items --- */
.sb-slider__nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    color: var(--sb-slider-text-nav);
    font-family: var(--sb-font-ui);
    font-size: 1.1rem;
    font-weight: 400;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
    border-left: 2px solid transparent;
}

.sb-slider__nav-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

.sb-slider__nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.sb-slider__nav-item.active {
    color: var(--sb-slider-text-nav-active);
    border-left-color: var(--sb-slider-accent);
    background: color-mix(in srgb, var(--sb-slider-accent) 7%, transparent);
}

/* --- Progress bar inside each nav item --- */
.sb-slider__progress {
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 0;
    height: 1px;
    background: var(--sb-slider-accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: none;
}

.sb-slider__nav-item.active .sb-slider__progress {
    animation: sbSliderProgress var(--sb-slider-dur) linear forwards;
}

@keyframes sbSliderProgress {
    to { transform: scaleX(1); }
}

/* Manual mode (auto-play off): hide progress bars and pause badge */
.sb-slider--manual .sb-slider__progress,
.sb-slider--manual .sb-slider__pause-badge {
    display: none;
}

/* --- Content area (67%, grid stacking for dynamic height) --- */
.sb-slider__content {
    flex: 0 0 66.667%;
    display: grid;
    position: relative;
    overflow: hidden;
    background: var(--sb-slider-bg-content);
}

/* --- Panels (all stacked in same grid cell — tallest sets height) --- */
.sb-slider__panel {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    padding: 3.5rem 4rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.sb-slider__panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sb-slider__panel.leaving {
    opacity: 0;
    transform: translateY(-18px);
}

/* Panel accent stripe (right edge) */
.sb-slider__panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--panel-accent, var(--sb-slider-accent));
    opacity: 0.25;
}

/* --- Panel content styles (editorial helpers) --- */
.sb-slider__panel .sb-slider__eyebrow {
    font-family: var(--sb-font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sb-slider-accent);
    margin-bottom: 0.75rem;
}

.sb-slider__panel .sb-slider__title {
    font-family: var(--sb-font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    color: var(--sb-text-dark, #0F172A);
}

.sb-slider__panel .sb-slider__body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--sb-text-secondary, #364151);
    max-width: 640px;
}

.sb-slider__panel .sb-slider__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.sb-slider__panel .sb-slider__info-card {
    background: var(--sb-white, #FFFFFF);
    border-radius: var(--sb-slider-radius);
    padding: 1.25rem;
    box-shadow: 0 1px 6px rgba(var(--sb-primary-rgb), 0.08);
}

.sb-slider__panel .sb-slider__info-card-icon {
    font-size: 1.4rem;
    color: var(--sb-slider-accent);
    margin-bottom: 0.5rem;
}

.sb-slider__panel .sb-slider__info-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.sb-slider__panel .sb-slider__info-card-text {
    font-size: 0.8rem;
    color: var(--sb-text-secondary, #364151);
    line-height: 1.5;
}

/* --- Dot indicators --- */
.sb-slider__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 2.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.sb-slider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sb-gray-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.sb-slider__dot.active {
    background: var(--sb-slider-accent);
    transform: scale(1.4);
}

/* --- Pause badge --- */
.sb-slider__pause-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--sb-slider-bg-nav);
    color: var(--sb-slider-accent);
    font-family: var(--sb-font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 20;
}

.sb-slider__pause-badge.visible {
    opacity: 1;
}

/* --- Responsive --- */

/* Small screens: hide nav, full-width content, dots + swipe for navigation */
@media (max-width: 768px) {
    .sb-slider__nav {
        display: none;
    }

    .sb-slider__content {
        flex: 0 0 100%;
    }

    .sb-slider__panel {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .sb-slider__panel .sb-slider__title {
        font-size: 1.6rem;
    }

    .sb-slider__dots {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Medium screens: narrower nav */
@media (min-width: 769px) and (max-width: 900px) {
    .sb-slider__nav {
        flex: 0 0 25%;
        padding: 1.5rem 0 1rem;
    }

    .sb-slider__content {
        flex: 0 0 75%;
    }

    .sb-slider__nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .sb-slider__panel {
        padding: 2rem 2rem;
    }
}

/* =============================================================================
   HORIZONTAL TABS
   Works standalone (sb-tabs.js) or with Bootstrap 5.3 nav-tabs (data-bs-toggle).
   Grid stacking on panels ensures tallest-panel height without jumps.
   ============================================================================= */

/* --- Intro area (above tabs, regular content elements) --- */
.sb-tabs__intro {
    margin-bottom: 2.5rem;
}

/* --- Tab bar --- */
.sb-tabs__bar {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 1px solid var(--sb-gray-light, #D1DAE5);
    margin-bottom: 2.5rem;
}

/* Bootstrap nav-tabs override: strip default chrome */
.sb-tabs__bar.nav-tabs {
    border-bottom: 1px solid var(--sb-gray-light, #D1DAE5);
}

.sb-tabs__bar.nav-tabs .nav-item {
    margin-bottom: 0;
}

/* --- Tab buttons --- */
.sb-tabs__btn {
    font-family: var(--sb-font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--sb-text-secondary, #364151);
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

/* Bootstrap nav-link override: strip border/bg styles */
.sb-tabs__btn.nav-link {
    border: none;
    border-radius: 0;
    background: none;
}

.sb-tabs__btn.nav-link:hover {
    border-color: transparent;
}

.sb-tabs__btn.nav-link.active {
    background: none;
    border-color: transparent;
}

.sb-tabs__btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}

.sb-tabs__btn:hover {
    color: var(--sb-text-dark, #0F172A);
}

.sb-tabs__btn.active {
    color: var(--sb-text-dark, #0F172A);
    font-weight: 600;
}

.sb-tabs__btn.active::after {
    background: var(--sb-text-dark, #0F172A);
}

/* --- Tab panels (grid stacking for dynamic height) --- */
.sb-tabs__panels {
    display: grid;
    position: relative;
}

.sb-tabs__panel {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.sb-tabs__panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sb-tabs__panel.leaving {
    opacity: 0;
    transform: translateY(-8px);
}

/* Bootstrap tab-pane override: use grid stacking instead of display:none */
.sb-tabs__panel.tab-pane {
    display: block !important;
}

.sb-tabs__panel.tab-pane.active.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .sb-tabs__bar {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .sb-tabs__bar.nav-tabs {
        flex-wrap: nowrap;
    }

    .sb-tabs__btn {
        font-size: 0.88rem;
        padding: 0.6rem 1rem;
        white-space: nowrap;
    }
}

/* ==========================================================================
   VERTICAL TIMELINE
   ========================================================================== */

:root {
    --sb-timeline-circle-size: 32px;
    --sb-timeline-circle-bg: var(--sb-primary, #0067FF);
    --sb-timeline-circle-color: #fff;
    --sb-timeline-line-color: var(--sb-border-light, #dee2e6);
    --sb-timeline-line-width: 2px;
    --sb-timeline-supline-color: var(--sb-primary, #0067FF);
    --sb-timeline-gap: 0;
}

.sb-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--sb-timeline-gap);
}

.sb-timeline__step {
    display: grid;
    grid-template-columns: var(--sb-timeline-circle-size) 1fr;
    gap: 0 1.25rem;
}

/* --- Marker column --- */
.sb-timeline__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row: 1;
}

.sb-timeline__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sb-timeline-circle-size);
    height: var(--sb-timeline-circle-size);
    border-radius: 50%;
    background: var(--sb-timeline-circle-bg);
    color: var(--sb-timeline-circle-color);
    font-family: var(--sb-font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}

.sb-timeline__line {
    display: block;
    width: var(--sb-timeline-line-width);
    flex-grow: 1;
    background: var(--sb-timeline-line-color);
    min-height: 1.5rem;
}

/* --- Content column --- */
.sb-timeline__content {
    grid-row: 1;
    padding-bottom: 2rem;
}

.sb-timeline__supline {
    display: block;
    font-family: var(--sb-font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sb-timeline-supline-color);
    margin-bottom: 0.25rem;
}

.sb-timeline__heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.sb-timeline__body {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--sb-text-muted, #555);
}

.sb-timeline__body p:last-child {
    margin-bottom: 0;
}

/* Last step: no bottom padding */
.sb-timeline__step:last-child .sb-timeline__content {
    padding-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    :root {
        --sb-timeline-circle-size: 28px;
    }

    .sb-timeline__step {
        gap: 0 1rem;
    }

    .sb-timeline__heading {
        font-size: 1.1rem;
    }

    .sb-timeline__content {
        padding-bottom: 1.5rem;
    }
}

/* =============================================================================
   PERSONA PANEL
   Two-column recognition + value layout for tab panels and standalone use.
   Left: quote + pain list. Right: value proposition + metric cards + CTA.

   Usage:
   - Standalone: <div class="sb-persona-panel">...</div>
   - As frame_class on sb-container-2col: the .row.g-4 > .col-md-6 inside
     is restyled to match the persona panel grid via CSS.
   ============================================================================= */

.sb-persona-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* When used as frame_class on sb-container-2col, restyle the Bootstrap row */
.sb-section.sb-persona-panel {
    display: block;
}

.sb-persona-panel > .container > .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.sb-persona-panel > .container > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* --- Left column: recognition block --- */
.sb-persona-panel__recognition {
    background: var(--sb-white, #FFFFFF);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--sb-gray-border, #E8ECF1);
}

.sb-persona-panel__quote {
    font-family: var(--sb-font-body);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--sb-text-dark);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--sb-primary);
}

.sb-persona-panel__pains {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-persona-panel__pains li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-top: 1px solid #F0F3F7;
    font-size: 0.95rem;
    color: var(--sb-text-secondary);
}

.sb-persona-panel__pains li:first-child {
    border-top: none;
}

.sb-persona-panel__pains li i {
    color: var(--sb-status-high, #DC2626);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* --- Right column: value block --- */
.sb-persona-panel__value {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sb-persona-panel__value h4 {
    font-size: 1.1rem;
    color: var(--sb-primary);
    font-family: var(--sb-font-heading);
    font-weight: 600;
    margin: 0;
}

/* --- Metric cards grid --- */
.sb-persona-panel__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sb-metric-card {
    background: var(--sb-bg-light, #E7F6FF);
    border-radius: 10px;
    padding: 1.25rem;
}

.sb-metric-card__number {
    font-family: var(--sb-font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--sb-primary);
    line-height: 1;
}

.sb-metric-card__label {
    font-size: 0.82rem;
    color: var(--sb-text-secondary);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* --- CTA link --- */
.sb-persona-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sb-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sb-primary);
    text-decoration: none;
    margin-top: 0.5rem;
}

.sb-persona-panel__cta:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sb-persona-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sb-persona-panel > .container > .row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sb-persona-panel__metrics {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
   MODULE CARDS — drill-down cards for aggregation / hub pages
   Used on intermediate pages that link to high-density child pages.
   Pattern: phase badge → icon → title → description → metric pills → CTA
   ====================================================================== */
.sb-module-card {
    background: #fff;
    border: 1px solid var(--sb-gray-border, #E8ECF1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.sb-module-card:hover {
    box-shadow: 0 4px 24px rgba(0, 103, 255, 0.1);
    border-color: var(--sb-primary);
}

.sb-module-card__phase {
    font-family: var(--sb-font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 5px;
    padding: 0.15rem 0.5rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.sb-module-card__phase--planning    { background: #EBF8FF; color: #1a365d; }
.sb-module-card__phase--execution   { background: #F0FFF4; color: #276749; }
.sb-module-card__phase--monitoring  { background: #FFFBEB; color: #744210; }
.sb-module-card__phase--intelligence { background: #E6FFFA; color: #285e61; }

.sb-module-card__icon {
    font-size: 1.25rem;
    color: var(--sb-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.sb-module-card__title {
    font-family: var(--sb-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.sb-module-card__desc {
    font-size: 0.875rem;
    color: var(--sb-text-secondary);
    margin: 0 0 0.75rem;
    flex: 1;
}

.sb-module-card__metrics {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.sb-module-card__pill {
    background: #F8FAFC;
    border: 1px solid var(--sb-gray-border, #E8ECF1);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-family: var(--sb-font-ui);
    font-size: 0.72rem;
}

.sb-module-card__pill strong {
    color: var(--sb-primary);
    font-weight: 700;
}

.sb-module-card__link {
    font-family: var(--sb-font-ui);
    font-size: 0.82rem;
    color: var(--sb-primary);
    text-decoration: none;
    font-weight: 600;
}

.sb-module-card__link:hover {
    text-decoration: underline;
}

/* ======================================================================
   PHASE HEADER — colored badge + description for phase-grouped sections
   ====================================================================== */
.sb-phase-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sb-phase-header__badge {
    font-family: var(--sb-font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
}

.sb-phase-header__badge--planning    { background: #EBF8FF; color: #1a365d; }
.sb-phase-header__badge--execution   { background: #F0FFF4; color: #276749; }
.sb-phase-header__badge--monitoring  { background: #FFFBEB; color: #744210; }
.sb-phase-header__badge--intelligence { background: #E6FFFA; color: #285e61; }

.sb-phase-header__desc {
    font-size: 0.875rem;
    color: var(--sb-text-secondary);
}

/* ======================================================================
   STAT STRIP — compact number highlights for hub pages
   ====================================================================== */
.sb-stat-strip {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sb-stat-strip__item {
    text-align: center;
    min-width: 100px;
}

.sb-stat-strip__num {
    font-family: var(--sb-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sb-primary);
    line-height: 1;
}

.sb-stat-strip__label {
    font-family: var(--sb-font-ui);
    font-size: 0.75rem;
    color: var(--sb-text-secondary);
    margin-top: 0.2rem;
}

/* ======================================================================
   PROOF BLOCK — testimonial quote with left accent border
   ====================================================================== */
.sb-proof-block {
    background: #F8F9FA;
    border-left: 3px solid var(--sb-primary);
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--sb-text-dark);
    margin-top: 0.75rem;
}

/* ======================================================================
   QUOTE CARD — persona quote with role kicker and optional link
   ====================================================================== */
.sb-quote-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--sb-gray-border, #E8ECF1);
    padding: 1.5rem;
}

.sb-quote-card__role {
    font-family: var(--sb-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sb-primary);
    margin-bottom: 0.5rem;
}

.sb-quote-card blockquote {
    font-size: 1rem;
    font-style: italic;
    color: var(--sb-text-dark);
    margin: 0 0 0.75rem;
    border: none;
    padding: 0;
}

.sb-quote-card__link {
    font-family: var(--sb-font-ui);
    font-size: 0.8rem;
    color: var(--sb-primary);
    text-decoration: none;
}

.sb-quote-card__link:hover {
    text-decoration: underline;
}

/* ======================================================================
   FLOW BADGE — inline label for strategy/method names
   ====================================================================== */
.sb-flow-badge {
    display: inline-block;
    background: var(--sb-bg-light, #E7F6FF);
    color: var(--sb-primary);
    font-family: var(--sb-font-ui);
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 6px;
    padding: 0.25rem 0.65rem;
    margin: 0.2rem;
}

/* ======================================================================
   RESPONSIVE — module cards and stat strip
   ====================================================================== */
@media (max-width: 768px) {
    .sb-phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .sb-stat-strip {
        gap: 1rem;
    }

    .sb-stat-strip__item {
        min-width: 80px;
    }

    .sb-stat-strip__num {
        font-size: 1.5rem;
    }
}
