/* FireSight portal */
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url(fonts/schibsted-grotesk-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #f4f6f9; --surface: #fff; --sunk: #eef1f5; --ink: #1b2433; --ink-2: #3a4658; --muted: #5b6b82; --line: #dce2ea;
  --accent: #0b6fdc; --accent-ink: #fff; --accent-soft: #e5f0fd; --ok: #1a8f6a; --ok-soft: #e2f4ed; --warn: #b97a0e;
  --warn-soft: #fbf1dc; --deny: #cf3f37; --deny-soft: #fbe8e6; --radius: 12px; --radius-s: 7px;
  --font: "Schibsted Grotesk", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0f15; --surface: #141923; --sunk: #1b2130; --ink: #e8edf5; --ink-2: #c3cbd8; --muted: #95a3b8; --line: #283142;
    --accent: #4d9dff; --accent-ink: #06121f; --accent-soft: #14263f; --ok: #3ccf98; --ok-soft: #10261f; --warn: #f0b44c;
    --warn-soft: #2a2110; --deny: #ff6b62; --deny-soft: #2c1513; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 6px 10px; z-index: 9; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-s); font: inherit; font-size: .95rem; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--sunk); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav form { margin: 0; }
main { padding: 28px 0 56px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 22px 0; }
.foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); margin-bottom: 18px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.figure b { display: block; font-size: 1.7rem; font-weight: 800; }
.figure span { color: var(--muted); font-size: .9rem; }
.head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.head p { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--deny); }
.btn.small { padding: 4px 10px; min-height: 32px; font-size: .88rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; margin: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.deny { background: var(--deny-soft); color: var(--deny); } .tag.info { background: var(--accent-soft); color: var(--accent); }
.alert { border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 16px; background: var(--ok-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.alert.error { background: var(--deny-soft); border-color: color-mix(in srgb, var(--deny) 30%, transparent); }

/* forms */
.form { display: grid; gap: 14px; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } }
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { color: var(--muted); font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=file], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 11px; min-height: 40px; }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* tables */
.table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: .9rem; } dl.facts dd { margin: 0; }
pre { background: var(--sunk); border-radius: var(--radius-s); padding: 12px 14px; overflow-x: auto; font: .85rem/1.5 var(--mono); }
.meter { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin: 6px 0; } .meter i { display: block; height: 100%; background: var(--accent); }
.meter.full i { background: var(--warn); }

/* auth pages */
.narrow { max-width: 480px; margin: 0 auto; }

/* home */
.hero { padding: 28px 0 8px; } .hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* docs */
.docs { display: grid; gap: 24px; }
@media (min-width: 960px) { .docs { grid-template-columns: 250px minmax(0, 1fr) 200px; } }
.docnav { font-size: .93rem; }
.docnav h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 6px; }
.docnav ul, .doctoc ul { list-style: none; padding: 0; margin: 0; }
.docnav a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.docnav a:hover { background: var(--sunk); }
.docnav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 36px); min-width: 0; }
.doc h2 { margin-top: 1.6em; padding-top: .2em; } .doc h3 { margin-top: 1.3em; }
.doc img, .doc video { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.doc table { margin: 0 0 1.2em; display: block; overflow-x: auto; }
.doc li { margin: .25em 0; }
.doc .admonition { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 6px; margin: 0 0 1em; }
.doc .admonition.warning { border-color: var(--warn); background: var(--warn-soft); }
.doc .admonition-title { font-weight: 700; margin: 0 0 4px; }
.doctoc { font-size: .86rem; position: sticky; top: 76px; align-self: start; }
.doctoc a { color: var(--muted); text-decoration: none; display: block; padding: 2px 0; } .doctoc a:hover { color: var(--accent); }
.doctoc .l3 { padding-left: 12px; }
@media (max-width: 959px) { .doctoc { display: none; } }
.docnav-mini { display: none; }
@media (max-width: 959px) {
  .docnav-full { display: none; }
  .docnav-mini { display: block; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 2px 12px; }
  .docnav-mini summary { cursor: pointer; padding: 9px 0; font-weight: 600; color: var(--ink-2); }
  .docnav-mini[open] { padding-bottom: 10px; }
}
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; margin-bottom: 8px; }
/* docs: one guide per product. Each product has its own colour, so it's always clear which guide you're in. */
[data-product] { --prod: var(--accent); --prod-soft: var(--accent-soft); }
[data-product="firesight-ot"] { --prod: #0d8a74; --prod-soft: #def3ee; }
[data-product="portal"] { --prod: #6a4fd1; --prod-soft: #ece8fb; }
@media (prefers-color-scheme: dark) {
  [data-product="firesight-ot"] { --prod: #3fcfae; --prod-soft: #10292a; }
  [data-product="portal"] { --prod: #a996ff; --prod-soft: #211c38; }
}
.docs .docnav a[aria-current="page"] { background: var(--prod-soft); color: var(--prod); }
.docs .doc { border-top: 4px solid var(--prod); }
.prodswitch { display: grid; gap: 6px; margin: 0 0 12px; }
.prodswitch a { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink); border-left: 4px solid var(--prod); }
.prodswitch a span { font-size: .78rem; color: var(--muted); }
.prodswitch a:hover { background: var(--sunk); }
.prodswitch a[aria-current="true"] { background: var(--prod-soft); border-color: var(--prod); }
.prodswitch a[aria-current="true"] b { color: var(--prod); }
@media (max-width: 959px) { .prodswitch { grid-template-columns: repeat(3, 1fr); } .prodswitch a span { display: none; } }
.docnav-product > b { display: block; margin: 18px 0 0; color: var(--prod); }
.docprod { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.docprod a { color: var(--prod); text-decoration: none; }
.docprod span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.docprod a + span::before { content: "\00b7"; margin-right: 6px; }
.tag[data-product] { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--prod-soft); color: var(--prod); vertical-align: 2px; }
.searchscope { color: var(--muted); }
.docshome .lede { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.docshome .search { max-width: 520px; margin: 14px 0 22px; }
.docshome .search input { flex: 1; }
.prodcards { display: grid; gap: 18px; }
@media (min-width: 900px) { .prodcards { grid-template-columns: repeat(3, 1fr); } }
.prodcard { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--prod); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.prodcard h2 { margin: 2px 0 8px; } .prodcard h2 a { color: var(--prod); text-decoration: none; }
.prodcard .docprod span { margin: 0; }
.prodcard ul { padding-left: 18px; margin: 12px 0 18px; } .prodcard li { margin: 3px 0; }
.prodcard .btn { margin-top: auto; align-self: flex-start; }

/* two-factor sign-in */
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.qr svg { display: block; width: 200px; height: 200px; }
.codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; margin: 16px 0; }
.codes li { padding: 4px 0; }

.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* support tickets */
.stack { display: grid; gap: 14px; }
.msg.ours { border-left: 3px solid var(--accent); }
.msg.theirs { border-left: 3px solid var(--line, #ccc); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.select-all { user-select: all; -webkit-user-select: all; white-space: pre-wrap; word-break: break-all; }

/* long unbroken text (checksums, file names, URLs, curl commands) wraps inside its box instead of running out of it */
.card p, .narrow { overflow-wrap: anywhere; }
.btn { white-space: nowrap; overflow-wrap: normal; }
.mono { overflow-wrap: anywhere; word-break: break-all; }
.card pre, .narrow pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }

/* Software updates (admin) and the security update banner (customers) */
.upd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.upd-head h2 { margin: 0; }
.upd-figs { display: flex; gap: 22px; flex-wrap: wrap; }
.upd-figs b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.upd-figs b.hot { color: var(--deny); }
.upd-figs span { color: var(--muted); font-size: .85rem; }
.upd-offer { margin-top: 6px; }
.upd-more { margin-top: 14px; }
.upd-more summary { cursor: pointer; font-weight: 700; font-size: .92rem; }
.upd-more form { margin-top: 10px; }
.card.alert { border-color: var(--deny); background: var(--deny-soft); }
.card.alert h2 { margin-top: 0; }
