/* Website Health Check. Builds on site.css tokens; loaded only by the tool pages. */
.hc-form { display: grid; gap: 14px; }
.hc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.hc-row .field { flex: 1 1 280px; }
.hc-help { margin: 6px 0 0; }
.hc-note { background: var(--accent-soft); border-left: 6px solid var(--accent-d); padding: 12px 16px; border-radius: var(--r-s); margin: 16px 0 0; }
.hc-explain { margin-top: 28px; }
.hc-explain details { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--white); margin: 10px 0; }
.hc-explain summary, .hc-more summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.hc-explain details > :not(summary) { padding: 0 16px 14px; margin: 0; }
.hc-explain ul { padding-left: 38px; margin: 0; }

/* progress */
.hc-progress { margin-top: 28px; }
.hc-bar { height: 12px; background: var(--wash); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.hc-bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1F62DD, #22D3EE); transition: width .4s ease; }
.hc-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.hc-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.hc-steps .mark { font-weight: 800; text-align: center; }
.hc-steps small { display: block; color: var(--ink-2); }
.hc-steps .st-RUNNING .mark { animation: hcPulse 1s infinite; }
@keyframes hcPulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hc-steps .st-RUNNING .mark { animation: none; } .hc-bar > span { transition: none; } }

/* report */
.hc-report { margin-top: 28px; }
.hc-report:focus { outline: none; }
.hc-top { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 24px; align-items: center; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 14px 50px rgba(20, 70, 180, .10); }
.hc-score { text-align: center; }
.hc-score .num { font: 800 4rem/1 var(--display); color: var(--ink); }
.hc-score .num small { font-size: 1.4rem; color: var(--ink-2); }
.hc-score .band { display: inline-block; margin-top: 8px; padding: 4px 14px; border-radius: 99px; font-weight: 800; border: 2px solid var(--ink); background: var(--wash); }
.hc-score .na { font: 700 1.6rem var(--display); color: var(--ink-2); }
.hc-meta { color: var(--ink-2); font-size: .95rem; }
.hc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.hc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 22px 0; padding: 0; list-style: none; }
.hc-cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; }
.hc-cat h3 { font-size: 1rem; margin: 0 0 4px; }
.hc-cat .val { font: 800 1.7rem var(--display); }
.hc-cat .val.na { font-size: 1.1rem; color: var(--ink-2); }
.hc-cat p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }
.hc-meter { height: 8px; background: var(--wash); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.hc-meter > span { display: block; height: 100%; background: var(--blue); }

.hc-lh { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.hc-lh section { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; }
.hc-lh h3 { margin: 0 0 8px; }
.hc-lh dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.hc-lh dt { color: var(--ink-2); }
.hc-lh dd { margin: 0; font-weight: 800; text-align: right; }

.hc-group h2 { margin-top: 34px; }
.hc-find { background: var(--white); border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--r-s); margin: 12px 0; padding: 14px 16px; }
.hc-find.sev-CRITICAL { border-left-color: #8B0000; }
.hc-find.sev-HIGH { border-left-color: var(--err); }
.hc-find.sev-MEDIUM { border-left-color: #C77700; }
.hc-find.sev-LOW { border-left-color: var(--blue); }
.hc-find.sev-INFO { border-left-color: var(--ink-2); }
.hc-find.sev-PASSED { border-left-color: var(--ok); }
.hc-find h3 { font-size: 1.08rem; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hc-badge { display: inline-flex; gap: 6px; align-items: center; font: 800 .8rem var(--body); padding: 2px 10px; border-radius: 99px; border: 2px solid currentColor; text-transform: uppercase; letter-spacing: .03em; }
.sev-CRITICAL .hc-badge { color: #8B0000; } .sev-HIGH .hc-badge { color: var(--err); } .sev-MEDIUM .hc-badge { color: #8A5200; }
.sev-LOW .hc-badge { color: var(--blue-d); } .sev-INFO .hc-badge { color: var(--ink-2); } .sev-PASSED .hc-badge { color: var(--ok); }
.hc-find dl { margin: 8px 0 0; }
.hc-find dt { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-top: 8px; }
.hc-find dd { margin: 2px 0 0; white-space: pre-line; }
.hc-src { font-size: .85rem; color: var(--ink-2); margin: 8px 0 0; }
.hc-pick { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-weight: 700; }
.hc-pick input { width: 22px; height: 22px; }
.hc-passed li { margin: 4px 0; }
.hc-table { width: 100%; border-collapse: collapse; }
.hc-table th, .hc-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.hc-wrap-x { overflow-x: auto; }
.hc-limits { background: var(--wash); border-radius: var(--r-s); padding: 14px 16px 14px 36px; }
.hc-cta { margin-top: 34px; }
.hc-suggest { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; }
.hc-suggest li { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-s); padding: 14px 16px; }
.hc-suggest a { font-weight: 800; }
.hc-lead fieldset { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; }
.hc-lead legend { font-weight: 800; padding: 0 6px; }
.hc-lead .opts label { display: flex; gap: 10px; align-items: start; margin: 6px 0; }
.hc-lead .opts input { margin-top: 4px; width: 20px; height: 20px; }
.hc-lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; }

@media (max-width: 720px) { .hc-top { grid-template-columns: 1fr; } .hc-score .num { font-size: 3.2rem; } .hc-lh { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, header, footer, .skip-link, .fab, .hc-toolbar, .hc-lead, .hc-cta .btn, .hc-form, .hc-noprint, .nav-toggle, .promo { display: none !important; }
  .hc-find, .hc-cat { break-inside: avoid; }
  details > * { display: block !important; }
  body { background: #fff; }
}

.hc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
