.report-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 3px;
  pointer-events: none;
  background: rgba(25, 107, 87, 0.08);
}

.report-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #196b57, #8dbba8);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.report-toc {
  position: fixed;
  top: 50%;
  left: max(16px, calc((100vw - 1120px) / 2 - 176px));
  z-index: 10;
  display: grid;
  gap: 4px;
  width: 156px;
  max-height: 70vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(24, 32, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 18px 54px rgba(61, 54, 40, 0.1);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

.report-toc:empty { display: none; }

.report-toc a {
  display: block;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 9px;
  color: #65706b;
  font-size: 11px;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.report-toc a:hover,
.report-toc a.is-active {
  color: #0d5644;
  background: rgba(25, 107, 87, 0.1);
  transform: translateX(2px);
}

.motion-ready .report-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: min(calc(var(--reveal-order, 0) * 28ms), 180ms);
}

.motion-ready .report-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

article h1 { text-wrap: balance; }
article h2,
article h3 { scroll-margin-top: 92px; }

article .table-wrap {
  transition: box-shadow 220ms ease, transform 220ms ease;
}

article .table-wrap:hover {
  box-shadow: 0 18px 42px rgba(61, 54, 40, 0.1);
  transform: translateY(-2px);
}

article tbody tr { transition: background-color 160ms ease; }
article tbody tr:hover { background: #f1f6f2; }

@media (max-width: 1420px) {
  .report-toc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .report-reveal,
  .motion-ready .report-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .report-toc a,
  article .table-wrap,
  article tbody tr { transition: none; }
}
