/* Generated by scripts/helpdocs/build-site.mjs; do not edit. */
/* Generated by scripts/helpdocs/build-site.mjs - do not edit by hand.
   Mirrors the operator app's design system (CLAUDE.md UI rules +
   docs/design/detail-screen-design-guide.md): the app's real light-theme tokens,
   flat bg-surface/border-border/rounded-md cards (no shadows, no hover-lift),
   sentence-case labels in the body font (no uppercase tracking chrome), an
   InlineNotice-style callout, Badge-style chips, and the accent focus ring. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* App light-theme tokens (apps/web/src/app/globals.css). */
  --bg: #fdfbf3;
  --surface: #f0ead4;
  --surface-2: #e4dcbb;
  --border: #cfc391;
  --border-strong: #b5a76d;
  --fg: #1b1814;
  --fg-muted: #463f2f;
  --fg-subtle: #615b48;
  --accent: #b8501a;
  --accent-fg: #fffefa;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* App radius scale. */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --sidebar-w: 250px;
  --toc-w: 210px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: -0.01em; }
a { color: var(--accent); text-underline-offset: 2px; }
strong { font-weight: 600; }
code, .mono { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.88em; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1px 6px; color: var(--fg);
}
::selection { background: var(--accent); color: var(--accent-fg); }
/* The app's focus treatment: a 2px accent outline, never a soft glow. */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm);
}

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center;
  gap: 20px; padding: 0 22px; height: 56px;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
/* Brand lockup = the app's mark + wordmark (apps/web/src/components/brand). */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); }
.brand-mark { display: block; width: 26px; height: 26px; flex: none; }
.brand-word { font-size: 17px; font-weight: 700; letter-spacing: 0.04em; }
.brand-craft { color: var(--accent); }
.brand-help { font-size: 17px; font-weight: 400; color: var(--fg-muted); margin-left: 3px; }
.topbar-link { margin-left: auto; font-size: 15px; text-decoration: none; color: var(--fg-muted); white-space: nowrap; }
.topbar-link:hover { color: var(--fg); text-decoration: underline; }

/* ---- search (matches the app's text inputs: bg-surface, border, rounded-sm) ---- */
/* Below 900px the search sits in-flow between the brand and the back link. */
.search-wrap { position: relative; flex: 1 1 auto; max-width: 460px; }
/* From 900px up, viewport-centre it like the app's desktop search (TopBar.tsx:
   a fixed, left-1/2 -translate-x-1/2 slot) - centred regardless of the brand or
   the right-hand controls. */
@media (min-width: 900px) {
  .search-wrap { position: absolute; left: 50%; transform: translateX(-50%); width: 440px; max-width: none; flex: none; }
}
.help-search {
  width: 100%; height: 40px; font-family: var(--sans); font-size: 16px; color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 12px; outline: none;
}
.help-search::placeholder { color: var(--fg-subtle); }
.help-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.help-search-results a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.help-search-results a:last-child { border-bottom: none; }
.help-search-results a:hover, .help-search-results a.active { background: var(--surface); }
.help-search-results .r-title { font-weight: 600; font-size: 15px; }
/* Group tag = the app's accent Badge (bg-accent/15, accent text, rounded-xs). */
.help-search-results .r-group {
  display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 500;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-xs); padding: 0 6px; line-height: 1.5; vertical-align: 1px;
}
.help-search-results .r-summary { display: block; font-size: 14px; color: var(--fg-subtle); margin-top: 3px; }
.help-search-results .r-empty { padding: 12px 14px; color: var(--fg-subtle); font-size: 15px; }

/* ============================== article shell ============================== */
.shell {
  display: grid; gap: 40px; align-items: start;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1320px; margin: 0 auto; padding: 8px 28px 100px;
}
.sidebar { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 92px); overflow-y: auto; padding-top: 18px; }
.nav-section { margin-bottom: 16px; }
/* Sentence-case group label in the body font + a small area-hue wayfinding tab. */
.nav-group { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--fg-subtle); margin: 0 0 6px; padding-left: 10px; }
.nav-tab { width: 7px; height: 7px; border-radius: var(--radius-xs); background: var(--hue); flex: none; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a {
  position: relative; display: block; padding: 5px 10px; font-size: 15px; text-decoration: none;
  color: var(--fg-muted); border-radius: var(--radius-sm); line-height: 1.4;
}
.sidebar li a:hover { background: var(--surface); color: var(--fg); }
/* Active item mirrors the app sidebar: surface-2 fill + a left bar in the area hue. */
.sidebar li a[aria-current="page"] { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.sidebar li a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--hue);
}

/* ---- content ---- */
.content { min-width: 0; padding-top: 18px; }
/* Masthead reads like a job-card header: a short area-hue tab, the breadcrumb
   path, then the title. */
.doc-masthead { max-width: 760px; margin-bottom: 28px; }
.area-bar { display: block; width: 40px; height: 3px; border-radius: var(--radius-xs); background: var(--hue); margin-bottom: 16px; }
.breadcrumb { font-size: 14px; color: var(--fg-subtle); margin-bottom: 12px; }
.breadcrumb a { text-decoration: none; color: var(--fg-muted); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 7px; color: var(--border-strong); }
.breadcrumb .crumb-area { color: color-mix(in srgb, var(--hue) 72%, var(--fg)); font-weight: 500; }
.doc-masthead h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 600; }

.doc { max-width: 760px; }
.doc h2 {
  font-size: 20px; font-weight: 600; margin: 36px 0 12px;
  padding-top: 22px; border-top: 1px solid var(--border); scroll-margin-top: 76px;
}
/* Worksheet step heading: a mono index in the area hue hanging to the left. */
.doc h2.step-h { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; }
/* Hue darkened toward ink so light area hues (gold, cyan, ...) stay legible as
   a numeral on paper - same treatment as the breadcrumb area crumb. */
.step-n { font-family: var(--mono); font-size: 15px; font-weight: 500; color: color-mix(in srgb, var(--hue) 72%, var(--fg)); font-variant-numeric: tabular-nums; }
.step-t { min-width: 0; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.doc p { margin: 12px 0; }
.doc ul { margin: 12px 0; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--border-strong); }
.doc pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.55; margin: 16px 0;
}
.doc pre code { background: none; border: none; padding: 0; }

/* Callout = the app's InlineNotice (info tone): soft accent box, no left bar. */
.callout {
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: var(--radius-md); padding: 12px 16px; margin: 16px 0;
}
.callout-label { display: block; font-weight: 600; font-size: 16px; color: var(--fg); margin-bottom: 2px; }
.callout p { margin: 0; }

/* One visual layer, flat - a bordered frame on surface, no shadow. */
figure.shot { margin: 18px 0; }
figure.shot img {
  display: block; width: 100%; height: auto; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); cursor: zoom-in;
}
figure.shot figcaption { font-size: 14px; color: var(--fg-subtle); margin-top: 7px; }

/* Lightbox: a screenshot shrinks to fit the column; click for the full-size
   1920x1080 capture, with a clear close button top-right. */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 28px; background: color-mix(in srgb, #0d0b08 82%, transparent); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius-md); box-shadow: 0 24px 64px -22px rgba(0,0,0,.6); background: var(--surface); cursor: default; }
.lightbox-close {
  position: fixed; top: 16px; right: 18px; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(20,17,13,.6); color: #fff; cursor: pointer;
}
.lightbox-close:hover { background: rgba(20,17,13,.92); }
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- on this page (toc) ---- */
.toc { position: sticky; top: 72px; align-self: start; padding-top: 20px; font-size: 14px; }
.toc strong { display: block; font-size: 14px; font-weight: 600; color: var(--fg-subtle); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc li a { display: block; padding: 4px 0 4px 12px; margin-left: -2px; color: var(--fg-muted); text-decoration: none; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--accent); border-left-color: var(--accent); }

/* ---- prev/next pager (sequential reading within a section) ---- */
.pager { max-width: 760px; display: flex; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.pager a {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); text-decoration: none; transition: border-color .12s ease;
}
.pager a:hover { border-color: var(--hue); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-dir { font-size: 13px; color: var(--fg-subtle); }
.pager-title { font-size: 16px; font-weight: 600; color: var(--fg); }
.pager-gap { flex: 1 1 0; }

/* Deliberately faint version stamp at the foot of each article - the committed
   mirror of the doc's help_doc_versions row; bumps when the doc or its app page
   changes (and blocks deploy until re-blessed). */
.doc-version { max-width: 760px; margin-top: 36px; font-size: 12px; color: var(--fg-subtle); opacity: 0.5; }
.doc-version .dv-sha { font-family: var(--mono); }
.doc-capture-note { max-width: 760px; margin-top: 32px; font-size: 14px; line-height: 1.6; color: var(--fg-subtle); }

/* ============================== hub ============================== */
.hub { max-width: 1100px; margin: 0 auto; padding: 0 28px 100px; }
.hero { padding: 64px 0 36px; text-align: center; }
.hero h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 600; }
.hero .lede { font-size: 18px; color: var(--fg-muted); max-width: 56ch; margin: 0 auto 28px; line-height: 1.6; }
.hero-search { position: relative; max-width: 540px; margin: 0 auto; text-align: left; }
.hero-search .help-search { height: 48px; font-size: 17px; padding: 0 16px; }
.hub-group { margin-top: 36px; }
/* Section heading: sentence case + an area-hue dot, divider under. */
.hub-group h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; color: var(--fg); margin: 0 0 14px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.group-dot { width: 9px; height: 9px; border-radius: var(--radius-xs); background: var(--hue); flex: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
/* Card = the app's flat tile: bg-surface, border, rounded-md, no shadow/lift. */
.card {
  display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px;
  transition: border-color .12s ease;
}
.card:hover { border-color: var(--border-strong); }
.card .card-t { font-weight: 600; font-size: 16px; color: var(--fg); }
.card .card-d { font-size: 15px; color: var(--fg-subtle); margin-top: 5px; line-height: 1.45; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--border); color: var(--fg-subtle); font-size: 14px; text-align: center; padding: 26px; }
.site-foot a { text-decoration: none; }

/* ---- responsive ---- */
.mobile-topics { display: none; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
  .mobile-topics {
    display: block; margin-bottom: 18px;
    border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 16px 14px;
    background: var(--surface);
  }
  .mobile-topics summary { cursor: pointer; padding: 12px 0 0; font-weight: 600; }
  .mobile-topics[open] summary { padding-bottom: 12px; }
  .mobile-topics nav { max-height: 60vh; overflow-y: auto; }
  .topbar-link { display: none; }
  .hero h1 { font-size: 30px; }
  .doc-masthead h1 { font-size: 26px; }
  .pager { flex-direction: column; }
  .pager-next { text-align: left; align-items: flex-start; }
}
