/* email.css – styles for the Email DNS Checker only */

.field-narrow { flex: 0 1 200px !important; }
.opt { color: var(--muted); font-weight: 400; font-size: .8em; }
.hint { margin: 16px 0 0; font-size: .85rem; color: var(--muted); text-align: left; }
.hint a, .related a { color: var(--accent); text-decoration: none; }
.hint a:hover, .related a:hover { text-decoration: underline; }

/* Colours per status */
.verdict-pass, .score-pass, .pill-pass { --st: #22c55e; --st-bg: rgba(34,197,94,.12); --st-txt: #86efac; }
.verdict-warn, .score-warn, .pill-warn { --st: #f59e0b; --st-bg: rgba(245,158,11,.12); --st-txt: #fcd34d; }
.verdict-fail, .score-fail, .pill-fail { --st: #ef4444; --st-bg: rgba(239,68,68,.12); --st-txt: #fca5a5; }
.verdict-info, .score-info, .pill-info { --st: #38bdf8; --st-bg: rgba(56,189,248,.12); --st-txt: #bae6fd; }

/* Overall verdict */
.verdict {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px; border-radius: 12px;
  background: var(--st-bg); border: 1px solid var(--st);
}
.verdict-title { font-size: 1.25rem; font-weight: 700; color: var(--st-txt); }
.verdict-text { color: #cbd5e1; font-size: .95rem; }

/* MX / SPF / DKIM / DMARC tiles */
.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 8px; }
.score {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border-radius: 10px; text-decoration: none;
  background: var(--st-bg); border: 1px solid var(--border);
}
.score span { font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
.score strong { color: var(--st-txt); font-size: 1rem; }
.score:hover { border-color: var(--st); }

/* Each check */
.check {
  margin-top: 18px; padding: 16px 18px; border-radius: 12px;
  background: #0b1220; border: 1px solid var(--border); border-left: 4px solid var(--border);
}
.check-pass { border-left-color: #22c55e; }
.check-warn { border-left-color: #f59e0b; }
.check-fail { border-left-color: #ef4444; }
.check-info { border-left-color: #38bdf8; }
.check header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.check h2 { margin: 0; font-size: 1rem; color: var(--text); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--st-bg); color: var(--st-txt); white-space: nowrap; }

.records { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.record { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.record code { margin: 0; flex: 1 1 300px; overflow-wrap: anywhere; white-space: normal; background: #111a2e; }
.rec-label { font-size: .75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.rec-note { font-size: .75rem; color: var(--muted); }

.findings { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.findings li { position: relative; padding-left: 24px; font-size: .9rem; color: #cbd5e1; line-height: 1.5; }
.findings li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.findings .f-pass::before { content: "✓"; color: #22c55e; }
.findings .f-warn::before { content: "!"; color: #f59e0b; left: 4px; }
.findings .f-fail::before { content: "✗"; color: #ef4444; }
.findings .f-info::before { content: "i"; color: #38bdf8; left: 4px; font-style: italic; font-family: Georgia, serif; }

.includes { margin-top: 12px; }
.includes ul { list-style: none; padding: 0; margin: 8px 0 0; }
.includes li { margin: 4px 0; }
.includes code { display: inline; margin: 0; padding: 2px 6px; }

.related { margin: 20px 0 0; font-size: .85rem; color: var(--muted); }

@media (max-width: 600px) {
  .field-narrow { flex: 1 1 100% !important; }
  .score-row { grid-template-columns: repeat(2, 1fr); }
  .check { padding: 14px; }
}
