/* The manual, privacy policy, terms and support pages (doc_chrome.py):
   the home page's night ink, ice blue and Inter, set for long reading.
   Prints as plain black on white. */

@font-face {
  font-family: 'Inter';
  src: url(/site/fonts/inter-var-latin.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #05070e;
  --text: #eaeefb;
  --body: #c9d1e6;
  --muted: #a3aeca;
  --faint: #828fb2;
  --ice: #7fb2ff;
  --frost: #bcd8ff;
  --border: rgba(146, 180, 255, .16);
  --panel: rgba(255, 255, 255, .035);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(47, 111, 228, .28), transparent 70%),
    radial-gradient(800px 600px at 100% 10%, rgba(125, 90, 235, .18), transparent 70%); }

.doc-top, .doc, .doc-foot { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.doc-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 8px; font-size: 15px; }
.doc-top .brand { display: flex; align-items: center; gap: 10px; flex-grow: 1; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.doc-top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.doc-top nav a { color: var(--muted); text-decoration: none; }
.doc-top nav a:hover, .doc-top nav a[aria-current] { color: var(--text); }

.doc { padding-top: 40px; padding-bottom: 64px; }
.doc h1 { margin: 0 0 6px; color: var(--text); font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.doc h2 { margin: 2.4em 0 .6em; padding-top: 1.2em; border-top: 1px solid var(--border); color: var(--text); font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { margin: 1.8em 0 .4em; color: var(--text); font-size: 18px; font-weight: 700; }
.doc p { margin: 0 0 1em; }
.doc strong { color: var(--text); }
.doc a { color: var(--frost); text-underline-offset: 3px; }
.doc a:hover { color: #fff; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--ice); }

.note { color: var(--muted); font-size: 15px; }
.updated { color: var(--faint); font-size: 15px; margin-bottom: 2em; }

.notice, .contact, nav.toc { border-radius: 16px; padding: 18px 22px; margin: 1.4em 0; border: 1px solid var(--border); background: var(--panel); }
.notice { background: rgba(255, 179, 64, .08); border-color: rgba(255, 179, 64, .3); }
.notice strong { color: #ffd59a; }
.contact { margin-top: 3em; background: rgba(127, 178, 255, .07); border-color: rgba(127, 178, 255, .28); }
nav.toc div { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ice); margin-bottom: 8px; }
nav.toc ol { margin: 0; }
nav.toc li { margin-bottom: 3px; }

ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: .9em; padding-left: .2em; }

table.ref { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 15px; }
table.ref th, table.ref td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.ref th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
table.ref td:first-child { color: var(--text); }
table.ref td:has(> .dot:first-child) { white-space: nowrap; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.low { background: #ff6b6b; }
.dot.high { background: #ffb340; }
.dot.info { background: var(--ice); }
.dot.ok, .dot.green { background: #35d399; }
.dot.grey { background: #8a8a8e; }
.dot.blue { background: #3d9dff; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 0 5px 0 2px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

.chip { display: inline-block; background: #1b2234; color: var(--text); border-radius: 8px; padding: 3px 9px; margin: 0 4px 6px 0;
  font-size: 13px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

.faq dt { color: var(--text); font-weight: 650; margin-top: 1.3em; }
.faq dd { margin: .35em 0 0; color: var(--body); }

a.button { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 25px;
  background: linear-gradient(180deg, var(--frost), var(--ice)); color: var(--ink); font-weight: 700; text-decoration: none; margin: 6px 0 10px; }
a.button:hover { color: var(--ink); filter: brightness(1.06); }

footer.page { margin-top: 2.5em; font-size: 15px; color: var(--faint); }
footer.page a { color: var(--muted); }

.doc-foot { padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.doc-foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.doc-foot a { color: var(--muted); }
.doc-foot p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  table.ref { font-size: 14px; }
  table.ref th, table.ref td { padding: 8px 6px; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .glow, .doc-top nav, .doc-foot nav { display: none; }
  .doc h1, .doc h2, .doc h3, .doc strong, .doc-top .brand, table.ref td:first-child, .faq dt { color: #000; }
  .doc a { color: #000; }
  .notice, .contact, nav.toc { background: none; border-color: #999; }
  .chip { background: #eee; color: #000; }
  .dot, .swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The support page's contact form (doc_chrome.contact_form, contact.js). */
.contact-form { display: grid; gap: 6px; margin: 1.4em 0 2em; padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--panel); }
.contact-form[hidden], .cf-fallback[hidden] { display: none; }
.contact-form label { color: var(--text); font-weight: 650; font-size: 15px; margin-top: 10px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(5, 7, 14, .6);
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input[type=file] { padding: 9px 12px; font-size: 15px; color: var(--muted); }
.contact-form input[type=file]::file-selector-button { font: inherit; font-weight: 650; color: var(--ink); background: var(--frost); border: 0; border-radius: 999px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ice); outline-offset: 1px; border-color: transparent; }
.contact-form [aria-invalid="true"] { border-color: #ff6b6b; }
.contact-form small { color: var(--faint); font-size: 13px; }
.contact-form button.button { justify-self: start; margin-top: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 25px;
  background: linear-gradient(180deg, var(--frost), var(--ice)); color: var(--ink); }
.contact-form button.button:disabled { opacity: .55; cursor: progress; }
.contact-form .note { margin: 6px 0 0; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-status { margin: 0; font-size: 15px; color: var(--frost); }
.cf-status.error { color: #ff8f8f; }
.cf-status.ok { color: #6fe39a; }

/* The brand mark: the icon's shield and S on transparency (site/img/mark.png),
   cropped tight so it reads at this size. */
.brand-icon { width: 36px; height: 36px; display: block; flex: none; margin: -6px 0; }

/* The Facebook link in the footer: the logo beside the word. */
a.fb { display: inline-flex; align-items: center; gap: 6px; }
a.fb svg { flex: none; }
