/* netdoctor-ir identity: "CRT". Green phosphor on near-black (dark) / mint paper (light). VT323. ECG trace with arrhythmia on click, scanlines, phosphor glow. */
@font-face{font-family:'VT323';src:url(fonts/vt323-400.woff2) format('woff2');font-weight:400;font-display:swap}
html[data-theme=dark]:root{--bg:#020a05;--bg2:#04120a;--fg:#c9ffd9;--muted:#6fb88a;--line:#0f3a20;--card:#051a0e;--accent:#33ff7a;--accent2:#b6ff3d;--ok:#33ff7a;--bad:#ff4b4b;--warn:#ffd23d;--mag:#ff6bd5;--code:#010603;--codefg:#9dffbd}
html[data-theme=light]:root{--bg:#e4efe6;--bg2:#f1f7f2;--fg:#082414;--muted:#3c6a4c;--line:#b3cdb9;--card:#f7fbf8;--accent:#0b7a3a;--accent2:#587d00;--ok:#0b7a3a;--bad:#b3261e;--warn:#8a6100;--mag:#a3245e;--code:#dcebe0;--codefg:#082414}
html[data-theme=dark] body{text-shadow:0 0 6px rgba(51,255,122,.18)}
h1,h2,.brand,.btn,.pill{font-family:VT323,Vazirmatn,ui-monospace,monospace}
h1{font-size:clamp(48px,7vw,104px)!important;line-height:.9!important;letter-spacing:.01em!important;text-transform:uppercase;font-weight:400!important}
h2{font-size:clamp(38px,4.6vw,64px)!important;line-height:1!important;font-weight:400!important;text-transform:uppercase}
h2::before{content:'> ';color:var(--accent)}
h2::after{content:'_';color:var(--accent);animation:cur 1s steps(1) infinite}
@keyframes cur{50%{opacity:0}}
html[data-lang=fa] h1,html[data-lang=fa] h2,html[lang=fa] h1,html[lang=fa] h2{font-family:Vazirmatn,sans-serif;text-transform:none;font-weight:800!important;line-height:1.35!important}
html[data-lang=fa] h1,html[lang=fa] h1{font-size:clamp(32px,4.4vw,60px)!important}
html[data-lang=fa] h2,html[lang=fa] h2{font-size:clamp(24px,3vw,40px)!important}
.brand{font-size:1.5em;letter-spacing:.05em}
.btn,.pill,.card,.term,pre,.install{border-radius:0!important}
.btn{text-transform:uppercase;letter-spacing:.08em;font-size:1.3em;border:1px solid var(--accent)!important;transition:box-shadow .2s}
.btn.primary{background:var(--accent)!important;color:var(--bg)!important}
.btn:hover{box-shadow:0 0 18px var(--accent)}
.card{border:1px solid var(--line);position:relative}
.card::before{content:'';position:absolute;left:-1px;top:-1px;width:10px;height:10px;border:solid var(--accent);border-width:2px 0 0 2px}
.card:hover{border-color:var(--accent);box-shadow:0 0 22px -6px var(--accent)}
.hero{position:relative;overflow:clip;isolation:isolate}
.hero .wrap{position:relative;z-index:2}
.hero canvas.fx{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.hero::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(0,0,0,.18) 0 1px,transparent 1px 3px);mix-blend-mode:multiply}
html[data-theme=light] .hero::after{opacity:.25}
.crt-roll{position:absolute;left:0;right:0;height:120px;z-index:3;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(51,255,122,.07),transparent);animation:roll 7s linear infinite}
html[data-theme=light] .crt-roll{display:none}
@keyframes roll{from{top:-140px}to{top:100%}}
.diag{position:absolute;z-index:4;font:400 28px VT323,monospace;pointer-events:none;white-space:nowrap;animation:diag 2.4s forwards}
@keyframes diag{0%{opacity:0;transform:translateY(8px)}15%,70%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-10px)}}
@media(max-width:520px){.brand .fa-name{display:none}}
@media(prefers-reduced-motion:reduce){.crt-roll,h2::after{animation:none;display:none}.diag{animation:none}}
.two>*,.grid>*,.steps>*{min-width:0}
@media(max-width:820px){.wrap.two{grid-template-columns:minmax(0,1fr)!important}}
.two pre,.two code,.term{max-width:100%;overflow-x:auto}
.brand{white-space:nowrap}
@media(max-width:520px){.brand{font-size:1.25em}}

/* QA: keep the "A" (automatic) badge anchored to the theme button */
html .mrz-tt{position:relative}
