/* Dim only the old content, keeping the loading indicator at full contrast. */
.tc-year-content-pending { position: relative; min-height: 160px; }
.tc-year-content-pending > * { opacity: .45; transition: opacity .12s ease; }
.tc-year-content-pending::before,
.tc-year-content-pending::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: clamp(64px, 15vh, 140px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: tc-year-reveal 0s .3s forwards;
}
.tc-year-content-pending::before {
  width: 48px;
  height: 48px;
  margin-inline-start: -24px;
  background: var(--bg-primary, #fff);
  box-shadow: 0 2px 12px #0000001a;
  z-index: 1;
}
.tc-year-content-pending::after {
  width: 24px;
  height: 24px;
  margin-inline-start: -12px;
  margin-top: 12px;
  box-sizing: border-box;
  border: 3px solid var(--text-secondary, #536471);
  border-inline-end-color: transparent;
  z-index: 2;
  animation: tc-year-reveal 0s .3s forwards, tc-year-spin .75s .3s linear infinite;
}
.tc-year-content-pending.tc-year-document-loading::before,
.tc-year-content-pending.tc-year-document-loading::after { opacity: 1; animation: none; }
.tc-year-content-pending.tc-year-document-loading::after { animation: tc-year-spin .75s linear infinite; }
@keyframes tc-year-reveal { to { opacity: 1; } }
@keyframes tc-year-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .tc-year-content-pending > * { transition: none; }
  .tc-year-content-pending::after { animation: tc-year-reveal 0s .3s forwards; }
  .tc-year-content-pending.tc-year-document-loading::after { animation: none; }
}
