/* KasTec's help pages (security sheet, user guide): readable on screen in light or dark, and print cleanly to PDF. */
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("geist-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #f4f6f9; --paper: #ffffff; --text: #1b2430; --muted: #5d6978; --border: #e1e6ed; --accent: #2563eb;
  --soft: #eef3fe; --ok: #15803d; --ok-bg: #e9f7ee; --warn: #a16207; --warn-bg: #fdf6e3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141b; --paper: #171e27; --text: #e6ebf1; --muted: #93a0af; --border: #2a3542; --accent: #4f8bff;
    --soft: #1a2640; --ok: #4ade80; --ok-bg: #12261b; --warn: #fbbf24; --warn-bg: #2a2212; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141b; --paper: #171e27; --text: #e6ebf1; --muted: #93a0af; --border: #2a3542; --accent: #4f8bff;
  --soft: #1a2640; --ok: #4ade80; --ok-bg: #12261b; --warn: #fbbf24; --warn-bg: #2a2212; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Geist", system-ui, "Segoe UI", sans-serif; }
.page { max-width: 880px; margin: 32px auto; padding: 44px 52px; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; }
.page.wide { max-width: 980px; }
header.doc { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
header.doc img { width: 40px; height: 40px; }
header.doc .brand { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
header.doc .brand span { color: var(--accent); }
header.doc .kind { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font-size: 19px; margin: 30px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 15.5px; margin: 20px 0 4px; }
p { margin: 0 0 12px; }
.lead { font-size: 17px; color: var(--muted); margin-bottom: 22px; }
a { color: var(--accent); }
code, kbd { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.9em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
ul, ol { padding-left: 22px; margin: 0 0 12px; }
li { margin: 3px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.box { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.box h3 { margin-top: 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--ok-bg); color: var(--ok); }
.callout { background: var(--soft); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.callout.warn { background: var(--warn-bg); }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.toc { columns: 2; column-gap: 28px; margin-bottom: 8px; }
.toc a { text-decoration: none; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin: 12px 0; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 14px; }
footer.doc { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.noprint { }

@media screen and (max-width: 720px) {
  table { display: block; overflow-x: auto; }
  td code { word-break: break-all; }
  .page { margin: 0; padding: 24px 16px; border-radius: 0; border: 0; }
  .grid2 { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  header.doc .kind { display: none; }
  h1 { font-size: 25px; }
}
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --paper: #fff; --text: #111; --muted: #555; --border: #ddd; --soft: #f1f4fa; color-scheme: light; }
  body { font-size: 9.5pt; line-height: 1.45; }
  .page { margin: 0; padding: 0; border: 0; max-width: none; }
  header.doc { padding-bottom: 10px; margin-bottom: 14px; }
  header.doc img { width: 30px; height: 30px; }
  h1 { font-size: 19pt; margin-bottom: 6px; }
  .lead { font-size: 11pt; margin-bottom: 12px; }
  h2 { font-size: 12.5pt; margin: 14px 0 4px; }
  h3 { font-size: 10.5pt; margin: 8px 0 2px; }
  p, ul { margin-bottom: 6px; }
  li { margin: 1px 0; }
  .grid2 { gap: 8px 12px; }
  .box { padding: 8px 11px; border-radius: 8px; }
  table { font-size: 9pt; margin: 4px 0 8px; }
  th, td { padding: 4px 7px; }
  .callout { padding: 8px 12px; margin: 10px 0; }
  footer.doc { margin-top: 12px; }
  .noprint { display: none; }
  h2 { break-after: avoid; }
  .box, .step, tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
