/* Website scanner, on top of /_shared/tool.css. */
.summary { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.summary h2 { margin: 0; }
.summary h2::before { content: none; }
.summary p { margin: 4px 0 0; }
.grade { font-size: 3rem; font-weight: 700; width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border: 2px solid currentColor; }
.g-A { color: var(--sev-ok); } .g-B { color: #9be15d; } .g-C { color: var(--sev-medium); } .g-D { color: var(--sev-high); } .g-F { color: var(--sev-critical); }
.sum-actions { display: flex; flex-direction: column; gap: 6px; }

.findings { list-style: none; margin: 0; padding: 0; }
.findings li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.findings li:last-child { border-bottom: 0; }
.findings .badge { min-width: 4.6em; text-align: center; }
.f-good b { color: var(--fg-dim); font-weight: 400; }

.panel h3 { margin-top: 0; }
.panel h4 { margin: 10px 0 4px; color: var(--fg); font-size: .9em; }
.prov { border-top: 1px dashed var(--border); padding-top: 4px; }
.prov p { margin: 2px 0; }
.cert { border-top: 1px dashed var(--border); padding: 6px 0; }
code.rec { display: block; white-space: pre-wrap; word-break: break-all; font-size: .85em; }
.kv dd code { word-break: break-all; }
.kv pre.code { max-height: 220px; }
tr.takeover td { background: rgba(255, 59, 92, .08); }

@media (max-width: 700px) {
  .summary { grid-template-columns: auto 1fr; }
  .sum-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

/* Result panels: at most two per row, so tables and long records stay readable. */
#out .grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
#out table.data td:first-child { white-space: nowrap; }
#out .kv { grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); }
#out .kv dd code { white-space: pre-wrap; word-break: break-word; }
#out table.data td:nth-child(2) { white-space: nowrap; }
