/*
 * ProdMask site styles: concept 01 with the pipeline drawing (approved 16 November 2026; the draft is in
 * ai-docs/design-concepts/landing.html). One column of centred sections, each with one heading, one
 * sentence and one device. Two themes: Plain (white, black, link blue, a visited purple for Pro) and
 * Ink (ink page, cream text, pale cobalt, gold for Pro). Plain is the default, whatever the system's
 * setting; Ink comes on only when picked with the header's switch, as <html data-mode>
 * (assets/controllers/theme_controller.js).
 * Fonts: Geist and Geist Mono, and Archivo for the wordmark only, self-hosted from assets/fonts/ (see
 * NOTICE.md there). The site makes no third-party requests. Every page has this look, the docs too:
 * their frame, text and code have a section of their own near the end.
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal-fE8Pnk7.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal-bVnjbCM.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-wdth-normal-Wa7z_Iw.woff2") format("woff2");
}

/* Plain. Every text and ground pair passes WCAG AA (ai-docs/design-concepts/palettes.mjs for the draft's
   pairs; the severity pairs were checked the same way). */
:root {
  --bg: #ffffff; --card: #f4f4f4; --fg: #111111; --mut: #5f5f5f; --line: #e3e3e3; --line2: #c6c6c6;
  --acc: #0000ee; --acc-ink: #0000ee; --acc-tint: #e8e8ff; --acc-line: #b3b3ff;
  --two-ink: #551a8b; --two-tint: #efe6f7; --two-line: #c9b0e0;
  --btn: #111111; --on-btn: #ffffff;
  --code: #111111; --code-fg: #f2f2f2; --code-mut: #a6a6a6; --code-acc: #9aa8ff;
  --red: #b42318; --red-tint: #fde8e6; --orange: #b54708; --orange-tint: #fdf0e1; --amber: #7a5d00; --amber-tint: #f8f1d2;
  /* Code blocks are dark in both themes, so the colours on them are Ink's, set once for both: gold for
     names, and the scan report's warning and error colours. Print sets its own. */
  --code-two: #e9c46a; --code-orange: #ffb86b; --code-red: #ff8a7a;
  --gut: 20px;
  --fb: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fm: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --fw: "Archivo", var(--fb);
  color-scheme: light;
}
/* Ink: only when someone picked it. */
:root[data-mode="ink"] {
  --bg: #171614; --card: #22201d; --fg: #f3efe6; --mut: #aaa49a; --line: #34322d; --line2: #4d4a42;
  --acc: #93acff; --acc-ink: #93acff; --acc-tint: #262b40; --acc-line: #4a5680;
  --two-ink: #e9c46a; --two-tint: #3a2f10; --two-line: #6b5a22;
  --btn: #f3efe6; --on-btn: #171614;
  --code: #0f0e0d; --code-fg: #f3efe6; --code-mut: #a39d93; --code-acc: #93acff;
  --red: #ff8a7a; --red-tint: #3d1d19; --orange: #ffb86b; --orange-tint: #3a2810; --amber: #e8d67e; --amber-tint: #33300f;
  color-scheme: dark;
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
/* [hidden] wins over the display rules below, for the install box's panels. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--fb); -webkit-font-smoothing: antialiased; }
main, .site-footer { overflow-x: clip; }
a { color: inherit; text-underline-offset: 3px; }
/* Links in running text take the accent; buttons and arrows set their own. */
main :is(p, li, dd, td) a:not(.button) { color: var(--acc-ink); }
:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--acc-tint); color: var(--fg); }
svg { flex: none; }

h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
h1 { max-width: 24ch; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.04em; line-height: 1.04; }
h2 { max-width: 28ch; font-size: clamp(26px, 3.3vw, 40px); letter-spacing: -.035em; line-height: 1.08; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1rem; max-width: 68ch; }
code, kbd, pre, samp { font-family: var(--fm); }
code { font-size: .875em; }
:not(pre) > code { padding: .1em .35em; background: var(--card); border-radius: 5px; }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--btn); color: var(--on-btn); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-btn); }
.hp, .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container, .narrow { width: 100%; margin-inline: auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.container { max-width: 1208px; }
.narrow { max-width: 820px; }

/* The prodmask mark: four squares, the last one the accent. */
.mark-ink { fill: var(--fg); }
.mark-line { fill: none; stroke: var(--fg); stroke-width: 1.6; }
.mark-cobalt { fill: var(--acc); }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .container { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav end"; align-items: center; gap: 0 24px; min-height: 72px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font: 800 20px/1 var(--fw); font-stretch: 125%; letter-spacing: -.045em; text-decoration: none; }
.brand:hover { color: var(--fg); }
.site-nav { grid-area: nav; justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--mut); text-decoration: none; }
/* aria-current is "page" on the page a link opens, "true" on the docs' pages for Docs. */
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }
.header-end { grid-area: end; display: flex; align-items: center; gap: 10px; }
.header-cta { white-space: nowrap; }
.theme-button, .menu-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line2); border-radius: 10px; background: transparent; color: var(--fg); cursor: pointer; }
.theme-button:hover, .menu-button:hover, .menu-button[aria-expanded="true"] { border-color: var(--fg); }
/* The switch needs JavaScript; without it the page stays Plain. */
html:not(.js) .theme-button { display: none; }
/* The icon shows the theme in use: the sun for Plain, the moon for Ink. */
.theme-button .icon-moon { display: none; }
:root[data-mode="ink"] .theme-button .icon-sun { display: none; }
:root[data-mode="ink"] .theme-button .icon-moon { display: block; }
.menu-button { display: none; }
.menu-button[aria-expanded="true"] .icon-open, .menu-button[aria-expanded="false"] .icon-close { display: none; }
/* Small screens: the menu button, at the far right, opens the links below the header
   (menu_controller.js). Without JavaScript they stay in a row under the brand. */
@media (max-width: 860px) {
  .site-header .container { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand end menu" "nav nav nav"; gap: 0 10px; }
  .menu-button { grid-area: menu; }
  .header-end { justify-self: end; }
  .site-nav { justify-self: stretch; }
  html:not(.js) .site-nav { padding-bottom: 14px; }
  .js .menu-button { display: grid; }
  .js .site-nav { display: none; }
  .js .is-menu-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-bottom: 14px; padding: 8px; border: 1px solid var(--line2); border-radius: 12px; }
  .js .is-menu-open .site-nav a { padding: 11px 12px; border-radius: 8px; color: var(--fg); font-size: 16px; }
  .js .is-menu-open .site-nav a:hover, .js .is-menu-open .site-nav a[aria-current] { background: var(--card); }
}
@media (max-width: 520px) { .site-header .header-cta { display: none; } }

.site-footer { padding: 40px 0 72px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer p { margin: 8px 0 0; max-width: 46ch; }
.site-footer .brand { margin: 0; font-size: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

/* Buttons, links and tags */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--btn); border-radius: 10px; background: var(--btn); color: var(--on-btn); font: 600 15px/1.2 var(--fb); text-align: center; text-decoration: none; cursor: pointer; }
.button-primary, .button-primary:hover { background: var(--btn); color: var(--on-btn); }
.button-primary:hover { opacity: .88; }
.button-secondary { border-color: var(--line2); background: transparent; color: var(--fg); }
.button-secondary:hover { border-color: var(--fg); color: var(--fg); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.link-arrow { color: var(--acc-ink); font-weight: 600; text-decoration: none; }
main :is(p, li) a.link-arrow { text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.more { margin: 26px 0 0; max-width: none; text-align: center; }

/* Tags: the accent marks what's free and available today, the second colour marks Pro. */
.tier, .eyebrow { display: inline-flex; flex: none; align-items: center; gap: 6px; width: fit-content; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--mut); font: 500 11px/1 var(--fm); letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.tier::before, .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tier.now, .eyebrow { border-color: var(--acc-line); background: var(--acc-tint); color: var(--acc-ink); }
.tier.pro { border-color: var(--two-line); background: var(--two-tint); color: var(--two-ink); }
.eyebrow { margin: 0 0 18px; }
main .eyebrow a { color: inherit; text-decoration: none; }
main .eyebrow a:hover { text-decoration: underline; }

/* Page structure */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section + .section, .hero + .section { border-top: 1px solid var(--line); }
/* A page's own head, on the left. */
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p, .muted { color: var(--mut); }
/* A section's head on the home page: centred, one heading and one sentence. */
.sec-head { max-width: 46em; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.sec-head h2 { max-width: none; margin: 0; }
.sec-head p { max-width: none; margin: 14px 0 0; color: var(--mut); font-size: 17px; text-wrap: balance; }
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3 > div { padding-top: 16px; border-top: 1.5px solid var(--fg); }
.grid-3 h3 { margin-bottom: 8px; }
.grid-3 p { color: var(--mut); font-size: 15px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.card { padding: 28px; border: 1px solid var(--line2); border-radius: 14px; }
.card > :last-child, .card form > :last-child { margin-bottom: 0; }
@media (max-width: 600px) { .card { padding: 22px 18px; } }
.caption { margin-top: 16px; color: var(--mut); font-size: 14px; }

/* The home page's hero: the dot grid behind it (dots_controller.js), the text and install box on the
   left, the pipeline drawing on the right. */

.hero { position: relative; overflow: hidden; }
.hero-dots { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(#000 55%, transparent 97%); mask-image: linear-gradient(#000 55%, transparent 97%); }
.hero-cols { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 68px; }
.hero h1 { max-width: none; margin: 0; font-size: clamp(32px, 3.75vw, 47px); }
.hero h1 span { display: block; }
.hero h1 .light { font-weight: 300; }
.lede { max-width: 34em; margin: 20px 0 0; color: var(--mut); font-size: 18px; line-height: 1.6; }
.hero-actions { margin-top: 20px; }
.hero-actions .button { white-space: nowrap; }
.hero-meta { margin: 18px 0 0; color: var(--mut); font: 400 12px/1.5 var(--fm); }
.hero-note { max-width: 44em; margin: 14px 0 0; color: var(--mut); font-size: 12.5px; }
/* Two columns need 440px for the drawing; up to 1020px (a scrollbar included) the hero is one column. */
@media (max-width: 1020px) { .hero-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 44px; } }

/* The install box: Go, Docker and Download as tabs (install_controller.js). The page arrives as it first
   looks with JavaScript, so nothing moves when the controller connects. Without JavaScript (no .js
   class) there are no tabs: the three ways show one under another, each with its label. */
.install { max-width: 576px; margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.install-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); background: var(--card); }
html:not(.js) .install-tabs { display: none; }
.install-tab { padding: 7px 12px; border: 0; border-radius: 7px 7px 0 0; background: transparent; color: var(--mut); font: 500 12.5px/1 var(--fb); cursor: pointer; }
.install-tab:hover { color: var(--fg); }
.install-tab[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.install-label { margin: 0; padding: 12px 14px 0; color: var(--mut); font: 500 12px/1 var(--fb); }
.js .install-label { display: none; }
html:not(.js) .install-panel[hidden] { display: block !important; }
html:not(.js) .install-panel + .install-panel { border-top: 1px solid var(--line); }
.install-cmd { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 8px 0 14px; font: 400 13px/1.5 var(--fm); }
/* A long command wraps rather than hiding its end; the <wbr> in it say where it reads best. */
.install-cmd code { flex: 1; min-width: 0; padding: 13px 0; background: none; border-radius: 0; font-size: inherit; overflow-wrap: anywhere; }
.install-cmd .p { color: var(--mut); user-select: none; -webkit-user-select: none; }
.install-cmd a { flex: 1; min-width: 0; padding: 14px 0; overflow-wrap: anywhere; color: var(--acc-ink); }
.install .copy { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 58px; height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--fg); font: 500 12px/1 var(--fb); cursor: pointer; }
.install .copy svg { display: none; }
.install .copy:hover { border-color: var(--fg); }
/* Copy buttons need JavaScript (copy_command_controller.js). */
html:not(.js) .copy { display: none; }
.install .is-copied .copy { border-color: var(--acc); color: var(--acc-ink); }

/* The pipeline drawing: inline SVG, the three values moved by CSS keyframes. */
.pipeline { min-width: 0; margin: 0; }
.pipeline-frame { overflow-x: auto; }
.pipeline figcaption { margin-top: 8px; color: var(--mut); font-size: 12px; text-align: right; }
@media (max-width: 1020px) { .pipeline figcaption { text-align: left; } }
.bp { display: block; width: 100%; min-width: 440px; height: auto; }
.bp text { fill: var(--fg); font: 650 15px var(--fb); }
.bp .t-s { fill: var(--mut); font: 400 11px var(--fm); }
.bp .t-a { fill: var(--acc-ink); }
.bp .wordmark { font: 800 15px var(--fw); font-stretch: 125%; letter-spacing: -.04em; }
.bp .bound { fill: none; stroke: var(--line2); stroke-width: 1.5; stroke-dasharray: 6 5; }
.bp .cover { fill: var(--bg); }
.bp .cyl path, .bp .cyl ellipse { fill: var(--card); fill: color-mix(in srgb, var(--fg) 7%, var(--bg)); stroke: var(--fg); stroke-width: 1.5; }
.bp .cyl.to path, .bp .cyl.to ellipse { fill: var(--acc-tint); fill: color-mix(in srgb, var(--acc) 16%, var(--bg)); stroke: var(--acc); }
.bp .cyl .rings { fill: none; }
.bp .box { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.bp .ln { fill: none; stroke: var(--fg); stroke-width: 1.25; }
.bp .ln.a { stroke: var(--acc); }
.bp .guide { fill: none; stroke: var(--line2); stroke-width: 1; stroke-dasharray: 2 4; }
.bp .mask { stroke: var(--acc); stroke-width: 2; }
.bp .tk rect { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }
.bp .tk text { font: 500 11.5px var(--fm); text-anchor: middle; }
.bp .tk .fb rect { fill: var(--acc-tint); fill: color-mix(in srgb, var(--acc) 14%, var(--bg)); stroke: var(--acc); }
.bp .tk .fb text { fill: var(--acc-ink); }
.bp .tk .fb.same rect { fill: var(--bg); stroke: var(--fg); }
.bp .tk .fb.same text { fill: var(--fg); }
.bp .tk-1 { --d: -.5s; }
.bp .tk-2 { --d: -3s; }
.bp .tk-3 { --d: -5.5s; }
.bp .tk { animation: bp-move 7.5s linear var(--d) infinite; }
.bp .tk .fa { animation: bp-a 7.5s linear var(--d) infinite; }
.bp .tk .fb { animation: bp-b 7.5s linear var(--d) infinite; }
@keyframes bp-move { 0% { transform: translateX(74px); opacity: 0; } 5% { transform: translateX(74px); opacity: 1; } 34% { transform: translateX(280px); } 54% { transform: translateX(280px); } 86% { transform: translateX(486px); opacity: 1; } 96%, 100% { transform: translateX(486px); opacity: 0; } }
@keyframes bp-a { 0%, 41% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes bp-b { 0%, 41% { opacity: 0; } 47%, 100% { opacity: 1; } }
/* Still: each value sits on its own side, the original by production and the fake by staging. */
@media (prefers-reduced-motion: reduce) {
  .bp .tk, .bp .tk .fa, .bp .tk .fb { animation: none; opacity: 1; }
  .bp .tk { transform: translateX(280px); }
  .bp .tk .fa { transform: translateX(-206px); }
  .bp .tk .fb { transform: translateX(206px); }
}

/* A plain copy, or ProdMask's copy */
.compare table { min-width: 620px; font-size: 15.5px; line-height: 1.45; }
.compare th, .compare td { padding: 16px 20px; }
.compare tbody th { width: 30%; color: var(--fg); font-size: inherit; font-weight: 600; }
.compare td { color: var(--mut); }
.compare td.ok { background: var(--acc-tint); background: color-mix(in srgb, var(--acc) 6%, var(--bg)); color: var(--fg); }
.compare thead th.ok { color: var(--acc-ink); }
@media (max-width: 640px) {
  .compare table { min-width: 0; font-size: 13.5px; }
  .compare th, .compare td { padding: 12px 10px; }
  .compare tbody th { width: 34%; }
}

/* Four steps, each with its command in a terminal. Only in a section: the docs' Markdown makes lists
   of steps too (ol.steps), styled in the docs' own section. */
.section .steps { margin: 0; padding: 0; border-top: 1.5px solid var(--fg); list-style: none; }
.section .steps li { display: grid; grid-template-columns: 56px minmax(0, .9fr) minmax(0, 1.3fr); gap: 8px 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-n { color: var(--acc-ink); font: 300 38px/1 var(--fb); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.section .steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 19px; }
.section .steps p { margin: 4px 0 0; color: var(--mut); font-size: 14.5px; }
@media (max-width: 860px) {
  .section .steps li { grid-template-columns: 44px minmax(0, 1fr); }
  .section .steps .term { grid-column: 1 / -1; }
}

/* Terminals: a dark block in both themes, with a muted prompt, flags in a quieter tone, quoted
   strings in the accent, a thin scrollbar and a Copy button (copy_command_controller.js). */
.term { position: relative; min-width: 0; border: 1px solid var(--code); border-color: color-mix(in srgb, var(--code-fg) 14%, var(--code)); border-radius: 12px; background: var(--code); color: var(--code-fg); }
.term pre { margin: 0; padding: 15px 98px 15px 18px; overflow-x: auto; font: 400 13px/1.75 var(--fm); white-space: pre; }
.term code { padding: 0; background: none; font: inherit; }
.term .p { color: var(--code-mut); user-select: none; -webkit-user-select: none; }
.term .f { color: var(--code-mut); color: color-mix(in srgb, var(--code-fg) 66%, var(--code)); }
.term .s { color: var(--code-acc); }
.term .copy { position: absolute; top: 9px; right: 9px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--code-mut); border-color: color-mix(in srgb, var(--code-fg) 24%, var(--code)); border-radius: 8px; background: var(--code); color: var(--code-fg); font: 500 12px/1 var(--fb); cursor: pointer; }
.term .copy:hover { border-color: var(--code-fg); }
.term.is-copied .copy { border-color: var(--code-acc); color: var(--code-acc); }
.term .copy:focus-visible { outline-color: var(--code-acc); }
/* On narrow screens the button gets a strip of its own, so a long line never runs under it. */
@media (max-width: 860px) {
  .term pre { padding-right: 18px; }
  .js .term pre { padding-top: 46px; }
}
.try { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 40px; align-items: center; margin-top: 44px; padding: 26px 28px; border: 1px solid var(--line2); border-radius: 14px; }
.try h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.try p { margin: 8px 0 12px; color: var(--mut); font-size: 15px; }
@media (max-width: 860px) { .try { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* Thin scrollbars on dark blocks: the terminals, the sample report's and the docs' code. */
.term pre, .terminal pre, .code > pre { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--code-fg) 30%, transparent) transparent; }
@supports selector(::-webkit-scrollbar) {
  .term pre, .terminal pre, .code > pre { scrollbar-width: auto; scrollbar-color: auto; }
  .term pre::-webkit-scrollbar, .terminal pre::-webkit-scrollbar, .code > pre::-webkit-scrollbar { height: 12px; }
  .term pre::-webkit-scrollbar-track, .terminal pre::-webkit-scrollbar-track, .code > pre::-webkit-scrollbar-track { background: transparent; }
  .term pre::-webkit-scrollbar-thumb, .terminal pre::-webkit-scrollbar-thumb, .code > pre::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 12px; background: color-mix(in srgb, var(--code-fg) 30%, transparent); background-clip: padding-box; }
  .term pre::-webkit-scrollbar-thumb:hover, .terminal pre::-webkit-scrollbar-thumb:hover, .code > pre::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--code-fg) 50%, transparent); }
  .term pre::-webkit-scrollbar-button, .term pre::-webkit-scrollbar-corner, .terminal pre::-webkit-scrollbar-button, .terminal pre::-webkit-scrollbar-corner, .code > pre::-webkit-scrollbar-button, .code > pre::-webkit-scrollbar-corner { display: none; }
}

/* Safe to point at production */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.four h3 { margin: 0; padding-top: 16px; border-top: 1.5px solid var(--fg); font-size: 17px; }
.four p { margin: 8px 0 0; color: var(--mut); font-size: 14.5px; }
@media (max-width: 940px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .four { grid-template-columns: minmax(0, 1fr); } }
.works-line { max-width: 52em; margin: 44px auto 0; color: var(--mut); font: 400 13px/1.7 var(--fm); text-align: center; }

/* The home page's plan cards */
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line2); border-radius: 14px; }
.plan-card { display: flex; flex-direction: column; padding: 26px 26px 28px; border-left: 1px solid var(--line); }
.plan-card:first-child { border-left: 0; }
.plan-card.featured { background: var(--card); }
.plan-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 16px; }
.plan-card .amount { margin: 14px 0 0; font-size: 42px; }
.plan-card .per { margin: 6px 0 0; }
.plan-card ul { margin: 16px 0 20px; }
.plan-action { display: grid; justify-items: start; gap: 8px; margin-top: auto; }
.plan-action .per { margin: 0; }
@media (max-width: 860px) {
  .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .plan-card { border-top: 1px solid var(--line); border-left: 0; }
  .plan-card:first-child { border-top: 0; }
}

/* Plans: the pricing page's comparison table; it scrolls inside its frame on small screens. */
.plans { overflow-x: auto; border: 1px solid var(--line2); border-radius: 14px; }
.plans table { min-width: 780px; }
.plans th, .plans td { padding: 18px 22px; border-top: 1px solid var(--line); border-bottom: 0; vertical-align: top; }
.plans thead th, .plans thead td { padding-top: 24px; border-top: 0; background: none; color: var(--fg); font: inherit; }
.plans tbody th { position: sticky; left: 0; z-index: 1; width: 160px; background: var(--bg); color: var(--mut); font-size: 14px; font-weight: 600; }
.plans td:not(:first-child), .plans thead th { border-left: 1px solid var(--line); }
.plans .featured { background: var(--card); }
.plans td > .tier { display: flex; margin: 16px 0 10px; }
.plans tr:last-child td { padding-bottom: 24px; }
.plans .button { white-space: nowrap; }
.plan-name { display: block; margin-bottom: 10px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.amount { display: block; margin: 0; color: var(--fg); font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.per { display: block; margin-top: 8px; color: var(--mut); font-size: 13px; }
.plans ul, .plan-card ul { display: grid; gap: 6px; padding: 0; font-size: 14.5px; line-height: 1.5; list-style: none; }
.plans ul { margin: 0; }
.plans li, .plan-card li { position: relative; padding-left: 16px; }
.plans li::before, .plan-card li::before { content: ""; position: absolute; top: .62em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }
/* The closed-source note's marker on Pro and Agency. */
.fn { margin-left: 2px; color: var(--acc-ink); font-size: .7em; font-weight: 700; line-height: 0; text-decoration: none; vertical-align: super; }
.fn:hover { text-decoration: underline; }
.fine-print { max-width: 100ch; margin: 18px 0 0; color: var(--mut); font-size: 13px; }
.fine-print + .fine-print { margin-top: 6px; }
#pricing .fine-print { max-width: 60em; margin-inline: auto; text-align: center; }

/* FAQ */
.faq { border-top: 1.5px solid var(--fg); }
.faq-short { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17.5px; font-weight: 600; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--mut); font: 300 24px/1 var(--fb); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { max-width: 68ch; padding-bottom: 20px; color: var(--mut); }
.faq details > div > :last-child { margin-bottom: 0; }

/* Forms: the beta's sign-up, sign-in, confirming and renewing */
.reserve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.reserve > div > p { color: var(--mut); font-size: 17px; }
@media (max-width: 900px) { .reserve { grid-template-columns: minmax(0, 1fr); } }
/* The home page's sign-up: the email address and the button on one row, the optional fields below. */
.signup { max-width: 700px; }
.signup .sec-head p + p { font-size: 15px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input { flex: 1 1 240px; width: auto; }
.field-row .button { flex: 0 0 auto; min-height: 50px; }
@media (max-width: 520px) { .field-row .button { flex: 1 1 100%; } }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field legend { padding: 0; font-size: 14.5px; font-weight: 600; }
.field legend { margin-bottom: 10px; }
.hint { color: var(--mut); font-weight: 400; }
.form > p, .field p.hint { margin: 0; font-size: 14px; }
.form > p.muted { font-size: 14px; }
input[type="email"], input[type="text"], select { width: 100%; min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--fg); font: 16px var(--fb); }
select { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: var(--mut); }
input:focus, select:focus { border-color: var(--acc); outline: none; }
input:focus-visible, select:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 2px; }
/* The licence page's paste box (download/licence_file.html.twig), in the inputs' style; a licence line is long, so it wraps anywhere. */
.licence-form textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--fm); word-break: break-all; resize: vertical; }
.licence-form textarea:focus { border-color: var(--acc); outline: none; }
.licence-form textarea:focus-visible { outline: 2.5px solid var(--acc); outline-offset: 2px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
/* Radio choices as chips: the input sits under the label, invisible but focusable. */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; padding: 9px 14px; border: 1.5px solid var(--line2); border-radius: 10px; color: var(--mut); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.choice:hover { border-color: var(--fg); color: var(--fg); }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--btn); background: var(--btn); color: var(--on-btn); }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--acc); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--mut); font-size: 14.5px; font-weight: 400 !important; }
.consent input { margin-top: .25rem; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--fg); }
.error { color: var(--red); font-size: 14px; font-weight: 600; }
.form-error { margin: 0; padding: 12px 16px; border: 1.5px solid var(--red); border-radius: 10px; color: var(--red); font-size: 15px; }

/* Notices */
.notice { margin: 16px 0; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 0 10px 10px 0; background: var(--card); }
.notice-warn { border-left-color: var(--red); }
.notice p:last-child { margin-bottom: 0; }
.dev-only { margin: 16px 0; padding: 14px 18px; border: 1.5px dashed var(--acc); border-radius: 10px; background: var(--card); font-size: 15px; word-break: break-all; }

/* Long-form pages: the legal text, the sample report, the guides, the account */
.prose { padding: 56px 0 96px; }
.prose h1 { margin-bottom: 1.2rem; }
.prose h2 { max-width: 34ch; margin: 2em 0 .8rem; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.025em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .3rem; }
.meta { color: var(--mut); }
.prose .guide-list { margin: 28px 0 0; padding: 0; list-style: none; }
.prose .guide-list li { margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.prose .guide-list h2 { margin-top: 0; }
.prose .guide-list h2 a { text-decoration: none; }
.prose .guide-list h2 a:hover { color: var(--acc-ink); }
.guide pre { margin: 18px 0; padding: 16px 20px; overflow-x: auto; border-radius: 12px; background: var(--code); color: var(--code-fg); font-size: 13px; line-height: 1.75; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--mut); font-size: 13.5px; font-weight: 600; }
thead th { background: var(--card); font: 500 11.5px/1.3 var(--fm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: 14px; }
.table-wrap tr:last-child td, .table-wrap tbody tr:last-child th { border-bottom: 0; }
/* The admin panel's server-drawn SVG charts: their colours are currentColor, so they follow the theme. */
.chart { display: block; max-width: 100%; height: auto; color: var(--fg); }
.spark { display: block; color: var(--acc-ink); }
.sev { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sev-critical { background: var(--red-tint); color: var(--red); }
.sev-high { background: var(--orange-tint); color: var(--orange); }
.sev-medium { background: var(--amber-tint); color: var(--amber); }

/* Real scanner output, on the sample-report page only. */
.terminal { margin-top: 24px; border: 1px solid var(--code); border-color: color-mix(in srgb, var(--code-fg) 14%, var(--code)); border-radius: 12px; background: var(--code); color: var(--code-fg); }
.terminal-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 18px; border-bottom: 1px solid var(--code-mut); border-bottom-color: color-mix(in srgb, var(--code-fg) 14%, var(--code)); color: var(--code-mut); font: 500 12px/1.4 var(--fm); }
.terminal pre { margin: 0; padding: 16px 18px 20px; overflow-x: auto; font: 400 12.5px/1.75 var(--fm); }
.terminal .dim, .terminal .low { color: var(--code-mut); }
.terminal .critical { color: #ff8a7a; font-weight: 700; }
.terminal .high { color: #ffb86b; font-weight: 700; }
.terminal .medium { color: #e8d67e; }

/* The account: licences, the beta, downloads */
.licence { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.licence + .licence { margin-top: 16px; }
.licence dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0 0; font-size: 15px; }
.licence dt { padding-top: 2px; color: var(--mut); font-size: 13.5px; }
.licence dd { margin: 0; }
@media (max-width: 640px) { .licence { grid-template-columns: minmax(0, 1fr); } }
.status-active, .status-expired, .status-draft { margin-left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-active { background: var(--acc-tint); color: var(--acc-ink); }
.status-expired { background: var(--card); color: var(--mut); }
.status-draft { background: var(--amber-tint); color: var(--amber); }

/* Pro downloads, on the account page and an emailed link's page. Positioned, so the hidden column
   heading stays inside the table's scrolling frame instead of widening the page. */
.release-table { position: relative; }
.downloads th[scope="row"] { color: var(--fg); font-size: 15px; white-space: nowrap; }
.downloads th, .downloads td { vertical-align: middle; }
.downloads .hash { display: block; padding: 0; background: none; overflow-wrap: anywhere; font-size: 11.5px; }
.downloads form, .release-files form { margin: 0; }
/* On a phone, each build is a block: system, file, size and hash, then its button. */
@media (max-width: 640px) {
  .downloads thead { display: none; }
  .downloads, .downloads tbody, .downloads tr, .downloads th, .downloads td { display: block; }
  .downloads tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .downloads tr:last-child { border-bottom: 0; }
  .downloads th, .downloads td { padding: 0; border: 0; }
  .downloads td { margin-top: 6px; }
  .downloads td:last-child { margin-top: 12px; }
}
.release-files { margin: 16px 0 8px; }
.release-text { margin: 14px 0; padding: 14px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 12.5px/1.7 var(--fm); white-space: pre-wrap; overflow-wrap: anywhere; }
.release-details { margin: 18px 0; }
.release-details summary { font-weight: 600; cursor: pointer; }

/* Docs: /docs and every docs page */

/* The frame's own grid, up to 1440px, wider than .container. Below 900px the page alone, under a Docs
   menu that opens without script; from 900px the sidebar beside it; from 1400px On this page as well,
   which leaves the page 874px at a 1440px window. tests/Controller/DocsLayoutTest.php reads these. */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1440px; margin-inline: auto; padding-block: 24px 80px; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.docs-sidebar, .docs-toc { display: none; }
.docs-main { min-width: 0; }
@media (min-width: 900px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; padding-block: 36px 104px; }
  .docs-menu { display: none; }
  .docs-sidebar { display: block; grid-column: 1; }
  .docs-main { grid-column: 2; }
}
@media (min-width: 1400px) {
  .docs { grid-template-columns: 240px minmax(0, 1fr) 190px; column-gap: 48px; }
  .docs-toc { display: block; grid-column: 3; }
}
/* Both stay in view as the page scrolls, and scroll on their own when taller than the window; the
   padding keeps a focused link's outline inside the box that scrolls. */
.docs-sidebar, .docs-toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); margin: -6px; padding: 6px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }

/* Small labels, in the mono the site's tags and table headings use: the sidebar's section titles, On
   this page, callout titles and terms. */
.docs-nav-title, .docs-toc-title, .docs-body .callout-title, .docs-body dt { color: var(--mut); font: 500 12px/1.4 var(--fm); }

/* The sidebar, and the same links in the Docs menu. The page being read takes the accent's tint. These
   and On this page's are lists of pages, so .docs outweighs the accent of links in running text
   (main :is(p, li, dd, td) a). */
.docs-nav { font-size: 14.5px; line-height: 1.35; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.docs .docs-nav a { color: var(--fg); }
.docs-nav > a { font-weight: 600; }
.docs-nav a:hover { background: var(--card); }
.docs-nav a[aria-current="page"] { background: var(--acc-tint); color: var(--acc-ink); font-weight: 600; }
.docs-nav a:focus-visible { border-radius: 8px; }
.docs-nav-title { margin: 20px 10px 6px; }
.docs-nav ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.docs-menu { margin-bottom: 24px; border: 1px solid var(--line2); border-radius: 12px; }
.docs-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 16px; border-radius: 11px; font-weight: 600; list-style: none; cursor: pointer; }
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: -4px 4px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s, margin .2s; }
.docs-menu summary:focus-visible { border-radius: 11px; outline-offset: 2px; }
.docs-menu[open] summary { margin-bottom: 6px; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; }
.docs-menu[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.docs-menu .docs-nav { padding: 0 8px 10px; font-size: 15.5px; }
.docs-menu .docs-nav a { padding: 9px 10px; }

.docs-toc nav { padding-left: 14px; border-left: 1px solid var(--line); }
.docs-toc-title { margin: 0 0 8px; }
.docs-toc ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.35; }
.docs-toc a { display: block; padding: 4px 0; text-decoration: none; }
.docs .docs-toc a { color: var(--mut); }
.docs .docs-toc a:hover { color: var(--fg); }

/* The page's title and its release stamp, a tag like the site's others; and /docs's pages, as cards. */
.docs h1 { margin: 0 0 14px; font-size: clamp(30px, 2.8vw, 40px); }
.docs-header { margin-bottom: 32px; }
.docs-header .eyebrow { margin-bottom: 16px; }
.docs-stamp { width: fit-content; max-width: 100%; margin: 0; padding: 4px 10px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); color: var(--mut); font: 500 11.5px/1.4 var(--fm); }
.docs-main > .meta { max-width: 62ch; margin-bottom: 28px; font-size: 17px; }
.docs-main .guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.docs-main .guide-list li { position: relative; padding: 20px 22px; border: 1px solid var(--line2); border-radius: 14px; transition: border-color .15s; }
.docs-main .guide-list li:hover, .docs-main .guide-list li:focus-within { border-color: var(--fg); }
.docs-main .guide-list h2 { max-width: none; margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.docs-main .guide-list a { text-decoration: none; }
/* The whole card takes the title's link. */
.docs-main .guide-list a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.docs-main .guide-list p { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.5; }

/* The text runs to 80ch; code, tables and callouts take the column's whole width. */
.docs-body { line-height: 1.65; overflow-wrap: break-word; }
.docs-body > :first-child { margin-top: 0; }
.docs-body p, .docs-body li, .docs-body dd { max-width: 80ch; text-wrap: pretty; }
.docs-body li:has(> .code, > .tabs) { max-width: none; }
.docs-body h2 { max-width: 34ch; margin: 2em 0 .7em; font-size: clamp(22px, 1.2vw + 10px, 27px); letter-spacing: -.025em; line-height: 1.15; }
.docs-body h3 { margin: 1.8em 0 .5em; font-size: 18px; line-height: 1.3; }
.docs-body h4 { margin: 1.5em 0 .5em; font-size: 16px; }
.docs-body [id] { scroll-margin-top: 20px; }
.docs-body ul, .docs-body ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.docs-body li + li { margin-top: .45rem; }
.docs-body li::marker { color: var(--mut); }
.docs-body strong { font-weight: 650; }
.docs-body a { color: var(--acc-ink); text-decoration-color: var(--acc-line); text-decoration-thickness: 1px; }
.docs-body a:hover { text-decoration-color: currentColor; }
/* A flag or a file name broken at a hyphen reads as two words, so inline code keeps to one line from 1000px,
   where the text's column is at least 700px: the longest today, 67 characters, takes 573px in Geist Mono.
   Below that it wraps, or it would run out of the column (560px at 600px, 600px at 900px). */
@media (min-width: 1000px) { .docs-body :not(pre) > code { white-space: nowrap; } }
.docs-body blockquote { margin: 18px 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--line2); color: var(--mut); }
.docs-body dl { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 1.2rem; }
.docs-body dt { padding-top: 4px; }
.docs-body dd { margin: 0 0 10px; }
@media (min-width: 600px) {
  .docs-body dl { grid-template-columns: fit-content(14rem) minmax(0, 1fr); gap: 10px 20px; align-items: baseline; }
  .docs-body dt { grid-column: 1; padding-top: 0; }
  .docs-body dd { grid-column: 2; margin: 0; }
}
/* A table scrolls sideways in its own box, never the page; its headings are the site's (thead th). */
.docs-body table { display: block; width: fit-content; max-width: 100%; margin: 18px 0 22px; overflow-x: auto; border: 1px solid var(--line2); border-radius: 12px; font-size: 14.5px; }
.docs-body th, .docs-body td { padding: 10px 14px; }
.docs-body th, .docs-body td code { white-space: nowrap; }
.docs-body tr:last-child > td { border-bottom: 0; }

/* Code: a dark block in both themes, as the home page's terminals are, with a bar along its top for the
   language (data-lang) and the Copy button (copy_controller.js). The bar is the button's height from the
   start, so nothing moves when the button arrives; without JavaScript a block with no language has none.
   On the dark ground: commands bright, flags quieter and strings in the accent, as on the home page;
   names (keys, keywords, variables) gold; values (numbers, booleans) in the accent too. */
.docs-body .code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 16px 0 20px; border: 1px solid var(--code); border-color: color-mix(in srgb, var(--code-fg) 14%, var(--code)); border-radius: 12px; background: var(--code); color: var(--code-fg); }
.docs-body .code::before { content: attr(data-lang); grid-row: 1; grid-column: 1; padding: 0 18px; color: var(--code-mut); font: 500 12px/42px var(--fm); }
.docs-body .code:not([data-lang])::before { content: none; }
.js .docs-body .code:not([data-lang])::before { content: ""; }
.docs-body .code > pre { grid-row: 2; grid-column: 1 / -1; min-width: 0; margin: 0; padding: 14px 18px 16px; overflow-x: auto; border-top: 1px solid var(--code); border-top-color: color-mix(in srgb, var(--code-fg) 14%, var(--code)); border-radius: 0; background: none; color: inherit; font: 400 13px/1.7 var(--fm); }
html:not(.js) .docs-body .code:not([data-lang]) > pre { border-top: 0; }
.docs-body .code code { font-size: inherit; }
.docs-body .code .copy { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 6px 6px 6px 12px; padding: 0 10px; border: 1px solid var(--code-mut); border-color: color-mix(in srgb, var(--code-fg) 24%, var(--code)); border-radius: 8px; background: var(--code); color: var(--code-fg); font: 500 12px/1 var(--fb); cursor: pointer; }
.docs-body .code .copy:hover { border-color: var(--code-fg); }
.docs-body .code.is-copied .copy { border-color: var(--code-acc); color: var(--code-acc); }
.docs-body .code .copy:focus-visible { border-radius: 8px; outline-color: var(--code-acc); }
.docs-body .tok-prompt, .docs-body .tok-comment, .docs-body .tok-punctuation { color: var(--code-mut); }
.docs-body .tok-command { font-weight: 600; }
.docs-body .tok-flag { color: var(--code-mut); color: color-mix(in srgb, var(--code-fg) 66%, var(--code)); }
.docs-body .tok-string, .docs-body .tok-number, .docs-body .tok-boolean, .docs-body .tok-literal { color: var(--code-acc); }
.docs-body .tok-key, .docs-body .tok-keyword, .docs-body .tok-variable { color: var(--code-two); }
/* A terminal session: the prompt and the command bright, what it printed dimmed, warnings and errors in
   the scan report's colours, as are its severities (.terminal above). The site's .error is for forms. */
.docs-body .terminal .tok-prompt { color: var(--code-fg); }
.docs-body .terminal .warning { color: var(--code-orange); }
.docs-body .terminal .error { color: var(--code-red); font-size: inherit; font-weight: inherit; }

/* Callouts: the site's notice, a card with a rule down its left side: neutral for a note, the accent for
   a tip, the report's orange for careful. */
.docs-body .callout { margin: 20px 0; padding: 14px 18px 16px; border: 1px solid var(--line); border-left: 3px solid var(--mut); border-radius: 0 10px 10px 0; background: var(--card); }
.docs-body .callout > :last-child { margin-bottom: 0; }
.docs-body .callout-title { margin: 0 0 6px; }
.docs-body .callout-tip { border-left-color: var(--acc); }
.docs-body .callout-tip .callout-title { color: var(--acc-ink); }
.docs-body .callout-careful { border-left-color: var(--orange); }
.docs-body .callout-careful .callout-title { color: var(--orange); }
.docs-body .callout :not(pre) > code { background: var(--bg); }

/* OS tabs: without JavaScript every panel shows under its label; tabs_controller.js adds the row of
   tabs, the site's chips as on the beta form, and hides the other panels with the hidden attribute. */
.docs-body .tabs { margin: 16px 0 20px; }
.docs-body .tab-label { margin: 18px 0 8px; font-size: 14px; font-weight: 600; }
.docs-body .tabs > .tab-panel:first-child > .tab-label { margin-top: 0; }
.docs-body .tab-panel > .code { margin: 0; }
.docs-body .tab-panel:focus-visible { border-radius: 12px; }
.docs-body .tab-list { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin-bottom: 10px; }
.docs-body .tab { min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line2); border-radius: 10px; background: transparent; color: var(--mut); font: 500 14px/1 var(--fb); cursor: pointer; }
.docs-body .tab:hover { border-color: var(--fg); color: var(--fg); }
.docs-body .tab[aria-selected="true"] { border-color: var(--btn); background: var(--btn); color: var(--on-btn); }
.docs-body .tab:focus-visible { border-radius: 10px; }

/* Steps: each item's number light and in the accent, as on the home page, a rule down to the next, and
   its heading beside it. counter(list-item) follows the list's start. */
.docs-body ol.steps { margin: 24px 0; padding: 0; list-style: none; }
.docs-body ol.steps > li { position: relative; max-width: none; margin: 0; padding: 0 0 20px 48px; }
.docs-body ol.steps > li::before { content: counter(list-item); position: absolute; top: -2px; left: 0; width: 30px; color: var(--acc-ink); font: 300 28px/1 var(--fb); letter-spacing: -.04em; font-variant-numeric: tabular-nums; text-align: center; }
.docs-body ol.steps > li:not(:last-child)::after { content: ""; position: absolute; top: 36px; bottom: 6px; left: 14.5px; width: 1px; background: var(--line2); }
.docs-body ol.steps > li > h3 { margin: 0 0 8px; padding-top: 3px; }

/* Previous on the left, next on the right. */
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.docs-pager a { display: grid; align-content: start; gap: 4px; padding: 14px 18px 16px; border: 1px solid var(--line2); border-radius: 12px; color: var(--mut); font-size: 13.5px; line-height: 1.3; text-decoration: none; transition: border-color .15s; }
.docs-pager a span { color: var(--fg); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.docs-pager a:hover { border-color: var(--fg); }
.docs-pager a:hover span { color: var(--acc-ink); }
.docs-pager a:focus-visible { border-radius: 12px; }
.docs-pager a[rel="next"] { grid-column: 2; text-align: right; }
@media (max-width: 599px) {
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager a[rel="next"] { grid-column: auto; }
}

/* On paper the page alone, without its navigation. */
@media print {
  .docs { display: block; padding-block: 0; }
  .docs-menu, .docs-sidebar, .docs-toc, .docs-pager { display: none !important; }
}

.nowrap { white-space: nowrap; }
.mt { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Print: Plain, whatever the theme on screen, since paper is white and browsers leave out backgrounds.
   The selectors match the Ink rules' weight, so they win by coming last. Terminals print as dark text
   on white, and the controls that only work on screen are left out. */
@media print {
  :root, :root[data-mode="ink"] {
    --bg: #ffffff; --card: #f4f4f4; --fg: #111111; --mut: #5f5f5f; --line: #e3e3e3; --line2: #c6c6c6;
    --acc: #0000ee; --acc-ink: #0000ee; --acc-tint: #e8e8ff; --acc-line: #b3b3ff;
    --two-ink: #551a8b; --two-tint: #efe6f7; --two-line: #c9b0e0;
    --btn: #111111; --on-btn: #ffffff;
    --code: #ffffff; --code-fg: #111111; --code-mut: #5f5f5f; --code-acc: #0000ee;
    --code-two: #551a8b; --code-orange: #b54708; --code-red: #b42318;
    --red: #b42318; --red-tint: #fde8e6; --orange: #b54708; --orange-tint: #fdf0e1; --amber: #7a5d00; --amber-tint: #f8f1d2;
    color-scheme: light;
  }
  .hero-dots, .theme-button, .menu-button, .header-cta, .copy, .skip-link { display: none !important; }
  .term, .terminal { border-color: var(--line2); }
  .terminal .critical, .terminal .high, .terminal .medium { color: inherit; }
  .bp .tk, .bp .tk .fa, .bp .tk .fb { animation: none; opacity: 1; }
  .bp .tk { transform: translateX(280px); }
  .bp .tk .fa { transform: translateX(-206px); }
  .bp .tk .fb { transform: translateX(206px); }
}
