.tax-article {
  --tax-aqua: #00e6a8;
  --tax-aqua-soft: #67f5cb;
  --tax-blue: #59a7ff;
  --tax-gold: #f6c768;
  --tax-coral: #ff7d79;
  --tax-panel: #071923;
  --tax-panel-2: #0b2430;
  --tax-grid: rgba(151, 198, 211, .13);
  --tax-muted: #91abb5;
}

.tax-article .article-deck {
  margin-bottom: 2.2em;
  color: var(--ink);
  font-size: 1.16em;
  line-height: 1.65;
}

.tax-key-numbers {
  display: grid;
  width: min(1080px, calc(100vw - 36px));
  margin: 46px 0 60px 50%;
  transform: translateX(-50%);
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(0, 230, 168, .28);
  background: var(--tax-panel);
  color: #fff;
  box-shadow: 0 24px 65px rgba(7, 19, 29, .17);
}

.tax-key-number {
  min-height: 190px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(145deg, rgba(0, 230, 168, .11), transparent 60%);
}

.tax-key-number:last-child { border-right: 0; }
.tax-key-number strong {
  display: block;
  margin-bottom: 18px;
  color: var(--tax-aqua);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .95;
}
.tax-key-number span {
  display: block;
  color: #d2e1e6;
  font-family: var(--sans);
  font-size: .78rem;
  line-height: 1.5;
}
.tax-key-number small {
  display: block;
  margin-top: 10px;
  color: var(--tax-muted);
  font-family: var(--sans);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tax-viz {
  position: relative;
  isolation: isolate;
  width: min(1100px, calc(100vw - 36px));
  margin: 58px 0 66px 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(0, 230, 168, .3);
  background:
    radial-gradient(circle at 5% 0%, rgba(0, 230, 168, .14), transparent 31%),
    linear-gradient(145deg, #0a202b, #06141d 68%);
  color: #fff;
  box-shadow: 0 26px 70px rgba(7, 19, 29, .22);
}

.tax-viz::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--tax-aqua), rgba(0, 230, 168, .15) 55%, transparent);
}

.tax-viz-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: end;
  padding: 30px 34px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.tax-viz-kicker {
  margin: 0 0 8px !important;
  color: var(--tax-aqua) !important;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tax-article .tax-viz h3 {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-family: var(--serif) !important;
  font-size: clamp(1.7rem, 3vw, 2.55rem) !important;
  letter-spacing: -.035em !important;
}
.tax-viz-subtitle {
  max-width: 720px;
  margin: 0 !important;
  color: #a9c0c8;
  font-family: var(--sans);
  font-size: .82rem;
  line-height: 1.55;
}
.tax-viz-unit {
  color: #6f919e;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .64rem;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.tax-viz-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 34px 0;
}
.tax-viz-control {
  padding: 8px 12px;
  border: 1px solid rgba(147, 190, 203, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #a9c0c8;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: 160ms ease;
}
.tax-viz-control:hover,
.tax-viz-control:focus-visible { border-color: var(--tax-aqua); color: #fff; outline: none; }
.tax-viz-control.is-active {
  border-color: rgba(0, 230, 168, .8);
  background: rgba(0, 230, 168, .14);
  color: var(--tax-aqua-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 230, 168, .08);
}

.tax-viz-body { padding: 22px 30px 28px; }
.tax-chart-frame { position: relative; width: 100%; height: 430px; }
.tax-chart-frame.is-compact { height: 390px; }
.tax-chart-frame canvas { width: 100% !important; height: 100% !important; }

.tax-viz-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 34px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(2, 12, 18, .52);
}
.tax-viz-takeaway {
  margin: 0 !important;
  color: #d7e6ea;
  font-family: var(--sans);
  font-size: .76rem;
  line-height: 1.55;
}
.tax-viz-takeaway strong { color: var(--tax-aqua-soft); }
.tax-viz-source {
  color: #7595a0;
  font-family: var(--sans);
  font-size: .64rem;
  text-align: right;
}

.tax-top-one-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin: 8px 34px 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 125, 121, .24);
  background: rgba(255, 125, 121, .055);
  font-family: var(--sans);
}
.tax-top-one-callout strong {
  color: var(--tax-coral);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -.04em;
}
.tax-top-one-callout span { color: #acc2ca; font-size: .75rem; line-height: 1.5; }

.tax-chart-data { border-top: 1px solid rgba(255, 255, 255, .09); }
.tax-chart-data summary {
  position: relative;
  padding: 17px 58px 17px 34px !important;
  color: #8ca8b2;
  cursor: pointer;
  font-family: var(--sans) !important;
  font-size: .66rem !important;
  font-weight: 800;
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
}
.tax-chart-data summary::-webkit-details-marker { display: none; }
.tax-chart-data summary::after { content: "+"; position: absolute; right: 34px; color: var(--tax-aqua); font-size: 1rem; }
.tax-chart-data[open] summary::after { content: "−"; }
.tax-chart-data-inner { padding: 0 34px 28px; overflow-x: auto; }
.tax-chart-data table { display: table !important; width: 100%; min-width: 680px; color: #d5e5e9; font-family: var(--sans); font-size: .7rem; }
.tax-chart-data th,
.tax-chart-data td { padding: 10px 12px !important; border-color: rgba(255, 255, 255, .11) !important; text-align: right; }
.tax-chart-data th:first-child,
.tax-chart-data td:first-child { text-align: left; }
.tax-chart-data th { color: var(--tax-aqua-soft); }

.tax-chart-error {
  display: none;
  place-items: center;
  height: 100%;
  padding: 30px;
  color: #b6c9cf;
  font-family: var(--sans);
  font-size: .8rem;
  text-align: center;
}
.tax-viz.chart-unavailable .tax-chart-error { display: grid; }
.tax-viz.chart-unavailable canvas { display: none; }

@media (max-width: 850px) {
  .tax-key-numbers { grid-template-columns: repeat(2, 1fr); }
  .tax-key-number { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .tax-key-number:nth-child(2) { border-right: 0; }
  .tax-viz-head,
  .tax-viz-footer { grid-template-columns: 1fr; }
  .tax-viz-unit,
  .tax-viz-source { text-align: left; }
}

@media (max-width: 600px) {
  .tax-key-numbers,
  .tax-viz { width: calc(100vw - 24px); }
  .tax-key-numbers { margin-top: 36px; grid-template-columns: 1fr; }
  .tax-key-number { min-height: 0; border-right: 0; }
  .tax-viz-head { padding: 25px 22px 20px; }
  .tax-viz-controls { padding: 16px 22px 0; }
  .tax-viz-body { padding: 18px 12px 24px; }
  .tax-chart-frame,
  .tax-chart-frame.is-compact { height: 360px; }
  .tax-viz-footer { padding: 18px 22px; }
  .tax-top-one-callout { margin: 8px 22px 0; grid-template-columns: 1fr; gap: 6px; }
  .tax-chart-data summary { padding-inline: 22px 52px !important; }
  .tax-chart-data summary::after { right: 22px; }
  .tax-chart-data-inner { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tax-viz-control { transition: none; }
}
