/* Knowledge Base Theme Tokens — mapped to raiken.io dark theme & active product color */
html[data-webfonts],
:root {
  color-scheme: dark;
  --font-primary: var(--kb-font-primary, 'Silkscreen', 'Silkscreen Fallback', monospace);
  --font-secondary: var(--kb-font-secondary, 'Geist', 'Geist Fallback', system-ui, -apple-system, sans-serif);
  --font-brand-display: var(--kb-font-brand-display, var(--font-primary));
  --font-mono: var(--kb-font-mono, ui-monospace, SFMono-Regular, Consolas, monospace);
  --type-family-headline: var(--font-primary);
  --type-family-body: var(--font-secondary);
  --paper: #080B11;             /* raiken.io deep pitch background */
  --white: #11141c;             /* panel surface */
  --surface: #11141c;           /* card surface */
  --surface-raised: #181d28;    /* active / hover surface */
  --ink: #f8fafc;               /* primary text */
  --muted: #94a3b8;             /* secondary text */
  --brand-color: var(--kb-product-color, #38bdf8);
  --audience-ink: var(--brand-color);
  --blue: var(--brand-color);
  --blue-hover: #7dd3fc;
  --accent: var(--brand-color);
  --guide: #f472b6;
  --component: #a78bfa;
  --component-pale: #1f1b2e;
  --line: rgba(255, 255, 255, 0.08); /* crisp neutral line */
  --control-edge: rgba(255, 255, 255, 0.16);
  --pale-blue: color-mix(in srgb, var(--brand-color) 12%, transparent);
  --step-track: #172a42;
  --step-track-ink: var(--brand-color);
  --step-fill: #0284c7;
  --step-fill-ink: #ffffff;
  --size-track: #1e293b;
  --size-fill-from: var(--brand-color);
  --size-glow: rgba(56, 189, 248, 0.4);
  --mint: color-mix(in srgb, var(--brand-color) 8%, transparent);
  --green: #4ade80;
  --amber: #fbbf24;
  --dark: #05070a;
  --soft-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  --on-accent: #051324;
  --accent-tile: var(--brand-color);
  --accent-tile-ink: #051324;
  --on-accent-muted: #1e3a5f;
  --focus: var(--brand-color);
  --theme-control-border: rgba(255, 255, 255, 0.18);
  --theme-control-hover: #181d28;
  --field-border: rgba(255, 255, 255, 0.12);
  --soft: var(--mint);
  --danger: #ef4444;
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:auto; }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.6 var(--font-secondary); }
a { color:var(--accent); text-underline-offset:.18em; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
button,input { font:inherit; }

/* Boxy retro buttons matching raiken.io design system */
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--control-edge);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ink);
  color: #fff;
}

input { width:100%; border:1px solid var(--field-border); border-radius:0; padding:.65rem .75rem; background:var(--surface); color:var(--ink); }
label { display:block; margin-top:1rem; margin-bottom:.25rem; font-weight:650; }

/* Headings in Silkscreen uppercase pixel face */
h1,h2,h3,.eyebrow,.topic-sidebar-title {
  font-family: var(--font-primary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size:clamp(1.85rem,4vw,2.75rem); margin:.45rem 0 1.2rem; }
h2 { font-size:clamp(1.4rem,2.8vw,2rem); margin-top:2.5rem; }
h3 { font-size:1.15rem; }
ul,ol { padding-left:1.4rem; }

/* Section Header Row (Title left in Silkscreen, Subtitle right in Geist) */
.section-header-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}
.section-header-row h2 {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-subtitle {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 900px) {
  .section-header-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.wrap { width:min(100% - 2rem,80rem); margin-inline:auto; }
.skip { position:absolute; left:.75rem; top:-5rem; z-index:10; padding:.5rem 1rem; background:var(--surface); }
.skip:focus { top:.75rem; }
/* ===== RETRO KNOWLEDGE BASE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 11, 17, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  min-height: 56px;
  display: flex;
  align-items: center;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
  padding-block: 0.65rem;
}

/* Brand Lockup: Logo + Slash + Product Switcher + Help Badge */
.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.kb-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 150ms ease;
}
.kb-site-logo:hover {
  color: var(--accent);
}

.kb-logo-mark {
  flex: none;
  width: 20px;
  height: 20px;
  color: inherit;
}

.kb-logo-wordmark {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  line-height: 1;
}

.header-divider {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  opacity: 0.4;
  user-select: none;
}

/* Product Switcher */
.product-switcher {
  position: relative;
  display: inline-block;
}

.product-switcher-summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  user-select: none;
  list-style: none;
  border: 1px solid transparent;
  transition: all 150ms ease;
}
.product-switcher-summary::-webkit-details-marker { display: none; }
.product-switcher-summary::after { display: none !important; }
.product-switcher-summary:hover,
.product-switcher[open] .product-switcher-summary {
  border-color: var(--control-edge);
  background: rgba(255, 255, 255, 0.04);
}

.product-switcher-chevron {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 150ms ease, color 150ms ease;
}
.product-switcher[open] .product-switcher-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.product-switcher-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 1001;
  min-width: 240px;
  background: #090c13;
  border: 1px solid var(--control-edge);
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.product-switcher-header {
  padding: 0.6rem 0.85rem;
  font-family: var(--font-primary);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
}

.product-switcher-list {
  display: flex;
  flex-direction: column;
}

.product-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background-color 120ms ease, color 120ms ease;
}
.product-switcher-item:last-child {
  border-bottom: none;
}
.product-switcher-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}
.product-switcher-item.is-active {
  background: var(--pale-blue);
  color: var(--accent);
  font-weight: 700;
}
.product-item-indicator {
  font-size: 0.6rem;
  color: var(--accent);
}

.kb-badge {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--control-edge);
  padding: 2px 6px;
  line-height: 1;
}

/* Nav links: clean retro text links + primary retro CTA */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-text-link {
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 150ms ease;
  white-space: nowrap;
}
.nav-text-link:hover {
  color: #fff;
}

/* Header Retro CTA Button */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: all 150ms ease;
}
.header-cta-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* Language Switcher */

/* ===== BREADCRUMB SUB-BAR (SEO & WAYFINDING) ===== */
.header-sub-bar {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding-block: 0.65rem;
}

.kb-breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  color: var(--muted);
}

.kb-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.kb-breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}
.kb-breadcrumb-link:hover {
  color: #fff;
  text-decoration: underline;
}

.kb-breadcrumb-separator {
  color: var(--muted);
  opacity: 0.35;
  user-select: none;
  padding-inline: 0.2rem;
}

.kb-breadcrumb-current {
  color: var(--accent);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 850px) {
  .header-inner {
    width: min(100% - 2rem, 80rem);
  }
  .nav-text-link {
    display: none;
  }
  .kb-site-logo .kb-logo-wordmark {
    display: none;
  }
}
@media (max-width: 580px) {
  .header-brand-group {
    gap: 0.5rem;
  }
  .kb-badge {
    display: none;
  }
  .header-cta-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }
  .header-sub-bar {
    padding-block: 0.5rem;
  }
}
.site-footer { margin-top:5rem; border-top:1px solid var(--line); padding:1.5rem 0; color:var(--muted); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem 1.5rem; }
.footer-brand { display:inline-flex; align-items:center; gap:.5rem; color:var(--muted); text-decoration:none; }
.hero { padding:clamp(2rem,6vw,4.5rem) 0 2.5rem; max-width:45rem; }
.hero { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(16rem,.88fr); align-items:center; gap:clamp(1.5rem,4vw,4rem); max-width:none; }
.hero-copy { max-width:42rem; }
.hero-copy .lead { color:var(--muted); max-width:55ch; }
.hero-image { margin:0; display:flex; justify-content:center; min-width:0; }
/* On a dark page ground the dark panel needs its edge drawn (as the website's independence panel). */
.eyebrow { color:var(--accent); font-size:.83rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.search-line { display:flex; gap:.5rem; }
.search-line input { flex:1; border:1px solid var(--control-edge); border-radius:0; background:var(--surface); color:var(--ink); font-family:var(--font-secondary); }
.search-line button { flex:none; min-height:3.25rem; padding:0.625rem 1.5rem; background:var(--accent); color:var(--on-accent); border:1px solid var(--accent); border-radius:0; font-family:var(--font-primary); font-size:0.8125rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; cursor:pointer; transition:background-color 150ms ease, border-color 150ms ease; }
.search-line button:hover { background:var(--blue-hover); border-color:var(--blue-hover); }
/* The Fluent icons drawn as images: an image draws fill="currentColor" black, so on a dark theme's ground they
   take white, as .trust-icon does (user in the chair, 2026-10-04: black on the dark page, about 1.2:1). */
/* The guide, then its contents on the right; the topic sidebar holds the left (Wayfinding::sidebar()). */
.lead { font-size:1.18rem; line-height:1.5; }
.faq-summary::after { content:"[+]"; width:auto; height:auto; font:400 .8rem/1 var(--font-mono,ui-monospace,monospace); color:var(--muted); background:none !important; mask:none !important; -webkit-mask:none !important; transition:color 200ms ease; }
.faq-item[open] > .faq-summary::after { content:"[-]"; transform:none; color:var(--ink); }
/* Every disclosure takes the site's Fluent chevron at its right edge instead of the browser's triangle;
   it turns down when open (the owner, 2026-10-14: icons, not glyphs). */
summary { display:flex; align-items:center; justify-content:space-between; gap:.75rem; list-style:none; }
summary::-webkit-details-marker { display:none; }
summary::after { content:''; flex:none; width:1rem; height:1rem; background:var(--muted); -webkit-mask:url('brand/chevron-right.svg') center / contain no-repeat; mask:url('brand/chevron-right.svg') center / contain no-repeat; }
details[open] > summary::after { transform:rotate(90deg); }
dl>div { border-top:1px solid var(--line); padding-block:.85rem; }
dt { font-weight:700; }
dd { margin:.3rem 0 0; }
@media (max-width:55rem) { .header-inner { grid-template-columns:1fr; } .site-nav { justify-content:flex-start; } .hero { grid-template-columns:1fr; } }
@media (max-width:38rem) { .search-line { flex-direction:column; } .search-line button { width:100%; } .hero { gap:1rem; padding:1.5rem 0 1rem; } }
/* Below 700 px the header is one row: the brand (the way home), the languages and sign-in as a text link; the
   website link moves to the footer (live quality panel, 2026-10-04: two rows took 177 px of an 812 px phone). */
@media (max-width:43.75rem) { .header-inner { grid-template-columns:auto minmax(0,1fr); gap:.4rem; padding-block:.25rem; } .site-nav { justify-content:flex-end; gap:.25rem; } }
/* The smallest phones keep the mark alone; the brand link's name says Power Local. */
/* The shared viewer's complete localized caption remains readable on phones. */
/* A long caption at enlarged text may scroll; the fitted image and Close stay in the viewport. */
/* The contents list must also fit when the reader enlarges text on a narrow screen. */

/* Wayfinding (2026-10-13): the topic sidebar, the landing's popular guides and topic cards, the search
   shortcut and the help dot. The sidebar sits beside the page from 55rem; below it is a disclosure on top. */
.kb-layout { display:grid; grid-template-columns:15rem minmax(0,1fr); gap:clamp(1.5rem,3vw,3rem); align-items:start; }
.kb-content { min-width:0; }
.topic-sidebar { display:block; position:sticky; top:1rem; max-height:calc(100vh - 2rem); overflow-y:auto; padding:2rem 0 1rem; }
.topic-sidebar-title { margin:0 0 .65rem; padding-left:.75rem; padding-bottom:.4rem; color:var(--muted); font-family:var(--font-primary); font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; border-bottom:1px solid var(--line); }
:is(.topic-sidebar,.topic-disclosure) ul { margin:0; padding:0; list-style:none; }
:is(.topic-sidebar,.topic-disclosure) a {
  display:grid;
  grid-template-columns:1.125rem minmax(0,1fr);
  align-items:center;
  gap:.65rem;
  min-height:2.5rem;
  border-radius:0;
  border-left:2px solid transparent;
  padding:.35rem .75rem;
  color:var(--muted);
  font-family:var(--font-secondary);
  font-size:.92rem;
  font-weight:500;
  line-height:1.3;
  text-decoration:none;
  transition:background-color 120ms ease, color 120ms ease, border-left-color 120ms ease;
}
:is(.topic-sidebar,.topic-disclosure) li+li { margin-top:.15rem; }
:is(.topic-sidebar,.topic-disclosure) a:hover { background:rgba(255, 255, 255, 0.03); color:var(--ink); }
:is(.topic-sidebar,.topic-disclosure) a[aria-current] {
  position:relative;
  background:var(--pale-blue);
  color:var(--accent);
  font-weight:650;
  border-left-color:var(--accent);
}
:is(.topic-sidebar,.topic-disclosure) a[aria-current]::before { display:none !important; }
.search-field { position:relative; display:flex; flex:1; align-items:center; min-width:0; }
.search-field input { min-height:3.25rem; padding-left:2.7rem; padding-right:5.2rem; font-size:1.05rem; }
/* The icon takes the accent once the field holds words to search for: Enter is the next step. */
.search-field:has(input:not(:placeholder-shown)) .search-icon { background:var(--accent); }
.search-icon { position:absolute; left:.9rem; width:1.25rem; height:1.25rem; background:var(--muted); pointer-events:none; -webkit-mask:url('brand/search.svg') center / contain no-repeat; mask:url('brand/search.svg') center / contain no-repeat; }
.search-shortcut { position:absolute; right:.7rem; display:inline-flex; gap:.25rem; pointer-events:none; }
.search-shortcut[hidden] { display:none; }
kbd { display:inline-block; min-width:1.6rem; border:1px solid var(--line); border-bottom-width:2px; border-radius:.35rem; padding:.15rem .4rem; background:var(--paper); color:var(--muted); font:600 .75rem/1.3 Geist,system-ui,sans-serif; text-align:center; }
.popular h2,.topic-cards h2 { margin:0; }

/* Ruled Colophon List matching Credits */
.guide-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--control-edge);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.guide-rows li {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.guide-rows li:first-child {
  border-top: none;
}
.guide-rows a {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}
.guide-rows a:hover {
  background: rgba(255, 255, 255, 0.025);
}
.guide-row-category::before { content: "["; }
.guide-row-category::after { content: "]"; }
.guide-row-category {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.guide-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}
.guide-row-title {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  transition: color 120ms ease;
}
.guide-rows a:hover .guide-row-title {
  color: var(--accent);
}
.guide-row-summary {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  white-space: normal;
}
.guide-row-action {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  color: var(--muted);
  padding-right: 0.5rem;
  transition: transform 120ms ease, color 120ms ease;
}
.guide-rows a:hover .guide-row-action {
  transform: translateX(3px);
  color: var(--accent);
}
@media (max-width: 55rem) {
  .guide-rows a {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  .guide-row-category {
    grid-column: 1 / -1;
  }
}

/* Guide Articles detail */

/* FAQ Items */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-summary {
  cursor: pointer;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Topic index: ruled cells with shared hairlines, two across from phone width, three in a wide column. */
.topic-cards { container-type: inline-size; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0 1px 1px 0; /* room for the cells' overlapping hairlines */
  list-style: none;
}
@container (min-width: 44rem) {
  .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.topic-grid li {
  min-width: 0;
  display: flex;
  margin: 0 -1px -1px 0;
}
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--control-edge);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 120ms ease;
}
.topic-card:hover,
.topic-card:focus-visible {
  z-index: 1;
  border-color: var(--kb-product-color, var(--accent));
  background: rgba(255, 255, 255, 0.04);
}
.topic-card-index::before { content: "["; }
.topic-card-index::after { content: "]"; }
.topic-card-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font: 400 0.7rem/1 var(--font-mono, monospace);
  color: var(--muted);
}
.topic-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  color: var(--muted);
  transition: color 120ms ease;
}
.topic-card:hover .topic-card-icon,
.topic-card:focus-visible .topic-card-icon,
.topic-card:hover .topic-card-title,
.topic-card:focus-visible .topic-card-title {
  color: var(--kb-product-color, var(--accent));
}
.topic-card-title {
  margin-top: 0.25rem;
  font: 400 0.82rem/1.3 var(--font-primary);
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
  transition: color 120ms ease;
}
.topic-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font: 400 0.8rem/1.45 var(--font-secondary);
  color: var(--muted);
}
/* The help dot keeps clear of the page's last controls: the footer leaves it room. */
.site-footer { padding-bottom:calc(1.5rem + 4.5rem); }
/* Without the script the dot is a link to the panel, shown as the address's target. */
/* The team's state as one quiet band across the panel: a divider above and below, a grey ground, the
   Fluent clock icon and muted text: "Live-Chat kommt bald" (the owner, 2026-10-15; before, the team's absence). */
@media (forced-colors:active) { :is(.topic-sidebar,.topic-disclosure) a[aria-current]::before { background:Highlight; forced-color-adjust:none; } summary::after, :is(.help-dot-icon,.search-icon,.guide-row-icon,.sidebar-chevron,.help-status-icon) { background:CanvasText; forced-color-adjust:none; } .help-dot .help-dot-icon { background:ButtonText; } .help-status-dot { forced-color-adjust:none; border:1px solid CanvasText; } }
@media (prefers-reduced-motion:no-preference) { summary::after { transition:transform .15s ease-out; } .help-panel.is-open { animation:help-panel-in .18s ease-out; } .help-dot { transition:transform .15s ease-out, background-color .15s ease-out; } .help-dot:hover { transform:scale(1.04); } }
@keyframes help-panel-in { from { opacity:0; transform:translateY(.5rem); } }
/* No keyboard, no shortcut: a touch-only device hides the hint. */
@media (hover:none) and (pointer:coarse) { .search-shortcut { display:none; } }
@media (max-width:55rem) { .kb-layout { grid-template-columns:minmax(0,1fr); gap:0; } }
@media (max-width:38rem) { .search-field input { padding-right:.75rem; } .search-shortcut { display:none; } }

/* ==========================================================================
   Knowledge Base Retro Terminal & ASCII System
   Strictly aligned with retro colophon, zero border-radius, and monospace theme.
   ========================================================================== */

/* ── Tree-View Topics Sidebar ────────────────────────────────────────────── */
.topic-sidebar-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.topic-sidebar-tree li a {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  line-height: 1.4;
  transition: all 150ms ease;
  border-radius: 0;
}

.topic-sidebar-tree li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.topic-sidebar-tree li a[aria-current="page"] {
  color: var(--kb-product-color, var(--accent));
  background: rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--kb-product-color, var(--accent));
}

.sidebar-tree-glyph {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.55;
  user-select: none;
  flex-shrink: 0;
}

.topic-sidebar-tree li a[aria-current="page"] .sidebar-tree-glyph {
  color: var(--kb-product-color, var(--accent));
}

/* ── Terminal Search Bar ─────────────────────────────────────────────────── */
.kb-terminal-search {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.kb-search-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  user-select: none;
  letter-spacing: 0.02em;
}

.kb-prompt-user {
  color: var(--kb-product-color, var(--accent));
  font-weight: 700;
}

.kb-prompt-at, .kb-prompt-colon {
  color: var(--muted);
}

.kb-prompt-host {
  color: #e2e8f0;
}

.kb-prompt-path {
  color: #94a3b8;
}

.kb-prompt-char {
  color: #38bdf8;
  font-weight: 700;
  margin-left: 0.25rem;
}

.kb-terminal-search .search-line {
  border: 1px solid var(--color-border-strong, rgba(255, 255, 255, 0.25));
  background: rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.kb-terminal-search .search-field input {
  font-family: var(--font-mono, monospace);
  font-size: 0.95rem;
  color: #fff;
  background: transparent;
  border: none;
}

.kb-terminal-search .search-line button {
  font-family: var(--font-primary, monospace);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  background: var(--kb-product-color, var(--accent));
  color: #000;
  font-weight: 700;
  border-radius: 0;
  border: none;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.kb-terminal-search .search-line button:hover {
  opacity: 0.9;
}

/* ── Section meta, guide steps, product highlights ───────────────────────── */
.section-meta {
  font: 400 0.78rem/1.4 var(--font-mono, monospace);
  letter-spacing: 0.02em;
  text-align: right;
}
@media (max-width: 900px) { .section-meta { text-align: left; } }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--control-edge);
}
.trust-card-title {
  margin: 0 0 0.5rem;
  font: 400 0.8rem/1.3 var(--font-primary);
  text-transform: uppercase;
  color: var(--kb-product-color, var(--accent));
}
.trust-card-desc { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

/* ── Topic tree: guides under the open topic, and the folding "Topics" bar ─ */
.sidebar-tree-glyph { white-space: pre; }
.kb-topics-summary { display: block; list-style: none; cursor: default; }
.kb-topics-summary::-webkit-details-marker { display: none; }
.kb-topics-summary::after { display: none; }
.kb-topics-current { display: none; }
.topic-sidebar-sub { list-style: none; margin: 0.1rem 0 0.35rem; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.topic-sidebar-sub a { padding-block: 0.3rem; font-size: 0.78rem; }

@media (max-width: 55rem) {
  .topic-sidebar { position: static; max-height: none; overflow: visible; padding: 0; margin-top: 1rem; border: 1px solid var(--control-edge); background: var(--surface); }
  .kb-topics-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.85rem; cursor: pointer; }
  .kb-topics-summary::after { display: block; content: "[+]"; flex: none; width: auto; height: auto; font: 400 0.8rem/1 var(--font-mono, monospace); color: var(--muted); background: none; -webkit-mask: none; mask: none; }
  .kb-topics[open] > .kb-topics-summary::after { content: "[-]"; transform: none; }
  .kb-topics-summary .topic-sidebar-title { margin: 0; padding: 0; border: 0; }
  .kb-topics-current { display: block; margin-left: auto; font: 400 0.78rem/1.3 var(--font-mono, monospace); color: var(--kb-product-color, var(--accent)); text-align: right; }
  .topic-sidebar-tree { padding: 0 0.5rem 0.6rem; }
}

/* ── Topic and search views ─────────────────────────────────────────────── */
.kb-view-head { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; max-width: 44rem; }
.kb-view-head .lead { max-width: 55ch; color: var(--muted); }
.kb-empty { margin: 0; color: var(--muted); }

/* ── Guide page ─────────────────────────────────────────────────────────── */
.kb-article { max-width: 48rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
.kb-article-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0 0 0.6rem; font: 400 0.75rem/1.4 var(--font-mono, monospace); color: var(--muted); }
.kb-article-meta span:first-child { color: var(--kb-product-color, var(--accent)); }
.kb-article h1 { margin: 0 0 0.75rem; }
.kb-article .lead { max-width: 60ch; margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.kb-tags { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin: 0; padding: 0; list-style: none; font: 400 0.75rem/1.4 var(--font-mono, monospace); color: var(--muted); }

.kb-toc { margin: 1.75rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--control-edge); background: var(--surface); }
.kb-toc-title { margin: 0 0 0.5rem; font: 400 0.72rem/1.3 var(--font-mono, monospace); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kb-toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.2rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.kb-toc a { display: flex; gap: 0.6rem; padding: 0.2rem 0; color: var(--ink); font-size: 0.9rem; text-decoration: none; }
.kb-toc a:hover { color: var(--kb-product-color, var(--accent)); }
.kb-toc-index { font: 400 0.75rem/1.6 var(--font-mono, monospace); color: var(--muted); }

.kb-section { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.kb-section h2 { margin: 0 0 0.85rem; font-size: clamp(1.1rem, 2.2vw, 1.4rem); }
.kb-section > p { max-width: 62ch; margin: 0; line-height: 1.65; color: var(--ink); }
.kb-list { display: grid; gap: 0.5rem; max-width: 62ch; margin: 0; padding: 0; list-style: none; }
.kb-list li { position: relative; padding-left: 1.6rem; line-height: 1.6; }
.kb-list li::before { content: ">"; position: absolute; left: 0; font-family: var(--font-mono, monospace); color: var(--kb-product-color, var(--accent)); }

.kb-steps { display: grid; gap: 1.1rem; max-width: 62ch; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.kb-steps li { position: relative; display: grid; gap: 0.2rem; padding-left: 3.2rem; counter-increment: step; }
.kb-steps li::before { content: "[" counter(step, decimal-leading-zero) "]"; position: absolute; left: 0; top: 0.05rem; font: 400 0.8rem/1.5 var(--font-mono, monospace); color: var(--kb-product-color, var(--accent)); }
.kb-step-title { font-weight: 600; color: var(--ink); }
.kb-step-text { line-height: 1.6; color: var(--muted); }

.kb-problems { display: grid; gap: 1rem; max-width: 62ch; margin: 0; padding: 0; list-style: none; }
.kb-problems li { display: grid; gap: 0.25rem; padding-left: 1rem; border-left: 2px solid var(--control-edge); }
.kb-problem-symptom { font-weight: 600; color: var(--ink); }
.kb-problem-action { line-height: 1.6; color: var(--muted); }
.kb-problem-action::before { content: "-> "; font-family: var(--font-mono, monospace); color: var(--kb-product-color, var(--accent)); }

.kb-article-foot { margin: 3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font: 400 0.8rem/1.4 var(--font-mono, monospace); }
.kb-article-foot a { color: var(--muted); text-decoration: none; }
.kb-article-foot a:hover { color: var(--kb-product-color, var(--accent)); }

/* Narrow screens: the trail shows the parent and the page, the rest is one tap up. */
@media (max-width: 55rem) {
  .kb-breadcrumb-list { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .kb-breadcrumb-list::before { content: "…"; flex: none; margin-right: 0.4rem; opacity: 0.5; }
  .kb-breadcrumb-list > li:not(:nth-last-child(-n + 3)) { display: none; }
  .kb-breadcrumb-item { min-width: 0; }
  .kb-breadcrumb-link, .kb-breadcrumb-current { overflow: hidden; text-overflow: ellipsis; }
}

/* Screenshots inside a guide step */
.kb-shot { margin: 0.75rem 0 0.25rem; max-width: 22rem; }
.kb-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--control-edge); background: var(--surface); }
.kb-shot figcaption { margin-top: 0.4rem; font: 400 0.75rem/1.4 var(--font-mono, monospace); color: var(--muted); }
.kb-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 0.75rem 0 0.25rem; }
.kb-shots .kb-shot { max-width: none; margin: 0; }
