html {
  scroll-behavior: smooth;
}

.report-header {
  background: var(--peers-white);
  border-bottom: 1px solid var(--grey-300);
  padding: var(--space-3) var(--space-6);
}

.report-breadcrumb {
  font-size: 0.78rem;
  color: var(--grey-500);
  margin: 0 0 6px;
}

.report-breadcrumb a {
  color: var(--info-main);
  font-weight: 600;
}

.report-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.report-header__title {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--peers-blue);
  margin: 0 0 4px;
}

.report-header__subtitle {
  font-size: 0.85rem;
  color: var(--grey-600);
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

.report-header__tag {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.report-header__tag--asis {
  background: #fff5cc;
  color: #7a4100;
}

.report-header__tag--tobe {
  background: var(--peers-lime-02);
  color: #4a5a00;
}

.report-header__tag--ref {
  background: var(--peers-serene-02);
  color: var(--peers-blue);
}

.report-header__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.report-header__present-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--peers-blue);
  background: var(--peers-white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.report-header__present-btn:hover {
  background: var(--peers-serene-02);
  border-color: var(--peers-serene);
}

.report-header__present-btn svg {
  flex-shrink: 0;
}

.report-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: var(--space-2);
  padding: 10px 14px;
  background: var(--grey-50);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  color: var(--grey-700);
}

.report-legend strong {
  color: var(--peers-blue);
}

/* ---------- Callouts / notas de destaque ---------- */

.report-callout {
  background: var(--grey-50);
  border-left: 4px solid var(--info-main);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.85rem;
  color: var(--grey-700);
  line-height: 1.55;
}

.report-callout strong {
  color: var(--peers-blue);
}

.report-callout--gap {
  border-left-color: var(--warning-main);
}

.report-callout--gap-total {
  border-left-color: var(--error-main);
}

.report-callout__title {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  color: var(--peers-blue);
}

/* ---------- Layout de duas colunas ---------- */

.report-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6) var(--space-8);
  box-sizing: border-box;
}

.report-nav {
  position: sticky;
  top: var(--space-3);
  width: 260px;
  flex-shrink: 0;
  background: var(--peers-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-2);
}

.report-nav__eyebrow {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-500);
  padding: 8px 12px 4px;
}

.report-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-700);
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.report-nav a:hover {
  background: var(--grey-100);
}

.report-nav a.is-active {
  background: var(--peers-serene-02);
  color: var(--peers-blue);
  border-left-color: var(--peers-lime);
}

.report-content {
  flex: 1;
  min-width: 0;
}

.report-section {
  position: relative;
  background: var(--peers-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  /* Precisa cobrir a altura real do .site-header sticky (~52px) + a
     tarja de ambiente (.env-banner), quando existe -- --env-banner-h é
     medida em JS e cai pra 0px em produção. Sem isso, clicar num link
     do menu de seções rolava a página, mas o título da seção ficava
     escondido atrás dos dois elementos sticky empilhados (mais visível
     no preview, onde a tarja soma altura extra ao cabeçalho). */
  scroll-margin-top: calc(var(--env-banner-h, 0px) + 68px);
}

.report-section__present-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  background: var(--peers-white);
  color: var(--grey-500);
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.report-section__present-btn:hover {
  background: var(--peers-blue);
  color: var(--peers-lime);
  border-color: var(--peers-blue);
}

.report-section__eyebrow {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--info-main);
  margin: 0 0 4px;
}

.report-section h2 {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  color: var(--peers-blue);
  margin: 0 0 6px;
}

.report-section__lead {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--grey-600);
  margin: 0 0 var(--space-3);
  line-height: 1.5;
  max-width: 100ch;
}

.report-item {
  margin-bottom: var(--space-3);
}

.report-item:last-child {
  margin-bottom: 0;
}

.report-item__label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--peers-blue);
  margin-bottom: 4px;
}

.report-item p {
  font-size: 0.85rem;
  color: var(--grey-700);
  line-height: 1.6;
  margin: 0 0 6px;
  max-width: 90ch;
}

.report-item ul,
.report-item ol {
  margin: 0 0 6px;
  padding-left: 18px;
}

.report-source-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--grey-600);
  line-height: 1.6;
}

.report-item li {
  font-size: 0.85rem;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 4px;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-2);
  font-size: 0.82rem;
}

.report-table th,
.report-table td {
  border: 1px solid var(--grey-300);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.report-table th {
  background: var(--grey-100);
  color: var(--peers-blue);
  font-family: var(--font-secondary);
  font-weight: 700;
  white-space: nowrap;
}

.report-table td:first-child {
  font-weight: 700;
  color: var(--peers-blue);
  white-space: nowrap;
}

/* ---------- Responsivo ---------- */

@media (max-width: 860px) {
  .report-layout {
    flex-direction: column;
  }

  .report-nav {
    position: static;
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 8px;
  }

  .report-nav__eyebrow {
    display: none;
  }

  .report-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .report-nav a.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--peers-lime);
  }
}
