/* MEV 2.0 — Phase 03B Body Internal Construction — P03 RETROFIT CANDIDATE / shared tempo law. */

html.mev-ic-js body.mev-ic-active .mev-p03c-principle,
html.mev-ic-js body.mev-ic-active .mev-p03c-opening-pair,
html.mev-ic-js body.mev-ic-active .mev-p03c-field,
html.mev-ic-js body.mev-ic-active .mev-p03c-overview,
html.mev-ic-js body.mev-ic-active .mev-p03c-overview-row,
html.mev-ic-js body.mev-ic-active .mev-p03c-cycle-note,
html.mev-ic-js body.mev-ic-active .mev-p03c-cycle,
html.mev-ic-js body.mev-ic-active .mev-p03c-cycle-row,
html.mev-ic-js body.mev-ic-active .mev-p03c-inline-principle,
html.mev-ic-js body.mev-ic-active .mev-p03c-adapt,
html.mev-ic-js body.mev-ic-active .mev-p03c-adapt>div,
html.mev-ic-js body.mev-ic-active .mev-p03c-sectors,
html.mev-ic-js body.mev-ic-active .mev-p03c-sectors article{position:relative}

/* Hide only frozen lines that are replaced by exact kinetic overlays. Red rails remain native/static. */
html.mev-ic-js body.mev-ic-active .mev-p03c-opening-pair{border-top-color:transparent!important;border-bottom-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-field + .mev-p03c-field:before{background:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-overview{border-top-color:transparent!important;border-bottom-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-overview-row{border-bottom-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-cycle{border-top-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-cycle-row{border-bottom-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-cycle-marker:after{background:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-adapt{border-top-color:transparent!important;border-bottom-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-adapt>div{border-bottom-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-sectors{border-top-color:transparent!important}
html.mev-ic-js body.mev-ic-active .mev-p03c-sectors article{border-bottom-color:transparent!important}

html.mev-ic-js body.mev-ic-active .mev-ic-v4-line{
  --mev-ic-color:#000;
  --mev-ic-ms:1000ms;
  position:absolute;
  display:block;
  pointer-events:none;
  z-index:6;
  background:var(--mev-ic-color);
  will-change:transform;
}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line--h{
  left:0;right:0;height:1px;
  transform:scaleX(0);
  transition:transform var(--mev-ic-ms) cubic-bezier(.18,.72,.22,1);
}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line--v{
  top:0;bottom:0;width:1px;
  transform:scaleY(0);
  transition:transform var(--mev-ic-ms) cubic-bezier(.18,.72,.22,1);
}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-dir="ltr"]{transform-origin:0 50%}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-dir="rtl"]{transform-origin:100% 50%}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-dir="ttb"]{transform-origin:50% 0}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-dir="btt"]{transform-origin:50% 100%}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-dir="c2e"]{transform-origin:50% 50%}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line.is-built.mev-ic-v4-line--h{transform:scaleX(1)}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line.is-built.mev-ic-v4-line--v{transform:scaleY(1)}

html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-edge="top"]{top:0}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-edge="bottom"]{bottom:0}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="opening-axis"]{left:0}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="opening-middle"]{display:none}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="cycle-axis"]{left:190px}

html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="black"]{--mev-ic-color:#000}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="48"]{--mev-ic-color:rgba(0,0,0,.48)}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="38"]{--mev-ic-color:rgba(0,0,0,.38)}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="35"]{--mev-ic-color:rgba(0,0,0,.35)}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="55"]{--mev-ic-color:rgba(0,0,0,.55)}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="30"]{--mev-ic-color:rgba(0,0,0,.30)}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-tone="42"]{--mev-ic-color:rgba(0,0,0,.42)}

html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel{
  position:absolute;
  width:1px;height:1px;
  left:50%;
  pointer-events:none;
  opacity:0;
}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel[data-edge="top"]{top:0}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel[data-edge="bottom"]{bottom:0}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel[data-edge="axis"]{top:28px}
html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel[data-edge="middle"]{top:0}

@media(max-width:780px){
  /* Technical overlays/sentinels must not steal frozen structural child ownership. */
  html.mev-ic-js body.mev-ic-active .mev-p03c-overview-row>span:nth-child(3):not(.mev-ic-v4-line):not(.mev-ic-v4-sentinel){
    grid-column:2;
    grid-row:2;
    min-width:0;
    overflow-wrap:normal;
    word-break:normal;
    hyphens:none;
  }
  html.mev-ic-js body.mev-ic-active .mev-p03c-field + .mev-p03c-field{border-top-color:transparent!important}
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="opening-axis"],
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel[data-role="opening-axis"],
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="cycle-axis"],
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-sentinel[data-role="cycle-axis"]{display:none!important}
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="opening-middle"]{display:block;top:0;bottom:auto;height:1px;left:0;right:0}
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-line[data-role="opening-bottom"]{transform-origin:0 50%}
  html.mev-ic-js body.mev-ic-active .mev-p03c-cycle-marker:after{display:none!important}
}

@media(prefers-reduced-motion:reduce){
  html.mev-ic-js body.mev-ic-active .mev-ic-v4-line{transition:none!important;transform:none!important;background:var(--mev-ic-color)!important}
}
