.diag-hero { background: var(--deep); color: #fff; padding-block: clamp(36px,7vw,90px) clamp(58px,8vw,106px); }
.diag-hero .eyebrow { color: var(--accent); }
.diag-hero h1 { max-width: 20ch; margin-block: .3em; font-size: clamp(2.4rem,6vw,5.4rem); line-height: .98; }
.diag-hero p:last-child { color: #d9eaff; }
.diag-panel { position: relative; width: min(calc(100% - 32px),760px); background: #fff; border: 1px solid var(--line); border-radius: 20px; margin: -26px auto 52px; padding: clamp(20px,5vw,44px); }
.diag-panel fieldset { border: 0; padding: 0; min-width: 0; margin: 18px 0; }
.diag-panel legend { font: 700 clamp(1.4rem,4vw,2rem)/1.16 var(--display); padding: 0; margin-bottom: 16px; }
.diag-panel progress { width: 100%; accent-color: #2375b8; }
.diag-choice { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 12px; margin-top: 8px; border: 1px solid #6c7893; border-radius: 10px; cursor: pointer; }
.diag-choice:has(input:checked) { background: #e8f4ff; border-color: #2375b8; }
.diag-choice input { margin: 0; flex: none; accent-color: #2375b8; }
.diag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.diag-panel h2 { font-size: clamp(2.1rem,6vw,4.2rem); margin-block: 8px; }
.diag-panel #result-copy { font-weight: 700; margin-bottom: 8px; }
.diag-panel ol { padding-inline-start: 1.4rem; }
.diag-panel li { margin-block: 14px; }
.diag-audit { padding: 18px; border-radius: 14px; background: #e8f4ff; }
.diag-audit p { margin-top: 8px; }
@media(max-width:460px) { .diag-actions .pill { width: 100%; } }

/* The public homepage uses a different footer layout. Scope these styles to the diagnostic. */
.diagnostic-page [hidden] { display: none !important; }
.diagnostic-page .site-footer { display: block; background: var(--deep); color: #fff; padding: 40px 0 20px; }
.diagnostic-page .site-footer .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.diagnostic-page .site-footer .footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.diagnostic-page .site-footer h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 5px; }
.diagnostic-page .site-footer a { overflow-wrap: anywhere; padding-block: 5px; }
.diagnostic-page .site-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; padding-top: 14px; margin-top: 20px; border-top: 1px solid #7cc4ff50; }
@media (max-width: 680px) {
  .diagnostic-page .site-footer .footer-grid { grid-template-columns: 1fr; }
  .diagnostic-page .site-footer a { padding-block: 8px; }
}
