/* /check: the free passive check. Only the report, card and panel styles live here; everything else is site.css. */

/* ---------- Hero form ---------- */
.check-form { max-width: 760px; gap: 20px; }
.check-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 22px; align-items: end; }
.check-url-row .btn { justify-self: start; }
.check-form input[type="url"] { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.dark .check-form .consent input { accent-color: var(--paper); }
.check-trust { max-width: 68ch; }
.check-trust li { font-size: .98rem; }

/* ---------- Results ---------- */
.check-results { padding-block: clamp(64px, 9vw, 140px); scroll-margin-top: 72px; }
.check-report { display: grid; gap: clamp(40px, 5vw, 64px); max-width: 960px; }
.check-summary { display: grid; gap: 14px; justify-items: start; }
.check-host { font-size: clamp(2rem, 5vw, 4rem); overflow-wrap: anywhere; text-transform: none; }
.check-host:focus { outline: none; }
.check-counts { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.1 var(--display); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.check-meta { font: 500 .7rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-ink); }
.dark .check-meta { color: var(--muted); }
.check-tools { margin-top: 6px; }

.check-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.check-stack li { padding: 7px 12px; border: 1px solid var(--hair-ink-2); font: 500 .74rem/1 var(--mono); letter-spacing: .06em; }
.dark .check-stack li { border-color: var(--hair-2); }

/* Groups and cards */
.check-group { display: grid; gap: 18px; }
.check-group-h { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.check-cards { border-top: 1px solid var(--hair-ink-2); }
.dark .check-cards { border-color: var(--hair-2); }
.check-card { display: grid; gap: 10px; padding: 20px 0 22px 18px; border-bottom: 1px solid var(--hair-ink); border-left: 3px solid transparent; }
.dark .check-card { border-bottom-color: var(--hair); }
.check-card.check-fix { border-left-color: var(--high-text); }
.check-card.check-note { border-left-color: var(--hair-ink-2); }
.dark .check-card.check-note { border-left-color: var(--hair-2); }
.check-card-top { display: flex; justify-content: space-between; align-items: start; gap: 8px 20px; flex-wrap: wrap; }
.check-card-title { font-family: var(--body); text-transform: none; font-weight: 600; font-size: 1.08rem; line-height: 1.35; letter-spacing: 0; flex: 1 1 260px; }
.check-saw { display: grid; gap: 4px; }
.check-saw-text { font: 400 .86rem/1.5 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.dark .check-saw-text { color: #c7c7ca; }
.check-k { font: 500 .66rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); }
.dark .check-k { color: var(--muted); }
.check-why, .check-fix { font-size: .98rem; color: var(--ink-2); max-width: 70ch; }
.dark .check-why, .dark .check-fix { color: var(--muted); }
.check-fix strong { font-weight: 600; color: var(--ink); }
.dark .check-fix strong { color: var(--paper); }
.check-card.check-pass .check-why { display: none; } /* a pass needs only what we saw */

/* Config snippets and copy buttons */
.check-code { display: grid; }
.check-code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; background: var(--ink-2); color: var(--paper); }
.dark .check-code-bar { background: var(--field); }
.check-code-file { font: 500 .72rem/1.3 var(--mono); letter-spacing: .06em; overflow-wrap: anywhere; }
.btn.check-copy { padding: 10px 14px; font-size: .7rem; }
.check-code-bar .btn.check-copy { --fg: var(--paper); color: var(--paper); }
.check-copy-fallback { min-height: 80px; font: 400 .85rem/1.5 var(--mono); margin-top: 8px; }

/* Severity CTA */
.check-cta { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--hair-ink-2); justify-items: start; }
.dark .check-cta { border-color: var(--hair-2); }
.check-cta-text { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; }
.dark .check-cta-text { color: var(--muted); }
.check-cta .btn { white-space: normal; text-align: left; line-height: 1.35; }

/* Fix panel (email claim + DNS / file proof) */
.check-fixpanel { display: grid; gap: 18px; padding: clamp(24px, 4vw, 44px); background: var(--paper-2); border: 1px solid var(--hair-ink-2); }
.dark .check-fixpanel { background: var(--panel); border-color: var(--hair-2); }
.check-fixpanel-h { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; max-width: 28ch; }
.check-muted { color: var(--muted-ink); }
.dark .check-muted { color: var(--muted); }
.check-claim { max-width: 560px; gap: 18px; }
.check-proof { border-top: 1px solid var(--hair-ink-2); padding-top: 4px; }
.dark .check-proof { border-color: var(--hair-2); }
.check-proof summary { cursor: pointer; padding: 16px 0; font: 600 1rem/1.4 var(--body); }
.check-proof-body { display: grid; gap: 16px; padding-bottom: 8px; }
.check-proof-result { display: grid; gap: 14px; justify-items: start; }
.check-proof-result .check-code { justify-self: stretch; }
.check-ts:empty { display: none; }

/* What this check can't see */
.check-blind { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); background: var(--ink); color: var(--paper); }
.dark .check-blind { background: var(--paper); color: var(--ink); }
.check-blind-h { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.check-blind .crosses li, .check-blind .crosses li::before { color: #c7c7ca; }
.dark .check-blind .crosses li, .dark .check-blind .crosses li::before { color: var(--ink-2); }

/* Entity line at the foot of /check */
.check-entity { font: 500 .74rem/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }
.light .check-entity { color: var(--muted-ink); }
.check-entity a { text-underline-offset: 3px; }

@media (max-width: 640px) {
  .check-url-row { grid-template-columns: 1fr; }
  .check-card { padding-left: 14px; }
  .check-code-bar { padding-left: 12px; }
  .check-cta .btn, .check-url-row .btn { width: 100%; justify-content: center; text-align: center; }
}
