:root{
--accent:#2563eb;
--text:#172033;
--muted:#667085;
--bg:#fff;
--soft:#f5f7fb;
--border:#e5e7eb;
--radius:16px;
--shadow:0 8px 28px rgba(16,24,40,.07);
--max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg);line-height:1.65}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid rgba(37,99,235,.25);outline-offset:2px}
img{max-width:100%;height:auto}
.container{width:min(var(--max),calc(100% - 32px));margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--accent);color:#fff;font-size:23px}
.custom-logo{max-height:48px;width:auto}
.primary-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:0}
.primary-nav a{font-weight:650;font-size:14px}
.menu-toggle{display:none;border:1px solid var(--border);background:#fff;border-radius:10px;padding:10px 14px;font-weight:700}
.hero{padding:78px 0 66px;background:linear-gradient(180deg,#f7faff,#fff)}
.hero-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:60px;align-items:center}
.eyebrow{display:inline-block;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
h1{font-size:clamp(38px,5vw,64px);line-height:1.08;letter-spacing:-.04em;margin:10px 0 20px}
h2{font-size:clamp(27px,3vw,38px);line-height:1.15;letter-spacing:-.025em}
h3{line-height:1.25}
.hero-text,.lead{font-size:18px;color:var(--muted);max-width:680px}
.site-search{display:flex;gap:10px;max-width:650px;margin-top:26px}
.site-search input{flex:1;min-width:0;border:1px solid #cfd5df;border-radius:12px;padding:15px 16px;font-size:16px;background:#fff}
.site-search button,.button{border:0;background:var(--accent);color:#fff;border-radius:12px;padding:14px 20px;font-weight:750;cursor:pointer}
.hero-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:34px;box-shadow:var(--shadow)}
.hero-card-icon{font-size:48px;color:var(--accent);font-weight:800}
.hero-card strong{display:block;font-size:22px;margin:10px 0}
.hero-card p{color:var(--muted);margin:0}
.section{padding:64px 0}
.section-muted{background:var(--soft)}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}
.section-heading h2{margin:6px 0 0}
.text-link{color:var(--accent);font-weight:750}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.category-card{padding:22px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;display:flex;flex-direction:column;gap:7px;transition:transform .2s,border-color .2s}
.category-card:hover{transform:translateY(-2px);border-color:#b9c6dc}
.category-icon{font-size:24px;color:var(--accent);font-weight:800}
.category-card small{color:var(--muted)}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.small-grid{grid-template-columns:repeat(4,1fr)}
.calc-card,.content-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.calc-card-body{padding:20px}
.calc-card h3{font-size:20px;margin:7px 0}
.calc-card p,.content-card p{color:var(--muted);font-size:14px}
.calc-card-image{display:block;background:#eef2f7;aspect-ratio:16/9;overflow:hidden}
.calc-card-image img{width:100%;height:100%;object-fit:cover}
.placeholder-icon{display:grid;place-items:center;height:100%;font-size:64px;color:var(--accent);font-weight:800}
.content-card{padding:22px}
.content-card img{border-radius:10px;margin-bottom:14px}
.content-narrow{max-width:820px}
.page-heading{margin-bottom:36px}
.page-heading h1{font-size:clamp(36px,5vw,54px);margin-bottom:8px}
.page-heading p,.term-description{color:var(--muted);font-size:18px}
.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-bottom:26px}
.breadcrumbs a{color:var(--accent)}
.calculator-header{max-width:850px;margin-bottom:34px}
.calculator-header h1{font-size:clamp(36px,5vw,56px)}
.calculator-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px;align-items:start}
.calculator-main{min-width:0}
.calc-box{background:#fff;border:1px solid var(--border);border-radius:20px;padding:26px;box-shadow:var(--shadow);margin:20px 0}
.calc-box-title{margin-top:0;font-size:26px}
.entry-content{font-size:17px}
.entry-content h2{margin-top:40px}
.entry-content h3{margin-top:30px}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content th,.entry-content td{border:1px solid var(--border);padding:10px;text-align:left}
.entry-content ul,.entry-content ol{padding-left:24px}
.sidebar{display:grid;gap:18px}
.widget{border:1px solid var(--border);border-radius:16px;padding:20px}
.widget-title{margin-top:0}
.related-section{margin-top:60px}
.post-header{margin-bottom:28px}
.post-header h1{font-size:clamp(36px,5vw,54px)}
.post-meta{color:var(--muted)}
.featured-image{border-radius:16px;margin-bottom:25px}
.empty-state{padding:40px;border:1px dashed #cbd5e1;border-radius:16px;color:var(--muted);grid-column:1/-1}
.empty-page{text-align:center}
.site-footer{background:#111827;color:#dbe3ee;margin-top:30px;padding:50px 0 20px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:60px}
.footer-brand{color:#fff;font-size:22px;margin-top:0}
.footer-grid h3{color:#fff}
.footer-grid p{color:#aeb8c7;max-width:550px}
.footer-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.footer-bottom{border-top:1px solid #303847;margin-top:36px;padding-top:18px;display:flex;justify-content:space-between;color:#9aa5b5;font-size:13px}
.pagination .nav-links{display:flex;gap:8px;justify-content:center;margin-top:35px}
.pagination a,.pagination span{padding:10px 14px;border:1px solid var(--border);border-radius:9px}
.pagination .current{background:var(--accent);color:#fff;border-color:var(--accent)}
@media(max-width:900px){
.category-grid{grid-template-columns:repeat(3,1fr)}
.card-grid,.small-grid{grid-template-columns:repeat(2,1fr)}
.hero-grid{grid-template-columns:1fr;gap:30px}
.calculator-layout{grid-template-columns:1fr}
}
@media(max-width:650px){
.container{width:min(100% - 24px,var(--max))}
.header-inner{min-height:64px;flex-wrap:wrap}
.menu-toggle{display:block}
.primary-nav{display:none;width:100%}
.primary-nav.is-open{display:block}
.primary-nav ul{flex-direction:column;gap:0;padding:8px 0 14px}
.primary-nav li a{display:block;padding:10px 0}
.hero{padding:50px 0}
.hero-search,.site-search{flex-direction:column}
.site-search button{width:100%}
.category-grid,.card-grid,.small-grid{grid-template-columns:1fr}
.section{padding:45px 0}
.footer-grid{grid-template-columns:1fr;gap:25px}
.footer-bottom{flex-direction:column;gap:8px}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
.category-card{transition:none}
}

/* Calculator Pool V3 visual system */
.pool-hero{background:linear-gradient(120deg,#0835c7 0%,#1458e9 58%,#0c49d9 100%);color:#fff;padding:66px 0 58px;position:relative;overflow:hidden}
.pool-hero:after{content:"";position:absolute;right:-80px;top:-120px;width:430px;height:430px;border:70px solid rgba(255,255,255,.05);border-radius:50%;transform:rotate(22deg)}
.pool-hero-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:48px;align-items:center;position:relative;z-index:1}
.pool-hero .eyebrow{color:#b7ff83}
.hero-copy h1{font-size:clamp(40px,5.5vw,64px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 20px}
.hero-copy h1 span{color:#75ef65}
.hero-copy p{font-size:17px;line-height:1.65;max-width:560px;color:#eef4ff}
.hero-trust{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px;font-size:13px;font-weight:700;color:#fff}
.hero-search-card{background:rgba(4,34,110,.82);border:1px solid rgba(255,255,255,.13);border-radius:17px;padding:25px;box-shadow:0 20px 50px rgba(0,0,0,.14)}
.hero-search-card h2{font-size:22px;margin:0 0 3px;color:#fff}
.hero-search-card p{font-size:13px;color:#dbe7ff;margin:0}
.hero-search-card .site-search{max-width:none;margin-top:17px}
.hero-search-card .site-search input{height:49px;border:0;border-radius:9px 0 0 9px}
.hero-search-card .site-search button{height:49px;border-radius:0 9px 9px 0;padding:0 22px}
.popular-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px;font-size:11px}
.popular-pills a{border:1px solid rgba(255,255,255,.3);padding:6px 10px;border-radius:99px;color:#fff}
.pool-section{padding:38px 0}
.pool-soft{background:#f6f8fc}
.pool-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:19px}
.pool-heading h2{font-size:19px;letter-spacing:-.02em;margin:0}
.pool-heading>a{font-size:12px;color:#1758e8;font-weight:750}
.pool-categories{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.pool-category{border:1px solid #e5e9f0;border-radius:13px;padding:16px 10px;text-align:center;background:#fff;box-shadow:0 4px 15px rgba(16,24,40,.035);transition:transform .2s,border-color .2s}
.pool-category:hover{transform:translateY(-2px);border-color:#c9d7f5}
.pool-icon{width:44px;height:44px;margin:0 auto 9px;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:800;background:#e7f1ff;color:#1760dc}
.pool-category:nth-child(2) .pool-icon{background:#e5f8ed;color:#15945a}
.pool-category:nth-child(3) .pool-icon{background:#ffe8f0;color:#e52e65}
.pool-category:nth-child(4) .pool-icon{background:#fff0df;color:#e98418}
.pool-category:nth-child(5) .pool-icon{background:#f0eaff;color:#7548db}
.pool-category:nth-child(6) .pool-icon{background:#e5f7f4;color:#149e91}
.pool-category:nth-child(7) .pool-icon{background:#fff0d9;color:#db8a00}
.pool-category:nth-child(8) .pool-icon{background:#eef0f5;color:#56637e}
.pool-category strong{display:block;font-size:12px}
.pool-category small{display:block;font-size:10px;color:#65738c;margin-top:3px}
.pool-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.pool-card{background:#fff;border:1px solid #e3e8f0;border-radius:13px;padding:21px 16px 15px;text-align:center;position:relative;box-shadow:0 4px 18px rgba(16,24,40,.04)}
.pool-card-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e8f2ff;color:#1760dc;margin:0 auto 12px;font-size:24px;font-weight:800}
.pool-card:nth-child(2) .pool-card-icon{background:#e4f7ed;color:#13935a}
.pool-card:nth-child(3) .pool-card-icon{background:#ffe7f0;color:#e42f65}
.pool-card:nth-child(4) .pool-card-icon{background:#fff0dc;color:#e78413}
.pool-card h3{font-size:14px;margin:0 0 7px}
.pool-card p{font-size:11px;line-height:1.55;color:#65738c;min-height:36px;margin:0 0 14px}
.pool-btn{display:block;width:100%;border:0;border-radius:7px;background:#175be5;color:#fff;padding:10px 12px;font-size:11px;font-weight:800;text-align:center;cursor:pointer}
.showcase{display:grid;grid-template-columns:1.05fr .95fr;gap:50px;align-items:center;background:linear-gradient(135deg,#f3f8ff,#edf6ff);border:1px solid #e0eaf8;border-radius:16px;padding:10px 20px 10px 10px}
.mini-calculator{display:grid;grid-template-columns:1.3fr .8fr;background:#fff;border:1px solid #dfe6ef;border-radius:11px;overflow:hidden;box-shadow:0 10px 25px rgba(22,65,130,.08)}
.mini-left{padding:17px}
.mini-title{font-weight:800;font-size:13px;margin-bottom:14px}.mini-title span{font-size:9px;color:#15945a;border:1px solid #8fe0b5;border-radius:99px;padding:3px 6px;margin-left:5px}
.mini-left label{display:block;font-size:9px;font-weight:700;margin:9px 0;color:#344054}
.mini-left input,.mini-left select{display:block;width:100%;border:1px solid #dce2ea;border-radius:5px;padding:8px;font-size:11px;margin-top:4px;background:#fff}
.mini-row{display:grid;grid-template-columns:1fr 1fr;gap:5px}.mini-left .pool-btn{margin-top:14px}
.mini-results{background:#f5f8fd;padding:17px}.mini-results h4{font-size:10px;margin:0 0 14px;color:#175be5}.mini-results small{display:block;font-size:8px;color:#718096;margin-top:8px}.mini-results strong{display:block;font-size:15px;margin-top:2px}
.showcase-copy .eyebrow{font-size:10px}.showcase-copy h2{font-size:30px;margin:8px 0 13px}.showcase-copy p{font-size:13px;color:#667085;line-height:1.6}.showcase-copy ul{list-style:none;padding:0;margin:17px 0;display:grid;gap:8px}.showcase-copy li{font-size:11px;font-weight:700}.showcase-copy li:before{content:"✓";color:#1b66e8;margin-right:8px}.inline-btn{display:inline-block;width:auto;padding:11px 15px}
.recent-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.recent-item{display:grid;grid-template-columns:38px 1fr;column-gap:9px;align-items:center;background:#fff;border:1px solid #e2e7ef;border-radius:10px;padding:9px}.recent-item span{grid-row:span 2;width:34px;height:34px;border-radius:50%;background:#e7f6ed;color:#15945a;display:grid;place-items:center;font-size:18px}.recent-item b{font-size:10px}.recent-item small{font-size:8px;color:#8994a6}
.site-header .brand-text{font-weight:800}
@media(max-width:950px){.pool-categories{grid-template-columns:repeat(4,1fr)}.pool-cards{grid-template-columns:repeat(2,1fr)}.pool-hero-grid,.showcase{grid-template-columns:1fr}.showcase{padding:18px}.recent-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.pool-hero{padding:46px 0}.pool-hero-grid{gap:28px}.hero-copy h1{font-size:42px}.hero-search-card .site-search{flex-direction:row}.hero-search-card .site-search input{min-width:0}.pool-categories,.pool-cards{grid-template-columns:repeat(2,1fr)}.pool-heading{align-items:flex-start}.pool-heading h2{font-size:18px}.recent-row{grid-template-columns:1fr}.mini-calculator{grid-template-columns:1fr}.mini-results{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}.mini-results h4{grid-column:1/-1}.showcase-copy h2{font-size:27px}}

/* Calculator Pool homepage v3.1 */
.cp-home-hero{padding:76px 0 68px}
.cp-home-hero .hero-copy h1{max-width:720px}
.cp-home-hero .hero-copy p{max-width:650px}
.cp-search-hero-card{padding:28px 30px}
.cp-search-hero-card .site-search input{font-size:15px}
.cp-dark-eyebrow{font-size:10px;color:#175be5}
.cp-section-tight{padding-top:46px;padding-bottom:46px}
.cp-popular-section{padding-top:48px;padding-bottom:54px}
.cp-directory-intro{padding-top:56px;padding-bottom:56px}
.cp-directory-banner{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:34px 38px;border:1px solid #dfe7f4;border-radius:18px;background:linear-gradient(135deg,#f5f9ff,#eef6ff)}
.cp-directory-banner h2{margin:8px 0 8px;font-size:31px}
.cp-directory-banner p{margin:0;color:#667085;max-width:700px;font-size:14px}
.cp-directory-button{width:auto;min-width:205px;white-space:nowrap}
.cp-recent-section{padding-top:48px;padding-bottom:54px}
.cp-why-section{padding-top:62px;padding-bottom:62px}
.cp-why-grid{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:start}
.cp-why-grid h2{margin:8px 0 14px;font-size:35px}
.cp-why-lead{color:#667085;max-width:600px;font-size:16px}
.cp-benefits{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cp-benefits>div{padding:20px;border:1px solid #e2e7ef;border-radius:14px;background:#fff}
.cp-benefits strong{display:block;font-size:14px;margin-bottom:5px}
.cp-benefits span{display:block;color:#667085;font-size:12px;line-height:1.55}
.cp-faq-section{padding-top:60px;padding-bottom:70px}
.cp-faq-heading{margin-bottom:18px}
.cp-faq-list{display:grid;gap:10px}
.cp-faq-list details{border:1px solid #e2e7ef;border-radius:12px;background:#fff;padding:0 18px}
.cp-faq-list summary{cursor:pointer;font-weight:750;font-size:14px;padding:17px 0;list-style:none}
.cp-faq-list summary::-webkit-details-marker{display:none}
.cp-faq-list summary:after{content:'+';float:right;color:#175be5;font-size:20px;line-height:1}
.cp-faq-list details[open] summary:after{content:'−'}
.cp-faq-list p{margin:0 0 17px;color:#667085;font-size:13px;line-height:1.7;max-width:850px}
.cp-empty-home{grid-column:1/-1;border:1px dashed #cbd5e1;border-radius:13px;padding:25px;text-align:center;color:#667085;background:#fff}
@media(max-width:800px){
 .cp-directory-banner,.cp-why-grid{grid-template-columns:1fr;display:grid;gap:22px}
 .cp-directory-button{width:100%}
 .cp-benefits{grid-template-columns:1fr}
 .cp-home-hero{padding:52px 0 48px}
}
@media(max-width:600px){
 .cp-search-hero-card{padding:22px}
 .cp-directory-banner{padding:26px 22px}
 .cp-directory-banner h2{font-size:26px}
 .cp-why-grid h2{font-size:29px}
}

/* ==========================================================
   Calculator Pool V3.2 — Mobile polish
   Fixes the homepage hero/search layout shown on mobile:
   the search button was inheriting width:100%, squeezing the
   input to a tiny sliver. These rules intentionally come last.
   ========================================================== */

@media (max-width: 600px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 24px, var(--max));
  }

  .site-header .header-inner {
    min-height: 66px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .brand {
    min-width: 0;
    gap: 9px;
    font-size: 18px;
  }

  .brand .brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand .custom-logo {
    max-height: 44px;
    width: auto;
  }

  .menu-toggle {
    flex: 0 0 auto;
    padding: 10px 14px;
  }

  .cp-home-hero {
    padding: 38px 0 42px;
  }

  .cp-home-hero .pool-hero-grid {
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin: 9px 0 18px;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.55;
    max-width: none;
  }

  .hero-trust {
    gap: 6px 9px;
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.35;
  }

  .hero-trust span {
    white-space: nowrap;
  }

  .cp-search-hero-card {
    width: 100%;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .cp-search-hero-card h2 {
    font-size: 21px;
    line-height: 1.2;
  }

  .cp-search-hero-card p {
    font-size: 13px;
  }

  /* Critical fix: keep input usable on mobile and prevent button
     from forcing itself to 100% width. */
  .cp-search-hero-card .site-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    flex-direction: initial;
    width: 100%;
    max-width: none;
    margin-top: 15px;
  }

  .cp-search-hero-card .site-search input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 12px 13px;
    border-radius: 9px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .cp-search-hero-card .site-search button {
    width: auto !important;
    min-width: 84px;
    height: 48px;
    margin: 0;
    padding: 0 15px;
    border-radius: 9px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .popular-pills {
    gap: 7px;
    margin-top: 13px;
    font-size: 11px;
  }

  .popular-pills a {
    padding: 6px 9px;
  }

  .pool-section {
    padding: 34px 0;
  }

  .pool-heading {
    gap: 9px;
  }

  .pool-heading > a {
    font-size: 11px;
    white-space: nowrap;
  }

  .pool-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pool-category {
    padding: 14px 8px;
    min-width: 0;
  }

  .pool-category strong {
    font-size: 12px;
  }

  .pool-category small {
    font-size: 9px;
  }

  .pool-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pool-card {
    padding: 19px 15px 15px;
  }

  .pool-card p {
    min-height: 0;
  }

  .cp-directory-banner {
    padding: 24px 18px;
    gap: 18px;
  }

  .cp-directory-banner h2 {
    font-size: 25px;
    line-height: 1.1;
  }

  .cp-directory-banner p {
    font-size: 13px;
    line-height: 1.55;
  }

  .cp-directory-button {
    min-width: 0;
    width: 100%;
  }

  .recent-row {
    grid-template-columns: 1fr;
  }

  .cp-why-grid {
    gap: 22px;
  }

  .cp-why-grid h2 {
    font-size: 28px;
    line-height: 1.1;
  }

  .cp-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cp-faq-section {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .cp-faq-list details {
    padding: 0 15px;
  }

  .cp-faq-list summary {
    font-size: 13px;
    line-height: 1.4;
    padding: 15px 0;
  }

  .cp-faq-list p {
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    gap: 8px;
  }
}
