:root {
    /* Theme Tokens - Dark with Bluish-Charcoal & Copper Accents */
    --bg-body: #12171f;
    --bg-card: #1a2230;
    --bg-header-footer: #0d1219;
    --bg-light-surface: #2a3442; /* For mixed surfaces */
    --text-primary: #e6edf7;
    --text-secondary: #b0b8c5;
    --text-muted: #8892a6;
    --link: #c0a066; /* Copper */
    --link-hover: #e6c88a;
    --color-accent: #c0a066;
    --color-accent-fg: #0d1219;
    --border-color: #2a3442;
    --focus-ring: rgba(192, 160, 102, 0.5);

    /* Spacing Scale (8px base) */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;

    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
    --site-max-width:1200px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--space-4);
}

h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    max-width: 70ch;
}

ul, ol {
    padding-left: var(--space-4);
    margin-bottom: var(--space-3);
}

li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--link-hover);
    outline: none;
}

/* Layout Containers */
.site-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Sections */
.section {
    padding: var(--space-7) 0;
    width: 100%;
}

@media (max-width: 720px) {
    .section {
        padding: var(--space-5) 0;
    }
}

/* Grid System */
.grid-layout {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(12, 1fr);
}

/* Header */
.site-header {
    background-color: var(--bg-header-footer);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-2) 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.site-logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.site-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-3);
    align-items: center;
}

.site-nav-list a {
    color: var(--text-secondary);
    padding: 8px 10px;
    line-height: 1.1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.site-nav-list a:hover,
.site-nav-list a.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Navigation */
.site-header-inner {
    position: relative;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    color: inherit;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: 0.3s ease;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
        z-index: 1001;
        padding: var(--space-3);
    }

    .site-nav.is-open {
        display: flex !important;
    }

    .site-nav-list {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
        width: 100%;
    }

    .site-nav-list li {
        margin: 0;
    }
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Footer */
.site-footer {
    background-color: var(--bg-header-footer);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding-top: var(--space-6);
}

.site-footer-inner {
    display: grid;
    gap: var(--space-5);
    padding-bottom: var(--space-6);
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.site-footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer-nav a:hover {
    color: var(--link);
}

.site-footer-meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-3);
}

/* Cards & Panels */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Mixed Surfaces - Light backgrounds require dark text */
.section--light {
    background-color: var(--bg-light-surface);
}

.section--light h1, .section--light h2, .section--light h3,
.section--light p, .section--light li, .section--light a {
    color: var(--text-primary);
}

.section--light a {
    color: var(--color-accent);
}
.section--light a:hover {
    color: var(--link-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    white-space: nowrap;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-accent-fg);
    border-color: var(--color-accent);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--link-hover);
    border-color: var(--link-hover);
    color: var(--color-accent-fg);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: rgba(192, 160, 102, 0.1);
    color: var(--link-hover);
}

.hero-actions, .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-3);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

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

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Blueprint Specifics (LAYOUT_BLUEPRINT=5) */
.bp-panel-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bp-kpi-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Blueprint Hero Grid */
.bp-hero-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

@media (max-width: 960px) {
    .bp-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mb-2 { margin-bottom: var(--space-2); }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--color-accent);
    padding: var(--space-3);
    z-index: 2000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    max-width: 100%;
    color: var(--text-secondary);
}

/* Framework Overrides (Bootstrap) */
@media (min-width: 992px) {
    .col-lg-6 { width: 50%; float: left; padding: 0 10px; }
    .row { margin-left: -10px; margin-right: -10px; }
    .row::after { content: ""; display: table; clear: both; }
}


/* AUTO-PATCHED: spacing basics (v1) */
*,*::before,*::after{box-sizing:border-box}
body{line-height:1.6}
.section{padding:56px 0}
.grid-layout{gap:20px}
.hero-actions,.form-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center}


/* AUTO-PATCHED: Show burger button on mobile */
@media (max-width: 720px){
  .nav-toggle{display:inline-flex !important}
}


/* AUTO-PATCHED: Vertical rhythm safety */
:where(main section, main .section){padding:56px 0}
@media (max-width:720px){:where(main section, main .section){padding:40px 0}}
:where(main h2, main h3){margin:0 0 14px}
:where(main p, main ul, main ol){margin:0 0 14px}
:where(main ul, main ol){padding-left:1.2em}
:where(main .grid-layout){gap:20px}
:where(main .card){padding:24px}
:where(main .hero-actions, main .form-actions){margin-top:18px;margin-bottom:28px;gap:14px;flex-wrap:wrap}


/* AUTO-PATCHED: Hero CTA spacing (v1) */
:where(main .hero-cta){margin-top:18px;margin-bottom:28px;display:flex;gap:14px;flex-wrap:wrap}


/* AUTO-PATCHED: Card text contrast safety (v1) */
.card{color:var(--text-primary, currentColor) !important}
.card :where(p,li){color:var(--text-secondary, var(--text-primary, currentColor)) !important}
.card :where(h1,h2,h3,h4,h5,h6){color:var(--text-primary, currentColor) !important}


/* AUTO-PATCHED: Mobile stack safety (v1) */
@media (max-width:720px){
  main .grid-layout{grid-template-columns:1fr !important}
  main .grid-layout.bp-grid-2,
  main .grid-layout.bp-grid-3,
  main .bp-grid-2,
  main .bp-grid-3{grid-template-columns:1fr !important}
  main .bp-hero-grid{grid-template-columns:1fr !important}
  main .bp-kpi-grid{grid-template-columns:1fr !important}
  main .bp-panelled{display:grid !important;grid-template-columns:1fr !important}
  main .bp-hero-split{display:grid !important;grid-template-columns:1fr !important}
  main .bp-editorial{display:grid !important;grid-template-columns:1fr !important}
  main .bp-zigzag-row{display:grid !important;grid-template-columns:1fr !important}
  main .bp-hero-grid > *,
  main .grid-layout > *,
  main .bp-grid-2 > *,
  main .bp-grid-3 > *,
  main .bp-kpi-grid > *,
  main .bp-panelled > *,
  main .bp-hero-split > *,
  main .bp-editorial > *{min-width:0}
}


/* AUTO-PATCHED: Footer copyright centered (v1) */
.site-footer-meta{display:block !important;text-align:center !important;justify-content:initial !important;align-items:initial !important;gap:0 !important;flex-wrap:initial !important}
.site-footer-meta{letter-spacing:normal !important;word-spacing:normal !important}

/* AUTO-PATCHED: Footer grid columns (v5) */
@media (min-width:721px){
  .site-footer .site-footer-inner{display:grid !important;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) !important;gap:clamp(18px,3vw,64px) !important;align-items:start}
  .site-footer .site-footer-left{display:flex !important;flex-direction:column !important;gap:18px !important}
  .site-footer .site-footer-right{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;gap:clamp(18px,3vw,56px) !important;justify-content:end !important}
  .site-footer .site-footer-brand,.site-footer .site-footer-contact{justify-self:start !important}
  .site-footer .site-footer-links,.site-footer .site-footer-legal,.site-footer .site-footer-nav{justify-self:start !important}
  .site-footer .site-footer-meta{grid-column:1 / -1 !important}
}


/* AUTO-PATCHED: Footer brand title polish (v3) */
.site-footer-brand{display:flex;flex-direction:column;gap:10px}
@media (min-width:721px){.site-footer-brand{text-align:left;align-items:flex-start}}
.site-footer-title{font-weight:800;font-size:clamp(1.1rem,2.2vw,1.6rem);line-height:1.1;letter-spacing:-0.02em;color:var(--text-body, var(--text-footer, #fff))}
.site-footer-note{max-width:36ch;opacity:0.82}


/* AUTO-PATCHED: Footer flexora-style (v4) */
.site-footer{background:var(--bg-surface, var(--bg-body, #fff)) !important;color:var(--text-body, var(--text-main, var(--text-primary, #111))) !important}
.site-footer a{color:var(--text-muted, var(--text-secondary, var(--text-body, var(--text-main, var(--text-primary, #111))))) !important;text-decoration:none}
.site-footer a:hover,.site-footer a:focus-visible{text-decoration:underline}
.site-footer .site-footer-col-title{margin:0 0 10px;font-size:1rem;font-weight:800;color:var(--text-body, var(--text-main, var(--text-primary, #111)))}
.site-footer .site-footer-contact-title{margin:0 0 10px;font-size:1rem;font-weight:800;color:var(--text-body, var(--text-main, var(--text-primary, #111)))}
.site-footer .site-footer-contact-item{color:var(--text-muted, var(--text-secondary, var(--text-body, var(--text-main, var(--text-primary, #111)))));margin:0 0 8px;display:flex;gap:10px;align-items:flex-start}
.site-footer .site-footer-icon{display:inline-flex;align-items:center;justify-content:center;opacity:0.9;flex:0 0 auto;margin-top:1px}
.site-footer .site-footer-icon svg{display:block}
.site-footer .site-footer-contact-text{display:inline-block;min-width:0}
.site-footer .site-footer-meta{border-top:1px solid var(--border, rgba(0,0,0,0.12)) !important;margin-top:28px !important;padding-top:18px !important;color:var(--text-muted, var(--text-secondary, var(--text-body, var(--text-main, var(--text-primary, #111))))) !important}


/* AUTO-PATCHED: Footer contrast safety (v2) */
.site-footer{background:var(--footer-bg, var(--bg-surface, var(--bg-body, #fff))) !important;color:var(--footer-link, #cbd5e1) !important}
.site-footer a{color:var(--footer-link, #cbd5e1) !important}
.site-footer a:hover,.site-footer a:focus-visible{color:var(--footer-link-hover, #ffffff) !important}
.site-footer .site-footer-contact-item{color:var(--footer-link, #cbd5e1) !important}
.site-footer .site-footer-meta{color:var(--footer-link, #cbd5e1) !important;border-top-color:rgba(255,255,255,0.12) !important}
.site-footer .site-footer-title,.site-footer .site-footer-col-title,.site-footer .site-footer-contact-title{color:var(--footer-link-hover, #ffffff) !important}


/* AUTO-PATCHED: Footer mobile blocks centered (v5) */
@media (max-width:720px){
  .site-footer .site-footer-inner{display:grid !important;grid-template-columns:1fr !important;justify-items:center !important;align-items:center !important;gap:24px !important}
  .site-footer .site-footer-left,
  .site-footer .site-footer-right,
  .site-footer .site-footer-brand,
  .site-footer .site-footer-contact,
  .site-footer .site-footer-links,
  .site-footer .site-footer-legal,
  .site-footer .site-footer-nav,
  .site-footer .site-footer-meta{text-align:center !important}
  .site-footer .site-footer-brand{align-items:center !important}
  .site-footer .site-footer-left{display:flex !important;flex-direction:column !important;gap:18px !important;align-items:center !important;justify-self:center !important}
  .site-footer .site-footer-right{display:grid !important;grid-template-columns:1fr !important;justify-items:center !important;gap:24px !important;justify-self:center !important}
  .site-footer .site-footer-contact{margin-top:4px !important;align-items:center !important}
  .site-footer .site-footer-contact-item{justify-content:center !important}
  .site-footer .site-footer-nav,.site-footer .site-footer-links,.site-footer .site-footer-legal{align-items:center !important}
}


/* AUTO-PATCHED: Brand logo emphasis (v1) */
.site-logo{font-weight:900 !important;font-size:clamp(1.15rem,2.1vw,1.5rem) !important;letter-spacing:-0.02em !important;text-decoration:none}
.site-logo:hover,.site-logo:focus-visible{text-decoration:none}
.site-footer-title{font-weight:900 !important;font-size:clamp(1.2rem,2.6vw,1.85rem) !important;letter-spacing:-0.03em !important}
.site-logo span{font-weight:900 !important}


/* AUTO-PATCHED: Burger layering */
@media (max-width:720px){
  .site-header-inner{position:relative}
  .site-header .site-nav{position:relative;z-index:1001}
  .site-header .nav-toggle{position:relative;z-index:1002;pointer-events:auto}
}


/* AUTO-PATCHED: Burger toggle anchored (v2) */
@media (max-width:720px){
  .site-header .site-container{position:relative !important}
  .site-header .site-header-inner{position:relative !important}
  .site-header .nav-toggle,
  .site-header [data-nav-toggle]{position:absolute !important;top:50% !important;right:0 !important;left:auto !important;bottom:auto !important;margin:0 !important;transform:translateY(-50%) !important;z-index:1002 !important}
  .site-header .nav-toggle.is-open,
  .site-header [data-nav-toggle].is-open{position:absolute !important;top:50% !important;right:0 !important;left:auto !important;bottom:auto !important;margin:0 !important;transform:translateY(-50%) !important}
  .site-header .nav-toggle span{position:relative !important;top:auto !important;left:auto !important;right:auto !important;bottom:auto !important}
}


/* AUTO-PATCHED: Mobile nav dropdown positioning (v3) */
@media (max-width:720px){
  .site-header .site-header-inner{position:relative}
  .site-header .site-nav{position:static !important}
  .site-header .site-nav.is-open .site-nav-list{position:absolute !important;top:100% !important;left:0 !important;right:0 !important;z-index:1003 !important;flex-direction:column !important;background:var(--contract-surface, var(--bg-card, #fff)) !important;border:1px solid var(--contract-border, var(--border-light, rgba(0,0,0,0.12))) !important;border-top:0 !important;box-shadow:0 8px 24px rgba(0,0,0,0.12) !important;padding:12px 16px !important}
  .site-header .site-nav.is-open .site-nav-list a{padding:10px 12px !important}
}


/* AUTO-PATCHED: Mobile nav closed by default (v2) */
@media (max-width: 720px){
  .site-header .site-nav .site-nav-list{display:none !important}
  .site-header .site-nav.is-open .site-nav-list{display:flex !important}
}
/* Auto-injected: generated images */
.generated-site-image {
  max-width: 100%;
  height: auto;
  display: block;
}


/* AUTO-PATCHED: cta-group margin-bottom (v1) */
.cta-group{margin-bottom:15px !important}


/* AUTO-PATCHED: Icon sizing safety (v1) */
.icon{width:20px !important;height:20px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:0 0 auto !important;vertical-align:middle !important;line-height:0 !important}
svg.icon{width:20px !important;height:20px !important}
.icon svg{width:100% !important;height:100% !important;display:block !important}
.site-footer-icon svg{width:18px !important;height:18px !important}


/* AUTO-PATCHED: bp-panel layout (v1) */
.bp-panel-grid{grid-template-columns:1fr !important}
.bp-panel{display:grid !important;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
.bp-panel .panel-content{min-width:0}
.bp-panel .panel-visual{display:flex;align-items:center;gap:10px;justify-content:flex-start;white-space:nowrap}
.bp-panel .panel-visual span{font-weight:700}
@media (max-width:720px){.bp-panel{grid-template-columns:1fr !important}.bp-panel .panel-visual{white-space:normal}}


/* AUTO-PATCHED: bp-stats layout (v1) */
.bp-stats.grid-layout{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
@media (max-width:960px){.bp-stats.grid-layout{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media (max-width:720px){.bp-stats.grid-layout{grid-template-columns:1fr !important}}
.bp-stats > *{min-width:0}


/* AUTO-PATCHED: Overflow safety */
.site-container,.container{overflow-x:clip}
.bp-hero-grid > *, .grid-layout > *, .bp-grid-2 > *, .bp-grid-3 > *, .bp-kpi-grid > *{min-width:0}
img,svg,video,canvas,iframe{max-width:100%;height:auto}


/* AUTO-PATCHED: Overflow safety (v2) */
html,body{overflow-x:clip}
@supports not (overflow:clip){html,body{overflow-x:hidden}}
.site-container,.container{overflow-x:clip}
main > section > img, main > section > picture, main > section > video{display:block;width:100%;max-width:var(--site-max-width,1200px);height:auto;margin-left:auto;margin-right:auto}
main > section > picture > img{display:block;width:100%;max-width:100%;height:auto}
.bp-hero-grid > *, .grid-layout > *, .bp-grid-2 > *, .bp-grid-3 > *, .bp-kpi-grid > *{min-width:0}
.site-footer .site-footer-inner > *{min-width:0}
.site-footer .site-footer-right, .site-footer .site-footer-links, .site-footer .site-footer-legal{min-width:0}
.site-footer .site-footer-contact-item, .site-footer .site-footer-contact-text{min-width:0}
.site-footer .site-footer-contact-text, .site-footer .site-footer-links a, .site-footer .site-footer-legal a{overflow-wrap:anywhere;word-break:break-word}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
table,pre,code{max-width:100%;overflow-x:auto}


/* AUTO-PATCHED: bp-hero-grid container fix (v2) */
section.bp-hero-grid > .site-container{grid-column:1/-1;display:grid;gap:var(--space-20, var(--space-xl, 24px));grid-template-columns:1.2fr 1fr;align-items:center}
section.bp-hero-grid > .site-container > *{min-width:0}
@media (max-width:960px){section.bp-hero-grid > .site-container{grid-template-columns:1fr}}
@media (max-width:720px){section.bp-hero-grid > .site-container{grid-template-columns:1fr}}


/* AUTO-PATCHED: Max width clamp (prevents oversized blocks) */
:root{--site-max-width:1200px;}
html, body{max-width:100%;overflow-x:clip}
.site-container,.container{width:min(100%, var(--site-max-width,1200px)) !important;max-width:var(--site-max-width,1200px) !important}
.site-header,.site-footer,main,section,header,footer,nav,.card,.grid-layout,.bp-hero-grid,.bp-grid-2,.bp-grid-3,.bp-kpi-grid{max-width:100%}
img,svg,video,canvas,iframe,table,pre,code{max-width:100%}


/* AUTO-PATCHED: bp-stats layout (v2) */
.bp-stats.grid-layout.bp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.bp-stats.grid-layout.bp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
@media (max-width:720px){.bp-stats.grid-layout.bp-grid-2,.bp-stats.grid-layout.bp-grid-3{grid-template-columns:1fr !important}}




/* AUTO-PATCHED: bp-editorial layout safety (v1) */
.bp-editorial.grid-layout{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,2fr) !important;gap:24px;align-items:start}
@media (max-width:960px){.bp-editorial.grid-layout{grid-template-columns:1fr !important}}
.bp-editorial .bp-aside,.bp-editorial .bp-main{min-width:0}
.bp-editorial .bp-main{display:grid;gap:16px}




/* AUTO-PATCHED: Blueprint grid layout safety (v1) */
.grid-layout.bp-grid-2,.bp-grid-2.grid-layout{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.grid-layout.bp-grid-3,.bp-grid-3.grid-layout{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
@media (max-width:960px){.grid-layout.bp-grid-3,.bp-grid-3.grid-layout{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media (max-width:720px){.grid-layout.bp-grid-2,.bp-grid-2.grid-layout,.grid-layout.bp-grid-3,.bp-grid-3.grid-layout{grid-template-columns:1fr !important}}
.bp-zigzag-row.grid-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;gap:24px;align-items:start}
@media (max-width:960px){.bp-zigzag-row.grid-layout{grid-template-columns:1fr !important}}
.bp-panel-grid.grid-layout{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:20px}
@media (max-width:720px){.bp-panel-grid.grid-layout{grid-template-columns:1fr !important}}
.bp-kpi-grid.grid-layout{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:20px}
@media (max-width:960px){.bp-kpi-grid.grid-layout{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media (max-width:720px){.bp-kpi-grid.grid-layout{grid-template-columns:1fr !important}}




/* AUTO-PATCHED: bp-panel layout (v2) */
.bp-panel.card{display:flex !important;flex-direction:column;align-items:flex-start;gap:12px}
.bp-panel.card > *{min-width:0}
.bp-panel.card .panel-visual{display:flex;align-items:center;gap:10px;justify-content:flex-start;white-space:nowrap}
@media (max-width:720px){.bp-panel.card .panel-visual{white-space:normal}}


/* AUTO-PATCHED: Footer nav & hover safety (v4) */
.site-footer-nav,.site-footer-links,.site-footer-legal{display:flex !important;flex-direction:column !important;gap:10px !important}
.site-footer .site-footer-right .site-footer-links,.site-footer .site-footer-right .site-footer-legal{display:flex !important;flex-direction:column !important}
.site-footer-nav a,.site-footer-links a,.site-footer-legal a{display:block !important;align-items:center}
.site-footer a:hover,.site-footer a:focus-visible,.site-footer-nav a:hover,.site-footer-nav a:focus-visible,.site-footer-links a:hover,.site-footer-links a:focus-visible,.site-footer-legal a:hover,.site-footer-legal a:focus-visible{color:var(--contract-accent) !important}
