/* EMICalculate site-wide layer (updated 6 Nov 2026) */

/* ---- All screens ---- */
:root{--cardline:#C9D3E0;--crisp:0 1px 2px rgba(17,24,39,.06),0 6px 14px -6px rgba(17,24,39,.20);--lift:0 1px 2px rgba(17,24,39,.10),0 4px 10px -2px rgba(17,24,39,.12),0 20px 40px -12px rgba(17,24,39,.30)}

/* no bold inside sentences: a thin underline highlights instead */
section p b,section p strong,section li b,section li strong,.disc b,.disc strong,.insights b,.insights strong,.ins b,.ins strong,.a p b,.a p strong,td b,td strong,.note b,.note strong,.fhint b{font-weight:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* a short lead-in label at the start of a line stays slightly bold */
section p>b:only-child,section p>strong:only-child,.callout p:first-child>strong:first-child,section li>b:first-child,section li>strong:first-child,.ins .sl>b:first-child,.steps4 span>strong:first-child{font-weight:600;text-decoration:none}

/* headings: no decorative blue bar under section headings */
body:not(.hub) h2::after,body:not(.hub) section h2::after,body:not(.hub) .curve::after{display:none!important;content:none!important}

/* breadcrumb and last-updated now live inside the top section */
.bc{font-size:13px;color:var(--ink-3);margin:0 0 14px;line-height:1.5}
.bc a{color:var(--ink-3);text-decoration:none}
.bc a:hover{color:var(--blue);text-decoration:underline}
.bc b{color:var(--ink);font-weight:500}
.upd{font-size:13px!important;color:var(--ink-3)!important;margin:10px 0 0!important}

/* top section: one plain light blue, crisp line + short shadow, then a break */
.shell>.hero{background:#fff!important;overflow:visible!important;position:relative;border-bottom:0!important}
.shell>.hero::before,.shell>.hero::after{display:none!important}
.shell>.hero .hero-head{max-width:none!important;text-align:left!important;background:#EAF1FB;border-bottom:1px solid var(--cardline);box-shadow:0 6px 10px -6px rgba(17,24,39,.22);position:relative;z-index:2}
.shell>.hero .hero-head .lede{margin-left:0!important;margin-right:0!important;padding:0!important}
body:not(.hub)>.hero-land{background:#EAF1FB!important;text-align:left!important;border-bottom:1px solid var(--cardline)!important;box-shadow:0 6px 10px -6px rgba(17,24,39,.22);position:relative;z-index:2;overflow:visible}
body:not(.hub)>.hero-land::before,body:not(.hub)>.hero-land::after{display:none!important}
body:not(.hub)>.hero-land>*{margin-left:0!important;margin-right:0!important;text-align:left!important}
body:not(.hub)>.hero-land .cta{justify-content:flex-start!important}

/* the tool stands out: soft grey surround + deep shadow */
.shell>.hero .card{background:#fff;border:1px solid #DDE3EB!important;box-shadow:var(--lift)!important}
/* result card */
.result{border:1px solid var(--cardline)!important;box-shadow:0 1px 2px rgba(17,24,39,.08),0 10px 22px -10px rgba(17,24,39,.30)!important;border-radius:12px!important}

/* tables: thin rounded corners, crisp shadow, scroll bar kept apart from the table */
.tbl:not(.batbl){border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:2px 4px 14px!important;margin-left:-4px!important;margin-right:-4px!important}
.tbl:not(.batbl)>table{border:1px solid var(--cardline)!important;border-radius:10px!important;border-collapse:separate!important;border-spacing:0!important;box-shadow:var(--crisp);background:#fff}
.tbl:not(.batbl)>table>thead>tr:first-child>th:first-child,.tbl:not(.batbl)>table>tbody:first-child>tr:first-child>td:first-child{border-top-left-radius:9px}
.tbl:not(.batbl)>table>thead>tr:first-child>th:last-child,.tbl:not(.batbl)>table>tbody:first-child>tr:first-child>td:last-child{border-top-right-radius:9px}
.tbl:not(.batbl)>table>tbody>tr:last-child>td:first-child{border-bottom-left-radius:9px}
.tbl:not(.batbl)>table>tbody>tr:last-child>td:last-child{border-bottom-right-radius:9px}
.tbl:not(.batbl)>table>tbody>tr:last-child>td{border-bottom:0}
.tblhint,.tblhint.show{display:none!important}

/* ---- Desktop ---- */
@media (min-width:1100px){
  :root{--L:max(32px,calc((100vw - 1240px)/2));--R:calc(var(--L) + 373px)}
  nav{padding-left:var(--L)!important;padding-right:var(--L)!important}
  .mmenu a{padding-left:var(--L)!important}
  footer{padding-left:var(--L)!important;padding-right:var(--L)!important}
  footer>*{max-width:none!important;margin-left:0!important;margin-right:0!important}

  .lede{font-size:17px!important}
  .tbl td,.tbl th{font-size:14.5px}
  .field label{font-size:14.5px}
  .fhint{font-size:13px!important}
  body:not(.hub) .curve::after{display:none!important}
  body:not(.hub) .curve{white-space:normal}

  .card,.railin,.tcard,.callout,.fbox,.rowsbox,.offer,.drow,.rule>div,.faq details{border:1px solid var(--cardline)!important;box-shadow:var(--crisp)!important}
  .shell>.hero .card{box-shadow:var(--lift)!important}

  .shell{position:relative;padding-bottom:8px}
  .shell>:not(.rail){padding-left:var(--L)!important;padding-right:var(--R)!important}
  .shell .wrap{max-width:none!important;margin-left:0!important;margin-right:0!important}

  .shell>.hero{padding-top:0!important;padding-bottom:36px!important}
  .shell>.hero .hero-head{margin:0 calc(-1*var(--R)) 32px calc(-1*var(--L))!important;padding:22px var(--R) 28px var(--L)!important}
  .shell>.hero .hero-head h1{margin-bottom:10px}
  .shell>.hero .hero-head .lede{max-width:760px}
  .shell>.hero .card{max-width:none!important;margin:0!important}

  .shell>section{background:#fff!important;border-top:1px solid #DCE3EC!important}
  .shell>section.alt{background:#F6F8FB!important}
  .shell>section.faq{background:#fff!important}

  /* right rail: thin line on its left; card sticks smoothly (rail.js handles short screens) */
  .rail{display:block!important;position:absolute;top:0;bottom:28px;right:var(--L);width:300px;z-index:3}
  .rail::before{content:'';position:absolute;top:0;bottom:0;left:-24px;width:1px;background:#D5DDE8}
  .railin{position:sticky;top:86px;width:300px;height:600px;background:#fff;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
  .railin .rt{font:600 15px/1.3 'Inter',sans-serif;color:#111827;background:#EAF1FB;padding:15px 18px;border-bottom:1px solid #D5DDE8}
  .railin ul{list-style:none;margin:0;padding:4px 0;flex:1;display:flex;flex-direction:column}
  .railin li{flex:1;display:flex;border-bottom:1px solid #EEF1F5}
  .railin li:last-child{border-bottom:0}
  .railin a{display:flex;flex-direction:column;justify-content:center;gap:2px;width:100%;padding:6px 18px;text-decoration:none}
  .railin a span{font:500 14.5px/1.35 'Inter',sans-serif;color:var(--blue)}
  .railin a small{font-size:12.5px;line-height:1.4;color:var(--ink-3)}
  .railin a:hover{background:#F5F8FC}
  .railin a:hover span{text-decoration:underline;text-underline-offset:3px}
  .railin .rall{padding:12px 18px;border-top:1px solid #E6EBF2;font-size:13px}
  .railin .rall a{display:inline;padding:0;color:var(--blue);text-decoration:underline;text-underline-offset:3px}

  body:not(.hub)>.hero-land,body:not(.hub)>section,body:not(.hub)>.byline,body:not(.hub)>.adslot{padding-left:var(--L)!important;padding-right:var(--L)!important}
  body:not(.hub)>.hero-land{padding-top:22px!important}
  body:not(.hub)>section .wrap,body:not(.hub)>.byline .wrap{max-width:none!important;margin-left:0!important;margin-right:0!important}
  body:not(.hub)>section{background:#fff!important;border-top:1px solid #DCE3EC}
  body:not(.hub)>section.alt{background:#F6F8FB!important}
  body:not(.hub)>.hero-land+section,body:not(.hub)>.hero-land+.adslot+section{margin-top:30px}
  .shell+.byline,body:not(.hub)>.byline{padding-left:var(--L)!important}
}

/* ---- Phones and tablets ---- */
@media (max-width:1099.98px){
  .rail{display:none!important}
  .shell>.hero{padding:0 16px 26px!important}
  .shell>.hero .hero-head{margin:0 -16px 22px!important;padding:16px 16px 20px!important}
  .shell>.hero .hero-head h1{text-align:left!important}
  .shell>.hero .card{margin:0!important}
  body:not(.hub)>.hero-land{padding:16px 16px 22px!important}
  body:not(.hub)>.hero-land+section{margin-top:18px}
  .bc{margin-bottom:12px}
}
@media print{.rail{display:none!important}}

.hero-land .upd{margin-bottom:18px!important}

/* ---- 6 Nov round 4 ---- */
.upd .ud{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* tables: plain white, no blue fills; your row shows in blue text only; no hover colour; no up-down scroll */
.tbl:not(.batbl){max-height:none!important;overflow-y:visible!important}
.tbl:not(.batbl) th{background:#F6F8FB!important;color:var(--ink)!important;font-weight:600!important;border-bottom:1px solid #DCE3EC!important}
.tbl:not(.batbl) td,.tbl:not(.batbl) tbody tr:nth-child(even) td,.tbl:not(.batbl) tr:hover td{background:#fff!important}
.tbl:not(.batbl) tr.hl,.tbl:not(.batbl) tr.hl td{background:#fff!important}
.tbl:not(.batbl) tr.hl td{color:var(--blue)!important;font-weight:700!important}
.tbl:not(.batbl) tr.ok td{background:#fff!important;color:#15803D!important;font-weight:600!important}
.tbl:not(.batbl) tr.warnrow td{background:#fff!important;color:#B91C1C!important;font-weight:600!important}
/* footer bottom line left aligned */
footer .fb{text-align:left!important}
@media (max-width:1099.98px){
  .upd{font-size:12px!important}
  .tsb{display:none!important}
}
.railin .rt2{border-top:1px solid #D5DDE8}
.railin ul.rg{flex:none}.railin ul.rg li{flex:none}.railin ul.rg li a{padding:10px 18px}

/* ---- 4 Dec: thin top section on calculator and guide pages ---- */
.shell>.hero .hero-head .bc{margin-bottom:6px}
.shell>.hero .hero-head h1{margin-bottom:6px!important}
.shell>.hero .hero-head .lede{margin-bottom:0!important}
@media (min-width:1100px){
  .shell>.hero .hero-head{padding:14px var(--R) 18px var(--L)!important;margin-bottom:22px!important}
  .shell>.hero .hero-head h1{font-size:34px!important;line-height:1.15!important}
  .shell>.hero .hero-head .lede{font-size:16px!important;line-height:1.55!important}
}
@media (max-width:1099.98px){
  .shell>.hero .hero-head{padding:12px 16px 14px!important;margin-bottom:16px!important}
}
/* ---- 4 Dec: category pages (home, calculators, guides) keep the centred design ---- */
body.hub .bc{text-align:center}
body.hub .cat,body.cats .cat{margin-top:48px}
body.hub .cat:first-of-type,body.cats .cat:first-of-type{margin-top:28px}
body.hub .cat>h3,body.cats .cat>h3{font-size:22px;margin:0 0 6px;padding-bottom:10px;border-bottom:1px solid #DCE3EC}
body.hub .cat>p.cdesc,body.cats .cat>p.cdesc{margin:10px 0 18px;color:var(--ink-3);font-size:15px}
body.hub .tcard{min-width:0}
body.hub .tbtn{white-space:normal;text-align:center}
@media (min-width:1100px){.shell>.hero .hero-head .lede{max-width:980px!important}}

/* ---- 4 Dec round 2: smaller desktop type, compact tool, tag below the top section ---- */
.tagrow{margin:0 0 16px}
.tagrow .rbi{margin-top:0!important}
@media (min-width:1100px){
  .shell>.hero .hero-head h1{font-size:28px!important;line-height:1.22!important;letter-spacing:-.01em}
  .shell>.hero .hero-head .lede{font-size:15px!important;line-height:1.55!important}
  .shell>.hero .hero-head{margin-bottom:20px!important}
  .shell>.hero .card:not(.answer){zoom:.9}
  .shell>section h2{font-size:22px!important}
  .tagrow{margin:0 0 18px}
}
/* category pages (calculators, guides): left aligned, thin top */
body.cats>.hero-land,body.cats>header.hero{background:#EAF1FB!important;text-align:left!important;border-bottom:1px solid var(--cardline)!important;box-shadow:0 6px 10px -6px rgba(17,24,39,.22);position:relative;z-index:2}
body.cats>header.hero::before,body.cats>header.hero::after{display:none!important}
body.cats>header.hero .hero-head{max-width:none!important;margin:0!important;text-align:left!important}
body.cats h1{font-size:26px!important;line-height:1.2!important;margin:0 0 6px!important;max-width:none!important}
body.cats .lede{font-size:15px!important;max-width:760px!important;margin:0!important}
body.cats>.hero-land,body.cats>header.hero{padding:14px 16px 18px!important}
body.cats .bc{margin-bottom:6px}
@media (min-width:1100px){
  body.cats>.hero-land,body.cats>header.hero{padding:16px var(--L) 22px!important}
  body.cats h1{font-size:30px!important}
  body.cats>section.ghub{margin-top:8px}
}
body.cats .cat:first-of-type{margin-top:0}
body.cats>section.ghub{padding-top:28px!important}
body.cats .lede{padding:0!important}
/* category switch on home and calculators pages */
.cattog{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 8px}
body.hub .cattog{justify-content:center}
.cattog .ctl{font:600 15px 'Inter',sans-serif;color:var(--ink);margin-right:4px}
.cattog button{font:600 14.5px 'Inter',sans-serif;padding:10px 18px;border-radius:8px;border:1px solid var(--cardline);background:#fff;color:var(--ink);cursor:pointer;box-shadow:0 1px 2px rgba(17,24,39,.06);min-height:44px}
.cattog button:hover{border-color:var(--blue);color:var(--blue)}
.cattog button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
.cattog button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
body.hub .catsw .cat:first-of-type,body.cats .catsw .cat:first-of-type{margin-top:28px}
.catsw>.cattog+.cat{margin-top:28px!important}
@media (max-width:600px){.cattog{gap:8px}.cattog button{padding:9px 14px;font-size:14px}.cattog .ctl{width:100%}}
@media (max-width:600px){.cattog{flex-wrap:nowrap;gap:6px}.cattog .lg{display:none}.cattog button{flex:1 1 0;padding:9px 6px;font-size:13.5px}body.cats .cattog{flex-wrap:wrap}body.cats .cattog .ctl{width:100%}body.cats .cattog button{flex:1 1 0}}
@media (max-width:600px){.cattog button,body.cats .cattog button{flex:1 1 auto;white-space:nowrap;padding:9px 10px;font-size:13px}}
@media (max-width:600px){body.hub .cattog{flex-wrap:wrap}body.hub .cattog .ctl{width:100%;text-align:center}}
