/* /domain/<host>/ reports: shared header looks exactly like on every other page, and the
   "Evidence score" caption stays inside the assessment card (Phase 1.4).
   Loaded only by the report template; the pd-quality layer is where the overridden rules live. */
@layer pd-quality {
  html#pd-report-document body#pd-report-page .pd-domain-hero__status--verdict {
    padding-bottom: 28px !important;
    overflow: visible !important;
  }
  html#pd-report-document body#pd-report-page .pd-domain-hero__status--verdict .pd-risk-ring {
    margin-bottom: 0 !important;
  }
  html#pd-report-document body#pd-report-page .pd-domain-hero__status--verdict .pd-risk-label {
    top: calc(100% + 6px) !important;
    left: auto !important;
    right: 0 !important;
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    text-align: right !important;
    transform: none !important;
  }
}
/* domain-page-bundle gives every <img> a faint plate and domain-report-october forces 14px on all
   elements; neither should reach the shared header */
html#pd-report-document body#pd-report-page #pd-header .pd-header-logo img { background-color: transparent !important; }
html#pd-report-document body#pd-report-page #pd-header .pd-menu-toggle { font-size: 0 !important; }
/* long localized verdicts ("Критический") must not run under the score ring on phones */
@layer pd-quality {
  html#pd-report-document body#pd-report-page .pd-domain-hero__status--verdict .pd-domain-hero__status-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
}
/* phones: the two status cards stack, so the verdict and the ring each get a full row */
@media (max-width: 479px) {
  @layer pd-quality {
    html#pd-report-document body#pd-report-page .pd-domain-hero__status-grid {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }
}
