.tax-page {
  box-sizing: border-box;
  color: #18221a;
  line-height: 1.65;
  margin-inline: auto;
  max-width: 1020px;
  padding: 16px 22px 36px !important;
}

.tax-page *,
.tax-page *::before,
.tax-page *::after {
  box-sizing: border-box;
}

.tax-page a,
.tax-page a:visited {
  color: #2f6f24;
  text-decoration-color: rgba(47, 111, 36, 0.45);
  text-underline-offset: 0.16em;
}

.tax-page a:hover {
  color: #20551a;
  text-decoration-color: currentColor;
}

.tax-page > h1 {
  color: #142719;
  font-size: clamp(1.8em, 4vw, 2.45em);
  line-height: 1.18;
  margin: 0 0 12px;
}

.tax-hero__lead {
  color: #38443b;
  font-size: 1.06em;
  margin: 0;
  max-width: 780px;
}

.tax-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 17px 0 22px;
}

.tax-page .tax-action,
.tax-page .tax-action:visited {
  align-items: center;
  background: #fff;
  border: 1px solid #83ad70;
  border-radius: 7px;
  color: #2c6423;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  text-decoration: none;
}

.tax-page .tax-action:hover {
  background: #f3f8f0;
}

.tax-page .tax-action--primary,
.tax-page .tax-action--primary:visited {
  background: #347b2c;
  border-color: #347b2c;
  color: #fff;
}

.tax-page .tax-action--primary:hover {
  background: #276522;
}

.tax-highlights {
  background: #fff;
  border: 1px solid #d4e1ce;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(36, 75, 29, 0.05);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px;
  overflow: hidden;
}

.tax-highlights > div {
  min-width: 0;
  padding: 12px 16px;
  text-align: center;
}

.tax-highlights > div + div {
  border-right: 1px solid #dce7d7;
}

.tax-highlights > div > span,
.tax-highlights > div > strong,
.tax-highlights > div > small {
  display: block;
}

.tax-highlights > div > span {
  color: #647066;
  font-size: 0.8em;
  font-weight: 700;
}

.tax-highlights strong {
  color: #285f20;
  font-size: 1.14em;
  line-height: 1.35;
  margin: 2px 0;
}

.tax-highlights small {
  color: #606b62;
  font-size: 0.76em;
  line-height: 1.4;
}

.tax-brackets-chart {
  background: #f3f7f0;
  border: 1px solid #c5d8bc;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(38, 76, 30, 0.08);
  margin: 0 0 28px;
  overflow: hidden;
}

.tax-brackets-chart img {
  display: block;
  height: auto;
  width: 100%;
}

.tax-brackets-chart figcaption {
  background: #fff;
  border-top: 1px solid #d6e3d0;
  color: #4d5b50;
  font-size: 0.88em;
  line-height: 1.55;
  margin: 0;
  padding: 11px 15px 12px;
}

.tax-money {
  align-items: baseline;
  direction: rtl;
  display: inline-flex;
  gap: 0.28em;
  white-space: nowrap;
}

.tax-money bdi {
  direction: ltr;
  font-family: Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.tax-money__unit {
  display: inline;
  font-family: Arial, sans-serif;
  font-size: 0.92em;
}

.tax-kicker {
  color: #397024;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 3px;
}

.tax-explainer {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  margin: 0 0 34px;
}

.tax-explainer__text {
  padding: 4px 2px;
}

.tax-explainer h2,
.tax-table-section h2,
.tax-faq h2,
.tax-related h2 {
  color: #1b351c;
  font-size: clamp(1.3em, 3vw, 1.62em);
  line-height: 1.3;
  margin: 0 0 8px;
}

.tax-explainer__text p:not(.tax-kicker) {
  color: #3d4940;
  margin: 8px 0 0;
}

.tax-example {
  background: #fffaf0;
  border: 1px solid #e4d5aa;
  border-radius: 12px;
  padding: 15px 17px;
}

.tax-example h3 {
  color: #4a3b12;
  font-size: 1em;
  line-height: 1.45;
  margin: 0 0 8px;
}

.tax-example ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tax-example li,
.tax-example > p {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tax-example li {
  border-bottom: 1px solid #eee2be;
  color: #554c35;
  font-size: 0.9em;
  padding: 5px 0;
}

.tax-example > p {
  color: #3f340f;
  font-weight: 700;
  margin: 10px 0 0;
}

.tax-table-section {
  margin: 0 0 30px;
}

.tax-section-heading {
  margin-bottom: 12px;
}

.tax-section-heading > p:last-child {
  color: #4f5b52;
  margin: 0;
}

.tax-scroll-note {
  color: #5b675d;
  display: none;
  font-size: 0.82em;
  margin: 0 0 7px;
}

.tax-table-wrap {
  border: 1px solid #b7cda8;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(38, 76, 30, 0.08);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tax-table-wrap:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

#main table.tax-brackets-table {
  background: #fff;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  margin: 0;
  min-width: 760px;
  table-layout: auto;
  width: 100%;
}

.tax-brackets-table caption {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

#main .tax-brackets-table th,
#main .tax-brackets-table td,
#main .tax-brackets-table thead + tbody tr:first-child td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d5e1d0;
  border-left: 1px solid #d5e1d0;
  color: #263129;
  font: normal 0.89em/1.45 Arial, sans-serif;
  padding: 10px 9px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

#main .tax-brackets-table th:last-child,
#main .tax-brackets-table td:last-child {
  border-left: 0;
}

#main .tax-brackets-table thead th {
  background: #2f7d32;
  border-bottom-color: #256629;
  border-left-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-weight: 700;
  padding-block: 12px;
}

#main .tax-brackets-table thead th:first-child {
  border-radius: 0 11px 0 0;
}

#main .tax-brackets-table thead th:last-child {
  border-radius: 11px 0 0 0;
}

#main .tax-brackets-table tbody tr:nth-child(odd) > * {
  background: #fff;
}

#main .tax-brackets-table tbody tr:nth-child(even) > * {
  background: #f4f8f1;
}

#main .tax-brackets-table tbody th {
  color: #285f20;
  font-weight: 700;
}

#main .tax-brackets-table tbody tr:last-child > * {
  border-bottom: 0;
}

#main .tax-brackets-table .tax-brackets-table__surtax > * {
  background: #fff8df;
}

.tax-brackets-table__surtax td:nth-child(4) small {
  color: #665518;
  display: block;
  font-size: 0.76em;
  font-weight: 400;
  margin-top: 1px;
}

.tax-source-note {
  background: #f6f9f4;
  border-right: 4px solid #4f8f2f;
  color: #4c5850;
  font-size: 0.88em;
  margin-top: 13px;
  padding: 10px 14px;
}

.tax-source-note p {
  margin: 3px 0;
}

.tax-credit-note {
  align-items: flex-start;
  background: #eef7e9;
  border: 1px solid #bed7b2;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  margin: 28px 0 34px;
  padding: 16px 18px;
}

.tax-credit-note__icon {
  align-items: center;
  background: #397c31;
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 34px;
  font-size: 1.4em;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1;
}

.tax-credit-note h2 {
  color: #234a1e;
  font-size: 1.15em;
  margin: 0 0 4px;
}

.tax-credit-note p {
  color: #3f4e40;
  margin: 0 0 5px;
}

.tax-credit-note a {
  font-weight: 700;
}

.tax-faq {
  margin: 0 0 30px;
}

.tax-faq__items {
  border-bottom: 1px solid #d7e2d2;
  margin-top: 12px;
}

.tax-faq details {
  border-top: 1px solid #d7e2d2;
}

.tax-faq summary,
.tax-history > summary {
  color: #213923;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1.45;
  padding: 12px 4px 12px 28px;
}

.tax-faq summary:hover,
.tax-history > summary:hover {
  color: #2f6f24;
}

.tax-faq details p {
  color: #465149;
  margin: -2px 0 13px;
  padding: 0 18px 0 28px;
}

.tax-history {
  background: #f8faf7;
  border: 1px solid #d2dfcc;
  border-radius: 10px;
  margin: 0 0 32px;
  padding: 0 14px;
}

.tax-history__content {
  padding: 0 0 14px;
}

.tax-history__content > p {
  color: #59645b;
  font-size: 0.9em;
  margin: 0 2px 10px;
}

#main table.tax-brackets-table--history {
  min-width: 650px;
}

.tax-related {
  margin: 0 0 22px;
}

.tax-related__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tax-page .tax-related__grid a,
.tax-page .tax-related__grid a:visited {
  background: #fff;
  border: 1px solid #c6d8bd;
  border-radius: 9px;
  color: #2d5529;
  display: block;
  min-width: 0;
  padding: 12px 14px;
  text-decoration: none;
}

.tax-page .tax-related__grid a:hover {
  background: #f3f8f0;
  border-color: #8caf79;
}

.tax-related__grid strong,
.tax-related__grid span {
  display: block;
}

.tax-related__grid strong {
  margin-bottom: 2px;
}

.tax-related__grid span {
  color: #617064;
  font-size: 0.84em;
  line-height: 1.45;
}

.tax-disclaimer {
  border-top: 1px solid #dce5d8;
  color: #667068;
  font-size: 0.82em;
  margin: 24px 0 0;
  padding-top: 11px;
}

@media (max-width: 760px) {
  .tax-page {
    padding: 13px 14px 28px !important;
  }

  .tax-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tax-page .tax-action {
    width: 100%;
  }

  .tax-highlights {
    grid-template-columns: 1fr;
  }

  .tax-highlights > div {
    align-items: baseline;
    display: grid;
    gap: 3px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    text-align: right;
  }

  .tax-highlights > div + div {
    border-right: 0;
    border-top: 1px solid #dce7d7;
  }

  .tax-highlights strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .tax-highlights small {
    grid-column: 1;
  }

  .tax-explainer {
    grid-template-columns: 1fr;
  }

  .tax-scroll-note {
    display: block;
  }

  #main .tax-brackets-table th:first-child,
  #main .tax-brackets-table td:first-child {
    box-shadow: -5px 0 8px -8px rgba(0, 0, 0, 0.6);
    position: sticky;
    right: 0;
    z-index: 2;
  }

  #main .tax-brackets-table thead th:first-child {
    background: #2f7d32;
    z-index: 3;
  }

  .tax-credit-note {
    gap: 10px;
    padding: 14px;
  }

  .tax-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .tax-page {
    padding-inline: 11px !important;
  }

  .tax-example {
    padding-inline: 13px;
  }

  .tax-example li,
  .tax-example > p {
    gap: 7px;
  }

  .tax-brackets-chart figcaption {
    font-size: 0.84em;
    padding-inline: 12px;
  }
}

@media print {
  .tax-hero__actions,
  .tax-scroll-note,
  .tax-related {
    display: none !important;
  }

  .tax-table-wrap,
  .tax-credit-note {
    box-shadow: none;
  }

  .tax-table-wrap {
    overflow: visible;
  }

  #main table.tax-brackets-table {
    min-width: 0;
  }
}
