/*
 * P25 Pantoufle — MASTER final Case Study matrix pass — 2026-09-09
 * Draft/workbench only. This file must remain last in the P25 cascade.
 */

body.mev-p25-h0.mev-p25-master{
  --p25-final-rule:#000;
  --p25-final-soft:rgba(0,0,0,.38);
  --p25-final-red:#FD0600;
}

/* Universal Case Study section labels — same functional nomenclature on every case; static by law. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-label{
  display:inline-block;
  margin:0 0 18px!important;
  padding:.45rem .7rem!important;
  border:1px solid #000!important;
  background:transparent!important;
  font-family:'General Sans',sans-serif!important;
  font-size:.66rem!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:.09em!important;
  text-transform:uppercase;
  text-wrap:nowrap!important;
  white-space:nowrap!important;
  animation:none!important;
  transition:none!important;
  transform:none!important;
  opacity:1!important;
}

/* Shared conclusion dialect: strong idea centered between dissolved red rails. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda{
  position:relative;
  box-sizing:border-box;
  width:100%!important;
  max-width:880px!important;
  margin:52px auto 0!important;
  padding:15px 28px!important;
  border:0!important;
  font-family:'General Sans',sans-serif!important;
  font-size:1.14rem!important;
  font-weight:400!important;
  line-height:1.46!important;
  letter-spacing:0!important;
  text-align:center!important;
}

/* Grey section -> beige centre. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam{
  background:linear-gradient(to right,var(--p25-grey) 0%,#f5f6ef 8%,var(--p25-beige) 14%,var(--p25-beige) 86%,#f5f6ef 92%,var(--p25-grey) 100%)!important;
}

/* Beige section -> grey centre. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--genesis,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda{
  background:linear-gradient(to right,var(--p25-beige) 0%,#f1f2e9 8%,var(--p25-grey) 14%,var(--p25-grey) 86%,#f1f2e9 92%,var(--p25-beige) 100%)!important;
}

body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion::before,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion::after,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline::before,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline::after,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda::before,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(to right,rgba(253,6,0,0) 0%,rgba(253,6,0,.42) 8%,var(--p25-final-red) 14%,var(--p25-final-red) 86%,rgba(253,6,0,.42) 92%,rgba(253,6,0,0) 100%);
  pointer-events:none;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion::before,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline::before,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda::before{top:0}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion::after,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline::after,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda::after{bottom:0}

/* Shared Case Study idea break — one subtle horizontal threshold for a genuine semantic pivot. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-idea-break{
  margin-top:34px!important;
  padding-top:26px!important;
  border-top:1px solid var(--p25-final-soft)!important;
}

/* Section 2 — Pantoufle historical instance of the same semantic separator family. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-genesis-rewrite p[data-mev-p="2"]{
  margin-top:34px!important;
  padding-top:26px!important;
  border-top:1px solid var(--p25-final-soft)!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-genesis-rewrite p[data-mev-p="3"]{
  margin-top:28px!important;
}

/* Section 3 — Shazam is the actual conclusion; one line, no bold. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam{
  display:grid!important;
  grid-template-columns:auto auto;
  justify-content:center;
  align-items:center;
  column-gap:26px;
  padding:15px 28px!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p{
  position:relative;
  margin:0!important;
  padding:0!important;
  font-family:'General Sans',sans-serif!important;
  font-size:1.06rem!important;
  font-weight:400!important;
  line-height:1.4!important;
  white-space:nowrap;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p+ p{
  padding-left:26px!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p+ p::before{
  content:'';
  position:absolute;
  left:0;
  top:.12em;
  bottom:.12em;
  width:1px;
  background:var(--p25-final-soft);
}
/* Kill every earlier Shazam internal border. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p{
  border:0!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p::before:not(:defined){display:none}

/* Programming: playlist extension is its own paragraph system; conclusion comes after it. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-takeaway{
  margin-top:54px!important;
  padding:30px 0 32px!important;
  border-top:1px solid var(--p25-final-rule)!important;
  border-bottom:1px solid var(--p25-final-rule)!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-takeaway p[data-mev-p="1"]{
  margin:0 0 24px!important;
  font-family:'Karrik',sans-serif!important;
  font-size:1.34rem!important;
  font-weight:400!important;
  line-height:1.16!important;
  letter-spacing:-.012em;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-takeaway p[data-mev-p="4"]{
  margin-top:28px!important;
  padding-top:24px!important;
  border-top:1px solid var(--p25-final-soft)!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda{
  margin-top:46px!important;
}

/* Final section: resources themselves are the conclusion field. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-return .mev-p25-coda{
  margin:36px auto 20px!important;
  text-align:center!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline{
  position:relative;
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:0;
  width:100%!important;
  max-width:880px!important;
  margin:20px auto 0!important;
  padding:14px 0!important;
  border:0!important;
  background:linear-gradient(to right,var(--p25-grey) 0%,#f5f6ef 8%,var(--p25-beige) 14%,var(--p25-beige) 86%,#f5f6ef 92%,var(--p25-grey) 100%)!important;
  text-align:center;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline::before,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(to right,rgba(253,6,0,0) 0%,rgba(253,6,0,.42) 8%,var(--p25-final-red) 14%,var(--p25-final-red) 86%,rgba(253,6,0,.42) 92%,rgba(253,6,0,0) 100%);
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline::before{top:0}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline::after{bottom:0}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource{
  position:relative;
  display:flex!important;
  flex-direction:column;
  align-items:center!important;
  justify-content:center;
  gap:5px!important;
  padding:18px 28px!important;
  border:0!important;
  color:#000!important;
  text-decoration:none!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource+ .mev-p25-lab-resource::before{
  content:''!important;
  position:absolute!important;
  left:0!important;
  top:10px!important;
  bottom:10px!important;
  width:1px!important;
  background:var(--p25-final-soft)!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource__label{
  margin:0!important;
  font-family:'General Sans',sans-serif!important;
  font-size:.76rem!important;
  font-weight:400!important;
  letter-spacing:.075em!important;
  text-transform:uppercase;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource__title{
  font-family:'Karrik',sans-serif!important;
  font-size:1.55rem!important;
  font-weight:400!important;
  line-height:1.1!important;
  text-decoration:none!important;
}

/* Four-link documentary closures stay on one horizontal line on desktop. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline--quad{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline--quad .mev-p25-lab-resource,
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline--quad .mev-p25-lab-resource+ .mev-p25-lab-resource{
  padding:18px 14px!important;
  border-top:0!important;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline--quad .mev-p25-lab-resource+ .mev-p25-lab-resource::before{
  content:''!important;
  display:block!important;
  position:absolute!important;
  left:0!important;
  top:10px!important;
  bottom:10px!important;
  width:1px!important;
  background:var(--p25-final-soft)!important;
}
@media(min-width:901px){
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline--quad .mev-p25-lab-resource__title{
    font-size:1.25rem!important;
    line-height:1.08!important;
    letter-spacing:-.012em!important;
    white-space:nowrap!important;
  }
}

/* Dayparts mobile: absolute prohibition on legacy left rails. */
@media(max-width:900px){
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart+ .mev-p25-daypart{
    padding:20px 0!important;
    border-top:0!important;
    border-left:0!important;
    border-right:0!important;
    border-bottom:1px solid var(--p25-final-soft)!important;
    box-shadow:none!important;
    background:none!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart:last-child{border-bottom:0!important}
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart::before,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart::after,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart+ .mev-p25-daypart::before,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart+ .mev-p25-daypart::after,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart h3::before,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart h3::after{
    content:none!important;
    display:none!important;
    width:0!important;
    height:0!important;
    border:0!important;
    background:none!important;
    box-shadow:none!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart h3{
    margin:0 0 10px!important;
    padding:0!important;
    white-space:nowrap!important;
    font-size:clamp(1.08rem,5vw,1.28rem)!important;
  }

  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-opening .mev-p25-lab-keyline,
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-dayparts-coda{
    margin-top:38px!important;
    padding:12px 16px!important;
    font-size:1rem!important;
    line-height:1.46!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam{
    display:block!important;
    grid-template-columns:none!important;
    width:100%!important;
    max-width:100%!important;
    padding:12px 16px!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:.96rem!important;
    font-weight:400!important;
    line-height:1.42!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p+ p{
    margin-top:12px!important;
    padding:13px 0 0!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-section-conclusion--shazam p+ p::before{
    left:14%!important;
    right:14%!important;
    top:0!important;
    bottom:auto!important;
    width:auto!important;
    height:1px!important;
    background:var(--p25-final-soft)!important;
  }

  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resources-inline{
    display:block!important;
    padding:10px 0!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource{
    padding:16px 0!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource+ .mev-p25-lab-resource::before{
    left:14%!important;
    right:14%!important;
    top:0!important;
    bottom:auto!important;
    width:auto!important;
    height:1px!important;
    background:var(--p25-final-soft)!important;
  }
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-lab-resource__title{font-size:1.4rem!important}
}

/* Shared Case Study narrative spine alignment.
 * When the prose field itself carries the spine class, preserve the same 48px inset
 * as a nested spine. This keeps the vertical reading axis consistent across cases. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-prose.mev-p25-prose-spine{
  width:calc(100% - 48px)!important;
  max-width:832px!important;
  margin-left:48px!important;
  margin-right:0!important;
}
@media(max-width:900px){
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-prose.mev-p25-prose-spine{
    width:calc(100% - 12px)!important;
    max-width:none!important;
    margin-left:12px!important;
  }
}

/* Geography rows reuse the Pantoufle daypart matrix while preserving paragraph rhythm. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-daypart__copy p+ p{
  margin-top:1em!important;
}

/* Shared Case Study law: programming rows stay on the section background.
 * Documentary/technical integration-cycle inserts alone may carry a grey field. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-daypart{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}

/* FINAL desktop cleanup — kill the historical left rail on adjacent dayparts. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-daypart + .mev-p25-daypart::before{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  background:none!important;
  border:0!important;
  box-shadow:none!important;
}

/* Playlist sub-sequence: distinct editorial entrance, not a new section. */
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-takeaway p[data-mev-p="1"]{
  max-width:820px!important;
  margin:0 auto 26px!important;
  padding:0 28px 26px!important;
  border-bottom:1px solid var(--p25-final-soft)!important;
  font-family:'Karrik',sans-serif!important;
  font-size:1.42rem!important;
  font-weight:400!important;
  line-height:1.18!important;
  letter-spacing:-.012em!important;
  text-align:center!important;
  text-wrap:balance;
}
body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-takeaway p[data-mev-p="2"]{
  display:none!important;
}

@media(max-width:900px){
  body.mev-p25-h0.mev-p25-master #post-330 .mev-p25-role-temporal .mev-p25-takeaway p[data-mev-p="1"]{
    padding:0 0 22px!important;
    font-size:1.2rem!important;
    line-height:1.22!important;
  }
}
