:root {
  --bg: #f6f7f9;
  --card: #fff;
  --ink: #1a1d23;
  --muted: #5c6570;
  --line: #e3e6eb;
  --brand: #0E4A56;
  --brand-ink: #0A3A44;
  --pass: #0a7a3e;
  --pass-bg: #e8f7ee;
  --warn: #9a6b00;
  --warn-bg: #fff6e0;
  --fail: #b42318;
  --fail-bg: #fdeceb;
  --skip: #5c6570;
  --skip-bg: #eef0f3;
  --radius: 12px;
  --max: 720px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 1rem; overflow-x: hidden;
}
a { color: var(--brand-ink); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.1rem 3rem; }
.site-header {
  background: var(--card); border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; padding-top: .9rem; padding-bottom: .9rem;
}
.logo {
  font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none;
}
.logo span { color: var(--brand); }
.logo img {
  display: block; height: 36px; width: auto; max-width: min(204px, 70vw);
}
.turnstile-host {
  margin-top: .75rem; max-width: 100%; overflow: hidden;
}
.turnstile-host iframe { max-width: 100%; }
.breadcrumbs { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .35rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.scan-form .row { flex-wrap: wrap; }
.scan-form input { min-width: 0; flex: 1 1 12rem; max-width: 100%; }

nav { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.4rem 0 .75rem; }
h2 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.lede { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; margin: 1rem 0;
}
.scan-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.scan-form .row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.scan-form .row input {
  flex: 1 1 12rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.scan-form .row button {
  flex: 0 1 auto;
  white-space: nowrap;
}
@media (max-width: 360px) {
  .scan-form .row { flex-direction: column; }
  .scan-form .row button { width: 100%; }
}
.cf-turnstile { margin: .75rem 0 .25rem; }
.scan-form input[type=text] {
  flex: 1 1 220px; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem;
}
.scan-form button {
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: .7rem 1.1rem; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.scan-form button:hover { background: var(--brand-ink); }
.scan-form button:disabled { opacity: .65; cursor: wait; }
.hint { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }
.cards { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards article h3 { margin: 0 0 .35rem; font-size: 1rem; }
.cards article p { margin: 0; color: var(--muted); font-size: .92rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  position: relative; padding: .55rem 0 .55rem 2.2rem; border-bottom: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .55rem;
  width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--brand);
  color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center;
}
.callout {
  border-left: 4px solid var(--brand); background: #eef4ff; padding: .9rem 1rem; border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}
.site-footer {
  border-top: 1px solid var(--line); background: var(--card); margin-top: 2rem;
  font-size: .88rem; color: var(--muted);
}
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.site-footer p { margin: 0 0 .5rem; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .2rem .5rem; border-radius: 999px; text-transform: uppercase;
}
.badge.pass { background: var(--pass-bg); color: var(--pass); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.fail { background: var(--fail-bg); color: var(--fail); }
.badge.skip { background: var(--skip-bg); color: var(--skip); }
.result {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 1rem; margin: .75rem 0;
}
.result h3 { margin: 0 0 .4rem; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.result .summary { margin: .35rem 0; }
.result .fix { margin: .5rem 0 0; font-size: .92rem; color: var(--muted); }
.score {
  font-size: 1.6rem; font-weight: 700; margin: .5rem 0;
}
.stub-note {
  background: var(--warn-bg); border: 1px solid #f0d78c; padding: .75rem 1rem; border-radius: 8px;
  font-size: .92rem;
}
.muted { color: var(--muted); }
.err { color: var(--fail); background: var(--fail-bg); padding: .75rem 1rem; border-radius: 8px; }
