/* ValtronOS — a working instrument for security operations.
   One family (Atkinson Hyperlegible, designed so 0/O and 1/l/I never get
   confused: URLs, IPs, keys and codes are read all day here). Cool paper, ink,
   one action colour (pine), and status colours that only ever mean status.
   No decorative cards, shadows or gradients: rules and spacing carry structure.
   The one loud element is the security grade on the overview. */

@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f6f7f5;
  --surface: #ffffff;
  --ink: #17202a;
  --slate: #56636f;
  --line: #d6dbda;
  --line-soft: #e7eae9;
  --pine: #1f5c52;
  --pine-dark: #17463f;
  --alert: #b42318;
  --alert-soft: #fdf0ee;
  --watch: #9a5b05;
  --watch-soft: #fdf6e7;
  --clear: #2f7d4f;
  --nav: #18242b;
  --nav-text: #c9d4d2;
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
a { color: var(--pine); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 2px; }
/* Scrollbars: the menu scrolls without a visible bar; the page keeps a thin,
   faint thumb that darkens only on hover, so scrolling stays discoverable. */
.sidebar::-webkit-scrollbar { display: none; }
html { scrollbar-width: thin; scrollbar-color: rgba(23, 32, 42, .14) transparent; }
html:hover { scrollbar-color: rgba(23, 32, 42, .28) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(23, 32, 42, .14); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(23, 32, 42, .3); }
::-webkit-scrollbar-button { display: none; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Navigation: grouped by the job being done. */
.sidebar { background: var(--nav); color: var(--nav-text); display: flex; flex-direction: column; padding: 22px 16px; gap: 20px; scrollbar-width: none;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { color: #fff; font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: .06em; padding: 0 10px; }
.brand span { color: #81d9bf; }
/* The V1 mark: four diamonds, in the colour of "OS" wherever the name appears. */
.brand, .brand-dark { display: inline-flex; align-items: center; }
.brand-mark { margin-right: 9px; }
.brand .brand-mark { color: #81d9bf; flex: none; }
.brand-dark .brand-mark { color: var(--pine); flex: none; }
nav { display: grid; gap: 1px; }
.nav-group { margin: 18px 10px 6px; font-size: 13px; color: #8a9a9a; }
.nav-group:first-child { margin-top: 0; }
nav a { color: var(--nav-text); text-decoration: none; padding: 7px 10px; border-radius: 4px; display: flex; align-items: center; gap: 8px; }
nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
nav a[aria-current="page"] { color: #fff; background: rgba(129, 217, 191, .14); box-shadow: inset 3px 0 0 #81d9bf; }
.profile { margin-top: auto; display: grid; gap: 6px; padding: 0 10px; }
.profile label { color: #8a9a9a; font-weight: 400; font-size: 13px; }
.profile select, .profile button { width: 100%; }
#logout { background: transparent; border-color: #4a5a60; color: var(--nav-text); }
#logout:hover { border-color: var(--nav-text); color: #fff; }
.badge { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: var(--alert); color: #fff; font-size: 12px; line-height: 1.6; text-align: center; }

/* Page */
main { width: 100%; max-width: 1180px; padding: 36px clamp(20px, 4vw, 56px) 64px; }
header { margin-bottom: 24px; }
#organization { margin: 0 0 4px; color: var(--slate); font-size: 14px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1:focus { outline: none; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 16px; margin: 0 0 10px; }
section { display: none; }
section.route-active { display: block; }
#login-form { max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
#login-form input { display: block; width: 100%; margin-bottom: 14px; }

/* The page title already names the section: its own heading is kept for
   assistive technology only, while its actions stay visible. */
main > section > .section-title { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: -8px 0 16px; min-height: 0; }
main > section > .section-title h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main > section > p:first-of-type { color: var(--slate); margin: 0 0 20px; max-width: 72ch; }

/* Forms and buttons */
form { margin-bottom: 20px; }
label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select, textarea, button { font: inherit; font-size: 15px; padding: 8px 11px; border: 1px solid #93a1a6; border-radius: 4px; background: var(--surface); color: var(--ink); }
input { flex: 1; min-width: min(100%, 220px); }
input[type="checkbox"], input[type="radio"] { flex: none; min-width: 0; width: auto; padding: 0; accent-color: var(--pine); }
textarea { width: 100%; }
button { background: var(--pine); color: #fff; border-color: var(--pine); cursor: pointer; font-weight: 700; }
button:hover { background: var(--pine-dark); border-color: var(--pine-dark); }
button:disabled { opacity: .6; cursor: wait; }
button.secondary, #events-more { background: var(--surface); color: var(--pine); border-color: var(--pine); }
button.danger { background: var(--surface); color: var(--alert); border-color: var(--alert); margin-left: 8px; }
button.danger:hover { background: var(--alert-soft); }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 12px; margin: 0 0 12px; }
details > summary { cursor: pointer; color: var(--pine); font-weight: 700; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: var(--surface); padding: 8px; z-index: 2; }
.skip:focus { transform: none; }

/* Tables and lists: hairline rows, no boxes. */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
/* An empty table shows one line of direction, aligned with the heading above it,
   not a sentence floating in the middle of a full-width table. */
table > caption:only-child { caption-side: top; text-align: left; color: var(--slate); padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; overflow-wrap: break-word; }
th { color: var(--slate); font-size: 13px; font-weight: 700; border-bottom-color: var(--line); white-space: nowrap; }
td button { white-space: nowrap; }
td code, code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
#notice { color: var(--slate); }
.monitor-state { display: block; font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.proof-button { display: block; margin-top: 10px; }
.domain-proof { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, #d0d5dd); }
.domain-attestation { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 14px; max-width: 60ch; }
.domain-attestation input { margin-top: 3px; }
.domain-extend { margin-top: 8px; }
.host-address { margin-bottom: 6px; }
.host-address small { color: var(--slate); }
.domain-extend summary { cursor: pointer; color: var(--slate); }
.finding-reproduction { margin-top: 6px; } .finding-reproduction pre { white-space: pre-wrap; word-break: break-all; font-size: 11px; }
.finding-references { margin: 4px 0 0; font-size: 11px; color: var(--muted, #5b6670); }
.proof-pending { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--watch); background: var(--watch-soft); }
.proof-pending p { margin: 2px 0; }
.asset-preview { margin-top: 10px; }
.asset-preview summary { cursor: pointer; font-weight: 600; }
.asset-preview ul { margin: 6px 0; padding-left: 18px; }
.platform-site { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.platform-site input { width: 100%; margin: 4px 0; }
.severity-critical, .severity-high { color: var(--alert); font-weight: 700; }
.severity-medium { color: var(--watch); font-weight: 700; }
.severity-low, .severity-info { color: var(--slate); }
.example { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px; font-size: 13px; overflow-x: auto; white-space: pre; }

/* Activity log */
#events { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
#events li { display: grid; grid-template-columns: 17ch 1fr; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
#events li:first-child { border-top: 0; }
#events time { color: var(--slate); font-size: 14px; }
#events-more { margin-top: 12px; }

/* Documents */
#document-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
#document-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line-soft); overflow-wrap: anywhere; }
#document-list li:first-child { border-top: 0; }

/* Account security */
#security h3 { margin: 32px 0 10px; }
#password-form input, #recovery-form input { display: block; width: 100%; max-width: 420px; margin-bottom: 12px; }
#password-form p { margin: -6px 0 12px; }
.recovery-list { font-family: ui-monospace, Consolas, monospace; columns: 2; max-width: 420px; padding-left: 28px; }
#alerts-preference label.inline { display: flex; gap: 8px; align-items: center; font-weight: 400; margin-top: 16px; }
#alerts-preference input { width: auto; flex: none; }

/* Incidents, sources, servers */
.incident-list { list-style: none; padding: 0; margin: 0; }
.incident-list > li { border-top: 1px solid var(--line); padding: 14px 0; }
.incident-list > li:first-child { border-top: 0; }
.incident-list .unread > p:first-child { font-weight: 700; }
.incident-list .unread { box-shadow: inset 3px 0 0 var(--pine); padding-left: 12px; }
.incident-list table { font-size: 14px; margin-top: 6px; }
.incident-list td, .incident-list th { padding: 5px 8px; word-break: break-word; }
.incident-list p { margin: 0 0 4px; }
.incident-heading { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.incident-heading span { overflow-wrap: anywhere; }
.incident-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--slate); font-size: 14px; }
.evidence { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.evidence li { border-top: 1px solid var(--line-soft); padding: 6px 0; }
.evidence p { margin: 2px 0; color: var(--slate); }

/* API checks and missions */
#api-form input, #api-form select { display: block; width: 100%; max-width: 520px; margin-bottom: 12px; }
#api-form fieldset { max-width: 520px; }
#api-form label.inline { display: flex; gap: 8px; align-items: center; font-weight: 400; }
#api-form label.inline input { width: auto; margin: 0; }
#mission-form input, #mission-form textarea { display: block; width: 100%; max-width: 620px; margin-bottom: 12px; }
#mission-form fieldset { max-width: 620px; }
#mission-scope label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
#mission-scope input { width: auto; flex: none; min-width: 0; margin: 0; }
.mission-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.finding-form { display: grid; gap: 8px; max-width: 620px; margin-top: 8px; }

/* Creation forms stay folded until asked for. */
details.create { margin: 0 0 20px; }
details.create:has(> form[hidden]) { display: none; }
details.create > summary { display: inline-block; list-style: none; background: var(--pine); color: #fff; padding: 8px 14px; border-radius: 4px; }
details.create > summary::-webkit-details-marker { display: none; }
details.create > summary:hover { background: var(--pine-dark); }
details.create[open] > summary { background: var(--surface); color: var(--pine); border: 1px solid var(--pine); margin-bottom: 14px; }
details.create > form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; margin: 0; }
section h3 { margin-top: 28px; }
.overview-panel h3:first-child, .overview-wide h3:first-child, #mission-list h3 { margin-top: 0; }
tr.muted td { color: var(--slate); }
td small { display: block; color: var(--slate); font-size: 13px; }
td select[multiple] { display: block; min-width: 220px; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 6px 0 0; font-size: 14px; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Missions */
#mission-list { list-style: none; padding: 0; margin: 0; }
#mission-list > .mission { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.mission-heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mission-heading h3 { margin: 0; font-size: 18px; }
.mission-status { font-size: 13px; font-weight: 700; padding: 1px 8px; border-radius: 4px; background: var(--line-soft); color: var(--slate); }
.mission-in_progress { background: #e7f0ee; color: var(--pine); }
.mission-reported { background: var(--watch-soft); color: var(--watch); }
.mission table { margin-top: 12px; }
.mission table td:nth-child(2), .mission table td:nth-child(4) { white-space: nowrap; }
.mission table td:nth-child(3) { font-size: 13px; overflow-wrap: anywhere; min-width: 12ch; }
.mission table td:last-child { white-space: nowrap; }
.mission table td:last-child button { display: block; margin: 0 0 6px; width: 100%; }
.mission > p { margin: 8px 0; }

.signed-reports { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.signed-reports ul { list-style: none; padding: 0; margin: 8px 0; }
.signed-reports li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.signed-reports li span { color: var(--slate); }

.mission-automated { background: #e8eef7; color: #2b4f80; }
.campaign-runs { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.campaign-run > p { display: flex; gap: 12px; align-items: baseline; margin: 8px 0 4px; }
.campaign-run > p span { color: var(--slate); font-size: 14px; }
.coverage-tested { color: var(--clear); font-weight: 700; }
.coverage-partial { color: var(--watch); font-weight: 700; }
.coverage-unreachable, .coverage-not_tested { color: var(--alert); font-weight: 700; }
.run-diff { margin-top: 12px; }
.run-diff h4 { margin: 0 0 6px; font-size: 15px; }
.diff-new, .diff-regressed { color: var(--alert); font-weight: 700; }
.diff-fixed { color: var(--clear); font-weight: 700; }
.surface-appeared { color: var(--alert); font-weight: 700; }
.surface-disappeared { color: var(--clear); font-weight: 700; }
.surface-unobserved { color: var(--watch); font-weight: 700; }
.surface-hint { color: var(--slate); margin-top: 6px; }
.diff-not_retestable { color: var(--watch); font-weight: 700; }
.campaign-hook { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.campaign-hook h4 { margin: 0 0 4px; font-size: 15px; }
.campaign-hook p { margin: 4px 0 8px; color: var(--slate); font-size: 14px; }
.campaign-hook code { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.campaign-hook .danger { margin-left: 0; }
.schedule-row { display: flex; align-items: center; gap: 10px; }
.schedule-row select { width: auto; }
.rerun-session { display: inline-block; margin-left: 10px; vertical-align: top; }
.rerun-session > summary { color: var(--pine); font-weight: 700; cursor: pointer; padding: 8px 0; }
.rerun-session form { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
#campaign-form fieldset p { color: var(--slate); font-size: 14px; margin: 0 0 8px; }
#campaign-form label.inline { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 8px 0 12px; }
#campaign-form input[name="title"] { display: block; width: 100%; max-width: 620px; margin-bottom: 12px; }
#campaign-scope label { display: flex; gap: 8px; align-items: center; font-weight: 400; }

/* Overview: the grade is the headline; everything else is a quiet ledger. */
.overview-status { margin: 0; padding: 4px 12px; border-radius: 4px; font-weight: 700; font-size: 14px; border-left: 4px solid; }
.overview-status.overview-ok { background: #edf7f1; color: var(--clear); }
.overview-status.overview-warning { background: var(--watch-soft); color: var(--watch); }
.overview-status.overview-critical { background: var(--alert-soft); color: var(--alert); }
.overview-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin-bottom: 20px; }
.overview-panel { min-width: 0; padding: 18px 20px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); margin: -1px 0 0 -1px; }
.overview-top { grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); }
.overview-panels:not(.overview-top) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .overview-top, .overview-panels:not(.overview-top) { grid-template-columns: minmax(0, 1fr); } }
.signed-out nav { display: none; }
.overview-grade { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 10px; }
.overview-grade strong { font-size: 104px; line-height: .9; font-weight: 700; letter-spacing: -.04em; }
.overview-grade span { color: var(--slate); font-size: 18px; }
.grade-A, .grade-B { color: var(--clear); } .grade-C { color: var(--watch); } .grade-D, .grade-F { color: var(--alert); }
#overview details { margin-top: 12px; font-size: 14px; color: var(--slate); }
#overview details p { max-width: 60ch; }
.overview-scroll { overflow-x: auto; }
#overview table { font-size: 14px; }
#overview-mttr th, #overview-mttr td, #overview-risks th { overflow-wrap: normal; word-break: normal; white-space: nowrap; padding: 7px 8px; }
#overview-mttr td:first-child, #overview-risks td:nth-child(2) { text-transform: capitalize; }
#overview td small { color: var(--slate); }
#overview caption { text-align: left; color: var(--slate); padding: 4px 0; }
.overview-wide { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin: 0 0 20px; }
#overview-accepted { color: var(--slate); font-size: 14px; margin: 8px 0 0; }
/* Key figures as one ruled row, not a grid of identical cards. */
#overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
#overview-metrics > div { padding: 12px 16px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); margin: -1px 0 0 -1px; }
@media (min-width: 1500px) { #overview-metrics { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 560px) { #overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#overview-metrics dt { font-size: 13px; color: var(--slate); }
#overview-metrics dd { margin: 2px 0 0; font-size: 26px; font-weight: 700; }
.overview-list { padding: 0; margin: 0; list-style: none; }
.overview-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.overview-list li:first-child { border-top: 0; }
.overview-list li small { grid-column: 1 / -1; color: var(--slate); overflow-wrap: anywhere; }
.overview-list li a { overflow-wrap: anywhere; }
.overview-list li.overview-critical { box-shadow: inset 3px 0 0 var(--alert); padding-left: 10px; }
.overview-list li.overview-warning { box-shadow: inset 3px 0 0 var(--watch); padding-left: 10px; }
.overview-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 0 0 14px; list-style: none; color: var(--slate); font-size: 14px; }
.overview-inline .overview-critical { color: var(--alert); font-weight: 700; }
#overview-coverage-count { color: var(--slate); margin: 0 0 8px; }
#overview-coverage-progress { display: block; width: 100%; accent-color: var(--pine); margin-bottom: 10px; }
#overview-trend { list-style: none; margin: 0; padding: 0; }
#overview-trend li { display: grid; grid-template-columns: 8ch 1fr 3ch; align-items: center; gap: 10px; margin: 5px 0; font-size: 14px; }
#overview-trend meter { width: 100%; height: 10px; }

@media (max-width: 760px) {
  body { display: block; }
  .sidebar { position: static; height: auto; gap: 14px; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-group { display: none; }
  .profile { flex-direction: row; }
  #events li { grid-template-columns: 1fr; gap: 2px; }
  .overview-grade strong { font-size: 76px; }
}

/* Public verification page */
body.public { display: block; }
.verify { max-width: 720px; margin: 0 auto; }
.verify h1 { margin: 18px 0 12px; }
.verify h2 { margin: 36px 0 8px; }
.verify > p { color: var(--slate); max-width: 68ch; }
.brand-dark { color: var(--ink); font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.brand-dark span { color: var(--pine); }
#verify-form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 6px; }
#verify-form input { margin-bottom: 8px; }
#verify-result { margin-top: 16px; }
#verify-result p { margin: 4px 0 0; overflow-wrap: anywhere; }
.verify-ok, .verify-fail { padding: 14px 16px; border-radius: 6px; border-left: 4px solid; }
.verify-ok { background: #edf7f1; border-color: var(--clear); }
.verify-fail { background: var(--alert-soft); border-color: var(--alert); }

/* Public "What we test" page: a reference document, read top to bottom. */
.doc { max-width: 880px; margin: 0 auto; padding: 28px 24px 72px; }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.doc h1 { font-size: 34px; line-height: 1.15; margin: 36px 0 12px; }
.doc h2 { font-size: 21px; margin: 44px 0 8px; }
.doc p, .doc-list { max-width: 70ch; }
.doc-lead { font-size: 18px; color: var(--slate); }
.doc-list { padding-left: 20px; }
.doc-list li { margin: 6px 0; }
.doc code { font-size: .92em; background: var(--line-soft); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.doc-table { overflow-x: auto; margin: 14px 0; border-top: 2px solid var(--ink); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th { text-align: left; white-space: nowrap; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); color: var(--slate); font-weight: 700; }
.doc-table td { vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-soft); overflow-wrap: break-word; }
.doc-table td:first-child { font-weight: 700; width: 24%; }
.doc-table td:nth-child(2) { width: 30%; }
@media (max-width: 640px) {
  .doc h1 { font-size: 28px; }
  .doc-table table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: auto !important; }
  .doc-table tr:first-child { display: none; }
  .doc-table td:nth-child(2) { color: var(--slate); font-size: 14px; }
  .doc-table tr { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .doc-table td { border: 0; padding: 2px 0; }
}

/* Subscription page */
.billing-state { font-size: 18px; padding-left: 12px; border-left: 4px solid var(--line); }
.billing-state[data-state="ok"] { border-color: var(--clear); }
.billing-state[data-state="watch"] { border-color: var(--watch); }
.billing-state[data-state="stopped"] { border-color: var(--alert); }
#billing-plans .billing-current td { background: var(--line-soft); }
#billing-notice:empty { display: none; }

/* Public site: the same paper, ink and pine as the application, read like a
   reference document. One wide column, rules instead of boxes, and the only
   picture is a real run result rendered as a table. */
body.site { min-height: 100vh; display: flex; flex-direction: column; }
body.site section { display: block; }
body.site main.site-main { padding-top: 0; padding-bottom: 0; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 1040px; width: 100%; margin: 0 auto; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.site-head nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); background: none; box-shadow: none;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-head nav a.site-login { color: var(--pine); font-weight: 700; }
.site-main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.site-main .doc { max-width: none; padding: 0 0 56px; }
.site-main .doc > * { max-width: 760px; }
.site-main .doc > .doc-table { max-width: none; }
.doc-meta { color: var(--slate); font-size: 14px; margin: -4px 0 18px; }
.site-foot { width: 100%; max-width: 1040px; margin: 0 auto; padding: 20px 24px 36px; border-top: 1px solid var(--line); color: var(--slate); font-size: 14px; }
.site-foot p { margin: 4px 0; }
.site-foot a { margin-right: 18px; }
a.button { display: inline-block; background: var(--pine); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 4px; }
a.button:hover { background: var(--pine-dark); }

.hero { padding: 64px 0 28px; max-width: 760px; }
.hero h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 18px; }
.hero-lead { font-size: 19px; color: var(--slate); margin: 0 0 26px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.product-preview { margin: 24px 0 32px; }
.product-preview a { display: block; }
.product-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.product-preview figcaption { margin-top: 8px; color: var(--slate); font-size: 14px; }

.specimen { margin: 28px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px 16px; }
.specimen figcaption { font-weight: 700; margin-bottom: 4px; }
.specimen .doc-table { margin: 10px 0 14px; }
.specimen .cov-tested { color: var(--clear); font-weight: 700; }
.specimen .cov-partial { color: var(--watch); font-weight: 700; }
.specimen-diff-title { margin: 0 0 6px; font-weight: 700; font-size: 15px; }
.specimen-diff { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.specimen-note { color: var(--slate); font-size: 14px; max-width: 760px; margin: 10px 0 0; }

.site-section { padding: 52px 0 8px; max-width: 760px; }
.site-section h2 { font-size: 26px; margin: 0 0 18px; }
.steps { padding-left: 24px; margin: 0; }
.steps li { margin: 0 0 14px; padding-left: 6px; }
.steps li::marker { font-weight: 700; color: var(--pine); }
.facts { max-width: none; }
.facts dl { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); margin: 0; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.facts dt { font-weight: 700; padding-right: 24px; }
.closing { padding-bottom: 64px; }
.closing p:last-child { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.pricing-table { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.pricing-table tr:first-child { background: var(--line-soft); }
.pricing-table th, .pricing-table td { padding: 6px 6px; vertical-align: middle; }
.pricing-table thead th, .pricing-table tr:first-child th { white-space: normal; }
.pricing-table th[scope="row"] { width: 14%; color: var(--ink); }
.pricing-table td:nth-child(2) { width: 20%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pricing-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.pricing-table tr:last-child > * { border-bottom: 0; }
.pricing-table .price-period { font-size: .86em; color: var(--slate); }
.pricing-table .price-included { color: var(--pine); font-weight: 600; }
.pricing-table .price-action { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-size: .9em; font-weight: 600; text-decoration: none; }
.pricing-table .price-action:hover { border-color: currentColor; text-decoration: underline; }
.pricing-table .price-action:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0; }
.site-form { display: grid; gap: 4px; max-width: 560px; margin: 8px 0 18px; }
.site-form input, .site-form select, .site-form textarea { width: 100%; margin-bottom: 10px; }
.site-form button { justify-self: start; padding: 10px 18px; }
.site-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contact-result:empty { display: none; }
.site-fine { color: var(--slate); font-size: 14px; }

@media (max-width: 720px) {
  .site-head { padding: 16px 20px 12px; }
  .site-head nav { gap: 14px; }
  .site-main, .site-foot { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 17px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .specimen { padding: 14px; }
  .pricing-table tr { padding: 6px 10px; }
  .pricing-table th[scope="row"] { display: block; width: auto; border: 0; padding: 2px 0; }
  .pricing-table td { padding: 2px 0; }
  .pricing-table td:nth-child(2) { white-space: normal; }
  .doc-table td[data-label]::before { content: attr(data-label) ' : '; color: var(--slate); font-weight: 400; }
  /* The run result stays a table on small screens: its columns are the point. */
  .specimen .doc-table table { display: table; width: max-content; min-width: 100%; }
  .specimen .doc-table tbody { display: table-row-group; }
  .specimen .doc-table tr, .specimen .doc-table tr:first-child { display: table-row; padding: 0; }
  .specimen .doc-table td, .specimen .doc-table th { display: table-cell; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-soft); }
  .specimen .doc-table td:first-child { width: auto !important; }
}
.specimen .doc-table td.cov-tested { color: var(--clear); font-size: inherit; }
.specimen .doc-table td.cov-partial { color: var(--watch); font-size: inherit; }

/* Platform page */
.table-scroll { overflow-x: auto; }
#platform-table td:last-child { white-space: nowrap; }
#platform-table td:last-child button { margin-right: 6px; }
#platform-table .platform-suspended td { color: var(--slate); background: var(--line-soft); }
#platform-notice:empty { display: none; }

@media (721px <= width <= 900px) {
  .pricing-table th, .pricing-table td { padding: 4px 6px; }
}
.login-forgot { margin-top: 10px; font-size: 14px; }
