/* Arizona Pool Chemistry Calculator */
.calc-wrap { padding: 32px 0 20px; background: var(--blue-light); }
.calc { display: grid; gap: 18px; }
.calc-card { background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); border: 1px solid rgba(29, 59, 110, .06); margin: 0; min-width: 0; }
.calc-legend, .targets > summary { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); padding: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; float: left; width: 100%; }
.calc-legend + * { clear: both; }
.targets > summary { float: none; cursor: pointer; margin: 0; flex-wrap: wrap; list-style: none; }
.targets > summary::-webkit-details-marker { display: none; }
.targets > summary::after { content: "▾"; margin-left: auto; color: var(--blue); transition: transform .15s; }
.targets[open] > summary::after { transform: rotate(180deg); }
.targets[open] > summary { margin-bottom: 14px; }
.targets .opt { font-family: var(--font-body); font-size: .9rem; font-weight: 600; }
.calc-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1rem; flex: none; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.calc .field { margin-bottom: 14px; }
.calc label { font-size: .95rem; }
.calc input[type="text"], .calc select { width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 14px; border: 2px solid #d6e2f0; border-radius: 12px; background: #fbfdff; color: var(--ink); min-height: 50px; }
.calc select { appearance: auto; }
.calc input:focus, .calc select:focus { border-color: var(--blue); outline: none; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); cursor: pointer; margin: 4px 0 10px; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.vol-helper { background: var(--blue-light); border-radius: 12px; padding: 12px 14px; }
.vol-helper summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.vol-helper[open] summary { margin-bottom: 12px; }
.vol-out { margin: 10px 0 0; font-weight: 700; color: var(--navy); }
.vol-out:empty { display: none; }
.hint { font-size: .9rem; color: var(--muted); }
.hint-list { font-size: .92rem; color: var(--muted); padding-left: 1.2em; margin: 4px 0 0; }
.hint-list li { margin-bottom: 4px; }
.calc-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }

.results { margin-top: 26px; background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 12px); }
.results h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.res-meta { color: var(--muted); font-size: .95rem; }
.res-sub { margin-top: 1.4em; }
.calc-error, .calc-warn { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.calc-error { background: #fdecec; color: #8a1f1f; }
.calc-warn { background: #fff6dc; color: #6b4b00; }
.order-note { margin-bottom: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step { border: 2px solid var(--blue-light); border-radius: 14px; padding: 14px 16px; }
.step-ok { background: #ecfaf1; border-color: #c9efd7; }
.step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.step-head h3 { margin: 0; font-size: 1.2rem; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; flex: none; }
.step-range { margin-left: auto; font-weight: 700; color: var(--blue); font-size: .95rem; }
.prods { list-style: none; padding: 0; margin: 0 0 8px; }
.prods li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #dbe6f2; }
.prods li:last-child { border-bottom: 0; }
.prods li span { color: var(--ink); }
.prods li strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); text-align: right; white-space: nowrap; }
.prods li:first-child strong { font-size: 1.4rem; color: var(--blue); }
.prods li.alt span { color: var(--muted); font-size: .95rem; }
.prods .sub { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 600; display: block; }
.step-detail { font-size: .95rem; color: var(--muted); margin: 0; }
.split { margin: 8px 0 0; font-size: .92rem; background: #fff6dc; color: #6b4b00; border-radius: 10px; padding: 8px 10px; }
.csi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.csi { border-radius: 12px; padding: 12px 14px; background: #f4f7fb; }
.csi-top { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--muted); }
.csi-top strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.csi-ok .csi-top strong { color: #1d7a45; }
.csi-high .csi-top strong { color: #a05a00; }
.csi-low .csi-top strong { color: #b42323; }
.csi-bar { position: relative; height: 8px; border-radius: 99px; margin: 10px 0 2px; background: linear-gradient(90deg, #e05050 0%, #f0c040 25%, #3cbf6e 40%, #3cbf6e 60%, #f0c040 75%, #e09030 100%); }
.csi-bar i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; background: var(--navy); border-radius: 2px; }
.csi-note { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.csi-explain { font-size: .92rem; color: var(--muted); }
.safety { background: #fff6dc; border-radius: 14px; padding: 16px 18px; margin-top: 16px; }
.safety h3 { color: #6b4b00; margin-bottom: 6px; }
.safety ul { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.safety li { margin-bottom: 6px; }
.disclaimer { font-size: .88rem; color: var(--muted); margin: 16px 0 0; border-top: 1px solid #e3ebf4; padding-top: 12px; }

.shop { margin-top: 26px; background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.shop h2 { font-size: 1.5rem; }
.shop-intro { color: var(--muted); font-size: .95rem; }
.shop-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-list li { border: 2px solid var(--blue-light); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.shop-list a { font-weight: 700; text-decoration: none; }
.shop-list a::after { content: " ↗"; font-size: .8em; }
.shop-list span { font-size: .85rem; color: var(--muted); }
.shop-disc { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.calc-cta { margin: 26px 0 30px; }
.calc-info .post-body { padding-top: 40px; }
.faq-item { border-bottom: 1px solid #e3ebf4; padding: 4px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--blue); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary h3 { margin: 0; font-size: 1.15rem; }
.faq-item p { margin: 0 0 12px; }
@media (max-width: 560px) {
  .csi-grid, .shop-list { grid-template-columns: 1fr; }
  .prods li { flex-wrap: wrap; }
}
@media (max-width: 360px) { .calc-grid { grid-template-columns: 1fr; } }
