/* Patchbrief: hand-written, no framework. The layout and most rules come from the website of overpass.ch;
   the colours are teal. No inline styles anywhere (CSP), so every class used in the templates is here. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f8;
  --bg-card: #ffffff;
  --text: #0f1b24;
  --muted: #56636e;
  --border: #e1e6ea;
  --accent: #0f766e;      /* teal 700: 5.4:1 on white, for links and button text */
  --link: #0f766e;        /* 5.4:1 on white, 3.2:1 against the text colour */
  --accent-hover: #115e59;
  --accent-soft: #dff5f1;
  --on-accent: #ffffff;
  --danger: #b91c1c;
  --danger-soft: #fdecea;
  --ok: #15803d;
  --ok-soft: #e8f6ee;
  --warn: #b45309;
  --warn-soft: #fdf3e2;
  --info-soft: #e9f3f6;
  --sev-critical: #9f1239;
  --sev-high: #c2410c;
  --sev-medium: #a16207;
  --sev-low: #0e7490;
  --sev-info: #56636e;
  --code-bg: #0f1b24;
  --code-text: #e2e8f0;
  --shadow: 0 1px 2px rgb(15 27 36 / 6%), 0 4px 16px rgb(15 27 36 / 6%);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
/* dark theme: chosen with the switch in the header (static/theme.js), light is the default */
:root[data-theme="dark"] {
  --bg: #0b1418;
  --bg-soft: #101d22;
  --bg-card: #12222a;
  --text: #e4ecef;
  --muted: #9aabb3;
  --border: #22353d;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --link: #2993a3;        /* 4.5:1 on the cards (more on the page), 3.0:1 against the text colour */
  --accent-soft: #0c2f2c;
  --on-accent: #042f2e;
  --danger: #f87171;
  --danger-soft: #3a1a1c;
  --ok: #4ade80;
  --ok-soft: #12291f;
  --warn: #fbbf24;
  --warn-soft: #2e2512;
  --info-soft: #132a31;
  --sev-critical: #fb7185;
  --sev-high: #fb923c;
  --sev-medium: #facc15;
  --sev-low: #67e8f9;
  --sev-info: #9aabb3;
  --code-bg: #060c0f;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* the page colour on the root too: Firefox on Android paints the strip of its bottom toolbar with it */
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links in running text and tables are underlined: a second cue besides the colour */
main p a:not(.btn), main li a:not(.btn), main dd a:not(.btn), main td a:not(.btn), main .prose a:not(.btn) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: .1em .35em; word-break: break-word; }
pre {
  background: var(--code-bg); color: var(--code-text); border-radius: var(--radius);
  padding: 1rem 1.2rem; overflow-x: auto; line-height: 1.5; margin: 0 0 1.2em;
}
pre .c { color: #7d8aa8; }
pre .s { color: #a5d6a7; }
pre .k { color: #7dd3fc; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.section { padding-block: 72px; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 1.4rem; font-weight: 700; color: var(--accent); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Firefox on phones left a blank strip where the bottom toolbar was after it hid (29 Oct 2026),
   like Mozilla bug 1764606 with mix-blend-mode: no blur there, a solid header instead */
@supports (-moz-appearance: none) {
  @media (pointer: coarse) { .site-header { backdrop-filter: none; background: var(--bg); } }
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; max-width: 1360px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 185px; height: 34px; display: block; }
.brand-sm img { width: 152px; height: 28px; }
.brand .logo-dark, :root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
.brand > span { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.linklike {
  color: var(--muted); font-weight: 550; padding: 8px 9px; border-radius: 8px; font-size: .95rem; white-space: nowrap;
  position: relative; transition: color .15s, background-color .15s;
}
.nav a:hover, .nav button.linklike:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
/* menu links: blue on light blue when pointed at; the current page underlined in the company blue */
.nav a:not(.btn):hover, .nav a:not(.btn):focus-visible { color: var(--accent); background: var(--accent-soft); }
.nav a.active { color: var(--text); }
.nav a.active:not(.btn)::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
/* the nav button must win over the ".nav a" link styles (hover background, active colour) */
.nav a.btn, .nav a.btn.active { margin-left: 6px; color: var(--on-accent); }
.nav a.btn:hover { color: var(--on-accent); background: var(--accent-hover); border-color: var(--accent-hover); }
.site-header .nav { order: 1; } .theme-toggle { order: 3; } .nav-toggle { order: 4; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: 4px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); }
.theme-toggle:hover { color: var(--text); background: var(--bg-soft); }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); font: inherit; }
/* below the width of the longest menu (an admin, with Geocoding, Admin and Dashboard) */
@media (max-width: 980px) {
  .nav-toggle { display: block; margin-left: 8px; }
  .theme-toggle { margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; }
  .nav-open .nav { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .nav a.active:not(.btn)::after { left: 0; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; } /* in the list: a bar on the left */
}

/* buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  border-radius: 10px; padding: 10px 18px; font: 600 .97rem/1.2 var(--font); cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border); }
.btn-sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: var(--accent); padding: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* two buttons side by side and a wide one under both, as wide as the two together */
.actions.actions-grid { display: inline-grid; grid-template-columns: auto auto; }
.actions-grid .wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .actions.actions-grid { display: grid; grid-template-columns: minmax(0, 1fr); } }

form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
label.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 450; }
label.check input { margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 84px; font-family: var(--mono); font-size: .9rem; }
.mail-edit textarea { field-sizing: content; } /* the admin e-mail page: the whole text without scrolling */
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
.hint { color: var(--muted); font-size: .86rem; margin-top: .3rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* alerts */
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 1.2rem; border: 1px solid transparent; font-size: .95rem; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-info { background: var(--info-soft); border-color: var(--border); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .88rem; padding: 6px 12px; border-bottom: 1px solid var(--border); }

/* cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* hero */
.hero { padding-block: 84px 72px; background:
  radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
  radial-gradient(800px 300px at -10% 10%, color-mix(in srgb, #3b82f6 8%, transparent), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.pill-live { margin: 14px 0 0; }
.pill-live:hover { text-decoration: none; color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot-ok { background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 20%); }
.dot-warn { background: #f59e0b; box-shadow: 0 0 0 3px rgb(245 158 11 / 20%); }
.dot-bad { background: #ef4444; box-shadow: 0 0 0 3px rgb(239 68 68 / 20%); }
.checks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .93rem; }
.checks li::before, .features li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 7px; }
.features li.no::before { content: "✗"; color: var(--danger); }
/* yes and no in a table: may a plan be used for a business website */
.mark-yes { color: var(--ok); font-weight: 600; }
.mark-no { color: var(--danger); font-weight: 600; }

.terminal { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgb(15 23 42 / 18%); border: 1px solid #1e293b; }
.terminal-bar { background: #1e293b; padding: 10px 14px; display: flex; gap: 7px; align-items: center; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #475569; display: block; }
.terminal-bar span { margin-left: 8px; color: #94a3b8; font: .8rem var(--mono); }
.terminal pre { margin: 0; border-radius: 0; font-size: .84rem; }

/* features */
.feature .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { padding: 18px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* pricing */
.toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.toggle a { padding: 6px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.toggle a:hover { text-decoration: none; color: var(--text); }
.toggle a.on { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }
.toggles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 36px; }
.save { color: var(--ok); font-size: .78rem; font-weight: 700; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .price { font-size: 2.3rem; font-weight: 780; letter-spacing: -0.03em; margin: 10px 0 0; }
.plan .price small { font-size: .95rem; font-weight: 500; letter-spacing: 0; }
.dedicated .price { font-size: 1.5rem; font-weight: 780; letter-spacing: -0.02em; white-space: nowrap; }
.dedicated .price small { font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.more-plans { display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; }
.more-plans > .grow { min-width: 260px; }
.more-plan { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.more-plan .price { margin: 0; }
@media (max-width: 560px) { .more-plan { flex: 1 1 100%; } }
.plan .per { color: var(--muted); font-size: .88rem; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; font-size: .94rem; flex: 1; }
.plan li { padding: 5px 0; border-bottom: 1px dashed var(--border); display: flex; justify-content: space-between; gap: 8px; }
.plan li:last-child { border-bottom: 0; }
.plan li b { font-weight: 650; text-align: right; }
.features { list-style: none; padding: 0; margin: 0 0 18px; font-size: .93rem; color: var(--muted); }
.features li { padding: 3px 0; }
.badge { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge-soft { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* faq */
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* auth */
.auth { max-width: 440px; margin: 56px auto; }
.auth h1 { font-size: 1.8rem; }
.auth .alt { text-align: center; margin-top: 1.2rem; color: var(--muted); font-size: .94rem; }
/* dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-block: 36px 72px; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; gap: 16px; } }
.side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; align-self: start; }
@media (max-width: 820px) { .side { position: static; flex-direction: row; flex-wrap: wrap; } }
.side a { color: var(--muted); padding: 9px 12px; border-radius: 9px; font-weight: 560; }
.side a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.side a.active { background: var(--accent-soft); color: var(--accent); }
.dash h1 { font-size: 1.8rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.meter { height: 10px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter.ok > i { background: #22c55e; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .94rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 560; }
.kv.kv-inline { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.kv-inline dt::after { content: ":"; }
.kv-inline dd { margin-right: 12px; }
.keytype { border: 0; padding: 0; margin: 0 0 14px; }
.keytype legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.keytype .check { margin-bottom: 6px; }
.keybox { display: flex; gap: 8px; align-items: stretch; }
.keybox .btn { flex: none; }
/* the full key, never cut off: wraps on narrow screens, one click selects all of it */
code.keytext { flex: 1; min-width: 0; display: block; padding: 8px 10px; font-size: .9rem; line-height: 1.4;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; word-break: break-all; user-select: all; }
code.keytext-muted { display: inline-block; color: var(--muted); }
.keycard { position: relative; }
.keycard.revoked { opacity: .65; }
.newkey { border: 2px solid var(--ok); background: var(--ok-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .9em; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

/* docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-block: 40px 80px; }
.docs .toc { position: sticky; top: 84px; align-self: start; font-size: .92rem; display: flex; flex-direction: column; gap: 2px; }
.docs .toc a { color: var(--muted); padding: 5px 10px; border-radius: 7px; }
.docs .toc a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
/* narrow screens: the contents sit above the text as a wrapped list and scroll with the page */
@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .docs .toc a { background: var(--bg-soft); padding: 6px 10px; }
}
.docs article h2 { margin-top: 2.4rem; padding-top: .6rem; scroll-margin-top: 80px; }
.docs article h2:first-child { margin-top: 0; }
.docs article h3 { margin-top: 1.6rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 0; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 8px 14px; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
[data-tabs] pre { border-top-left-radius: 0; border-top-right-radius: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.prose li { margin-bottom: .35rem; }

/* status */
.status-big { display: flex; align-items: center; gap: 16px; font-size: 1.4rem; font-weight: 700; }
.status-big .dot { width: 16px; height: 16px; }
.status-services dd { display: flex; align-items: center; gap: 8px; }
/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: 44px 28px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.fineprint { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* utilities (no inline styles: CSP) */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .8rem; } .mt-2 { margin-top: 1.6rem; } .mt-3 { margin-top: 2.4rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .8rem; } .mb-2 { margin-bottom: 1.6rem; }
.w-auto { width: auto; } .inline { display: inline; } .right { text-align: right; } .small { font-size: .88rem; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; }
.side-logout { color: var(--muted); padding: 9px 12px; font-weight: 560; text-align: left; }
.center .actions { justify-content: center; }
.inline-details { display: inline-block; text-align: left; margin-right: 8px; border: 0; padding: 0; } .inline-details summary { display: inline; color: var(--accent); } .inline-details summary::after { content: none; } .inline-details[open] form { position: absolute; right: 24px; z-index: 5; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); width: 320px; }
.brand b { color: var(--accent); font-weight: inherit; }
.grid-3x { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3x { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3x { grid-template-columns: 1fr; } }
.plan ul.features { flex: none; margin-top: 0; }
.plan .features li { display: block; border: 0; padding: 3px 0; }
/* cards with checkmarks share the rows of their grid row, so limits and checkmarks start at the same height and the buttons end at the same height (7 parts: name, tagline, price, billing, limits, checkmarks, button) */
@supports (grid-template-rows: subgrid) {
  .plans > .plan:has(> .features) { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  .plans > .plan:has(> .features) > :last-child { align-self: end; }
}
.dash > div, .docs > article { min-width: 0; }
.side form { display: block; }
.side button.side-logout { display: block; width: 100%; color: var(--muted); padding: 9px 12px; border-radius: 9px; font-weight: 560; text-align: left; }
.side button.side-logout:hover { background: var(--bg-soft); color: var(--text); }
.empty { padding: 28px 0; text-align: center; }

/* query cookbook (/examples) and guides */
.center-actions { justify-content: center; }
.ex-hero h1 { margin-bottom: .4rem; }
.ex-group { margin-bottom: 2.6rem; scroll-margin-top: 80px; }
.ex-group h2 { margin-bottom: .2rem; }
.ex-card { display: block; color: inherit; text-decoration: none; padding: 18px 20px; transition: box-shadow .15s, transform .15s; }
.ex-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgb(0 0 0 / 10%); }
.ex-card h3 { font-size: 1.02rem; color: var(--accent); }
.ex-card p { margin: 0; }
.ex-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ex-cta > div:first-child { flex: 1 1 380px; }
.crumbs { color: var(--muted); }
.crumbs a { color: var(--muted); }
.ex-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; margin-top: 1.5rem; }
@media (max-width: 900px) { .ex-layout { grid-template-columns: minmax(0, 1fr); } }
.ex-main h2 { margin-top: 2rem; font-size: 1.35rem; }
/* the side column stays in view on wide screens tall enough for both cards; elsewhere it scrolls with the page */
@media (min-width: 901px) and (min-height: 700px) { .ex-side { position: sticky; top: 84px; align-self: start; } }
.ex-query pre { margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

.guide-answer { margin: 1.4rem 0; border-left: 4px solid var(--accent); }

/* narrow phones: smaller gaps and logo, and the logo shrinks before the buttons do. A bar wider
   than the screen made the whole page wider, and Firefox then scrolled the sticky bar away and
   left a blank strip at the bottom (29 Oct 2026, larger text in Firefox) */
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; }
  .site-header .brand { flex-shrink: 1; min-width: 0; }
  .site-header .brand img { width: 100%; max-width: 152px; height: auto; }
  .theme-toggle, .nav-toggle { flex-shrink: 0; }
  .nav-toggle { margin-left: 4px; white-space: nowrap; }
}



/* ---- Patchbrief additions ---- */

/* the name in the header: a shield and the site name in text */
.brand svg { color: var(--accent); flex: none; }
.brand svg .tick { stroke: var(--bg); }
.brand span { font-size: 1.15rem; }
.site-footer .brand span { font-size: 1rem; }

/* home */
.hero h1 { max-width: 15em; }
.hero .actions { margin: 28px 0 18px; }
.hero .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps > li { counter-increment: step; position: relative; padding: 24px 24px 24px 72px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; background: var(--accent-soft); color: var(--accent); }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
.steps pre { margin: .8rem 0 0; font-size: .82rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; }
.nots li::before { content: "✗"; color: var(--danger); font-weight: 800; margin-right: 7px; }
.yes li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 7px; }

/* severity and status badges */
.sev { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 999px; padding: 2px 9px; border: 1px solid currentColor; white-space: nowrap; }
.sev-critical { color: var(--sev-critical); }
.sev-high { color: var(--sev-high); }
.sev-medium { color: var(--sev-medium); }
.sev-low { color: var(--sev-low); }
.sev-info { color: var(--sev-info); }
.src { font-size: .78rem; color: var(--muted); }

/* the draft box of the legal pages */
.draft { border: 2px dashed var(--warn); background: var(--warn-soft); color: var(--text); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 1.6rem; }
.draft b { color: var(--warn); }

/* guides and check pages: text column, contents on the side */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; padding-block: 32px 72px; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.article-side { font-size: .92rem; }
@media (min-width: 961px) and (min-height: 640px) { .article-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; } }
.article-side h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.article-side .toc { list-style: none; padding: 0; margin: 0 0 1.6rem; border-left: 2px solid var(--border); }
.article-side .toc li { margin: 0; }
.article-side .toc a { display: block; padding: 4px 0 4px 12px; color: var(--muted); }
.article-side .toc a:hover { color: var(--accent); text-decoration: none; }
.meta-line { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 1.4rem; }
.md { max-width: 760px; font-size: 1.03rem; }
.md h2 { margin-top: 2.2rem; font-size: 1.45rem; scroll-margin-top: 80px; }
.md h3 { margin-top: 1.6rem; font-size: 1.15rem; scroll-margin-top: 80px; }
.md ul, .md ol { padding-left: 1.4em; margin: 0 0 1em; }
.md li { margin-bottom: .35rem; }
.md table { margin: 0 0 1.2em; display: block; overflow-x: auto; width: max-content; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); }
.md th, .md td { padding: 8px 12px; }
.md pre { font-size: .86rem; }
.md td code, .md th code { word-break: normal; overflow-wrap: normal; } /* setting names stay whole; the other column wraps */
.md blockquote { margin: 0 0 1.2em; padding: 12px 16px; border-left: 4px solid var(--border); color: var(--muted); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.md blockquote p:last-child { margin-bottom: 0; }
.md blockquote.note { border-left-color: var(--accent); background: var(--info-soft); color: var(--text); }
.md blockquote.note-warning { border-left-color: var(--warn); background: var(--warn-soft); }
.md blockquote.note-tip { border-left-color: var(--ok); background: var(--ok-soft); }
.md img { border-radius: var(--radius); }
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.catalog-box { border-left: 4px solid var(--accent); }
.level { text-transform: capitalize; }

/* lists of checks and of guides */
.check-list td:first-child { white-space: nowrap; }
.check-list code { font-size: .82rem; }
.guide-cat { margin-bottom: 2.4rem; scroll-margin-top: 80px; }
.guide-cat h2 { margin-bottom: .2rem; }

/* the payload reference */
.schema td.path { font-family: var(--mono); font-size: .84rem; white-space: nowrap; }
.schema td.path.d1 { padding-left: 30px; }
.schema td.path.d2 { padding-left: 46px; }
.schema td.path.d3 { padding-left: 62px; }
.schema td.path.d4 { padding-left: 78px; }
.schema .req { color: var(--danger); font-weight: 700; }
.schema td { font-size: .88rem; }

/* dashboard */
.servers td.name a { font-weight: 650; }
.servers .kind { margin-left: 6px; }
.stale { color: var(--warn); font-weight: 600; }
.placeholder { border: 1px dashed var(--border); background: var(--bg-soft); box-shadow: none; }
.keyscope { font-size: .75rem; }
.kv.kv-wide { grid-template-columns: 170px 1fr; }
@media (max-width: 560px) { .kv.kv-wide { grid-template-columns: 1fr; } .kv.kv-wide dd { margin-bottom: 6px; } }
.admin-table { font-size: .86rem; }
.admin-table td, .admin-table th { padding: 7px 9px; }
.word-break { overflow-wrap: anywhere; }

/* pricing */
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font-size: 2rem; white-space: nowrap; }
.article-layout .ex-cta { max-width: 760px; }
.plan .featured-badge { position: absolute; top: -12px; right: 16px; }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.mono-h { font-family: var(--mono); font-size: 1.35rem; }
.table-wrap td:first-child code { word-break: normal; overflow-wrap: normal; white-space: nowrap; }

/* dashboard: findings, checks, history (integrate) */
.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; }
.dash h2.h3 { font-size: 1.2rem; margin: 1.6rem 0 .8rem; }
.dash .stats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.dash .stat { padding: 12px 14px; }
.dash .stat b { font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash .stat span { font-size: .85rem; line-height: 1.3; display: block; }
.stat-kev { border-color: var(--sev-critical); background: color-mix(in srgb, var(--sev-critical) 8%, var(--bg-card)); }
.stat-kev b { color: var(--sev-critical); }
.badge-kev { background: var(--sev-critical); color: var(--bg); }
.n { font-weight: 700; font-variant-numeric: tabular-nums; }
.n-critical { color: var(--sev-critical); } .n-high { color: var(--sev-high); } .n-medium { color: var(--sev-medium); } .n-low { color: var(--sev-low); } .n-unknown { color: var(--sev-info); }
.n0 { color: var(--muted); opacity: .6; }
.place-counts .n { margin-left: 6px; }
.st { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.st-fail { background: var(--danger-soft); color: var(--danger); }
.st-warn { background: var(--warn-soft); color: var(--warn); }
.st-pass { background: var(--ok-soft); color: var(--ok); }
.st-unknown, .st-skip, .st-pending { background: var(--bg-soft); color: var(--muted); }
table.findtable td, table.checktable td { font-size: .9rem; }
table.findtable td.vuln { min-width: 160px; }
table.findtable td.pkg { min-width: 150px; }
table.servers th, table.servers td { padding: 10px 9px; }
.fixcell { min-width: 200px; width: 34%; }
.fixcell code.fixcode { display: block; font-size: .8rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; overflow-wrap: anywhere; margin-bottom: 6px; user-select: all; }
.cmd { display: flex; gap: 6px; align-items: flex-start; }
.cmd .btn { flex: none; }
.cmd-block code { flex: 1; min-width: 0; border-radius: 6px; overflow-wrap: anywhere; display: block; font-size: .85rem; padding: 8px 10px; background: var(--code-bg); color: var(--code-text); border-color: var(--code-bg); user-select: all; }
.fixall { border-left: 3px solid var(--accent); padding-left: 12px; }
.place-head h3 { font-size: 1.05rem; }
.events { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.events li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.events li:last-child { border-bottom: 0; }
.ev { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--bg-soft); color: var(--muted); }
.ev-new { background: var(--danger-soft); color: var(--danger); }
.ev-resolved { background: var(--ok-soft); color: var(--ok); }
.ev-fixed { background: var(--info-soft); color: var(--accent); }
.ev-kev { background: var(--sev-critical); color: var(--bg); }
svg.chart { width: 100%; height: auto; display: block; }
.chart .ch-grid { stroke: var(--border); stroke-width: 1; }
.chart .ch-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.ch-critical { fill: var(--sev-critical); background: var(--sev-critical); }
.ch-high { fill: var(--sev-high); background: var(--sev-high); }
.ch-medium { fill: var(--sev-medium); background: var(--sev-medium); }
.ch-low { fill: var(--sev-low); background: var(--sev-low); }
.ch-unknown { fill: var(--sev-info); background: var(--sev-info); }
.ch-none { fill: var(--border); }
.filters { display: flex; flex-wrap: wrap; gap: 0 16px; align-items: flex-end; padding: 16px; }
.filters .field { margin-bottom: .6rem; }
.checks-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.channel-form label.check, .settings-form label.check { align-items: center; }
.channel-form label.check input, .settings-form label.check input { margin-top: 0; }
.channel-add .keytype { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.steps li { margin-bottom: .8rem; }
pre.digest { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }

/* server page: known exploited without a fix, accepted check results, count note */
.kevnow { border-left: 5px solid var(--sev-critical); }
.kevnow .plain li { margin-bottom: .6rem; }
.dash h2.h3.mt-0 { margin-top: 0; }
.statnote { margin: -.6rem 0 1.2rem; }
.checktable td.acceptcell { width: 1%; white-space: nowrap; vertical-align: top; }
.checktable details.accept summary { list-style: none; cursor: pointer; }
.checktable details.accept summary::-webkit-details-marker { display: none; }
.checktable details.accept[open] { white-space: normal; min-width: 220px; }
.checktable details.accept input[type=text] { width: 100%; }

/* phones: the dashboard menu is one row that scrolls sideways, the counts one compact block */
@media (max-width: 820px) {
  .side { flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding-bottom: 6px; scrollbar-width: thin; }
  .side a, .side form, .side button.side-logout { flex: none; white-space: nowrap; }
  .side a, .side button.side-logout { padding: 7px 10px; }
}
@media (max-width: 560px) {
  .dash .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
  .dash .stat { padding: 0; border: 0; background: none; display: inline-flex; align-items: baseline; gap: 5px; }
  .dash .stat b { font-size: 1.05rem; display: inline; }
  .dash .stat span { font-size: .85rem; }
  .statnote { margin-top: .4rem; }
}
.channel-add .field.is-hidden { display: none; }
.site-footer .foot-h { color: var(--text); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem; }
.field-error { color: var(--danger); font-size: .9rem; margin-top: 4px; }
