/* Water softener size calculator. Dark card with cyan accents; colors fall back to fixed values if the theme tokens are missing. */
.wgpsc{--sc-bg:var(--surf,#10151B);--sc-bg2:var(--surf2,#151C23);--sc-field:var(--bg2,#0E1217);--sc-line:var(--line2,#1D252E);--sc-ink:var(--ink,#EAF0F5);--sc-txt:var(--txt,#AEB8C2);--sc-mut:var(--mut,#8792A0);--sc-acc:var(--y2,#6FD3FA);--sc-rgb:var(--yr,26,179,236);--sc-err:#FFB4AB;--sc-warn:#F5B94A;
  margin:32px 0;padding:22px 20px;border:1px solid var(--sc-line);border-radius:18px;background:linear-gradient(180deg,var(--sc-bg2),var(--sc-bg));color:var(--sc-txt);box-shadow:0 18px 40px -26px rgba(0,0,0,.9);line-height:1.5;font-size:16px}
.wgpsc *,.wgpsc *::before,.wgpsc *::after{box-sizing:border-box}
.wgpsc [hidden]{display:none!important}
.wgpsc p{margin:0}
.wgpsc .wgpsc-t{margin:0 0 4px;font-size:1.3rem;line-height:1.25;color:#fff}
.wgpsc .wgpsc-intro,.wgpsc .wgpsc-nojs{margin:0 0 16px;color:var(--sc-mut);font-size:14.5px}
.wgpsc .wgpsc-nojs{color:var(--sc-ink)}
.wgpsc .wgpsc-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.wgpsc .wgpsc-f{min-width:0}
.wgpsc .wgpsc-f>label{display:block;margin:0 0 6px;font-size:15px;font-weight:600;color:var(--sc-ink)}
.wgpsc .wgpsc-in{display:flex;align-items:center;gap:10px}
.wgpsc .wgpsc-in input,.wgpsc .wgpsc-f select{min-height:46px;margin:0;padding:10px 12px;border:1px solid var(--sc-line);border-radius:10px;background:var(--sc-field);color:var(--sc-ink);font:inherit;font-size:16px;line-height:1.2}
.wgpsc .wgpsc-in input{flex:1 1 auto;width:100%;min-width:0}
.wgpsc .wgpsc-in select{flex:0 0 auto;width:auto}
.wgpsc .wgpsc-f>select{display:block;width:100%}
.wgpsc .wgpsc-in input:focus,.wgpsc .wgpsc-f select:focus{border-color:rgba(var(--sc-rgb),.75);background:var(--sc-field);color:#fff}
.wgpsc .wgpsc-in input:focus-visible,.wgpsc .wgpsc-f select:focus-visible,.wgpsc .wgpsc-adv>summary:focus-visible,.wgpsc .wgpsc-tw:focus-visible,.wgpsc a:focus-visible{outline:2px solid var(--sc-acc);outline-offset:2px}
.wgpsc .wgpsc-in input[aria-invalid="true"]{border-color:var(--sc-err)}
.wgpsc .wgpsc-u{flex:0 0 auto;color:var(--sc-mut);font-size:14px;white-space:nowrap}
.wgpsc .wgpsc-h{margin:6px 0 0;color:var(--sc-mut);font-size:13.5px;line-height:1.45}
.wgpsc .wgpsc-e{margin:6px 0 0;color:var(--sc-err);font-size:14px;font-weight:600}
.wgpsc .wgpsc-adv{margin:18px 0 0;padding:0 14px;border:1px solid var(--sc-line);border-radius:12px;background:rgba(0,0,0,.18)}
.wgpsc .wgpsc-adv>summary{display:flex;align-items:center;gap:12px;min-height:46px;cursor:pointer;list-style:none;color:var(--sc-acc);font-weight:600;font-size:15px}
.wgpsc .wgpsc-adv>summary::-webkit-details-marker{display:none}
.wgpsc .wgpsc-adv>summary::before{content:"";flex:0 0 auto;width:8px;height:8px;margin:0 2px 0 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .15s}
.wgpsc .wgpsc-adv[open]>summary::before{transform:rotate(45deg)}
.wgpsc .wgpsc-adv[open]>summary{margin-bottom:4px}
.wgpsc .wgpsc-adv>.wgpsc-grid{padding:0 0 16px}
.wgpsc .wgpsc-res{margin:22px 0 0;padding:18px 16px;border:1px solid rgba(var(--sc-rgb),.35);border-radius:14px;background:radial-gradient(420px 220px at 12% 0%,rgba(var(--sc-rgb),.14),transparent 70%),var(--sc-field)}
.wgpsc .wgpsc-k{color:var(--sc-acc);font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.wgpsc .wgpsc-big{margin:4px 0;color:#fff;font-size:clamp(1.55rem,6vw,2.1rem);font-weight:700;line-height:1.15}
.wgpsc .wgpsc-sub{margin:0 0 14px;color:var(--sc-txt);font-size:15px}
.wgpsc .wgpsc-dl{margin:0 0 16px;padding:0}
.wgpsc .wgpsc-dl>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 14px;padding:8px 0;border-bottom:1px solid var(--sc-line)}
.wgpsc .wgpsc-dl dt{margin:0;color:var(--sc-mut);font-size:14.5px;font-weight:400}
.wgpsc .wgpsc-dl dd{margin:0;color:var(--sc-ink);font-size:14.5px;font-weight:600;text-align:right}
/* Results table: one card per salt setting on narrow screens, a regular table from 640px up. */
.wgpsc .wgpsc-tw{margin:0;border-radius:12px}
.wgpsc .wgpsc-tw .wgpsc-tb,.wgpsc .wgpsc-tw .wgpsc-tb tbody,.wgpsc .wgpsc-tw .wgpsc-tb tr,.wgpsc .wgpsc-tw .wgpsc-tb th,.wgpsc .wgpsc-tw .wgpsc-tb td{display:block;width:auto}
.wgpsc .wgpsc-tw .wgpsc-tb{margin:0;border:0;border-radius:0;overflow:visible;background:none;font-size:14.5px;line-height:1.4}
.wgpsc .wgpsc-tw .wgpsc-tb caption{display:block;caption-side:top;padding:0 0 8px;color:var(--sc-ink);font-weight:600;text-align:left;font-size:15px}
.wgpsc .wgpsc-tw .wgpsc-tb thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.wgpsc .wgpsc-tw .wgpsc-tb tbody tr{margin:0 0 10px;border:1px solid var(--sc-line);border-radius:12px;overflow:hidden;background:var(--sc-bg)}
.wgpsc .wgpsc-tw .wgpsc-tb tbody tr.wgpsc-on{border-color:rgba(var(--sc-rgb),.6);background:rgba(var(--sc-rgb),.07)}
.wgpsc .wgpsc-tw .wgpsc-tb th,.wgpsc .wgpsc-tw .wgpsc-tb td{margin:0;border:0;background:transparent;color:var(--sc-txt);text-align:left;vertical-align:top}
.wgpsc .wgpsc-tw .wgpsc-tb tbody th{padding:10px 12px;border-bottom:1px solid var(--sc-line);background:var(--sc-bg2);color:var(--sc-ink);font-weight:600}
.wgpsc .wgpsc-tw .wgpsc-tb tbody tr.wgpsc-on th{background:rgba(var(--sc-rgb),.14)}
.wgpsc .wgpsc-tw .wgpsc-tb tbody td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 12px;border-bottom:1px solid var(--sc-line);color:var(--sc-ink);font-weight:600;text-align:right}
.wgpsc .wgpsc-tw .wgpsc-tb tbody td:last-child{border-bottom:0}
.wgpsc .wgpsc-tw .wgpsc-tb tbody td::before{content:attr(data-l);content:attr(data-l) / "";flex:0 1 auto;color:var(--sc-mut);font-weight:400;text-align:left}
.wgpsc .wgpsc-tw .wgpsc-tb tr.wgpsc-on .wgpsc-sn{color:var(--sc-acc)}
.wgpsc .wgpsc-lb{display:block;margin:2px 0 0;color:var(--sc-mut);font-size:12.5px;font-weight:400}
.wgpsc .wgpsc-tag{display:inline-block;margin:0 0 0 6px;padding:1px 8px;border-radius:999px;background:rgba(var(--sc-rgb),.2);color:var(--sc-acc);font-size:11px;font-weight:700;vertical-align:1px;white-space:nowrap}
.wgpsc .wgpsc-fn{margin:10px 0 0;color:var(--sc-mut);font-size:13px;line-height:1.45}
.wgpsc .wgpsc-notas{margin:0 0 14px;padding:0;list-style:none}
.wgpsc .wgpsc-notas li{margin:0 0 8px;padding:10px 12px;border-left:3px solid var(--sc-warn);border-radius:0 10px 10px 0;background:rgba(245,185,74,.08);color:var(--sc-ink);font-size:14.5px;line-height:1.45}
.wgpsc .wgpsc-notas li::marker{content:none}
.wgpsc .wgpsc-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.wgpsc .wgpsc-how{margin:22px 0 0;padding:18px 0 0;border-top:1px solid var(--sc-line)}
.wgpsc.wgpsc-static .wgpsc-how{margin:0;padding:0;border:0}
.wgpsc .wgpsc-t2{margin:0 0 10px;font-size:1.12rem;line-height:1.3;color:#fff}
.wgpsc .wgpsc-how ol{margin:0 0 12px;padding:0 0 0 1.3em}
.wgpsc .wgpsc-how li{margin:0 0 8px;color:var(--sc-txt);font-size:15px}
.wgpsc .wgpsc-how strong{color:var(--sc-ink)}
.wgpsc .wgpsc-ex,.wgpsc .wgpsc-srcs{margin:0 0 10px;color:var(--sc-txt);font-size:15px}
.wgpsc .wgpsc-srcs{font-size:14px;color:var(--sc-mut)}
.wgpsc a{color:var(--sc-acc);text-decoration:underline;text-underline-offset:2px}
.wgpsc a:hover{color:#fff}
@media (min-width:640px){
  .wgpsc{padding:28px 28px 24px}
  .wgpsc .wgpsc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px}
  .wgpsc .wgpsc-res{padding:22px 22px 20px}
  .wgpsc .wgpsc-tw{overflow-x:auto}
  .wgpsc .wgpsc-tw .wgpsc-tb{display:table;width:100%;border:1px solid var(--sc-line);border-collapse:separate;border-spacing:0;border-radius:12px;overflow:hidden;font-size:14px;line-height:1.35}
  .wgpsc .wgpsc-tw .wgpsc-tb caption{display:table-caption}
  .wgpsc .wgpsc-tw .wgpsc-tb thead{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;clip-path:none;white-space:normal;display:table-header-group}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody{display:table-row-group}
  .wgpsc .wgpsc-tw .wgpsc-tb tr,.wgpsc .wgpsc-tw .wgpsc-tb tbody tr{display:table-row;margin:0;border:0;border-radius:0;background:none}
  .wgpsc .wgpsc-tw .wgpsc-tb th,.wgpsc .wgpsc-tw .wgpsc-tb td,.wgpsc .wgpsc-tw .wgpsc-tb tbody td{display:table-cell;padding:10px 12px;border-bottom:1px solid var(--sc-line);text-align:left}
  .wgpsc .wgpsc-tw .wgpsc-tb thead th{background:var(--sc-bg2);color:#fff;font-weight:600;font-size:13px}
  .wgpsc .wgpsc-tw .wgpsc-tb thead th:first-child{width:26%}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody th{background:none}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody td{font-weight:500}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody td::before{content:none}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody td{white-space:nowrap}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody td:last-child{border-bottom:1px solid var(--sc-line)}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody tr:last-child>*{border-bottom:0}
  .wgpsc .wgpsc-tw .wgpsc-tb tbody tr.wgpsc-on>*{background:rgba(var(--sc-rgb),.10)}
  .wgpsc .wgpsc-tag{margin:4px 0 0}
}
@media (prefers-reduced-motion:reduce){.wgpsc *{transition:none!important;animation:none!important}}
