.report-body {
  font-family: system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
  padding: 1rem;
  counter-reset: report-h2;
}

.report-body h2:not(.report-toc__title) {
  counter-increment: report-h2;
  counter-reset: report-h3;
  break-before: page;
  page-break-before: always;
}

.report-body h2:not(.report-toc__title)::before {
  content: counter(report-h2) ". ";
}

.report-section--purpose > h2 {
  break-before: auto;
  page-break-before: auto;
}

.report-body h3 {
  counter-increment: report-h3;
}

.report-body h3::before {
  content: counter(report-h2) "." counter(report-h3) " ";
}

.report-header {
  border-bottom: 2px solid #1d4ed8;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
}

.report-cover {
  --report-logo-fill: linear-gradient(135deg, #1d4ed8, #2563eb);
  margin: -1rem -1rem 1.75rem;
  padding: 0 0 1.25rem;
  border-bottom: 0;
  background: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.report-cover__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--report-logo-fill);
  color: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.report-cover__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.report-cover__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.4rem;
  background: var(--report-logo-fill);
  color: #fff;
}

.report-cover__mark .logo-mark__svg {
  display: block;
  overflow: visible;
  width: 1.6rem;
  height: 1.6rem;
}

.report-cover .logo-mark__orbit {
  animation: none;
}

.report-cover .logo-mark__pulse {
  fill: none;
  stroke: #5eead4;
  animation: none;
  opacity: 0.7;
}

.report-cover .logo-mark__check {
  stroke: #4ade80;
}

.report-cover .logo-mark__beacon-rays {
  stroke: #fde047;
}

.report-cover .logo-mark__beacon {
  fill: #facc15;
}

.report-cover .logo-mark__beacon-core {
  fill: #fef08a;
}

.report-cover__wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.report-cover__badge {
  margin: 0;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.report-cover__title-block {
  padding: 1.4rem 1.25rem 0.35rem;
}

.report-cover h1,
.report-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  line-height: 1.2;
  color: #122a56;
}

.report-company-name {
  white-space: nowrap;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: keep-all;
  overflow-wrap: normal;
}

.report-cover__prepared,
.report-header__prepared {
  margin: 0 0 0.7rem;
  color: #1f4b99;
  font-size: 0.95rem;
  font-weight: 600;
}

.report-cover__lede {
  margin: 0;
  color: #3d4a5c;
  font-size: 1.02rem;
  max-width: 40rem;
}

.report-cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1rem 1.25rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid #d5deee;
}

.report-cover__meta p {
  margin: 0;
}

.report-cover__meta-label {
  display: block;
  margin-bottom: 0.15rem;
  color: #6b7a90;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-header__meta {
  color: #555;
  font-size: 0.9rem;
}

.report-copyright--screen {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ccc;
  color: #555;
  font-size: 0.8rem;
}

.report-copyright--screen p {
  margin: 0;
}

.report-watermark {
  position: fixed;
  top: 42%;
  left: 50%;
  z-index: 0;
  margin: 0;
  padding: 0.35em 0.65em;
  transform: translate(-50%, -50%) rotate(-32deg);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(40, 40, 40, 0.14);
  background: rgba(80, 80, 80, 0.07);
}

@media print {
  .report-copyright--screen {
    display: none;
  }
}

.report-section {
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.report-section h2,
.report-section h3,
.report-category-group > h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #1f4b99;
  break-after: avoid;
  page-break-after: avoid;
}

.report-section h3,
.report-category-group > h3 {
  font-size: 1rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.report-table thead {
  display: table-header-group;
}

.report-table tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.report-table th,
.report-table td {
  border: 1px solid #ddd;
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.report-table th {
  background: #f4f6fa;
}

.report-purpose__statement,
.report-section__lead {
  margin: 0 0 0.75rem;
}

.report-table--purpose th {
  width: 11rem;
  white-space: nowrap;
}

.report-purpose__constraints,
.report-purpose__guide {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.15rem;
}

/* Shared column widths across Control status category tables. */
.report-table--controls,
.report-table--identity {
  table-layout: fixed;
}

.report-table--controls .report-table__col--control,
.report-table--identity .report-table__col--control {
  width: 28%;
}

.report-table--controls .report-table__col--required {
  width: 5.5rem;
}

.report-table--controls .report-table__col--status {
  width: 11%;
}

.report-table--controls .report-table__col--finding {
  width: 12%;
}

.report-table--with-period .report-table__col--period {
  width: 11%;
}

.report-table--with-period .report-table__col--evidence {
  width: 28%;
}

.report-table--identity .report-table__col--finding {
  width: 28.5%;
}

.report-table--controls .report-table__col--evidence,
.report-table--identity .report-table__col--evidence {
  width: 39%;
}

.report-table--controls th:nth-child(2),
.report-table--controls td:nth-child(2) {
  white-space: nowrap;
}

.report-kpi {
  display: inline-block;
  margin-right: 1.5rem;
}

.report-kpi strong {
  display: block;
  font-size: 1.4rem;
}

.report-row--fail {
  background: #fdecea;
}

.report-footer-note {
  color: #555;
  font-size: 0.85rem;
}

.report-toc__title::before {
  content: none;
}

.report-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-toc__item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

.report-toc__item--h3 {
  padding-left: 1.25rem;
}

.report-toc__num {
  color: #1f4b99;
  font-weight: 600;
  white-space: nowrap;
}

.report-toc__label {
  flex: 0 1 auto;
}

.report-toc__dots {
  flex: 1;
  border-bottom: 1px dotted #999;
  min-width: 1.5rem;
  transform: translateY(-0.25em);
}

.report-toc__page {
  white-space: nowrap;
  min-width: 1.5rem;
  text-align: right;
}

.broker-example-banner {
  background: #eef3fb;
  border: 1px solid #1f4b99;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.broker-example-banner p {
  margin: 0 0 0.5rem;
}

.broker-example-banner p:last-child {
  margin-bottom: 0;
}

.broker-example-banner__nav a {
  margin-right: 1rem;
}

.report-page-break {
  break-after: page;
  page-break-after: always;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-section--purpose > h2 {
  break-before: auto;
  page-break-before: auto;
}

.report-toc {
  break-before: page;
  page-break-before: always;
}

.report-table__cell--period {
  text-align: center;
}

.report-finding--fail {
  font-weight: 700;
}

/* Starting on a new page does not authorize a split. Only these
   wrappers may break, and only between keep-together children. */
.report-section--allow-split {
  break-inside: auto;
  page-break-inside: auto;
}

.report-category-group {
  break-inside: avoid;
  page-break-inside: avoid;
}

.report-section--risk-assessment h3 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
  color: #1f4b99;
}

.report-signature-block {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
}

.report-signature-line {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.report-signature-field {
  flex: 1;
}

.report-signature-rule {
  border-bottom: 1px solid #1a1a1a;
  min-height: 2.25rem;
}

.policy-copy-body {
  white-space: normal;
  font-size: 0.9rem;
}

@media print {
  .report-actions,
  .broker-example-banner {
    display: none;
  }

  .report-section,
  .report-category-group {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-section--policy-copy,
  .report-section--risk-assessment,
  .report-section--allow-split {
    break-inside: auto;
    page-break-inside: auto;
  }

  .report-section h2,
  .report-section h3,
  .report-category-group > h3 {
    page-break-after: avoid;
  }

  .report-table thead {
    display: table-header-group;
  }

  .report-table tr {
    page-break-inside: avoid;
  }
}
