
.dhm-tools-section {
  position: relative;
  padding: clamp(58px, 7vw, 96px) 20px;
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
}

.dhm-tool-wrap { max-width: 1120px; margin: 0 auto; }
.dhm-tool-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.dhm-tool-head h2 { margin: 0 0 14px; color: var(--dhm-navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.dhm-tool-head p { margin: 0; color: rgba(20, 44, 70, .78); font-size: 1.06rem; line-height: 1.75; }

.dhm-calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: stretch;
}

.dhm-calculator-form,
.dhm-calculator-result,
.dhm-tool-note {
  border: 1px solid rgba(8, 117, 185, .14);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 52px rgba(9, 65, 113, .10);
  border-radius: 28px;
}

.dhm-calculator-form { padding: clamp(22px, 3vw, 34px); }
.dhm-calculator-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.dhm-calculator-form legend { font-weight: 900; color: var(--dhm-navy); font-size: 1.18rem; margin-bottom: 14px; }

.dhm-field { display: grid; gap: 8px; margin-bottom: 16px; color: rgba(20,44,70,.82); font-weight: 800; }
.dhm-field span { font-size: .94rem; }
.dhm-field input,
.dhm-field select {
  width: 100%;
  border: 1px solid rgba(7, 95, 159, .22);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  background: #fff;
  color: var(--dhm-navy);
  outline: none;
}
.dhm-field input:focus,
.dhm-field select:focus { border-color: rgba(0, 174, 239, .72); box-shadow: 0 0 0 4px rgba(0, 174, 239, .14); }
.dhm-field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dhm-field-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: rgba(20,44,70,.55); font-weight: 900; font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
.dhm-field-divider::before,
.dhm-field-divider::after { content: ""; height: 1px; flex: 1; background: rgba(7, 95, 159, .15); }

.dhm-calculator-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.dhm-calculator-result { padding: clamp(24px, 3vw, 38px); background: radial-gradient(circle at 18% 15%, rgba(54,214,255,.18), transparent 34%), linear-gradient(145deg, #063c72, #0b75bd); color: #fff; overflow: hidden; position: relative; }
.dhm-calculator-result::after { content: ""; position: absolute; inset: auto -70px -90px auto; width: 210px; height: 210px; border-radius: 999px; background: rgba(255,255,255,.12); }
.dhm-result-kicker { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; color: rgba(255,255,255,.78); font-size: .78rem; }
.dhm-calculator-result h3 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; color: #fff; }
.dhm-calculator-result p { color: rgba(255,255,255,.86); line-height: 1.7; }
.dhm-result-list { position: relative; z-index: 2; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.dhm-result-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); }
.dhm-result-list b { color: #fff; }
.dhm-result-warning { position: relative; z-index: 2; margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); }
.dhm-tool-note { margin-top: 22px; padding: 18px 20px; color: rgba(20,44,70,.78); line-height: 1.65; }

@media (max-width: 860px) {
  .dhm-calculator-shell { grid-template-columns: 1fr; }
  .dhm-field-grid { grid-template-columns: 1fr; }
  .dhm-calculator-actions .dhm-btn { width: 100%; justify-content: center; }
}

/* 2026-05-12: Dazzle dosing calculator DB recommendations, pool-volume modal, and CTA styling. */
.dhm-volume-calc-inline{display:grid;gap:14px;margin-top:10px;padding:18px;border-radius:22px;background:#f4fbff;border:1px solid rgba(7,95,159,.14)}
.dhm-volume-calc-inline p{margin:0;color:rgba(20,44,70,.74);line-height:1.55;font-weight:750}.dhm-volume-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:18px}.dhm-volume-modal.is-open{display:flex}.dhm-volume-modal__backdrop{position:absolute;inset:0;background:rgba(5,43,79,.64);backdrop-filter:blur(8px)}.dhm-volume-modal__dialog{position:relative;width:min(680px,100%);max-height:min(88vh,820px);overflow:auto;padding:clamp(22px,4vw,36px);border-radius:30px;background:#fff;border:1px solid rgba(7,95,159,.16);box-shadow:0 28px 80px rgba(5,43,79,.35);outline:none}.dhm-volume-modal__close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:0;border-radius:999px;background:#eef9ff;color:#052b4f;font-size:28px;font-weight:900;line-height:1;cursor:pointer}.dhm-volume-modal__dialog h2{margin:0 0 10px;color:#052b4f;font-size:clamp(28px,4vw,42px);line-height:1.06}.dhm-volume-modal__dialog p{color:#526a7f;line-height:1.65}.dhm-volume-modal__form{display:grid;gap:14px;margin-top:18px}.dhm-volume-modal__actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.dhm-volume-modal__result{margin-top:18px;padding:18px;border-radius:22px;background:linear-gradient(135deg,#eaf9ff,#f5fffb);border:1px solid rgba(7,95,159,.14);display:grid;gap:4px}.dhm-volume-modal__result span{font-weight:900;color:#526a7f;text-transform:uppercase;letter-spacing:.08em;font-size:.78rem}.dhm-volume-modal__result strong{font-size:clamp(26px,4vw,42px);color:#052b4f;line-height:1}.dhm-tool-recommendation-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:18px;align-items:start;position:relative;z-index:2}.dhm-tool-recommendation-image{width:96px;height:96px;object-fit:contain;border-radius:20px;background:rgba(255,255,255,.94);padding:10px;box-sizing:border-box}.dhm-tool-recommendation-copy{min-width:0}.dhm-tool-recommendation-price{margin:0 0 10px!important;font-size:1.28rem!important;font-weight:1000!important;color:#fff!important}.dhm-result-list--contents li{justify-content:flex-start!important}.dhm-tool-recommendation-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.dhm-tool-recommendation-actions .dhm-btn{min-height:36px;padding:9px 14px;font-size:.9rem;border-radius:999px}.cta-section{margin:0 auto;padding:clamp(34px,6vw,58px) 20px;text-align:center;background:linear-gradient(135deg,#052b4f 0%,#075f9f 58%,#00aeef 100%);color:#fff;position:relative;overflow:hidden}.cta-section::before{content:"";position:absolute;inset:-80px auto auto -60px;width:240px;height:240px;border-radius:999px;background:rgba(255,255,255,.12)}.cta-section h2,.cta-section p,.cta-section a{position:relative;z-index:1}.cta-section h2{margin:0 auto 12px;max-width:820px;color:#fff;font-size:clamp(30px,5vw,54px);line-height:1.04}.cta-section p{margin:0 auto 22px;max-width:680px;color:rgba(255,255,255,.86);font-size:1.08rem;line-height:1.65}.cta-section .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 22px;border-radius:999px;background:#fff;color:#075f9f;text-decoration:none;font-weight:950;box-shadow:0 14px 34px rgba(0,0,0,.18)}.cta-section .btn:hover,.cta-section .btn:focus-visible{transform:translateY(-1px);background:#eef9ff;color:#052b4f}@media(max-width:860px){.dhm-volume-modal{padding:10px}.dhm-volume-modal__actions .dhm-btn,.dhm-volume-modal-trigger{width:100%;justify-content:center}.dhm-tool-recommendation-card{grid-template-columns:1fr;text-align:left}.dhm-tool-recommendation-image{width:112px;height:112px}.dhm-tool-recommendation-actions .dhm-btn{flex:1 1 132px;justify-content:center}.cta-section{border-radius:0}}

/* 2026-05-12: standalone Dazzle slider, result focus, mobile product image, and tool cards. */
.dhm-slider-field input[type="range"]{width:100%;accent-color:var(--dhm-blue,#0799d6);padding:0;border:0;background:transparent;box-shadow:none}.dhm-slider-field span strong{color:#075f9f;font-size:1.16em}.dhm-volume-modal-trigger--compact{justify-self:start;width:auto!important;min-height:36px!important;padding:8px 15px!important;border-radius:999px!important;font-size:.9rem!important;background:var(--dhm-blue,#0799d6)!important;border-color:var(--dhm-blue,#0799d6)!important;color:#fff!important}.dhm-tool-recommendation-card{align-items:center}.dhm-tool-recommendation-image{justify-self:center}.dhm-tools-directory{background:linear-gradient(180deg,#f4fbff 0%,#fff 100%)}.dhm-tools-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:18px}.dhm-tool-card{display:grid;gap:12px;align-content:start;padding:22px;border-radius:26px;background:#fff;border:1px solid rgba(7,95,159,.13);box-shadow:0 18px 42px rgba(5,43,79,.08)}.dhm-tool-card__icon{width:42px;height:42px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,#00aeef,#075f9f);color:#fff;font-weight:1000}.dhm-tool-card h3{margin:0;color:#052b4f;font-size:1.28rem}.dhm-tool-card p{margin:0;color:#526a7f;line-height:1.58}.dhm-tool-card .dhm-btn{justify-self:start;margin-top:4px}
@media(max-width:860px){.dhm-volume-modal-trigger--compact{width:auto!important;justify-self:start}.dhm-tool-recommendation-card{text-align:center}.dhm-tool-recommendation-image{width:149px!important;height:149px!important;margin:0 auto}.dhm-tool-recommendation-actions{justify-content:center}.dhm-tools-card-grid{grid-template-columns:1fr}.dhm-tool-card .dhm-btn{justify-self:stretch}}

/* 2026-05-12: tools directory hero CTA and generated tool icons. */
html { scroll-behavior: smooth; }
.page-tools .dhm-home-hero__actions .dhm-btn-primary { display: none !important; }
.page-tools .dhm-home-hero__actions { justify-content: flex-start; }
.dhm-tools-card-grid { scroll-margin-top: 110px; }
.dhm-tool-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dhm-tool-card__title-row h3 {
  margin: 0;
  line-height: 1.12;
}
.dhm-tool-card__icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: block;
  border-radius: 18px;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 12px 26px rgba(5,43,79,.14);
}
.dhm-tool-card .dhm-btn {
  justify-self: start;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .page-tools .dhm-home-hero__actions { justify-content: center; }
  .dhm-tool-card__title-row { justify-content: center; text-align: left; }
  .dhm-tool-card__icon { width: 50px; height: 50px; flex-basis: 50px; }
}

/* 2026-05-12: full chemistry calculator pages. */
.dhm-chem-tool-section{background:linear-gradient(180deg,#f4fbff 0%,#fff 100%)}
.dhm-chem-calculator-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:clamp(18px,4vw,34px);align-items:stretch;padding:clamp(18px,3vw,28px);border-radius:32px;background:#fff;border:1px solid rgba(7,95,159,.13);box-shadow:0 22px 58px rgba(5,43,79,.09)}
.dhm-chem-tool-head{grid-column:1/-1;margin-bottom:0}.dhm-chem-tool-head h2{font-size:clamp(2rem,4vw,3rem)}
.dhm-chem-form{display:grid;gap:18px;align-content:start}.dhm-chem-form .dhm-field{margin-bottom:0}.dhm-chem-form input[type="range"]{width:100%;accent-color:#0799d6;padding:0;border:0;background:transparent;box-shadow:none}.dhm-chem-form .dhm-field strong{color:#075f9f;font-size:1.18em}
.dhm-switch-field{display:grid;gap:10px;padding:16px;border-radius:22px;background:#f4fbff;border:1px solid rgba(7,95,159,.13)}.dhm-switch-field>span{font-weight:950;color:#052b4f}.dhm-switch-options{display:flex;flex-wrap:wrap;gap:12px}.dhm-switch-options label{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:#fff;border:1px solid rgba(7,95,159,.16);font-weight:900;color:#052b4f;cursor:pointer}.dhm-switch-options input{accent-color:#0799d6}.dhm-switch-field small{color:#526a7f;font-weight:750;line-height:1.5}.dhm-chem-actions{margin-top:2px}.dhm-chem-result{min-height:100%;align-self:stretch}.dhm-chem-result .dhm-result-list li{align-items:center}.dhm-chem-result .dhm-result-list b{text-align:right}.dhm-chem-result{scroll-margin-top:110px}
@media(max-width:860px){.dhm-chem-calculator-card{grid-template-columns:1fr;padding:16px;border-radius:26px}.dhm-chem-tool-head{text-align:center}.dhm-switch-options{display:grid;grid-template-columns:1fr}.dhm-chem-actions .dhm-btn{width:100%;justify-content:center}.dhm-chem-result .dhm-result-list li{display:grid;grid-template-columns:1fr;gap:4px}.dhm-chem-result .dhm-result-list b{text-align:left}.dhm-chem-form .dhm-field span{line-height:1.5}}
