/* KONAI v47 — gateway flow, modal reset/fit, permission-gap type refinement */

/* 1. Audience gateway must own its natural content height.
   This overrides the older ID-specific 100% rules that clipped row two behind The Bridge. */
.lustro-inspired #audiences{
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  padding-bottom:var(--k-section-y)!important;
}
.lustro-inspired #audiences>.v27-section-inner{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  display:block!important;
  overflow:visible!important;
  zoom:1!important;
  width:100%!important;
}
.lustro-inspired #audiences .gateway-grid{
  height:auto!important;
  min-height:0!important;
  grid-template-rows:repeat(2,auto)!important;
  align-items:stretch!important;
}
.lustro-inspired #audiences .gateway-card{
  height:auto!important;
  min-height:clamp(220px,27vh,270px)!important;
}

/* 2. Early-access modal: calculate around the real two-card first-step content.
   Keep the approved inner rhythm, remove only unused horizontal canvas. */
.lustro-inspired .access-dialog{
  width:min(520px,calc(100vw - 24px))!important;
  max-width:520px!important;
  box-sizing:border-box!important;
}
.lustro-inspired .access-dialog .dialog-shell{
  width:100%!important;
  box-sizing:border-box!important;
  padding-left:20px!important;
  padding-right:20px!important;
}
.lustro-inspired .access-dialog [data-access-form],
.lustro-inspired .access-dialog .form-step,
.lustro-inspired .access-dialog fieldset,
.lustro-inspired .access-dialog .audience-options,
.lustro-inspired .access-dialog .field,
.lustro-inspired .access-dialog .field-grid,
.lustro-inspired .access-dialog .form-actions{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.lustro-inspired .access-dialog .audience-options{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* 4. Permission Gap diagram: slightly calmer internal typography only. */
.lustro-inspired #why .permission-gap-card .gap-label,
.lustro-inspired #why .permission-gap-card .gap-key span,
.lustro-inspired #why .permission-gap-card .gap-node small{
  font-size:clamp(.64rem,.05vw + .63rem,.70rem)!important;
  letter-spacing:.045em!important;
}
.lustro-inspired #why .permission-gap-card .gap-node b{
  font-size:clamp(.88rem,.30vw + .82rem,1.02rem)!important;
}
.lustro-inspired #why .permission-gap-card .gap-node>span{
  font-size:clamp(.64rem,.05vw + .63rem,.70rem)!important;
}

/* The homepage Permission Gap is an inline SVG in this build; keep its text proportional too. */
.lustro-inspired #why .permission-gap-card svg text[font-size="30"]{font-size:27px!important}
.lustro-inspired #why .permission-gap-card svg text[font-size="17"]{font-size:15px!important}
.lustro-inspired #why .permission-gap-card svg g[font-size="13"]{font-size:11.5px!important}

@media (max-width:760px){
  .lustro-inspired #audiences .gateway-grid{grid-template-rows:auto!important}
  .lustro-inspired #audiences .gateway-card{min-height:0!important}
  .lustro-inspired .access-dialog{
    width:calc(100vw - 12px)!important;
    max-width:none!important;
  }
  .lustro-inspired .access-dialog .dialog-shell{padding-left:18px!important;padding-right:18px!important}
}
