/* SCC Nexus Evidence page containment and typography.
   Page-specific rules are isolated here so Evidence cannot destabilise the
   global design system. The scale is aligned deliberately with Projects and
   Research rather than using a separate oversized editorial hierarchy. */

html,body{max-width:100%;overflow-x:hidden}

.visual-proof-hero,
.visual-proof-hero .shell,
.proof-hero-grid,
.proof-hero-copy,
.proof-orbit,
.proof-definitions,
.featured-proof,
.audit-trail-section,
.proof-ledger-section,
.evidence-next{min-width:0;max-width:100%}

.proof-hero-copy h1{
  max-width:14ch!important;
  font-size:clamp(3.8rem,6.2vw,6.4rem)!important;
  line-height:.94!important;
  letter-spacing:-.04em!important;
  text-wrap:balance;
  overflow-wrap:normal;
  word-break:normal;
}

.proof-hero-copy .lede{max-width:46rem!important;line-height:1.55!important}

.audit-trail-section .section-heading h2,
.proof-ledger-section .section-heading h2,
.evidence-next h2{
  max-width:22ch!important;
  font-size:clamp(2.65rem,4.3vw,4.35rem)!important;
  line-height:1.01!important;
  letter-spacing:-.035em!important;
  text-wrap:balance;
}

.proof-feature-card h3{
  font-size:clamp(2rem,3.1vw,3.2rem)!important;
  line-height:1.03!important;
  text-wrap:balance;
}

.proof-definition-grid h2,
.audit-trail-grid h3{line-height:1.05!important;text-wrap:balance}

.proof-accordion summary b{
  line-height:1.06!important;
  text-wrap:balance;
  overflow-wrap:break-word;
}

.proof-chip-row span,
.proof-feature-card,
.proof-feature-copy,
.proof-accordion,
.proof-accordion details,
.audit-callout{min-width:0;overflow-wrap:break-word}

@media (max-width:980px){
  .proof-hero-grid{
    grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr)!important;
    gap:2rem!important;
  }
  .proof-hero-copy h1{font-size:clamp(3.3rem,7vw,5rem)!important}
}

@media (max-width:760px){
  .visual-proof-hero,
  .visual-proof-hero .shell,
  .proof-hero-grid,
  .proof-hero-copy,
  .proof-orbit{min-width:0;max-width:100%;width:100%}

  .visual-proof-hero{overflow:hidden}

  .proof-hero-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:1.5rem!important;
    padding-top:2.75rem!important;
    padding-bottom:2.6rem!important;
  }

  .proof-hero-copy{display:block!important;min-width:0!important}

  .proof-hero-copy .eyebrow{
    max-width:100%;
    font-size:.66rem!important;
    line-height:1.45!important;
    letter-spacing:.11em!important;
    overflow-wrap:anywhere;
  }

  .proof-hero-copy h1{
    width:100%;
    max-width:18ch!important;
    margin:0 0 1.15rem!important;
    font-size:clamp(2.55rem,11vw,3.45rem)!important;
    line-height:.98!important;
    letter-spacing:-.035em!important;
    overflow-wrap:normal;
    word-break:normal;
    text-wrap:balance;
  }

  .proof-hero-copy .lede{
    width:100%;
    max-width:38rem!important;
    font-size:1rem!important;
    line-height:1.58!important;
    overflow-wrap:break-word;
  }

  .proof-chip-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:.6rem!important;
    width:100%;
    max-width:100%;
  }

  .proof-chip-row span{
    min-width:0!important;
    width:100%!important;
    padding:.68rem .52rem!important;
    font-size:.74rem!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
  }

  .proof-orbit{
    margin:0 auto!important;
    width:min(100%,360px)!important;
    aspect-ratio:1/1!important;
    height:auto!important;
    transform:none!important;
    overflow:visible;
  }

  .orbit-core{
    width:42%!important;
    height:42%!important;
    min-width:0!important;
  }

  .orbit-node{
    max-width:44%!important;
    min-width:0!important;
    padding:.52rem .48rem!important;
    font-size:.69rem!important;
    line-height:1.15!important;
    white-space:normal!important;
    text-align:center;
  }

  .proof-definitions,
  .featured-proof,
  .audit-trail-section,
  .proof-ledger-section,
  .evidence-next{overflow:hidden}

  .proof-definition-grid,
  .proof-feature-grid,
  .audit-trail-grid,
  .detail-proof-grid,
  .evidence-next-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }

  .proof-definitions h2,
  .proof-feature-card h3,
  .audit-trail-section .section-heading h2,
  .proof-ledger-section .section-heading h2,
  .evidence-next h2{
    max-width:100%!important;
    overflow-wrap:break-word;
    word-break:normal;
    text-wrap:balance;
  }

  .audit-trail-section .section-heading h2,
  .proof-ledger-section .section-heading h2,
  .evidence-next h2{
    font-size:clamp(2rem,8.5vw,2.8rem)!important;
    line-height:1.04!important;
    letter-spacing:-.025em!important;
  }

  .proof-feature-card h3{
    font-size:clamp(1.8rem,7.5vw,2.35rem)!important;
    line-height:1.06!important;
  }

  .proof-accordion summary{
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:.7rem!important;
    align-items:start!important;
  }

  .proof-accordion summary em{
    grid-column:2!important;
    justify-self:start!important;
    max-width:100%!important;
    text-align:left!important;
    white-space:normal!important;
  }

  .proof-accordion summary b{
    font-size:clamp(1.45rem,6.6vw,2rem)!important;
    line-height:1.08!important;
    overflow-wrap:break-word;
  }
}

@media (max-width:420px){
  .proof-hero-copy h1{font-size:clamp(2.35rem,10.5vw,2.9rem)!important}
  .proof-chip-row{grid-template-columns:minmax(0,1fr)!important}
  .proof-orbit{width:min(100%,320px)!important}
}
