/* electricalfloorplans.com. One stylesheet, no framework. The look is a
   quiet Apple-style page: a near-black type on white, one warm accent (the
   app's own orange) used sparingly, rounded cards on a very light grey band
   every other section, and the system typeface so the page reads like the
   device it is on. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --ink-2: #4b4b4f;
  --muted: #74747a;
  --line: #e6e6e9;
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --accent: #f67a2e;
  --accent-ink: #b8511a;
  --radius: 18px;
  --wrap: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f2f4; --ink-2: #c9c9cf; --muted: #9a9aa2; --line: #2a2a2e; --bg: #101012; --bg-2: #18181b; --accent-ink: #ffa368; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.4vw, 82px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 760; text-align: center; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; text-align: center; }
.sub { color: var(--ink-2); text-align: center; font-size: 19px; max-width: 640px; margin: 10px auto 36px; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; text-align: center; margin-bottom: 18px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--muted); vertical-align: middle; margin-right: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { border-radius: 7px; }
.links { display: flex; gap: 28px; }
.links a { color: var(--ink-2); font-weight: 500; }
.links a:hover { color: var(--ink); text-decoration: none; }
.top.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }

/* Apple's badge: black on a light page, white on a dark one. */
.badge { display: inline-flex; line-height: 0; }
.badge img { height: 54px; width: auto; }
.badge .badge-white { display: none; }
@media (prefers-color-scheme: dark) { .badge .badge-black { display: none; } .badge .badge-white { display: block; } }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 16px; line-height: 1.15; border: 1px solid transparent; transition: transform .12s ease, background .12s ease; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.dark { background: var(--ink); color: var(--bg); }
.button.dark:hover { background: #000; }
@media (prefers-color-scheme: dark) { .button.dark:hover { background: #fff; } }
.button.light { background: transparent; color: var(--ink); border-color: var(--line); }
.button.light:hover { border-color: var(--ink-2); }
.button.small { padding: 9px 16px; font-size: 14px; }
.button span { display: inline-flex; flex-direction: column; align-items: flex-start; }
.button small { font-size: 10px; font-weight: 500; letter-spacing: .02em; opacity: .8; line-height: 1; }
.mark { flex: none; }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 14px; }

/* Hero */
.hero { text-align: center; padding: 84px 0 0; }
.hero h1 { max-width: 14ch; margin: 0 auto; }
.lead { color: var(--ink-2); font-size: clamp(18px, 2.2vw, 22px); max-width: 680px; margin: 24px auto 0; }
/* The stage: three devices on a floor, bottom-aligned, with a reflection
   where the browser can draw one. A device is either the owner's frame with
   the screenshot under its cut-out screen, or drawn here in CSS. */
.stage { position: relative; display: grid; grid-template-columns: 27fr 46fr 36fr; align-items: end; gap: 2.5%; margin: 64px auto 0; max-width: 1240px; padding: 0 0 70px; }
.stage::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 180px; background: radial-gradient(ellipse at center bottom, rgba(0,0,0,.08), transparent 70%); pointer-events: none; }
.device { position: relative; z-index: 1; }
.device .shot { display: block; width: 100%; height: auto; }
.device picture { display: contents; }
.device-iphone { transform: perspective(1400px) rotateY(14deg); transform-origin: right center; }
.device-ipad { transform: perspective(1400px) rotateY(-12deg); transform-origin: left center; }
.device-macbook { z-index: 2; }
/* The owner's frames. */
.device.framed { aspect-ratio: var(--fw) / var(--fh); }
.device.framed .shot { position: absolute; left: calc(var(--sx) * 100%); top: calc(var(--sy) * 100%); width: calc(var(--sw) * 100%); height: calc(var(--sh) * 100%); object-fit: cover; object-position: top; }
.device.framed .frame { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Drawn devices. */
.device.drawn .bezel { background: #141416; padding: 4.2%; border-radius: 12% / 7%; box-shadow: 0 40px 80px rgba(0,0,0,.28), inset 0 0 0 2px #3a3a3e; }
.device-iphone.drawn .bezel { border-radius: 15% / 7%; position: relative; }
.device-iphone.drawn .bezel::after { content: ""; position: absolute; top: 5.5%; left: 50%; transform: translateX(-50%); width: 28%; height: 2.8%; background: #0a0a0b; border-radius: 999px; }
.device-iphone.drawn .shot { border-radius: 11% / 5%; }
.device-ipad.drawn .bezel { border-radius: 7% / 5.5%; }
.device-ipad.drawn .shot { border-radius: 3% / 2.3%; }
.device-macbook.drawn .lid { background: linear-gradient(#232326, #141416); padding: 2.4% 2.4% 2%; border-radius: 16px 16px 0 0; box-shadow: 0 50px 100px rgba(0,0,0,.26); }
.device-macbook.drawn .shot { border-radius: 6px; }
.device-macbook.drawn .base { position: relative; height: 16px; margin: 0 -5%; background: linear-gradient(#4a4a4f, #26262a 60%, #1a1a1d); border-radius: 0 0 16px 16px; }
.device-macbook.drawn .base::before { content: ""; position: absolute; left: 44%; right: 44%; top: 0; height: 6px; background: #121214; border-radius: 0 0 6px 6px; }
@supports (-webkit-box-reflect: below) {
  .stage .device { -webkit-box-reflect: below 6px linear-gradient(transparent 78%, rgba(0,0,0,.10)); }
}

/* Motion: the hero rises on load, sections reveal as they arrive. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0) * 90ms); }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
.card, .feature, .teaser, .plan, .pair-card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .teaser:hover, .pair-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .feature, .teaser, .plan, .pair-card { transition: none; }
}

/* Problem */
.problem { padding: 88px 0 40px; }
.big { font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; text-align: center; max-width: 860px; margin: 0 auto; text-wrap: balance; }

/* Bands and cards */
.band { background: var(--bg-2); padding: 88px 0; margin-top: 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card img { border-radius: 12px; aspect-ratio: 1566 / 1016; object-fit: cover; object-position: center; margin-bottom: 18px; border: 1px solid var(--line); width: 100%; }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }

.features { padding: 96px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
.feature .icon { width: 58px; height: 58px; border-radius: 15px; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.glyph { display: block; }

.symbols .pairs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pair-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px 12px; text-align: center; }
.pair { display: inline-flex; gap: 14px; justify-content: center; color: var(--ink); }
.pair-card p { margin: 12px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.pair-card p span:first-child { font-weight: 600; color: var(--ink); }

.platforms { padding: 96px 0 0; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 36px 0 18px; }
.platform-grid h3 { margin-bottom: 6px; }
.platform-grid p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.pricing .plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 36px auto 0; }
.plan { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 10px 40px rgba(246,122,46,.12); }
.plan h3 { font-size: 24px; margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 12px; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan .fine { text-align: left; margin: 10px 0 0; }

.faq { padding: 96px 0 10px; }
.faq dl { max-width: 760px; margin: 36px auto 0; }
.faq dt { font-weight: 700; font-size: 18px; margin-top: 26px; }
.faq dd { margin: 8px 0 0; color: var(--ink-2); }

.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.teaser { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); }
.teaser:hover { text-decoration: none; border-color: var(--ink-2); }
.teaser p { color: var(--ink-2); font-size: 15px; margin: 0; flex: 1; }
.teaser span { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.article-list { padding: 72px 0 40px; }
.article-list h1 { font-size: clamp(32px, 5vw, 52px); text-align: center; }
.article-list .teasers { grid-template-columns: repeat(2, 1fr); }

.cta { text-align: center; padding: 100px 0 90px; }

/* Articles */
.prose { max-width: 720px; padding: 64px 0 80px; }
.prose h1 { font-size: clamp(32px, 5vw, 50px); margin: 10px 0 18px; }
.prose .eyebrow { text-align: left; }
.prose .eyebrow::before { display: none; }
.standfirst { font-size: 20px; color: var(--ink-2); margin-bottom: 36px; }
.prose h2 { text-align: left; font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: 0.92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.prose th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.prose .glyph { display: inline-block; vertical-align: middle; margin: 0 6px; }
.article-end { margin-top: 56px; padding: 22px; background: var(--bg-2); border-radius: var(--radius); font-size: 16px; }
.article-end p { margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot a { display: block; color: var(--ink-2); margin: 6px 0; }
.foot .brand { margin-bottom: 10px; }
.foot-end { margin-top: 36px; font-size: 13px; }

/* Narrow screens */
@media (max-width: 900px) {
  .steps, .grid, .teasers, .article-list .teasers { grid-template-columns: 1fr 1fr; }
  .symbols .pairs { grid-template-columns: repeat(3, 1fr); }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stage { gap: 2%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links { display: none; }
  .hero { padding-top: 56px; }
  .steps, .grid, .teasers, .article-list .teasers, .pricing .plans, .platform-grid, .foot-grid { grid-template-columns: 1fr; }
  .symbols .pairs { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; }
  .device-iphone, .device-ipad { display: none; }
  .device-macbook { max-width: 92%; margin: 0 auto; }
  .badge img { height: 48px; }
  .band { padding: 64px 0; }
  .features, .platforms, .faq { padding-top: 64px; }
  .cta { padding: 70px 0 60px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

/* ---- Articles: the reading page (REQUESTS #97) ---- */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 18px; line-height: 1.6; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 30px; margin: 52px 0 16px; letter-spacing: -0.025em; }
.prose h3 { font-size: 22px; margin: 34px 0 10px; }
.byline { color: var(--muted); font-size: 15px; margin: -22px 0 28px; }
.byline span { color: var(--ink); font-weight: 600; }
.toc { background: var(--bg-2); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 36px; }
.toc p { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.toc li { font-size: 16px; margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--ink); }
.prose blockquote { background: var(--bg-2); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 14px 20px; color: var(--ink); }
.prose blockquote p { margin: 0 0 .6em; font-size: 17px; }
.prose blockquote p:last-child { margin: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin: 8px 0; }
.prose li strong, .prose p strong { font-weight: 650; }
.prose dl.faq { margin: 20px 0 0; }
.prose .faq dt { font-weight: 650; font-size: 18px; margin: 22px 0 6px; }
.prose .faq dd { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.article-end h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.article-end ul { margin: 0; padding-left: 20px; }
.article-end li { font-size: 16px; margin: 4px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Figures: drawn with the app's own symbols; walls and labels in the page's ink. */
figure { margin: 30px 0; }
.fig-wrap, .widget { margin: 30px -20px; padding: 22px 20px; background: var(--bg-2); border-radius: var(--radius); }
figcaption { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.fig { width: 100%; height: auto; display: block; font-family: var(--font); }
.fig-wall { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linejoin: miter; }
.fig-thin { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.fig-label { fill: var(--ink); font-size: 15px; font-weight: 600; }
.fig-small { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.fig-room { fill: var(--muted); font-size: 13px; letter-spacing: .12em; font-weight: 600; }
.fig-callout circle { fill: var(--accent); }
.fig-callout text { fill: #fff; font-size: 14px; font-weight: 700; }
.fig-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 14px 0 0; padding: 0; }
.fig-legend li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.fig-legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.fig-board { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; }
.fig-breaker { fill: var(--bg-2); stroke: var(--ink-2); stroke-width: 1.5; }
.fig-pill { fill: var(--bg); stroke-width: 2; }
.fig-photo img { border-radius: 12px; border: 1px solid var(--line); }
.fig svg { color: var(--ink); }
.fig .glyph, .fig-legend .glyph, .sim-note .glyph, .calc-dev .glyph, .gal-card .glyph { color: var(--ink); }

/* The switching simulator. */
.widget-sim { display: grid; grid-template-columns: 1fr; gap: 22px; }
.sim h3 { margin: 0 0 8px; font-size: 18px; }
.fig-sim { max-width: 460px; }
.fig-wire { fill: none; stroke: var(--ink-2); stroke-width: 2.5; stroke-linecap: round; }
.fig-wire.live { stroke: #e0862a; }
.fig-term { fill: var(--ink); }
.sim-switch { cursor: pointer; outline: none; }
.sim-switch:focus-visible .sim-hit { stroke: var(--accent); stroke-width: 2; }
.sim-hit { fill: transparent; }
.sim-switch:hover .sim-hit { fill: rgba(246,122,46,.12); }
.lever { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; transition: x2 .15s, y2 .15s; }
.sim-box { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.inter-straight, .inter-cross { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.sim-inter[data-pos="0"] .inter-cross, .sim-inter[data-pos="1"] .inter-straight { display: none; }
.lamp { fill: var(--bg); stroke: var(--ink); stroke-width: 2.5; }
.lamp-x { stroke: var(--ink); stroke-width: 2.5; }
.lamp-glow { fill: #ffd34d; opacity: 0; transition: opacity .2s; }
.sim-lamp[data-on="true"] .lamp-glow { opacity: .75; }
.sim-lamp[data-on="true"] .lamp { fill: #fff3b0; }
.sim-state { margin: 6px 0 4px; font-size: 16px; }
.sim-state strong { color: var(--accent-ink); }
.sim-note { margin: 0; font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Segmented switches and small bars shared by the widgets. */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg-btn { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.widget-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.widget-bar .button { padding: 9px 16px; }
.rc-result { margin: 0; font-size: 16px; font-weight: 600; }
.widget .button.light { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.widget .button.dark { background: var(--ink); color: var(--bg); }

/* The room in both conventions. */
.conv-pane { display: none; margin-top: 14px; }
.widget-convention[data-standard="international"] .conv-pane[data-pane="international"],
.widget-convention[data-standard="northAmerican"] .conv-pane[data-pane="northAmerican"] { display: block; }

/* The reach check. */
.rc-end { fill: #d9442f; }
.rc-ring { fill: none; stroke: #d9442f; stroke-width: 3; stroke-dasharray: 6 4; display: none; }
.widget-reach[data-state="found"] .rc-ring { display: block; }
.widget-reach[data-state="idle"] .rc-fixed, .widget-reach[data-state="found"] .rc-fixed { display: none; }
.widget-reach[data-state="fixed"] .rc-dangling, .widget-reach[data-state="ok"] .rc-dangling { display: none; }
.widget-reach[data-state="ok"] .rc-result { color: #2a9d5c; }
.widget-reach[data-state="found"] .rc-result { color: #d9442f; }

/* The load estimate. */
.calc-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.calc-breaker { font-size: 15px; font-weight: 600; }
.calc-breaker select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin-left: 6px; }
.calc-table { font-size: 15.5px; }
.calc-table th, .calc-table td { padding: 8px 10px; }
.calc-dev { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.calc-va, .calc-amps { white-space: nowrap; color: var(--ink-2); }
.calc-used .calc-amps { color: var(--ink); font-weight: 650; }
.calc-count { white-space: nowrap; }
.calc-count button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; vertical-align: middle; }
.calc-count output { display: inline-block; min-width: 30px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.calc-total { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 16px; }
.calc-total p { margin: 0; font-size: 16px; text-align: right; }
.calc-bar { height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.calc-fill { height: 100%; width: 0; background: #2a9d5c; transition: width .2s; }
.calc-fill.over { background: #d9442f; }
.calc-badge { display: inline-block; background: #d9442f; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* The chart of every device. */
.gal-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.gal-search input { font: inherit; font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: min(320px, 100%); }
.gal-count { text-align: left; margin: 10px 0 0; }
.gal-group h3 { font-size: 17px; margin: 22px 0 10px; }
.gal-group h3 .muted { font-weight: 500; font-size: 14px; margin-left: 6px; }
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gal-card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); }
.gal-card .glyph { display: block; }
.widget-gallery[data-standard="international"] .gal-na, .widget-gallery[data-standard="northAmerican"] .gal-int { display: none; }
.gal-empty { color: var(--muted); font-size: 15px; }

@media (max-width: 640px) {
  .toc ol { columns: 1; }
  .fig-wrap, .widget { margin: 26px -20px; border-radius: 0; }
  .calc-table th:nth-child(2), .calc-table td:nth-child(2) { display: none; }
  .calc-dev { min-width: 0; gap: 8px; }
  .calc-dev .glyph { width: 24px; height: 24px; flex: none; }
  .calc-table { font-size: 14.5px; }
  .calc-count button { width: 28px; height: 28px; }
  .calc-total { grid-template-columns: 1fr; }
  .calc-total p { text-align: left; }
}
@media (min-width: 900px) {
  .fig-wrap, .widget { margin-left: -60px; margin-right: -60px; padding: 26px 40px; }
}
