:root{--ink:#10202e;--muted:#6b7a87;--line:#dce5ec;--soft:#f4f8fb;--blue:#155d8f;--white:#fff;--shadow:0 20px 55px rgba(30,58,78,.12)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}a{text-decoration:none;color:inherit}.topbar{
    height:74px;
    padding:0 5vw;
    display:flex;
    align-items:center;
    gap:34px;
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    z-index:20;
}

.brand{
    display:inline-flex;
    align-items:center;
    height:40px;
    font-weight:850;
    font-size:20px;
    letter-spacing:-.5px;
    line-height:1;
}

.topbar nav{
    display:flex;
    align-items:center;
    gap:28px;
    margin-left:auto;
    color:#405260;
    font-size:14px;
    line-height:1;
}

.topbar nav a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:40px;
    line-height:1;
    white-space:nowrap;
}

.topbar nav .ghost{
    border:1px solid var(--line);
    background:white;
    border-radius:10px;
    padding:0 15px;
}.hero{max-width:1240px;margin:auto;padding:80px 28px;display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.7px;color:var(--blue)}h1{font-size:60px;line-height:1.02;letter-spacing:-2.6px;margin:14px 0 20px;max-width:760px}h2{font-size:38px;letter-spacing:-1.4px;margin:7px 0 0}.hero p,.catalog-card p{font-size:18px;line-height:1.7;color:var(--muted);max-width:700px}.hero-actions{display:flex;gap:12px;margin-top:28px}.btn{display:inline-flex;justify-content:center;align-items:center;padding:13px 19px;border-radius:11px;font-weight:750;border:0;cursor:pointer}.primary{background:var(--blue);color:white}.secondary{border:1px solid var(--line);background:white}.wide{width:100%;margin-top:18px}.stats{display:flex;gap:38px;margin-top:42px}.stats div{display:flex;flex-direction:column}.stats strong{font-size:24px}.stats span{color:var(--muted);font-size:13px}.hero-card{background:linear-gradient(145deg,#eef5f9,#dfeaf2);padding:38px;border-radius:28px;box-shadow:var(--shadow)}.mini-sheet{background:#fff;aspect-ratio:1/1.414;border-radius:5px;padding:32px;box-shadow:0 18px 35px rgba(32,54,70,.17)}.mini-logo{font-size:10px;color:#607587}.mini-title{font-weight:850;font-size:26px;margin-top:45px}.mini-model{font-size:12px;color:var(--blue);font-weight:700;margin-top:5px}.mini-photo{height:42%;background:linear-gradient(135deg,#e6edf1,#f9fbfc);margin:28px 0;border-radius:8px}.mini-bars{display:grid;gap:7px}.mini-bars span{height:7px;background:#e2e8ed;border-radius:5px}.mini-bars span:nth-child(2){width:86%}.mini-bars span:nth-child(3){width:72%}.section{max-width:1240px;margin:auto;padding:76px 28px}.section-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-end}.chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.chip{border:1px solid var(--line);background:white;border-radius:999px;padding:8px 12px;font-size:12px;cursor:pointer}.chip.active{background:#10202e;color:#fff;border-color:#10202e}.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:30px}.template-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white;cursor:pointer;transition:.2s}.template-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.thumb{aspect-ratio:1/1.18;padding:22px;background:#eef3f6}.thumb-sheet{height:100%;background:white;border-radius:4px;padding:16px;display:grid;grid-template-rows:auto 1fr auto;box-shadow:0 10px 20px rgba(20,40,54,.10)}.thumb-title{font-weight:800;font-size:13px}.thumb-shape{margin:18px 0;border-radius:7px;background:linear-gradient(135deg,#dfe8ee,#f7f9fa)}.template-meta{padding:14px}.template-meta strong{display:block}.template-meta span{font-size:12px;color:var(--muted)}.builder-section{padding-top:90px}.builder{display:grid;grid-template-columns:360px 1fr;gap:28px;margin-top:28px}.panel{border:1px solid var(--line);border-radius:16px;background:#fff}.form-panel{padding:20px;align-self:start;position:sticky;top:92px}.form-panel label{display:block;font-size:12px;font-weight:750;margin-bottom:14px}.form-panel input,.form-panel textarea,.preview-toolbar select,.spec-row input{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 11px;margin-top:6px;font:inherit;background:#fff}.form-panel textarea{height:98px;resize:vertical}.specs-head{display:flex;justify-content:space-between;align-items:center;margin:18px 0 8px;font-size:13px}.specs-head button{border:0;background:var(--soft);border-radius:8px;padding:7px 10px;cursor:pointer}.spec-row{display:grid;grid-template-columns:1fr 1fr 28px;gap:6px;margin-bottom:7px}.spec-row button{border:0;background:#fff;color:#9a5360;cursor:pointer}.preview-wrap{background:var(--soft);border-radius:18px;padding:20px;min-height:960px}.preview-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-bottom:16px;font-size:12px}.preview-toolbar select{width:210px;margin:0}.brochure{--accent:#155d8f;width:min(760px,100%);aspect-ratio:1/1.414;margin:auto;background:#fff;box-shadow:0 18px 40px rgba(27,50,67,.14);padding:44px;display:flex;flex-direction:column}.brochure-header,.brochure-footer{display:flex;justify-content:space-between;align-items:center}.brochure-logo{font-weight:850}.brochure-badge{font-size:10px;letter-spacing:1.2px;color:var(--accent);font-weight:800}.brochure-main{display:grid;grid-template-columns:1fr .86fr;gap:32px;align-items:center;margin-top:70px}.product-kicker{font-size:10px;letter-spacing:1.5px;color:var(--accent);font-weight:800}.copy h3{font-size:39px;line-height:1.02;margin:8px 0}.product-model{font-size:15px;color:var(--accent);font-weight:800}.copy p{font-size:13px;line-height:1.65;color:#5d6b75}.photo-box{aspect-ratio:1;background:linear-gradient(145deg,#edf3f6,#dfe8ed);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#78909e;font-size:11px;background-size:contain;background-position:center;background-repeat:no-repeat}.photo-box.has-image span{display:none}.spec-card{border-top:4px solid var(--accent);margin-top:55px;padding-top:18px}.spec-card h4{margin:0 0 12px}.spec-line{display:grid;grid-template-columns:1fr 1fr;padding:8px 0;border-bottom:1px solid #e8eef2;font-size:12px}.spec-line span:last-child{text-align:right;font-weight:700}.brochure-footer{margin-top:auto;border-top:1px solid #e3e9ed;padding-top:13px;color:#6e7f8b;font-size:10px}.template-dark{background:#12202c;color:#fff}.template-dark .copy p,.template-dark .brochure-footer{color:#c3ced6}.template-dark .spec-line{border-color:#344551}.template-dark .photo-box{background-color:#263946}.template-minimal{padding:58px}.template-minimal .brochure-main{grid-template-columns:1fr;margin-top:50px}.template-minimal .photo-box{order:-1;max-height:260px}.catalog-card{border-radius:24px;padding:46px;background:#10202e;color:#fff;display:grid;grid-template-columns:1.25fr .75fr;gap:44px;align-items:center}.catalog-card p{color:#c9d4dc}.catalog-flow{display:grid;grid-template-columns:1fr;gap:9px}.catalog-flow span{background:#1b3244;border:1px solid #31516a;border-radius:11px;padding:12px 14px}.catalog-flow b{text-align:center}.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px}.pricing-grid article{border:1px solid var(--line);border-radius:18px;padding:28px;position:relative}.pricing-grid .featured{border:2px solid var(--blue)}.popular{position:absolute;top:-11px;right:18px;background:var(--blue);color:#fff;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:850}.price{font-size:38px;font-weight:850;margin:18px 0}.price span{font-size:14px;color:var(--muted)}.pricing-grid p{color:var(--muted);line-height:1.6}@media(max-width:900px){.topbar nav{display:none}.hero{grid-template-columns:1fr;padding-top:48px}.hero h1{font-size:44px}.template-grid{grid-template-columns:repeat(2,1fr)}.builder{grid-template-columns:1fr}.form-panel{position:static}.catalog-card{grid-template-columns:1fr}.pricing-grid{grid-template-columns:1fr}}@media(max-width:560px){
.hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.section:not(:where(#realPreview *, .bf-create-template-thumb *)){padding-left:18px;padding-right:18px}
.hero h1:not(:where(#realPreview *, .bf-create-template-thumb *)){font-size:38px}
.hero-actions:not(:where(#realPreview *, .bf-create-template-thumb *)),
.stats:not(:where(#realPreview *, .bf-create-template-thumb *)){flex-direction:column}
.section-head:not(:where(#realPreview *, .bf-create-template-thumb *)){align-items:flex-start;flex-direction:column}
.chips:not(:where(#realPreview *, .bf-create-template-thumb *)){justify-content:flex-start}
.template-grid:not(:where(#realPreview *, .bf-create-template-thumb *)){grid-template-columns:1fr}
.brochure:not(:where(#realPreview *, .bf-create-template-thumb *)){padding:24px}
.brochure-main:not(:where(#realPreview *, .bf-create-template-thumb *)){grid-template-columns:1fr;margin-top:32px}
.copy h3:not(:where(#realPreview *, .bf-create-template-thumb *)){font-size:30px}
.preview-wrap:not(:where(#realPreview *, .bf-create-template-thumb *)){padding:8px}}
@media print{body *{visibility:hidden}.brochure,.brochure *{visibility:visible}.brochure{position:absolute;left:0;top:0;width:var(--brochure-page-width,210mm);height:var(--brochure-page-height,297mm);min-height:var(--brochure-page-height,297mm);box-shadow:none;margin:0}.preview-wrap{background:#fff;padding:0}}

/* Authentication / utility pages */
.auth-page{
    max-width:560px;
    margin:0 auto;
    padding:80px 24px;
}

.auth-card{
    border:1px solid var(--line);
    border-radius:20px;
    padding:34px;
    background:#fff;
    box-shadow:var(--shadow);
}

.auth-card h1{
    font-size:38px;
    letter-spacing:-1.4px;
    margin:0 0 10px;
}

.auth-card p{
    color:var(--muted);
    line-height:1.6;
}

.auth-card form{
    margin-top:26px;
}

.auth-card label{
    display:block;
    font-size:12px;
    font-weight:750;
    margin:16px 0 6px;
}

.auth-card input{
    width:100%;
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px 13px;
    font:inherit;
    background:#fff;
}

.auth-card input:focus{
    outline:none;
    border-color:var(--blue);
    box-shadow:0 0 0 3px rgba(21,93,143,.10);
}

.auth-card .btn{
    width:100%;
    margin-top:22px;
}

.auth-links{
    margin-top:20px;
    text-align:center;
    font-size:14px;
}

.auth-links a{
    color:var(--blue);
    font-weight:700;
}

.error{
    background:#fff1f2;
    border:1px solid #f0c9ce;
    color:#9a3d49;
    border-radius:10px;
    padding:11px 13px;
    margin:18px 0;
}

.flash{
    background:#eef7f2;
    border:1px solid #cce7d8;
    color:#276847;
    border-radius:10px;
    padding:11px 13px;
}

@media(max-width:700px){
    .topbar{
        height:auto;
        min-height:68px;
        padding:12px 18px;
        gap:15px;
    }

    .topbar nav{
        gap:12px;
        flex-wrap:wrap;
        justify-content:flex-end;
    }

    .topbar nav a{
        font-size:12px;
    }

    .auth-page{
        padding:45px 18px;
    }

    .auth-card{
        padding:24px;
    }
}


/* =========================================================
   BROCHUREFORGE AUTH PAGES
   Completely isolated from the application UI
   ========================================================= */

body.auth-body{
    margin:0;
    min-height:100vh;
    background:#f5f8fa;
    color:#10202e;
}

.auth-shell{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.auth-header{
    height:76px;
    padding:0 5vw;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    border-bottom:1px solid #dce5ec;
}

.auth-logo{
    color:#10202e;
    text-decoration:none;
    font-size:21px;
    font-weight:800;
    letter-spacing:-.5px;
}

.auth-back{
    color:#526572;
    text-decoration:none;
    font-size:14px;
}

.auth-back:hover{
    color:#155d8f;
}

.auth-main{
    flex:1;
    width:100%;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:70px 20px 50px;
}

.auth-box{
    width:100%;
    max-width:480px;
    background:#fff;
    border:1px solid #dce5ec;
    border-radius:18px;
    padding:38px;
    box-shadow:0 18px 45px rgba(30,58,78,.10);
}

.auth-kicker{
    color:#155d8f;
    font-size:11px;
    font-weight:800;
    letter-spacing:1.8px;
    margin-bottom:13px;
}

.auth-box h1{
    margin:0 0 12px;
    max-width:none;
    font-size:38px;
    line-height:1.08;
    letter-spacing:-1.5px;
}

.auth-intro{
    margin:0;
    color:#6b7a87;
    font-size:15px;
    line-height:1.65;
}

.auth-form{
    margin-top:28px;
}

.auth-form label{
    display:block;
    margin:17px 0 7px;
    color:#263b4a;
    font-size:13px;
    font-weight:700;
}

.auth-form input{
    display:block;
    width:100%;
    height:48px;
    padding:0 13px;
    margin:0;
    border:1px solid #ccd8e0;
    border-radius:9px;
    background:#fff;
    color:#10202e;
    font-family:inherit;
    font-size:15px;
    outline:none;
}

.auth-form input:focus{
    border-color:#155d8f;
    box-shadow:0 0 0 3px rgba(21,93,143,.10);
}

.auth-submit{
    display:flex;
    width:100%;
    height:48px;
    align-items:center;
    justify-content:center;
    margin-top:25px;
    border:0;
    border-radius:9px;
    background:#155d8f;
    color:#fff;
    font-family:inherit;
    font-size:15px;
    font-weight:750;
    cursor:pointer;
}

.auth-submit:hover{
    background:#104b73;
}

.auth-switch{
    margin-top:22px;
    text-align:center;
    color:#6b7a87;
    font-size:14px;
}

.auth-switch a{
    color:#155d8f;
    font-weight:700;
    text-decoration:none;
}

.auth-error{
    margin-top:20px;
    padding:12px 14px;
    border:1px solid #efc8ce;
    border-radius:9px;
    background:#fff3f4;
    color:#9a3d49;
    font-size:13px;
    line-height:1.5;
}

.auth-footer{
    padding:22px;
    text-align:center;
    color:#91a0aa;
    font-size:12px;
}

@media(max-width:600px){

    .auth-header{
        height:68px;
        padding:0 18px;
    }

    .auth-back{
        font-size:12px;
    }

    .auth-main{
        padding:35px 16px;
    }

    .auth-box{
        padding:27px 22px;
        border-radius:15px;
    }

    .auth-box h1{
        font-size:31px;
    }
}


/* =========================================================
   BROCHUREFORGE PRICING
   ========================================================= */

.pricing-section {
  scroll-margin-top: 90px;
}

.pricing-section .section-head {
  max-width: 760px;
}

.pricing-section .section-head p {
  margin-top: 12px;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1px solid #e4eaf1;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 38, 64, .06);
}

.pricing-card h3 {
  margin: 8px 0 10px;
  font-size: 25px;
  line-height: 1.2;
}

.pricing-kicker {
  color: #175986;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.pricing-description {
  min-height: 54px;
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 20px;
}

.pricing-price strong {
  color: #123d5c;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.04em;
}

.pricing-price span {
  color: #667085;
  font-size: 14px;
}

.pricing-features {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: #344054;
  font-size: 14px;
}

.pricing-features li {
  position: relative;
  padding-left: 22px;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #175986;
  font-weight: 800;
}

.pricing-btn {
  width: 100%;
  margin-top: auto;
  text-align: center;
  box-sizing: border-box;
}

.pricing-featured {
  border-color: #175986;
  box-shadow: 0 18px 45px rgba(23, 89, 134, .14);
  transform: translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #175986;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.pricing-note {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  color: #667085;
  font-size: 13px;
}

.pricing-note span::before {
  content: "•";
  margin-right: 7px;
  color: #175986;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-featured {
    transform: none;
  }

  .pricing-card {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .pricing-card {
    padding: 24px;
  }

  .pricing-price strong {
    font-size: 36px;
  }

  .pricing-description {
    min-height: 0;
  }

  .pricing-note {
    gap: 8px 16px;
  }
}


/* ============================================================
   BROCHUREFORGE — REAL 12 TEMPLATE SYSTEM
   ============================================================ */

.editor-product-meta{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:3px;
    color:var(--muted);
    font-size:12px;
}

.editor-product-meta strong{
    color:var(--ink);
    font-size:14px;
}

.brochure{
    position:relative;
    overflow:hidden;
    min-height:0;
}

.brochure-page-accent{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:6px;
    background:var(--accent,#155d8f);
}

.bf-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding-top:10px;
    position:relative;
    z-index:2;
}

.bf-brand{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.bf-brand strong{
    font-size:17px;
    letter-spacing:-.4px;
}

.bf-brand span{
    font-size:8px;
    color:#71818c;
    letter-spacing:.4px;
}

.bf-template-name{
    font-size:8px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--accent,#155d8f);
    font-weight:800;
}

.bf-kicker{
    font-size:9px;
    font-weight:850;
    letter-spacing:1.8px;
    color:var(--accent,#155d8f);
}

.bf-copy h3,
.bf-grid-hero h3,
.bf-corporate-banner h3,
.bf-clinical h3,
.bf-lab-copy h3,
.bf-industrial-copy h3,
.bf-minimal-copy h3,
.bf-dark-hero h3,
.bf-pharma-heading h3,
.bf-tech-copy h3,
.bf-luxury-copy h3,
.bf-technical-title h3{
    margin:8px 0 5px;
    font-size:35px;
    line-height:1.02;
    letter-spacing:-1.7px;
}

.bf-model{
    color:var(--accent,#155d8f);
    font-size:13px;
    font-weight:800;
}

.bf-brandline{
    margin-top:8px;
    font-size:10px;
    color:#6e7e88;
    text-transform:uppercase;
    letter-spacing:.8px;
}

.bf-copy p,
.bf-grid-hero p,
.bf-corporate-copy p,
.bf-clinical-description,
.bf-lab-copy p,
.bf-industrial-copy p,
.bf-minimal-copy p,
.bf-dark-hero p,
.bf-pharma-description,
.bf-tech-copy p,
.bf-luxury-copy p,
.bf-technical-description{
    color:#596a75;
    font-size:11px;
    line-height:1.65;
}

.bf-image{
    background:linear-gradient(145deg,#eef4f7,#dce6eb);
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    color:#78909e;
    font-size:9px;
    letter-spacing:1px;
    min-height:220px;
}

.bf-image img,
.bf-lab-image img,
.bf-industrial-image img,
.bf-tech-image img,
.bf-luxury-image img,
.bf-technical-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.bf-modern-hero{
    display:grid;
    grid-template-columns:1fr .92fr;
    gap:34px;
    align-items:center;
    margin-top:62px;
}

.bf-spec-modern{
    margin-top:38px;
    border-top:3px solid var(--accent,#155d8f);
    padding-top:13px;
}

.bf-section-title{
    font-size:11px;
    font-weight:850;
    margin-bottom:8px;
}

.bf-spec-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    padding:7px 0;
    border-bottom:1px solid #e5ecef;
    font-size:9px;
}

.bf-spec-row strong{
    text-align:right;
}

.bf-grid-hero{
    display:grid;
    grid-template-columns:48px 1fr .8fr;
    gap:18px;
    align-items:center;
    margin-top:52px;
}

.bf-number{
    font-size:32px;
    font-weight:900;
    color:#d7e2e8;
}

.bf-grid-specs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:30px;
}

.bf-grid-specs div{
    border:1px solid #dfe7eb;
    padding:10px;
    display:grid;
    grid-template-columns:28px 1fr;
    gap:3px 8px;
}

.bf-grid-specs small{
    color:var(--accent);
    grid-row:span 2;
}

.bf-grid-specs span{
    font-size:8px;
    color:#647580;
}

.bf-grid-specs strong{
    font-size:9px;
}

.bf-corporate-banner{
    margin-top:48px;
    background:#102b40;
    color:#fff;
    padding:25px;
    display:grid;
    grid-template-columns:1fr .72fr;
    gap:25px;
    align-items:center;
}

.bf-corporate-banner .bf-image{
    min-height:180px;
    background:#f3f6f8;
}

.bf-corporate-banner .bf-model,
.bf-corporate-banner .bf-kicker{
    color:#8fc0dc;
}

.bf-corporate-copy{
    margin-top:25px;
    display:grid;
    grid-template-columns:130px 1fr;
    gap:22px;
}

.bf-corp-brand{
    font-size:10px;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:1px;
}

.bf-corporate-table{
    margin-top:22px;
}

.bf-corporate-table h4{
    margin:0 0 8px;
    font-size:11px;
}

.bf-corporate-table div{
    display:flex;
    justify-content:space-between;
    padding:7px 10px;
    font-size:8px;
    border-bottom:1px solid #e2e8eb;
}

.bf-clinical{
    margin-top:48px;
    border:1px solid #d9e8e8;
    display:grid;
    grid-template-columns:1fr .9fr;
    min-height:250px;
}

.bf-clinical-title{
    padding:28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.bf-clinical-title span{
    font-size:8px;
    color:#238d88;
    letter-spacing:1.6px;
    font-weight:850;
}

.bf-clinical-title strong{
    font-size:12px;
    color:#238d88;
}

.bf-clinical .bf-image{
    border-radius:0;
    min-height:250px;
    background:#f1f8f8;
}

.bf-clinical-description{
    padding:18px 0;
    border-bottom:1px solid #d9e8e8;
}

.bf-clinical-specs{
    margin-top:16px;
}

.bf-clinical-specs h4{
    margin:0 0 8px;
    color:#238d88;
    font-size:11px;
}

.bf-clinical-specs div{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:6px 9px;
    font-size:8px;
    background:#f5fafa;
    margin-bottom:2px;
}

.bf-clinical-specs strong{
    text-align:right;
}

.bf-lab-hero{
    margin-top:46px;
    display:grid;
    grid-template-columns:.9fr 1fr;
    gap:28px;
    align-items:center;
}

.bf-lab-image{
    height:260px;
    background:#eaf2f5;
    border-left:6px solid #155d8f;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#78909e;
    font-size:9px;
}

.bf-lab-copy{
    padding-right:15px;
}

.bf-lab-specs{
    margin-top:32px;
    border:1px solid #d6e1e6;
}

.bf-lab-title{
    background:#155d8f;
    color:#fff;
    padding:10px 13px;
    font-size:9px;
    font-weight:850;
    letter-spacing:1.2px;
}

.bf-lab-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:7px 13px;
    border-bottom:1px solid #e3eaed;
    font-size:8px;
}

.bf-lab-row strong{
    text-align:right;
}

.bf-industrial{
    margin-top:46px;
    background:#172630;
    color:#fff;
    padding:20px;
    display:grid;
    grid-template-columns:.95fr 1fr;
    gap:25px;
    align-items:center;
}

.bf-industrial-image{
    height:255px;
    background:#eef3f5;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#78909e;
    font-size:9px;
}

.bf-industrial-code{
    color:#e2a73a;
    font-size:8px;
    font-weight:850;
    letter-spacing:1.3px;
}

.bf-industrial-copy p{
    color:#b8c5cc;
}

.bf-industrial-specs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1px;
    background:#cad4d9;
    margin-top:25px;
}

.bf-industrial-specs div{
    background:#fff;
    color:#20313c;
    padding:9px;
    display:grid;
    grid-template-columns:27px 1fr;
}

.bf-industrial-specs small{
    grid-row:span 2;
    color:#d68e13;
    font-weight:900;
}

.bf-industrial-specs span{
    font-size:8px;
}

.bf-industrial-specs strong{
    font-size:9px;
}

.brochure-minimal-01{
    --accent:#222;
}

.brochure-minimal-01 .brochure-page-accent{
    background:#222;
    width:55px;
}

.bf-minimal{
    margin-top:50px;
}

.bf-minimal .bf-image{
    min-height:270px;
    border-radius:0;
    background:#f7f7f5;
}

.bf-minimal-copy{
    margin-top:26px;
}

.bf-minimal-copy > span{
    font-size:9px;
    color:#888;
    letter-spacing:2px;
}

.bf-minimal-copy h3{
    font-size:42px;
    font-weight:500;
    letter-spacing:-2px;
}

.bf-minimal-specs{
    margin-top:25px;
    border-top:1px solid #222;
}

.bf-minimal-specs div{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:8px 0;
    border-bottom:1px solid #ddd;
    font-size:8px;
}

.bf-minimal-specs strong{
    text-align:right;
    font-weight:600;
}

.brochure-dark-01{
    --accent:#55c8ff;
    background:#0d1820;
    color:#fff;
}

.brochure-dark-01 .bf-brand span,
.brochure-dark-01 .bf-foot{
    color:#91a5b2;
}

.brochure-dark-01 .bf-template-name{
    color:#55c8ff;
}

.bf-dark-hero{
    margin-top:55px;
    display:grid;
    grid-template-columns:1fr .9fr;
    gap:28px;
    align-items:center;
}

.brochure-dark-01 .bf-image{
    background:#172a36;
}

.bf-dark-label{
    font-size:8px;
    color:#55c8ff;
    letter-spacing:1.6px;
    font-weight:850;
}

.brochure-dark-01 .bf-copy p,
.brochure-dark-01 .bf-dark-hero p{
    color:#9fb0bb;
}

.bf-dark-specs{
    margin-top:38px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1px;
    background:#334650;
}

.bf-dark-specs div{
    background:#13232d;
    padding:9px 11px;
    display:flex;
    justify-content:space-between;
    gap:12px;
    font-size:8px;
}

.bf-dark-specs strong{
    color:#55c8ff;
}

.bf-pharma{
    margin-top:48px;
    display:grid;
    grid-template-columns:1fr .9fr;
    gap:25px;
    align-items:center;
}

.bf-pharma-heading > span{
    color:#008a72;
    font-size:8px;
    letter-spacing:1.6px;
    font-weight:850;
}

.bf-pharma-heading strong{
    color:#008a72;
    font-size:12px;
}

.brochure-pharma-01 .bf-image{
    background:#edf8f5;
    border-radius:3px;
    border-top:5px solid #008a72;
}

.bf-pharma-description{
    margin-top:24px;
    padding:14px;
    background:#f2f8f6;
    border-left:3px solid #008a72;
}

.bf-pharma-specs{
    margin-top:22px;
}

.bf-pharma-specs h4{
    color:#008a72;
    font-size:11px;
    margin-bottom:8px;
}

.bf-pharma-specs div{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:7px 10px;
    border-bottom:1px solid #dce9e5;
    font-size:8px;
}

.bf-pharma-specs strong{
    text-align:right;
}

.bf-tech{
    margin-top:48px;
    background:#f1f4f6;
    padding:24px;
    display:grid;
    grid-template-columns:1fr .9fr;
    gap:25px;
    align-items:center;
    border-left:5px solid #155d8f;
}

.bf-tech-copy > span{
    font-size:8px;
    color:#155d8f;
    font-weight:850;
    letter-spacing:1.5px;
}

.bf-tech-copy > strong{
    color:#155d8f;
}

.bf-tech-image{
    height:235px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#78909e;
    font-size:9px;
}

.bf-tech-specs{
    margin-top:26px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
}

.bf-tech-specs div{
    display:grid;
    grid-template-columns:28px 1fr;
    border:1px solid #d7e0e5;
    padding:9px;
}

.bf-tech-specs b{
    color:#155d8f;
}

.bf-tech-specs span{
    font-size:8px;
}

.bf-tech-specs strong{
    grid-column:2;
    font-size:9px;
}

.brochure-luxury-01{
    --accent:#b48b45;
    background:#171717;
    color:#fff;
}

.brochure-luxury-01 .bf-brand span,
.brochure-luxury-01 .bf-foot{
    color:#aaa;
}

.bf-luxury{
    margin-top:46px;
    display:grid;
    grid-template-columns:.9fr 1fr;
    gap:30px;
    align-items:center;
}

.bf-luxury-image{
    height:300px;
    background:#242424;
    border:1px solid #3b3b3b;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#8c8c8c;
    font-size:9px;
}

.bf-luxury-copy small{
    color:#b48b45;
    letter-spacing:2px;
    font-size:8px;
}

.bf-luxury-copy h3{
    font-size:38px;
    font-weight:500;
}

.bf-luxury-copy > div{
    color:#b48b45;
    font-size:10px;
    letter-spacing:1px;
}

.bf-luxury-copy p{
    color:#aaa;
}

.bf-luxury-specs{
    margin-top:30px;
    border-top:1px solid #494949;
}

.bf-luxury-specs div{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:8px 0;
    border-bottom:1px solid #333;
    font-size:8px;
}

.bf-luxury-specs strong{
    color:#d1ae70;
    text-align:right;
}

.bf-technical-title{
    margin-top:42px;
    padding-bottom:15px;
    border-bottom:3px solid #182c3b;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
}

.bf-technical-title > div > span{
    font-size:8px;
    color:#155d8f;
    font-weight:850;
    letter-spacing:1.5px;
}

.bf-technical-title h3{
    margin-bottom:0;
}

.bf-technical-title > strong{
    color:#155d8f;
    font-size:15px;
}

.bf-technical-image{
    height:205px;
    margin-top:18px;
    background:#f2f5f7;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#78909e;
    font-size:9px;
}

.bf-technical-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.bf-technical-description{
    margin-top:15px;
    padding-bottom:13px;
    border-bottom:1px solid #dce4e8;
}

.bf-technical-table{
    margin-top:15px;
    border:1px solid #ccd7dd;
}

.bf-table-heading,
.bf-technical-table > div:not(.bf-table-heading){
    display:grid;
    grid-template-columns:1fr 1fr;
}

.bf-table-heading{
    background:#182c3b;
    color:#fff;
    font-size:8px;
    font-weight:850;
    padding:8px 10px;
}

.bf-technical-table > div:not(.bf-table-heading){
    padding:6px 10px;
    border-bottom:1px solid #dce4e8;
    font-size:8px;
}

.bf-technical-table > div strong{
    text-align:right;
}

.bf-foot{
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid #dfe6e9;
    display:flex;
    justify-content:space-between;
    gap:10px;
    color:#74848e;
    font-size:7px;
}

.create-preview-wrap .brochure{
    transition:all .2s ease;
}

.create-preview-wrap .bf-image{
    cursor:pointer;
}

@media(max-width:700px){

    .editor-product-meta{
        align-items:flex-start;
    }

    .bf-head{
        gap:12px;
    }

    .bf-template-name{
        display:none;
    }

    .bf-modern-hero,
    .bf-grid-hero,
    .bf-corporate-banner,
    .bf-clinical,
    .bf-lab-hero,
    .bf-industrial,
    .bf-dark-hero,
    .bf-pharma,
    .bf-tech,
    .bf-luxury{
        grid-template-columns:1fr;
    }

    .bf-image,
    .bf-lab-image,
    .bf-industrial-image,
    .bf-tech-image,
    .bf-luxury-image{
        min-height:180px;
        height:180px;
    }

    .bf-grid-specs,
    .bf-industrial-specs,
    .bf-dark-specs,
    .bf-tech-specs{
        grid-template-columns:1fr;
    }

    .bf-corporate-copy{
        grid-template-columns:1fr;
    }

    .bf-corporate-banner{
        padding:18px;
    }

    .bf-technical-title{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
    }
}

@media print{

    .brochure{
        overflow:hidden;
    }

    .bf-foot{
        position:relative;
    }
}


/* ============================================================
   BROCHUREFORGE — FOOD ANALYSIS TEMPLATE
   ============================================================ */

.brochure-food-01 {
    background: #fff;
    color: #17384d;
    min-height: var(--brochure-page-height, 297mm);
    position: relative;
    overflow: hidden;
}

.brochure-food-01 .bf-food-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 5px solid #176493;
    background: #f5fafc;
}

.brochure-food-01 .bf-food-topbar span {
    display: block;
    font-size: 10px;
    letter-spacing: .14em;
    color: #176493;
    font-weight: 700;
}

.brochure-food-01 .bf-food-topbar strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.brochure-food-01 .bf-food-brand {
    font-size: 13px;
    font-weight: 700;
    color: #176493;
}

.brochure-food-01 .bf-food-hero {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 300px;
    background: linear-gradient(135deg,#eef7fa,#fff);
}

.brochure-food-01 .bf-food-copy {
    padding: 48px 30px 35px;
}

.brochure-food-01 .bf-food-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    color: #176493;
    margin-bottom: 14px;
}

.brochure-food-01 h3 {
    font-size: 31px;
    line-height: 1.08;
    margin: 0 0 10px;
    color: #163f5d;
}

.brochure-food-01 .bf-food-model {
    font-size: 13px;
    font-weight: 700;
    color: #6a7e8e;
    margin-bottom: 18px;
}

.brochure-food-01 .bf-food-copy p {
    font-size: 12px;
    line-height: 1.65;
    color: #526878;
}

.brochure-food-01 .bf-food-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 300px;
}

.brochure-food-01 .bf-food-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.brochure-food-01 .bf-food-image span {
    color: #9aaab6;
    font-size: 11px;
    letter-spacing: .1em;
}

.brochure-food-01 .bf-food-specs {
    margin: 25px 28px;
    border: 1px solid #dbe6ec;
    border-radius: 8px;
    overflow: hidden;
}

.brochure-food-01 .bf-food-spec-title {
    padding: 13px 16px;
    background: #176493;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.brochure-food-01 .bf-food-spec-row {
    display: grid;
    grid-template-columns: 45px 1fr 1fr;
    align-items: center;
    min-height: 42px;
    border-bottom: 1px solid #e4ebef;
    font-size: 11px;
}

.brochure-food-01 .bf-food-spec-row:last-child {
    border-bottom: 0;
}

.brochure-food-01 .bf-food-number {
    text-align: center;
    color: #8ba0ad;
    font-size: 10px;
}

.brochure-food-01 .bf-food-key {
    font-weight: 600;
    color: #3e596b;
}

.brochure-food-01 .bf-food-spec-row strong {
    color: #17384d;
    padding-right: 12px;
}

@media print {
    .brochure-food-01 {
        box-shadow: none;
    }
}


/* ==========================================================
   BrochureForge Create — live data-only preview
   ========================================================== */

.bf-upload-section{
    margin:0 0 18px;
    padding:14px;
    border:1px solid #dbe4ec;
    border-radius:12px;
    background:#f8fafc;
}

.bf-upload-title{
    font-weight:700;
    margin-bottom:8px;
}

.bf-file-label{
    display:block;
}

.bf-file-label input{
    width:100%;
}

.bf-upload-note{
    margin-top:6px;
    font-size:12px;
    color:#64748b;
}

.bf-live-logo-wrap{
    display:flex;
    align-items:center;
    min-height:42px;
}

.bf-live-logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.bf-live-logo-image{
    display:block;
    width:auto;
    max-width:150px;
    height:42px;
    object-fit:contain;
    object-position:left center;
}

.bf-live-logo-text{
    display:none;
}

.bf-image{
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.bf-live-product-image{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center center;
}

#previewSpecs{
    display:flex;
    flex-direction:column;
}

#previewSpecsSection[hidden],
#previewName[hidden],
#previewModel[hidden],
#previewBrand[hidden],
#previewDescription[hidden],
#previewImage[hidden],
#previewLogo[hidden],
#previewLogoText[hidden]{
    display:none !important;
}

.bf-spec-row{
    min-height:28px;
}



/* ============================================================
   BROCHUREFORGE TEMPLATE MEDIA ENGINE V3
   Safe bounds for logo, product images and future media.
   ============================================================ */

/*
 * Default A4 media limits.
 * Individual templates override these values below.
 */
#liveBrochure{
    --bf-logo-max-width: 145px;
    --bf-logo-max-height: 46px;

    --bf-product-max-width: 310px;
    --bf-product-max-height: 315px;

    --bf-slot-border: rgba(100,116,139,.28);
    --bf-slot-bg: rgba(248,250,252,.42);
}


/* ------------------------------------------------------------
   EMPTY DATA SLOT LABELS
   These are placement guides, NOT brochure data.
   ------------------------------------------------------------ */

#liveBrochure .bf-slot-empty:empty::before{
    content:attr(data-slot-label);
    display:inline-flex;
    align-items:center;
    justify-content:center;

    min-height:18px;

    padding:3px 7px;

    border:1px dashed var(--bf-slot-border);
    border-radius:5px;

    background:var(--bf-slot-bg);

    color:#94a3b8;

    font-size:8px;
    font-weight:600;
    line-height:1;
    letter-spacing:.08em;
    text-transform:uppercase;
}


#liveBrochure .bf-data-slot.bf-slot-empty{
    min-height:24px;
}


#liveBrochure .bf-description-slot.bf-slot-empty{
    min-height:45px;
}


/* ------------------------------------------------------------
   GENERIC MEDIA SLOT
   Use this class for every future brochure image slot.
   ------------------------------------------------------------ */

#liveBrochure .bf-media-slot{
    position:relative;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    box-sizing:border-box;
}


/*
 * Absolutely prevent oversized uploaded images from escaping
 * their allocated brochure area.
 */
#liveBrochure .bf-media-slot img{
    display:block;

    width:auto;
    height:auto;

    max-width:100%;
    max-height:100%;

    object-fit:contain;
    object-position:center;

    flex:0 0 auto;
}


/* ------------------------------------------------------------
   LOGO
   ------------------------------------------------------------ */

#liveBrochure .bf-logo-slot{
    width:var(--bf-logo-max-width);
    max-width:var(--bf-logo-max-width);

    height:var(--bf-logo-max-height);
    max-height:var(--bf-logo-max-height);

    justify-content:flex-start;
}


#liveBrochure .bf-logo-slot img,
#liveBrochure .bf-live-logo-image{
    width:auto !important;
    height:auto !important;

    max-width:var(--bf-logo-max-width) !important;
    max-height:var(--bf-logo-max-height) !important;

    object-fit:contain !important;
    object-position:left center !important;
}


/* ------------------------------------------------------------
   PRODUCT IMAGE
   ------------------------------------------------------------ */

#liveBrochure .bf-product-image-slot{
    width:100%;

    max-width:var(--bf-product-max-width);

    height:var(--bf-product-max-height);
    max-height:var(--bf-product-max-height);

    margin-left:auto;
    margin-right:auto;
}


#liveBrochure .bf-product-image-slot img,
#liveBrochure .bf-live-product-image{
    width:auto !important;
    height:auto !important;

    max-width:100% !important;
    max-height:100% !important;

    object-fit:contain !important;
    object-position:center center !important;
}


/* ------------------------------------------------------------
   TECHNICAL SPECIFICATIONS EMPTY POSITION GUIDE
   ------------------------------------------------------------ */

#liveBrochure .bf-specs-live.bf-slot-empty{
    min-height:34px;

    display:flex;
    align-items:center;
}


#liveBrochure .bf-specs-live.bf-slot-empty::before{
    content:attr(data-slot-label);

    display:inline-flex;
    align-items:center;

    padding:3px 7px;

    border:1px dashed var(--bf-slot-border);
    border-radius:5px;

    color:#94a3b8;

    font-size:8px;
    font-weight:600;

    letter-spacing:.07em;
}


/* ============================================================
   TEMPLATE-SPECIFIC MEDIA LIMITS
   ============================================================ */

/* Modern Blue */
#liveBrochure.brochure-modern-01{
    --bf-logo-max-width:148px;
    --bf-logo-max-height:44px;

    --bf-product-max-width:305px;
    --bf-product-max-height:315px;
}


/* Dark Tech */
#liveBrochure.brochure-dark-01{
    --bf-logo-max-width:142px;
    --bf-logo-max-height:42px;

    --bf-product-max-width:300px;
    --bf-product-max-height:305px;
}


/* Minimal White */
#liveBrochure.brochure-minimal-01{
    --bf-logo-max-width:135px;
    --bf-logo-max-height:40px;

    --bf-product-max-width:325px;
    --bf-product-max-height:330px;
}


/* Clinical Clean */
#liveBrochure.brochure-medical-01{
    --bf-logo-max-width:145px;
    --bf-logo-max-height:43px;

    --bf-product-max-width:310px;
    --bf-product-max-height:310px;
}


/* Industrial Grid */
#liveBrochure.brochure-industrial-01{
    --bf-logo-max-width:140px;
    --bf-logo-max-height:42px;

    --bf-product-max-width:300px;
    --bf-product-max-height:300px;
}


/* Laboratory Pro */
#liveBrochure.brochure-laboratory-01{
    --bf-logo-max-width:148px;
    --bf-logo-max-height:44px;

    --bf-product-max-width:315px;
    --bf-product-max-height:320px;
}


/* Pharma Line */
#liveBrochure.brochure-pharma-01{
    --bf-logo-max-width:145px;
    --bf-logo-max-height:42px;

    --bf-product-max-width:310px;
    --bf-product-max-height:315px;
}


/* Food Analysis */
#liveBrochure.brochure-food-01{
    --bf-logo-max-width:145px;
    --bf-logo-max-height:42px;

    --bf-product-max-width:305px;
    --bf-product-max-height:310px;
}


/* Corporate Navy */
#liveBrochure.brochure-corporate-01{
    --bf-logo-max-width:150px;
    --bf-logo-max-height:44px;

    --bf-product-max-width:300px;
    --bf-product-max-height:305px;
}


/* Luxury Black */
#liveBrochure.brochure-luxury-01{
    --bf-logo-max-width:132px;
    --bf-logo-max-height:38px;

    --bf-product-max-width:295px;
    --bf-product-max-height:300px;
}


/* Modern Split */
#liveBrochure.brochure-modern-02{
    --bf-logo-max-width:145px;
    --bf-logo-max-height:42px;

    --bf-product-max-width:310px;
    --bf-product-max-height:320px;
}


/* Tech Precision */
#liveBrochure.brochure-technology-01{
    --bf-logo-max-width:140px;
    --bf-logo-max-height:40px;

    --bf-product-max-width:300px;
    --bf-product-max-height:300px;
}


/* ------------------------------------------------------------
   FUTURE EXTRA IMAGES
   Any newly-added brochure image can use:
   class="bf-media-slot bf-extra-image-slot"
   ------------------------------------------------------------ */

#liveBrochure .bf-extra-image-slot{
    width:100%;
    height:150px;
    max-height:150px;
}


#liveBrochure .bf-extra-image-slot img{
    width:auto !important;
    height:auto !important;

    max-width:100% !important;
    max-height:100% !important;

    object-fit:contain !important;
}


/* ============================================================
   BROCHUREFORGE V4-A — REAL RENDERER LOGO
   ============================================================ */

.bf-brand{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
}

.bf-render-logo{
    display:block;
    width:auto;
    max-width:145px;
    max-height:46px;
    object-fit:contain;
    object-position:left center;
}

.bf-render-logo-food{
    max-width:150px;
    max-height:44px;
}

.brochure-dark-01 .bf-render-logo,
.brochure-luxury-01 .bf-render-logo{
    filter:none;
}

@media print{
    .bf-render-logo{
        max-width:145px;
        max-height:46px;
    }
}


/* ============================================================
   BROCHUREFORGE V4-A — REAL LIVE RENDER PREVIEW
   ============================================================ */

.real-render-preview{
    width:100%;
    min-height:900px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

.real-render-preview .brochure{
    width:min(760px,100%);
    margin:0 auto;
}

.preview-loading{
    position:sticky;
    bottom:18px;
    margin:-42px auto 0;
    width:max-content;
    max-width:90%;
    background:#10202e;
    color:#fff;
    border-radius:999px;
    padding:8px 13px;
    font-size:11px;
    z-index:10;
}

.preview-error{
    width:100%;
    min-height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px dashed #c9d5dd;
    border-radius:12px;
    color:#9a5360;
    font-size:13px;
    background:#fff;
}


/* =========================================================
   BROCHUREFORGE APPLICATION DASHBOARD
   Isolated dashboard UI
   ========================================================= */

.app-shell {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    background: #f5f8fa;
}

.app-sidebar {
    background: #10202e;
    color: #fff;
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 74px);
}

.sidebar-brand {
    padding: 4px 12px 28px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.sidebar-brand a {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.sidebar-brand span {
    display: block;
    margin-top: 7px;
    color: #8fa2af;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.sidebar-nav {
    padding-top: 20px;
}

.sidebar-label {
    padding: 14px 12px 7px;
    color: #708592;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.sidebar-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #b8c6ce;
    font-size: 13px;
    font-weight: 650;
    transition: .15s ease;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.sidebar-link.active {
    background: #155d8f;
    color: #fff;
}

.sidebar-link b {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 6px;
    text-align: center;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #dce8ef;
    font-size: 10px;
}

.sidebar-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    opacity: .9;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.app-content {
    min-width: 0;
    padding: 42px 44px 70px;
    max-width: 1450px;
    width: 100%;
}

.dashboard-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-kicker {
    color: #155d8f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.6px;
}

.dashboard-top h1 {
    margin: 7px 0 7px;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.dashboard-top p {
    margin: 0;
    color: #71818d;
    font-size: 14px;
}

.dashboard-primary,
.dashboard-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.dashboard-primary {
    background: #155d8f;
    color: #fff;
    border: 1px solid #155d8f;
}

.dashboard-primary:hover {
    background: #104b73;
}

.dashboard-secondary {
    background: #fff;
    color: #304858;
    border: 1px solid #dce5ec;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-stat {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 13px;
    align-items: center;
    min-height: 105px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 13px;
}

.dashboard-stat:hover {
    border-color: #b9ccd8;
    box-shadow: 0 8px 25px rgba(30,58,78,.06);
}

.stat-icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf4f8;
    color: #155d8f;
    font-size: 18px;
}

.stat-value {
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
    color: #10202e;
}

.stat-label {
    color: #71818d;
    font-size: 12px;
    margin-top: 3px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 14px;
    margin-bottom: 22px;
    overflow: hidden;
}

.dashboard-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid #e7edf1;
}

.dashboard-panel-head.compact {
    align-items: center;
    padding: 20px 22px;
}

.dashboard-panel-head h2 {
    margin: 5px 0 0;
    color: #10202e;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.6px;
}

.dashboard-panel-head p {
    margin: 6px 0 0;
    color: #788892;
    font-size: 12px;
}

.product-list {
    display: flex;
    flex-direction: column;
}

.product-item {
    min-height: 94px;
    display: grid;
    grid-template-columns: 28px 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    padding: 14px 22px;
    border-bottom: 1px solid #edf1f4;
}

.product-item:last-child {
    border-bottom: 0;
}

.product-thumb {
    width: 66px;
    height: 66px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6f8;
    border: 1px solid #e1e8ed;
    border-radius: 9px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb-empty {
    color: #9aa8b1;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

.product-item-select {
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-select input {
    width: 17px;
    height: 17px;
    margin: 0;
    cursor: pointer;
}

.product-main {
    min-width: 0;
    width: 100%;
}

.product-title {
    min-width: 0;
    overflow: hidden;
    color: #162b39;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-meta {
    min-width: 0;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

.product-meta span {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f1f5f7;
    color: #71818d;
    font-size: 10px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dce5ec;
    border-radius: 7px;
    background: #fff;
    color: #4c6170;
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.action-link:hover {
    border-color: #b7cad6;
    color: #155d8f;
}

.action-primary {
    background: #155d8f;
    border-color: #155d8f;
    color: #fff;
}

.action-primary:hover {
    background: #104b73;
    color: #fff;
}

.action-danger {
    color: #a14d58;
}

.action-danger:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dashboard-empty {
    padding: 65px 25px;
    text-align: center;
}

.empty-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 12px;
    background: #edf4f8;
    color: #155d8f;
}

.dashboard-empty h3 {
    margin: 0;
    font-size: 17px;
}

.dashboard-empty p {
    margin: 8px 0 20px;
    color: #71818d;
    font-size: 13px;
}

.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.compact-list {
    padding: 5px 22px;
}

.compact-item {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #edf1f4;
}

.compact-item:last-child {
    border-bottom: 0;
}

.compact-item strong,
.compact-item small {
    display: block;
}

.compact-item strong {
    color: #203846;
    font-size: 12px;
}

.compact-item small {
    margin-top: 4px;
    color: #84939d;
    font-size: 10px;
}

.compact-item a,
.text-link {
    color: #155d8f;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.small-empty {
    padding: 30px 22px;
    color: #87959e;
    font-size: 12px;
}

@media (max-width: 1050px) {
    .app-shell {
        grid-template-columns: 205px minmax(0, 1fr);
    }

    .app-content {
        padding: 32px 25px 60px;
    }

    .product-item {
        grid-template-columns: 26px 58px minmax(0, 1fr) auto;
    }

    .product-item-select {
        width: 26px;
    }

    .product-thumb {
        width: 58px;
        height: 58px;
    }

    .product-actions {
        grid-column: 4;
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .app-sidebar {
        min-height: auto;
        padding: 12px;
    }

    .sidebar-brand {
        padding: 5px 8px 14px;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding-top: 10px;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-link {
        min-height: 38px;
        padding: 7px 9px;
    }

    .sidebar-link b {
        display: none;
    }

    .sidebar-bottom {
        border: 0;
        padding: 5px 0 0;
    }

    .app-content {
        padding: 25px 16px 45px;
    }

    .dashboard-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-top h1 {
        font-size: 31px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .product-item {
        grid-template-columns: 24px 54px minmax(0, 1fr);
        padding: 13px 15px;
    }

    .product-item-select {
        width: 24px;
    }

    .product-thumb {
        width: 54px;
        height: 54px;
    }

    .product-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
        margin-top: 0;
        padding-left: 0;
    }

    .action-link {
        min-height: 32px;
    }
}

@media (max-width: 480px) {
    .dashboard-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-actions {
        padding-left: 0;
    }

    .product-actions .action-link {
        flex: 1;
    }
}


/* Product bulk selection toolbar */
#productBulkForm .bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    margin: 16px 22px 14px;
}

#productBulkForm .bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

#productBulkForm .bulk-selected-count {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 3px;
    color: #71818d;
    font-size: 12px;
    font-weight: 600;
}

#productBulkForm .bulk-delete-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 600px) {
    #productBulkForm .bulk-actions {
        gap: 8px;
        margin-left: 15px;
        margin-right: 15px;
    }

    #productBulkForm .bulk-actions-left {
        gap: 6px;
        flex-wrap: nowrap;
    }

    #productBulkForm .bulk-actions .dashboard-secondary {
        white-space: nowrap;
    }

    #productBulkForm .bulk-selected-count {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #productBulkForm .bulk-actions {
        gap: 7px;
    }

    #productBulkForm .bulk-actions-left {
        gap: 5px;
    }

    #productBulkForm .bulk-selected-count {
        margin-left: 0;
    }

    #productBulkForm .bulk-delete-button {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* =========================================================================
 * BROCHUREFORGE ADAPTIVE TEMPLATE ENGINE
 * ========================================================================= */

/* =========================================================================
 * BROCHUREFORGE ADAPTIVE TEMPLATE ENGINE
 * ========================================================================= */

.bf-adaptive-brochure{
    --bf-page-width:210mm;
    --bf-page-min-height:297mm;

    position:relative;
    box-sizing:border-box;
    width:var(--bf-page-width);
    min-height:var(--bf-page-min-height);

    margin:0 auto;
    padding:32px 34px 24px;

    overflow:visible;

    background:var(--bf-paper);
    color:var(--bf-ink);

    font-family:var(--bf-body);
    line-height:1.55;

    isolation:isolate;
}

.bf-adaptive-brochure *,
.bf-adaptive-brochure *::before,
.bf-adaptive-brochure *::after{
    box-sizing:border-box;
}

.bf-adaptive-decor{
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:-1;
    overflow:hidden;
}

.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;

    /*
     * Universal decoration intentionally neutral.
     * Individual masters may override these values.
     */
    width:0;
    height:0;
    right:auto;
    top:auto;

    border:0;
    border-radius:0;

    background:transparent;
    opacity:0;
    transform:none;
}

.bf-adaptive-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding-bottom:20px;
    border-bottom:1px solid var(--bf-line);
}

.bf-adaptive-logo-wrap{
    display:flex;
    align-items:center;
    min-width:0;
}

.bf-adaptive-logo{
    display:block;
    max-width:150px;
    max-height:54px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.bf-adaptive-brand{
    font-family:var(--bf-display);
    font-weight:800;
    letter-spacing:-.03em;
    font-size:18px;
}

.bf-adaptive-template-meta{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:7px;
    color:var(--bf-muted);
    font-size:9px;
    text-transform:uppercase;
    letter-spacing:.12em;
}

.bf-adaptive-template-meta span{
    padding:6px 9px;
    border:1px solid var(--bf-line);
    border-radius:999px;
}

.bf-adaptive-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);
    gap:var(--bf-spacing);
    align-items:center;
    padding:48px 0 42px;
}

.bf-adaptive-hero-copy{
    min-width:0;
}

.bf-adaptive-eyebrow,
.bf-section-kicker{
    color:var(--bf-accent);
    font-size:9px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.16em;
}

.bf-adaptive-hero h1{
    margin:10px 0 9px;
    max-width:100%;
    font-family:var(--bf-display);
    font-size:clamp(30px,4vw,58px);
    line-height:.98;
    letter-spacing:-.045em;
    font-weight:800;
    overflow-wrap:anywhere;
}

.bf-adaptive-model{
    display:inline-block;
    margin-top:5px;
    padding:6px 10px;
    border-left:3px solid var(--bf-accent);
    color:var(--bf-muted);
    font-size:12px;
    font-weight:700;
    letter-spacing:.06em;
}

.bf-adaptive-hero-description{
    margin-top:22px;
    max-width:680px;
    color:var(--bf-muted);
    font-size:12px;
}

.bf-adaptive-hero-description p{
    margin:0 0 10px;
}

.bf-adaptive-hero-media{
    min-width:0;
}

.bf-adaptive-image{
    margin:0;
    width:100%;
    min-height:300px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:var(--bf-radius);
    background:transparent; /* BF_MEDIA_BACKGROUND_SOURCE_CLEAN_V1 */
    box-shadow:var(--bf-shadow);
    break-inside:avoid;
}

.bf-adaptive-image img{
    display:block;
    width:100%;
    height:100%;
    max-height:420px;
    object-fit:var(--bf-image-fit);
}

.bf-image-editorial,
.bf-image-cover,
.bf-image-full_bleed{
    min-height:360px;
}

.bf-image-editorial img,
.bf-image-cover img,
.bf-image-full_bleed img{
    object-fit:cover;
}

.bf-adaptive-image-empty{
    width:100%;
    min-height:300px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px dashed var(--bf-line);
    border-radius:var(--bf-radius);
    color:var(--bf-muted);
    font-size:10px;
    letter-spacing:.16em;
}

.bf-adaptive-gallery{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.bf-gallery-item{
    margin:0;
    min-height:160px;
    overflow:hidden;
    border-radius:var(--bf-radius);
    background:var(--bf-surface);
    box-shadow:var(--bf-shadow);
    break-inside:avoid;
}

.bf-gallery-item:first-child{
    grid-column:span 2;
    min-height:260px;
}

.bf-gallery-item img{
    display:block;
    width:100%;
    height:100%;
    min-height:inherit;
    object-fit:cover;
}

.bf-adaptive-section{
    margin-top:var(--bf-spacing);
    padding-top:25px;
    border-top:1px solid var(--bf-line);
    break-inside:auto;
}

.bf-adaptive-section h2{
    margin:5px 0 18px;
    font-family:var(--bf-display);
    font-size:25px;
    line-height:1.05;
    letter-spacing:-.03em;
}

.bf-adaptive-prose{
    columns:2 280px;
    column-gap:34px;
    color:var(--bf-muted);
    font-size:11px;
    orphans:3;
    widows:3;
}

.bf-adaptive-prose p{
    margin:0 0 12px;
    break-inside:avoid;
}

.bf-feature-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.bf-feature-card{
    min-width:0;
    padding:16px;
    border:1px solid var(--bf-line);
    border-radius:var(--bf-radius);
    background:var(--bf-surface);
    break-inside:avoid;
}

.bf-feature-index{
    display:block;
    margin-bottom:18px;
    color:var(--bf-accent);
    font-family:var(--bf-display);
    font-size:12px;
    font-weight:800;
}

.bf-feature-card strong{
    display:block;
    margin-bottom:6px;
    font-size:11px;
    overflow-wrap:anywhere;
}

.bf-feature-card p{
    margin:0;
    color:var(--bf-muted);
    font-size:10px;
    overflow-wrap:anywhere;
}

.bf-spec-section{
    break-before:auto;
}

.bf-adaptive-spec-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    font-size:10px;
}

.bf-adaptive-spec-table thead{
    display:table-header-group;
}

.bf-adaptive-spec-table tr{
    break-inside:avoid;
    page-break-inside:avoid;
}

.bf-adaptive-spec-table th,
.bf-adaptive-spec-table td{
    padding:10px 12px;
    text-align:left;
    vertical-align:top;
    border-bottom:1px solid var(--bf-line);
    overflow-wrap:anywhere;
}

.bf-adaptive-spec-table thead th{
    color:var(--bf-paper);
    background:var(--bf-accent);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:8px;
}

.bf-adaptive-spec-table tbody th{
    width:36%;
    color:var(--bf-ink);
    font-weight:700;
}

.bf-adaptive-spec-table tbody td{
    color:var(--bf-muted);
}

.bf-adaptive-spec-table tbody tr:nth-child(even){
    background:var(--bf-surface);
}

.bf-adaptive-closing{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-top:42px;
    padding:22px 0;
    border-top:2px solid var(--bf-ink);
    border-bottom:1px solid var(--bf-line);
    break-inside:avoid;
}

.bf-adaptive-closing strong{
    display:block;
    margin-top:5px;
    font-family:var(--bf-display);
    font-size:16px;
}

.bf-closing-template{
    max-width:45%;
    text-align:right;
    color:var(--bf-muted);
    font-size:9px;
}

.bf-adaptive-footer{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:20px;
    color:var(--bf-muted);
    font-size:8px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.bf-adaptive-brochure.bf-has-long-text .bf-adaptive-hero{
    align-items:start;
}

.bf-adaptive-brochure.bf-has-long-text .bf-adaptive-hero-description{
    font-size:11px;
}

.bf-adaptive-brochure.bf-has-many-specs .bf-adaptive-spec-table{
    font-size:9px;
}

.bf-adaptive-brochure.bf-has-many-specs .bf-adaptive-spec-table th,
.bf-adaptive-brochure.bf-has-many-specs .bf-adaptive-spec-table td{
    padding:7px 9px;
}

.bf-adaptive-brochure.bf-layout-two_column_text .bf-adaptive-hero,
.bf-adaptive-brochure.bf-layout-magazine_columns .bf-adaptive-hero{
    grid-template-columns:1fr 1fr;
}

.bf-adaptive-brochure.bf-layout-three_column .bf-adaptive-hero{
    grid-template-columns:1.2fr .8fr;
}

.bf-adaptive-brochure.bf-layout-full_width_text .bf-adaptive-hero,
.bf-adaptive-brochure.bf-layout-longform .bf-adaptive-hero{
    grid-template-columns:1fr .7fr;
}

.bf-adaptive-brochure.bf-layout-text_image_text .bf-adaptive-hero{
    grid-template-columns:.8fr 1fr;
}

.bf-adaptive-brochure.bf-layout-technical_grid .bf-feature-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.bf-adaptive-brochure.bf-master-nexus,
.bf-adaptive-brochure.bf-master-vanta,
.bf-adaptive-brochure.bf-master-carbon,
.bf-adaptive-brochure.bf-master-foundry,
.bf-adaptive-brochure.bf-master-monolith{
    background:var(--bf-paper);
}

.bf-adaptive-brochure.bf-master-nexus .bf-adaptive-header,
.bf-adaptive-brochure.bf-master-vanta .bf-adaptive-header,
.bf-adaptive-brochure.bf-master-carbon .bf-adaptive-header,
.bf-adaptive-brochure.bf-master-foundry .bf-adaptive-header{
    border-bottom-color:var(--bf-line);
}

.bf-adaptive-brochure.bf-master-nexus .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-vanta .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-carbon .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-foundry .bf-adaptive-hero h1{
    letter-spacing:-.06em;
}

.bf-adaptive-brochure.bf-master-sora{
    padding-left:52px;
    padding-right:52px;
}

.bf-adaptive-brochure.bf-master-air{
    padding-left:64px;
    padding-right:64px;
}

.bf-adaptive-brochure.bf-master-air .bf-adaptive-hero{
    min-height:520px;
}

.bf-adaptive-brochure.bf-master-matrix,
.bf-adaptive-brochure.bf-master-signal,
.bf-adaptive-brochure.bf-master-atlas{
    --bf-density: .82;
}

.bf-adaptive-brochure.bf-master-matrix .bf-feature-card,
.bf-adaptive-brochure.bf-master-atlas .bf-feature-card,
.bf-adaptive-brochure.bf-master-signal .bf-feature-card{
    border-radius:2px;
}

.bf-adaptive-brochure.bf-master-noir .bf-adaptive-hero-media,
.bf-adaptive-brochure.bf-master-canvas .bf-adaptive-hero-media,
.bf-adaptive-brochure.bf-master-vanta .bf-adaptive-hero-media{
    min-height:390px;
}

.bf-adaptive-brochure.bf-master-noir .bf-adaptive-image,
.bf-adaptive-brochure.bf-master-canvas .bf-adaptive-image,
.bf-adaptive-brochure.bf-master-vanta .bf-adaptive-image{
    border-radius:2px;
}

.bf-adaptive-brochure.bf-master-orbit .bf-adaptive-decor > .bf-decor-before{
    width:260px;
    height:260px;
    right:-80px;
    top:110px;
    border:2px solid var(--bf-accent);
    background:transparent;
    opacity:.14;
}

.bf-adaptive-brochure.bf-master-contour .bf-feature-card,
.bf-adaptive-brochure.bf-master-linea .bf-feature-card,
.bf-adaptive-brochure.bf-master-vector .bf-feature-card{
    background:transparent;
    border-width:1px;
}

.bf-adaptive-brochure.bf-master-frame .bf-adaptive-hero{
    padding:30px;
    border:1px solid var(--bf-line);
}

.bf-adaptive-brochure.bf-master-mosaic .bf-feature-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.bf-adaptive-brochure.bf-master-spectrum .bf-feature-card:nth-child(3n+1){
    background:var(--bf-accent);
    color:var(--bf-paper);
}

.bf-adaptive-brochure.bf-master-spectrum .bf-feature-card:nth-child(3n+1) p,
.bf-adaptive-brochure.bf-master-spectrum .bf-feature-card:nth-child(3n+1) .bf-feature-index{
    color:var(--bf-paper);
}

.bf-adaptive-brochure.bf-master-vertex .bf-adaptive-spec-table,
.bf-adaptive-brochure.bf-master-linea .bf-adaptive-spec-table{
    border-top:2px solid var(--bf-ink);
}

.bf-adaptive-brochure.bf-master-forge .bf-adaptive-spec-table thead th,
.bf-adaptive-brochure.bf-master-foundry .bf-adaptive-spec-table thead th,
.bf-adaptive-brochure.bf-master-atlas .bf-adaptive-spec-table thead th{
    font-family:monospace;
    letter-spacing:.05em;
}

.bf-adaptive-brochure.bf-master-aurelia .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-terra .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-terra_nova .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-craft .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-archive .bf-adaptive-hero h1{
    font-weight:500;
}

.bf-adaptive-brochure.bf-master-vertex .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-nexus .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-monolith .bf-adaptive-hero h1,
.bf-adaptive-brochure.bf-master-foundry .bf-adaptive-hero h1{
    font-weight:900;
}

.bf-adaptive-brochure[data-format="a4_landscape"]{
    --bf-page-width:297mm;
    --bf-page-min-height:210mm;
}

.bf-adaptive-brochure[data-format="a5_portrait"]{
    --bf-page-width:148mm;
    --bf-page-min-height:210mm;
}

.bf-adaptive-brochure[data-format="letter_portrait"]{
    --bf-page-width:216mm;
    --bf-page-min-height:279mm;
}

.bf-adaptive-brochure[data-format="square"]{
    --bf-page-width:210mm;
    --bf-page-min-height:210mm;
}

.bf-adaptive-brochure[data-format="square"] .bf-adaptive-hero{
    grid-template-columns:1fr 1fr;
}

@media print{
    .bf-adaptive-brochure{
        margin:0;
        box-shadow:none;
    }

    .bf-adaptive-section,
    .bf-feature-card,
    .bf-adaptive-image,
    .bf-gallery-item,
    .bf-adaptive-closing{
        break-inside:avoid;
    }

    .bf-adaptive-spec-table thead{
        display:table-header-group;
    }

    .bf-adaptive-spec-table tr{
        break-inside:avoid;
        page-break-inside:avoid;
    }
}

@media(max-width:800px){
.bf-adaptive-brochure:not(:where(#realPreview *, .bf-create-template-thumb *)){
        width:100%;
        min-height:0;
        padding:24px 20px;
    }
.bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-brochure.bf-layout-two_column_text .bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-brochure.bf-layout-magazine_columns .bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-brochure.bf-layout-three_column .bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-brochure.bf-layout-full_width_text .bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-brochure.bf-layout-longform .bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-brochure.bf-layout-text_image_text .bf-adaptive-hero:not(:where(#realPreview *, .bf-create-template-thumb *)){
        grid-template-columns:1fr;
    }
.bf-feature-grid:not(:where(#realPreview *, .bf-create-template-thumb *)){
        grid-template-columns:1fr 1fr;
    }
.bf-adaptive-prose:not(:where(#realPreview *, .bf-create-template-thumb *)){
        columns:1;
    }
.bf-adaptive-footer:not(:where(#realPreview *, .bf-create-template-thumb *)){
        flex-direction:column;
    }
}

@media(max-width:520px){
.bf-feature-grid:not(:where(#realPreview *, .bf-create-template-thumb *)),
.bf-adaptive-gallery:not(:where(#realPreview *, .bf-create-template-thumb *)){
        grid-template-columns:1fr;
    }
.bf-gallery-item:first-child:not(:where(#realPreview *, .bf-create-template-thumb *)){
        grid-column:auto;
    }
.bf-adaptive-header:not(:where(#realPreview *, .bf-create-template-thumb *)){
        align-items:flex-start;
        flex-direction:column;
    }
}


/* ========================================================================
   BF_COMPOSITION_ENGINE_V1_BEGIN
   BrochureForge — Genuine Composition Engine
   ------------------------------------------------------------------------
   Master = visual DNA
   Composition = structural architecture
   ======================================================================== */


/* ------------------------------------------------------------------------
   SHARED COMPOSITION FOUNDATION
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1{
    position:relative;
    isolation:isolate;
}

.bf-composition-engine-v1 > *:not(.bf-adaptive-decor){
    position:relative;
    z-index:1;
}

.bf-composition-engine-v1 .bf-comp-header{
    margin:0;
}

.bf-composition-engine-v1 .bf-comp-title-block{
    min-width:0;
}

.bf-composition-engine-v1 .bf-comp-title-block h1{
    margin-top:0;
}

.bf-composition-engine-v1 .bf-comp-media{
    min-width:0;
    overflow:hidden;
}

.bf-composition-engine-v1 .bf-comp-overview,
.bf-composition-engine-v1 .bf-comp-features,
.bf-composition-engine-v1 .bf-comp-specifications,
.bf-composition-engine-v1 .bf-comp-closing{
    min-width:0;
}

.bf-composition-engine-v1 .bf-comp-specifications > :first-child,
.bf-composition-engine-v1 .bf-comp-overview > :first-child,
.bf-composition-engine-v1 .bf-comp-features > :first-child{
    margin-top:0;
}

.bf-composition-engine-v1 .bf-comp-specifications > :last-child,
.bf-composition-engine-v1 .bf-comp-overview > :last-child,
.bf-composition-engine-v1 .bf-comp-features > :last-child{
    margin-bottom:0;
}

.bf-composition-engine-v1 .bf-comp-module:empty,
.bf-composition-engine-v1 .bf-comp-catalog-card:empty,
.bf-composition-engine-v1 .bf-comp-dashboard-panel:empty,
.bf-composition-engine-v1 .bf-comp-timeline-content:empty,
.bf-composition-engine-v1 .bf-comp-minimal-story:empty{
    display:none;
}


/* ========================================================================
   01 — HERO SPLIT
   Large balanced two-zone hero.
   ======================================================================== */

.bf-composition-hero_split .bf-comp-hero-split{
    display:grid;
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
    align-items:stretch;
    gap:clamp(24px,4vw,56px);
    margin-top:clamp(28px,4vw,52px);
    margin-bottom:clamp(34px,5vw,64px);
}

.bf-composition-hero_split .bf-comp-hero-split-copy{
    display:flex;
    align-items:center;
    min-width:0;
}

.bf-composition-hero_split .bf-comp-hero-split-copy .bf-comp-title-block{
    width:100%;
    padding:
        clamp(20px,3vw,42px)
        0
        clamp(20px,3vw,42px)
        clamp(4px,1vw,14px);
}

.bf-composition-hero_split .bf-comp-hero-split-media{
    min-width:0;
}

.bf-composition-hero_split .bf-comp-hero-split-media .bf-comp-media{
    height:100%;
    min-height:360px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border-radius:var(--bf-radius);
    box-shadow:var(--bf-shadow);
}

.bf-composition-hero_split .bf-comp-overview{
    max-width:900px;
}


/* ========================================================================
   02 — FULL BLEED
   Image-led opening with floating editorial card.
   ======================================================================== */

.bf-composition-full_bleed{
    padding:0 !important;
    overflow:hidden;
}

.bf-composition-full_bleed .bf-adaptive-decor{
    z-index:0;
}

.bf-composition-full_bleed .bf-comp-full-bleed-opening{
    position:relative;
    min-height:560px;
    overflow:hidden;
    background:transparent;
}

.bf-composition-full_bleed .bf-comp-full-bleed-media{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border-radius:0;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.bf-composition-full_bleed .bf-comp-full-bleed-overlay{
    position:relative;
    z-index:2;
    min-height:560px;
    padding:
        clamp(28px,5vw,58px)
        clamp(28px,5vw,64px);
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    pointer-events:none;
}

.bf-composition-full_bleed .bf-comp-full-bleed-overlay .bf-comp-header{
    pointer-events:auto;
}

.bf-composition-full_bleed .bf-comp-full-bleed-overlay .bf-comp-title-block{
    width:min(620px,78%);
    padding:clamp(24px,3vw,42px);
    background:var(--bf-paper);
    border:1px solid var(--bf-line);
    border-radius:var(--bf-radius);
    box-shadow:var(--bf-shadow);
    pointer-events:auto;
}

.bf-composition-full_bleed .bf-comp-full-bleed-content{
    padding:
        clamp(38px,5vw,64px)
        clamp(28px,5vw,64px);
}

.bf-composition-full_bleed > .bf-comp-closing,
.bf-composition-full_bleed > .bf-comp-footer{
    margin-left:clamp(28px,5vw,64px);
    margin-right:clamp(28px,5vw,64px);
}

.bf-composition-full_bleed > .bf-comp-footer{
    margin-bottom:clamp(24px,4vw,44px);
}


/* ========================================================================
   03 — EDITORIAL ASYMMETRIC
   Long editorial column plus offset visual column.
   ======================================================================== */

.bf-composition-editorial_asymmetric .bf-comp-editorial-shell{
    display:grid;
    grid-template-columns:minmax(0,7fr) minmax(260px,5fr);
    gap:clamp(30px,6vw,86px);
    align-items:start;
    margin-top:clamp(36px,5vw,62px);
}

.bf-composition-editorial_asymmetric .bf-comp-editorial-main{
    min-width:0;
    padding-right:clamp(0px,2vw,20px);
}

.bf-composition-editorial_asymmetric .bf-comp-editorial-main .bf-comp-title-block h1{
    font-size:clamp(42px,6vw,76px);
    line-height:.96;
    max-width:10ch;
}

.bf-composition-editorial_asymmetric .bf-comp-editorial-main .bf-comp-overview{
    margin-top:clamp(40px,6vw,76px);
}

.bf-composition-editorial_asymmetric .bf-comp-editorial-aside{
    min-width:0;
    padding-top:clamp(48px,8vw,110px);
}

.bf-composition-editorial_asymmetric .bf-comp-editorial-aside .bf-comp-media{
    border-radius:var(--bf-radius);
    background:transparent;
    box-shadow:var(--bf-shadow);
}

.bf-composition-editorial_asymmetric .bf-comp-editorial-aside .bf-comp-features{
    margin-top:clamp(24px,4vw,44px);
}

.bf-composition-editorial_asymmetric .bf-comp-specifications{
    margin-top:clamp(42px,6vw,76px);
}


/* ========================================================================
   04 — SIDEBAR HERO
   Full-height information rail plus product body.
   ======================================================================== */

.bf-composition-sidebar_hero{
    padding:0 !important;
    overflow:hidden;
}

.bf-composition-sidebar_hero .bf-comp-sidebar-shell{
    display:grid;
    grid-template-columns:minmax(245px,31%) minmax(0,69%);
    min-height:var(--bf-page-min-height);
}

.bf-composition-sidebar_hero .bf-comp-sidebar-rail{
    padding:
        clamp(30px,4vw,52px)
        clamp(26px,3.5vw,46px);
    background:var(--bf-surface);
    border-right:1px solid var(--bf-line);
    display:flex;
    flex-direction:column;
    gap:clamp(36px,5vw,64px);
}

.bf-composition-sidebar_hero .bf-comp-sidebar-rail .bf-comp-header{
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
}

.bf-composition-sidebar_hero .bf-comp-sidebar-rail .bf-comp-title-block h1{
    font-size:clamp(34px,4.2vw,58px);
    line-height:.98;
}

.bf-composition-sidebar_hero .bf-comp-sidebar-main{
    min-width:0;
    padding:
        clamp(32px,5vw,64px)
        clamp(32px,5vw,68px);
}

.bf-composition-sidebar_hero .bf-comp-sidebar-main > .bf-comp-media{
    min-height:390px;
    background:transparent;
    border-radius:var(--bf-radius);
}

.bf-composition-sidebar_hero .bf-comp-sidebar-main .bf-comp-overview{
    margin-top:clamp(38px,5vw,58px);
}

.bf-composition-sidebar_hero .bf-comp-sidebar-main .bf-comp-specifications{
    margin-top:clamp(36px,5vw,58px);
}

.bf-composition-sidebar_hero > .bf-comp-footer{
    margin:
        0
        clamp(32px,5vw,68px)
        clamp(24px,4vw,44px)
        calc(31% + clamp(32px,5vw,68px));
}


/* ========================================================================
   05 — MODULAR GRID
   Independent modules with asymmetric spans.
   ======================================================================== */

.bf-composition-modular_grid .bf-comp-modular-intro{
    margin-top:clamp(30px,4vw,52px);
    max-width:760px;
}

.bf-composition-modular_grid .bf-comp-module-grid{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:clamp(18px,2.6vw,32px);
    margin-top:clamp(38px,5vw,62px);
}

.bf-composition-modular_grid .bf-comp-module{
    min-width:0;
    padding:clamp(20px,3vw,34px);
    border:1px solid var(--bf-line);
    border-radius:var(--bf-radius);
    background:var(--bf-surface);
}

.bf-composition-modular_grid .bf-comp-module-media{
    grid-column:span 7;
    grid-row:span 2;
    padding:0;
    overflow:hidden;
    background:transparent;
}

.bf-composition-modular_grid .bf-comp-module-overview{
    grid-column:span 5;
}

.bf-composition-modular_grid .bf-comp-module-features{
    grid-column:span 5;
}

.bf-composition-modular_grid .bf-comp-module-specs{
    grid-column:1 / -1;
    background:var(--bf-paper);
}

.bf-composition-modular_grid .bf-comp-module-media .bf-comp-media{
    min-height:100%;
}


/* ========================================================================
   06 — TECHNICAL DOSSIER
   Restrained engineering / document architecture.
   ======================================================================== */

.bf-composition-technical_dossier{
    --bf-dossier-rule:var(--bf-line);
}

.bf-composition-technical_dossier .bf-comp-dossier{
    border:1px solid var(--bf-dossier-rule);
    background:var(--bf-paper);
}

.bf-composition-technical_dossier .bf-comp-dossier-heading{
    padding:clamp(24px,4vw,44px);
    border-bottom:1px solid var(--bf-dossier-rule);
}

.bf-composition-technical_dossier .bf-comp-dossier-title-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(230px,.62fr);
    gap:clamp(30px,5vw,64px);
    align-items:end;
    margin-top:clamp(38px,5vw,64px);
}

.bf-composition-technical_dossier .bf-comp-dossier-title-row .bf-comp-title-block h1{
    font-size:clamp(38px,5vw,66px);
    max-width:12ch;
}

.bf-composition-technical_dossier .bf-comp-dossier-title-row .bf-comp-media{
    border:1px solid var(--bf-line);
    background:transparent;
}

.bf-composition-technical_dossier .bf-comp-dossier-technical{
    padding:clamp(24px,4vw,44px);
    border-bottom:1px solid var(--bf-dossier-rule);
}

.bf-composition-technical_dossier .bf-comp-dossier-support{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:clamp(30px,5vw,58px);
    padding:clamp(24px,4vw,44px);
}

.bf-composition-technical_dossier .bf-comp-closing{
    margin-left:clamp(24px,4vw,44px);
    margin-right:clamp(24px,4vw,44px);
}

.bf-composition-technical_dossier .bf-comp-footer{
    margin:
        clamp(24px,4vw,44px)
        clamp(24px,4vw,44px);
}


/* ========================================================================
   07 — SPECIFICATION FIRST
   Product data is the primary information block.
   ======================================================================== */

.bf-composition-specification_first .bf-comp-spec-first-heading{
    margin:
        clamp(30px,4vw,48px)
        0
        clamp(28px,4vw,46px);
    padding-bottom:clamp(24px,3vw,36px);
    border-bottom:3px solid var(--bf-accent);
}

.bf-composition-specification_first .bf-comp-spec-first-heading .bf-comp-title-block{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:20px;
    align-items:end;
}

.bf-composition-specification_first .bf-comp-spec-first-primary{
    padding:clamp(24px,3vw,38px);
    border:1px solid var(--bf-line);
    background:var(--bf-surface);
}

.bf-composition-specification_first .bf-comp-spec-first-secondary{
    display:grid;
    grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);
    gap:clamp(28px,5vw,64px);
    align-items:start;
    margin-top:clamp(38px,5vw,60px);
}

.bf-composition-specification_first .bf-comp-spec-first-visual .bf-comp-media{
    background:transparent;
    border-radius:var(--bf-radius);
    overflow:hidden;
}

.bf-composition-specification_first .bf-comp-spec-first-story .bf-comp-features{
    margin-top:clamp(26px,4vw,42px);
}


/* ========================================================================
   08 — CATALOG CARDS
   Commercial catalog card language.
   ======================================================================== */

.bf-composition-catalog_cards .bf-comp-catalog-heading{
    margin-top:clamp(28px,4vw,50px);
    max-width:820px;
}

.bf-composition-catalog_cards .bf-comp-catalog-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:clamp(20px,3vw,34px);
    margin-top:clamp(38px,5vw,60px);
}

.bf-composition-catalog_cards .bf-comp-catalog-card{
    min-width:0;
    padding:clamp(22px,3vw,34px);
    background:var(--bf-surface);
    border:1px solid var(--bf-line);
    border-radius:calc(var(--bf-radius) * 1.15);
    box-shadow:var(--bf-shadow);
}

.bf-composition-catalog_cards .bf-comp-catalog-image-card{
    padding:0;
    overflow:hidden;
    min-height:340px;
}

.bf-composition-catalog_cards .bf-comp-catalog-image-card .bf-comp-media{
    height:100%;
    background:transparent;
}

.bf-composition-catalog_cards .bf-comp-catalog-spec-card{
    grid-column:1 / -1;
    background:var(--bf-paper);
}

.bf-composition-catalog_cards .bf-comp-catalog-overview-card{
    align-self:start;
}


/* ========================================================================
   09 — PROCESS TIMELINE
   Sequential numbered vertical narrative.
   ======================================================================== */

.bf-composition-process_timeline .bf-comp-timeline-intro{
    max-width:780px;
    margin-top:clamp(30px,4vw,52px);
}

.bf-composition-process_timeline .bf-comp-timeline{
    position:relative;
    margin-top:18px;
    padding-left:0;

    /* BF_PROCESS_TIMELINE_DENSITY_V1 */
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 18px;
    align-items:start;
}

.bf-composition-process_timeline .bf-comp-timeline::before{
    content:none;
    position:absolute;
    top:8px;
    bottom:8px;
    left:clamp(22px,3vw,38px);
    width:1px;
    background:var(--bf-line);

    display:none;
}

.bf-composition-process_timeline .bf-comp-timeline-step{
    position:relative;
    display:block;
    
    min-width:0;
    padding:0 0 0 36px;
}

.bf-composition-process_timeline .bf-comp-timeline-step:last-child{
    padding-bottom:0;
}

.bf-composition-process_timeline .bf-comp-timeline-number{
    position:absolute;
    left:0;
    top:0;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:1px solid var(--bf-accent);
    background:var(--bf-paper);
    color:var(--bf-accent);
    font-family:var(--bf-display);
    font-weight:700;
    letter-spacing:.06em;
}

.bf-composition-process_timeline .bf-comp-timeline-content{
    min-width:0;
    padding:10px;
    border-left:3px solid var(--bf-accent);
    background:var(--bf-surface);

    overflow-wrap:anywhere;
}

.bf-composition-process_timeline .bf-comp-timeline-step:first-child .bf-comp-timeline-content{
    padding:0;
    border-left:0;
    background:transparent;
}

.bf-composition-process_timeline .bf-comp-timeline-step:first-child .bf-comp-media{
    min-height:0;
    border-radius:var(--bf-radius);
    background:transparent;
}

.bf-composition-process_timeline
.bf-comp-timeline-step:first-child .bf-media-slot {
    box-sizing:border-box;
    min-height:0;
    height:195px;
    background:transparent;
}

.bf-composition-process_timeline
.bf-comp-timeline-step:first-child .bf-media-slot img {
    max-height:100%;
}



/* ========================================================================
   10 — IMAGE COLLAGE
   Visual-first composition with floating copy.
   ======================================================================== */

.bf-composition-image_collage .bf-comp-collage-stage{
    position:relative;
    margin-top:clamp(28px,4vw,48px);
    min-height:500px;
    padding-bottom:clamp(80px,10vw,130px);
}

.bf-composition-image_collage .bf-comp-collage-media{
    width:82%;
    min-height:460px;
    margin-left:auto;
    background:transparent;
    border-radius:var(--bf-radius);
    overflow:hidden;
    box-shadow:var(--bf-shadow);
}

.bf-composition-image_collage .bf-comp-collage-media .bf-comp-media{
    min-height:460px;
}

.bf-composition-image_collage .bf-comp-collage-caption{
    position:absolute;
    left:0;
    bottom:0;
    z-index:3;
    width:min(58%,620px);
    padding:clamp(26px,4vw,46px);
    background:var(--bf-paper);
    border:1px solid var(--bf-line);
    box-shadow:var(--bf-shadow);
}

.bf-composition-image_collage .bf-comp-collage-caption h1{
    font-size:clamp(40px,5.5vw,72px);
    line-height:.96;
}

.bf-composition-image_collage .bf-comp-collage-details{
    display:grid;
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
    gap:clamp(32px,5vw,68px);
    margin-top:clamp(40px,6vw,72px);
}

.bf-composition-image_collage .bf-comp-collage-story .bf-comp-features{
    margin-top:clamp(28px,4vw,44px);
}


/* ========================================================================
   11 — TYPOGRAPHY FIRST
   Oversized identity precedes product imagery.
   ======================================================================== */

.bf-composition-typography_first .bf-comp-type-stage{
    display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);
    gap:clamp(32px,6vw,90px);
    align-items:end;
    margin-top:clamp(52px,8vw,110px);
    margin-bottom:clamp(50px,7vw,96px);
}

.bf-composition-typography_first .bf-comp-type-primary h1{
    font-size:clamp(64px,9vw,128px);
    line-height:.82;
    letter-spacing:-.055em;
    max-width:8ch;
}

.bf-composition-typography_first .bf-comp-type-primary .bf-adaptive-model{
    margin-top:clamp(22px,3vw,36px);
}

.bf-composition-typography_first .bf-comp-type-story{
    padding-bottom:clamp(4px,2vw,24px);
}

.bf-composition-typography_first .bf-comp-type-media-band{
    margin-left:calc(clamp(24px,4vw,48px) * -1);
    margin-right:calc(clamp(24px,4vw,48px) * -1);
    min-height:360px;
    background:transparent;
    overflow:hidden;
}

.bf-composition-typography_first .bf-comp-type-media-band .bf-comp-media{
    min-height:360px;
}

.bf-composition-typography_first .bf-comp-type-data{
    display:grid;
    grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);
    gap:clamp(30px,5vw,68px);
    margin-top:clamp(44px,6vw,76px);
}


/* ========================================================================
   12 — DATA DASHBOARD
   Dense structured panel system.
   ======================================================================== */

.bf-composition-data_dashboard .bf-comp-dashboard-heading{
    margin-top:clamp(28px,4vw,48px);
    padding-bottom:clamp(24px,3vw,34px);
    border-bottom:1px solid var(--bf-line);
}

.bf-composition-data_dashboard .bf-comp-dashboard-heading .bf-comp-title-block{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:end;
}

.bf-composition-data_dashboard .bf-comp-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:clamp(14px,2vw,24px);
    margin-top:clamp(28px,4vw,46px);
}

.bf-composition-data_dashboard .bf-comp-dashboard-panel{
    min-width:0;
    padding:clamp(20px,2.5vw,30px);
    border:1px solid var(--bf-line);
    background:var(--bf-surface);
}

.bf-composition-data_dashboard .bf-comp-dashboard-visual{
    grid-column:span 7;
    padding:0;
    overflow:hidden;
    min-height:350px;
    background:transparent;
}

.bf-composition-data_dashboard .bf-comp-dashboard-highlights{
    grid-column:span 5;
}

.bf-composition-data_dashboard .bf-comp-dashboard-specs{
    grid-column:span 8;
    background:var(--bf-paper);
}

.bf-composition-data_dashboard .bf-comp-dashboard-overview{
    grid-column:span 4;
}


/* ========================================================================
   13 — MINIMAL FRAME
   Quiet framed layout with generous whitespace.
   ======================================================================== */

.bf-composition-minimal_frame{
    padding:clamp(22px,3vw,34px) !important;
}

.bf-composition-minimal_frame .bf-comp-minimal-frame{
    min-height:calc(var(--bf-page-min-height) - 68px);
    border:1px solid var(--bf-line);
    padding:clamp(34px,6vw,78px);
    display:flex;
    flex-direction:column;
}

.bf-composition-minimal_frame .bf-comp-minimal-heading{
    width:min(720px,82%);
    margin:
        clamp(64px,9vw,120px)
        auto
        0;
    text-align:center;
}

.bf-composition-minimal_frame .bf-comp-minimal-heading .bf-comp-title-block h1{
    font-size:clamp(46px,6.5vw,86px);
    line-height:.94;
}

.bf-composition-minimal_frame .bf-comp-minimal-media{
    width:min(760px,84%);
    margin:
        clamp(50px,7vw,88px)
        auto
        0;
}

.bf-composition-minimal_frame .bf-comp-minimal-media .bf-comp-media{
    min-height:330px;
    background:transparent;
}

.bf-composition-minimal_frame .bf-comp-minimal-story{
    width:min(660px,78%);
    margin:
        clamp(48px,7vw,82px)
        auto
        0;
}

.bf-composition-minimal_frame .bf-comp-minimal-data{
    width:min(840px,90%);
    margin:
        clamp(42px,6vw,70px)
        auto
        0;
}

.bf-composition-minimal_frame .bf-comp-minimal-data .bf-comp-specifications{
    margin-top:clamp(34px,5vw,54px);
}

.bf-composition-minimal_frame .bf-comp-closing{
    margin-top:clamp(52px,7vw,90px);
}

.bf-composition-minimal_frame .bf-comp-footer{
    margin-top:auto;
    padding-top:clamp(36px,5vw,58px);
}


/* ========================================================================
   CONTENT DENSITY ADAPTATION
   Preserve automatic fitting across all compositions.
   ======================================================================== */

.bf-composition-engine-v1.bf-has-long-text .bf-comp-title-block
.bf-adaptive-hero-description{
    max-height:none;
}

.bf-composition-engine-v1.bf-has-long-text
.bf-comp-overview .bf-adaptive-prose{
    max-width:none;
}

.bf-composition-engine-v1.bf-has-many-specs
.bf-comp-specifications{
    font-size:.94em;
}

.bf-composition-engine-v1.bf-has-many-specs
.bf-adaptive-spec-table th,
.bf-composition-engine-v1.bf-has-many-specs
.bf-adaptive-spec-table td{
    padding-top:7px;
    padding-bottom:7px;
}

.bf-composition-engine-v1.bf-has-gallery
.bf-comp-media{
    align-self:stretch;
}


/* ========================================================================
   LANDSCAPE / SQUARE FORMAT TUNING
   ======================================================================== */

.bf-composition-engine-v1[data-format="a4_landscape"]
.bf-comp-hero-split{
    grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);
}

.bf-composition-engine-v1[data-format="a4_landscape"]
.bf-comp-full-bleed-opening,
.bf-composition-engine-v1[data-format="a4_landscape"]
.bf-comp-full-bleed-overlay{
    min-height:430px;
}

.bf-composition-engine-v1[data-format="a4_landscape"]
.bf-comp-sidebar-shell{
    grid-template-columns:minmax(220px,27%) minmax(0,73%);
}

.bf-composition-engine-v1[data-format="square"]
.bf-comp-collage-media{
    width:88%;
}

.bf-composition-engine-v1[data-format="square"]
.bf-comp-type-primary h1{
    font-size:clamp(54px,8vw,104px);
}


/* ========================================================================
   PRINT
   ======================================================================== */

@media print{

    .bf-composition-engine-v1{
        box-shadow:none !important;
    }

    .bf-composition-engine-v1 .bf-comp-module,
    .bf-composition-engine-v1 .bf-comp-catalog-card,
    .bf-composition-engine-v1 .bf-comp-dashboard-panel,
    .bf-composition-engine-v1 .bf-comp-timeline-step,
    .bf-composition-engine-v1 .bf-comp-media,
    .bf-composition-engine-v1 .bf-comp-closing{
        break-inside:avoid;
        page-break-inside:avoid;
    }

    .bf-composition-engine-v1
    .bf-comp-specifications
    .bf-adaptive-spec-table thead{
        display:table-header-group;
    }

    .bf-composition-engine-v1
    .bf-comp-specifications
    .bf-adaptive-spec-table tr{
        break-inside:avoid;
        page-break-inside:avoid;
    }
}


/* ========================================================================
   TABLET / MOBILE
   ======================================================================== */

@media(max-width:800px){

    .bf-composition-engine-v1{
        padding:24px 20px !important;
    }

    .bf-composition-full_bleed,
    .bf-composition-sidebar_hero{
        padding:0 !important;
    }

    .bf-composition-hero_split .bf-comp-hero-split,
    .bf-composition-editorial_asymmetric .bf-comp-editorial-shell,
    .bf-composition-technical_dossier .bf-comp-dossier-title-row,
    .bf-composition-technical_dossier .bf-comp-dossier-support,
    .bf-composition-specification_first .bf-comp-spec-first-secondary,
    .bf-composition-image_collage .bf-comp-collage-details,
    .bf-composition-typography_first .bf-comp-type-stage,
    .bf-composition-typography_first .bf-comp-type-data{
        grid-template-columns:1fr;
    }

    .bf-composition-sidebar_hero .bf-comp-sidebar-shell{
        grid-template-columns:1fr;
    }

    .bf-composition-sidebar_hero .bf-comp-sidebar-rail{
        border-right:0;
        border-bottom:1px solid var(--bf-line);
    }

    .bf-composition-sidebar_hero > .bf-comp-footer{
        margin:
            20px
            24px
            28px;
    }

    .bf-composition-modular_grid .bf-comp-module-media,
    .bf-composition-modular_grid .bf-comp-module-overview,
    .bf-composition-modular_grid .bf-comp-module-features{
        grid-column:span 12;
    }

    .bf-composition-catalog_cards .bf-comp-catalog-cards{
        grid-template-columns:1fr;
    }

    .bf-composition-data_dashboard .bf-comp-dashboard-visual,
    .bf-composition-data_dashboard .bf-comp-dashboard-highlights,
    .bf-composition-data_dashboard .bf-comp-dashboard-specs,
    .bf-composition-data_dashboard .bf-comp-dashboard-overview{
        grid-column:1 / -1;
    }

    .bf-composition-image_collage .bf-comp-collage-stage{
        padding-bottom:0;
    }

    .bf-composition-image_collage .bf-comp-collage-media{
        width:100%;
    }

    .bf-composition-image_collage .bf-comp-collage-caption{
        position:relative;
        width:100%;
        margin-top:20px;
    }

    .bf-composition-full_bleed .bf-comp-full-bleed-opening,
    .bf-composition-full_bleed .bf-comp-full-bleed-overlay{
        min-height:480px;
    }

    .bf-composition-full_bleed .bf-comp-full-bleed-overlay
    .bf-comp-title-block{
        width:100%;
    }

    .bf-composition-minimal_frame .bf-comp-minimal-heading,
    .bf-composition-minimal_frame .bf-comp-minimal-media,
    .bf-composition-minimal_frame .bf-comp-minimal-story,
    .bf-composition-minimal_frame .bf-comp-minimal-data{
        width:100%;
    }
}


@media(max-width:520px){

    .bf-composition-editorial_asymmetric
    .bf-comp-editorial-main
    .bf-comp-title-block h1,
    .bf-composition-image_collage
    .bf-comp-collage-caption h1{
        font-size:clamp(36px,12vw,54px);
    }

    .bf-composition-typography_first
    .bf-comp-type-primary h1{
        font-size:clamp(52px,16vw,76px);
    }

    .bf-composition-process_timeline .bf-comp-timeline{
        padding-left:0;
    }

    .bf-composition-process_timeline
    .bf-comp-timeline::before{
        left:17px;
    }

    .bf-composition-process_timeline
    .bf-comp-timeline-number{
        left:0;
        width:30px;
        height:30px;
        font-size:11px;
    }

    .bf-composition-minimal_frame{
        padding:12px !important;
    }

    .bf-composition-minimal_frame .bf-comp-minimal-frame{
        padding:28px 20px;
    }
}


/* ========================================================================
   BF_COMPOSITION_ENGINE_V1_END
   ======================================================================== */


/* ========================================================================
   BF_MASTER_VISUAL_IDENTITY_V1_BEGIN

   Additional visual identities for masters that previously relied almost
   entirely on shared palette variables.

   These rules work with all 13 composition DOM structures.
   ======================================================================== */


/* ------------------------------------------------------------------------
   PULSE — energetic modular geometry
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-pulse
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:46%;
    height:110px;
    right:-8%;
    top:7%;
    background:
        linear-gradient(
            115deg,
            var(--bf-accent),
            var(--bf-accent-2)
        );
    transform:rotate(-9deg);
    border-radius:28px;
    opacity:.13;
}

.bf-composition-engine-v1.bf-master-pulse
.bf-comp-module,
.bf-composition-engine-v1.bf-master-pulse
.bf-comp-catalog-card{
    border-width:2px;
}


/* ------------------------------------------------------------------------
   CLARITY — clinical whitespace and soft frame
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-clarity
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    inset:22px;
    border:1px solid var(--bf-line);
    border-radius:30px;
    pointer-events:none;
}

.bf-composition-engine-v1.bf-master-clarity
.bf-comp-media{
    border-radius:26px;
}

.bf-composition-engine-v1.bf-master-clarity
.bf-section-kicker{
    letter-spacing:.18em;
}


/* ------------------------------------------------------------------------
   PRISM — glass / gradient layers
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-prism
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:330px;
    height:330px;
    right:-100px;
    top:-80px;
    border-radius:50%;
    background:
        radial-gradient(
            circle at 35% 35%,
            var(--bf-accent-2),
            transparent 68%
        );
    opacity:.22;
}

.bf-composition-engine-v1.bf-master-prism
.bf-adaptive-decor > .bf-decor-after{
    content:"";
    position:absolute;
    width:240px;
    height:410px;
    left:-110px;
    bottom:4%;
    transform:rotate(18deg);
    background:
        linear-gradient(
            160deg,
            var(--bf-accent),
            transparent
        );
    opacity:.09;
}

.bf-composition-engine-v1.bf-master-prism
.bf-comp-module,
.bf-composition-engine-v1.bf-master-prism
.bf-comp-dashboard-panel{
    backdrop-filter:blur(10px);
}


/* ------------------------------------------------------------------------
   FLUX — fluid organic gradients
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-flux
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:48%;
    height:28%;
    left:-14%;
    top:16%;
    border-radius:50%;
    background:
        radial-gradient(
            ellipse,
            var(--bf-accent),
            transparent 70%
        );
    opacity:.10;
    transform:rotate(-14deg);
}

.bf-composition-engine-v1.bf-master-flux
.bf-adaptive-decor > .bf-decor-after{
    content:"";
    position:absolute;
    width:42%;
    height:25%;
    right:-12%;
    bottom:13%;
    border-radius:50%;
    background:
        radial-gradient(
            ellipse,
            var(--bf-accent-2),
            transparent 70%
        );
    opacity:.10;
    transform:rotate(16deg);
}

.bf-composition-engine-v1.bf-master-flux
.bf-comp-media{
    border-radius:36px 8px 36px 8px;
}


/* ------------------------------------------------------------------------
   HALO — circular futuristic field
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-halo
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:360px;
    height:360px;
    right:-120px;
    top:12%;
    border:36px solid var(--bf-accent);
    border-radius:50%;
    opacity:.055;
}

.bf-composition-engine-v1.bf-master-halo
.bf-comp-media{
    border-radius:34px;
}


/* ------------------------------------------------------------------------
   BLOOM — organic lifestyle
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-bloom
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:310px;
    height:230px;
    left:-110px;
    top:24%;
    background:var(--bf-accent-2);
    border-radius:
        58% 42% 65% 35%
        / 48% 62% 38% 52%;
    opacity:.08;
    transform:rotate(18deg);
}

.bf-composition-engine-v1.bf-master-bloom
.bf-comp-media{
    border-radius:42px;
}


/* ------------------------------------------------------------------------
   FORMA — circle / square geometric editorial
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-forma
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:170px;
    height:170px;
    right:6%;
    top:10%;
    border:18px solid var(--bf-accent);
    opacity:.07;
}

.bf-composition-engine-v1.bf-master-forma
.bf-adaptive-decor > .bf-decor-after{
    content:"";
    position:absolute;
    width:150px;
    height:150px;
    left:5%;
    bottom:11%;
    border-radius:50%;
    border:16px solid var(--bf-accent-2);
    opacity:.07;
}


/* ------------------------------------------------------------------------
   ELEVATE — premium executive structure
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-elevate::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:5px;
    background:
        linear-gradient(
            90deg,
            var(--bf-accent),
            var(--bf-accent-2)
        );
    z-index:3;
}

.bf-composition-engine-v1.bf-master-elevate
.bf-comp-media{
    box-shadow:
        0 22px 60px rgba(20,40,60,.11);
}

.bf-composition-engine-v1.bf-master-elevate
.bf-adaptive-header{
    padding-bottom:18px;
    border-bottom:1px solid var(--bf-line);
}


/* ------------------------------------------------------------------------
   CURRENT — flowing directional movement
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-current
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:70%;
    height:115px;
    right:-20%;
    top:29%;
    background:
        linear-gradient(
            100deg,
            transparent,
            var(--bf-accent),
            var(--bf-accent-2),
            transparent
        );
    transform:rotate(-13deg);
    opacity:.085;
    border-radius:50%;
}


/* ------------------------------------------------------------------------
   TERRA NOVA — natural premium
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-terra_nova
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:360px;
    height:290px;
    right:-130px;
    top:17%;
    background:var(--bf-accent-2);
    border-radius:
        62% 38% 54% 46%
        / 44% 60% 40% 56%;
    opacity:.07;
    transform:rotate(-11deg);
}

.bf-composition-engine-v1.bf-master-terra_nova
.bf-comp-media{
    border-radius:34px 8px 34px 8px;
}


/* ------------------------------------------------------------------------
   PULSE GRID — editorial data grid
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-pulse_grid
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(
            var(--bf-line) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--bf-line) 1px,
            transparent 1px
        );
    background-size:44px 44px;
    opacity:.11;
    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            #000 18%,
            #000 82%,
            transparent
        );
}

.bf-composition-engine-v1.bf-master-pulse_grid
.bf-section-kicker{
    letter-spacing:.22em;
}


/* ------------------------------------------------------------------------
   AXIOM — scientific annotation language
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-axiom
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    right:5%;
    top:9%;
    background:
        linear-gradient(
            90deg,
            transparent 49.5%,
            var(--bf-accent) 49.5%,
            var(--bf-accent) 50.5%,
            transparent 50.5%
        ),
        linear-gradient(
            transparent 49.5%,
            var(--bf-accent) 49.5%,
            var(--bf-accent) 50.5%,
            transparent 50.5%
        );
    opacity:.09;
}

.bf-composition-engine-v1.bf-master-axiom
.bf-adaptive-spec-table{
    border-top:2px solid var(--bf-accent);
}


/* ------------------------------------------------------------------------
   KINETIC — diagonal motion
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-kinetic
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:46%;
    height:28%;
    right:-11%;
    top:7%;
    background:
        linear-gradient(
            135deg,
            var(--bf-accent),
            var(--bf-accent-2)
        );
    clip-path:
        polygon(
            25% 0,
            100% 0,
            72% 100%,
            0 100%
        );
    opacity:.10;
}

.bf-composition-engine-v1.bf-master-kinetic
.bf-comp-title-block h1{
    transform:skewX(-3deg);
    transform-origin:left center;
}


/* ------------------------------------------------------------------------
   STUDIO — creative art-direction
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-studio
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    width:42%;
    height:22%;
    left:-9%;
    top:11%;
    background:var(--bf-accent-2);
    opacity:.08;
    transform:rotate(-7deg);
}

.bf-composition-engine-v1.bf-master-studio
.bf-comp-title-block h1{
    letter-spacing:-.05em;
}

.bf-composition-engine-v1.bf-master-studio
.bf-comp-media{
    border-radius:2px;
}


/* ------------------------------------------------------------------------
   CORE — structured enterprise technology
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1.bf-master-core
.bf-adaptive-decor > .bf-decor-before{
    content:"";
    position:absolute;
    left:4%;
    right:4%;
    top:88px;
    height:1px;
    background:var(--bf-line);
    opacity:.8;
}

.bf-composition-engine-v1.bf-master-core
.bf-adaptive-decor > .bf-decor-after{
    content:"";
    position:absolute;
    top:88px;
    right:4%;
    width:72px;
    height:4px;
    background:var(--bf-accent);
}

.bf-composition-engine-v1.bf-master-core
.bf-comp-media{
    border-radius:6px;
}


/* ========================================================================
   PRINT SAFETY
   ======================================================================== */

@media print{

    .bf-composition-engine-v1
    .bf-adaptive-decor > .bf-decor-before,

    .bf-composition-engine-v1
    .bf-adaptive-decor > .bf-decor-after{
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }
}


/* ========================================================================
   BF_MASTER_VISUAL_IDENTITY_V1_END
   ======================================================================== */


/* ========================================================================
   BF_SEMANTIC_BACKGROUND_ENGINE_V1_BEGIN

   Remove the universal top-right bubble from generated templates.
   Background identity now comes from master semantic DNA:
   background + shape + depth.
   ======================================================================== */


/* ------------------------------------------------------------------------
   REMOVE THE SHARED BUBBLE
   ------------------------------------------------------------------------ */

/*
 * Universal bubble is neutralized in the base rule.
 * Master-specific ::before artwork remains available.
 */


/* ------------------------------------------------------------------------
   SEMANTIC ART CANVAS
   ------------------------------------------------------------------------ */

.bf-composition-engine-v1
.bf-adaptive-decor{
    --bf-bg-art:none;
    --bf-shape-art:none;

    background-image:
        var(--bf-bg-art),
        var(--bf-shape-art);

    background-repeat:no-repeat;
    background-position:center;
    background-size:100% 100%;
}


/* ========================================================================
   BACKGROUND FAMILIES
   ======================================================================== */


/* Ivory editorial */

.bf-composition-engine-v1.bf-bg-ivory{
    --bf-bg-art:
        radial-gradient(
            ellipse at 8% 8%,
            color-mix(
                in srgb,
                var(--bf-accent) 9%,
                transparent
            ),
            transparent 42%
        );
}


/* Dark technology */

.bf-composition-engine-v1.bf-bg-dark{
    --bf-bg-art:
        radial-gradient(
            circle at 86% 12%,
            color-mix(
                in srgb,
                var(--bf-accent) 18%,
                transparent
            ),
            transparent 32%
        ),
        radial-gradient(
            circle at 12% 88%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 12%,
                transparent
            ),
            transparent 36%
        );
}


/* Pure white / Swiss */

.bf-composition-engine-v1.bf-bg-white{
    --bf-bg-art:
        linear-gradient(
            90deg,
            transparent 7%,
            color-mix(
                in srgb,
                var(--bf-line) 42%,
                transparent
            ) 7.08%,
            transparent 7.16%
        );
}


/* General light */

.bf-composition-engine-v1.bf-bg-light{
    --bf-bg-art:
        radial-gradient(
            ellipse at 92% 86%,
            color-mix(
                in srgb,
                var(--bf-accent) 7%,
                transparent
            ),
            transparent 42%
        );
}


/* Technical light gray */

.bf-composition-engine-v1.bf-bg-light_gray{
    --bf-bg-art:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            color-mix(
                in srgb,
                var(--bf-line) 28%,
                transparent
            ) 32px
        );
}


/* Black luxury */

.bf-composition-engine-v1.bf-bg-black{
    --bf-bg-art:
        radial-gradient(
            ellipse at 50% -8%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 18%,
                transparent
            ),
            transparent 48%
        );
}


/* Natural */

.bf-composition-engine-v1.bf-bg-natural{
    --bf-bg-art:
        radial-gradient(
            ellipse at 88% 18%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 10%,
                transparent
            ),
            transparent 36%
        ),
        radial-gradient(
            ellipse at 6% 78%,
            color-mix(
                in srgb,
                var(--bf-accent) 7%,
                transparent
            ),
            transparent 34%
        );
}


/* Off-black brutalist */

.bf-composition-engine-v1.bf-bg-off_black{
    --bf-bg-art:
        linear-gradient(
            118deg,
            transparent 0 64%,
            color-mix(
                in srgb,
                var(--bf-accent) 7%,
                transparent
            ) 64% 76%,
            transparent 76%
        );
}


/* Spatial light / dark mix */

.bf-composition-engine-v1.bf-bg-light_dark_mix{
    --bf-bg-art:
        radial-gradient(
            circle at 84% 24%,
            transparent 0 86px,
            color-mix(
                in srgb,
                var(--bf-accent) 22%,
                transparent
            ) 87px 89px,
            transparent 90px
        ),
        radial-gradient(
            circle at 84% 24%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 5%,
                transparent
            ),
            transparent 210px
        );
}


/* Glass / gradient */

.bf-composition-engine-v1.bf-bg-gradient{
    --bf-bg-art:
        radial-gradient(
            circle at 90% 10%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 15%,
                transparent
            ),
            transparent 32%
        ),
        radial-gradient(
            circle at 8% 72%,
            color-mix(
                in srgb,
                var(--bf-accent) 11%,
                transparent
            ),
            transparent 34%
        );
}


/* Blueprint */

.bf-composition-engine-v1.bf-bg-blueprint_dark{
    --bf-bg-art:
        repeating-linear-gradient(
            0deg,
            transparent 0 27px,
            color-mix(
                in srgb,
                var(--bf-line) 28%,
                transparent
            ) 28px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 27px,
            color-mix(
                in srgb,
                var(--bf-line) 28%,
                transparent
            ) 28px
        );
}


/* Light gradient */

.bf-composition-engine-v1.bf-bg-light_gradient{
    --bf-bg-art:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--bf-accent) 5%,
                transparent
            ),
            transparent 44%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 7%,
                transparent
            )
        );
}


/* Industrial dark gray */

.bf-composition-engine-v1.bf-bg-dark_gray{
    --bf-bg-art:
        repeating-linear-gradient(
            135deg,
            transparent 0 38px,
            color-mix(
                in srgb,
                var(--bf-accent) 6%,
                transparent
            ) 39px 41px
        );
}


/* Warm light */

.bf-composition-engine-v1.bf-bg-warm_light{
    --bf-bg-art:
        radial-gradient(
            ellipse at 4% 12%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 8%,
                transparent
            ),
            transparent 33%
        ),
        radial-gradient(
            ellipse at 95% 82%,
            color-mix(
                in srgb,
                var(--bf-accent) 6%,
                transparent
            ),
            transparent 34%
        );
}


/* Executive warm white */

.bf-composition-engine-v1.bf-bg-warm_white{
    --bf-bg-art:
        linear-gradient(
            180deg,
            color-mix(
                in srgb,
                var(--bf-accent) 5%,
                transparent
            ) 0,
            transparent 120px
        );
}


/* Printed paper */

.bf-composition-engine-v1.bf-bg-paper{
    --bf-bg-art:
        repeating-linear-gradient(
            0deg,
            transparent 0 24px,
            color-mix(
                in srgb,
                var(--bf-line) 20%,
                transparent
            ) 25px
        );
}


/* Ultra-dark premium */

.bf-composition-engine-v1.bf-bg-near_black{
    --bf-bg-art:
        radial-gradient(
            ellipse at 70% 12%,
            color-mix(
                in srgb,
                var(--bf-accent) 12%,
                transparent
            ),
            transparent 38%
        );
}


/* ========================================================================
   SHAPE / GEOMETRY FAMILIES
   Second independent background layer.
   ======================================================================== */


/* refined */

.bf-composition-engine-v1.bf-shape-refined{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 8%,
            color-mix(
                in srgb,
                var(--bf-accent) 13%,
                transparent
            ) 8% 8.25%,
            transparent 8.25%
        );
}


/* angular */

.bf-composition-engine-v1.bf-shape-angular{
    --bf-shape-art:
        linear-gradient(
            135deg,
            transparent 0 72%,
            color-mix(
                in srgb,
                var(--bf-accent) 8%,
                transparent
            ) 72% 84%,
            transparent 84%
        );
}


/* grid */

.bf-composition-engine-v1.bf-shape-grid{
    --bf-shape-art:
        repeating-linear-gradient(
            90deg,
            transparent 0 79px,
            color-mix(
                in srgb,
                var(--bf-line) 17%,
                transparent
            ) 80px
        );
}


/* rounded */

.bf-composition-engine-v1.bf-shape-rounded{
    --bf-shape-art:
        radial-gradient(
            ellipse at 100% 0,
            color-mix(
                in srgb,
                var(--bf-accent) 8%,
                transparent
            ),
            transparent 30%
        );
}


/* hard panel */

.bf-composition-engine-v1.bf-shape-hard_panel{
    --bf-shape-art:
        linear-gradient(
            90deg,
            color-mix(
                in srgb,
                var(--bf-accent) 6%,
                transparent
            ) 0 4%,
            transparent 4% 100%
        );
}


/* soft */

.bf-composition-engine-v1.bf-shape-soft{
    --bf-shape-art:
        radial-gradient(
            ellipse at 20% 92%,
            color-mix(
                in srgb,
                var(--bf-accent) 6%,
                transparent
            ),
            transparent 30%
        );
}


/* minimal */

.bf-composition-engine-v1.bf-shape-minimal{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 48%,
            color-mix(
                in srgb,
                var(--bf-line) 12%,
                transparent
            ) 48% 48.1%,
            transparent 48.1%
        );
}


/* organic */

.bf-composition-engine-v1.bf-shape-organic{
    --bf-shape-art:
        radial-gradient(
            ellipse at 92% 34%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 7%,
                transparent
            ),
            transparent 31%
        );
}


/* block */

.bf-composition-engine-v1.bf-shape-block{
    --bf-shape-art:
        linear-gradient(
            180deg,
            transparent 0 73%,
            color-mix(
                in srgb,
                var(--bf-accent) 5%,
                transparent
            ) 73% 82%,
            transparent 82%
        );
}


/* circular */

.bf-composition-engine-v1.bf-shape-circular{
    --bf-shape-art:
        radial-gradient(
            circle at 80% 27%,
            transparent 0 118px,
            color-mix(
                in srgb,
                var(--bf-accent) 17%,
                transparent
            ) 119px 121px,
            transparent 122px
        );
}


/* glass */

.bf-composition-engine-v1.bf-shape-glass_panel{
    --bf-shape-art:
        linear-gradient(
            115deg,
            transparent 0 56%,
            color-mix(
                in srgb,
                var(--bf-accent-2) 6%,
                transparent
            ) 56% 82%,
            transparent 82%
        );
}


/* technical */

.bf-composition-engine-v1.bf-shape-technical{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 49.9%,
            color-mix(
                in srgb,
                var(--bf-line) 22%,
                transparent
            ) 50%,
            transparent 50.1%
        );
}


/* line */

.bf-composition-engine-v1.bf-shape-line{
    --bf-shape-art:
        linear-gradient(
            180deg,
            transparent 17%,
            color-mix(
                in srgb,
                var(--bf-accent) 16%,
                transparent
            ) 17.1% 17.3%,
            transparent 17.4%
        );
}


/* curve */

.bf-composition-engine-v1.bf-shape-curve{
    --bf-shape-art:
        radial-gradient(
            ellipse at 106% 55%,
            transparent 0 190px,
            color-mix(
                in srgb,
                var(--bf-accent) 13%,
                transparent
            ) 191px 194px,
            transparent 195px
        );
}


/* frame */

.bf-composition-engine-v1.bf-shape-frame{
    --bf-shape-art:
        linear-gradient(
            var(--bf-line),
            var(--bf-line)
        ) 5% 5% / 90% 1px no-repeat,
        linear-gradient(
            var(--bf-line),
            var(--bf-line)
        ) 5% 95% / 90% 1px no-repeat;
}


/* editorial */

.bf-composition-engine-v1.bf-shape-editorial{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 0 68%,
            color-mix(
                in srgb,
                var(--bf-accent) 5%,
                transparent
            ) 68% 72%,
            transparent 72%
        );
}


/* data */

.bf-composition-engine-v1.bf-shape-data{
    --bf-shape-art:
        repeating-linear-gradient(
            0deg,
            transparent 0 35px,
            color-mix(
                in srgb,
                var(--bf-line) 18%,
                transparent
            ) 36px
        );
}


/* pill */

.bf-composition-engine-v1.bf-shape-pill{
    --bf-shape-art:
        radial-gradient(
            ellipse at 88% 18%,
            color-mix(
                in srgb,
                var(--bf-accent) 7%,
                transparent
            ) 0 22%,
            transparent 22.5%
        );
}


/* circle + square */

.bf-composition-engine-v1.bf-shape-circle_square{
    --bf-shape-art:
        radial-gradient(
            circle at 12% 82%,
            transparent 0 62px,
            color-mix(
                in srgb,
                var(--bf-accent-2) 14%,
                transparent
            ) 63px 65px,
            transparent 66px
        );
}


/* sharp */

.bf-composition-engine-v1.bf-shape-sharp{
    --bf-shape-art:
        linear-gradient(
            122deg,
            transparent 0 78%,
            color-mix(
                in srgb,
                var(--bf-accent) 8%,
                transparent
            ) 78% 79%,
            transparent 79%
        );
}


/* modular */

.bf-composition-engine-v1.bf-shape-modular{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 0 14%,
            color-mix(
                in srgb,
                var(--bf-accent) 4%,
                transparent
            ) 14% 28%,
            transparent 28% 100%
        );
}


/* wave */

.bf-composition-engine-v1.bf-shape-wave{
    --bf-shape-art:
        radial-gradient(
            ellipse at 110% 45%,
            transparent 0 180px,
            color-mix(
                in srgb,
                var(--bf-accent-2) 11%,
                transparent
            ) 181px 185px,
            transparent 186px
        );
}


/* dimension */

.bf-composition-engine-v1.bf-shape-dimension{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 13%,
            color-mix(
                in srgb,
                var(--bf-line) 25%,
                transparent
            ) 13.1% 13.2%,
            transparent 13.3%
        );
}


/* bold block */

.bf-composition-engine-v1.bf-shape-bold_block{
    --bf-shape-art:
        linear-gradient(
            180deg,
            transparent 0 9%,
            color-mix(
                in srgb,
                var(--bf-accent) 7%,
                transparent
            ) 9% 16%,
            transparent 16%
        );
}


/* cell */

.bf-composition-engine-v1.bf-shape-cell{
    --bf-shape-art:
        repeating-linear-gradient(
            90deg,
            transparent 0 63px,
            color-mix(
                in srgb,
                var(--bf-line) 16%,
                transparent
            ) 64px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 63px,
            color-mix(
                in srgb,
                var(--bf-line) 16%,
                transparent
            ) 64px
        );
}


/* annotation */

.bf-composition-engine-v1.bf-shape-annotation{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 82%,
            color-mix(
                in srgb,
                var(--bf-accent) 11%,
                transparent
            ) 82% 82.2%,
            transparent 82.2%
        );
}


/* outline */

.bf-composition-engine-v1.bf-shape-outline{
    --bf-shape-art:
        linear-gradient(
            var(--bf-line),
            var(--bf-line)
        ) 7% 7% / 86% 1px no-repeat;
}


/* diagonal */

.bf-composition-engine-v1.bf-shape-diagonal{
    --bf-shape-art:
        linear-gradient(
            132deg,
            transparent 0 61%,
            color-mix(
                in srgb,
                var(--bf-accent) 7%,
                transparent
            ) 61% 69%,
            transparent 69%
        );
}


/* experimental */

.bf-composition-engine-v1.bf-shape-experimental{
    --bf-shape-art:
        linear-gradient(
            103deg,
            color-mix(
                in srgb,
                var(--bf-accent-2) 6%,
                transparent
            ) 0 17%,
            transparent 17% 100%
        );
}


/* print */

.bf-composition-engine-v1.bf-shape-print{
    --bf-shape-art:
        repeating-linear-gradient(
            0deg,
            transparent 0 47px,
            color-mix(
                in srgb,
                var(--bf-line) 17%,
                transparent
            ) 48px
        );
}


/* structured */

.bf-composition-engine-v1.bf-shape-structured{
    --bf-shape-art:
        linear-gradient(
            90deg,
            transparent 0 74%,
            color-mix(
                in srgb,
                var(--bf-accent) 5%,
                transparent
            ) 74% 75%,
            transparent 75%
        );
}


/* ========================================================================
   PRINT
   ======================================================================== */

@media print{

    .bf-composition-engine-v1
    .bf-adaptive-decor{
        -webkit-print-color-adjust:exact;
        print-color-adjust:exact;
    }
}


/* ========================================================================
   BF_SEMANTIC_BACKGROUND_ENGINE_V1_END
   ======================================================================== */


/* ============================================================
   BF_REAL_TEMPLATE_SLOTS_V1
   Real multi-image compositions + hidden editor slot metadata
   ============================================================ */

.bf-slot-guide{
    display:none;
}

.bf-slot-placeholder{
    display:none;
}

.bf-slot-preview-only{
    display:none;
}


/* ------------------------------------------------------------
   Real media slot engine
   ------------------------------------------------------------ */

.bf-multi-media-grid{
    display:grid;
    width:100%;
    height:100%;
    min-width:0;
    gap:10px;
}

.bf-media-count-1{
    grid-template-columns:minmax(0,1fr);
}

.bf-media-count-2{
    grid-template-columns:
        repeat(2,minmax(0,1fr));
}

.bf-media-count-3{
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}

.bf-media-count-4,
.bf-media-count-5,
.bf-media-count-6,
.bf-media-count-7,
.bf-media-count-8{
    grid-template-columns:
        repeat(2,minmax(0,1fr));
}


.bf-media-slot{
    position:relative;
    width:100%;
    height:100%;
    min-width:0;
    min-height:110px;
    margin:0;
    overflow:hidden;
}

.bf-media-slot > img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}


/*
 * Empty required image positions remain structurally present
 * without printing placeholder text.
 */
.bf-media-slot-empty-visual{
    width:100%;
    height:100%;
    min-height:110px;
}


/* ------------------------------------------------------------
   Composition-specific multi-image architecture
   ------------------------------------------------------------ */

/* Editorial Asymmetric = 2 visual fields */
.bf-composition-editorial_asymmetric
.bf-media-count-2{
    grid-template-columns:1fr;
    grid-template-rows:
        repeat(2,minmax(120px,1fr));
}


/* Modular Grid = 2 independent image modules */
.bf-composition-modular_grid
.bf-media-count-2{
    grid-template-columns:
        repeat(2,minmax(0,1fr));
}


/* Catalog Cards = 3 image/card positions */
.bf-composition-catalog_cards
.bf-media-count-3{
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}


/* Process Timeline = 2 supporting visuals */
.bf-composition-process_timeline
.bf-media-count-2{
    grid-template-columns:
        repeat(2,minmax(0,1fr));
}


/*
 * Image Collage = real 4-image collage:
 * large lead image + three supporting images.
 */
.bf-composition-image_collage
.bf-media-count-4{
    grid-template-columns:
        minmax(0,1.45fr)
        minmax(0,1fr);

    grid-template-rows:
        repeat(3,minmax(90px,1fr));
}

.bf-composition-image_collage
.bf-media-count-4
.bf-media-slot:nth-child(1){
    grid-row:1 / 4;
}

.bf-composition-image_collage
.bf-media-count-4
.bf-media-slot:nth-child(2){
    grid-column:2;
    grid-row:1;
}

.bf-composition-image_collage
.bf-media-count-4
.bf-media-slot:nth-child(3){
    grid-column:2;
    grid-row:2;
}

.bf-composition-image_collage
.bf-media-count-4
.bf-media-slot:nth-child(4){
    grid-column:2;
    grid-row:3;
}


/*
 * If a composition grows beyond four images,
 * keep it as a compact visual grid.
 */
.bf-composition-image_collage
.bf-media-count-5,
.bf-composition-image_collage
.bf-media-count-6,
.bf-composition-image_collage
.bf-media-count-7,
.bf-composition-image_collage
.bf-media-count-8{
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}


/* Table wrapper should not alter normal renderer geometry. */
.bf-table-slot-render{
    position:relative;
}




/* ============================================================
   BF_PROJECT_CONTENT_RENDER_BINDING_V1
   ============================================================ */

.bf-slot-content-heading{
    margin:0 0 6px;
    font-weight:700;
    line-height:1.25;
}

.bf-slot-content-body > p:first-child{
    margin-top:0;
}

.bf-slot-content-body > p:last-child{
    margin-bottom:0;
}

.bf-extra-description-slot{
    margin-top:10px;
}

.bf-bound-text-slot{
    position:relative;
}

.bf-bound-table-section{
    margin-top:0;
}




/* ============================================================
   BF_MOUSE_TRANSFORM_RENDERER_V1
   ============================================================ */

/*
 * Geometry-enabled slots must remain measurable.
 * Editing UI itself lives only in editor.php.
 */
[data-bf-slot]{
    box-sizing:border-box;
}




/* ============================================================
   BF_HOMEPAGE_SHOWCASE_CSS_V2
   ============================================================ */

.home-template-heading{align-items:flex-end}
.home-template-heading>div{max-width:780px}
.home-template-heading p{margin:12px 0 0;max-width:730px;color:var(--muted);font-size:16px;line-height:1.7}

.home-template-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px;
    margin-top:32px;
}

.home-template-card{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 30px rgba(30,58,78,.07);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.home-template-card:hover{
    transform:translateY(-5px);
    border-color:#c9d8e2;
    box-shadow:0 22px 48px rgba(30,58,78,.14);
}

.home-template-thumb{
    position:relative;
    aspect-ratio:5/7;
    overflow:hidden;
    background:#e9eef2;
}

.home-template-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .35s ease;
}

.home-template-card:hover .home-template-thumb img{transform:scale(1.025)}

.home-template-style{
    position:absolute;
    left:12px;
    bottom:12px;
    z-index:2;
    padding:6px 9px;
    border:1px solid rgba(255,255,255,.45);
    border-radius:999px;
    background:rgba(9,19,28,.74);
    color:#fff;
    font-size:9px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    backdrop-filter:blur(8px);
}

.home-template-copy{padding:15px 16px 17px}
.home-template-copy strong{display:block;color:var(--ink);font-size:15px;line-height:1.3}
.home-template-copy>span{display:block;margin-top:4px;color:var(--blue);font-size:11px;font-weight:800}
.home-template-copy p{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.55}

.home-hero-preview{
    background-image:url('/assets/home-templates/colorful-tech-collection.webp');
    background-size:cover;
    background-position:center 18%;
    background-repeat:no-repeat;
}

@media(max-width:1000px){
    .home-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:560px){
    .home-template-heading{align-items:flex-start}
    .home-template-grid{grid-template-columns:1fr;gap:18px}
    .home-template-thumb{aspect-ratio:5/6}
}



/* ============================================================
   BF_AUTOMATED_CATALOG_HERO_CSS_V1
   Existing right-side hero only.
   No extra hero / buttons / sign-in elements.
   ============================================================ */

.bf-auto-catalog-demo.hero-card{
    position:relative;

    min-height:650px;

    padding:24px;

    overflow:hidden;

    border-radius:28px;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(72,157,221,.17),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #f4f9fc 0%,
            #e6f0f7 100%
        );

    box-shadow:
        0 28px 70px
        rgba(26,62,87,.11);
}


.bf-auto-scene{
    position:relative;

    width:100%;
    height:100%;
    min-height:600px;
}


/* ============================================================
   SOURCES
   ============================================================ */

.bf-auto-source-row{
    position:relative;
    z-index:8;

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:8px;
}


.bf-auto-source{
    min-width:0;

    padding:10px 6px 9px;

    border:
        1px solid
        rgba(164,187,203,.43);

    border-radius:12px;

    background:
        rgba(255,255,255,.96);

    text-align:center;

    box-shadow:
        0 8px 22px
        rgba(34,68,91,.07);

    animation:
        bfAutoSourceFloat
        5s
        ease-in-out
        infinite;
}


.bf-auto-source:nth-child(2){
    animation-delay:.3s;
}

.bf-auto-source:nth-child(3){
    animation-delay:.6s;
}

.bf-auto-source:nth-child(4){
    animation-delay:.9s;
}


.bf-auto-source-icon{
    display:flex;

    align-items:center;
    justify-content:center;

    width:31px;
    height:31px;

    margin:0 auto 6px;

    border-radius:8px;

    background:#2f89dc;

    color:#fff;

    font-size:11px;
    font-weight:900;

    box-shadow:
        0 5px 12px
        rgba(32,119,199,.18);
}


.bf-auto-store-icon{
    background:#38a76b;
}


.bf-auto-sheet-icon{
    background:#207748;

    font-size:7px;
}


.bf-auto-api-icon{
    background:#6254bd;

    font-size:9px;
}


.bf-auto-source strong{
    display:block;

    color:#142b3e;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;

    font-size:9px;
    line-height:1.2;
}


.bf-auto-source span{
    display:block;

    margin-top:3px;

    color:#84939e;

    font-size:6px;
    line-height:1.25;
}


/* ============================================================
   CUSTOMER PROBLEM
   ============================================================ */

.bf-auto-quote{
    position:absolute;

    z-index:10;

    top:105px;
    left:3px;

    display:flex;

    align-items:center;

    gap:8px;

    width:62%;

    padding:9px 11px;

    border:
        1px solid
        rgba(48,134,213,.35);

    border-radius:
        15px 15px 15px 5px;

    background:
        rgba(255,255,255,.97);

    box-shadow:
        0 10px 28px
        rgba(30,83,122,.10);

    animation:
        bfAutoQuote
        5.5s
        ease-in-out
        infinite;
}


.bf-auto-avatar{
    position:relative;

    flex:0 0 27px;

    width:27px;
    height:27px;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #b9ddf7,
            #eaf6ff
        );
}


.bf-auto-avatar:before{
    content:"";

    position:absolute;

    top:5px;
    left:9px;

    width:9px;
    height:9px;

    border-radius:50%;

    background:#2e89d8;
}


.bf-auto-avatar i{
    position:absolute;

    bottom:4px;
    left:6px;

    width:15px;
    height:8px;

    border-radius:
        9px 9px 5px 5px;

    background:#2e89d8;
}


.bf-auto-quote strong{
    display:block;

    color:#173048;

    font-size:8px;
    line-height:1.25;
}


.bf-auto-quote div > span{
    display:block;

    margin-top:2px;

    color:#597389;

    font-size:7px;
    line-height:1.35;
}


/* ============================================================
   FLOW
   ============================================================ */

.bf-auto-flow-zone{
    position:relative;

    height:210px;

    margin-top:0;
}


.bf-auto-flow-lines{
    position:absolute;

    z-index:1;

    top:0;
    left:0;

    width:100%;
    height:155px;

    overflow:visible;
}


.bf-auto-flow-lines path{
    fill:none;

    stroke:#4796dc;

    stroke-width:1.7;

    stroke-dasharray:4 5;

    opacity:.75;

    animation:
        bfAutoLineMove
        9s
        linear
        infinite;
}


.bf-auto-builder{
    position:absolute;

    z-index:6;

    left:50%;
    top:110px;

    width:125px;

    min-height:88px;

    transform:
        translateX(-50%);

    display:flex;

    flex-direction:column;

    align-items:center;
    justify-content:center;

    padding:11px;

    border:
        1px solid
        #57a4ea;

    border-radius:14px;

    background:
        rgba(255,255,255,.97);

    text-align:center;

    box-shadow:
        0 14px 35px
        rgba(29,107,177,.15);

    animation:
        bfAutoBuilderPulse
        3s
        ease-in-out
        infinite;
}


.bf-auto-spark{
    margin-bottom:4px;

    color:#277ed0;

    font-size:20px;

    line-height:1;
}


.bf-auto-builder strong{
    color:#112b42;

    font-size:11px;
    line-height:1.05;
}


.bf-auto-builder span{
    margin-top:5px;

    color:#708494;

    font-size:6px;

    letter-spacing:.02em;
}


/* ============================================================
   DATA PARTICLES
   ============================================================ */

.bf-auto-particle{
    position:absolute;

    z-index:4;

    top:24px;

    width:7px;
    height:7px;

    border-radius:50%;

    background:#2c87d8;

    box-shadow:
        0 0 0 5px
        rgba(44,135,216,.09);

    opacity:0;

    animation:
        bfAutoParticle
        3.8s
        ease-in
        infinite;
}


.bf-auto-p1{
    left:10%;
}


.bf-auto-p2{
    left:36%;

    animation-delay:.7s;
}


.bf-auto-p3{
    right:36%;

    animation-delay:1.4s;
}


.bf-auto-p4{
    right:10%;

    animation-delay:2.1s;
}


/* ============================================================
   PROGRESS
   ============================================================ */

.bf-auto-progress{
    position:absolute;

    z-index:9;

    top:280px;
    left:4px;

    width:122px;
}


.bf-auto-step{
    display:grid;

    grid-template-columns:
        20px minmax(0,1fr);

    gap:6px;

    align-items:center;
}


.bf-auto-step > span{
    display:flex;

    align-items:center;
    justify-content:center;

    width:20px;
    height:20px;

    border-radius:50%;

    background:#2e87d8;

    color:#fff;

    font-size:10px;
    font-weight:900;

    box-shadow:
        0 0 0 4px
        rgba(46,135,216,.08);
}


.bf-auto-step strong{
    color:#263b4e;

    font-size:7px;
    line-height:1.2;
}


.bf-auto-progress-line{
    position:relative;

    width:2px;
    height:25px;

    margin-left:9px;

    background:#cbdce9;

    overflow:hidden;
}


.bf-auto-progress-line i{
    position:absolute;

    top:-100%;
    left:0;

    width:100%;
    height:100%;

    background:#2e87d8;

    animation:
        bfAutoProgressLine
        2.8s
        ease-in-out
        infinite;
}


/* ============================================================
   CATALOG RESULT
   ============================================================ */

.bf-auto-result{
    position:absolute;

    z-index:5;

    left:0;
    right:0;

    bottom:0;

    height:285px;
}


.bf-auto-ready{
    position:absolute;

    z-index:12;

    left:6px;
    bottom:10px;

    display:flex;

    align-items:center;

    gap:7px;

    padding:7px 10px;

    border:
        1px solid
        rgba(41,159,101,.2);

    border-radius:999px;

    background:
        rgba(255,255,255,.96);

    box-shadow:
        0 9px 24px
        rgba(30,76,101,.10);

    animation:
        bfAutoReady
        4.6s
        ease-in-out
        infinite;
}


.bf-auto-ready-check{
    display:flex;

    align-items:center;
    justify-content:center;

    width:22px;
    height:22px;

    border-radius:50%;

    background:#27a566;

    color:#fff;

    font-size:11px;
    font-weight:900;
}


.bf-auto-ready strong{
    display:block;

    color:#163149;

    font-size:8px;
}


.bf-auto-ready div span{
    display:block;

    margin-top:1px;

    color:#81919e;

    font-size:6px;
}


.bf-auto-catalog-stack{
    position:absolute;

    right:-8px;
    bottom:-8px;

    width:82%;
    height:280px;
}


.bf-auto-catalog{
    position:absolute;

    overflow:hidden;

    width:157px;

    border-radius:6px;

    background:#fff;

    box-shadow:
        0 17px 36px
        rgba(13,42,65,.22);

    transform-origin:
        center bottom;
}


.bf-auto-catalog img{
    display:block;

    width:100%;
    height:auto;
}


.bf-auto-catalog-left{
    left:0;
    bottom:6px;

    z-index:2;

    transform:
        rotate(-11deg);

    animation:
        bfAutoCatalogLeft
        5s
        ease-in-out
        infinite;
}


.bf-auto-catalog-right{
    right:0;
    bottom:9px;

    z-index:3;

    transform:
        rotate(9deg);

    animation:
        bfAutoCatalogRight
        5s
        ease-in-out
        infinite;
}


.bf-auto-catalog-main{
    left:50%;
    bottom:0;

    z-index:5;

    width:177px;

    transform:
        translateX(-50%)
        rotate(-1deg);

    box-shadow:
        0 21px 46px
        rgba(11,40,64,.28);

    animation:
        bfAutoCatalogMain
        5s
        ease-in-out
        infinite;
}


/* ============================================================
   MOTION
   ============================================================ */

@keyframes bfAutoSourceFloat{

    0%,
    100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-3px);
    }
}


@keyframes bfAutoQuote{

    0%,
    100%{
        transform:translateX(0);
    }

    50%{
        transform:translateX(3px);
    }
}


@keyframes bfAutoLineMove{

    to{
        stroke-dashoffset:-80;
    }
}


@keyframes bfAutoParticle{

    0%{
        top:18px;
        opacity:0;
    }

    12%{
        opacity:1;
    }

    75%{
        opacity:1;
    }

    100%{
        top:145px;
        left:50%;
        opacity:0;
    }
}


@keyframes bfAutoBuilderPulse{

    0%,
    100%{
        box-shadow:
            0 14px 35px
            rgba(29,107,177,.15);
    }

    50%{
        box-shadow:
            0 14px 35px
            rgba(29,107,177,.22),
            0 0 0 7px
            rgba(76,159,229,.05);
    }
}


@keyframes bfAutoProgressLine{

    0%{
        top:-100%;
    }

    55%,
    100%{
        top:100%;
    }
}


@keyframes bfAutoCatalogMain{

    0%,
    100%{
        transform:
            translateX(-50%)
            translateY(0)
            rotate(-1deg);
    }

    50%{
        transform:
            translateX(-50%)
            translateY(-7px)
            rotate(0deg);
    }
}


@keyframes bfAutoCatalogLeft{

    0%,
    100%{
        transform:
            translateY(0)
            rotate(-11deg);
    }

    50%{
        transform:
            translateY(-4px)
            rotate(-12deg);
    }
}


@keyframes bfAutoCatalogRight{

    0%,
    100%{
        transform:
            translateY(0)
            rotate(9deg);
    }

    50%{
        transform:
            translateY(-3px)
            rotate(10deg);
    }
}


@keyframes bfAutoReady{

    0%,
    100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.035);
    }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:1100px){

    .bf-auto-catalog-demo.hero-card{
        min-height:620px;
    }

    .bf-auto-scene{
        min-height:570px;
    }
}


@media(max-width:900px){

    .bf-auto-catalog-demo.hero-card{
        width:min(100%,620px);

        min-height:650px;
    }

    .bf-auto-scene{
        min-height:600px;
    }
}


@media(max-width:560px){

    .bf-auto-catalog-demo.hero-card{
        min-height:560px;

        padding:15px;
    }

    .bf-auto-scene{
        min-height:530px;
    }

    .bf-auto-source-row{
        gap:5px;
    }

    .bf-auto-source{
        padding:7px 3px;
    }

    .bf-auto-source-icon{
        width:25px;
        height:25px;
    }

    .bf-auto-source strong{
        font-size:7px;
    }

    .bf-auto-source span{
        display:none;
    }

    .bf-auto-quote{
        top:83px;

        width:75%;
    }

    .bf-auto-flow-zone{
        height:185px;
    }

    .bf-auto-builder{
        top:94px;

        width:115px;
    }

    .bf-auto-progress{
        top:245px;

        width:110px;
    }

    .bf-auto-result{
        height:260px;
    }

    .bf-auto-catalog-stack{
        width:80%;
        height:245px;
    }

    .bf-auto-catalog{
        width:126px;
    }

    .bf-auto-catalog-main{
        width:145px;
    }
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media(prefers-reduced-motion:reduce){

    .bf-auto-source,
    .bf-auto-quote,
    .bf-auto-flow-lines path,
    .bf-auto-particle,
    .bf-auto-builder,
    .bf-auto-progress-line i,
    .bf-auto-ready,
    .bf-auto-catalog{
        animation:none !important;
    }
}


/* ============================================================
   BF_I18N22_UI_V1
   ============================================================ */

.bf-lang-switcher{position:relative;display:inline-flex;align-items:center;margin-left:4px;z-index:200}
.bf-lang-switcher summary{list-style:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:1px solid var(--line,#dce5ec);border-radius:10px;background:#fff;color:var(--ink,#10202e);font:700 12px/1 sans-serif;cursor:pointer;user-select:none}
.bf-lang-switcher summary::-webkit-details-marker{display:none}
.bf-lang-switcher[open] summary{border-color:#b8cbd9;box-shadow:0 6px 18px rgba(24,55,76,.08)}
.bf-lang-globe{font-size:14px}
.bf-lang-menu{position:absolute;top:calc(100% + 8px);right:0;width:240px;max-height:430px;overflow:auto;padding:7px;border:1px solid var(--line,#dce5ec);border-radius:14px;background:#fff;box-shadow:0 22px 55px rgba(23,48,66,.18)}
.bf-lang-option{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px!important;border-radius:9px;color:var(--ink,#10202e)!important;text-decoration:none!important;font-size:12px!important;font-weight:650!important;white-space:nowrap}
.bf-lang-option:hover{background:var(--soft,#f4f8fb)}
.bf-lang-option.active{background:#edf5fa;color:#175986!important}
.bf-lang-option small{color:#80909c;font-size:9px;font-weight:800;letter-spacing:.08em}
.auth-header .bf-lang-switcher{margin-left:auto;margin-right:8px}
.auth-header .bf-lang-menu{right:0}
html[dir="rtl"] body{direction:rtl}
html[dir="rtl"] .bf-lang-menu{right:auto;left:0}
html[dir="rtl"] .topbar nav{direction:rtl}
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .section-head,
html[dir="rtl"] .auth-box{text-align:right}
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .stats{direction:rtl}
@media(max-width:900px){
  .bf-lang-switcher{margin-left:auto}
  .bf-lang-menu{position:fixed;top:70px;left:16px;right:16px;width:auto;max-height:65vh}
}

/* BF_GLOBAL_UI_I18N_RUNTIME_V2 */
html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .topbar nav,
html[dir="rtl"] .app-sidebar,
html[dir="rtl"] .sidebar-nav,
html[dir="rtl"] .dashboard-top,
html[dir="rtl"] .dashboard-panel-head {
    direction: rtl;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: start;
}

/* BF_MOBILE_TOPBAR_V1 */
@media screen and (max-width:900px){
  .topbar{
    height:auto!important;
    min-height:74px;
    padding:12px 16px!important;
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
    gap:10px!important;
    overflow:visible!important;
    z-index:250;
  }
  .topbar > .brand{
    align-self:flex-start;
  }
  .topbar > nav{
    display:flex!important;
    visibility:visible!important;
    position:relative;
    width:100%;
    min-width:0;
    margin:0!important;
    gap:8px!important;
    flex-wrap:wrap!important;
    align-items:center;
    justify-content:flex-start!important;
  }
  .topbar > nav > a{
    display:inline-flex!important;
    min-height:40px;
    height:auto!important;
    padding:10px 12px;
    font-size:12px!important;
    line-height:1.3!important;
    white-space:normal!important;
    text-align:center;
    border-radius:10px;
  }
  .topbar > nav > a[href="/login.php"],
  .topbar > nav > a[href="/register.php"]{
    order:0;
    flex:1 1 90px;
    border:1px solid var(--line,#dce5ec);
  }
  .topbar > nav > a[href="/register.php"]{
    background:var(--blue,#155d8f);
    color:#fff;
    border-color:var(--blue,#155d8f);
  }
  .topbar > nav > .bf-lang-switcher{
    display:inline-flex!important;
    visibility:visible!important;
    order:0;
    flex:0 0 auto;
    margin:0!important;
  }
  .topbar > nav > .bf-lang-switcher summary{
    min-height:40px;
  }
  .topbar > nav > a[href="/index.php"],
  .topbar > nav > a[href="/index.php#pricing"]{
    order:1;
    flex:1 1 calc(50% - 8px);
    background:var(--soft,#f4f8fb);
  }
  .topbar .bf-lang-menu{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    inset-inline-start:auto!important;
    inset-inline-end:0!important;
    width:min(300px,calc(100vw - 32px))!important;
    max-height:60vh;
    overflow-y:auto;
    z-index:300;
  }
}

/* BF_HAMBURGER_HEADER_V2 */
.bf-mobile-header > .brand{order:0}
.bf-mobile-header > .bf-main-nav{order:1}
.bf-mobile-header > .bf-lang-switcher{order:2}
.bf-mobile-header > .bf-nav-toggle{display:none}

@media screen and (max-width:900px){
  .topbar.bf-mobile-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto;
    align-items:center!important;
    gap:10px!important;
    height:auto!important;
    min-height:68px;
    padding:12px 16px!important;
    overflow:visible!important;
    z-index:250;
  }
  .bf-mobile-header > .brand{
    grid-column:1;grid-row:1;
    align-self:center;
    font-size:clamp(15px,4vw,21px);
    min-width:0;
  }
  .bf-mobile-header > .bf-lang-switcher{
    display:inline-flex!important;
    grid-column:2;grid-row:1;
    margin:0!important;
  }
  .bf-mobile-header > .bf-nav-toggle{
    display:flex!important;
    grid-column:3;grid-row:1;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:42px;height:42px;
    padding:9px;
    border:1px solid var(--line,#dce5ec);
    border-radius:10px;
    background:#fff;
    color:var(--ink,#10202e);
    cursor:pointer;
  }
  .bf-nav-toggle span{
    display:block;
    width:20px;height:2px;
    background:currentColor;
  }
  .bf-nav-open .bf-nav-toggle span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .bf-nav-open .bf-nav-toggle span:nth-child(2){opacity:0}
  .bf-nav-open .bf-nav-toggle span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
  .topbar.bf-mobile-header > nav.bf-main-nav{
    display:none!important;
    grid-column:1 / -1;grid-row:2;
    width:100%;margin:0!important;
    padding-top:10px;
    border-top:1px solid var(--line,#dce5ec);
  }
  .topbar.bf-mobile-header.bf-nav-open > nav.bf-main-nav{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:6px!important;
  }
  .topbar.bf-mobile-header > nav.bf-main-nav > a{
    order:0!important;
    flex:0 0 auto!important;
    width:100%;min-height:44px;
    height:auto!important;
    padding:12px 14px!important;
    justify-content:flex-start!important;
    white-space:normal!important;
    text-align:start!important;
    font-size:14px!important;
    line-height:1.4!important;
  }
  .bf-mobile-header > .bf-lang-switcher .bf-lang-menu{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    inset-inline-start:auto!important;
    inset-inline-end:0!important;
    width:min(280px,calc(100vw - 80px))!important;
    max-height:60vh;
    overflow-y:auto;
  }
}

/* BF_CREATE_PROPORTIONAL_PREVIEW_V1 */


/* BF_PREMIUM_WORKSPACE_V1 DASHBOARD */
html body:has(.app-shell) {
  background:#eaf0f7;
}
html body .app-shell {
  background:#eaf0f7;
}
html body .app-shell .app-sidebar {
  background:
    radial-gradient(circle at 0 0,
      rgba(73,123,179,.24),transparent 43%),
    linear-gradient(170deg,
      #10243a 0%,#0d1f32 65%,#112940 100%)!important;
  border-right:1px solid rgba(153,189,222,.13)!important;
  box-shadow:inset -1px 0 0 rgba(255,255,255,.04);
}
html body .app-shell
.app-sidebar .sidebar-label {
  color:#8ea8c2!important;
}
html body .app-shell
.app-sidebar .sidebar-link:not(.active),
html body .app-shell
.app-sidebar .sidebar-brand {
  color:#d7e5f4!important;
}
html body .app-shell
.app-sidebar .sidebar-link.active {
  color:#fff!important;
  background:
    linear-gradient(110deg,#1a5485,#206eaa)!important;
  box-shadow:0 5px 12px rgba(4,18,35,.19)!important;
}
html body .app-shell .app-content {
  background:
    radial-gradient(ellipse at 94% 0,
      rgba(196,216,240,.53),transparent 34%),
    radial-gradient(ellipse at 18% 87%,
      rgba(227,235,251,.55),transparent 42%),
    linear-gradient(145deg,
      #f0f5fa 0%,#e9eff7 70%,#e6edf6 100%)!important;
  color:#1a2d43;
}
html body .app-shell .app-content
:is(.dashboard-panel,.dashboard-stat,.bf-document-tool-card) {
  background:
    linear-gradient(180deg,#fff 0%,#fcfdff 100%)!important;
  border-color:#d8e3f0!important;
  box-shadow:0 7px 23px rgba(24,51,80,.045)!important;
}
html body .app-shell .app-content
:is(.dashboard-panel,.dashboard-stat,.bf-document-tool-card):hover {
  box-shadow:0 10px 27px rgba(24,51,80,.075)!important;
}


/* BF_MOBILE_HAMBURGER_ORGANIZED_V1 */
@media screen and (max-width:900px) {

  /* Existing hamburger panel */
  html body > header.topbar.bf-mobile-header.bf-nav-open
  > nav.bf-main-nav {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:6px!important;

    height:auto!important;
    min-height:0!important;
    max-height:calc(100vh - 90px)!important;
    max-height:calc(100dvh - 90px)!important;

    padding:12px!important;
    margin:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;

    box-sizing:border-box!important;
    border:1px solid rgba(185,218,241,.28)!important;
    border-radius:16px!important;

    background:linear-gradient(
      145deg,#122438 0%,#193d59 100%
    )!important;

    box-shadow:0 18px 40px rgba(6,22,39,.24)!important;
    z-index:1200!important;
  }

  /* Uniform top-level entries */
  html body > header.bf-mobile-header
  > nav.bf-main-nav > a,
  html body > header.bf-mobile-header
  > nav.bf-main-nav > details > summary {
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;

    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    height:auto!important;
    padding:11px 13px!important;
    margin:0!important;

    box-sizing:border-box!important;
    border:1px solid rgba(194,223,243,.11)!important;
    border-radius:11px!important;
    background:rgba(255,255,255,.045)!important;

    color:#edf6fc!important;
    -webkit-text-fill-color:#edf6fc!important;
    font:600 14px/1.35 system-ui,sans-serif!important;
    text-align:start!important;
    text-decoration:none!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Document Tools dropdown is a separate group */
  html body > header.bf-mobile-header
  > nav.bf-main-nav > details {
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-sizing:border-box!important;
  }

  html body > header.bf-mobile-header
  > nav.bf-main-nav > details[open] {
    background:rgba(255,255,255,.045)!important;
    border-radius:12px!important;
    padding-bottom:5px!important;
  }

  html body > header.bf-mobile-header
  > nav.bf-main-nav > details[open] > summary {
    background:rgba(64,153,194,.20)!important;
    border-color:rgba(159,218,239,.24)!important;
  }

  /* Submenu links */
  html body > header.bf-mobile-header
  > nav.bf-main-nav details a {
    display:flex!important;
    align-items:center!important;
    gap:9px!important;

    width:100%!important;
    min-width:0!important;
    min-height:40px!important;

    padding:9px 12px!important;
    margin:2px 0!important;

    box-sizing:border-box!important;
    border-radius:9px!important;
    color:#daeaf7!important;
    -webkit-text-fill-color:#daeaf7!important;
    font:500 13px/1.4 system-ui,sans-serif!important;
    text-align:start!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  html body > header.bf-mobile-header
  > nav.bf-main-nav a:hover,
  html body > header.bf-mobile-header
  > nav.bf-main-nav details a:focus-visible {
    background:rgba(80,167,208,.19)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  html body > header.bf-mobile-header
  > nav.bf-main-nav a:focus-visible,
  html body > header.bf-mobile-header
  > nav.bf-main-nav summary:focus-visible {
    outline:2px solid #9ed6f0!important;
    outline-offset:2px!important;
  }
}

@media screen and (max-width:400px) {
  html body > header.topbar.bf-mobile-header.bf-nav-open
  > nav.bf-main-nav {
    padding:9px!important;
    gap:5px!important;
  }
}


/* BF_CREATE_LAYOUT_CLEAN_V7 */

header.topbar > .bf-global-create {
  display:block;
  position:relative;
  width:max-content;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
  margin:0;
  z-index:1200;
}

header.topbar > .bf-global-create > summary {
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-height:40px;
  padding:9px 14px;
  white-space:nowrap;
  cursor:pointer;
}

header.topbar .bf-create-long { display:inline; }
header.topbar .bf-create-short { display:none; }

header.topbar > .bf-global-create > .bf-global-create-panel {
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  left:auto;
  width:min(320px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
}

@media (min-width:901px) {
  html body > header.topbar:has(> .bf-global-create) {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:12px!important;
    height:auto!important;
    min-height:68px!important;
    padding:12px 20px!important;
  }

  html body > header.topbar > .brand {
    flex:0 0 auto!important;
    order:1!important;
  }

  html body > header.topbar > nav#bf-main-nav {
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    order:2!important;
  }

  html body > header.topbar > .bf-global-create {
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:block!important;
    flex:0 0 auto!important;
    width:max-content!important;
    max-width:max-content!important;
    order:3!important;
  }

  html body > header.topbar > .bf-global-create > summary {
    width:auto!important;
    min-width:145px!important;
  }

  html body > header.topbar > .bf-lang-switcher {
    flex:0 0 auto!important;
    order:4!important;
  }
}

@media (max-width:900px) {
  html body > header.topbar:has(> .bf-global-create) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-rows:auto auto!important;
    gap:8px!important;
    height:auto!important;
    min-height:0!important;
    padding:10px 12px!important;
    overflow:visible!important;
  }

  html body > header.topbar > .brand {
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
  }

  html body > header.topbar > .bf-lang-switcher {
    grid-column:2!important;
    grid-row:1!important;
  }

  html body > header.topbar > .bf-nav-toggle,
  html body > header.topbar > .bf-mobile-auth-actions {
    grid-column:3!important;
    grid-row:1!important;
  }

  html body > header.topbar > .bf-global-create {
    display:block!important;
    position:relative!important;
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:max-content!important;
    max-width:100%!important;
    inset:auto!important;
    transform:none!important;
    justify-self:start!important;
    margin:0!important;
  }

  html body > header.topbar > .bf-global-create > summary {
    width:auto!important;
    min-height:40px!important;
  }

  html body > header.topbar > nav#bf-main-nav {
    grid-column:1 / -1!important;
    grid-row:3!important;
  }

  html body > header.topbar > .bf-global-create
  > .bf-global-create-panel {
    left:0!important;
    right:auto!important;
  }
}


/* BF_GLOBAL_LEAF_OBJECT_FIX_V1 */
.bf-adaptive-brochure .bf-comp-media,
.bf-adaptive-brochure .bf-multi-media-grid,
.bf-adaptive-brochure .bf-media-slot,
.bf-adaptive-brochure .bf-comp-overview,
.bf-adaptive-brochure .bf-comp-module,
.bf-adaptive-brochure .bf-adaptive-hero,
.bf-adaptive-brochure .bf-adaptive-section {
    overflow:visible!important;
}

.bf-adaptive-brochure
.bf-adaptive-decor > .bf-decor-before,
.bf-adaptive-brochure
.bf-adaptive-decor > .bf-decor-after {
    position:absolute!important;
    display:block;
    pointer-events:auto!important;
}


/* ============================================================
   BF_MINIMAL_FRAME_INTRINSIC_LAYOUT_V1

   Shared composition-level layout correction.
   - No clipping
   - No hidden content
   - No modification of leaf-object saved geometry
   - No PDF renderer changes
   ============================================================ */

article.bf-adaptive-brochure.bf-composition-minimal_frame {
    box-sizing:border-box;
    padding:clamp(12px,1.8vw,20px)!important;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-frame {
    box-sizing:border-box;
    min-width:0;
    min-height:calc(var(--bf-page-min-height) - 40px);
    height:auto;
    padding:clamp(22px,3vw,36px);
    display:flex;
    flex-direction:column;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-heading {
    margin:clamp(24px,3vw,42px) auto 0;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-media {
    margin:clamp(16px,2.5vw,30px) auto 0;
    min-height:0;
    height:auto;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-media .bf-comp-media {
    min-height:0!important;
    height:auto!important;
    max-height:none;
    box-sizing:border-box;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-media .bf-multi-media-grid {
    min-height:0!important;
    height:auto!important;
    max-height:none;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-story {
    margin:clamp(18px,2.8vw,32px) auto 0;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-data {
    margin:clamp(18px,2.5vw,30px) auto 0;
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-data .bf-comp-specifications {
    margin-top:clamp(12px,1.8vw,20px);
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-closing {
    margin-top:clamp(14px,2vw,24px);
}

article.bf-adaptive-brochure.bf-composition-minimal_frame
.bf-comp-minimal-frame > .bf-comp-footer {
    margin-top:auto;
    padding-top:clamp(12px,1.8vw,20px);
    flex-shrink:0;
}

/* END BF_MINIMAL_FRAME_INTRINSIC_LAYOUT_V1 */



/* BF_PREMIUM_EFFECT_CONTRACT_V1
   Shared browser and PDF rendering. */
.bf-adaptive-brochure
[data-bf-slot][style*="--bf-pfx-overlay"] {
    position:relative;
    isolation:isolate;
}
.bf-adaptive-brochure
[data-bf-slot][style*="--bf-pfx-overlay"]::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(
        180deg,
        transparent 10%,
        rgba(
            var(--bf-pfx-rgb,4,12,28),
            var(--bf-pfx-alpha,.38)
        ) 100%
    );
}
/* END BF_PREMIUM_EFFECT_CONTRACT_V1 */


/* BF_PREMIUM_PANEL_V2 - PDF/shared image overlays */
.brochure [data-bf-slot-type="image"]
[style*="--bf-pfx-overlay"]::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:linear-gradient(
    180deg,
    transparent 10%,
    rgba(
      var(--bf-pfx-rgb,4,12,28),
      var(--bf-pfx-alpha,.38)
    ) 100%
  );
}
.brochure [data-bf-slot-type="image"]
[style*="--bf-pfx-overlay"]{
  position:relative;
}
.brochure [data-bf-slot-type="image"][style*="--bf-pfx-overlay"]{
  position:relative;
}
.brochure [data-bf-slot-type="image"][style*="--bf-pfx-overlay"]::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
  background:linear-gradient(
    180deg,
    transparent 10%,
    rgba(
      var(--bf-pfx-rgb,4,12,28),
      var(--bf-pfx-alpha,.38)
    ) 100%
  );
}

/* BF_LEFT_IMAGE_GRADIENT_V1: Shared editor / HTML / Chromium PDF */

.bf-adaptive-brochure [data-bf-slot-type="image"][style*="--bf-pfx-overlay"],
.brochure [data-bf-slot-type="image"][style*="--bf-pfx-overlay"] {
  position:relative;
  isolation:isolate;
}

.bf-adaptive-brochure [data-bf-slot-type="image"][style*="--bf-pfx-overlay"]::after,
.brochure [data-bf-slot-type="image"][style*="--bf-pfx-overlay"]::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:100;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    rgba(var(--bf-pfx-rgb,4,12,28),0) 5%,
    rgba(var(--bf-pfx-rgb,4,12,28),var(--bf-pfx-alpha,.65)) 100%
  );
}

.bf-left-image-gradient {
  grid-column:1 / -1;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  padding:12px;
  margin:6px 0;
  border:1px solid #dce7f3;
  border-radius:12px;
  background:#f5f9ff;
}

.bf-left-image-gradient[hidden] {
  display:none!important;
}

.bf-left-image-gradient label {
  display:block;
  min-width:0;
  font-weight:600;
}

.bf-left-image-gradient select {
  width:100%;
  min-width:0;
  min-height:36px;
  margin-top:6px;
  border:1px solid #d4e0ef;
  border-radius:8px;
}

.bf-left-image-gradient input[type="range"] {
  display:block;
  width:100%;
  margin-top:12px;
  accent-color:#206bd5;
}

.bf-left-gradient-value {
  float:right;
  font-variant-numeric:tabular-nums;
}

@media(max-width:580px){
  .bf-left-image-gradient {
    grid-template-columns:minmax(0,1fr);
  }
}


/*
 * BF_IMAGE_VISUAL_LAYER_FIX_V1
 *
 * Keep image content, image effects and selection UI separate.
 * No width, height, object-fit or transform overrides.
 */

/* Actual template image container. */
.bf-adaptive-brochure
[data-bf-slot-type="image"] {
    position: relative;
    isolation: isolate;
}

/*
 * The image itself follows the radius of its slot.
 * Do not force cover, contain, width or height.
 */
.bf-adaptive-brochure
[data-bf-slot-type="image"] > img {
    border-radius: inherit !important;
}

/*
 * Match the CSS variable independently of whitespace:
 * --bf-pfx-overlay:1
 * --bf-pfx-overlay: 1
 */
.bf-adaptive-brochure
[data-bf-slot-type="image"][style*="--bf-pfx-overlay"]::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;

    z-index: 12 !important;
    pointer-events: none !important;
    border-radius: inherit !important;

    opacity: 1 !important;

    background: linear-gradient(
        to bottom,
        rgba(
            var(--bf-pfx-rgb, 4,12,28),
            0
        ) 5%,
        rgba(
            var(--bf-pfx-rgb, 4,12,28),
            var(--bf-pfx-alpha, .65)
        ) 100%
    ) !important;
}

/*
 * No overflow:hidden on the editor's selected slot:
 * this would risk clipping selection/resize handles.
 */

/* END BF_IMAGE_VISUAL_LAYER_FIX_V1 */


/*
 * BF_REAL_IMAGE_OVERLAY_V1
 * Real element, not pseudo-element.
 * Preserves existing image fit and geometry.
 */

/* Keep the original selectable figure. */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"] {
    position: relative;
    isolation: isolate;
}

/* Apply the slot corner radius to the real image. */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"] > img {
    border-radius: inherit !important;
}

/*
 * The previous pseudo gradient cannot reliably render.
 * Disable it only for image slots using the new structure.
 */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"]::after {
    content: none !important;
    display: none !important;
}

/* The real overlay is inert until an effect is enabled. */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"]
> .bf-real-image-overlay-v1 {
    display: none !important;
    position: absolute !important;
    inset: 0 !important;
    box-sizing: border-box !important;
    border-radius: inherit !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

/* Works with either whitespace style serialization. */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"]
[style*="--bf-pfx-overlay"]
> .bf-real-image-overlay-v1 {
    display: none !important;
}

.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"]
[style*="--bf-pfx-overlay"]
> .bf-real-image-overlay-v1 {
    display: none !important;
}

/*
 * The gradient is enabled by the slot's existing
 * --bf-pfx-overlay variable.
 */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"][style*="--bf-pfx-overlay"]
> .bf-real-image-overlay-v1 {
    display: block !important;
    opacity: 1 !important;

    background-image: linear-gradient(
        to bottom,
        rgba(var(--bf-pfx-rgb,4,12,28),0) 5%,
        rgba(
            var(--bf-pfx-rgb,4,12,28),
            var(--bf-pfx-alpha,.65)
        ) 100%
    ) !important;
}

/* Also cover the regular brochure wrapper. */
.brochure
figure.bf-media-slot[data-bf-slot-type="image"][style*="--bf-pfx-overlay"]
> .bf-real-image-overlay-v1 {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    z-index: 20 !important;

    background-image: linear-gradient(
        to bottom,
        rgba(var(--bf-pfx-rgb,4,12,28),0) 5%,
        rgba(
            var(--bf-pfx-rgb,4,12,28),
            var(--bf-pfx-alpha,.65)
        ) 100%
    ) !important;
}

/* END BF_REAL_IMAGE_OVERLAY_V1 */


/* BF_IMAGE_SHADOW_BRIDGE_V1 */

/*
 * Apply shadow to image pixels, not the selectable figure.
 * Preserve existing object-fit, geometry, and overlay.
 */
.bf-adaptive-brochure
figure.bf-media-slot[data-bf-slot-type="image"][style*="--bf-photo-shadow-filter"]
> img,
.brochure
figure.bf-media-slot[data-bf-slot-type="image"][style*="--bf-photo-shadow-filter"]
> img {
    filter:var(--bf-photo-shadow-filter) !important;
}

/* END BF_IMAGE_SHADOW_BRIDGE_V1 */


/* BF_PREMIUM_PILOTS_V1
 * Shared styling for editor, preview and print.
 * No image backgrounds and no object-fit overrides.
 */
.bf-adaptive-brochure .bf-pilot {
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    gap:5mm;
}
.bf-adaptive-brochure .bf-pilot,
.bf-adaptive-brochure .bf-pilot * {
    box-sizing:border-box;
}
.bf-adaptive-brochure .bf-pilot > div,
.bf-adaptive-brochure .bf-pilot > section {
    min-width:0;
}
.bf-adaptive-brochure .bf-pilot
figure[data-bf-slot-type="image"] {
    background:transparent !important;
}

/* 01: Dramatic editorial hierarchy and asymmetric image. */
.bf-adaptive-brochure .bf-pilot-editorial {
    gap:7mm;
}
.bf-adaptive-brochure .bf-pilot-editorial-grid {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    gap:8mm;
    align-items:start;
}
.bf-adaptive-brochure .bf-pilot-editorial-copy {
    padding-top:7mm;
    min-width:0;
}
.bf-adaptive-brochure .bf-pilot-editorial-photo {
    min-width:0;
    padding-top:2mm;
}
.bf-adaptive-brochure .bf-pilot-editorial-bottom {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
    gap:6mm;
    border-top:1px solid #b4bec7;
    padding-top:5mm;
}

/* 02: Technical dossier with main specification zone. */
.bf-adaptive-brochure .bf-pilot-technical {
    gap:5mm;
}
.bf-adaptive-brochure .bf-pilot-technical-top {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:6mm;
    align-items:center;
}
.bf-adaptive-brochure .bf-pilot-technical-heading {
    min-width:0;
    border-left:2px solid currentColor;
    padding-left:4mm;
}
.bf-adaptive-brochure .bf-pilot-technical-photo {
    min-width:0;
}
.bf-adaptive-brochure .bf-pilot-technical-details {
    border-top:2px solid #263c51;
    padding-top:5mm;
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr);
    gap:5mm;
}

/* 03: Gallery-first, typography as a quiet anchor. */
.bf-adaptive-brochure .bf-pilot-visual {
    gap:4mm;
}
.bf-adaptive-brochure .bf-pilot-visual-heading {
    max-width:80%;
    min-width:0;
}
.bf-adaptive-brochure .bf-pilot-visual-gallery {
    width:100%;
    min-width:0;
}
.bf-adaptive-brochure .bf-pilot-visual-caption {
    display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);
    gap:7mm;
    border-top:1px solid #c4cbd0;
    padding-top:5mm;
}

/* 04: Monumental image, restrained luxury typography. */
.bf-adaptive-brochure .bf-pilot-monolith {
    gap:7mm;
}
.bf-adaptive-brochure .bf-pilot-monolith-title {
    max-width:82%;
    border-top:2px solid #202329;
    padding-top:7mm;
}
.bf-adaptive-brochure .bf-pilot-monolith-hero {
    min-width:0;
    width:100%;
}
.bf-adaptive-brochure .bf-pilot-monolith-lower {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:5mm;
}
.bf-adaptive-brochure .bf-pilot-monolith-lower
.bf-comp-features {
    grid-column:1 / -1;
}

@media(max-width:650px) {
    .bf-adaptive-brochure .bf-pilot-editorial-grid,
    .bf-adaptive-brochure .bf-pilot-editorial-bottom,
    .bf-adaptive-brochure .bf-pilot-technical-top,
    .bf-adaptive-brochure .bf-pilot-technical-details,
    .bf-adaptive-brochure .bf-pilot-visual-caption,
    .bf-adaptive-brochure .bf-pilot-monolith-lower {
        grid-template-columns:minmax(0,1fr);
    }
}

/* END BF_PREMIUM_PILOTS_V1 */


/* BF_NEW_PREMIUM_GALLERY_V1 */
.bf-new-premium-gallery-v1{
    margin:20px 0 24px;
    padding:18px;
    border:1px solid #d7e4f3;
    border-radius:16px;
    background:linear-gradient(
        135deg,#f8fbff 0%,#ffffff 72%
    );
    box-shadow:0 8px 28px rgba(36,75,120,.055);
}
.bf-new-premium-heading-v1{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    margin-bottom:16px;
}
.bf-premium-eyebrow-v1{
    display:block;
    margin-bottom:5px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.16em;
    color:#3068b5;
}
.bf-new-premium-heading-v1 h3{
    margin:0 0 5px;
    color:#173456;
    font-size:19px;
    font-weight:800;
    line-height:1.3;
}
.bf-new-premium-heading-v1 p{
    margin:0;
    color:#63768b;
    font-size:12px;
    line-height:1.5;
}
.bf-premium-count-v1,
.bf-premium-pro-v1{
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    border-radius:999px;
    padding:5px 9px;
    background:#e8f1ff;
    color:#275eab;
    font-size:10px;
    font-weight:800;
    letter-spacing:.045em;
}
.bf-premium-count-v1{
    flex-shrink:0;
}
.bf-new-premium-cards-v1{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    align-items:stretch;
}
.bf-new-premium-cards-v1 .bf-create-template-card{
    display:block;
    width:100%;
    min-width:0;
    flex:none;
    margin:0;
    border-radius:11px;
    overflow:hidden;
}
.bf-new-premium-cards-v1
.bf-create-template-card.active{
    border-color:#3579e4;
    box-shadow:0 0 0 2px rgba(53,121,228,.16);
}
.bf-new-premium-cards-v1
.bf-create-template-info{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
    min-width:0;
}
.bf-new-premium-cards-v1
.bf-create-template-name,
.bf-new-premium-cards-v1
.bf-create-template-meta{
    overflow-wrap:anywhere;
}
.bf-premium-locked-v1{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:10px;
    min-height:215px;
    padding:16px;
    border:1px dashed #c4cedb;
    border-radius:11px;
    color:#758397;
    background:#f7f9fc;
}
.bf-premium-locked-v1 strong{
    color:#4e5d72;
    font-size:13px;
}
.bf-premium-locked-v1 small{
    font-size:11px;
}
.bf-premium-lock-v1{
    font-size:27px;
    color:#8599b5;
}
@media(max-width:950px){
    .bf-new-premium-cards-v1{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media(max-width:420px){
    .bf-new-premium-gallery-v1{
        padding:12px;
    }
    .bf-new-premium-heading-v1 h3{
        font-size:16px;
    }
    .bf-new-premium-cards-v1{
        gap:8px;
    }
    .bf-new-premium-cards-v1
    .bf-create-template-thumb{
        height:132px;
    }
}
/* END BF_NEW_PREMIUM_GALLERY_V1 */


/* BF_PREMIUM_REDESIGN_V2
   Scoped to the four new editable template families only.
   Existing image sizing, inline effects and object-fit remain owned
   by the shared editor/renderer.
*/
.bf-adaptive-brochure .bfv2 {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:245mm;
    padding:9mm 8mm;
    display:flex;
    flex-direction:column;
    gap:5mm;
    position:relative;
    font-family:Arial,Helvetica,sans-serif;
    line-height:1.4;
    isolation:isolate;
}
.bf-adaptive-brochure .bfv2 *,
.bf-adaptive-brochure .bfv2 *::before,
.bf-adaptive-brochure .bfv2 *::after {
    box-sizing:border-box;
}
.bf-adaptive-brochure .bfv2 > * {
    min-width:0;
}
.bf-adaptive-brochure .bfv2 .bfv2-header {
    min-width:0;
    padding-bottom:3mm;
    border-bottom:1px solid rgba(255,255,255,.24);
}
.bf-adaptive-brochure .bfv2 .bf-adaptive-header {
    padding:0;
    margin:0;
    background:transparent;
}
.bf-adaptive-brochure .bfv2
.bf-adaptive-template-meta {
    opacity:.8;
    font-size:9px;
    letter-spacing:.08em;
}
.bf-adaptive-brochure .bfv2
.bf-comp-title-block {
    min-width:0;
}
.bf-adaptive-brochure .bfv2
.bf-comp-title-block h1 {
    max-width:100%;
    margin:0 0 4mm;
    font-family:Arial,Helvetica,sans-serif;
    font-size:34pt;
    font-weight:900;
    letter-spacing:-.055em;
    line-height:1.03;
    overflow-wrap:break-word;
}
.bf-adaptive-brochure .bfv2
.bf-adaptive-eyebrow {
    margin-bottom:3mm;
    font-weight:800;
    font-size:10px;
    letter-spacing:.13em;
    text-transform:uppercase;
}
.bf-adaptive-brochure .bfv2
.bf-adaptive-hero-description {
    font-size:12pt;
    line-height:1.55;
}
.bf-adaptive-brochure .bfv2
.bf-adaptive-section {
    margin:0;
    min-width:0;
}
.bf-adaptive-brochure .bfv2
.bf-adaptive-section h2 {
    font-size:12pt;
    line-height:1.25;
    font-weight:800;
    letter-spacing:-.025em;
}
.bf-adaptive-brochure .bfv2
.bf-section-kicker {
    font-weight:800;
    font-size:9px;
    letter-spacing:.14em;
}
.bf-adaptive-brochure .bfv2
.bf-comp-media {
    width:100%;
    min-width:0;
}
.bf-adaptive-brochure .bfv2
.bf-multi-media-grid {
    min-width:0;
    width:100%;
}
.bf-adaptive-brochure .bfv2
figure.bf-media-slot {
    background:transparent !important;
}
.bf-adaptive-brochure .bfv2
.bf-feature-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:3mm;
}
.bf-adaptive-brochure .bfv2
.bf-feature-card {
    min-width:0;
    padding:3mm;
    border-radius:3mm;
    transition:none;
}
.bf-adaptive-brochure .bfv2
.bf-comp-footer {
    margin-top:auto;
    min-width:0;
    padding-top:3mm;
    border-top:1px solid currentColor;
    opacity:.75;
}
.bf-adaptive-brochure .bfv2
.bf-comp-specifications {
    min-width:0;
    max-width:100%;
}
.bf-adaptive-brochure .bfv2
.bf-comp-specifications table {
    max-width:100%;
    width:100%;
    border-collapse:collapse;
}

/* 01 - COLORFUL TECHNOLOGY */
.bf-adaptive-brochure .bfv2-spectrum {
    color:#f5f9ff;
    background:
        radial-gradient(ellipse at 90% 12%,
          rgba(255,52,195,.42),transparent 42%),
        radial-gradient(ellipse at 9% 70%,
          rgba(4,205,255,.29),transparent 49%),
        linear-gradient(149deg,
          #061125 0%,#112553 47%,#23104a 100%);
}
.bf-adaptive-brochure .bfv2-spectrum
.bfv2-spectrum-hero {
    display:grid;
    grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
    gap:4mm;
    align-items:center;
    min-height:90mm;
}
.bf-adaptive-brochure .bfv2-spectrum
.bfv2-spectrum-copy {
    min-width:0;
}
.bf-adaptive-brochure .bfv2-spectrum
.bf-comp-title-block h1:not([style*="color:"]) {
    color:#fff !important;
    text-shadow:0 5px 24px rgba(0,10,35,.28);
}
.bf-adaptive-brochure .bfv2-spectrum
.bf-adaptive-eyebrow {
    color:#36f1ff;
}
.bf-adaptive-brochure .bfv2-spectrum
.bfv2-spectrum-image {
    min-width:0;
}
.bf-adaptive-brochure .bfv2-spectrum
.bfv2-spectrum-bottom {
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
    gap:5mm;
    padding:5mm;
    border:1px solid rgba(70,226,255,.35);
    border-radius:4mm;
    background:linear-gradient(
      118deg,rgba(14,45,91,.80),rgba(84,25,110,.43)
    );
}
.bf-adaptive-brochure .bfv2-spectrum
.bf-feature-card {
    color:#fff;
    background:rgba(4,18,45,.58);
    border:1px solid rgba(113,220,255,.32);
}
.bf-adaptive-brochure .bfv2-spectrum
.bfv2-data {
    padding:4mm;
    border-top:2px solid #39dff9;
}
.bf-adaptive-brochure .bfv2-spectrum
.bf-section-kicker {
    color:#50ecfa;
}

/* 02 - SMART FACTORY */
.bf-adaptive-brochure .bfv2-factory {
    background:linear-gradient(
      180deg,#0c2d53 0%,#073e73 49%,
      #f2f8fc 49.1%,#f2f8fc 100%
    );
    color:#f9fcff;
}
.bf-adaptive-brochure .bfv2-factory
.bfv2-factory-hero {
    display:grid;
    grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
    gap:5mm;
    align-items:center;
    min-height:85mm;
}
.bf-adaptive-brochure .bfv2-factory
.bf-comp-title-block h1:not([style*="color:"]) {
    color:#fff !important;
    font-size:31pt;
}
.bf-adaptive-brochure .bfv2-factory
.bf-adaptive-eyebrow {
    color:#62e5ff;
}
.bf-adaptive-brochure .bfv2-factory
.bfv2-factory-features {
    padding:5mm;
    color:#173956;
    background:#fff;
    border:1px solid #d2e7f4;
    border-radius:2mm;
}
.bf-adaptive-brochure .bfv2-factory
.bf-feature-card {
    color:#183955;
    background:linear-gradient(130deg,#edfaff,#fff);
    border-left:3px solid #008cd1;
}
.bf-adaptive-brochure .bfv2-factory
.bfv2-factory-details {
    display:grid;
    grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    gap:5mm;
    color:#173956;
    padding:3mm 1mm;
}
.bf-adaptive-brochure .bfv2-factory
.bfv2-factory-details h2 {
    color:#123d67;
}
.bf-adaptive-brochure .bfv2-factory
.bf-section-kicker {
    color:#0099d4;
}

/* 03 - BLACK NEON */
.bf-adaptive-brochure .bfv2-neon {
    color:#f8f7ff;
    background:
        radial-gradient(ellipse at 83% 32%,
          rgba(106,15,212,.48),transparent 39%),
        radial-gradient(ellipse at 15% 75%,
          rgba(0,194,253,.22),transparent 43%),
        linear-gradient(145deg,#05070f,#10142b 62%,#10061f);
}
.bf-adaptive-brochure .bfv2-neon
.bfv2-neon-hero {
    display:grid;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    gap:4mm;
    align-items:center;
    min-height:105mm;
}
.bf-adaptive-brochure .bfv2-neon
.bf-comp-title-block h1:not([style*="color:"]) {
    color:#fff !important;
    font-size:36pt;
    text-shadow:0 8px 26px rgba(111,49,236,.22);
}
.bf-adaptive-brochure .bfv2-neon
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv2-neon
.bf-section-kicker {
    color:#20e8ff;
}
.bf-adaptive-brochure .bfv2-neon
.bfv2-neon-features {
    padding:5mm;
    background:linear-gradient(
      110deg,rgba(11,22,53,.92),rgba(64,16,82,.72)
    );
    border:1px solid rgba(186,77,255,.55);
    border-radius:3mm;
}
.bf-adaptive-brochure .bfv2-neon
.bf-feature-card {
    color:#fff;
    background:rgba(7,9,25,.83);
    border:1px solid rgba(0,211,255,.44);
}
.bf-adaptive-brochure .bfv2-neon
.bfv2-neon-bottom {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:5mm;
    border-top:2px solid #c137ff;
    padding-top:5mm;
}

/* 04 - RED INDUSTRIAL */
.bf-adaptive-brochure .bfv2-engineering {
    color:#fff;
    background:
        linear-gradient(137deg,
          transparent 0%,transparent 67%,
          rgba(232,23,42,.24) 67.2%,transparent 80%),
        linear-gradient(150deg,#0d1118,#22252b 54%,#0a0e14);
}
.bf-adaptive-brochure .bfv2-engineering
.bfv2-engineering-hero {
    display:grid;
    grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
    gap:4mm;
    align-items:center;
    min-height:100mm;
    border-left:3mm solid #ea2639;
    padding-left:4mm;
}
.bf-adaptive-brochure .bfv2-engineering
.bf-comp-title-block h1:not([style*="color:"]) {
    color:#fff !important;
    font-size:32pt;
    line-height:1.02;
}
.bf-adaptive-brochure .bfv2-engineering
.bf-adaptive-eyebrow {
    color:#ffd436;
}
.bf-adaptive-brochure .bfv2-engineering
.bfv2-engineering-features {
    padding:5mm;
    border-top:2mm solid #e72539;
    background:rgba(0,0,0,.30);
}
.bf-adaptive-brochure .bfv2-engineering
.bf-feature-card {
    color:#fff;
    border-left:2px solid #ffce2e;
    background:rgba(255,255,255,.08);
    border-radius:0;
}
.bf-adaptive-brochure .bfv2-engineering
.bf-section-kicker {
    color:#ffce2e;
}
.bf-adaptive-brochure .bfv2-engineering
.bfv2-engineering-bottom {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    gap:5mm;
    border-top:1px solid rgba(255,255,255,.45);
    padding-top:5mm;
}

/* Page-width adaptation, independent from browser viewport. */
.bf-adaptive-brochure .bfv2 {
    container-type:inline-size;
}
@container(max-width:540px) {
    .bfv2 .bfv2-spectrum-hero,
    .bfv2 .bfv2-spectrum-bottom,
    .bfv2 .bfv2-factory-hero,
    .bfv2 .bfv2-factory-details,
    .bfv2 .bfv2-neon-hero,
    .bfv2 .bfv2-neon-bottom,
    .bfv2 .bfv2-engineering-hero,
    .bfv2 .bfv2-engineering-bottom {
        grid-template-columns:minmax(0,1fr);
    }
}
/* END BF_PREMIUM_REDESIGN_V2 */


/* BF_PREMIUM_PILOT_LAYOUT_V3 — FOUR DISTINCT COMPOSITIONS */

.bf-adaptive-brochure .bfv3 {
    width:100%;
    min-width:0;
    position:relative;
    isolation:isolate;
    font-family:system-ui,Arial,sans-serif;
    box-sizing:border-box;
}
.bf-adaptive-brochure .bfv3 *,
.bf-adaptive-brochure .bfv3 *::before,
.bf-adaptive-brochure .bfv3 *::after {
    box-sizing:border-box;
}
.bf-adaptive-brochure .bfv3-scene {
    min-height:260mm;
    width:100%;
    padding:9mm 8mm 7mm;
    display:flex;
    flex-direction:column;
    gap:5mm;
    position:relative;
    overflow:hidden;
}
.bf-adaptive-brochure .bfv3-scene > * {
    position:relative;
    z-index:2;
    min-width:0;
}
.bf-adaptive-brochure .bfv3 .bf-adaptive-header {
    padding:0 0 3mm;
    margin:0;
    background:transparent;
    border:0;
}
.bf-adaptive-brochure .bfv3 .bf-adaptive-template-meta {
    opacity:.76;
    font-size:8pt;
    letter-spacing:.07em;
}
.bf-adaptive-brochure .bfv3 .bf-comp-title-block h1 {
    font-family:system-ui,Arial,sans-serif;
    font-size:37pt;
    font-weight:900;
    line-height:1.04;
    letter-spacing:-.055em;
    margin:0;
    max-width:100%;
    overflow-wrap:anywhere;
}
.bf-adaptive-brochure .bfv3 .bf-adaptive-eyebrow {
    font-size:9pt;
    font-weight:800;
    letter-spacing:.14em;
    text-transform:uppercase;
    margin-bottom:3mm;
}
.bf-adaptive-brochure .bfv3 .bf-adaptive-section {
    margin:0;
    min-width:0;
}
.bf-adaptive-brochure .bfv3 .bf-adaptive-section h2 {
    font-size:12pt;
    font-weight:800;
    line-height:1.2;
    margin:0 0 2mm;
}
.bf-adaptive-brochure .bfv3 .bf-section-kicker {
    font-size:8pt;
    font-weight:800;
    letter-spacing:.12em;
}
.bf-adaptive-brochure .bfv3 .bf-comp-media,
.bf-adaptive-brochure .bfv3 .bf-multi-media-grid {
    width:100%;
    min-width:0;
}
.bf-adaptive-brochure .bfv3 figure[data-bf-slot-type="image"] {
    background:transparent !important;
}
.bf-adaptive-brochure .bfv3 .bfv3-foot {
    margin-top:auto;
    padding-top:3mm;
    border-top:1px solid rgba(255,255,255,.28);
}
.bf-adaptive-brochure .bfv3 .bf-comp-footer,
.bf-adaptive-brochure .bfv3 .bf-adaptive-footer {
    padding:0;
    margin:0;
    border:0;
    background:transparent;
}
.bf-adaptive-brochure .bfv3 table {
    width:100%;
    max-width:100%;
    border-collapse:collapse;
    font-size:8pt;
}
.bf-adaptive-brochure .bfv3 th,
.bf-adaptive-brochure .bfv3 td {
    padding:1.5mm;
    overflow-wrap:break-word;
    border-bottom:1px solid rgba(145,170,195,.3);
}

/* 01 — Spectrum: vivid color and asymmetric hero */
.bf-adaptive-brochure .bfv3-spectrum .bfv3-scene {
    color:#f7fbff;
    background:
        radial-gradient(ellipse at 85% 16%,
          rgba(250,38,181,.34),transparent 42%),
        radial-gradient(ellipse at 8% 70%,
          rgba(0,214,255,.28),transparent 44%),
        linear-gradient(135deg,#06122a,#103d78 54%,#210c42);
}
.bf-adaptive-brochure .bfv3-spectrum .bfv3-scene::before {
    content:"";
    position:absolute;
    z-index:0;
    pointer-events:none;
    width:105mm;
    height:105mm;
    right:-52mm;
    top:12mm;
    border:4mm solid rgba(255,71,192,.25);
    border-radius:50%;
    box-shadow:0 0 30mm rgba(168,33,232,.25);
}
.bf-adaptive-brochure .bfv3-spectrum .bfv3-scene::after {
    content:"";
    position:absolute;
    z-index:0;
    bottom:18mm;
    left:8mm;
    right:8mm;
    height:1.5mm;
    background:linear-gradient(90deg,#09d8ff,#874bff,#ff3db4);
}
.bf-adaptive-brochure .bfv3-spectrum .bfv3-spectrum-hero {
    display:grid;
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
    gap:5mm;
    align-items:center;
    min-height:145mm;
    flex:1;
}
.bf-adaptive-brochure .bfv3-spectrum .bfv3-spectrum-image {
    min-width:0;
    filter:drop-shadow(0 5mm 7mm rgba(0,0,0,.25));
}
.bf-adaptive-brochure .bfv3-spectrum .bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv3-spectrum .bf-section-kicker {
    color:#54e8ff;
}
.bf-adaptive-brochure .bfv3-spectrum .bfv3-spectrum-content {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:4mm;
    padding:4mm;
    border:1px solid rgba(101,220,255,.35);
    background:linear-gradient(
      120deg,rgba(5,24,65,.75),rgba(59,17,86,.65)
    );
    border-radius:3mm;
}
.bf-adaptive-brochure .bfv3-spectrum .bfv3-spectrum-specs {
    border-top:1px solid #43e2f4;
    padding-top:3mm;
}

/* 02 — Factory: blue engineering cover + white data zone */
.bf-adaptive-brochure .bfv3-factory .bfv3-scene {
    color:#fff;
    background:linear-gradient(
      180deg,#09274e 0%,#10477e 52%,
      #f1f7fc 52.1%,#f1f7fc 100%
    );
}
.bf-adaptive-brochure .bfv3-factory .bfv3-scene::before {
    content:"";
    position:absolute;
    z-index:0;
    inset:0 0 auto;
    height:138mm;
    pointer-events:none;
    background:repeating-linear-gradient(
      90deg,transparent 0 22mm,
      rgba(91,180,245,.12) 22mm 22.2mm
    );
}
.bf-adaptive-brochure .bfv3-factory .bfv3-factory-title {
    max-width:85%;
    margin-top:5mm;
}
.bf-adaptive-brochure .bfv3-factory .bfv3-factory-image {
    min-height:105mm;
    display:flex;
    align-items:center;
}
.bf-adaptive-brochure .bfv3-factory .bf-adaptive-eyebrow {
    color:#54e2ff;
}
.bf-adaptive-brochure .bfv3-factory .bfv3-factory-content {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4mm;
    align-content:start;
    color:#183b5b;
    flex:1;
}
.bf-adaptive-brochure .bfv3-factory .bfv3-factory-card {
    background:#fff;
    border:1px solid #d4e5f3;
    border-radius:2mm;
    padding:4mm;
    box-shadow:0 2mm 6mm rgba(20,58,103,.08);
}
.bf-adaptive-brochure .bfv3-factory .bfv3-factory-wide {
    grid-column:1/-1;
}
.bf-adaptive-brochure .bfv3-factory .bfv3-foot {
    color:#244565;
    border-color:#b4cfe3;
}
.bf-adaptive-brochure .bfv3-factory .bf-section-kicker {
    color:#008cce;
}

/* 03 — Neon: immersive dark technology */
.bf-adaptive-brochure .bfv3-neon .bfv3-scene {
    color:#f9f8ff;
    background:
        radial-gradient(ellipse at 78% 28%,
          rgba(183,25,248,.35),transparent 39%),
        radial-gradient(ellipse at 12% 80%,
          rgba(5,204,252,.22),transparent 43%),
        linear-gradient(145deg,#04060f,#111733 59%,#190921);
}
.bf-adaptive-brochure .bfv3-neon .bfv3-neon-title {
    margin-top:3mm;
    max-width:90%;
}
.bf-adaptive-brochure .bfv3-neon .bfv3-neon-title h1 {
    font-size:40pt;
    text-shadow:0 3mm 9mm rgba(93,43,221,.30);
}
.bf-adaptive-brochure .bfv3-neon .bfv3-neon-image {
    min-height:125mm;
    flex:1;
    display:flex;
    align-items:center;
    padding-bottom:3mm;
    border-bottom:2px solid #cf34f3;
    filter:drop-shadow(0 4mm 6mm rgba(0,0,0,.3));
}
.bf-adaptive-brochure .bfv3-neon .bfv3-neon-features {
    padding:4mm;
    border:1px solid rgba(180,70,255,.56);
    border-radius:3mm;
    background:linear-gradient(
      125deg,rgba(9,33,72,.78),rgba(73,15,96,.58)
    );
}
.bf-adaptive-brochure .bfv3-neon .bfv3-neon-content {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4mm;
}
.bf-adaptive-brochure .bfv3-neon .bfv3-neon-content > * {
    padding:3mm;
    border-radius:2mm;
    border:1px solid rgba(57,206,255,.31);
    background:rgba(8,17,43,.75);
}
.bf-adaptive-brochure .bfv3-neon .bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv3-neon .bf-section-kicker {
    color:#4beaff;
}

/* 04 — Engineering: angular red / black / yellow */
.bf-adaptive-brochure .bfv3-engineering .bfv3-scene {
    color:#fff;
    background:linear-gradient(145deg,#101319,#282a30 60%,#0b0e14);
}
.bf-adaptive-brochure .bfv3-engineering .bfv3-scene::before {
    content:"";
    position:absolute;
    pointer-events:none;
    z-index:0;
    width:90mm;
    height:80mm;
    top:10mm;
    right:-16mm;
    clip-path:polygon(50% 0,100% 0,100% 100%,0 100%);
    background:linear-gradient(135deg,
      rgba(244,37,58,.52),rgba(244,37,58,.04)
    );
}
.bf-adaptive-brochure .bfv3-engineering .bfv3-engineering-hero {
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:center;
    gap:5mm;
    min-height:145mm;
    flex:1;
}
.bf-adaptive-brochure .bfv3-engineering .bfv3-engineering-title {
    border-left:2mm solid #eb293d;
    padding-left:4mm;
}
.bf-adaptive-brochure .bfv3-engineering .bfv3-engineering-image {
    filter:drop-shadow(0 5mm 8mm rgba(0,0,0,.35));
}
.bf-adaptive-brochure .bfv3-engineering .bfv3-engineering-features {
    padding:4mm;
    border-left:1mm solid #ef3246;
    background:rgba(0,0,0,.25);
}
.bf-adaptive-brochure .bfv3-engineering .bfv3-engineering-content {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4mm;
    border-top:1px solid rgba(255,255,255,.3);
    padding-top:4mm;
}
.bf-adaptive-brochure .bfv3-engineering .bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv3-engineering .bf-section-kicker {
    color:#ffdc32;
}
/* END BF_PREMIUM_PILOT_LAYOUT_V3 */


/* BF_PREMIUM_GALLERY_EXAMPLES_V1 — Theme/Typography */
.bf-adaptive-brochure .bfv3-spectrum
.bf-adaptive-brand,
.bf-adaptive-brochure .bfv3-spectrum
.bf-adaptive-template-meta {
    color:#effbff;
}
.bf-adaptive-brochure .bfv3-spectrum
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv3-spectrum
.bf-section-kicker {
    color:#43e7f6;
}
.bf-adaptive-brochure .bfv3-factory
.bf-adaptive-brand,
.bf-adaptive-brochure .bfv3-factory
.bf-adaptive-template-meta {
    color:#eaf7ff;
}
.bf-adaptive-brochure .bfv3-factory
.bf-adaptive-eyebrow {
    color:#67e1fb;
}
.bf-adaptive-brochure .bfv3-neon
.bf-adaptive-brand {
    color:#ffffff;
}
.bf-adaptive-brochure .bfv3-neon
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv3-neon
.bf-section-kicker {
    color:#e077ff;
}
.bf-adaptive-brochure .bfv3-engineering
.bf-adaptive-brand {
    color:#ffffff;
}
.bf-adaptive-brochure .bfv3-engineering
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv3-engineering
.bf-section-kicker {
    color:#ffce3c;
}
/* END BF_PREMIUM_GALLERY_EXAMPLES_V1 */


/* BF_CONTENT_FIRST_V4 — scoped to four premium pilots */
.bf-adaptive-brochure .bfv4{
    width:100%;
    min-width:0;
    box-sizing:border-box;
    position:relative;
    isolation:isolate;
    font-family:Arial,Helvetica,sans-serif;
}
.bf-adaptive-brochure .bfv4 *,
.bf-adaptive-brochure .bfv4 *::before,
.bf-adaptive-brochure .bfv4 *::after{
    box-sizing:border-box;
}
.bf-adaptive-brochure .bfv4-inner{
    width:100%;
    min-width:0;
    padding:6mm;
    display:flex;
    flex-direction:column;
    gap:4mm;
    position:relative;
}
.bf-adaptive-brochure .bfv4-inner > *{
    min-width:0;
    position:relative;
    z-index:1;
}
.bf-adaptive-brochure .bfv4-header
.bf-adaptive-header{
    padding:0 0 2mm;
    margin:0;
    border-bottom:1px solid currentColor;
    background:transparent;
}
.bf-adaptive-brochure .bfv4-hero{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:5mm;
    align-items:center;
    min-width:0;
}
.bf-adaptive-brochure .bfv4-title,
.bf-adaptive-brochure .bfv4-image{
    min-width:0;
}
.bf-adaptive-brochure .bfv4
.bf-comp-title-block h1{
    font-family:Arial,Helvetica,sans-serif;
    font-size:29pt;
    line-height:1.07;
    letter-spacing:-.045em;
    font-weight:900;
    margin:0 0 3mm;
    overflow-wrap:break-word;
    max-width:100%;
}
.bf-adaptive-brochure .bfv4
.bf-adaptive-model{
    font-size:10pt;
    font-weight:600;
    line-height:1.35;
}
.bf-adaptive-brochure .bfv4
.bf-adaptive-eyebrow{
    font-size:8pt;
    font-weight:800;
    letter-spacing:.12em;
    margin-bottom:3mm;
}
.bf-adaptive-brochure .bfv4
.bf-comp-media,
.bf-adaptive-brochure .bfv4
.bf-multi-media-grid{
    width:100%;
    min-width:0;
}
.bf-adaptive-brochure .bfv4
figure[data-bf-slot-type="image"]{
    background:transparent !important;
}
.bf-adaptive-brochure .bfv4-details{
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    align-items:start;
    gap:4mm;
    min-width:0;
}
.bf-adaptive-brochure .bfv4-details > *{
    min-width:0;
    padding:3mm;
}
.bf-adaptive-brochure .bfv4
.bf-adaptive-section{
    margin:0;
}
.bf-adaptive-brochure .bfv4
.bf-adaptive-section h2{
    font-size:11pt;
    line-height:1.2;
    margin:0 0 2mm;
}
.bf-adaptive-brochure .bfv4
.bf-section-kicker{
    font-size:7pt;
    letter-spacing:.1em;
}
.bf-adaptive-brochure .bfv4
.bf-comp-overview{
    font-size:9pt;
    line-height:1.4;
}
.bf-adaptive-brochure .bfv4 table{
    max-width:100%;
    width:100%;
    table-layout:fixed;
    border-collapse:collapse;
    font-size:8pt;
}
.bf-adaptive-brochure .bfv4 th,
.bf-adaptive-brochure .bfv4 td{
    padding:1.4mm;
    border-bottom:1px solid rgba(125,145,165,.3);
    overflow-wrap:anywhere;
    vertical-align:top;
}
.bf-adaptive-brochure .bfv4-footer{
    margin-top:2mm;
    padding-top:2mm;
    border-top:1px solid currentColor;
    opacity:.82;
}
.bf-adaptive-brochure .bfv4-footer
.bf-adaptive-footer{
    margin:0;
    padding:0;
    background:transparent;
    border:0;
}

/* Spectrum: vivid blue/cyan/magenta, image-led */
.bf-adaptive-brochure .bfv4-spectrum{
    background:
      radial-gradient(ellipse at 88% 10%,
        rgba(255,48,189,.27),transparent 43%),
      radial-gradient(ellipse at 8% 78%,
        rgba(10,199,255,.20),transparent 46%),
      linear-gradient(145deg,#06152c,#133770 55%,#231047);
    color:#f5fbff;
}
.bf-adaptive-brochure .bfv4-spectrum
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv4-spectrum
.bf-section-kicker{color:#54eaff}
.bf-adaptive-brochure .bfv4-spectrum .bfv4-details{
    border-top:2px solid #42dcf5;
    padding-top:3mm;
}

/* Factory: blue engineering system with light technical data */
.bf-adaptive-brochure .bfv4-factory{
    background:linear-gradient(
      180deg,#0c315c 0%,#0e457f 48%,
      #eff7fc 48.1%,#eff7fc 100%);
    color:#fff;
}
.bf-adaptive-brochure .bfv4-factory .bfv4-hero{
    grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
}
.bf-adaptive-brochure .bfv4-factory .bfv4-details{
    background:#fff;
    color:#1c3c5a;
    border:1px solid #d7e8f4;
    border-top:3px solid #078bc8;
    border-radius:2mm;
    padding:3mm;
}
.bf-adaptive-brochure .bfv4-factory
.bf-adaptive-eyebrow{color:#65e5f9}
.bf-adaptive-brochure .bfv4-factory
.bfv4-footer{color:#25486a}

/* Neon: purple/cyan dark visual presentation */
.bf-adaptive-brochure .bfv4-neon{
    background:
      radial-gradient(ellipse at 85% 20%,
        rgba(189,40,255,.30),transparent 38%),
      radial-gradient(ellipse at 10% 78%,
        rgba(2,191,246,.18),transparent 40%),
      linear-gradient(155deg,#060711,#11112d 58%,#180a25);
    color:#faf7ff;
}
.bf-adaptive-brochure .bfv4-neon .bfv4-hero{
    grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
}
.bf-adaptive-brochure .bfv4-neon
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv4-neon
.bf-section-kicker{color:#db73ff}
.bf-adaptive-brochure .bfv4-neon .bfv4-details{
    border-top:2px solid #bb4aff;
    padding-top:4mm;
}

/* Engineering: red accents / black steel */
.bf-adaptive-brochure .bfv4-engineering{
    background:
      linear-gradient(142deg,transparent 65%,
        rgba(236,30,52,.15) 65.2%,transparent 85%),
      linear-gradient(150deg,#10141a,#272a31 60%,#0c1015);
    color:#fff;
}
.bf-adaptive-brochure .bfv4-engineering .bfv4-title{
    border-left:2mm solid #ef2b44;
    padding-left:4mm;
}
.bf-adaptive-brochure .bfv4-engineering
.bf-adaptive-eyebrow,
.bf-adaptive-brochure .bfv4-engineering
.bf-section-kicker{color:#ffdb3c}
.bf-adaptive-brochure .bfv4-engineering .bfv4-details{
    border-top:2px solid #ed3047;
    padding-top:4mm;
}
/* END BF_CONTENT_FIRST_V4 */


/*
 * BF_PREMIUM_FULL_PAGE_FOUNDATION_V1
 *
 * Apply the premium paper directly to the real document,
 * not to a content-height inner wrapper.
 *
 * Keep all existing element geometry, image styling,
 * transparency and inline user edits untouched.
 */

article.bf-adaptive-brochure[
  data-template="bf-premium-editorial-01"
] {
    background:
        radial-gradient(
            ellipse at 86% 14%,
            rgba(246,49,185,.33),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 7% 78%,
            rgba(0,207,255,.24),
            transparent 46%
        ),
        linear-gradient(
            145deg,#06152c,#133770 55%,#231047
        );
    color:#f5fbff;
}

article.bf-adaptive-brochure[
  data-template="bf-premium-technical-02"
] {
    background:
        linear-gradient(
            180deg,
            #0c315c 0%,
            #0e457f 46%,
            #eff7fc 46.1%,
            #eff7fc 100%
        );
}

article.bf-adaptive-brochure[
  data-template="bf-premium-visual-03"
] {
    background:
        radial-gradient(
            ellipse at 82% 22%,
            rgba(189,40,255,.30),
            transparent 40%
        ),
        radial-gradient(
            ellipse at 10% 78%,
            rgba(2,191,246,.18),
            transparent 43%
        ),
        linear-gradient(
            155deg,#060711,#11112d 58%,#180a25
        );
    color:#faf7ff;
}

article.bf-adaptive-brochure[
  data-template="bf-premium-monolith-04"
] {
    background:
        linear-gradient(
            142deg,
            transparent 65%,
            rgba(236,30,52,.15) 65.2%,
            transparent 85%
        ),
        linear-gradient(
            150deg,#10141a,#272a31 60%,#0c1015
        );
    color:#ffffff;
}

/*
 * The inner composition must not restart its gradient,
 * which previously produced a visible seam/black area.
 */
article.bf-adaptive-brochure[
  data-template="bf-premium-editorial-01"
] > .bfv4,
article.bf-adaptive-brochure[
  data-template="bf-premium-technical-02"
] > .bfv4,
article.bf-adaptive-brochure[
  data-template="bf-premium-visual-03"
] > .bfv4,
article.bf-adaptive-brochure[
  data-template="bf-premium-monolith-04"
] > .bfv4 {
    background:transparent;
}

/*
 * The adaptive paper uses 32px top and 24px bottom
 * padding in its baseline stylesheet.
 * Reserve the remaining physical paper height.
 *
 * Longer content is not clipped.
 */
article.bf-adaptive-brochure[
  data-template="bf-premium-editorial-01"
] .bfv4-inner,
article.bf-adaptive-brochure[
  data-template="bf-premium-technical-02"
] .bfv4-inner,
article.bf-adaptive-brochure[
  data-template="bf-premium-visual-03"
] .bfv4-inner,
article.bf-adaptive-brochure[
  data-template="bf-premium-monolith-04"
] .bfv4-inner {
    min-height:calc(
        var(--bf-page-min-height,297mm) - 56px
    );
}

/*
 * Keep the footer at the bottom of the available paper
 * when the content is shorter than one page.
 */
article.bf-adaptive-brochure[
  data-template^="bf-premium-"
] .bfv4-footer {
    margin-top:auto;
}

/* END BF_PREMIUM_FULL_PAGE_FOUNDATION_V1 */









/*
 * BF_PREMIUM_FOOTER_SINGLE_DIVIDER_V6
 *
 * Remove the template-level footer separator.
 * Leave brandkit contact content and its styling untouched.
 * Limited to the four premium pilot IDs.
 */

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-technical-02"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-footer {
    border-top:0!important;
    border-bottom:0!important;
    box-shadow:none!important;
}

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-technical-02"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-footer > .bf-comp-footer {
    border-top:0!important;
    border-bottom:0!important;
    box-shadow:none!important;
}

/* END BF_PREMIUM_FOOTER_SINGLE_DIVIDER_V6 */


/*
 * BF_PREMIUM_DESIGN_V7_1
 * Four existing pilots only.
 * Content-first: no duplicated data or hidden actual text.
 */

/* Shared editorial typography and spacing. */

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-technical-02"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-details {
    min-width:0;
    align-items:stretch;
    gap:5mm!important;
}

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-technical-02"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-details > * {
    box-sizing:border-box;
    min-width:0;
}

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-technical-02"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-details .bf-comp-overview,
article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-technical-02"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-details .bf-adaptive-section {
    opacity:1!important;
}

/*
 * Lift real headings back to normal opacity.
 * The generic editor previously faded scaffold headings.
 */

.create-preview-wrap #realPreview
article.bf-adaptive-brochure[data-template^="bf-premium-"]
.bfv4-details :is(
    .bf-section-kicker,
    .bf-comp-overview > h2,
    h3,
    h4
) {
    opacity:1!important;
}

/* Typography remains proportional to physical paper. */

article.bf-adaptive-brochure[data-template^="bf-premium-"]
.bfv4-details :is(p,li) {
    line-height:1.55!important;
}

article.bf-adaptive-brochure[data-template^="bf-premium-"]
.bfv4-details table {
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

article.bf-adaptive-brochure[data-template^="bf-premium-"]
.bfv4-details table :is(th,td) {
    box-sizing:border-box;
    padding:2.4mm 2.5mm!important;
    vertical-align:top;
    overflow-wrap:anywhere;
}

/*
 * A4-only minimum area.
 * This is NOT a fixed height: long content can grow.
 * Smaller paper formats retain their existing flow.
 */

article.bf-adaptive-brochure[data-format="a4_portrait"]
:is(
    .bfv4-spectrum,
    .bfv4-factory,
    .bfv4-neon,
    .bfv4-engineering
) .bfv4-details {
    min-height:72mm;
}

/* FACTORY: dark ink on light surfaces. */

article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-details {
    --bf-ink:#17354d;
    --bf-muted:#3b5267;
    --bf-line:#c7dce8;
    --bf-surface:#edf5fa;
    background:#fff!important;
    color:#17354d!important;
    border:1px solid #c7dce8!important;
}

article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-copy,
article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-copy :is(
    p,span,h2,h3,h4,li
) {
    color:#233f58!important;
    -webkit-text-fill-color:#233f58!important;
}

article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-specs tbody :is(th,td),
article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-specs tbody :is(th,td) * {
    color:#17354d!important;
    -webkit-text-fill-color:#17354d!important;
    opacity:1!important;
}

article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-specs thead th {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background:#135984!important;
    opacity:1!important;
}

article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-specs tbody tr:nth-child(even)
:is(th,td) {
    background:#e8f2f8!important;
}

article.bf-adaptive-brochure[data-template="bf-premium-technical-02"]
.bfv4-factory .bfv4-specs tbody tr:nth-child(odd)
:is(th,td) {
    background:#fff!important;
}

/*
 * DARK PREMIUM FAMILIES:
 * restore readable text without painting image backgrounds.
 */

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-details {
    --bf-ink:#f4f8ff;
    --bf-muted:#d1deef;
    --bf-line:rgba(210,230,255,.25);
    color:#eef5ff;
}

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-copy :is(p,li),
article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-specs tbody :is(th,td) {
    color:#e1edff!important;
    -webkit-text-fill-color:#e1edff!important;
    opacity:1!important;
}

article.bf-adaptive-brochure:is(
    [data-template="bf-premium-editorial-01"],
    [data-template="bf-premium-visual-03"],
    [data-template="bf-premium-monolith-04"]
) .bfv4-specs thead th {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
}

/*
 * Editor placeholders:
 * Hide only synthetic helper words at rest.
 * The empty editable target stays in the DOM.
 * Reveal helper text on hover or keyboard focus.
 */

.create-preview-wrap #realPreview
article.bf-adaptive-brochure[data-template^="bf-premium-"]
[data-bf-inline-edit="1"][data-inline-empty="1"]::before {
    content:none!important;
    opacity:0!important;
}

.create-preview-wrap #realPreview
article.bf-adaptive-brochure[data-template^="bf-premium-"]
[data-bf-inline-edit="1"][data-inline-empty="1"]:is(
    :hover,:focus,:focus-visible
)::before {
    content:attr(data-inline-placeholder)!important;
    opacity:.65!important;
    pointer-events:none!important;
}

@media print {
    article.bf-adaptive-brochure[data-template^="bf-premium-"]
    [data-bf-inline-edit="1"][data-inline-empty="1"]::before {
        content:none!important;
    }
}

/* END BF_PREMIUM_DESIGN_V7_1 */
