

/* v5.1.306 homepage CLS guard: reserve space before JS hydration */
.cms-home-calculator{display:block;min-height:650px;contain:layout paint;}
.cms-home-calculator .cms-home-wrap{min-height:650px;}
@media(max-width:900px){.cms-home-calculator,.cms-home-calculator .cms-home-wrap{min-height:760px;}}
@media(max-width:520px){.cms-home-calculator,.cms-home-calculator .cms-home-wrap{min-height:700px;}}
.cms-home-wrap{font-family:Inter,Arial,sans-serif;background:#f4f7fb;color:#10233f}.cms-home-shell{width:min(1360px,calc(100vw - 32px));max-width:min(1360px,calc(100vw - 32px));margin:0 auto;box-sizing:border-box}.cms-home-hero{background:linear-gradient(180deg,#fff 0%,#f9fbfe 100%);border:1px solid #dde6f0;border-radius:16px;box-shadow:0 14px 30px rgba(15,23,42,.06);padding:18px 22px 22px}.cms-home-top{text-align:center;border-bottom:1px solid #e7eef5;padding-bottom:12px;margin-bottom:14px}.cms-home-top h2{margin:0;font-size:28px;font-weight:800;color:#0f172a}.cms-home-top p{margin:8px 0 0;color:#64748b;font-size:13px}.cms-mode-bar{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dbe4ee;border-radius:12px 12px 0 0;overflow:hidden;background:#eef3f8}.cms-mode-btn{border:none;background:#eef3f8;color:#334155;padding:12px 16px;font-size:15px;font-weight:800;cursor:pointer}.cms-mode-btn.active{background:#0f172a;color:#fff}.cms-home-work{display:grid;grid-template-columns:1.55fr .62fr;min-height:550px;border:1px solid #dbe4ee;border-top:none;border-radius:0 0 12px 12px;overflow:hidden;background:#f8fbff}.cms-home-left{padding:18px;border-right:1px solid #e4ebf3;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fbfdff,#f7faff)}.cms-home-right{padding:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f4f8fc,#eef4fb)}.cms-calc-wrap{width:100%;max-width:540px}.cms-display{background:linear-gradient(180deg,#0f172a,#16233a);border-radius:14px;padding:14px 16px;margin-bottom:14px;box-shadow:0 10px 22px rgba(15,23,42,.12)}.cms-expression{color:rgba(255,255,255,.72);font-size:12px;min-height:16px;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cms-display-main{font-size:34px;line-height:1;font-weight:800;color:#fff;text-align:right;margin-top:6px}.cms-key-grid{display:grid;gap:8px}.cms-key-row{display:grid;gap:8px}.cms-key-row.cols-4{grid-template-columns:repeat(4,1fr)}.cms-key-row.cols-3{grid-template-columns:repeat(3,1fr)}.cms-key{min-height:50px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;color:#0f172a;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 6px 14px rgba(15,23,42,.04)}.cms-key.op{background:linear-gradient(180deg,#0f172a,#1e293b);color:#fff;border-color:#0f172a}.cms-key.small{font-size:14px}.cms-screen{width:100%;height:100%;min-height:410px;border-radius:14px;border:1px solid #dde6f0;background:linear-gradient(180deg,#fff,#f8fbff);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}.cms-screen-title{font-size:20px;font-weight:800;color:#334155;text-align:center}.cms-screen-value{font-size:48px;line-height:1;font-weight:800;color:#0f172a;text-align:center;margin-top:10px;overflow-wrap:anywhere}.cms-history{margin-top:12px;padding:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#475569;font-size:13px;max-height:90px;overflow:auto}.cms-history div{padding:3px 0}.cms-home-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.cms-mini-btn{padding:8px 10px;border-radius:10px;border:1px solid #d7e2ee;background:#fff;color:#0f172a;font-weight:700;cursor:pointer}@media(max-width:900px){.cms-home-work{grid-template-columns:1fr}.cms-home-left{border-right:none;border-bottom:1px solid #e4ebf3}.cms-screen{min-height:220px}.cms-home-top h2{font-size:24px}}

/* v4.7.5 home shell width fix */
.cms-home-shell{width:min(1360px,calc(100vw - 32px))!important;max-width:min(1360px,calc(100vw - 32px))!important;box-sizing:border-box!important}
@media(max-width:760px){.cms-home-shell{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important}}

/* v4.7.6 override: centered safe home shell */
.cms-home-shell{
  width:100%!important;
  max-width:1360px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){.cms-home-shell{width:100%!important;max-width:100%!important}}


/* v5.1.92 home page mobile responsive hardening */
.cms-home-wrap,
.cms-home-wrap *{box-sizing:border-box}
.cms-home-wrap{width:100%;max-width:100%;overflow-x:hidden;padding:0 0 4px}
.cms-home-shell{width:100%!important;max-width:1360px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;overflow-x:hidden!important}
.cms-home-hero{width:100%;max-width:100%;overflow:hidden}
.cms-home-work{width:100%;max-width:100%;overflow:hidden}
.cms-calc-wrap{min-width:0;max-width:100%}
.cms-display,.cms-key-grid,.cms-key-row,.cms-history,.cms-home-actions{max-width:100%;min-width:0}
.cms-key{min-width:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.cms-screen-value{max-width:100%;overflow-wrap:anywhere;word-break:break-word}

@media(max-width:900px){
  .cms-home-wrap{padding:0 0 4px!important}
  .cms-home-shell{width:100%!important;max-width:100%!important}
  .cms-home-hero{padding:14px!important;border-radius:16px!important}
  .cms-home-work{grid-template-columns:1fr!important;min-height:auto!important;border-radius:0 0 12px 12px!important}
  .cms-home-left,.cms-home-right{width:100%!important;min-width:0!important;padding:14px!important}
  .cms-home-left{border-right:none!important;border-bottom:1px solid #e4ebf3!important}
  .cms-calc-wrap{max-width:100%!important;width:100%!important}
  .cms-screen{min-height:170px!important;padding:14px!important}
  .cms-screen-value{font-size:34px!important;line-height:1.1!important}
  .cms-display-main{font-size:30px!important;line-height:1.1!important}
}

@media(max-width:640px){
  .cms-home-top h2{font-size:22px!important;line-height:1.22!important}
  .cms-home-top p{font-size:13px!important;line-height:1.55!important}
  .cms-mode-bar{grid-template-columns:1fr!important;border-radius:12px!important;gap:0!important}
  .cms-mode-btn{width:100%!important;padding:11px 10px!important;font-size:14px!important;text-align:center!important}
  .cms-home-work{border-top:1px solid #dbe4ee!important;border-radius:12px!important;margin-top:10px!important}
  .cms-display{padding:12px!important;border-radius:13px!important;margin-bottom:12px!important}
  .cms-expression{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .cms-key-grid{gap:7px!important}
  .cms-key-row{gap:7px!important}
  .cms-key{min-height:46px!important;border-radius:11px!important;font-size:16px!important;padding:0 4px!important}
  .cms-key.small{font-size:12px!important}
  .cms-home-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .cms-mini-btn{width:100%!important;min-width:0!important;padding:9px 6px!important;font-size:12px!important;white-space:normal!important}
  .cms-history{max-height:78px!important;font-size:12px!important;line-height:1.45!important}
}

@media(max-width:420px){
  .cms-home-hero{padding:12px!important;border-radius:14px!important}
  .cms-home-left,.cms-home-right{padding:12px!important}
  .cms-display-main{font-size:26px!important}
  .cms-screen-value{font-size:28px!important}
  .cms-screen-title{font-size:16px!important}
  .cms-key{min-height:42px!important;font-size:14px!important;border-radius:10px!important}
  .cms-key.small{font-size:11px!important}
  .cms-home-actions{grid-template-columns:1fr!important}
}

/* v5.1.92 homepage category and SEO blocks mobile safety */
.cms-category-links-section,
.cms-home-seo-content{max-width:100%!important;overflow-x:hidden!important;box-sizing:border-box!important}
.cms-home-category-links,
.cms-home-seo-category-list{max-width:100%!important;min-width:0!important}
.cms-home-category-link{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
@media(max-width:760px){
  .cms-category-links-section,
  .cms-home-seo-content{width:100%!important;max-width:100%!important;padding-left:12px!important;padding-right:12px!important}
  .cms-home-category-links,
  .cms-home-seo-category-list{grid-template-columns:1fr!important}
  .cms-home-category-link{width:100%!important;justify-content:space-between!important}
}


/* v5.1.93 stronger home mobile responsive fix */
@media(max-width:520px){
  .cms-home-wrap{padding-left:0!important;padding-right:0!important;overflow-x:hidden!important}
  .cms-home-shell{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .cms-home-hero{width:100%!important;max-width:100%!important;margin:0!important;padding:10px!important;border-radius:12px!important;overflow:hidden!important}
  .cms-home-work{display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
  .cms-home-left,.cms-home-right{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px!important;overflow:hidden!important}
  .cms-calc-wrap,.cms-display,.cms-key-grid,.cms-screen,.cms-history{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .cms-key-row.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
  .cms-key-row.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .cms-key{min-width:0!important;min-height:40px!important;font-size:13px!important;padding:0 2px!important}
  .cms-key.small{font-size:10px!important;letter-spacing:-.01em!important}
  .cms-display-main{font-size:24px!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .cms-screen{min-height:140px!important}
  .cms-screen-value{font-size:24px!important}
}
@media(max-width:360px){
  .cms-key{min-height:38px!important;font-size:12px!important}
  .cms-key.small{font-size:9px!important}
  .cms-display-main,.cms-screen-value{font-size:22px!important}
}


/* v5.1.275 homepage popular calculator link chips */
.cms-home-featured-tools.cms-popular-calculators-box{
  background:#f8fbff;
  border:1px solid #d9e5f2;
  border-radius:18px;
  padding:16px;
  margin:18px 0 10px;
  box-shadow:0 6px 18px rgba(15,23,42,.04);
}
.cms-popular-links-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:0;
}
.cms-popular-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  background:#ffffff;
  border:1px solid #d8e2ef;
  border-radius:999px;
  color:#1f2d3d!important;
  text-decoration:none!important;
  font-weight:800;
  font-size:14px;
  line-height:1.35;
  transition:all .18s ease;
  box-shadow:0 2px 6px rgba(15,23,42,.04);
}
.cms-popular-link:hover,
.cms-popular-link:focus{
  background:#27496d;
  border-color:#27496d;
  color:#ffffff!important;
  transform:translateY(-1px);
}
@media(max-width:768px){
  .cms-home-featured-tools.cms-popular-calculators-box{padding:14px;border-radius:16px}
  .cms-popular-links-wrap{gap:10px}
  .cms-popular-link{width:100%;justify-content:flex-start;border-radius:14px;padding:12px 14px}
}


/* v5.1.307 homepage listing CSS: lets home category/SEO shortcodes avoid loading category.css on the homepage */
.cms-category-section,
.cms-category-links-section{
  font-family:Inter,Arial,sans-serif;
  margin:24px 0;
  color:#172033;
}
.cms-category-section h2,
.cms-category-links-section h2{
  font-size:32px;
  line-height:1.12;
  margin:0 0 10px;
  color:#172033;
  letter-spacing:-.03em;
}
.cms-home-category-links{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
  margin-top:14px;
}
.cms-home-category-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:15px 17px;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#eef4fa 100%);
  border:1px solid #b9cadb;
  text-decoration:none;
  color:#172033;
  font-size:15px;
  font-weight:850;
  box-shadow:0 10px 20px rgba(38,54,74,.08);
  transition:.18s ease;
}
.cms-home-category-link:after{content:"→";font-weight:900}
.cms-home-category-link:hover{
  background:#26364a;
  color:#fff;
  border-color:#26364a;
  box-shadow:0 14px 26px rgba(38,54,74,.18);
  transform:translateY(-1px);
}
.cms-home-category-link:hover:after{transform:translateX(2px)}
.cms-category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}
.cms-category-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px;
  border:1px solid #dfe7ef;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#f9fbfd 100%);
  box-shadow:0 12px 28px rgba(15,23,42,.05);
  text-decoration:none;
  color:#172033;
  transition:.2s ease;
}
.cms-category-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 36px rgba(15,23,42,.08);
  border-color:#cfdbe7;
}
.cms-category-card h3{margin:0;font-size:21px;color:#172033}
.cms-category-card p{margin:0;color:#64748b;font-size:14px;line-height:1.65}
.cms-category-card ul{margin:4px 0 0 18px;padding:0;color:#334155;font-size:14px;line-height:1.7}
.cms-home-seo-content{
  font-family:Inter,Arial,sans-serif;
  margin:30px 0;
  color:#172033;
  line-height:1.7;
}
.cms-home-seo-content h2{
  font-size:26px;
  line-height:1.2;
  margin:24px 0 10px;
  color:#172033;
  letter-spacing:-.02em;
}
.cms-home-seo-content p{margin:0 0 12px;color:#475569;font-size:15px}
.cms-home-seo-content ul{margin:10px 0 16px 20px;color:#334155}
.cms-home-seo-content li{margin:5px 0}
.cms-home-seo-category-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  margin-top:14px;
}
.cms-home-seo-category-list>div{
  padding:16px;
  border:1px solid #dfe7ef;
  border-radius:16px;
  background:linear-gradient(180deg,#fff 0%,#f8fbfe 100%);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.cms-home-seo-category-list strong{display:block;margin-bottom:6px;color:#172033;font-size:16px}
.cms-home-seo-category-list p{font-size:14px;margin:0;color:#64748b}
.cms-faq-list details{border:1px solid #dfe7ef;border-radius:14px;background:#fff;margin:10px 0;padding:12px 14px}
.cms-faq-list summary{cursor:pointer;font-weight:800;color:#172033}
.cms-faq-list p{margin:10px 0 0;color:#475569}
.cms-category-links-section,
.cms-home-seo-content,
.cms-home-seo-category-list,
.cms-home-category-links{box-sizing:border-box;max-width:100%;overflow-x:hidden}
.cms-home-category-link{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
@media(max-width:700px){
  .cms-category-section h2,
  .cms-category-links-section h2{font-size:25px}
  .cms-category-card{padding:18px}
  .cms-home-category-link{width:100%;justify-content:space-between}
}
@media(max-width:760px){
  .cms-category-links-section,
  .cms-home-seo-content{width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important;padding-left:12px!important;padding-right:12px!important}
  .cms-home-category-links,
  .cms-home-seo-category-list{grid-template-columns:1fr!important;width:100%!important;max-width:100%!important}
  .cms-home-category-link{width:100%!important;justify-content:space-between!important;font-size:14px!important;padding:13px 14px!important}
  .cms-home-seo-content h2{font-size:22px!important;line-height:1.25!important}
  .cms-home-seo-content p,
  .cms-home-seo-content li{font-size:14px!important;line-height:1.65!important}
}
