:root {
  --blue: #1652f0;
  --blue-dark: #0b3cc1;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --radius: 10px;
  --focus: 3px solid #f59e0b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }
main:focus { outline: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-soft); padding: .05em .3em; border-radius: 4px; }
.break { word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-mark { color: var(--blue); }
.site-header nav ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.site-header nav a:hover { color: var(--blue); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: .9rem; }
.footer-links { list-style: none; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero + tool: the tool is the first thing on screen */
.hero { background: linear-gradient(180deg, #eef3ff 0%, #fff 100%); padding: 20px 0 24px; }
.hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin: 0 0 4px; line-height: 1.2; }
.lede { font-size: 1.05rem; color: var(--muted); margin: 0 0 14px; }
.check-form { background: #fff; border: 1px solid #c7d4fb; border-radius: var(--radius); padding: 16px; box-shadow: 0 6px 24px rgba(22, 82, 240, .08); }
.check-form.compact { box-shadow: none; }
.check-label { display: block; font-weight: 600; margin-bottom: 6px; }
.check-row { display: flex; gap: 8px; }
.check-row input { flex: 1; min-width: 0; font-size: 1.1rem; padding: 12px 14px; border: 2px solid #9aa9c7; border-radius: 8px; }
.check-row input:focus { border-color: var(--blue); outline: var(--focus); outline-offset: 1px; }
.check-row input[aria-invalid="true"] { border-color: #b42318; }
button { font: inherit; font-weight: 600; font-size: 1.05rem; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; cursor: pointer; }
button:hover { background: var(--blue-dark); }
button[aria-busy="true"] { opacity: .75; cursor: progress; }
button.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); padding: 8px 14px; font-size: .95rem; }
.hint { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.error { margin: 8px 0 0; color: #b42318; font-weight: 600; }
@media (max-width: 560px) { .check-row { flex-direction: column; } button { width: 100%; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.recent-list a { font-weight: 600; }
.ticks { padding-left: 1.2em; }
.ticks li { margin-bottom: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Badges: icon + text, never color alone */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .85rem; border: 1px solid currentColor; }
.badge-lg { font-size: 1.15rem; padding: 6px 16px; }
.badge-icon { font-weight: 900; }
.badge-up { background: #e7f6ec; color: #0b6b2e; }
.badge-reachable_restricted { background: #fff6d6; color: #6b4e00; }
.badge-degraded { background: #fff0e0; color: #8a3f00; }
.badge-down { background: #fde8e8; color: #a11a1a; }
.badge-inconclusive { background: #eef0f4; color: #374151; }

/* Result page */
.result-head { padding: 20px 0 8px; }
.result-head h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.result-head h1:focus { outline: none; }
.verdict { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.verdict-text { margin: 0; font-size: 1.1rem; font-weight: 500; }
.inline-form { margin-top: 8px; }
.callout { border-left: 4px solid #b58100; background: #fffaf0; padding: 10px 14px; border-radius: 6px; }
.callout-info { border-left-color: var(--blue); background: #f1f5ff; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: .95rem; }
caption { text-align: left; font-weight: 600; padding: 4px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); }
.kv th { width: 120px; }
th .small { font-weight: 400; }
.sev { white-space: nowrap; font-weight: 700; }
.sev-good { color: #0b6b2e; }
.sev-info { color: #374151; }
.sev-warning { color: #8a3f00; }
.machine code { word-break: break-all; }
.machine { background: var(--bg-soft); border-radius: var(--radius); padding: 4px 16px 8px; margin-top: 16px; }
.check-another { margin-top: 32px; }
.prose h2 { margin-top: 1.6em; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; }
pre code { background: none; color: inherit; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
