.result-report-hero {
  padding: 48px 0 34px;
  background: linear-gradient(180deg, #dff1fb 0%, #edf7fc 100%);
}

.report-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 20px 28px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(105deg, #071326 0%, #17345b 100%);
  color: #fff;
}

.report-titlebar h1 {
  margin: 2px 0 0;
  font-family: var(--heading);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.report-eyebrow,
.report-section-heading > p {
  margin: 0;
  color: #68d3f3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.report-titlebar-badge {
  padding: 8px 13px;
  border: 1px solid rgba(157, 220, 255, 0.45);
  border-radius: 999px;
  background: rgba(44, 199, 240, 0.12);
  color: #c9f2ff;
  font-size: 13px;
  font-weight: 900;
}

.report-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  border: 1px solid #c7d8e5;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(26, 71, 104, 0.13);
  overflow: hidden;
}

.overview-summary {
  padding: 28px;
  border-right: 1px solid #d7e2ea;
}

.report-meta-panel {
  margin-bottom: 22px;
  border: 1px solid #d5e0e8;
  border-radius: 8px;
  overflow: hidden;
}

.report-meta {
  margin: 0;
}

.report-meta div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid #e0e8ee;
}

.report-meta div:last-child {
  border-bottom: 0;
}

.report-meta dt {
  color: #42566e;
  font-size: 13px;
  font-weight: 900;
}

.report-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #071326;
  font-size: 14px;
  font-weight: 700;
}

.report-score-panel {
  padding: 24px;
  border: 1px solid #cfe0ed;
  background: linear-gradient(135deg, #f2f8ff 0%, #f8fcff 100%);
}

.report-score-panel .score-circle {
  border-color: #2f6df6;
  box-shadow: inset 0 0 0 7px #e5efff;
}

.score-copy h2 {
  font-size: 27px;
}

.score-copy .status {
  margin-bottom: 5px;
}

.radar-panel {
  padding: 27px 24px 24px;
  background: #f8fbfd;
}

.report-section-heading h2 {
  margin: 3px 0 0;
  font-family: var(--heading);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.3;
}

.report-section-heading > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.compact-heading h2 {
  font-size: 23px;
}

.score-radar {
  display: block;
  width: min(100%, 360px);
  margin: 8px auto 0;
  overflow: visible;
}

.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: #c5d4df;
  stroke-width: 1;
}

.radar-score {
  fill: rgba(47, 109, 246, 0.28);
  stroke: #2f6df6;
  stroke-width: 2.5;
}

.radar-point {
  fill: #fff;
  stroke: #2f6df6;
  stroke-width: 2;
}

.radar-category-label {
  fill: #42566e;
  font-family: var(--body);
  font-size: 12px;
}

.radar-category-name {
  font-weight: 700;
}

.radar-category-score {
  fill: #071326;
  font-size: 14px;
  font-weight: 900;
}

.radar-category-max {
  fill: #73849a;
  font-size: 10px;
  font-weight: 400;
}

.report-body {
  background: #f2eadf;
}

.report-sheet,
.report-field-card {
  border: 1px solid #d4dce4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 40, 68, 0.07);
}

.report-sheet {
  padding: 28px;
  margin-bottom: 28px;
}

.priority-report {
  border-top: 5px solid #2f6df6;
}

.category-report {
  margin-top: 28px;
  margin-bottom: 0;
}

.report-priority-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.report-priority-list li {
  grid-template-columns: 58px minmax(180px, 0.72fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0;
  border: 1px solid #d9e2e9;
  border-bottom: 0;
}

.report-priority-list li:last-child {
  border-bottom: 1px solid #d9e2e9;
}

.report-priority-list li::before {
  align-self: center;
  margin-left: 14px;
}

.priority-main,
.priority-finding,
.priority-advice {
  padding: 15px;
}

.priority-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding-left: 0;
}

.priority-finding,
.priority-advice {
  border-left: 1px solid #d9e2e9;
}

.priority-advice {
  background: #f2f8ff;
}

.priority-finding > span,
.priority-advice > span {
  color: #53677f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.report-priority-list p {
  margin: 4px 0 0;
  color: #24364d;
  font-size: 14px;
}

.empty-report-message {
  margin-top: 20px;
  padding: 18px;
  border-left: 4px solid #16835f;
  background: #eef9f4;
  color: #145b45;
}

.report-table-wrap {
  margin-top: 20px;
  border: 1px solid #d9e2e9;
  border-radius: 8px;
  overflow: hidden;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.result-table th,
.result-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #dfe6ec;
}

.result-table thead th {
  background: #17345b;
  color: #fff;
  font-size: 13px;
}

.result-table tbody tr:last-child > * {
  border-bottom: 0;
}

.result-table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.score-cell strong {
  font: 900 24px var(--heading);
}

.score-cell small {
  margin-left: 3px;
  color: var(--muted);
}

.score-bar {
  width: 100%;
  min-width: 150px;
  height: 10px;
  border-radius: 999px;
  background: #e1e8ee;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6df6, #2cc7f0);
}

.details-report {
  margin-top: 44px;
}

.report-field-details {
  gap: 12px;
  margin-top: 20px;
}

.report-field-card {
  overflow: hidden;
}

.report-field-card summary {
  padding: 18px 20px;
  background: #fff;
}

.report-field-card[open] summary {
  background: #f3f8fd;
  border-bottom: 1px solid #d5e0e8;
}

.report-field-card summary > span:first-child {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
}

.report-field-card summary > span:first-child small {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #17345b;
  color: #fff;
  font-weight: 900;
}

.field-summary-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.field-summary-score i {
  width: 10px;
  height: 10px;
  border-right: 2px solid #52647c;
  border-bottom: 2px solid #52647c;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.report-field-card[open] .field-summary-score i {
  transform: rotate(225deg);
}

.report-field-content {
  padding: 0;
  gap: 0;
}

.report-item-card {
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid #dfe6ec;
}

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

.report-item-card .item-head {
  align-items: center;
  padding: 16px 18px;
  background: #fbfcfd;
}

.report-item-card .item-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #e5efff;
  color: #2458ca;
  font-size: 12px;
  font-weight: 900;
}

.report-item-card dl {
  gap: 0;
  margin: 0;
}

.report-item-card dl div {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid #e2e8ed;
}

.report-item-card dt,
.report-item-card dd {
  padding: 13px 16px;
}

.report-item-card dt {
  background: #f1f5f8;
  color: #344961;
  font-size: 13px;
}

.report-item-card dd {
  color: #26394f;
}

.report-item-card .advice-row dt,
.report-item-card .advice-row dd {
  background: #edf6ff;
}

.report-item-card .advice-row dt {
  color: #184fae;
}

.report-item-card .limit {
  padding: 0;
  border-radius: 0;
  background: #fff8e9;
}

.report-item-card .limit dt {
  background: #fff0c9;
  color: #7a5310;
}

.og-evidence {
  padding: 16px 18px 18px;
  border-top: 1px solid #dbe6f0;
  background: #f7fbff;
}

.og-evidence-label {
  margin: 0 0 9px;
  color: #184fae;
  font-size: 13px;
  font-weight: 900;
}

.og-evidence-card {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #cfdce8;
  border-radius: 7px;
  background: #fff;
}

.og-evidence-card small {
  overflow-wrap: anywhere;
  color: #52647c;
}

.og-evidence-card strong {
  font-size: 16px;
}

.og-evidence-card p {
  margin: 0;
  color: #52647c;
}

.og-evidence-card span {
  margin-top: 4px;
  color: #52647c;
  font-size: 12px;
  font-weight: 700;
}

.report-notes {
  box-shadow: none;
}

.print-only {
  display: none;
}

@media (max-width: 900px) {
  .report-overview {
    grid-template-columns: 1fr;
  }

  .overview-summary {
    border-right: 0;
    border-bottom: 1px solid #d7e2ea;
  }

  .report-priority-list li {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .report-priority-list li::before {
    grid-row: 1 / 4;
  }

  .priority-finding,
  .priority-advice {
    grid-column: 2;
    border-top: 1px solid #d9e2e9;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .result-report-hero {
    padding: 26px 0;
  }

  .report-titlebar {
    min-height: 0;
    padding: 18px;
  }

  .report-titlebar-badge {
    display: none;
  }

  .overview-summary,
  .radar-panel,
  .report-sheet {
    padding: 20px;
  }

  .report-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .report-score-panel {
    padding: 20px;
  }

  .report-priority-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .report-priority-list li::before {
    width: 34px;
    height: 34px;
    margin-left: 6px;
  }

  .priority-main,
  .priority-finding,
  .priority-advice {
    padding: 12px;
  }

  .report-table-wrap {
    border: 0;
    overflow: visible;
  }

  .category-table,
  .category-table tbody,
  .category-table tr,
  .category-table th,
  .category-table td {
    display: block;
  }

  .category-table thead {
    display: none;
  }

  .category-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #d9e2e9;
    border-radius: 8px;
    background: #fff;
  }

  .category-table th,
  .category-table td {
    padding: 5px 0;
    border: 0;
  }

  .score-bar {
    min-width: 0;
  }

  .report-field-card summary,
  .field-summary-score {
    align-items: flex-start;
  }

  .field-summary-score {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .report-item-card .item-head {
    align-items: flex-start;
  }

  .report-item-card dl div {
    grid-template-columns: 1fr;
  }

  .report-item-card dt,
  .report-item-card dd {
    padding: 10px 13px;
  }
}

@media print {
  .pdf-page-one,
  .pdf-page-two {
    break-after: page;
    page-break-after: always;
  }

  .result-report-hero {
    padding: 0;
    background: #fff;
  }

  .report-titlebar {
    min-height: 0;
    padding: 3mm 4mm;
    border: 1px solid #555;
    border-radius: 0;
    background: #fff;
    color: #111;
  }

  .report-titlebar h1 {
    font-size: 17pt;
  }

  .report-eyebrow,
  .report-section-heading > p,
  .report-titlebar-badge {
    color: #111;
  }

  .report-overview {
    grid-template-columns: 1.25fr 0.75fr;
    border: 1px solid #777;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .overview-summary,
  .radar-panel {
    padding: 3mm;
  }

  .report-meta-panel {
    margin-bottom: 3mm;
  }

  .report-meta div {
    padding: 1.8mm 3mm;
  }

  .report-score-panel {
    gap: 5mm;
    padding: 3mm;
  }

  .report-score-panel .score-circle {
    width: 25mm;
    height: 25mm;
  }

  .score-copy h2 {
    margin: 1mm 0;
    font-size: 16pt;
  }

  .score-copy p {
    line-height: 1.55;
  }

  .report-score-panel,
  .radar-panel,
  .priority-advice,
  .report-item-card .advice-row dt,
  .report-item-card .advice-row dd {
    background: #fff;
  }

  .score-radar {
    width: 58mm;
    margin-top: 0;
  }

  .report-sheet,
  .report-field-card {
    border: 1px solid #777;
    box-shadow: none;
  }

  .report-sheet {
    padding: 4mm;
    margin-bottom: 5mm;
  }

  .category-report {
    margin-top: 4mm;
    margin-bottom: 0;
    padding: 3mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .category-report .report-section-heading {
    display: flex;
    align-items: baseline;
    gap: 3mm;
    margin-bottom: 2mm;
  }

  .category-report .report-section-heading h2 {
    font-size: 14pt;
  }

  .category-report .report-table-wrap {
    margin-top: 0;
  }

  .category-report .result-table th,
  .category-report .result-table td {
    padding: 1.5mm 2.5mm;
  }

  .category-report .score-cell strong {
    font-size: 15pt;
  }

  .priority-report {
    min-height: 245mm;
    margin: 0;
    padding: 6mm;
    border-top: 1px solid #777;
  }

  .priority-report .report-priority-list {
    margin-top: 5mm;
  }

  .report-priority-list li {
    grid-template-columns: 11mm 38mm minmax(0, 1fr);
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-priority-list li::before {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0 0 0 1.5mm;
  }

  .report-priority-list .priority-main {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .report-priority-list .priority-finding,
  .report-priority-list .priority-advice {
    grid-column: 3;
    border-left: 1px solid #d9e2e9;
  }

  .report-priority-list .priority-finding {
    grid-row: 1;
  }

  .report-priority-list .priority-advice {
    grid-row: 2;
  }

  .result-table th,
  .result-table td,
  .priority-main,
  .priority-finding,
  .priority-advice {
    padding: 2.5mm;
  }

  .details-report {
    margin-top: 0;
  }

  .report-field-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-item-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42mm;
    gap: 8mm;
    align-items: center;
    min-height: 82mm;
    padding: 7mm;
    border: 1px solid #777;
    background: #fff;
    break-before: page;
    page-break-before: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-contact-copy h2 {
    margin: 1mm 0 2mm;
    font-family: var(--heading);
    font-size: 19pt;
  }

  .report-contact-copy > p:not(.report-eyebrow) {
    margin: 0;
    color: #26394f;
  }

  .report-contact-links {
    display: grid;
    gap: 2mm;
    margin: 5mm 0 0;
  }

  .report-contact-links div {
    display: grid;
    grid-template-columns: 27mm minmax(0, 1fr);
    gap: 3mm;
  }

  .report-contact-links dt {
    font-weight: 900;
  }

  .report-contact-links dd {
    margin: 0;
    overflow-wrap: anywhere;
  }

  .report-contact-links a {
    color: #174fae;
    text-decoration: underline;
  }

  .report-contact-qr {
    display: grid;
    justify-items: center;
    gap: 2mm;
  }

  .report-contact-qr img {
    display: block;
    width: 38mm;
    height: 38mm;
  }

  .report-contact-qr span {
    color: #52647c;
    font-size: 7.5pt;
    text-align: center;
  }

  .report-notes {
    margin-top: 3mm;
  }

  .og-evidence {
    padding: 2.5mm 3mm 3mm;
  }

  .og-evidence-label {
    margin-bottom: 1.5mm;
  }

  .og-evidence-card {
    padding: 2.5mm 3mm;
  }

  .report-notes {
    padding: 3mm;
    margin-bottom: 0;
  }

  .report-notes h2 {
    margin: 0;
    font-size: 14pt;
  }

  .report-notes li {
    margin: 1mm 0;
  }

  .print-footer {
    margin-top: 3mm;
    padding-top: 2mm;
    font-size: 7pt;
  }
}
