.tax-code-history {
  display: grid;
  gap: 16px;
}

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

.tax-code-history__period {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  border-color: var(--tax-line-strong);
  background: linear-gradient(145deg, #fbfefc, #fff);
  box-shadow: 0 14px 34px rgba(20, 33, 29, .06);
}

.tax-code-history__period-head,
.tax-code-history__article-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.tax-code-history__period-head h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
}

.tax-code-history__period-head .eyebrow {
  margin-bottom: 8px;
}

.tax-code-history__facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tax-code-history__facts .av-provenance-strip__item {
  padding: 12px 14px;
}

.tax-code-history__facts .av-provenance-strip__value {
  font-size: 12px;
}

.tax-code-history__articles {
  display: grid;
  gap: 10px;
}

.tax-code-history__article {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tax-line);
  border-radius: 11px;
  background: var(--tax-paper);
}

.tax-code-history__article-number {
  display: block;
  margin-bottom: 4px;
  color: var(--tax-green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tax-code-history__article h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.28;
}

.tax-code-history__article-head .av-badge {
  flex: 0 0 auto;
  max-width: 48%;
  white-space: normal;
  text-align: right;
}

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

.tax-code-history__states > div {
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  background: #fff;
}

.tax-code-history__states span {
  display: block;
  margin-bottom: 6px;
  color: var(--tax-muted);
  font-size: 10px;
  font-weight: 800;
}

.tax-code-history__states strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

.tax-code-history__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.tax-code-history__source {
  color: var(--tax-green-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tax-code-history__limitation {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--tax-line);
  color: var(--tax-muted);
  font-size: 11px;
  line-height: 1.45;
}

.tax-code-history__limitation strong {
  color: var(--tax-ink-soft);
}

@media (max-width: 1080px) {
  .tax-code-history__periods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tax-code-history__period-head,
  .tax-code-history__article-head {
    display: grid;
  }

  .tax-code-history__article-head .av-badge {
    max-width: none;
    width: fit-content;
    text-align: left;
  }

  .tax-code-history__facts,
  .tax-code-history__states {
    grid-template-columns: 1fr;
  }
}
