.report-hero {
  position: relative;
  min-height: min(860px, 100svh);
  padding: calc(var(--header-height) + clamp(72px, 9vw, 118px)) 0 clamp(78px, 9vw, 116px);
  overflow: clip;
  color: #eef4ff;
  background:
    radial-gradient(circle at 78% 26%, rgba(94, 234, 212, 0.13), transparent 27%),
    radial-gradient(circle at 56% 82%, rgba(155, 140, 255, 0.07), transparent 30%),
    var(--night);
}

.report-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  content: "";
  pointer-events: none;
}

.report-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: clamp(46px, 7vw, 100px);
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb-dark {
  color: #73839e;
}

.breadcrumb-dark a:hover {
  color: var(--lime);
}

.report-hero h1 {
  max-width: 850px;
  margin: 0 0 26px;
  color: #f4f7ff;
  font-size: clamp(3.25rem, 6.8vw, 6.8rem);
}

.report-hero p {
  max-width: 720px;
  margin-bottom: 34px;
  color: #aab8ce;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}

.report-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.report-assurances li {
  padding: 8px 11px;
  color: #9dacc2;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.035em;
}

.report-orbit {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 1;
  margin-inline: auto;
  isolation: isolate;
}

.report-orbit::before {
  position: absolute;
  inset: 13%;
  z-index: -2;
  background: rgba(94, 234, 212, 0.08);
  border-radius: 50%;
  filter: blur(42px);
  content: "";
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(94, 234, 212, 0.23);
  border-radius: 50%;
}

.orbit-ring::after {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(155, 140, 255, 0.65);
  content: "";
}

.orbit-ring-one {
  inset: 8%;
  transform: rotate(-18deg);
}

.orbit-ring-one::after {
  top: 12%;
  right: 15%;
}

.orbit-ring-two {
  inset: 22%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  transform: rotate(27deg);
}

.orbit-ring-two::after {
  right: -4px;
  bottom: 48%;
  background: var(--mint);
}

.orbit-core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-content: center;
  color: #f3f6ff;
  text-align: center;
  background: linear-gradient(145deg, rgba(155, 140, 255, 0.16), rgba(94, 234, 212, 0.07));
  border: 1px solid rgba(155, 140, 255, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(155, 140, 255, 0.05), 0 28px 70px rgba(0, 0, 0, 0.24);
}

.orbit-core span,
.orbit-core small,
.orbit-node {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.orbit-core span {
  color: var(--lime);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

.orbit-core strong {
  display: block;
  margin: 5px 0 1px;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

.orbit-core small {
  color: #8290aa;
  font-size: 0.54rem;
}

.orbit-node {
  position: absolute;
  display: grid;
  min-width: 72px;
  min-height: 36px;
  padding: 7px 11px;
  place-items: center;
  color: #bbc8da;
  background: rgba(10, 16, 36, 0.88);
  border: 1px solid rgba(94, 234, 212, 0.23);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}

.orbit-node-one { top: 6%; left: 42%; }
.orbit-node-two { top: 42%; right: 0; }
.orbit-node-three { right: 17%; bottom: 5%; }
.orbit-node-four { bottom: 18%; left: 0; }

.report-section-heading {
  max-width: 880px;
}

.report-console {
  overflow: hidden;
  background: #0d1428;
  border: 1px solid #ccd6e4;
  border-radius: 24px;
  box-shadow: 0 34px 100px rgba(8, 13, 31, 0.14);
}

.report-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  background: #0d1428;
  border-bottom: 1px solid var(--line-dark);
}

.report-tabs button {
  position: relative;
  min-height: 56px;
  padding: 12px 14px;
  color: #8292ad;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  transition: color 180ms ease, background 180ms ease;
}

.report-tabs button span {
  margin-right: 8px;
  color: #8292ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
}

.report-tabs button:hover {
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.035);
}

.report-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--accent-strong);
}

.report-tabs button[aria-selected="true"] span {
  color: var(--white);
}

.report-panel {
  min-height: 620px;
  padding: clamp(28px, 5vw, 68px);
  background: var(--white);
}

.report-panel[hidden] {
  display: none;
}

.js .report-panel.is-entering {
  animation: report-panel-in 320ms var(--ease) both;
}

@keyframes report-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-heading {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 42px;
}

.console-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-heading h3 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
}

.executive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.executive-narrative > p {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
}

.impact-chain {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.impact-chain div {
  min-width: 0;
  min-height: 132px;
  padding: 18px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.impact-chain span {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.impact-chain strong,
.impact-chain small {
  display: block;
}

.impact-chain strong {
  margin-bottom: 5px;
  color: var(--ink);
  line-height: 1.25;
}

.impact-chain small {
  color: var(--muted);
  font-size: 0.7rem;
}

.impact-chain i {
  color: #929fb8;
  font-style: normal;
}

.decision-card {
  padding: 26px;
  color: #eef4ff;
  background: var(--night);
  border-radius: 17px;
}

.decision-card > span {
  display: block;
  margin-bottom: 24px;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-card strong {
  display: block;
  margin-bottom: 13px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.decision-card p {
  margin: 0;
  color: #a4b2c7;
  font-size: 0.86rem;
}

.report-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 52px 0 0;
  border-top: 1px solid var(--line);
}

.report-facts div {
  min-width: 0;
  padding: 22px 18px 0 0;
}

.report-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

.report-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.report-facts code {
  font-size: 0.7rem;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #42320b;
  background: #ffe7a9;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-fixed {
  color: #132d51;
  background: var(--mint);
}

.evidence-grid,
.remediation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-heading {
  display: flex;
  min-height: 45px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #9dacc2;
  background: #111a30;
  border-bottom: 1px solid var(--line-dark);
  border-radius: 12px 12px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.console-action {
  min-height: 30px;
  padding: 4px 9px;
  color: var(--lime);
  background: transparent;
  border: 1px solid rgba(155, 140, 255, 0.35);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
}

.console-action:hover {
  color: var(--night);
  background: var(--lime);
}

.response-code {
  color: var(--mint);
}

.request-code {
  min-height: 220px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #d5e1ef;
  background: #0c1224;
  border-radius: 0 0 12px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.75;
  white-space: pre;
}

.request-code.response {
  color: #aad8f7;
}

.copy-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: #285fa8;
  font-size: 0.76rem;
}

.finding-steps,
.fix-checklist {
  margin-top: 34px;
  padding: 28px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.finding-steps h4,
.fix-checklist h4 {
  margin-bottom: 15px;
  color: var(--ink);
  font-size: 1rem;
}

.finding-steps ol,
.fix-checklist ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.remediation-grid article {
  min-width: 0;
  padding: 24px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.remediation-grid .request-code {
  min-height: 145px;
  margin: 18px 0;
  border-radius: 10px;
}

.remediation-grid article p {
  margin: 0;
  font-size: 0.86rem;
}

.remediation-label {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.remediation-label.unsafe { color: #67251d; background: #ffe0db; }
.remediation-label.safe { color: #173d72; background: #dcecff; }

.retest-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 42px;
}

.retest-timeline div {
  min-height: 160px;
  padding: 24px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.retest-timeline span {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.retest-timeline strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.25;
}

.retest-timeline p {
  margin: 0;
  font-size: 0.78rem;
}

.retest-timeline i {
  color: #929fb8;
  font-style: normal;
}

.retest-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.retest-table caption {
  padding-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.retest-table th,
.retest-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.retest-table th {
  color: var(--ink);
  background: var(--paper-deep);
}

.table-status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
}

.table-status.fixed,
.table-status.pass { color: #173d72; background: #dcecff; }
.table-status.limited { color: #5e4912; background: #fff0c9; }

.pdf-heading {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.pdf-heading h2 {
  margin-bottom: 14px;
}

.pdf-heading p {
  max-width: 730px;
  margin: 0;
}

.pdf-heading .btn {
  flex: 0 0 auto;
}

.cta-panel-outline {
  border: 1px solid rgba(155, 140, 255, 0.18);
}

@media (max-width: 980px) {
  .report-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 30px;
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }

  .decision-card {
    max-width: 620px;
  }

  .report-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .report-hero {
    min-height: auto;
  }

  .report-hero-grid {
    grid-template-columns: 1fr;
  }

  .report-orbit {
    width: min(86vw, 430px);
  }

  .report-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .report-panel {
    min-height: 0;
  }

  .impact-chain,
  .retest-timeline {
    grid-template-columns: 1fr;
  }

  .impact-chain i,
  .retest-timeline i {
    transform: rotate(90deg);
    text-align: center;
  }

  .evidence-grid,
  .remediation-grid {
    grid-template-columns: 1fr;
  }

  .pdf-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .report-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .report-orbit {
    width: min(100%, 360px);
  }

  .orbit-node {
    min-width: 60px;
    min-height: 32px;
    padding: 5px 8px;
    font-size: 0.52rem;
  }

  .report-tabs {
    grid-template-columns: 1fr;
  }

  .report-tabs button {
    min-height: 48px;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
  }

  .report-facts {
    grid-template-columns: 1fr;
  }

  .report-facts div {
    padding-right: 0;
  }

  .request-code {
    font-size: 0.68rem;
  }

  .retest-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .report-panel.is-entering {
    animation: none;
  }
}

@media print {
  .report-hero,
  .report-tabs,
  .pdf-frame,
  .site-header,
  .site-footer,
  .consent-banner,
  .section-dark {
    display: none !important;
  }

  .report-console {
    border: 0;
    box-shadow: none;
  }

  .report-panel,
  .report-panel[hidden] {
    display: block !important;
    min-height: 0;
    padding: 24px 0;
    break-inside: avoid;
  }
}
