/* Shared, non-invasive visual system for all V1 pages. */
html:has(body.v1-enhanced),body.v1-enhanced{max-width:100%;overflow-x:hidden}
body.v1-enhanced{--v1-accent:var(--accent,var(--ej-theme-accent,#79bfff));--v1-text:var(--text,var(--ej-theme-text,#eef5ff));--v1-muted:var(--muted,var(--ej-theme-muted,#b8c6d9));--v1-panel:var(--panel,var(--ej-theme-panel,#0f1b2c));--v1-panel2:var(--panel2,var(--ej-theme-panel-2,#14243a));--v1-line:var(--border,var(--line,var(--ej-theme-border,#2b405c)));color:var(--v1-text)}
body.v1-enhanced main,body.v1-enhanced main>*{min-width:0;max-width:100%}
body.v1-enhanced.v1-content-page main{width:min(1120px,calc(100% - 32px));margin-inline:auto;padding:clamp(20px,4vw,48px) 0 80px}
body.v1-enhanced.v1-content-page main>h1:first-of-type{margin:14px 0 30px;padding:clamp(24px,4vw,40px);border:1px solid var(--v1-line);border-radius:22px;background:linear-gradient(140deg,var(--v1-panel),var(--v1-panel2));color:var(--v1-text);box-shadow:0 15px 38px rgba(6,18,35,.13);font-size:clamp(34px,5vw,54px);line-height:1.08;overflow-wrap:anywhere}
body.v1-enhanced.v1-content-page main>h2{margin:38px 0 16px;padding:13px 16px;border-left:4px solid var(--v1-accent);border-radius:0 13px 13px 0;background:var(--v1-panel2);color:var(--v1-text);font-size:clamp(23px,3vw,31px);line-height:1.2}
body.v1-enhanced.v1-content-page main>h3{margin-top:28px;color:var(--v1-accent);font-size:clamp(19px,2.4vw,24px)}
body.v1-enhanced.v1-content-page main>p{max-width:90ch}
body.v1-enhanced :is(.card,.panel,.box,.notice,.callout,.tile){border-color:var(--v1-line)!important;color:var(--v1-text)!important}
body.v1-enhanced.v1-content-page main>ul,body.v1-enhanced.v1-content-page main>ol{margin:17px 0 25px;padding:16px 22px 16px 42px;border:1px solid var(--v1-line);border-radius:15px;background:var(--v1-panel)}
body.v1-enhanced.v1-content-page main>ul li,body.v1-enhanced.v1-content-page main>ol li{margin:7px 0;padding-left:3px}
body.v1-enhanced details{border-color:var(--v1-line)!important}
body.v1-enhanced details>summary{color:var(--v1-text)!important;line-height:1.35}
body.v1-enhanced table{max-width:100%;margin:22px 0;border-collapse:separate!important;border-spacing:0!important;border:1px solid var(--v1-line)!important;border-radius:14px;overflow:hidden;background:var(--v1-panel);color:var(--v1-text)}
body.v1-enhanced th{background:var(--v1-panel2)!important;color:var(--v1-accent)!important}
body.v1-enhanced th,body.v1-enhanced td{padding:10px 12px!important;border-color:var(--v1-line)!important;text-align:left;vertical-align:top}
body.v1-enhanced :is(.code-card,.code-shell,figure){min-width:0;max-width:100%}
body.v1-enhanced pre,body.v1-enhanced .code-card pre,body.v1-enhanced .code-shell pre{width:100%;height:auto!important;max-height:none!important;overflow-x:auto!important;overflow-y:visible!important;padding:18px 20px!important;border:1px solid #3d4868!important;border-radius:14px!important;background:#20222d!important;color:#f8f8f2!important;font-family:"Cascadia Code",Consolas,ui-monospace,monospace!important;line-height:1.58!important}
body.v1-enhanced pre code{color:#f8f8f2!important;opacity:1!important;-webkit-text-fill-color:currentColor}
body.v1-enhanced code:not(pre code){padding:.14em .4em;border-radius:6px;background:var(--v1-panel2);color:var(--v1-accent)}
body.v1-enhanced blockquote{margin:22px 0;padding:16px 18px;border:1px solid var(--v1-line);border-left:4px solid #ff9f43;border-radius:12px;background:var(--v1-panel2);color:var(--v1-text)}
.v1-deep-dive-route{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,.7fr);gap:24px;align-items:center;margin:42px 0 10px;padding:24px;border:1px solid var(--v1-line);border-radius:20px;background:linear-gradient(135deg,var(--v1-panel),var(--v1-panel2));box-shadow:0 14px 34px rgba(6,18,35,.12)}
.v1-deep-dive-route h2{margin:5px 0 9px!important;padding:0!important;border:0!important;background:transparent!important;color:var(--v1-text)!important;font-size:clamp(23px,3vw,31px)!important}.v1-deep-dive-route p{margin:0;max-width:72ch;color:var(--v1-muted)}
.v1-route-kicker{color:var(--v1-accent);font-size:.78rem;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.v1-route-actions{display:grid;gap:10px}.v1-route-actions a{display:block;padding:12px 14px;border:1px solid var(--v1-line);border-radius:12px;background:var(--v1-panel);color:var(--v1-accent);font-weight:800;text-decoration:none}.v1-route-actions a:hover{border-color:var(--v1-accent);transform:translateY(-1px)}
.v1-editorial-depth{margin-top:38px}.v1-practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.v1-practice-grid article{min-width:0;padding:18px;border:1px solid var(--v1-line);border-radius:16px;background:var(--v1-panel)}.v1-practice-grid article h3{margin-top:0!important}.v1-editorial-depth ul{padding:16px 20px 16px 38px;border:1px solid var(--v1-line);border-radius:14px;background:var(--v1-panel)}.v1-editorial-depth li{margin:7px 0}
body.v1-enhanced img,body.v1-enhanced svg{max-width:100%;height:auto}
body.v1-enhanced.v1-reference-page main>h2{border-left-color:#c4a7ff}
body.v1-enhanced.v1-topic-page main>h2{border-left-color:#63d6b5}
body.v1-enhanced.v1-book-page main>h2{border-left-color:#79bfff}
body.v1-enhanced.v1-prompt-page main>h2,body.v1-enhanced.v1-check-page main>h2{border-left-color:#f6c85f}
body.v1-enhanced.v1-check-page main>h1:first-of-type,body.v1-enhanced.v1-prompt-page main>h1:first-of-type{padding:24px 28px;font-size:clamp(28px,4vw,42px);box-shadow:none}
@media(max-width:700px){body.v1-enhanced.v1-content-page main{width:calc(100vw - 22px)!important;max-width:calc(100vw - 22px)!important;margin-inline:11px!important}body.v1-enhanced.v1-content-page main>h1:first-of-type{width:100%!important;padding:21px;border-radius:17px;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;font-size:clamp(30px,9vw,40px)!important}body.v1-enhanced.v1-content-page main :is(p,li,h2,h3){white-space:normal!important;overflow-wrap:anywhere}body.v1-enhanced table{display:block;overflow-x:auto}body.v1-enhanced pre{font-size:12.5px!important;padding:15px!important}.v1-deep-dive-route,.v1-practice-grid{grid-template-columns:1fr}.v1-deep-dive-route{padding:19px}}
@media print{body.v1-enhanced.v1-content-page main{width:100%;padding:0}body.v1-enhanced.v1-content-page main>h1:first-of-type{box-shadow:none}body.v1-enhanced pre{white-space:pre-wrap!important;overflow:visible!important}}
