.elementor-167 .elementor-element.elementor-element-44f2055{--display:flex;}/* Start custom CSS */:root{
  --bg1:#ffffff;
  --bg2:#ffffff;

  --text:#0f172a;
  --muted:#667085;
  --line:#e6eaf2;
  --shadow:0 14px 40px rgba(15,23,42,.08);

  /* Shared background colors */
 
    --yellow-bg: rgba(251,191,36,.20);
  --yellow-border: rgba(251,191,36,.45);
  --yellow-glow: rgba(251,191,36,.35);

  --blue-bg: rgba(29,155,240,.16);
  --blue-border: rgba(29,155,240,.35);
  --blue-glow: rgba(29,155,240,.35);

  --green-solid:#16a34a;

/* Green alignment */
  --green-bg: var(--green-solid);
  --green-border: rgba(22,163,74,.45);
  --green-glow: rgba(22,163,74,.45);

}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
}

.bg{
  min-height:100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0px, rgba(255,255,255,0) 120px),
    radial-gradient(900px 500px at 50% 0%, #eaf2ff 0%, rgba(234,242,255,0) 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.container{
  max-width:1020px;
  margin:0 auto;
  padding:22px 18px 36px;
}

/* ================================
   Tax Rate Information Banner
================================ */
.alert-banner{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:#fff3d6;
  border-left:6px solid #fb923c;
  border-radius:12px;
  padding:18px 20px;
  margin-bottom:24px;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.alert-content h2{
  margin:0 0 6px;
  font-size:18px;
  font-weight:900;
  color:#000000;
}

.alert-content p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:#000000;
}

.alert-content a{
  color:#1d4ed8;
  font-weight:600;
  text-decoration:none;
}

.alert-content a:hover{
  text-decoration:underline;
}

.alert-close{
  margin-left:auto;
  background:none;
  border:0;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  color:#000000;
}

.alert-close:hover{
  opacity:0.7;
}

.hero{
  text-align:center;
  padding:18px 0 10px;
}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(15,23,42,.06);
  font-size:12px;
  color:#334155;
}

.pill-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: rgba(29,155,240,1);
}

.hero h1{
  margin:18px 0 8px;
  font-size:clamp(24px,3vw,34px);
  letter-spacing:-.02em;
}

.hero .sub{
  margin:0 auto;
  max-width:720px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.formula{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:18px 0 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}


.fbox{
  width: clamp(110px, 22vw, 140px); 
  height:72px;
  flex: 1 1 auto;
  min-width: 0;            
  border-radius:16px;     
  border:1px solid transparent;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:12px 14px;
  box-shadow:0 10px 20px rgba(15,23,42,.08);
  transition: box-shadow .2s ease, transform .15s ease;
  overflow: hidden;
}

.fbox .tiny{ font-size:11px; opacity:.9; }
.fbox .big{ font-weight:900; font-size:13px; margin-top:2px; }

.fbox .tiny,
.fbox .big{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;  /* ✅ single-line, no wrap */
}

/* Yellow pillbox = Assessed Property Value */
.fbox.yellow{
  background: var(--yellow-bg);
  border-color: var(--yellow-border);
  color: var(--text);
}

/* Blue pillbox = Tax Distribution */
.fbox.blue{
  background: var(--blue-bg);
  border-color: var(--blue-border);
  color: var(--text);
}

.fbox.green{
  background: var(--green-bg);
  border-color: var(--green-border);
  color: #ffffff; /* readable on solid green */
}

.fbox.green .tiny{
  color: rgba(255,255,255,.9);
}

.fbox.green .big,
.fbox.green .tiny{
  color: #ffffff;
}

/* Hover glow */
.fbox.yellow:hover{
  box-shadow:
    0 12px 24px rgba(15,23,42,.12),
    0 0 0 4px var(--yellow-glow);
  transform: translateY(-1px);
}

.fbox.blue:hover{
  box-shadow:
    0 12px 24px rgba(15,23,42,.12),
    0 0 0 4px var(--blue-glow);
  transform: translateY(-1px);
}

.fbox.green:hover{
  box-shadow:
    0 12px 24px rgba(15,23,42,.12),
    0 0 0 4px var(--green-glow);
  transform: translateY(-1px);
}

/* Keyboard focus support */
.fbox:focus-visible{
  outline:none;
}

.fsym{
  font-size:22px;
  color:#94a3b8;
  font-weight:900;
  flex: 0 0 auto;   
  white-space: nowrap;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(16px, 4vw, 24px);
  margin-top:18px;
}

/* Only go side-by-side when there is REAL space */
@media (min-width: 1024px){
  .grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media(min-width:920px){
  .grid{ grid-template-columns:1fr 1fr; }
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:clamp(14px, 3vw, 18px);
  box-shadow:var(--shadow);
  padding:clamp(14px, 4vw, 20px);
  width:100%;
}

.card-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
  flex-wrap:wrap;
  gap:10px;
}

.card-head .icon {
  display: none;
}

.card,
.field,
.break,
.total{
  max-width:100%;
}

.icon{
  width:34px;
  height:34px;
  border-radius:10px;
  background:#eaf2ff;
  color:#2563eb;
  display:grid;
  place-items:center;
  font-weight:900;
}

.icon.green{ background:#eafff1; color:#16a34a; }

.card-title{
  font-weight: 900;
  font-size: clamp(16px, 4vw, 18px);
  line-height: 1.25;
  color: var(--text);
}


.card-sub{ color:var(--muted); font-size:12px; margin-top:2px; }

.field{ margin-top:14px; }

/* Highlighted field backgrounds */
.field-yellow,
.field-blue{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
}


.field-yellow{
  background: var(--yellow-bg);
  border-color: var(--yellow-border);
}

.field-blue{
  background: var(--blue-bg);
  border-color: var(--blue-border);
}

.field-yellow .inputwrap,
.field-blue .distbox,
.field-yellow .seg{
  background: #fff;
}

/* Field hover / focus glow */
.field-yellow:hover,
.field-yellow:focus-within{
  box-shadow:
    0 10px 24px rgba(15,23,42,.10),
    0 0 0 4px var(--yellow-glow);
}

.field-blue:hover,
.field-blue:focus-within{
  box-shadow:
    0 10px 24px rgba(15,23,42,.10),
    0 0 0 4px var(--blue-glow);
}

.field-yellow label,
.field-blue .muted{
  color: var(--text);
  font-weight: 800;
}

/* -----------------------------------------
   LINKED GLOW: Pillboxes <-> Matching Fields
   Requires :has() (Chrome/Edge/Safari supported)
------------------------------------------ */

/* Shared ring style helpers */
:root{
  --ring-shadow: 0 10px 24px rgba(15,23,42,.10);
}

/* YELLOW link: fbox.yellow <-> .field-yellow */
.container:has(.fbox.yellow:hover) .field-yellow,
.container:has(.fbox.yellow:hover) .field-yellow:focus-within{
  box-shadow: var(--ring-shadow), 0 0 0 4px var(--yellow-glow);
}

.container:has(.field-yellow:hover) .fbox.yellow,
.container:has(.field-yellow:focus-within) .fbox.yellow{
  box-shadow: 0 12px 24px rgba(15,23,42,.12), 0 0 0 4px var(--yellow-glow);
  transform: translateY(-1px);
}

/* BLUE link: fbox.blue <-> .field-blue */
.container:has(.fbox.blue:hover) .field-blue,
.container:has(.fbox.blue:hover) .field-blue:focus-within{
  box-shadow: var(--ring-shadow), 0 0 0 4px var(--blue-glow);
}

.container:has(.field-blue:hover) .fbox.blue,
.container:has(.field-blue:focus-within) .fbox.blue{
  box-shadow: 0 12px 24px rgba(15,23,42,.12), 0 0 0 4px var(--blue-glow);
  transform: translateY(-1px);
}

/* LINKED GREEN GLOW — Estimated Annual Tax ⇄ Green Pillbox */
.container:has(.total:hover) .fbox.green,
.container:has(.total:focus-within) .fbox.green{
  box-shadow:
    0 12px 24px rgba(15,23,42,.12),
    0 0 0 4px var(--green-glow) !important;
  transform: translateY(-1px);
}

.container:has(.fbox.green:hover) .total{
  box-shadow:
    0 12px 28px rgba(15,23,42,.14),
    0 0 0 4px var(--green-glow);
}

/* Optional: make .total glow also appear on keyboard focus inside the right card */
.total:focus-within{
  box-shadow: 0 12px 28px rgba(15,23,42,.14), 0 0 0 4px var(--green-glow);
}

label{
  display:block;
  font-size:12px;
  color:#344054;
  font-weight:800;
  margin-bottom:7px;
}

.inputwrap{
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.select{
  width:100%;
  height:44px;
  padding:10px 40px 10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background-color:#fff;
  background-clip:padding-box;
  font-size:14px;
  font-weight:600;
  color:#111827;
  line-height:1.2;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23667085'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.94a.75.75 0 111.08 1.04l-4.24 4.5a.75.75 0 01-1.08 0l-4.24-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:14px;
}

.select:focus{
  outline:none;
  border-color:rgba(29,155,240,.5);
  box-shadow:0 0 0 3px rgba(29,155,240,.15);
}

.inputwrap .select{
  border:none;
  border-radius:0;
}

.inputwrap,
.select,
input{
  width:100%;
  min-width:0;
}

.prefix{
  padding:10px 12px;
  color:#667085;
  background:#fafbff;
  border-right:1px solid var(--line);
  font-weight:900;
}

input{
  border:0;
  outline:none;
  padding:10px 12px;
  width:100%;
  font-size:14px;
}

.help{
  font-size:11px;
  color:var(--muted);
  margin-top:6px;
  line-height:1.3;
}

.seg{
  display:flex;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f7f8fb;
  overflow:hidden;
}

.segbtn{
  flex:1;
  padding:10px 12px;
  border:0;
  background:transparent;
  font-weight:900;
  color:#475467;
  cursor:pointer;
}

.segbtn.active{
  background:#fff;
  color:#111827;
  box-shadow:inset 0 0 0 2px rgba(29,155,240,.25);
}

button:focus-visible,
.segbtn:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(29,155,240,.35);
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.muted{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.tag{
  font-size:11px;
  background:#f2f4f7;
  border:1px solid var(--line);
  border-radius:999px;
  padding:3px 8px;
  color:#475467;
  font-weight:800;
}

.dist{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:10px;
  margin-top:10px;
}

@media(max-width:520px){
  .dist{ grid-template-columns:1fr; }
}

.distbox{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px;
  background:#fff;
}

.distname{
  font-size:13px;
  color:var(--muted);
  font-weight:500;
}

.distval{
  font-size:12px;
  font-weight:400;
  margin-top:6px;
}

.actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}

.btn{
  flex:1;
  background:linear-gradient(180deg,#2ecc71,#16a34a);
  color:#fff;
  border:0;
  border-radius:12px;
  padding:11px 12px;
  font-weight:950;
  cursor:pointer;
}

.btn.ghost{
  background:#fff;
  color:#111827;
  border:1px solid var(--line);
}

.err{
  display:none;
  margin-top:10px;
  color:#b42318;
  font-size:12px;
  font-weight:800;
}

.total{
  background: var(--green-bg);
  border-radius:16px;
  color:#ffffff;
  padding:18px;
  text-align:center;
  transition: box-shadow .2s ease;
}

.total-label{
  font-size:12px;
  opacity:.95;
  font-weight:900;
}

.total-value{
  font-size:clamp(26px, 8vw, 34px);
  line-height:1.1;
  word-break:break-word;
}

.total-sub{
  font-size:12px;
  opacity:.95;
  line-height:1.45;
}

.total:hover,
.total:focus-within{
  box-shadow:
    0 12px 28px rgba(15,23,42,.14),
    0 0 0 4px var(--green-glow);
}

.break{ margin-top:14px; }

.break-title{
  font-size:12px;
  color:#344054;
  font-weight:950;
  margin-bottom:8px;
}

.brow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  line-height:1.45;
}

.brow:last-child{ border-bottom:none; }
.brow:hover{ background:#f7f9fc; }

.break .bname,
.break .bamt{ font-weight:400; }

.grand{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
  background:#111827;
  color:#fff;
  border-radius:12px;
  padding:12px;
  font-weight:950;
}

.disclaimer{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius:12px;
  padding:10px 12px;
  color: var(--text);
  font-size:11px;
  line-height:1.45;
}

.info{
  width:18px;
  height:18px;
  border-radius:999px;
  background: var(--blue-border);
  color: #ffffff;
  display:grid;
  place-items:center;
  font-weight:1000;
  font-size:12px;
  flex:0 0 auto;
}

/* Right card: make breakdown fill height */
.grid > .card:nth-child(2){
  display:flex;
  flex-direction:column;
  height:100%;
}

.grid > .card:nth-child(2) .break{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.grid > .card:nth-child(2) #breakRows{
  flex:1;
  min-height:0;
  overflow:auto;
}


/* Left card typography consistency */
.card:first-child{
  color: var(--text);
}

.card:first-child label,
.card:first-child .card-title{
  color: var(--text);
}

.card:first-child .muted,
.card:first-child .help{
  color: var(--muted);
}


/* Make Assessed Property Value title and Tax Distribution title match */
.card:first-child .field-yellow label,
.card:first-child .field-blue .muted{
  color: var(--text);
  font-weight: 800;
}


/* Match formula box typography to left card */
.fbox .tiny{
  color: var(--muted);
  font-weight: 600;
}

.fbox .big{
  color: var(--text);
  font-weight: 900;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* NEW */
.card--full{
  grid-column: 1 / -1;  /* spans left + right */
}


.chart-wrap{
  width: 100%;
  height: 700px;     /* increase overall chart height */
}

#breakdownGraphCard {
  transition: opacity 0.25s ease;
}

.card-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb; /* full-width divider */
  text-align: center;
}

.card-footer a {
  font-size: 20px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px){

  /* Reduce outer padding */
  .container{
    padding:16px 14px 28px;
  }

  /* More vertical spacing between cards */
  .grid{
    gap:20px;
  }

  /* Cards feel less cramped */
  .card{
    padding:14px;
    border-radius:16px;
  }

  /* Header text scales better on phones */
  .hero h1{
    font-size:22px;
    line-height:1.25;
  }

  .hero .sub{
    font-size:14px;
    line-height:1.45;
  }
}

@media (max-width: 640px){

  /* Bigger tap targets */
  .btn{
    min-height:48px;
    font-size:15px;
  }

  .segbtn{
    min-height:44px;
    font-size:14px;
  }

  /* Space buttons apart */
  .actions{
    gap:12px;
  }
}

@media (max-width: 640px){
  input,
  select{
    font-size:16px;
  }
}

@media (max-width: 640px){
  .formula{
    gap:10px;
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media (max-width: 480px){
  .formula{
    transform: scale(0.85);
  }
}

@media (max-width: 480px){
  .fsym{
    font-size:18px;
  }
}

@media (max-width: 640px){
  .fbox .big{ font-size:12px; }
  .fbox .tiny{ font-size:10px; }
}

@media (max-width: 640px){
  .formula{
    gap:10px;
  }

  .fbox{
    width:clamp(220px, 80vw, 260px);
    height:auto;
    padding:clamp(12px, 4vw, 16px);
  }
}

@media (max-width: 640px){
  .distbox{
    padding:12px;
  }

  .distname{
    font-size:14px;
  }

  .distval{
    font-size:13px;
  }
}

@media (max-width: 640px){
  .actions{
    position:sticky;
    bottom:12px;
    background:#fff;
    padding:10px;
    border-radius:14px;
    box-shadow:0 -6px 16px rgba(15,23,42,.08);
    z-index:10;
  }
}

@media (max-width: 640px){
  .total-value{
    font-size:30px;
  }

  .total-sub{
    font-size:13px;
  }
}

/* Force cards to stack on mobile */
@media (max-width: 768px){
  .grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .container{
    padding:16px 14px 28px;
  }

  .actions{
    position:sticky;
    bottom:12px;
    z-index:10;
  }
}

@media (max-width: 900px){
  .chart-wrap{ height: 600px; }
}
@media (max-width: 520px){
  .chart-wrap{ height: 560px; }
}

@media (max-width:640px){
  .alert-banner{
    flex-direction:column;
    gap:10px;
    padding:16px;
  }

  .alert-icon{
    font-size:22px;
  }

  .alert-content h2{
    font-size:16px;
  }

  .alert-content p{
    font-size:13px;
  }
}/* End custom CSS */