/* OPB production aids that are not in the Fieldbook preview stylesheet.
   Platform card chrome is excluded in the shared layout files, so this file
   does not restate backgrounds, borders, or type with !important. */

body.nel-opb-v3 .preview-banner{display:none}
/* Glass sits in the image layer. The shared surface color and border stay
   so the site-shell signature still matches every other page. */
body.nel-opb-v3{
  --nel-header-background-image:linear-gradient(180deg,rgba(255,253,250,.96),rgba(251,250,247,.84));
  --nel-header-backdrop:saturate(1.4) blur(14px);
  --nel-header-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 10px 28px rgba(22,20,15,.045);
}
/* html keeps overflow-x clip. Body must not become its own scrollport,
   or the sticky TOC cannot follow the page the way the Fieldbook preview does. */
body.nel-opb-v3{
  overflow-x:visible;
  overflow-y:visible;
}
/* Grid items do not collapse the preview's trailing preset margin, which
   otherwise adds a blank band under the scenario cards. */
body.nel-opb-v3 > main > .scenario-section > .preset-desc{margin-bottom:0}

/* Quieter TOC and a tighter docs band. Card, orange rail, and active wash stay. */
@media (min-width:961px){
  body.nel-opb-v3.v3 > main > .below{
    gap:18px;
    margin-top:16px;
  }
  body.nel-opb-v3.v3 .below > .toc{
    padding:10px 8px 12px;
  }
  body.nel-opb-v3.v3 .below > .toc h4{
    margin:0 0 6px;
    padding:0 8px;
    font:600 10px var(--sans) !important;
    letter-spacing:.08em !important;
    color:var(--v3-muted, #64748B) !important;
  }
  body.nel-opb-v3.v3 .below > .toc a{
    padding:4px 8px 4px 10px;
    color:var(--v3-muted, #64748B);
    font:400 12px/1.3 var(--sans);
  }
  body.nel-opb-v3.v3 .below > .toc a:hover{
    color:var(--v3-ink, #0F172A);
  }
  body.nel-opb-v3.v3 .below > .toc a.on{
    border-left-color:var(--amber, #E8590C);
    background:rgba(255,247,237,.95);
    color:var(--v3-ink, #0F172A);
    font-weight:500;
  }
}
@media (min-width:1180px){
  body.nel-opb-v3.v3 > main > .below{
    gap:18px;
  }
}

body.nel-opb-v3 details.fb-fold,
body.nel-opb-v3 #component-check,
body.nel-opb-v3 #methodology,
body.nel-opb-v3 #about-scope,
body.nel-opb-v3 #status-rules,
body.nel-opb-v3 #faq,
body.nel-opb-v3 #history,
body.nel-opb-v3 #references,
body.nel-opb-v3 #content-review,
body.nel-opb-v3 #nel-tool-graph,
body.nel-opb-v3 #calculator{
  scroll-margin-top:88px;
}

/* Mobile: fold full workflow details; keep step bar + prev/next */
@media (max-width:768px){
  body.nel-opb-v3 .nel-wf-extra{display:none}
  body.nel-opb-v3 details.nel-wf-fold > summary{
    list-style:none;
    cursor:pointer;
    font:600 13px/1.4 var(--sans);
    color:#334155;
    padding:10px 0 4px;
  }
  body.nel-opb-v3 details.nel-wf-fold > summary::-webkit-details-marker{display:none}
  body.nel-opb-v3 details.nel-wf-fold:not([open]) .nel-wf-extra{display:none}
  body.nel-opb-v3 details.nel-wf-fold[open] .nel-wf-extra{display:block}
}
@media (min-width:769px){
  body.nel-opb-v3 details.nel-wf-fold > summary{display:none}
  body.nel-opb-v3 .nel-wf-extra{display:block}
}
