/* Pay Your Taxes — clean responsive ledger */
.bb-taxes {
  --tx-ink: #0b1220;
  --tx-navy: #00336c;
  --tx-deep: #00152c;
  --tx-sea: #0a4d6e;
  --tx-gold: #c9a227;
  --tx-paper: #f4f7fb;
  --tx-ok: #15803d;
  --tx-wait: #a16207;
  --tx-due: #b91c1c;
  --tx-line: rgba(11, 18, 32, 0.1);
  --tx-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --tx-sans: "Outfit", "Segoe UI", system-ui, sans-serif;

  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  overflow-x: clip;
  color: var(--tx-ink);
  font-family: var(--tx-sans);
  background: var(--tx-paper);
}

.bb-tx-wrap {
  width: min(44rem, calc(100% - 1.5rem));
  margin-inline: auto;
}

.bb-tx-hero {
  position: relative;
  isolation: isolate;
  min-height: min(52vh, 22rem);
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 7vw, 4rem) 1.25rem clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(155deg, var(--tx-deep) 0%, var(--tx-navy) 52%, var(--tx-sea) 100%);
}

.bb-tx-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bb-tx-hero__plane {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 60%);
}

.bb-tx-hero__plane--a {
  width: 55%;
  height: 120%;
  top: -10%;
  right: -8%;
  transform: skewX(-12deg);
}

.bb-tx-hero__plane--b {
  width: 40%;
  height: 90%;
  bottom: -20%;
  left: -10%;
  transform: skewX(-18deg);
  opacity: 0.7;
}

.bb-tx-hero__glow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 68%);
}

.bb-tx-hero__content {
  width: min(36rem, 100%);
}

.bb-tx-hero__brand {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--tx-gold);
}

.bb-tx-hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--tx-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.bb-tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.bb-tx-hero__ar {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
}

.bb-tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bb-tx-btn:hover { transform: translateY(-1px); }
.bb-tx-btn--wa { background: #25d366; color: #053b1f; }
.bb-tx-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.bb-tx-btn--navy { background: var(--tx-navy); color: #fff; }

.bb-tx-ledger {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 3.5rem);
}

.bb-tx-ledger__intro {
  margin-bottom: 1.1rem;
}

.bb-tx-ledger__intro h2 {
  margin: 0;
  font-family: var(--tx-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  color: var(--tx-navy);
}

.bb-tx-tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 1.15rem;
  font-size: 0.84rem;
  color: #64748b;
}

.bb-tx-tally p { margin: 0; }
.bb-tx-tally strong { color: var(--tx-ink); font-weight: 800; }
.bb-tx-tally .is-wait strong { color: var(--tx-wait); }
.bb-tx-tally .is-due strong { color: var(--tx-due); }
.bb-tx-tally .is-ok strong { color: var(--tx-ok); }

.bb-tx-flash {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.bb-tx-flash--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bb-tx-flash--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.bb-tx-empty {
  background: #fff;
  border: 1px solid var(--tx-line);
  border-radius: 0.9rem;
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.bb-tx-empty h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  color: var(--tx-navy);
}

.bb-tx-cards {
  display: grid;
  gap: 1rem;
}

.bb-tx-card {
  background: #fff;
  border: 1px solid var(--tx-line);
  border-radius: 0.95rem;
  border-top: 4px solid var(--tx-gold);
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(7, 21, 37, 0.05);
}

.bb-tx-card.is-paid { border-top-color: var(--tx-ok); }
.bb-tx-card.is-pending { border-top-color: var(--tx-wait); }
.bb-tx-card.is-due { border-top-color: var(--tx-due); }

.bb-tx-card.is-open {
  outline: 2px solid var(--tx-navy);
  outline-offset: 2px;
}

.bb-tx-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.bb-tx-card__year {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tx-wait);
}

.bb-tx-card.is-paid .bb-tx-card__year { color: var(--tx-ok); }
.bb-tx-card.is-due .bb-tx-card__year { color: var(--tx-due); }

.bb-tx-card__title {
  margin: 0.2rem 0 0;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 800;
  color: var(--tx-navy);
  line-height: 1.2;
  word-break: break-word;
}

.bb-tx-card__badge {
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
}

.bb-tx-card.is-paid .bb-tx-card__badge {
  background: #dcfce7;
  color: #166534;
}

.bb-tx-card.is-due .bb-tx-card__badge {
  background: #fee2e2;
  color: #991b1b;
}

.bb-tx-card__dues {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
  padding: 0.8rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  border: 1px solid rgba(11, 18, 32, 0.06);
}

@media (min-width: 640px) {
  .bb-tx-card__dues {
    grid-template-columns: 1fr 1fr;
  }
}

.bb-tx-card__dues span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  line-height: 1.35;
}

.bb-tx-card__dues strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tx-ink);
  word-break: break-word;
}

.bb-tx-card__dues strong.is-wait,
.bb-tx-card__grid dd.is-wait {
  color: var(--tx-wait);
}

.bb-tx-card__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.bb-tx-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  background: #fef3c7;
  color: #92400e;
  white-space: nowrap;
}

.bb-tx-chip.is-paid {
  background: #dcfce7;
  color: #166534;
}

.bb-tx-chip.is-due {
  background: #fee2e2;
  color: #991b1b;
}

.bb-tx-chip.is-pending {
  background: #fef3c7;
  color: #92400e;
}

.bb-tx-card__dues > div {
  display: grid;
  gap: 0.3rem;
}

.bb-tx-card__dues .bb-tx-chip {
  justify-self: start;
}

.bb-tx-card__grid dd .bb-tx-chip {
  margin-inline-start: 0.4rem;
  vertical-align: middle;
}

.bb-tx-year {
  display: grid;
  gap: 0.75rem;
}

.bb-tx-year__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem;
}

.bb-tx-year__title {
  margin: 0;
  font-family: var(--tx-display);
  font-size: 1.35rem;
  color: var(--tx-navy);
}

.bb-tx-year__meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.bb-tx-year.is-single .bb-tx-year__head {
  display: none;
}

.bb-tx-year.is-multi .bb-tx-year__head {
  display: flex;
}

.bb-tx-year.is-open {
  outline: 2px solid rgba(0, 51, 108, 0.2);
  outline-offset: 2px;
  border-radius: 0.75rem;
  padding: 0.35rem;
}

.bb-tx-prop {
  background: #fff;
  border: 1px solid var(--tx-line);
  border-radius: 0.95rem;
  border-top: 4px solid var(--tx-gold);
  box-shadow: 0 10px 28px rgba(7, 21, 37, 0.05);
  overflow: hidden;
}

.bb-tx-prop.is-paid { border-top-color: var(--tx-ok); }
.bb-tx-prop.is-pending { border-top-color: var(--tx-wait); }
.bb-tx-prop.is-due { border-top-color: var(--tx-due); }

.bb-tx-prop.is-open,
.bb-tx-prop[open] {
  outline: 2px solid rgba(0, 51, 108, 0.25);
  outline-offset: 1px;
}

.bb-tx-prop__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}

.bb-tx-prop__summary::-webkit-details-marker { display: none; }

.bb-tx-prop__summary-main { min-width: 0; }

.bb-tx-prop__label {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
}

.bb-tx-prop__value {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tx-navy);
  word-break: break-word;
}

.bb-tx-prop__pin {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.bb-tx-prop__summary-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.bb-tx-prop__chevron {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.25rem;
  border-right: 2px solid var(--tx-navy);
  border-bottom: 2px solid var(--tx-navy);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.bb-tx-prop[open] .bb-tx-prop__chevron {
  transform: rotate(225deg);
  margin-top: 0.45rem;
}

.bb-tx-prop__body {
  padding: 0 1rem 1.1rem;
  border-top: 1px solid rgba(11, 18, 32, 0.06);
}

.bb-tx-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem 0.85rem;
  margin: 0;
}

@media (min-width: 560px) {
  .bb-tx-card__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bb-tx-card__grid > div {
  min-width: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.bb-tx-card__grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  line-height: 1.35;
}

.bb-tx-card__grid dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--tx-ink);
  word-break: break-word;
}

.bb-tx-foot {
  padding: 1.35rem 0 2rem;
  border-top: 1px solid var(--tx-line);
  background: #fff;
}

.bb-tx-foot__inner {
  text-align: center;
}

.bb-tx-foot__brand {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--tx-navy);
}

.bb-tx-foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.bb-tx-foot__links a {
  color: var(--tx-navy);
  font-weight: 700;
  text-decoration: none;
}

.bb-tx-foot__links a:hover { color: var(--tx-gold); }

@media (prefers-reduced-motion: reduce) {
  .bb-tx-btn:hover { transform: none; }
}
