/* Shared ISY shell for the four active canone concordato calculators.
   Calculator grids, fields, formulas and result components keep their page CSS. */
body.isy-calculator,
body.has-fixed-navbar.tool-layout.isy-calculator {
  padding-top: 82px;
  background: #f7f9fc;
  color: #172033;
  font-family: Inter, system-ui, sans-serif;
}
body.isy-calculator .header-area {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(145deg,rgba(4,12,24,.97),rgba(7,24,43,.96));
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 28px rgba(4,12,24,.17);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.isy-calculator .header-area .navbar {
  min-height: 72px;
  padding: 8px 0;
}
body.isy-calculator .header-area .navbar .container { max-width: 1320px; }
body.isy-calculator .header-area .site-logo {
  display: block;
  width: auto;
  max-height: 46px;
}
body.isy-calculator .header-area .navbar-brand { margin-right: 18px; }
body.isy-calculator .header-area .navbar-nav .nav-link {
  color: rgba(255,255,255,.9);
  font-size: .86rem;
  font-weight: 600;
  padding: .68rem .43rem;
  white-space: nowrap;
}
body.isy-calculator .header-area .navbar-nav .nav-link:hover,
body.isy-calculator .header-area .navbar-nav .nav-link:focus,
body.isy-calculator .header-area .navbar-nav .active > .nav-link { color: #80dce6; }
body.isy-calculator .header-area .dropdown-menu {
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(4,18,34,.98);
  box-shadow: 0 22px 48px rgba(0,0,0,.24);
}
body.isy-calculator .header-area .dropdown-item {
  color: #f4f9fd;
  white-space: normal;
  font-size: .9rem;
}
body.isy-calculator .header-area .dropdown-item:hover,
body.isy-calculator .header-area .dropdown-item:focus {
  color: #fff;
  background: rgba(62,193,213,.16);
}
body.isy-calculator main.tool-scope {
  background: linear-gradient(180deg,#f7f9fc,#fff 64%);
  padding-bottom: 42px;
}
body.isy-calculator main.tool-scope h1,
body.isy-calculator main.tool-scope h2 {
  font-family: Poppins, Inter, system-ui, sans-serif;
}
body.isy-calculator main.tool-scope h1 { color: #092b55; }
body.isy-calculator main.tool-scope p { text-align: left; }
body.isy-calculator main.tool-scope .btn.primary,
body.isy-calculator main.tool-scope .btn-tool.primary {
  background: #0d3b66;
  border-color: #0d3b66;
  color: #fff;
}
body.isy-calculator main.tool-scope .btn.primary:hover,
body.isy-calculator main.tool-scope .btn-tool.primary:hover { background: #165380; }

body.isy-calculator .isy-calc-footer {
  padding: 42px 0 28px;
  color: #dce8f5;
  background: linear-gradient(145deg,#040c18,#07182b);
  border-top: 1px solid rgba(62,193,213,.3);
}
body.isy-calculator .isy-calc-footer .container { max-width: 1320px; }
body.isy-calculator .isy-calc-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
body.isy-calculator .isy-calc-footer h2 {
  color: #fff;
  font-size: 1.45rem;
  margin: 0 0 13px;
}
body.isy-calculator .isy-calc-footer h3 {
  color: #7fd3de;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 4px 0 15px;
}
body.isy-calculator .isy-calc-footer p { color: #c8d9e8; text-align: left; }
body.isy-calculator .isy-calc-footer a { color: #e5f3f7; }
body.isy-calculator .isy-calc-footer a:hover { color: #7fd3de; }
body.isy-calculator .isy-calc-footer nav a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
body.isy-calculator .isy-calc-footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .87rem;
}
body.isy-calculator .isy-calc-footer-bottom p { margin: 0; }

@media (max-width: 1199.98px) {
  body.isy-calculator .header-area .navbar-collapse {
    margin-top: 8px;
    padding: 10px 12px;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    border-radius: 16px;
    background: rgba(4,12,24,.98);
  }
  body.isy-calculator .header-area .navbar-nav .nav-link {
    white-space: normal;
    font-size: .94rem;
    padding: .62rem .7rem;
  }
  body.isy-calculator .header-area .dropdown-menu { max-height: none; }
}
@media (max-width: 767.98px) {
  body.isy-calculator,
  body.has-fixed-navbar.tool-layout.isy-calculator { padding-top: 76px; }
  body.isy-calculator .header-area .navbar { min-height: 66px; }
  body.isy-calculator .header-area .site-logo { max-height: 42px; }
  body.isy-calculator .isy-calc-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media print {
  body.isy-calculator { padding-top: 0; }
  body.isy-calculator .header-area,
  body.isy-calculator .isy-calc-footer { display: none !important; }
}

/* The longer calculator menus use the same readable column layout as the site. */
@media (min-width: 1200px) {
  body.isy-calculator .header-area .dropdown-menu.isy-multicol {
    position: fixed !important;
    top: 72px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 18px;
    gap: 3px 14px;
    display: none;
    border: 1px solid rgba(255,255,255,.12);
  }
  body.isy-calculator .header-area .dropdown-menu.isy-multicol.show { display: grid !important; }
  body.isy-calculator .header-area .dropdown-menu.isy-three-col { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.isy-calculator .header-area .dropdown-menu.isy-two-col {
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: min(710px, calc(100vw - 32px));
  }
  body.isy-calculator .header-area .dropdown-menu.isy-multicol li { min-width: 0; }
  body.isy-calculator .header-area .dropdown-menu.isy-multicol .dropdown-item {
    white-space: normal;
    line-height: 1.3;
    padding: 10px 12px;
  }
}

/* Homepage visual language, scoped to legal pages and public calculators. */
body.isy-page-shell > header.header-area{
  background:linear-gradient(180deg,rgba(4,12,24,.24),rgba(4,12,24,.12) 62%,rgba(4,12,24,.02) 100%)!important;
  border-bottom:0!important;box-shadow:none!important;
  backdrop-filter:blur(10px) saturate(115%);-webkit-backdrop-filter:blur(10px) saturate(115%);
}
body.isy-page-shell > .hero-executive{
  min-height:min(920px,94vh)!important;padding:146px 0 132px;background:#071321;
}
body.isy-page-shell > .hero-executive .hero-copy{transform:none;padding-right:1vw;}
body.isy-page-shell > .hero-executive .hero-grid{
  grid-template-columns:minmax(0,1.16fr) minmax(350px,.72fr);gap:clamp(46px,6vw,92px);
}
body.isy-page-shell > .hero-executive h1{
  max-width:850px;font-size:clamp(3.05rem,4.9vw,4.7rem);line-height:1.08;letter-spacing:-.05em;margin-bottom:26px;text-wrap:balance;
}
body.isy-page-shell > .hero-executive .lead{max-width:720px;font-weight:400;line-height:1.58;}
body.isy-page-shell > .hero-executive .hero-glass-card{
  max-width:540px;padding:32px;background:linear-gradient(145deg,rgba(7,25,45,.50),rgba(7,19,35,.30));
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
}
body.isy-page-shell > .hero-executive .hero-glass-card h2{font-size:1.5rem;}
body.isy-page-shell > .hero-executive .hero-checklist li{line-height:1.42;}
body.isy-page-shell > .hero-executive .hero-proof-item{
  min-height:0;padding:4px 12px;border:0;border-right:1px solid rgba(255,255,255,.13);border-radius:0;background:transparent;box-shadow:none;
}
body.isy-page-shell > .hero-executive .hero-proof-item:first-child{padding-left:0;}
body.isy-page-shell > .hero-executive .hero-proof-item:last-child{border-right:0;padding-right:0;}
body.isy-page-shell > .hero-executive .hero-proof-item strong{color:#f1d08a;font-size:1.38rem;margin-bottom:8px;}
body.isy-page-shell > .hero-executive .hero-proof-item span{font-size:.78rem;}
body.isy-page-shell > .hero-executive .hero-proof-block p{font-size:.88rem;line-height:1.55;}
body.isy-page-shell > .hero-stats-strip{
  position:relative;z-index:8;margin-top:-16px;padding:0 0 34px;border:0;background:transparent;
}
body.isy-page-shell > .hero-stats-strip .container{
  padding:14px 22px;border:1px solid rgba(13,59,102,.1);border-radius:24px;
  background:rgba(255,255,255,.97);box-shadow:0 24px 60px rgba(15,23,42,.16);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
}
body.isy-page-shell > .hero-stats-strip .row > [class*="col-"]{position:relative;}
body.isy-page-shell > .hero-stats-strip .row > [class*="col-"]:not(:last-child)::after{
  content:"";position:absolute;top:18%;right:0;width:1px;height:64%;background:rgba(13,59,102,.12);
}
body.isy-page-shell > .hero-stats-strip .home-credential{min-height:88px;padding:10px 8px;text-align:center;}
body.isy-page-shell > .hero-stats-strip .home-credential strong,
body.isy-page-shell > .hero-stats-strip .home-credential span{display:block;}
body.isy-page-shell > .hero-stats-strip .home-credential strong{
  margin-bottom:4px;color:#092b55;font-size:1rem;font-weight:850;
}
body.isy-page-shell > .hero-stats-strip .home-credential span{color:#68778b;font-size:.88rem;}
body.isy-page-shell > footer .footer-area{
  position:relative;padding:64px 0 48px;background:linear-gradient(145deg,#040c18,#07182b)!important;
}
body.isy-page-shell > footer .footer-area::before{
  content:"";position:absolute;top:0;left:50%;width:min(1120px,calc(100% - 32px));height:1px;
  transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(62,193,213,.48),transparent);
}
body.isy-page-shell > footer .footer-cert-logos img{
  display:block;max-width:100px;max-height:74px;width:auto;height:auto;object-fit:contain;
}
body.isy-page-shell > footer .footer-logo h2{font-size:1.55rem;line-height:1.25;}
body.isy-page-shell > footer .footer-column-brand .footer-head > p{
  max-width:390px;color:rgba(226,237,249,.76);line-height:1.65;
}
body.isy-page-shell > footer .footer-head h4{margin-bottom:1.1rem;color:#7fd3de!important;font-size:.78rem;letter-spacing:.13em;}
body.isy-page-shell > footer .footer-nav-minimal{display:grid;gap:0;max-width:250px;}
body.isy-page-shell > footer .footer-nav-minimal p{margin:0;}
body.isy-page-shell > footer .footer-nav-minimal a{
  display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);
  color:rgba(236,244,252,.88)!important;font-weight:600;transition:color .2s ease,padding-left .2s ease,border-color .2s ease;
}
body.isy-page-shell > footer .footer-nav-minimal a::after{content:"→";margin-left:auto;color:#3ec1d5;opacity:.75;}
body.isy-page-shell > footer .footer-nav-minimal a:hover,
body.isy-page-shell > footer .footer-nav-minimal a:focus{
  padding-left:5px;border-color:rgba(62,193,213,.35);color:#fff!important;text-decoration:none;
}
body.isy-page-shell > footer .footer-column-info .footer-contacts p{
  margin-bottom:1rem;color:rgba(226,237,249,.76);line-height:1.65;
}
body.isy-page-shell > footer .footer-column-info .footer-contacts span{color:#fff;font-weight:700;}
body.isy-page-shell > footer .footer-review-line{margin-top:14px;}
body.isy-page-shell > footer .footer-review-line a{color:#bce8ee;}
body.isy-page-shell > footer .footer{padding:16px 12px;background:#020812!important;}
@media (min-width:1200px){
  body.isy-page-shell > .hero-executive{
    --hero-image-offset:clamp(38px,3vw,54px);box-sizing:border-box;
    height:50vw;min-height:0!important;padding:clamp(92px,6.5vw,124px) 0 clamp(38px,3.5vw,68px);
  }
  body.isy-page-shell > .hero-executive .hero-bg{top:var(--hero-image-offset);bottom:calc(0px - var(--hero-image-offset));}
  body.isy-page-shell > .hero-executive .hero-bg img{object-position:center center!important;}
  body.isy-page-shell > .hero-executive .hero-grid{gap:clamp(30px,4vw,72px);}
  body.isy-page-shell > .hero-executive h1{font-size:clamp(2.65rem,3.55vw,4.5rem);margin-bottom:clamp(14px,1.25vw,22px);}
  body.isy-page-shell > .hero-executive .lead{font-size:clamp(1rem,1.15vw,1.3rem);line-height:1.5;}
  body.isy-page-shell > .hero-executive .hero-actions-modern{margin-top:clamp(20px,1.7vw,30px);}
  body.isy-page-shell > .hero-executive .hero-actions-modern a{min-height:48px;padding:12px 22px;}
  body.isy-page-shell > .hero-executive .hero-trust-inline{margin-top:clamp(16px,1.4vw,24px);font-size:clamp(.82rem,.78vw,.94rem);}
  body.isy-page-shell > .hero-executive .hero-glass-card{padding:clamp(22px,1.8vw,30px);}
  body.isy-page-shell > .hero-executive .hero-glass-card h2{font-size:clamp(1.3rem,1.32vw,1.58rem);margin-bottom:14px;}
  body.isy-page-shell > .hero-executive .hero-checklist{gap:8px;}
  body.isy-page-shell > .hero-executive .hero-checklist li{font-size:clamp(.84rem,.78vw,.95rem);line-height:1.32;}
  body.isy-page-shell > .hero-executive .hero-proof-block{margin-top:17px;padding-top:16px;}
  body.isy-page-shell > .hero-executive .hero-proof-block p{font-size:clamp(.76rem,.72vw,.86rem);line-height:1.45;}
}
@media (max-width:1199.98px){
  body.isy-page-shell > .hero-executive{min-height:auto!important;padding:132px 0 116px;}
  body.isy-page-shell > .hero-executive .hero-grid{grid-template-columns:1fr;gap:42px;}
  body.isy-page-shell > .hero-executive .hero-panel-wrap{max-width:680px;}
}
@media (max-width:767.98px){
  body.isy-page-shell > .hero-executive{padding:112px 0 88px;}
  body.isy-page-shell > .hero-executive h1{font-size:clamp(2.25rem,10vw,3rem);line-height:1.1;}
  body.isy-page-shell > .hero-executive .hero-copy{padding-right:0;}
  body.isy-page-shell > .hero-executive .hero-trust-inline{display:grid;grid-template-columns:1fr;gap:10px;}
  body.isy-page-shell > .hero-executive .hero-glass-card{padding:24px;}
  body.isy-page-shell > .hero-executive .hero-proof-grid{grid-template-columns:1fr;gap:12px;}
  body.isy-page-shell > .hero-executive .hero-proof-item,
  body.isy-page-shell > .hero-executive .hero-proof-item:first-child,
  body.isy-page-shell > .hero-executive .hero-proof-item:last-child{
    padding:0 0 12px;border-right:0;border-bottom:1px solid rgba(255,255,255,.12);
  }
  body.isy-page-shell > .hero-executive .hero-proof-item:last-child{border-bottom:0;padding-bottom:0;}
  body.isy-page-shell > .hero-stats-strip{margin-top:-30px;padding-bottom:24px;}
  body.isy-page-shell > .hero-stats-strip .container{width:calc(100% - 24px);padding:12px 14px;border-radius:20px;}
  body.isy-page-shell > .hero-stats-strip .row > [class*="col-"]:not(:last-child)::after{display:none;}
  body.isy-page-shell > .hero-stats-strip .home-credential{
    min-height:82px;display:flex;flex-direction:column;justify-content:center;
  }
  body.isy-page-shell > footer .footer-area{padding:52px 0 38px;}
  body.isy-page-shell > footer .footer-nav-minimal{max-width:none;}
}

/* Keep calculator math and fields unchanged under the shared visual shell. */
body.has-fixed-navbar.tool-layout.isy-calculator.isy-page-shell{padding-top:0;}
body.isy-calculator.isy-page-shell > header.header-area .navbar-nav .nav-link{font-size:.94rem;padding:.68rem .36rem;}
body.isy-calculator.isy-page-shell > main.tool-scope .tool-page-title{
  color:#092b55;font-size:clamp(1.5rem,2.3vw,2rem);line-height:1.2;margin:0 0 8px;
}
body.isy-calculator.isy-page-shell > main.tool-scope .hero .tool-page-title{
  font-size:2rem;line-height:1.15;margin:0 0 10px;
}
body.isy-calculator.isy-page-shell > main.tool-scope .tool-hero-card .tool-page-title{color:#111827;}
@media (max-width:1199.98px){
  body.isy-calculator.isy-page-shell > header.header-area .navbar-nav .nav-link{font-size:.96rem;}
}
@media print{
  body.isy-calculator.isy-page-shell > .hero-executive,
  body.isy-calculator.isy-page-shell > .hero-stats-strip,
  body.isy-calculator.isy-page-shell > footer{display:none!important;}
}

body.isy-calculator.isy-page-shell > footer .footer.text-center{margin-top:0;color:#dce8f5;font-size:inherit;}

body.isy-page-shell > main#main{scroll-margin-top:96px;}
