/* ElectroLab standalone calculator pages (ohms-law, voltage-drop, cable-size-awg) */
.el-page{max-width:1180px;margin-inline:auto}
.el-badges{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.25rem}
.el-std-badge{display:inline-block;font:700 .72rem var(--font-sans);letter-spacing:.06em;text-transform:uppercase;padding:.28rem .65rem;border-radius:999px;border:1px solid var(--border-color);color:var(--text-secondary);background:var(--bg-surface)}
.el-formula{display:inline-block;margin:.6rem 0 .25rem;padding:.7rem 1.1rem;border-radius:14px;background:color-mix(in srgb,#0ea5e9 10%,var(--bg-surface));border:1px solid color-mix(in srgb,#0ea5e9 35%,transparent);font:700 clamp(1rem,2.2vw,1.35rem) var(--font-mono,ui-monospace,monospace);color:var(--text-primary);max-width:100%;overflow-wrap:anywhere}
.el-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem}
.el-hint{margin:0 0 1rem;color:var(--text-secondary);font-size:.95rem}
.el-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.1rem}
@media(max-width:700px){.el-fields{grid-template-columns:1fr}}
.el-field label{display:block;font-weight:600;font-size:.9rem;color:var(--text-secondary);margin-bottom:.35rem}
.el-field.wide{grid-column:1/-1}
.el-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:.5rem}
.el-field input,.el-field select{width:100%;box-sizing:border-box;padding:.75rem .85rem;font:600 1.05rem var(--font-sans);border-radius:12px;border:1px solid var(--input-border,var(--border-color));background:var(--bg-surface);color:var(--text-primary)}
.el-field select{font-size:.95rem;cursor:pointer}
.el-field input:focus,.el-field select:focus{outline:none;border-color:var(--color-primary-500);box-shadow:0 0 0 3px color-mix(in srgb,var(--color-primary-500) 25%,transparent)}
.el-field input.is-auto{background:color-mix(in srgb,#0ea5e9 8%,var(--bg-surface));border-style:dashed}
.el-field .el-row.single{grid-template-columns:1fr}
.el-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.1rem}
.el-actions .btn{min-width:130px}
.el-result-label{font:700 .78rem var(--font-sans);letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.el-big{font:800 clamp(1.5rem,4.2vw,2.4rem) var(--font-heading);line-height:1.15;color:var(--color-primary-600);margin:.35rem 0 1rem;overflow-wrap:anywhere}
.el-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.7rem;margin-bottom:1.1rem}
.el-stat{display:flex;flex-direction:column;gap:.15rem;padding:.7rem .85rem;border-radius:14px;background:var(--bg-surface-subtle);border:1px solid var(--border-color)}
.el-stat span{font-size:.78rem;color:var(--text-muted);font-weight:600}
.el-stat b{font:800 1.1rem var(--font-heading);color:var(--text-primary);overflow-wrap:anywhere}
.el-stat em{font-style:normal;font-size:.68rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted)}
.el-stat em.calc{color:#0ea5e9}
.el-stat.ok{border-color:#10b981;background:color-mix(in srgb,#10b981 9%,var(--bg-surface))}.el-stat.ok b{color:#047857}
.el-stat.bad{border-color:#ef4444;background:color-mix(in srgb,#ef4444 9%,var(--bg-surface))}.el-stat.bad b{color:#b91c1c}
.el-status{display:inline-block;font:800 1rem var(--font-heading);padding:.35rem .95rem;border-radius:999px;margin-bottom:.9rem}
.el-status.ok{background:#d1fae5;color:#047857}.el-status.bad{background:#fee2e2;color:#b91c1c}.el-status.warn{background:#fef3c7;color:#b45309}
.el-steps{margin:.2rem 0 1rem;padding-left:1.25rem;color:var(--text-secondary);font-size:.95rem;line-height:1.6}
.el-steps li{margin-bottom:.25rem;overflow-wrap:anywhere}
.el-tools{display:flex;gap:.6rem;flex-wrap:wrap}
.el-h2{font-family:var(--font-heading);font-weight:800;font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.2;margin:.2rem 0 .8rem;color:var(--text-primary)}
.el-h3{font-family:var(--font-heading);font-weight:700;font-size:1.15rem;margin:1.3rem 0 .5rem;color:var(--text-primary)}
.el-result .el-h3{margin-top:.4rem}
.el-article p{line-height:1.7;color:var(--text-secondary)}
.el-article code{font-family:var(--font-mono,ui-monospace,monospace);font-weight:700;color:var(--text-primary)}
.el-table{width:100%;border-collapse:collapse;margin:.8rem 0 1rem;font-size:.9rem}
.el-table th,.el-table td{padding:.5rem .7rem;border:1px solid var(--border-color);text-align:left}
.el-table th{background:var(--bg-surface-subtle)}
.el-table-wrap{overflow-x:auto}
/* mid-content leaderboard ad: 728x90 desktop, 320x100 mobile */
.el-mid-ad{margin:1.5rem 0;display:flex;flex-direction:column;align-items:center}
.el-mid-ad .ad-leaderboard{width:728px;max-width:100%;min-height:90px}
@media(max-width:760px){.el-mid-ad .ad-leaderboard{width:320px;min-height:100px}}
html.ad-preview .el-mid-ad,html.ad-preview .el-mid-ad .adsense-slot{display:flex !important;visibility:visible !important;opacity:1 !important}
html.ad-preview .el-mid-ad .adsense-slot{height:90px !important;min-height:90px !important;width:728px !important;max-width:100% !important;align-items:center;justify-content:center;border:2px dashed var(--border-color);border-radius:12px;background:var(--bg-surface-subtle);flex-direction:column}
@media(max-width:760px){html.ad-preview .el-mid-ad .adsense-slot{height:100px !important;min-height:100px !important;width:320px !important}}
html.ad-preview .el-mid-ad .ad-placeholder-text{display:flex !important;flex-direction:column;text-align:center;color:var(--text-muted);gap:.2rem}
html.ad-preview .el-mid-ad .ad-skeleton{display:none !important}
.el-page .calc-top-ad .adsense-slot{width:336px;min-height:280px}
@media(max-width:480px){.el-page .calc-top-ad .adsense-slot{width:300px;min-height:250px}}
html.ad-preview .el-page .calc-layout .calc-top-ad,html.ad-preview .el-page .calc-layout .calc-top-ad .adsense-slot{display:flex !important;visibility:visible !important;opacity:1 !important}
html.ad-preview .el-page .calc-layout .calc-top-ad .adsense-slot{height:280px !important;min-height:280px !important;width:336px !important;max-width:100% !important;align-items:center;justify-content:center;flex-direction:column;border:2px dashed var(--border-color);border-radius:12px;background:var(--bg-surface-subtle);overflow:visible !important}
@media(max-width:480px){html.ad-preview .el-page .calc-layout .calc-top-ad .adsense-slot{height:250px !important;min-height:250px !important;width:300px !important}}
html.ad-preview .el-page .calc-top-ad .ad-placeholder-text{display:flex !important;flex-direction:column;text-align:center;color:var(--text-muted);gap:.3rem}
html.ad-preview .el-page .calc-top-ad .ad-skeleton{display:none !important}
/* related */
.el-related{margin:2rem 0 1rem}
.el-rel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
@media(max-width:900px){.el-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.el-rel-grid{grid-template-columns:1fr}}
.el-rel-card{display:flex;align-items:center;gap:.9rem;padding:1rem 1.1rem;border-radius:16px;background:var(--bg-surface);border:1px solid var(--border-color);text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s,border-color .2s}
.el-rel-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:#0ea5e9}
.el-rel-ico{flex:0 0 auto;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,#0ea5e9 14%,transparent);font-size:1.3rem}
.el-rel-body{display:flex;flex-direction:column;min-width:0}.el-rel-body strong{font-size:1rem;color:var(--text-primary)}.el-rel-body small{color:var(--text-muted);font-size:.8rem}
.el-print-only{display:none}
@media print{
  .site-header,.site-footer,.calc-top-ad,.el-mid-ad,.el-guide,.el-related,.el-actions,.el-tools,.floating-actions-wrap,.ad-sticky-bottom,.cookie-banner,.calc-back-link,.el-inputs .el-hint{display:none !important}
  .el-print-only{display:block !important;white-space:pre-wrap;font-family:ui-monospace,monospace;border:1px solid #999;padding:1rem;margin-top:1rem}
  .calc-panel{box-shadow:none;border:1px solid #999}
}

/* Language bar */
.el-langbar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:1rem 0;padding:.75rem 1rem;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:var(--surface,#fff)}
.el-langbar-ico{font-size:1.2rem}
.el-langbar-txt{font-weight:600;font-size:.95rem;color:var(--text,#0f172a)}
.el-langbar-sel{flex:1 1 200px;min-width:0;max-width:320px;padding:.5rem .7rem;border-radius:10px;border:1.5px solid #6366f1;background:var(--surface,#fff);color:var(--text,#0f172a);font:inherit;cursor:pointer}
.el-gt-host{position:absolute;left:-9999px;top:0;height:0;overflow:hidden}
body{top:0 !important}
.skiptranslate iframe.skiptranslate,iframe.goog-te-banner-frame{display:none !important}
#goog-gt-tt,.goog-tooltip,.goog-text-highlight{display:none !important;background:none !important;box-shadow:none !important}
@media print{.el-langbar{display:none}}

.calc-page-head+.el-langbar{margin:.2rem 0 .9rem;padding:.5rem .8rem}
