/* KONAI v45 — space + neutral interaction polish
   Final authority for compact Why Now panels, neutral Trust Layer visual,
   and a form dialog sized to its real content. */

/* 1. WHY NOW: preserve global section gutters, but do not stretch the two inner panels
   to an artificial shared height. Each panel owns only the height its content needs. */
.lustro-inspired #why .problem-intro{
  align-items:start!important;
}
.lustro-inspired #why .problem-intro>.problem-visual,
.lustro-inspired #why .problem-intro>.problem-copy{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  align-self:start!important;
}
.lustro-inspired #why .problem-copy{
  justify-content:flex-start!important;
}
.lustro-inspired #why .problem-visual svg{
  max-height:350px!important;
}

/* 2. TRUST LAYER: the diagram has a deliberately neutral idle state.
   Geometry remains visible; principle-specific content appears only on hover/focus/click. */
.lustro-inspired #protocol.is-trust-neutral .trust-word,
.lustro-inspired #protocol.is-trust-neutral .trust-status{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.lustro-inspired #protocol.is-trust-neutral [data-trust-path-layer]{
  opacity:.10!important;
  filter:none!important;
}
.lustro-inspired #protocol.is-trust-neutral .trust-step{
  background:rgba(10,25,44,.66)!important;
  border-color:var(--k-line)!important;
  box-shadow:none!important;
}
.lustro-inspired #protocol.is-trust-neutral .trust-step i{
  background:transparent!important;
  border-color:#61778f!important;
  box-shadow:none!important;
}
.lustro-inspired #protocol .trust-word,
.lustro-inspired #protocol .trust-status{
  transition:opacity .16s ease,visibility .16s ease!important;
}

/* Remove legacy fixed pairing height where it only creates unused vertical area. */
.lustro-inspired #protocol .trust-stack{
  align-items:start!important;
}
.lustro-inspired #protocol .trust-steps{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}

/* 3. EARLY ACCESS: fit the dialog to the actual form content instead of preserving
   a wide empty right-hand column. Global page spacing is untouched. */
.lustro-inspired .access-dialog{
  width:min(680px,calc(100% - 32px))!important;
}
.lustro-inspired .access-dialog .dialog-shell{
  padding-left:30px!important;
  padding-right:30px!important;
}
.lustro-inspired .access-dialog .form-step,
.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:none!important;
  box-sizing:border-box!important;
}

@media (max-width:760px){
  .lustro-inspired #why .problem-intro{align-items:stretch!important}
  .lustro-inspired #why .problem-intro>.problem-visual,
  .lustro-inspired #why .problem-intro>.problem-copy{width:100%!important}
  .lustro-inspired .access-dialog{width:calc(100% - 18px)!important}
  .lustro-inspired .access-dialog .dialog-shell{padding-left:20px!important;padding-right:20px!important}
}
