.page:has(pool-calculator)>h1{max-width:none;font-size:clamp(1.9rem,6vw,3.5rem)}pool-calculator{--water:#e6f3f2;--water-ink:#184a48;--result-deep:#092d27;--result-teal:#104944;--result-ink:#f6fffa;--result-muted:#c5e4d9;--result-accent:#a4f4d5;--result-border:#639487;display:block}.pool [hidden],.pool-guide[hidden]{display:none}.pool fieldset{border:0;min-inline-size:0;margin:0;padding:0}.pool legend,.pool h2{color:var(--ink);margin-block-end:.75rem;font-size:clamp(1.15rem,2vw,1.45rem);font-weight:750}.pool .pool-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.shape-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:.45rem;display:grid}.shape-option{text-align:center;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;overflow-wrap:anywhere;align-content:center;justify-items:center;gap:.375rem;min-height:4.15rem;padding:.45rem .25rem;font-size:.78rem;line-height:1.2;display:grid;position:relative}.shape-option input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.shape-option:has(input:checked){background:var(--water);border-color:var(--water-ink);box-shadow:inset 0 0 0 1px var(--water-ink)}.shape-option:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.pool-shape-preview path{fill:#8ddbd1;stroke:#24776f;stroke-width:9px;stroke-linejoin:round}.shape-option:has(input:checked) .pool-shape-preview path{fill:#61ccbf;stroke:#1a6159}.pool-workspace{grid-template:"form sidebar""guide guide"/minmax(0,3fr) minmax(0,2fr);align-items:start;gap:clamp(.7rem,1.6vw,1.15rem);margin-block-start:1rem;display:grid}.pool-setup,.pool-inputs,.pool-diagrams,.pool-results,.pool-method{border:1px solid var(--border);border-radius:var(--radius);min-width:0;padding:clamp(.75rem,1.7vw,1.2rem)}.pool-form{grid-area:form;gap:clamp(.7rem,1.6vw,1.15rem);min-width:0;display:grid}.pool-setup .pool-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-setup select{margin-block-start:.2rem}.pool-diagrams{background:#f4faf9;grid-area:guide}.pool-sidebar{grid-area:sidebar;gap:.75rem;min-width:0;display:grid}.pool-method{min-width:0}.pool-visual-heading{flex-wrap:wrap;justify-content:space-between;align-items:start;gap:.55rem .85rem;margin-block-end:.85rem;display:flex}.pool-visual-heading label{color:var(--muted);font-size:.82rem;font-weight:650}.pool-visual-heading select{margin-block-start:.2rem;display:block}.pool-visual-heading h2{margin-block-end:.18rem}.pool-visual-heading p{color:var(--muted);margin:0;font-size:.85rem}.pool-visual-grid{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:.8rem;display:grid}.pool-visual-grid>div{min-width:0}.pool-visual-grid h3{margin:0 0 .4rem;font-size:.91rem}.pool-settings,.pool-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;display:grid}.pool select,.pool input:not([type=radio]):not([type=checkbox]){width:100%;min-height:46px;font:inherit}.pool select{border:1px solid var(--control-border);background:var(--surface);color:var(--ink);border-radius:.5rem;padding:.5rem}.pool select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.pool-field,.pool-settings label,.pool-results label{overflow-wrap:anywhere;font-size:.9rem;font-weight:650}.pool-unit{color:var(--muted);font-weight:550}.pool-field input{margin-block-start:.2rem}.pool-help,.pool-error,.pool-estimate,.pool [data-status],.pool-guide figcaption{color:var(--muted);font-size:.875rem}.pool-error{color:var(--error);margin-block-end:0}.pool-size-warning{color:#694517;background:#fff5e0;border-inline-start:3px solid #ad742c;border-radius:.25rem;margin-block:.65rem 0;padding:.55rem .65rem;font-size:.875rem}.pool-size-warning:empty{display:none}.pool-error:empty,.pool [data-status]:empty{margin:0}.pool .pool-section{border-block-start:1px solid var(--border);margin-block-start:.9rem;padding-block:.55rem}.pool .pool-section:has(.pool-sr){border:0;margin-block-start:0;padding-block:0}.pool .pool-section legend{margin:0;font-size:1rem}.pool-mixed{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;display:grid}.pool .pool-overlap:not([hidden]){align-items:center;gap:.65rem;min-height:44px;margin-block:.5rem;font-size:.88rem;display:flex}.pool-overlap input{width:1.2rem;height:1.2rem;min-height:0;accent-color:var(--accent);flex:none}.pool-actions{flex-wrap:wrap;gap:.45rem;margin-block-start:.75rem;display:flex}.pool-actions button,.pool [data-remove]{font-size:.85rem}.pool [data-remove]{margin-block-start:.5rem}.pool button.pool-secondary{color:var(--accent);background:var(--surface)}.pool button.pool-secondary:not(:disabled):hover{color:var(--ink);background:var(--water)}.pool-guide{--pool-deck:#f5f1e8;--pool-border:#cab9a2;--pool-coping:#f2e1c7;--pool-grout:#bdab90;--pool-lip:#fffbf2;--pool-edge:#368b8e;--pool-light:#b9f2ed;--pool-mid:#6edbdc;--pool-deep:#28aabd;margin:0}.page:has(.pool[data-style=coastal]) .pool-guide{--pool-deck:#eaf6f0;--pool-border:#93bcb2;--pool-coping:#fcfffc;--pool-grout:#a2c8bf;--pool-lip:#fafffe;--pool-edge:#438d83;--pool-light:#c6f8eb;--pool-mid:#80e3cf;--pool-deep:#48b8bc}.pool-guide svg{background:var(--pool-deck);border-radius:.55rem;width:100%;display:block}.pool-guide text{fill:#173e40;stroke:var(--pool-deck);stroke-width:2.5px;stroke-opacity:.84;paint-order:stroke;stroke-linejoin:round;font:700 14px Montserrat}.pool-guide figcaption{margin-block-start:.5rem}.pool-guide figcaption small{margin-block-start:.25rem;font-size:.8rem;display:block}.pool-coping-edge,.pool-coping,.pool-coping-joints,.pool-coping-lip,.pool-water-edge,.pool-waterline,.pool-measure{fill:none;stroke-linejoin:round}.pool-coping-edge{stroke:var(--pool-border);stroke-width:19px}.pool-coping{stroke:var(--pool-coping);stroke-width:16px}.pool-coping-joints{stroke:var(--pool-grout);stroke-width:15px;stroke-dasharray:.75 19}.pool-coping-lip{stroke:var(--pool-lip);stroke-width:6px}.pool-water-light{stop-color:var(--pool-light)}.pool-water-mid{stop-color:var(--pool-mid)}.pool-water-deep{stop-color:var(--pool-deep)}.pool-water-edge{stroke:var(--pool-edge);stroke-width:3.5px}.pool-waterline{stroke:#f5fffd;stroke-width:1.5px}.pool-measure{stroke:#174447;stroke-width:1.5px;stroke-linecap:round}.pool-projection{stroke-dasharray:3 4}.pool-center{fill:#174447}.pool-ripples-live{animation:4.8s ease-in-out pool-ripple-drift}@keyframes pool-ripple-drift{50%{transform:translate(7px,2px)}}@media (prefers-reduced-motion:reduce){.pool-ripples-live{animation:none}}.pool-live-dimensions{margin:.7rem 0 0}.pool-live-dimensions>div{border-block-start:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;gap:.1rem .55rem;padding-block:.3rem;font-size:.82rem;display:flex}.pool-live-dimensions dd{margin:0 0 0 auto;font-weight:680}.pool-live-dimensions :where(dt,dd){overflow-wrap:anywhere;min-width:0}.pool-results{color:var(--result-ink);border-color:var(--result-deep);background:linear-gradient(148deg, var(--result-deep) 17%, var(--result-teal) 100%);box-shadow:0 8px 24px #103c2d23}.pool-result-heading{flex-wrap:wrap;justify-content:space-between;align-items:start;gap:.55rem .75rem;display:flex}.pool-result-heading h2{color:var(--result-ink);margin:0}.pool-results label{color:var(--result-muted);font-size:.78rem}.pool-results select{color:var(--result-ink);border-color:var(--result-border);background:#153d35;margin-block-start:.2rem;display:block}.pool-results :is(button,select):focus-visible{outline:3px solid var(--result-accent);outline-offset:3px}.pool-results output{overflow-wrap:anywhere;margin-block:1rem .85rem;font-weight:750;line-height:1.12;display:block}.pool-results [data-total-value]{letter-spacing:-.035em;font-variant-numeric:tabular-nums;font-size:clamp(2.2rem,5.5vw,4rem);font-weight:820;display:block}.pool-results output:has([data-total-unit][hidden]) [data-total-value]{color:var(--result-muted);letter-spacing:normal;font-size:1.05rem;font-weight:630;line-height:1.4}.pool-results [data-total-value][data-compact]{letter-spacing:-.02em;font-size:clamp(1.5rem,4.2vw,2.45rem)}.pool-results [data-total-unit]{color:var(--result-accent);margin-block-start:.2rem;font-size:1rem;line-height:1.35;display:block}.pool-results-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;margin-block:.65rem;display:grid}.pool-results-list div{overflow-wrap:anywhere;background:#f1fff010;border-radius:.4rem;align-content:start;min-width:0;padding:.35rem .55rem;display:grid}.pool-results-list div:nth-child(5){grid-column:1/-1;justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.pool-results-list div:nth-last-child(-n+2){border:1px solid #b1efdf4d}.pool-results-list dt{color:var(--result-muted);font-size:.78rem;line-height:1.35}.pool-results-list dd{font-variant-numeric:tabular-nums;min-width:0;margin:0;font-size:.97rem;font-weight:720}.pool-results .pool-estimate,.pool-results [data-status]{color:var(--result-muted)}.pool-results .pool-estimate{margin-block:.65rem}.pool-results .pool-actions button{gap:.35rem;padding-inline:.45rem;line-height:1.25}.pool-results .pool-actions svg{flex:none}.pool-results [data-copy]{background:var(--result-accent);color:var(--result-deep);border-color:var(--result-accent)}.pool-results [data-copy]:not(:disabled):hover{background:#d4ffeb}.pool-results :is([data-download],[data-print]){color:var(--result-ink);border-color:var(--result-border);background:0 0}.pool-results :is([data-download],[data-print]):not(:disabled):hover{background:#f1fff018}.pool-assumption{color:var(--muted);overflow-wrap:anywhere;margin:0 0 .25rem;font-size:.85rem}.pool-method summary{cursor:pointer;min-height:44px;padding-block:.55rem;font-weight:700;display:list-item}.pool-method pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;margin-block:.55rem .25rem;font-size:.85rem}.pool-content{max-width:65rem}.pool-content>section:not(#formulas,#common-sizes){max-width:68ch}.pool-content-points li+li,#worked-example li+li{margin-block-start:.45rem}.pool-capacity-table{border:1px solid var(--border);border-radius:var(--radius);max-inline-size:100%;overflow-x:auto}.pool-capacity-table:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.pool-content .pool-capacity-table table{min-inline-size:38rem}.pool-capacity-table caption{color:var(--muted);text-align:start;padding:.65rem .75rem;font-weight:650}.pool-capacity-table thead{background:var(--tint)}.pool-capacity-table tbody tr:nth-child(2n){background:#f4faf7}.pool-capacity-table tbody tr:last-child>*{border-block-end:0}.pool-capacity-table thead th:nth-child(n+4),.pool-capacity-table tbody td:nth-child(n+4){text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums}.pool-content .pool-table-scroll{color:var(--muted);font-size:.85rem;display:none}@media (width<=43rem){.pool-content .pool-table-scroll{display:block}.pool-content .pool-capacity-table table{table-layout:fixed;inline-size:33.1875rem;min-inline-size:0}.pool-capacity-table thead th:first-child{width:6.875rem}.pool-capacity-table thead th:nth-child(2){width:7.875rem}.pool-capacity-table thead th:nth-child(3){width:4.125rem}.pool-capacity-table thead th:nth-child(4){width:4.5625rem}.pool-capacity-table thead th:nth-child(5){width:4.0625rem}.pool-capacity-table thead th:nth-child(6){width:5.6875rem}.pool-capacity-table thead th:nth-child(n+4){white-space:normal;overflow-wrap:normal}.pool-capacity-table tbody td:nth-child(n+4){font-size:.84rem}.pool-content .pool-capacity-table tr>:nth-child(n+4){padding-inline:.38rem}.pool-capacity-table :is(thead,tbody) th:first-child{background:var(--surface);border-inline-end:1px solid var(--border);position:sticky;inset-inline-start:0}.pool-capacity-table thead th:first-child{background:var(--tint)}.pool-capacity-table tbody tr:nth-child(2n) th:first-child{background:#f4faf7}}.pool-content .tool-explanation p{margin:0}.pool-content .tool-explanation h3{margin-block-start:0}.pool-content section{margin-block:2rem;scroll-margin-block:1rem}.pool-content h3{margin-block:1.45rem .4rem;line-height:1.25}.pool-content p{margin-block:.45rem .75rem}.pool-content .pool-guide{border-radius:var(--radius);border:1px solid var(--border);background:#f4faf9;max-width:27rem;padding:.5rem .75rem}.pool-content table{border-collapse:collapse;width:100%;font-size:.88rem}.pool-content :where(td,th){text-align:start;border-block-end:1px solid var(--border);overflow-wrap:anywhere;padding:.5rem}@media (width<=58rem){.shape-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (width>=47.01rem) and (height>=53rem){.pool-sidebar:not(:has(details[open])){position:sticky;inset-block-start:.75rem}}@media (width<=47rem){.pool-workspace{grid-template:"form""results""guide""method"/minmax(0,1fr)}.pool-sidebar{display:contents}.pool-results{grid-area:results}.pool-method{grid-area:method}}@media (width<=33rem){.pool-visual-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=35rem){.shape-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pool-settings{grid-template-columns:1fr}.pool-setup .pool-settings{grid-template-columns:minmax(0,1fr)}}@media (width<=23rem){.pool-setup,.pool-inputs,.pool-diagrams,.pool-results,.pool-method{padding:.65rem}.pool :where(.pool-settings,.pool-fields){grid-template-columns:1fr}.pool-content :where(td,th){padding:.3rem}}@media print{@page pool-worksheet{margin:13mm}html:has(pool-calculator){page:pool-worksheet;background:#fff}body:has(pool-calculator){background:#fff;min-height:0;display:block}body:has(pool-calculator)>:not(main){display:none}.container:has(pool-calculator){width:auto}.tool-page:has(pool-calculator){padding:0}.tool-page:has(pool-calculator)>:not(h1,.tool-panel){display:none}.tool-page:has(pool-calculator)>h1{font-size:23pt}.tool-page:has(pool-calculator)>.tool-panel{border:0;margin:0;padding:0}.pool .pool-shapes,.pool .pool-diagrams,.pool .pool-actions,.pool [data-status],.pool [data-breakdown]{display:none}.pool-workspace{grid-template:"form results""form method"1fr/minmax(0,3fr) minmax(0,2fr);gap:.4rem .7rem;margin:0}.pool-workspace:has(.pool-section:nth-child(3)){display:block}.pool-workspace:has(.pool-section:nth-child(3)) .pool-results{margin-block-start:.65rem}.pool-sidebar{display:contents}.pool-form{display:block}.pool-setup{margin-block-end:.5rem}.pool-setup,.pool-section,.pool-results{break-inside:avoid}.pool-settings,.pool-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pool select,.pool input:not([type=radio]):not([type=checkbox]){appearance:none;outline:none;min-height:0;padding:.25rem .4rem}.pool input[type=number]::-webkit-inner-spin-button{display:none}.pool-results{--result-ink:var(--ink);--result-accent:var(--ink);--result-muted:var(--muted);color:var(--ink);box-shadow:none;border-color:var(--border);background:#fff;grid-area:results}.pool-results select{color:var(--ink);background:#fff}.pool-results output{margin:.45rem 0}.pool-results [data-total-value]{font-size:20pt}.pool-results-list div{border:1px solid var(--border);background:#fff;padding:.2rem .4rem}.pool-method{border:0;grid-area:method;padding:.15rem 0}}.tool-page{--tool-content-gap:clamp(1.25rem, 4vw, 3rem)}.tool-toc{margin-block:1.5rem var(--tool-content-gap);border-block:1px solid var(--border);padding-block:.35rem}.tool-toc ul{flex-wrap:wrap;gap:0 .5rem;margin:0;padding:0;list-style:none;display:flex}.tool-toc a{align-items:center;min-block-size:44px;padding:.35rem .5rem;font-size:.875rem;font-weight:650;display:inline-flex}.tool-page section[id]{scroll-margin-block-start:1.25rem}.tool-explanation{gap:.8rem var(--tool-content-gap);border-block-start:1px solid var(--border);grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;padding-block:clamp(1rem,2.5vw,1.75rem);display:grid}.tool-explanation h3{margin:0 0 .375rem;font-size:clamp(1rem,2vw,1.2rem);line-height:1.3}.tool-explanation p{max-inline-size:60ch;margin:0}.tool-explanation-visual{min-inline-size:0}@media (width<=46rem){.tool-explanation{grid-template-columns:minmax(0,1fr)}.tool-toc ul{gap:0 .2rem}}
