/* Shared styling for the guide pages. The scanner itself (index.html)
   keeps its styles inline so the tool works as a single file. */
:root {
  --bg: #0b0e14; --panel: #12161f; --panel2: #171c27; --border: #232a38;
  --text: #e6e9f0; --muted: #8b94a7; --accent: #5eead4; --accent2: #a78bfa;
  --critical: #f87171; --high: #fb923c;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header { padding: 18px 0; border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.byline { color: var(--muted); font-size: 13px; }
article { padding: 48px 0 0; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.standfirst { color: var(--muted); font-size: 19px; margin-top: 16px; }
h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 28px 0 8px; }
p { margin: 14px 0; }
ul, ol { margin: 14px 0; padding-left: 22px; }
li { margin: 8px 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel2); padding: 2px 6px; border-radius: 4px; }
pre { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px;
      font-family: var(--mono); font-size: 14px; overflow-x: auto; margin: 16px 0; }
pre code { background: none; padding: 0; }
blockquote { border-left: 3px solid var(--accent2); margin: 18px 0; padding: 4px 0 4px 16px; color: var(--muted); }
.callout { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--high);
           border-radius: 10px; padding: 16px 18px; margin: 22px 0; }
.callout.bad { border-left-color: var(--critical); }
.callout.good { border-left-color: var(--accent); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.cta { background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
       padding: 24px; margin: 44px 0 0; text-align: center; }
.cta h2 { margin-top: 0; }
.btn { display: inline-block; font: 600 15px/1 inherit; color: var(--bg); background: var(--accent);
       border-radius: 8px; padding: 14px 22px; text-decoration: none; margin-top: 8px; }
.related { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: 18px; }
footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--border);
         color: var(--muted); font-size: 14px; }
/* Emergency page: the fix goes above the explanation, because the reader
   is mid-panic and may only read the first screen. */
.emergency { background: #1d1216; border: 1px solid var(--critical); border-radius: 12px;
             padding: 22px 24px; margin: 28px 0; }
.emergency h2 { margin-top: 0; font-size: 21px; color: var(--critical); }
.emergency ol { margin-bottom: 0; }
.emergency li { margin: 10px 0; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 42px; margin: 26px 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; background: var(--panel2);
  border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center;
  font: 700 14px/1 var(--mono); }
.steps > li > strong:first-child { display: block; font-size: 17px; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 4px; color: var(--accent); }
