/* GENERATED by system/hub.py — per-hub theme slots + the shared fleet
   stylesheet (system/fleet.css). Do not hand-edit. */
:root {
  color-scheme: only dark;
  --bg: #0b0b0c;
  --hairline: #262628;
  --text-dim: #9e9e9e;
  --text: #b9b9b9;
  --text-bright: #d4d4d4;
  --text-strong: #f0f0f0;
  --accent: #ffb000;
  --motif-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' role='img' aria-label='Default section divider'%3E%3Cpath d='M0 7h46m28 0h46' fill='none' stroke='currentColor'/%3E%3Cpath d='M54 7h12' fill='none' stroke='currentColor' stroke-width='3'/%3E%3C/svg%3E");
  --divider-w: 120px;
  --divider-h: 14px;
  --motif-corners: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' role='img' aria-label='Default quote corners'%3E%3Cpath d='M1 12V1h11M108 39h11V28' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='square'/%3E%3C/svg%3E");
  --corners-w: 120px;
  --corners-h: 40px;
  --motif-cta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' role='img' aria-label='Default CTA glyph'%3E%3Cpath d='m7 5 9 7-9 7' fill='none' stroke='currentColor' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cta-aspect: 1.0000;
}

/* System-owned fleet stylesheet. The generator appends it verbatim after each
   Hub's per-theme :root prelude. Theme-slot and generation contract:
   docs/hub-layout.md. Keep this stylesheet Hub-agnostic. */


/* 1. Base & reset -------------------------------------------------------- */

* { box-sizing: border-box; }

html {
  font-size: 16px;              /* base; all rem values resolve against this */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  font-size: 1rem;             /* 16px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-dim);
}
a:hover {
  color: var(--text-strong);
  text-decoration-color: var(--text-strong);
}
a:focus-visible {
  outline: 2px solid var(--text-strong);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}


/* 2. Layout -------------------------------------------------------------- */

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 4rem;
}

/* Divider: a full-width hairline broken by a centered gap, with the Hub's
   divider motif sitting in the gap. H2 sections get one automatically; an
   authored Markdown rule becomes .motif-divider and replaces the automatic
   divider when the two occupy the same boundary. */
section {
  position: relative;
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  border-top: 0;
}
.motif-divider {
  position: relative;
  height: 1.7rem;
  margin: 2.6rem 0 0;
}
section::before,
.motif-divider::before {       /* the hairline, with a gap sized to the motif */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
    var(--hairline) 0, var(--hairline) calc(50% - var(--divider-w) / 2 - 10px),
    transparent calc(50% - var(--divider-w) / 2 - 10px), transparent calc(50% + var(--divider-w) / 2 + 10px),
    var(--hairline) calc(50% + var(--divider-w) / 2 + 10px), var(--hairline) 100%);
}
section::after,
.motif-divider::after {        /* the divider motif, centered on the line */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--divider-w);
  height: var(--divider-h);
  transform: translate(-50%, -50%);
  background-color: var(--accent);
  -webkit-mask: var(--motif-divider) center / contain no-repeat;
          mask: var(--motif-divider) center / contain no-repeat;
}
section:first-of-type {
  margin-top: 0;
  padding-top: 0;
}
section:first-of-type::before,
section:first-of-type::after {
  content: none;             /* no divider above the first section */
}
/* CTAs keep the section hairline, but not the centered accent motif. The
   hairline is continuous because there is no motif to occupy its usual gap. */
section.cta::before { background: var(--hairline); }
section.cta::after { content: none; }
section.follows-divider {
  margin-top: 0;
  padding-top: 0;
}
section.follows-divider::before,
section.follows-divider::after { content: none; }


/* 3. Typography ---------------------------------------------------------- */

h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-strong);
}
/* the authored banner line directly below the H1 */
h1 + p { color: var(--text-dim); }

h2 {
  margin: 0 0 1.1rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-strong);
}
/* Markdown-style heading prefixes, in --text-dim */
h2::before {
  content: "## ";
  color: var(--text-dim);
}

h3 {
  margin: 1.6rem 0 .6rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-bright);
}
h3::before {
  content: "### ";
  color: var(--text-dim);
}

p {
  margin: .4rem 0 1rem;
  max-width: 70ch;
}

/* fenced code: a long line scrolls inside its block, never widening the page */
pre {
  margin: .4rem 0 1rem;
  overflow-x: auto;
}


/* 4. Definition fields --------------------------------------------------- */

.fields {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .1rem 1.6rem;
  margin: .4rem 0 1rem;
}
.fields dt {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fields dd { margin: 0; }


/* 5. List fields --------------------------------------------------------- */
/* Labeled bullet groups instead of a cramped ·-delimited string in the
   definition grid's value column. */

.listfield { margin: 1.1rem 0 0; }
.lf-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.listfield ul { margin: .2rem 0 0; }

@media (min-width: 560px) {
  .listfield ul.cols {
    columns: 2;
    column-gap: 2.4rem;
  }
  .listfield ul.cols li { break-inside: avoid; }
}


/* 6. Lists --------------------------------------------------------------- */

ul {
  list-style: none;
  margin: .3rem 0 1rem;
  padding: 0;
}
ul li {
  position: relative;
  padding-left: 1.4rem;
}
ul li::before {
  content: "-";
  position: absolute;
  left: .2rem;
  color: var(--text-dim);
}


/* 7. Blockquotes --------------------------------------------------------- */

blockquote {
  position: relative;
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.2rem;
  color: var(--text-bright);
}
/* Corner marks from the Hub's quote-corners motif, tinted --text-dim. The one
   motif file carries both marks: the top-left mark lives in the file's top-left
   13×13 square, the bottom-right mark in its bottom-right 13×13 square, and
   each pseudo-element is a 13px window onto its corner of the natively-sized
   mask. Pseudo-elements only, so the .md twin (blockquote -> "> ") is
   untouched. */
blockquote::before,
blockquote::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  background-color: var(--text-dim);
  -webkit-mask: var(--motif-corners) no-repeat;
          mask: var(--motif-corners) no-repeat;
  -webkit-mask-size: var(--corners-w) var(--corners-h);
          mask-size: var(--corners-w) var(--corners-h);
}
blockquote::before {
  top: 0;
  left: 0;
  -webkit-mask-position: left top;
          mask-position: left top;
}
blockquote::after {
  bottom: 0;
  right: 0;
  -webkit-mask-position: right bottom;
          mask-position: right bottom;
}
/* attribution dash lives in the DOM (not a ::before) so it survives HTML->Markdown */
blockquote cite {
  display: block;
  margin-top: .3rem;
  color: var(--text-dim);
  font-style: normal;
}


/* 8. CTA blocks ---------------------------------------------------------- */

/* A call to action: the Hub's CTA glyph against an accent left-rule. No
   heading — the imperative copy and the accent link are the signal, and the
   heading-less, id-less <section> drops out of the generated nav. The frame
   lives on the <p> (not the <section>) so the .cta keeps the normal section
   rhythm/divider above it. The glyph is a masked pseudo-element in the gutter
   with a matching text indent, so wrapped lines align under the first line;
   being CSS-only, none of it reaches the .md twin. */
.cta p {
  margin: 0;
  position: relative;
  padding-left: 2.4em;
  border-left: 2px solid var(--accent);
}
.cta p::before {
  content: "";
  position: absolute;
  left: .7em;
  top: .28em;
  width: calc(1em * var(--cta-aspect));
  height: 1em;
  background-color: var(--accent);
  -webkit-mask: var(--motif-cta) center / contain no-repeat;
          mask: var(--motif-cta) center / contain no-repeat;
}
.cta a { color: var(--accent); text-decoration-color: var(--accent); }
/* A single-link CTA drops its link to its own line under the copy (fit-content
   keeps the click target tight). Scoped to :only-of-type so a multi-link CTA
   keeps its links inline and the prose doesn't fragment. CSS-only: the twin
   keeps everything inline. */
.cta p a:only-of-type { display: block; width: fit-content; margin-top: .4rem; }


/* 9. Entity boxes -------------------------------------------------------- */

.kv-block { margin: 0 0 1.4rem; }
.kv-block h3 { margin-top: 0; }


/* 10. Footer ------------------------------------------------------------- */

footer {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
  color: var(--text-dim);
  font-size: .75rem;           /* 12px */
}
.motif-divider.footer-divider {
  height: 1.2rem;
  margin: 3rem 0 0;
}
footer .row { margin: .1rem 0; }


/* 11. Navigation --------------------------------------------------------- */
/* ASCII site-map + in-page TOC. Pure-CSS collapsible menu on mobile (the
   checkbox hack), sticky sidebar on desktop. */

/* -- ASCII tree -- */
.tree {
  margin: 0 0 2.6rem;
  color: var(--text-bright);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.5;
}
.tree a { text-decoration-color: var(--hairline); }
/* current page in the site-map nav (generator sets aria-current="page"):
   the one node held at the strongest tone, a notch above its siblings. */
.tree a.nav-page[aria-current="page"] {
  color: var(--text-strong);
  text-decoration-color: var(--text-strong);
}
/* the current-page pointer (◄): the nav's one accent mark. */
.tree .nav-here { color: var(--accent); }

/* Nav levels, told apart at a glance — brightest at the surface, dimming with
   depth, so nesting reads as fade. line-height:1 on the larger top-level links
   holds each row to the <pre>'s strut, so the bigger glyphs never skew the
   box-drawing columns. */
.tree a.nav-root,
.tree a.nav-page {
  font-size: 1.125rem;
  line-height: 1;
  color: var(--text-bright);
}
.tree a.nav-section { color: var(--text); }
.tree a.nav-subsection { color: var(--text-dim); }
.tree a.nav-section:hover,
.tree a.nav-subsection:hover { color: var(--text-strong); }
.tree .tree-branch { color: var(--text-dim); }

/* -- toggle control (hidden on desktop) -- */
/* visually hidden but focusable: the checkbox holds the open/closed state */
.nav-toggle-cb {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.nav-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin: 0 0 .9rem;
  padding: .35rem .55rem;
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--hairline);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.nav-toggle:hover {
  color: var(--text-strong);
  border-color: var(--text-dim);
}
.nav-toggle-cb:focus-visible + .nav-toggle {
  outline: 2px solid var(--text-strong);
  outline-offset: 2px;
}

/* hamburger that folds into an X (three .bar children of .ham) */
.ham {
  position: relative;
  width: 18px;
  height: 14px;
  flex: none;
}
.bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text-bright);
  transition: transform .3s ease, opacity .2s ease;
}
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 6px; }
.bar:nth-child(3) { top: 12px; }
.nav-toggle:hover .bar { background: var(--text-strong); }
.nav-toggle-cb:checked + .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle-cb:checked + .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav-toggle-cb:checked + .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* label swap: "menu" slides out toward the icon as "close" slides in (staggered) */
.labels { display: grid; }
.labels > span {
  grid-area: 1 / 1;
  transition: transform .28s ease, opacity .28s ease;
}
.label-closed { transition-delay: .12s; }
.label-open {
  opacity: 0;
  transform: translateX(-.55em);
  transition-delay: 0s;
}
.nav-toggle-cb:checked + .nav-toggle .label-closed {
  opacity: 0;
  transform: translateX(-.55em);
  transition-delay: 0s;
}
.nav-toggle-cb:checked + .nav-toggle .label-open {
  opacity: 1;
  transform: translateX(0);
  transition-delay: .12s;
}

/* -- collapsible panel (mobile) -- */
/* animate via max-height (reliable in every engine, incl. WebKit) */
.nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.nav-toggle-cb:checked ~ .layout .nav { max-height: 48rem; }

/* roomier rows + padded inline-block links = finger-sized tap targets;
   the equal negative margin-block cancels the padding's effect on the ASCII grid */
.nav .tree {
  margin: 0;
  padding-bottom: 1.6rem;
  line-height: 1.75;
}
.nav .tree a {
  display: inline-block;
  padding-block: .5rem;
  margin-block: -.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .nav, .bar, .labels > span { transition: none; }
}

/* -- desktop: two columns, nav becomes a sticky sidebar, control hidden -- */
@media (min-width: 760px) {
  .wrap { max-width: 1000px; }
  .layout {
    display: grid;
    /* 240px fits the page > section > child nesting depth; minmax(0, ...)
       keeps wide content such as a long code line from stretching the column */
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
  }
  .nav-toggle, .nav-toggle-cb { display: none; }
  .nav {
    max-height: none;
    overflow: visible;
    position: sticky;
    top: 1.6rem;
    transition: none;
  }
  .nav .tree {
    padding-bottom: 0;
    line-height: 1.5;
    /* let long section labels spill into the grid gap instead of hanging a
       scrollbar off the sticky sidebar; mobile keeps the base auto-scroll */
    overflow-x: visible;
  }
  .nav .tree a {
    display: inline;
    padding-block: 0;
    margin-block: 0;
  }
}
