/* DotDen v2.9.0 RC8 — builder media, entitlements, typography and real module variants. */
.client-site{font-family:var(--site-font,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif)}
.client-site button,.client-site input,.client-site select,.client-site textarea{font:inherit}

/* Dedicated platform credit: separate from the customer's own footer. */
.dotden-powered-footer{width:100%;margin:0;background:#071a3a;border-top:1px solid rgba(0,140,255,.55);padding:18px 20px;box-sizing:border-box}
.dotden-powered-footer a{display:flex;align-items:center;justify-content:center;gap:10px;width:max-content;max-width:100%;margin:auto;color:#fff;text-decoration:none;font-size:.82rem;font-weight:600;letter-spacing:.01em}
.dotden-powered-footer a:hover,.dotden-powered-footer a:focus-visible{color:#008cff;outline:none}
.dotden-powered-footer img{display:block;width:auto;height:25px;max-width:90px}

/* The preview document owns its content height; never reserve an artificial page below it. */
.builder-workspace-page .builder-frame{height:auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain}
.builder-workspace-page .builder-canvas-stage{height:auto!important;min-height:0!important;align-self:start!important}
.builder-workspace-page [data-builder-frame] iframe{display:block!important;min-height:0!important;border:0!important}

/* Package usage and in-builder media library. */
.builder-entitlement-usage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 14px;padding:10px;border:1px solid #008cff;border-radius:10px;background:#071a3a;color:#dceaff;font-size:.69rem;line-height:1.4}
.builder-entitlement-usage span{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
.builder-entitlement-usage b{color:#008cff}
.builder-module-media{display:grid;gap:10px;padding:12px;border:1px solid rgba(0,140,255,.65);border-radius:10px;background:#071a3a}
.builder-module-media>div:first-child{display:grid;gap:3px}.builder-module-media strong{color:#fff}.builder-module-media small{color:#c7d9f3;line-height:1.45}
.builder-module-media-thumbs{display:flex;gap:7px;overflow:hidden}.builder-module-media-thumbs img{width:52px;height:42px;object-fit:cover;border:1px solid #008cff;border-radius:7px}
.builder-media-dialog{width:min(1040px,calc(100vw - 32px));max-width:1040px;background:#0b244c;color:#fff;border:1px solid #008cff;border-radius:14px;padding:0}
.builder-media-dialog::backdrop{background:rgba(1,10,27,.78)}
.builder-media-dialog .dd-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid rgba(0,140,255,.5);background:#071a3a}
.builder-media-dialog .dd-dialog-header h2{margin:3px 0;color:#fff}.builder-media-dialog .dd-dialog-header p{margin:4px 0 0;color:#c7d9f3}
.builder-media-dialog .dd-dialog-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid rgba(255,255,255,.7);border-radius:9px;background:#0b244c;color:#fff;font-size:1.2rem}
.builder-media-dialog .dd-dialog-body{display:grid;gap:18px;max-height:min(78dvh,850px);overflow:auto;padding:20px}
.builder-media-upload{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px;border:1px solid rgba(0,140,255,.5);border-radius:12px;background:#071a3a}
.builder-media-upload label{display:grid;gap:6px;color:#fff;font-size:.78rem}.builder-media-upload input,.builder-media-upload select{width:100%;box-sizing:border-box}.builder-media-upload .toggle-row,.builder-media-upload button{align-self:end}
.builder-media-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.builder-media-library article{display:grid;grid-template-columns:72px minmax(0,1fr);gap:9px;align-items:center;padding:10px;border:1px solid rgba(0,140,255,.45);border-radius:10px;background:#071a3a}
.builder-media-library article>img{grid-row:1/4;width:72px;height:72px;object-fit:cover;border-radius:8px}.builder-media-library article>div{min-width:0}.builder-media-library strong,.builder-media-library small{display:block;overflow:hidden;text-overflow:ellipsis}.builder-media-library strong{color:#fff}.builder-media-library small{color:#bcd0ec;font-size:.68rem;line-height:1.35}
.builder-media-library .button{width:100%;margin:0}
.builder-media-selected{display:grid;gap:10px;border-top:1px solid rgba(0,140,255,.45);padding-top:18px}.builder-media-selected header h3{margin:0;color:#008cff}.builder-media-selected header p{margin:4px 0 0;color:#c7d9f3}
.builder-section-media-row{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:10px;align-items:start;padding:10px;border:1px solid rgba(0,140,255,.45);border-radius:10px;background:#071a3a}
.builder-section-media-row img{width:72px;height:72px;object-fit:cover;border-radius:8px}.builder-section-media-row label{display:grid;gap:4px}.builder-section-media-row input,.builder-section-media-row textarea{width:100%;box-sizing:border-box}
.builder-typography{display:grid;gap:10px;margin-top:14px;padding:12px;border:1px solid #008cff;border-radius:10px}.builder-typography legend{padding:0 6px;color:#008cff;font-weight:700}.builder-font-specimen{padding:12px;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:#071a3a;color:#fff;font-size:1rem;line-height:1.5}

/* Real module variant engine. Variant classes change structure, not only labels. */
.module-hero,.module-services,.module-gallery,.module-testimonial,.module-metrics{position:relative;box-sizing:border-box}
.module-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:clamp(28px,5vw,80px);align-items:center;min-height:560px;padding:clamp(48px,7vw,110px)}
.module-hero .hero-copy{position:relative;z-index:2}.module-hero .hero-media img,.module-hero .hero-detail img{width:100%;height:100%;object-fit:cover}.module-hero .hero-media{min-height:420px;margin:0;overflow:hidden;border-radius:18px}
.module-hero.variant-full-bleed{display:block;min-height:680px;padding:0;overflow:hidden}.module-hero.variant-full-bleed>.hero-media{position:absolute;inset:0;min-height:0;border-radius:0}.module-hero.variant-full-bleed>.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.12))}.module-hero.variant-full-bleed .hero-overlay{display:flex;align-items:center;min-height:680px;padding:clamp(48px,8vw,120px)}.module-hero.variant-full-bleed .hero-copy{max-width:720px;color:#fff}
.module-hero.variant-editorial{grid-template-columns:70px minmax(0,.9fr) minmax(320px,1.1fr);align-items:end}.module-hero.variant-editorial .hero-index{align-self:start;font-size:2rem;color:var(--site-accent)}.module-hero.variant-editorial .hero-detail{position:absolute;right:4%;bottom:4%;width:22%;height:28%;margin:0;overflow:hidden;border:8px solid #fff}
.module-hero.variant-soft-panel{background:color-mix(in srgb,var(--site-primary) 10%,#fff);border-radius:32px;margin:32px;min-height:500px}.module-hero.variant-soft-panel .hero-soft-panel{padding:clamp(24px,4vw,60px);border-radius:22px;background:#fff;box-shadow:0 18px 60px rgba(0,0,0,.1)}

.module-services{padding:clamp(44px,6vw,90px)}.module-services>header{max-width:720px;margin-bottom:28px}.module-services [class^="service-"]:not(.service-media){gap:18px}
.service-cards,.service-icon-cards,.service-image-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-cards article,.service-icon-cards article,.service-image-cards article{padding:24px;border:1px solid color-mix(in srgb,var(--site-primary) 26%,transparent);border-radius:16px;background:#fff}.service-icon-cards article i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--site-accent);color:#fff;font-style:normal;font-size:1.2rem}.service-image-cards article{padding:0;overflow:hidden}.service-image-cards article>h3,.service-image-cards article>p,.service-image-cards article>b{margin-left:20px;margin-right:20px}.service-image-cards .service-media{height:210px;margin:0}.service-image-cards .service-media img{width:100%;height:100%;object-fit:cover}
.service-pill-list{display:flex;flex-wrap:wrap;gap:12px}.service-pill-list span{padding:12px 18px;border:1px solid var(--site-accent);border-radius:999px;background:color-mix(in srgb,var(--site-accent) 9%,#fff);font-weight:700}
.service-numbered{display:grid;gap:0;margin:0;padding:0;list-style:none}.service-numbered li{display:grid;grid-template-columns:80px minmax(0,1fr);gap:20px;padding:24px 0;border-top:1px solid currentColor}.service-numbered li>span{color:var(--site-accent);font-size:1.4rem}
.service-alternating{display:grid;gap:36px}.service-alternating article{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);gap:40px;align-items:center}.service-alternating article:nth-child(even) .service-media{order:2}.service-alternating .service-media{height:300px;margin:0}.service-alternating img{width:100%;height:100%;object-fit:cover}
.service-featured{display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1fr);gap:28px}.service-featured>.service-media{grid-row:1/3;height:100%;min-height:430px;margin:0}.service-featured>.service-media img{width:100%;height:100%;object-fit:cover}.service-featured .primary{padding:30px;background:var(--site-primary);color:#fff}.service-featured .supporting{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.service-featured .supporting article{padding:18px;border:1px solid color-mix(in srgb,var(--site-primary) 30%,transparent)}

.module-gallery{padding:clamp(44px,6vw,90px)}.module-gallery>header{max-width:760px;margin-bottom:28px}.module-gallery figure{margin:0;overflow:hidden}.module-gallery img{display:block;width:100%;height:100%;object-fit:cover}.gallery-grid,.gallery-portfolio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gallery-grid figure{aspect-ratio:4/3}.gallery-portfolio figure{display:grid;grid-template-rows:260px auto;border:1px solid color-mix(in srgb,var(--site-primary) 24%,transparent);background:#fff}.gallery-portfolio figcaption{padding:14px;font-weight:700}.gallery-masonry{columns:3 260px;column-gap:16px}.gallery-masonry figure{break-inside:avoid;margin-bottom:16px}.gallery-masonry figure:nth-child(3n+1){height:420px}.gallery-masonry figure:nth-child(3n+2){height:270px}.gallery-masonry figure:nth-child(3n){height:340px}
.gallery-featured{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(220px,.45fr);gap:14px}.gallery-featured>.gallery-primary{min-height:560px}.gallery-featured>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gallery-featured .gallery-thumb{min-height:220px}.gallery-carousel,.testimonial-carousel{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}.gallery-carousel figure{flex:0 0 min(76vw,620px);height:430px;scroll-snap-align:start}.gallery-before-after{display:grid;gap:22px}.gallery-before-after article>div{display:grid;grid-template-columns:1fr 1fr;gap:4px;height:430px}.gallery-before-after article{display:grid;grid-template-columns:1fr 1fr}.gallery-before-after article>div{grid-column:1/-1}.gallery-before-after article>span{padding:8px 12px;background:var(--site-primary);color:#fff;text-align:center}

.module-testimonial{padding:clamp(48px,7vw,110px)}.testimonial-item{margin:0}.testimonial-item blockquote{margin:0;font-size:clamp(1.2rem,2.2vw,2rem);line-height:1.45}.testimonial-item p{font-weight:700;color:var(--site-accent)}.testimonial-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.testimonial-cards .testimonial-item{padding:28px;border:1px solid color-mix(in srgb,var(--site-primary) 24%,transparent);border-radius:18px;background:#fff}.testimonial-feature{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:50px;align-items:center}.testimonial-feature>.testimonial-media{height:460px;margin:0}.testimonial-feature img{width:100%;height:100%;object-fit:cover}.testimonial-feature blockquote{font-size:clamp(1.7rem,4vw,3.7rem);line-height:1.2}.testimonial-editorial{max-width:1000px;margin:auto;text-align:center}.testimonial-editorial .quote-mark{display:block;color:var(--site-accent);font:700 7rem/1 Georgia,serif}.testimonial-editorial blockquote{margin:0;font-size:clamp(2rem,5vw,5rem);line-height:1.08}.testimonial-profile{display:grid;grid-template-columns:180px minmax(0,1fr);gap:32px;align-items:center;max-width:900px;margin:auto}.testimonial-profile>.testimonial-media{width:180px;height:180px;margin:0;border-radius:50%}.testimonial-profile img{width:100%;height:100%;object-fit:cover}.testimonial-carousel .testimonial-item{flex:0 0 min(78vw,580px);padding:30px;border:1px solid var(--site-accent);scroll-snap-align:start}

.module-metrics{padding:clamp(32px,5vw,72px)}.metrics-cards,.metrics-strip,.metrics-pills,.metrics-editorial{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.module-metrics article{display:grid;gap:6px}.module-metrics article strong{font-size:clamp(1.8rem,4vw,4rem);color:var(--site-accent)}.metrics-cards article{padding:24px;border:1px solid color-mix(in srgb,var(--site-primary) 24%,transparent);border-radius:14px}.metrics-strip{gap:0;background:var(--site-primary);color:#fff}.metrics-strip article{padding:26px;border-right:1px solid rgba(255,255,255,.25)}.metrics-pills{display:flex;flex-wrap:wrap}.metrics-pills article{display:flex;align-items:center;gap:10px;padding:12px 18px;border:1px solid var(--site-accent);border-radius:999px}.metrics-pills article strong{font-size:1.1rem}.metrics-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}.metrics-checklist li{display:grid;grid-template-columns:32px auto 1fr;gap:10px;align-items:center;padding:16px;border-bottom:1px solid color-mix(in srgb,var(--site-primary) 24%,transparent)}.metrics-checklist i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--site-accent);color:#fff;font-style:normal}

@media(max-width:860px){
  .builder-entitlement-usage{grid-template-columns:1fr}.builder-media-upload{grid-template-columns:1fr}.builder-section-media-row{grid-template-columns:58px minmax(0,1fr)}.builder-section-media-row>button{grid-column:2}
  .module-hero,.module-hero.variant-editorial,.module-hero.variant-soft-panel{grid-template-columns:1fr;min-height:0;margin:0;border-radius:0}.module-hero.variant-full-bleed,.module-hero.variant-full-bleed .hero-overlay{min-height:560px}.module-hero.variant-editorial .hero-index{display:none}.module-hero.variant-editorial .hero-detail{display:none}
  .service-cards,.service-icon-cards,.service-image-cards,.testimonial-cards,.metrics-cards,.metrics-strip,.metrics-editorial{grid-template-columns:1fr 1fr}.service-alternating article,.service-featured,.testimonial-feature{grid-template-columns:1fr}.service-alternating article:nth-child(even) .service-media{order:0}.gallery-grid,.gallery-portfolio{grid-template-columns:1fr 1fr}.gallery-featured{grid-template-columns:1fr}.gallery-featured>.gallery-primary{min-height:420px}.testimonial-profile{grid-template-columns:120px minmax(0,1fr)}.testimonial-profile>.testimonial-media{width:120px;height:120px}
}
@media(max-width:560px){
  .dotden-powered-footer{padding:15px}.dotden-powered-footer img{height:22px}
  .builder-media-dialog{width:calc(100vw - 16px)}.builder-media-dialog .dd-dialog-body{padding:14px}.builder-media-library{grid-template-columns:1fr}
  .module-hero,.module-services,.module-gallery,.module-testimonial,.module-metrics{padding:36px 20px}.module-hero.variant-full-bleed{padding:0}.module-hero.variant-full-bleed .hero-overlay{padding:36px 20px}.module-hero .hero-media{min-height:280px}
  .service-cards,.service-icon-cards,.service-image-cards,.testimonial-cards,.metrics-cards,.metrics-strip,.metrics-editorial,.gallery-grid,.gallery-portfolio,.metrics-checklist{grid-template-columns:1fr}.service-featured .supporting{grid-template-columns:1fr}.service-alternating .service-media{height:240px}.gallery-masonry{columns:1}.gallery-featured>.gallery-primary{min-height:300px}.gallery-featured .gallery-thumb{min-height:140px}.gallery-before-after article>div{height:280px}.testimonial-feature>.testimonial-media{height:320px}.testimonial-profile{grid-template-columns:1fr}.testimonial-profile>.testimonial-media{width:96px;height:96px}.gallery-carousel figure{height:300px}
}
.v293-entitlement-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.v293-entitlement-card{display:grid;gap:12px;padding:16px;border:1px solid #008cff;border-radius:12px;background:#071a3a;color:#fff}.v293-entitlement-card h3{margin:3px 0;color:#fff}.v293-entitlement-card p{margin:0;color:#c7d9f3;font-size:.78rem;line-height:1.5}.v293-entitlement-card label{display:grid;gap:6px;color:#fff}.v293-entitlement-card input,.v293-entitlement-card select{width:100%;box-sizing:border-box}
