.ep { --ep-line: #F5F3FF; }
.ep .ep-h2 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 500; color: var(--band-fg); margin: 0; letter-spacing: 0; text-transform: none; }
.ep .ep-h2:focus { outline: none; }
.ep .ep-h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.ep .ep-h3 { font-family: var(--f-display); font-size: 0.95rem; font-weight: 500; color: var(--band-fg); margin: 0; }
.ep .ep-text { font-family: var(--f-body-16); font-size: 1rem; line-height: 1.55; color: var(--band-fg); margin: 0; }
.ep .ep-small, .article .ep .ep-small { font-family: var(--f-display); font-size: 0.875rem; line-height: 1.55; color: var(--band-muted); margin: 0; }
.ep .ep-em, .ep strong { font-weight: 500; color: var(--band-fg); }
.ep a { color: var(--band-fg); text-decoration: underline; text-underline-offset: 2px; }
.ep #epInteractive { display: flex; flex-direction: column; gap: 16px; }
.ep #epInteractive[hidden], .ep [hidden] { display: none !important; }
.ep #epSteps { display: flex; flex-direction: column; gap: 16px; }
.ep .ep-step, .ep .ep-explore { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); }
.ep .ep-body, .ep .ep-pre, .ep .ep-results, .ep .ep-readout { display: flex; flex-direction: column; gap: 12px; }
.ep .ep-two { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ep .ep-panel { border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ep .ep-readouts { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .ep .ep-readouts { grid-template-columns: 1fr 1fr; } }
.ep .ep-fs { border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; padding: 8px 14px 10px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep .ep-fs legend { font-family: var(--f-display); font-size: 0.92rem; color: var(--band-fg); padding: 0 6px; }
.ep .ep-fs label, .article .ep .ep-fs label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--f-display); font-size: 0.92rem; color: var(--band-fg); margin: 0; padding: 10px 0; min-height: 44px; box-sizing: border-box; cursor: pointer; }
.ep input[type=radio] { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #22D3EE; }
.ep .ep-fb p { margin: 0; }
.ep .ep-fb:focus { outline: none; }
.ep .ep-fb:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.ep .ep-feedback { font-family: var(--f-body); font-size: 1rem; line-height: 1.5; color: var(--band-fg); border-left: 3px solid var(--ep-line); padding-left: 12px; }
.ep .ep-lockline { padding: 10px 12px; border: 1px dashed rgba(255,255,255,0.28); border-radius: 10px; }
.ep .ep-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.ep .ep-sel { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-display); font-size: 0.92rem; color: var(--band-fg); }
.ep select { min-height: 44px; min-width: 12rem; font: inherit; font-size: 1rem; padding: 6px 10px; border-radius: 8px; color: var(--band-fg); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.35); }
.ep select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 19.99em) { .ep .ep-sel { flex: 1 1 100%; min-width: 0; } .ep select { min-width: 0; width: 100%; } }
.ep .ep-table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 0.875rem; color: var(--band-fg); }
.ep .ep-table caption { text-align: left; font-family: var(--f-display); font-size: 0.875rem; color: var(--band-muted); padding-bottom: 6px; }
.ep .ep-table th, .ep .ep-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.12); font-weight: 400; vertical-align: top; }
.ep .ep-table thead th { font-family: var(--f-display); color: var(--band-muted); }
.ep .ep-scroll { overflow-x: auto; max-width: 100%; }
.ep .ep-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ep .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ep .btn { min-height: 48px; min-width: 44px; }
.ep .btn-link { min-height: 44px; }
.ep .demo-details summary { font-size: 0.92rem; min-height: 44px; padding: 11px 0; box-sizing: border-box; cursor: pointer; }
.ep .ep-strip { display: block; width: 100%; height: auto; color: var(--band-fg); }
.ep .ep-sv-wire { stroke: currentColor; stroke-width: 1.5; }
.ep .ep-sv-gate { fill: #1F1B3A; stroke: currentColor; stroke-width: 1.5; }
.ep .ep-sv-dot { fill: currentColor; }
.ep .ep-sv-target { fill: none; stroke: currentColor; stroke-width: 1.5; }
.ep .ep-sv-name { fill: currentColor; font-family: var(--dg-sans); font-size: 16px; font-weight: 500; }
.ep .ep-sv-small { fill: currentColor; font-family: var(--dg-sans); font-size: 14px; }
.ep .ep-sv-gtext { fill: currentColor; font-family: var(--dg-mono); font-size: 16px; }
.article .ep-checks li > p { margin-bottom: 4px; }
.article .ep-answer summary { min-height: 44px; padding: 11px 0; box-sizing: border-box; cursor: pointer; }
.article .ep-maths ul ul { margin-top: 4px; }
.article .ep-maths > summary { min-height: 44px; padding: 11px 0; box-sizing: border-box; }
@font-face { font-family: "PQ Serif Fallback EP1"; font-style: normal; font-weight: 400; src: local("Noto Serif"), local("NotoSerif-Regular");
  size-adjust: 93.80%; ascent-override: 110.44%; descent-override: 35.70%; line-gap-override: 0.0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "PQ Serif Fallback EP1"; font-style: normal; font-weight: 600 900; src: local("Noto Serif Bold"), local("NotoSerif-Bold");
  size-adjust: 89.62%; ascent-override: 115.60%; descent-override: 37.38%; line-gap-override: 0.0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "PQ Serif Fallback EP1"; font-style: normal; font-weight: 400; src: local("Georgia"), local("Gelasio Regular"), local("Gelasio-Regular");
  size-adjust: 100.24%; ascent-override: 103.36%; descent-override: 33.42%; line-gap-override: 0.0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "PQ Serif Fallback EP1"; font-style: normal; font-weight: 600 900; src: local("Georgia Bold"), local("Georgia-Bold"), local("Gelasio Bold"), local("Gelasio-Bold");
  size-adjust: 87.44%; ascent-override: 118.48%; descent-override: 38.31%; line-gap-override: 0.0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
div[style="margin-top:28px"] + p { font-family: "Source Serif 4", "PQ Notation", "PQ Serif Fallback EP1", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif; }
