/* headers.css – styles for the HTTP Headers Checker (shares verdict/finding styles with email.css) */

.muted { color: var(--muted); font-size: .85em; font-weight: 400; }

/* Redirect chain */
.hops { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.hop { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #0b1220; border: 1px solid var(--border); position: relative; }
.hop:first-child { border-radius: 10px 10px 0 0; }
.hop:last-child { border-radius: 0 0 10px 10px; }
.hop:only-child { border-radius: 10px; }
.hop + .hop { border-top: 0; }
.hop + .hop::before { content: "↓"; position: absolute; left: 33px; top: -9px; font-size: .8rem; color: var(--muted); background: #0b1220; line-height: 1; padding: 0 2px; }
.hop-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hop-url { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; overflow-wrap: anywhere; color: var(--text); }
.hop-meta { font-size: .78rem; color: var(--muted); }

.code { flex-shrink: 0; min-width: 46px; text-align: center; font-weight: 700; font-family: ui-monospace, Consolas, monospace; padding: 4px 8px; border-radius: 6px; font-size: .9rem; }
.code-ok    { background: rgba(34,197,94,.15);  color: #86efac; }
.code-redir { background: rgba(56,189,248,.15); color: var(--accent); }
.code-err   { background: rgba(239,68,68,.15);  color: #fca5a5; }

/* Grade */
.grade-row { display: flex; gap: 20px; align-items: flex-start; }
.grade {
  flex-shrink: 0; width: 110px; height: 110px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--st); background: var(--st-bg);
}
.grade-pass { --st: #22c55e; --st-bg: rgba(34,197,94,.12); --st-txt: #86efac; }
.grade-warn { --st: #f59e0b; --st-bg: rgba(245,158,11,.12); --st-txt: #fcd34d; }
.grade-fail { --st: #ef4444; --st-bg: rgba(239,68,68,.12); --st-txt: #fca5a5; }
.grade strong { font-size: 2.6rem; line-height: 1; color: var(--st-txt); }
.grade span { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.sec-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sec-list li { position: relative; padding-left: 24px; font-size: .88rem; color: #cbd5e1; line-height: 1.5; }
.sec-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.sec-list .f-pass::before { content: "✓"; color: #22c55e; }
.sec-list .f-warn::before { content: "!"; color: #f59e0b; left: 4px; }
.sec-list .f-fail::before { content: "✗"; color: #ef4444; }
.sec-list code { display: inline; margin: 0 4px 0 0; padding: 1px 6px; font-size: .8rem; }

/* Header tables */
.hdr-table th[scope="row"] {
  width: 30%; background: transparent; text-transform: none; letter-spacing: 0; font-weight: 500;
  font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--border);
}
.hdr-table td { font-size: .82rem; color: var(--text); }

.earlier { margin-top: 18px; }
.earlier h3 { font-size: .85rem; color: var(--muted); font-weight: 500; margin: 16px 0 8px; overflow-wrap: anywhere; }

/* Glossary in the explainer */
dl.glossary { grid-template-columns: 110px 1fr; gap: 10px 20px; font-size: 1rem; margin-top: 12px; }
dl.glossary dt { color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
dl.glossary dd { font-family: inherit; color: #cbd5e1; }
.explainer ul { padding-left: 20px; }
.explainer li { margin-bottom: 8px; }

@media (max-width: 600px) {
  .grade-row { flex-direction: column; }
  .grade { width: 100%; height: auto; padding: 14px; flex-direction: row; gap: 12px; }
  .grade strong { font-size: 2rem; }
  .hdr-table th[scope="row"] { width: 38%; }
  .hop + .hop::before { left: 30px; }
  dl.glossary { grid-template-columns: 1fr; gap: 2px; }
  dl.glossary dd { margin-bottom: 10px; }
}
