/*! NBC v6.692 · Case Layout Foundation · editorial proof rhythm */

/* Scope: Case index + case detail only. No content, ambient runtime or global typography changes. */
body.page-family-cases[data-case-layout="v6692"]{
  --case-final-paper:#f2f0e9;
  --case-final-paper-2:#ebe8e0;
  --case-final-ink:#111711;
  --case-final-muted:#5c625c;
  --case-final-line:rgba(17,23,17,.15);
  --case-final-mint:#3f7950;
  --case-final-deep:#07100b;
  --case-final-deep-2:#09140e;
}

/* ================================================================
   CASE INDEX · proof ledger rather than a wall of dark cards
   ================================================================ */
@media (min-width:761px){
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-hero{
    padding-top:clamp(148px,11vw,176px);
    padding-bottom:clamp(78px,6.5vw,104px);
    border-bottom:1px solid rgba(247,245,242,.12);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-hero-grid{
    grid-template-columns:minmax(0,1.25fr) minmax(340px,.68fr);
    gap:clamp(64px,7vw,118px);
    align-items:end;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-hero-copy{
    max-width:35ch;
    font-size:clamp(18px,1.35vw,21px);
    line-height:1.58;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-hero-note{
    max-width:43ch;
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid rgba(247,245,242,.13);
    color:rgba(247,245,242,.48);
    font-size:13px;
    line-height:1.58;
  }

  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library{
    padding:clamp(88px,7vw,112px) 0 clamp(104px,8vw,132px)!important;
    background:linear-gradient(180deg,var(--case-final-paper),var(--case-final-paper-2))!important;
    color:var(--case-final-ink)!important;
    border:0!important;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library .case2-wrap{
    width:min(calc(100% - (2 * var(--case2-gutter))),1360px);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library-head{
    display:grid;
    grid-template-columns:minmax(0,1.02fr) minmax(320px,.58fr);
    grid-template-areas:"title copy" "note note";
    gap:24px clamp(54px,6vw,96px);
    align-items:end;
    margin:0 0 54px;
    padding:0 0 34px;
    border-bottom:1px solid var(--case-final-line);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library-head>div{grid-area:title}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library-head>p:not(.p74-ledger-note){
    grid-area:copy;
    max-width:39ch;
    margin:0;
    color:var(--case-final-muted)!important;
    font-size:16px;
    line-height:1.62;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library-head .p74-ledger-note{
    grid-area:note;
    margin:8px 0 0;
    padding-top:18px;
    border-top:1px solid var(--case-final-line);
    color:var(--case-final-mint)!important;
    font:500 10px/1.55 var(--mono,monospace);
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library :is(.case2-eyebrow,.case2-index-link){color:var(--case-final-mint)!important}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library :is(h2,h3,strong){color:var(--case-final-ink)!important}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-library .case2-section-title{
    max-width:17ch;
  }

  body.page-template-case-index[data-case-layout="v6692"] .case2-index-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    margin:0;
    background:transparent;
    border-top:1px solid var(--case-final-line);
    border-bottom:1px solid var(--case-final-line);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card{
    min-height:330px;
    padding:34px 38px 32px;
    border:0;
    border-bottom:1px solid var(--case-final-line);
    background:transparent;
    color:var(--case-final-ink);
    transition:background .25s ease,transform .25s ease;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card:nth-child(even):not(.case2-index-card--featured){border-left:1px solid var(--case-final-line)}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card:nth-last-child(-n+2){border-bottom:0}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card:hover,
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card:focus-visible{
    background:rgba(63,121,80,.055);
    transform:translateY(-2px);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-meta{
    display:flex;
    justify-content:space-between;
    gap:18px;
    color:var(--case-final-mint);
    font:500 10px/1.45 var(--mono,monospace);
    letter-spacing:.09em;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-outcome{
    margin:46px 0 18px;
    color:var(--case-final-ink);
    font-size:clamp(40px,3.8vw,58px);
    line-height:.92;
    letter-spacing:-.052em;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card h3{
    max-width:18ch;
    color:var(--case-final-ink);
    font-size:clamp(24px,2vw,31px);
    line-height:1.04;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card p{
    max-width:54ch;
    color:var(--case-final-muted);
    font-size:15px;
    line-height:1.62;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-relevance{
    color:rgba(17,23,17,.5);
  }

  /* Lead case = one deliberate proof moment, not merely the first card. */
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(300px,.75fr) minmax(0,1fr);
    grid-template-areas:"meta meta" "metric copy" "metric footer";
    gap:0 clamp(64px,7vw,112px);
    min-height:360px;
    padding:42px 46px 40px;
    border-bottom:1px solid var(--case-final-line);
    background:linear-gradient(135deg,rgba(63,121,80,.075),rgba(255,255,255,.12) 60%);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured .case2-index-meta{grid-area:meta}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured .case2-index-outcome-wrap{grid-area:metric;align-self:center}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured .case2-index-copy{grid-area:copy;align-self:end}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured .case2-index-footer{grid-area:footer;align-self:start}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured .case2-index-outcome{
    margin:36px 0 0;
    font-size:clamp(58px,5.4vw,82px);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured h3{
    max-width:15ch;
    font-size:clamp(30px,2.8vw,42px);
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured p{font-size:16px}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-card--featured .case2-index-relevance{margin-top:24px;padding-top:0}

  body.page-template-case-index[data-case-layout="v6692"] .case2-index-cta{
    padding:clamp(84px,7vw,112px) 0!important;
    border-top:0;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-cta-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:clamp(54px,7vw,112px);
    align-items:end;
  }
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-cta .case2-section-title{max-width:16ch}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-cta-copy{max-width:62ch;margin-top:24px;color:rgba(247,245,242,.62);font-size:16px;line-height:1.62}
  body.page-template-case-index[data-case-layout="v6692"] .case2-index-cta-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
}

/* ================================================================
   CASE DETAIL · clear acts: problem → decision → transfer → evidence
   ================================================================ */
@media (min-width:761px){
  body.page-template-case-detail[data-case-layout="v6692"] .case2-hero{
    min-height:min(760px,82svh);
    padding-top:clamp(154px,12vw,190px);
    padding-bottom:clamp(72px,6vw,96px);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-hero-grid{
    grid-template-columns:minmax(0,1.18fr) minmax(300px,.52fr);
    gap:clamp(72px,7vw,118px);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-title{max-width:13ch}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-hero-context{
    align-self:end;
    max-width:360px;
    padding:22px 0 0 24px;
    border-top:1px solid rgba(247,245,242,.18);
    border-left:1px solid rgba(134,200,149,.45);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-hero-context p{font-size:16px;line-height:1.58;color:rgba(247,245,242,.69)}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-context-label,
  body.page-template-case-detail[data-case-layout="v6692"] .case2-context-link{color:#9bd9aa}

  body.page-template-case-detail[data-case-layout="v6692"] .p74-case-trace{
    position:relative;
    padding:0 var(--case2-gutter);
    border-block:1px solid rgba(247,245,242,.12);
    background:rgba(7,16,11,.78);
    backdrop-filter:blur(14px);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .p74-case-trace ol{
    width:min(100%,1360px);
    margin:auto;
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    list-style:none;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .p74-case-trace li+li{border-left:1px solid rgba(247,245,242,.09)}
  body.page-template-case-detail[data-case-layout="v6692"] .p74-case-trace a{
    display:grid;
    grid-template-columns:24px 1fr;
    gap:8px;
    min-height:70px;
    padding:17px 14px;
    color:rgba(247,245,242,.66);
    text-decoration:none;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .p74-case-trace__no{color:#8bcf9a;font:500 9px/1.4 var(--mono,monospace)}
  body.page-template-case-detail[data-case-layout="v6692"] .p74-case-trace__label{font-size:12px;line-height:1.35;font-weight:650}

  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="outcome"]{
    padding-top:clamp(86px,7vw,110px)!important;
    padding-bottom:clamp(94px,7.5vw,120px)!important;
  }
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="outcome"] .case2-section-head{
    max-width:980px;
    margin-bottom:44px;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-film-stage{
    min-height:clamp(520px,48vw,690px);
    border:1px solid rgba(247,245,242,.13);
    border-radius:10px;
    background:linear-gradient(180deg,rgba(247,245,242,.026),rgba(247,245,242,.008));
  }

  /* The decision is deliberately a paper cut in the story. */
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="decision"]{
    padding-block:clamp(92px,7.5vw,120px)!important;
    background:linear-gradient(180deg,var(--case-final-paper),var(--case-final-paper-2))!important;
    color:var(--case-final-ink)!important;
    border:0!important;
  }
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="decision"] .case2-wrap{width:min(calc(100% - (2 * var(--case2-gutter))),1320px)}
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="decision"] :is(h2,h3,strong){color:var(--case-final-ink)!important}
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="decision"] :is(p,li){color:var(--case-final-muted)!important}
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="decision"] .case2-eyebrow,
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="decision"] .case2-intervention-index{color:var(--case-final-mint)!important}
  body.page-template-case-detail[data-case-layout="v6692"] .p74-decision-contrast{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:38px 0 0;
    border-block:1px solid var(--case-final-line);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .p74-decision-contrast>div{
    padding:22px 26px 24px 0;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .p74-decision-contrast>div+div{padding-left:26px;border-left:1px solid var(--case-final-line)}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-interventions{
    margin-top:56px;
    border-top:1px solid var(--case-final-line);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-intervention{
    padding:30px 34px 10px 0;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-intervention+.case2-intervention{
    padding-left:34px;
    border-left:1px solid var(--case-final-line);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-intervention h3{font-size:clamp(24px,2vw,31px)}

  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="transfer"]{
    padding-block:clamp(88px,7vw,112px)!important;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-transfer{
    padding-block:0;
    border-block:0;
    grid-template-columns:minmax(0,.72fr) minmax(0,1fr);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-transfer::before{top:0}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-transfer-list li{font-size:clamp(17px,1.35vw,20px)}

  /* Evidence = another light proof sheet, denser than the decision sheet. */
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="evidence"]{
    padding-block:clamp(82px,6.5vw,104px)!important;
    background:linear-gradient(180deg,#eef0e9,var(--case-final-paper-2))!important;
    color:var(--case-final-ink)!important;
    border:0!important;
  }
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="evidence"] .case2-wrap{width:min(calc(100% - (2 * var(--case2-gutter))),1320px)}
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="evidence"] :is(h2,h3,strong,dt){color:var(--case-final-ink)!important}
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="evidence"] :is(p,li){color:var(--case-final-muted)!important}
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="evidence"] .case2-eyebrow,
  body.page-template-case-detail[data-case-layout="v6692"] [data-p74-case-act="evidence"] .case2-detail-label{color:var(--case-final-mint)!important}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-evidence-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    margin-top:48px;
    border-block:1px solid var(--case-final-line);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-evidence-fact+.case2-evidence-fact{border-left:1px solid var(--case-final-line)}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-evidence-fact span{color:rgba(17,23,17,.52)}
  body.page-template-case-detail[data-case-layout="v6692"] details.case2-evidence-disclosure{border-color:var(--case-final-line)}
  body.page-template-case-detail[data-case-layout="v6692"] details.case2-evidence-disclosure>summary{color:var(--case-final-muted)}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-evidence-detail>*{border-color:var(--case-final-line)}

  body.page-template-case-detail[data-case-layout="v6692"] #case-next-step{
    padding-top:clamp(86px,7vw,110px);
    padding-bottom:0;
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-related-grid{
    border-block:1px solid rgba(247,245,242,.13);
    background:rgba(247,245,242,.10);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-related-card{
    min-height:310px;
    padding:34px 38px 36px;
    background:rgba(4,10,7,.38);
  }
  body.page-template-case-detail[data-case-layout="v6692"] .case2-related-card+ .case2-related-card{border-left:1px solid rgba(247,245,242,.12)}
  body.page-template-case-detail[data-case-layout="v6692"] .case2-cta--embedded{
    margin-top:82px;
    padding-block:clamp(86px,7vw,116px);
    border-top:1px solid rgba(247,245,242,.12);
  }
}

/* Mobile intentionally remains owned by the existing Phase 7.4 / mobile runtime in this desktop foundation wave. */
@media (prefers-reduced-motion:reduce){
  body.page-family-cases[data-case-layout="v6692"] .case2-index-card{transition:none!important}
}
