/* ssl.css – styles for the SSL Certificate Checker (shares status colours with email.css) */

.expiry { display: flex; align-items: center; gap: 20px; margin: 18px 0 6px; }
.expiry-days {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 120px; padding: 14px 10px; border-radius: 12px; background: #0b1220; border: 1px solid var(--border);
}
.expiry-days strong { font-size: 2rem; line-height: 1; }
.expiry-days span { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.expiry-pass strong { color: #86efac; }
.expiry-warn strong { color: #fcd34d; }
.expiry-fail strong { color: #fca5a5; font-size: 1.4rem; }

.expiry-bar { flex: 1; }
.bar { height: 10px; border-radius: 999px; background: #0b1220; border: 1px solid var(--border); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #f59e0b 85%, #ef4444); }
.bar-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }

.kv-table th[scope="row"] {
  width: 30%; background: transparent; text-transform: none; letter-spacing: 0;
  font-size: .9rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--border);
}
.kv-table td { color: var(--text); }
.kv-table td.small { font-size: .78rem; }
.muted { color: var(--muted); font-size: .85em; }

.sans { display: flex; flex-wrap: wrap; gap: 6px; }
.san { font-size: .8rem; padding: 2px 8px; border-radius: 6px; background: #111a2e; border: 1px solid var(--border); }
.san-match { border-color: #22c55e; color: #86efac; }

.chain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: c; }
.chain li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 10px; background: #0b1220; border: 1px solid var(--border);
  position: relative; margin-left: 0;
}
.chain li + li { margin-left: 18px; }
.chain li + li::before { content: "↳"; position: absolute; left: -18px; top: 12px; color: var(--muted); }
.chain-role { font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 600px) {
  .expiry { flex-direction: column; align-items: stretch; }
  .kv-table th[scope="row"] { width: 38%; font-size: .8rem; }
  .chain li + li { margin-left: 10px; }
  .chain li + li::before { left: -12px; }
}
