/* NYC mansion tax calculator (page-nyc-mansion-tax-calculator.php). The frame
   (.calc2-grid, .calc2-main, .calc2-col, .calc2-side, .calc2-unit) and the
   --c2-* tokens come from calc-layout.css under body.ea-calc2. */

.ea-mtc__hero{background:#dcd8d0;text-align:center;padding:56px 24px 48px;box-sizing:border-box}
.ea-mtc__heroin{max-width:760px;margin:0 auto}
.ea-mtc__h1{font-family:var(--c2-serif);font-weight:400;font-size:clamp(2.1rem,4.4vw,3.2rem);line-height:1.12;margin:0 0 14px;color:var(--c2-ink)}
.ea-mtc__lede{font-family:var(--c2-text);font-size:1.15rem;line-height:1.55;margin:0;color:rgba(46,46,47,.75)}

.ea-mtc__band{padding:48px 0 24px}
.ea-mtc__inner{max-width:1180px;margin:0 auto;padding:0 6vw;box-sizing:border-box}

.ea-mtc__step{padding:26px 0;border-bottom:1px solid var(--c2-line)}
.ea-mtc__label{display:block;font-family:var(--c2-ui);font-size:.7rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--c2-mute);margin:0 0 12px;line-height:1.5}
.ea-mtc__hint{font-family:var(--c2-text);font-size:.92rem;line-height:1.5;color:var(--c2-mute);margin:10px 0 0}
.ea-mtc__seg{display:flex;border:1px solid var(--c2-line);border-radius:3px;overflow:hidden}
.ea-mtc__seg button{flex:1 1 0;min-height:48px;margin:0;padding:10px 14px;border:0;border-left:1px solid var(--c2-line);border-radius:0;background:#fff;color:var(--c2-ink);font-family:var(--c2-ui);font-size:.88rem;line-height:1.3;cursor:pointer;transition:background .15s,color .15s}
.ea-mtc__seg button:first-child{border-left:0}
.ea-mtc__seg button:hover{background:var(--c2-sand)}
.ea-mtc__seg button.is-on{background:var(--c2-ink);color:#fafafa}
.ea-mtc__note{margin:22px 0 0;padding:16px 18px;border-left:2px solid var(--c2-ink);background:var(--c2-sand);font-family:var(--c2-text);font-size:1rem;line-height:1.5;color:var(--c2-ink)}
.ea-mtc__note strong{font-weight:600}

.ea-mtc__k{font-family:var(--c2-ui);font-size:.7rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--c2-mute);margin:0 0 12px}
.ea-mtc__amt{font-family:var(--c2-serif);font-weight:400;font-size:clamp(2.8rem,4.2vw,3.8rem);line-height:1;letter-spacing:-.01em;color:var(--c2-ink);margin:0;font-variant-numeric:lining-nums}
.ea-mtc__sub{font-family:var(--c2-text);font-size:1rem;line-height:1.45;color:var(--c2-mute);margin:12px 0 24px}
.ea-mtc__lines{border-top:1px solid var(--c2-line)}
.ea-mtc__line{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--c2-line);font-family:var(--c2-ui);font-size:.9rem;color:var(--c2-ink)}
.ea-mtc__line span:last-child{font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.ea-mtc__line--total{border-bottom:0;border-top:1px solid var(--c2-ink);margin-top:-1px;padding-top:15px}
.ea-mtc__line--total span{font-weight:500}
.ea-mtc__cliff{margin:20px 0 0;padding:16px 18px;background:#fff;border:1px solid var(--c2-line);border-radius:3px}
.ea-mtc__cliff p{margin:0;font-family:var(--c2-text);font-size:1rem;line-height:1.5;color:var(--c2-ink)}
.ea-mtc__cliff .ea-mtc__ck{font-family:var(--c2-ui);font-size:.68rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--c2-mute);margin:0 0 6px}
.ea-mtc__cliff strong{font-weight:600}
.ea-mtc__k--ladder{margin-top:30px}
.ea-mtc__ladder{list-style:none;margin:0;padding:0;border-top:1px solid var(--c2-line)}
.ea-mtc__ladder li{display:flex;justify-content:space-between;padding:7px 10px!important;margin:0 -10px!important;line-height:1.35!important;border-bottom:1px solid var(--c2-line);font-family:var(--c2-ui);font-size:.82rem;color:var(--c2-mute);font-variant-numeric:tabular-nums}
.ea-mtc__ladder li.is-on{background:var(--c2-ink);color:#fafafa;border-bottom-color:var(--c2-ink)}

.ea-mtc__cta{display:grid;grid-template-columns:minmax(0,1.2fr) auto;gap:32px;align-items:center;margin-top:20px;padding:36px 48px;background:var(--c2-ink);color:#fafafa;border-radius:4px}
.ea-mtc__ctah{font-family:var(--c2-serif);font-weight:400;font-size:1.9rem;line-height:1.15;margin:0 0 10px;color:#fafafa}
.ea-mtc__cta p{font-family:var(--c2-text);font-size:1.05rem;line-height:1.55;margin:0;color:rgba(250,250,250,.85)}
.ea-mtc__ctabtns{display:flex;flex-direction:column;gap:10px}
.ea-mtc__btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:1px solid #fafafa;border-radius:3px;background:#fafafa;color:var(--c2-ink)!important;font-family:var(--c2-ui);font-size:.76rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;text-decoration:none!important;white-space:nowrap}
.ea-mtc__btn--ghost{background:transparent;color:#fafafa!important}
.ea-mtc__legal{margin:18px 0 0;font-family:var(--c2-text);font-size:.88rem;line-height:1.55;color:var(--c2-mute)}
.ea-mtc__legal strong{font-weight:500;color:var(--c2-ink)}

.ea-mtc__prose{max-width:760px;margin:0 auto;padding:48px 24px 80px;box-sizing:content-box}
.ea-mtc__prose h2{font-family:var(--c2-serif);font-weight:400;font-size:2rem;line-height:1.2;margin:48px 0 16px;color:var(--c2-ink)}
.ea-mtc__prose h2:first-child{margin-top:0}
.ea-mtc__prose p{font-family:var(--c2-text);font-size:1.12rem;line-height:1.6;margin:0 0 16px;color:var(--c2-ink)}
.ea-mtc__prose a{color:inherit;text-decoration:underline}
.ea-mtc__table{width:100%;border-collapse:collapse;margin:0 0 16px;font-family:var(--c2-ui);font-size:.92rem;font-variant-numeric:tabular-nums}
.ea-mtc__table th{text-align:left;font-size:.7rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--c2-mute);padding:10px 12px 10px 0;border-bottom:1px solid var(--c2-ink)}
.ea-mtc__table td{padding:11px 12px 11px 0;border-bottom:1px solid var(--c2-line);color:var(--c2-ink)}
.ea-mtc__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 16px}
.ea-mtc__table--wide{min-width:480px;margin:0}
.ea-mtc__worked{margin:0 0 16px;padding:8px 24px;background:var(--c2-sand);border-radius:3px}
.ea-mtc__wline{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--c2-line);font-family:var(--c2-ui);font-size:.95rem;color:var(--c2-ink)}
.ea-mtc__wline span:last-child{font-weight:500;text-align:right;font-variant-numeric:tabular-nums}
.ea-mtc__wline--total{border-bottom:0}
.ea-mtc__faq{border-top:1px solid var(--c2-line)}
.ea-mtc__acc{border-bottom:1px solid var(--c2-line)}
.ea-mtc__acc summary{list-style:none;cursor:pointer;padding:18px 32px 18px 0;position:relative;font-family:var(--c2-text);font-size:1.15rem;line-height:1.4;color:var(--c2-ink)}
.ea-mtc__acc summary::-webkit-details-marker{display:none}
.ea-mtc__acc summary::after{content:"+";position:absolute;right:0;top:16px;font-family:var(--c2-ui);font-size:1.2rem;color:var(--c2-mute)}
.ea-mtc__acc[open] summary::after{content:"\2212"}
.ea-mtc__acc p{margin:0 0 18px}

@media (max-width:1024px){
  .ea-mtc__inner{padding:0 16px}
  .ea-mtc__band{padding-top:24px}
  .ea-mtc__step{padding:20px 0}
  .ea-mtc__cta{grid-template-columns:1fr;padding:28px 22px}
  .ea-mtc__ctabtns{flex-direction:column}
  .ea-mtc__ctah{font-size:1.6rem}
}
@media (max-width:600px){
  .ea-mtc__hero{padding:36px 16px 32px}
  .ea-mtc__lede{font-size:1.05rem}
  .ea-mtc__prose{padding:40px 16px 64px}
  .ea-mtc__prose h2{font-size:1.65rem}
  .ea-mtc__worked{padding:4px 16px}
  .ea-mtc__btn{white-space:normal;text-align:center}
}
/* Bracket list folds on a phone (it repeats the rate table below) */
.ea-mtc__ladwrap>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:44px}
.ea-mtc__ladwrap>summary::-webkit-details-marker{display:none}
.ea-mtc__ladwrap>summary::after{content:"+";font-size:1.1rem;letter-spacing:0;color:var(--c2-mute)}
.ea-mtc__ladwrap[open]>summary::after{content:"\2212"}
@media (max-width:1024px){#ea-mtc .calc2-title{display:none}#ea-mtc .calc2-main{padding-top:10px}}
/* The ask sits inside the estimate, right after the figure (Zeve: contact was too far down) */
.ea-mtc__side .ea-mtc__cta{display:block;margin:22px 0 4px;padding:22px 22px 20px;border-radius:4px}
.ea-mtc__side .ea-mtc__ctah{font-size:1.45rem;margin:0 0 8px}
.ea-mtc__side .ea-mtc__cta p{font-size:.98rem}
.ea-mtc__side .ea-mtc__ctabtns{margin-top:16px!important}
.ea-mtc__side .ea-mtc__btn{width:100%;white-space:normal;text-align:center}

/* Desktop: the advisor box fills the left column under the price, beside
   the estimate. Phone: questions, estimate, then the box, plus a bar pinned
   to the bottom (assets/js/mansion-tax.js). */
#ea-mtc{grid-template-areas:"main side" "cta side";grid-template-rows:auto 1fr}
#ea-mtc>.calc2-main{grid-area:main}
#ea-mtc>.calc2-col{grid-area:side}
#ea-mtc>.ea-mtc__cta{grid-area:cta;align-self:start;display:block;margin:0 48px 44px;padding:30px 30px 26px}
#ea-mtc>.ea-mtc__cta .ea-mtc__ctah{font-size:1.6rem}
#ea-mtc>.ea-mtc__cta .ea-mtc__ctabtns{flex-direction:row;flex-wrap:wrap;margin-top:18px!important}
#ea-mtc>.ea-mtc__cta .ea-mtc__btn{flex:1 1 auto}
@media (max-width:1024px){
  #ea-mtc{grid-template-areas:"main" "side" "cta";grid-template-rows:auto}
  #ea-mtc>.ea-mtc__cta{margin:0;border-radius:0;padding:28px 22px}
  #ea-mtc>.ea-mtc__cta .ea-mtc__ctabtns{flex-direction:column}
  #ea-mtc>.ea-mtc__cta .ea-mtc__btn{width:100%}
}
.ea-mtc-bar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:9;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border-radius:4px;background:#2e2e2f;color:#fafafa;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.ea-mtc-bar[hidden]{display:none}
.ea-mtc-bar__t{flex:1 1 auto;min-width:0;line-height:1.15}
.ea-mtc-bar__k{display:block;font-family:var(--c2-ui);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;opacity:.75}
.ea-mtc-bar__v{display:block;font-family:var(--c2-serif);font-size:1.45rem;font-variant-numeric:lining-nums}
.ea-mtc-bar__go{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:3px;background:#fafafa;color:#2e2e2f!important;font-family:var(--c2-ui);font-size:.7rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;text-decoration:none!important}
@media (min-width:1025px){.ea-mtc-bar{display:none!important}}
.header--menu-open .ea-mtc-bar,body:has(dialog[open]) .ea-mtc-bar{display:none!important}
/* Compact header, matching the other calculators */
.ea-mtc__hero{background:transparent!important;text-align:left;padding:36px 0 0!important}
.ea-mtc__heroin{max-width:1180px;margin:0 auto;padding:0 6vw;box-sizing:border-box}
.ea-mtc__h1{font-size:clamp(1.9rem,2.6vw,2.5rem);margin:0 0 6px}
.ea-mtc__lede{font-size:1.05rem;color:var(--c2-mute)}
#ea-mtc .calc2-title{display:none}
#ea-mtc .calc2-main{padding-top:30px}
@media (max-width:1024px){.ea-mtc__hero{padding-top:24px!important}.ea-mtc__heroin{padding:0 16px}.ea-mtc__h1{font-size:1.75rem}#ea-mtc .calc2-main{padding-top:10px}}
.ea-mtc__hero{padding-top:calc(var(--ea-header-height,128px) + 20px)!important}
@media (max-width:1024px){.ea-mtc__hero{padding-top:calc(var(--ea-header-height,92px) + 16px)!important}}
/* Desktop balance: buttons side by side, quieter box, folded bracket list */
#ea-mtc>.ea-mtc__cta{padding:28px 30px}
#ea-mtc>.ea-mtc__cta .ea-mtc__ctah{font-size:1.5rem;margin-bottom:8px}
#ea-mtc>.ea-mtc__cta p{font-size:1rem}
#ea-mtc>.ea-mtc__cta .ea-mtc__ctabtns{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px}
#ea-mtc>.ea-mtc__cta .ea-mtc__btn{flex:1 1 180px;width:auto;min-height:46px;padding:0 16px}
.ea-mtc__k--ladder{margin-top:22px!important}
@media (max-width:1024px){#ea-mtc>.ea-mtc__cta .ea-mtc__ctabtns{flex-direction:column}#ea-mtc>.ea-mtc__cta .ea-mtc__btn{flex:none;width:100%}}
/* The threshold note sits under the price it describes, above the ask */
#ea-mtc .calc2-main .ea-mtc__cliff{margin:22px 0 0}
#ea-mtc>.ea-mtc__cta .ea-mtc__ctabtns{align-items:center;gap:10px 22px}
#ea-mtc>.ea-mtc__cta .ea-mtc__btn{flex:0 0 auto;width:auto}
.ea-mtc__tel{display:inline-flex;align-items:center;min-height:44px;font-family:var(--c2-ui);font-size:.85rem;color:#fafafa!important;text-decoration:underline;text-underline-offset:4px}
@media (max-width:1024px){#ea-mtc>.ea-mtc__cta .ea-mtc__ctabtns{align-items:stretch}#ea-mtc>.ea-mtc__cta .ea-mtc__btn{width:100%}.ea-mtc__tel{justify-content:center}}
/* Threshold notes read as an alert: amber bar, warm tint, "!" badge */
#ea-mtc .ea-mtc__cliff,#ea-mtc .ea-mtc__note{position:relative;background:#fbf6ea!important;border:1px solid #ecdcb8!important;border-left:3px solid #b8862b!important;border-radius:4px}
#ea-mtc .ea-mtc__ck{display:flex;align-items:center;gap:9px;color:#8a6420!important;font-weight:500}
#ea-mtc .ea-mtc__ck::before{content:"!";flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#b8862b;color:#fff;font-family:var(--c2-ui);font-size:.72rem;font-weight:600;letter-spacing:0}
#ea-mtc .ea-mtc__cliff strong{color:#2e2e2f}
#ea-mtc .ea-mtc__note{padding:16px 18px 16px 44px!important;margin-top:22px;font-family:var(--c2-text);font-size:1rem;line-height:1.5}
#ea-mtc .ea-mtc__note::before{content:"!";position:absolute;left:16px;top:18px;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#b8862b;color:#fff;font-family:var(--c2-ui);font-size:.72rem;font-weight:600}
/* Just under a threshold is good news: calm green, a check, not an alert */
#ea-mtc .ea-mtc__note{background:#f1f5ef!important;border:1px solid #d3e0cd!important;border-left:3px solid #4f7a52!important;padding:16px 18px!important}
#ea-mtc .ea-mtc__note::before{content:none!important}
#ea-mtc .ea-mtc__note p{margin:0;font-family:var(--c2-text);font-size:1rem;line-height:1.5;color:var(--c2-ink)}
#ea-mtc .ea-mtc__nk{display:flex;align-items:center;gap:9px;margin:0 0 6px!important;font-family:var(--c2-ui)!important;font-size:.68rem!important;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#3f6442!important}
#ea-mtc .ea-mtc__nk::before{content:"\2713";flex:none;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#4f7a52;color:#fff;font-size:.66rem;font-weight:600;letter-spacing:0}
.ea-mtc__ctah,.calc2-pcta h3{font-variant-numeric:lining-nums}
.ea-mtc__acts{margin:20px 0 0}
.ea-mtc__pdf{min-height:44px;padding:8px 14px;border:1px solid var(--c2-line);border-radius:3px;background:#fff;color:var(--c2-ink);font-family:var(--c2-ui);font-size:.74rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
.ea-mtc__pdf:hover{border-color:var(--c2-ink)}
.ea-mtc__acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ea-mtc__toast{font-family:var(--c2-ui);font-size:.8rem;color:var(--c2-mute);margin-left:6px}
