/* =============================================================================
   SentriScope Public Design System — static/public/public.css
   Single source of truth for public marketing surface (--ss-* tokens + components).

   Section map:
   1. Design tokens (foundation + legacy aliases)
   2. Legacy-compatible public styles (current pages — preserve visuals)
   3. Redesign foundation primitives (Phase 1+ — for upcoming page recomposition)
   4. Migration / deprecation notes (inline comments throughout)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   Foundation palette evolves toward neutral-first + accent-as-scalpel.
   Legacy --ss-brand* aliases remain for existing templates until page redesign.
   ----------------------------------------------------------------------------- */
:root {
  /* Canvas */
  --ss-bg-0: #08090c;
  --ss-bg-1: #0e1014;
  --ss-bg-2: #161a20;

  /* Surfaces — legacy frosted panel; prefer flat --ss-bg-1 on new components */
  --ss-panel: rgba(255, 255, 255, 0.04);

  /* Hairlines */
  --ss-border: rgba(255, 255, 255, 0.08);
  --ss-border-strong: rgba(255, 255, 255, 0.14);

  /* Text ink scale */
  --ss-text: #f2f4f8;
  --ss-muted: rgba(242, 244, 248, 0.65);
  --ss-muted-2: rgba(242, 244, 248, 0.45);

  /* Accent — new canonical name; blue is accent, not identity */
  --ss-accent: #4f8cff;
  --ss-accent-hover: #3b73e0;
  --ss-accent-soft: rgba(79, 140, 255, 0.12);

  /* Legacy brand — unchanged for current page visuals; migrate to --ss-accent in Phase 2 */
  --ss-brand: #2563eb;
  --ss-brand-hover: #1d4ed8;
  --ss-brand-2: #38bdf8;

  /* Typography */
  --ss-font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ss-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ss-h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --ss-h2: clamp(1.75rem, 3vw, 2.5rem);
  --ss-h3: clamp(1.25rem, 2vw, 1.5rem);
  --ss-body: 1.0625rem;
  --ss-small: 0.9375rem;
  --ss-eyebrow-size: 0.8125rem;
  --ss-measure: 62ch;

  /* Spacing rhythm */
  --ss-space-1: 0.5rem;
  --ss-space-2: 0.75rem;
  --ss-space-3: 1rem;
  --ss-space-4: 1.5rem;
  --ss-space-5: 2.5rem;
  --ss-space-6: 4rem;
  --ss-space-7: 6rem;
  --ss-space-8: 8rem;

  /* Radius, shadow, layout */
  --ss-radius-sm: 6px;
  --ss-radius-md: 10px;
  --ss-radius-lg: 14px;
  --ss-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --ss-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --ss-container-max: 1280px;
}

/* -----------------------------------------------------------------------------
   2. LEGACY-COMPATIBLE PUBLIC STYLES
   Supports current templates/public/* without visual regression.
   Migrated from inline <style> in public_base.html and _public_nav.html.
   ----------------------------------------------------------------------------- */

body.ss-public {
  background: var(--ss-bg-0);
  color: var(--ss-text);
  font-family: var(--ss-font-body);
  font-size: var(--ss-body);
  line-height: 1.55;
  min-height: 100vh;
}

.ss-container {
  max-width: var(--ss-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .ss-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Buttons */
.btn-ss-primary {
  background: var(--ss-brand);
  color: #fff !important;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--ss-radius-sm);
  font-weight: 600;
  font-size: var(--ss-small);
}

.btn-ss-primary:hover {
  background: var(--ss-brand-hover);
  color: #fff !important;
  box-shadow: 0 0 0 1px var(--ss-brand-2);
}

.btn-ss-primary:focus-visible {
  outline: 2px solid var(--ss-brand-2);
  outline-offset: 2px;
}

.btn-ss-secondary {
  background: transparent;
  color: var(--ss-text) !important;
  border: 1px solid var(--ss-border-strong);
  padding: 0.65rem 1.5rem;
  border-radius: var(--ss-radius-sm);
  font-weight: 500;
}

.btn-ss-secondary:hover {
  border-color: var(--ss-muted);
  background: var(--ss-panel);
  color: var(--ss-text) !important;
}

.btn-ss-secondary:focus-visible {
  outline: 2px solid var(--ss-brand-2);
  outline-offset: 2px;
}

.btn-ss-ghost {
  background: transparent;
  color: var(--ss-brand-2) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  padding: 0.65rem 1.5rem;
  border-radius: var(--ss-radius-sm);
  font-weight: 500;
}

.btn-ss-ghost:hover,
.btn-ss-ghost:focus {
  color: var(--ss-text) !important;
  border-color: var(--ss-brand-2) !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

/* Cards & sections */
.ss-card {
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ss-card:hover {
  border-color: var(--ss-border-strong);
  box-shadow: var(--ss-shadow-sm);
}

.ss-section {
  padding: 4rem 0;
}

.ss-section--alt {
  background: var(--ss-bg-1);
}

@media (min-width: 768px) {
  .ss-section {
    padding: 5rem 0;
  }
}

.ss-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(37, 99, 235, 0.2);
  color: var(--ss-brand-2);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* DEPRECATED for new pages: decorative icon tile — use ss-eyebrow instead */
.ss-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--ss-radius-md);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-brand-2);
  font-size: 1.35rem;
}

/* Legacy hero — superseded by ss-editorial-hero on home redesign */
.ss-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
}

.ss-hero__headline {
  font-size: var(--ss-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.ss-hero__lead {
  font-size: 1.25rem;
  color: var(--ss-muted);
  max-width: 32em;
  margin-bottom: 2rem;
}

.ss-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.ss-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ss-border);
  border-bottom: 1px solid var(--ss-border);
}

.ss-trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ss-muted);
  font-size: var(--ss-small);
}

.ss-trust-strip__item i {
  color: var(--ss-brand-2);
}

.ss-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.ss-stats__value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ss-brand-2);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.ss-stats__label {
  font-size: var(--ss-small);
  color: var(--ss-muted);
}

.ss-tabs .nav-link {
  color: var(--ss-muted);
  border: none;
  border-radius: var(--ss-radius-sm);
  padding: 0.6rem 1rem;
  font-weight: 500;
  background: transparent;
}

.ss-tabs .nav-link:hover {
  color: var(--ss-text);
  background: var(--ss-panel);
}

.ss-tabs .nav-link.active {
  color: var(--ss-text);
  background: var(--ss-panel);
  border: 1px solid var(--ss-border-strong);
}

.ss-logos__placeholder {
  width: 120px;
  height: 40px;
  background: var(--ss-panel);
  border: 1px dashed var(--ss-border);
  border-radius: var(--ss-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ss-muted-2);
  font-size: 0.75rem;
}

.ss-cta-band {
  text-align: center;
  padding: 4rem 0;
  background: var(--ss-bg-1);
  border-top: 1px solid var(--ss-border);
}

.ss-cta-band__headline {
  font-size: var(--ss-h2);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ss-cta-band__lead {
  color: var(--ss-muted);
  margin-bottom: 2rem;
}

.ss-cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.ss-buttons-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
}

/* Shell: nav */
.ss-nav {
  background: var(--ss-bg-1);
  border-bottom: 1px solid var(--ss-border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.ss-nav .navbar-brand {
  color: var(--ss-text) !important;
  font-weight: 700;
  font-size: 1.2rem;
}

.ss-nav .nav-link {
  color: var(--ss-muted) !important;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.ss-nav .nav-link:hover,
.ss-nav .nav-link:focus {
  color: var(--ss-text) !important;
}

.ss-nav .navbar-toggler-icon {
  filter: invert(1);
}

.ss-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.5);
}

.ss-nav .ss-nav-right .btn {
  white-space: nowrap;
}

.ss-nav-logo {
  height: 48px;
  width: auto;
}

@media (min-width: 992px) {
  .ss-nav .container-fluid {
    flex-wrap: nowrap;
  }

  .ss-nav .navbar-collapse {
    flex-wrap: nowrap;
  }

  .ss-nav .ss-nav-center {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    gap: 0.75rem;
  }

  .ss-nav .ss-nav-left {
    flex: 0 0 auto;
  }

  .ss-nav .ss-nav-right {
    flex: 0 0 auto;
    min-width: fit-content;
    justify-content: flex-end;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: 0.25rem;
  }

  .ss-nav .ss-nav-center .navbar-nav {
    flex-wrap: nowrap;
    min-width: 0;
    gap: 0 !important;
  }

  .ss-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 0.45rem;
    white-space: nowrap;
  }

  .ss-nav .ss-nav-right .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
}

/* Shell: footer */
.ss-footer {
  background: var(--ss-bg-1);
  border-top: 1px solid var(--ss-border);
  padding: 3rem 0 2rem;
  color: var(--ss-muted);
  font-size: 0.9rem;
}

.ss-footer a {
  color: var(--ss-muted);
  text-decoration: none;
}

.ss-footer a:hover {
  color: var(--ss-text);
}

.ss-footer-logo {
  height: 42px;
  width: auto;
}

/* Announcement bar */
.ss-announce {
  background: var(--ss-brand);
  color: #fff;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

/* Signup funnel (public_base inline migration) */
.signup-main-col {
  max-width: 79.65%;
}

.signup-plans-card {
  background: var(--ss-panel);
  border: 1px solid var(--ss-border);
  border-radius: 14px;
  color: var(--ss-text);
}

.signup-plans-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.signup-plans-scroll::-webkit-scrollbar {
  height: 8px;
}

.signup-plans-scroll::-webkit-scrollbar-track {
  background: #2d333b;
  border-radius: 4px;
}

.signup-plans-scroll::-webkit-scrollbar-thumb {
  background: #484f58;
  border-radius: 4px;
}

.signup-plans-scroll::-webkit-scrollbar-thumb:hover {
  background: #6e7681;
}

.signup-plans-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  width: 100%;
  min-width: min-content;
}

.signup-plan-option {
  flex: 0 0 auto;
  width: 280px;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--ss-border);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.signup-plan-option:hover,
.signup-plan-option.selected,
.signup-plan-option:has(input:checked) {
  border-color: var(--ss-brand);
  background: rgba(37, 99, 235, 0.12);
}

.signup-plan-tag {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.signup-plan-radio-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.signup-plan-radio-wrap input {
  margin: 0;
}

/* Bootstrap overrides within public shell */
.ss-public .table-dark {
  --bs-table-bg: var(--ss-bg-1);
  --bs-table-border-color: var(--ss-border);
  color: var(--ss-text);
}

.ss-public .accordion-item {
  background: var(--ss-bg-1);
  border-color: var(--ss-border);
}

.ss-public .accordion-button {
  background: var(--ss-panel);
  color: var(--ss-text);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm) !important;
}

.ss-public .accordion-button:not(.collapsed) {
  background: var(--ss-bg-1);
  color: var(--ss-text);
}

.ss-public .accordion-button:focus {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.ss-public .accordion-body {
  background: var(--ss-bg-1);
  color: var(--ss-muted);
  border: 1px solid var(--ss-border);
  border-top: none;
}

.ss-public .text-secondary,
.ss-public .text-muted {
  color: var(--ss-muted) !important;
}

.ss-public .form-label,
.ss-public label:not(.form-check-label) {
  color: #e2e8f0;
}

.ss-public .form-control,
.ss-public .form-select {
  color: var(--ss-text);
  background: var(--ss-panel);
  border-color: var(--ss-border);
  border-radius: var(--ss-radius-sm);
  padding: 0.65rem 1rem;
}

.ss-public .form-control::placeholder {
  color: var(--ss-muted);
}

.ss-public .form-control:focus,
.ss-public .form-select:focus {
  color: var(--ss-text);
  background: var(--ss-panel);
  border-color: var(--ss-brand-2);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.ss-public .signup-plan-name,
.ss-public .signup-plan-price,
.ss-public .signup-plan-features {
  color: var(--ss-text);
}

.ss-public .signup-plan-features.text-muted {
  color: var(--ss-muted) !important;
}

.fs-xsmall {
  font-size: 0.8rem;
}

.ss-back-link {
  color: var(--ss-muted);
  text-decoration: none;
  font-size: var(--ss-small);
}

.ss-back-link:hover {
  color: var(--ss-text);
}

.ss-error {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.ss-error__code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--ss-muted);
  line-height: 1;
}

.ss-error__text {
  color: var(--ss-muted);
}

/* -----------------------------------------------------------------------------
   3. REDESIGN FOUNDATION PRIMITIVES (Phase 1)
   Reusable components for upcoming page recomposition. Not yet wired on all pages.
   ----------------------------------------------------------------------------- */

/* Editorial section wrapper — varied vertical rhythm */
.ss-editorial-section {
  padding-block: clamp(var(--ss-space-6), 9vw, var(--ss-space-8));
}

.ss-editorial-section--tight {
  padding-block: clamp(var(--ss-space-5), 6vw, var(--ss-space-6));
}

.ss-editorial-section--alt {
  background: var(--ss-bg-1);
}

/* Small caps label above headings — replaces decorative icon tiles */
.ss-eyebrow {
  display: block;
  font-size: var(--ss-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ss-muted-2);
  margin-bottom: var(--ss-space-2);
}

/* Left-aligned editorial hero for pillar pages and home redesign */
.ss-editorial-hero {
  padding-block: clamp(var(--ss-space-6), 12vw, var(--ss-space-8));
}

.ss-editorial-hero__inner {
  display: grid;
  gap: var(--ss-space-5);
  align-items: center;
}

@media (min-width: 992px) {
  .ss-editorial-hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--ss-space-6);
  }
}

.ss-editorial-hero__content {
  text-align: left;
}

.ss-editorial-hero__headline {
  font-family: var(--ss-font-display);
  font-size: var(--ss-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--ss-space-3);
  color: var(--ss-text);
}

.ss-editorial-hero__lead {
  font-size: 1.125rem;
  color: var(--ss-muted);
  max-width: var(--ss-measure);
  margin-bottom: var(--ss-space-4);
  line-height: 1.6;
}

.ss-editorial-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ss-space-2);
  align-items: center;
}

.ss-editorial-hero__aside {
  min-height: 12rem;
}

/* Optional faint glow behind hero artifact — not a decorative SVG */
.ss-editorial-hero__glow {
  position: relative;
  border-radius: var(--ss-radius-lg);
  min-height: 16rem;
}

.ss-editorial-hero__glow::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at 30% 40%, var(--ss-accent-soft), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

/* Horizontal proof strip — dynamic stats with tabular numerals */
.ss-proof-rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ss-space-4) var(--ss-space-5);
  padding-block: var(--ss-space-4);
  border-block: 1px solid var(--ss-border);
  text-align: left;
}

.ss-proof-rail__item {
  flex: 1 1 10rem;
  min-width: 0;
}

.ss-proof-rail__value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ss-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.ss-proof-rail__value--accent {
  color: var(--ss-accent);
}

.ss-proof-rail__label {
  font-size: var(--ss-small);
  color: var(--ss-muted);
  max-width: 20ch;
}

/* Featured module — asymmetric two-column with optional artifact */
.ss-module-featured {
  display: grid;
  gap: var(--ss-space-4);
  align-items: start;
  padding: var(--ss-space-5);
  background: var(--ss-bg-1);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ss-module-featured:hover {
  border-color: var(--ss-border-strong);
  box-shadow: var(--ss-shadow-sm);
}

@media (min-width: 768px) {
  .ss-module-featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--ss-space-5);
  }

  .ss-module-featured--reverse {
    direction: rtl;
  }

  .ss-module-featured--reverse > * {
    direction: ltr;
  }
}

.ss-module-featured__title {
  font-size: var(--ss-h3);
  font-weight: 600;
  margin-bottom: var(--ss-space-2);
  color: var(--ss-text);
}

.ss-module-featured__body {
  color: var(--ss-muted);
  max-width: var(--ss-measure);
  margin-bottom: var(--ss-space-3);
}

/* Compact module list — replaces uniform card grids on pillar pages */
.ss-module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ss-border);
}

.ss-module-list__group {
  padding-block: var(--ss-space-4);
  border-bottom: 1px solid var(--ss-border);
}

.ss-module-list__group-label {
  font-size: var(--ss-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-muted-2);
  margin-bottom: var(--ss-space-2);
}

.ss-module-list__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: var(--ss-space-2);
}

.ss-module-list__item-title {
  font-weight: 600;
  color: var(--ss-text);
  text-decoration: none;
}

.ss-module-list__item-title:hover {
  color: var(--ss-accent);
}

.ss-module-list__item-desc {
  font-size: var(--ss-small);
  color: var(--ss-muted);
  max-width: var(--ss-measure);
}

/* Product screenshot frame — for sanitized captures in later phases */
.ss-screenshot-frame {
  background: var(--ss-bg-2);
  border: 1px solid var(--ss-border-strong);
  border-radius: var(--ss-radius-md);
  overflow: hidden;
  box-shadow: var(--ss-shadow-sm);
}

.ss-screenshot-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: var(--ss-bg-1);
  border-bottom: 1px solid var(--ss-border);
}

.ss-screenshot-frame__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ss-border-strong);
}

.ss-screenshot-frame__media {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ss-screenshot-frame__caption {
  padding: var(--ss-space-2) var(--ss-space-3);
  font-size: var(--ss-small);
  color: var(--ss-muted-2);
  border-top: 1px solid var(--ss-border);
}

/* Architecture / workflow diagram container */
.ss-architecture-diagram {
  background: var(--ss-bg-1);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  padding: var(--ss-space-4);
}

.ss-architecture-diagram__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  color: var(--ss-muted-2);
  font-size: var(--ss-small);
}

.ss-architecture-diagram__canvas svg,
.ss-architecture-diagram__canvas img {
  max-width: 100%;
  height: auto;
}

.ss-architecture-diagram__caption {
  margin-top: var(--ss-space-3);
  padding-top: var(--ss-space-3);
  border-top: 1px solid var(--ss-border);
  font-size: var(--ss-small);
  color: var(--ss-muted);
  max-width: var(--ss-measure);
}

/* Documentation content block — docs hub and CMS articles */
.ss-doc-block {
  max-width: var(--ss-measure);
}

.ss-doc-block__title {
  font-size: var(--ss-h3);
  font-weight: 600;
  margin-bottom: var(--ss-space-2);
  color: var(--ss-text);
}

.ss-doc-block__lead {
  color: var(--ss-muted);
  margin-bottom: var(--ss-space-3);
}

.ss-doc-block__meta {
  font-size: var(--ss-small);
  color: var(--ss-muted-2);
}

/* CTA band — editorial variant for redesign (legacy .ss-cta-band remains above) */
.ss-cta-band.ss-cta-band--editorial {
  text-align: left;
  padding-block: clamp(var(--ss-space-6), 10vw, var(--ss-space-8));
}

.ss-cta-band--editorial .ss-cta-band__headline {
  max-width: var(--ss-measure);
}

.ss-cta-band--editorial .ss-cta-band__lead {
  max-width: var(--ss-measure);
}

.ss-cta-band--editorial .ss-cta-band__buttons {
  justify-content: flex-start;
}

/* Section header block — eyebrow + title + intro */
.ss-section-header {
  margin-bottom: var(--ss-space-5);
  text-align: left;
  max-width: var(--ss-measure);
}

.ss-section-header__title {
  font-size: var(--ss-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--ss-space-2);
  color: var(--ss-text);
}

.ss-section-header__intro {
  color: var(--ss-muted);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

/* Subtle motion — optional, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .ss-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .ss-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Nav scroll polish — add .is-scrolled via external JS in a later phase */
.ss-nav.is-scrolled {
  background: var(--ss-bg-0);
  border-bottom-color: var(--ss-border-strong);
}

/* Semantic pipeline flow — governed connectors -> canonical model -> decision -> investigation.
   Supports the home hero artifact and platform mechanism steps without decorative SVG. */
.ss-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ss-space-3);
}

.ss-flow__node {
  position: relative;
  padding: var(--ss-space-3) var(--ss-space-4);
  background: var(--ss-bg-2);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
}

/* Hairline connector between stacked nodes — shows flow direction, not decoration */
.ss-flow__node + .ss-flow__node::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--ss-space-3) - 1px);
  left: var(--ss-space-5);
  width: 1px;
  height: var(--ss-space-3);
  background: var(--ss-border-strong);
}

.ss-flow__step {
  display: block;
  font-size: var(--ss-eyebrow-size);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-muted-2);
  margin-bottom: 0.25rem;
}

.ss-flow__title {
  display: block;
  font-weight: 600;
  color: var(--ss-text);
}

.ss-flow__desc {
  display: block;
  font-size: var(--ss-small);
  color: var(--ss-muted);
  margin-top: 0.25rem;
}

/* Horizontal step variant for the platform mechanism section */
@media (min-width: 768px) {
  .ss-flow--steps {
    flex-direction: row;
    align-items: stretch;
  }

  .ss-flow--steps .ss-flow__node {
    flex: 1 1 0;
  }

  .ss-flow--steps .ss-flow__node + .ss-flow__node::before {
    top: 50%;
    left: calc(-1 * var(--ss-space-3) - 1px);
    width: var(--ss-space-3);
    height: 1px;
    transform: translateY(-50%);
  }
}

/* Concrete capability list — paired with ss-module-featured (no fake screenshot) */
.ss-key-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--ss-space-2);
  align-self: center;
}

.ss-key-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ss-muted);
  font-size: var(--ss-small);
}

.ss-key-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ss-border-strong);
}

/* -----------------------------------------------------------------------------
   4. MIGRATION / DEPRECATION NOTES
   - static/css/public_site.css: legacy gradient vars; neutralized, do not extend.
   - Inline <style> in public_base.html / _public_nav.html: removed Phase 1.
   - .ss-hero, .ss-stats, .ss-icon: keep until home/pillar page redesign.
   - --ss-brand*: legacy primary blue; migrate to --ss-accent in Phase 2 page pass.
   - .ss-panel glassmorphism: replace with flat --ss-bg-1 on new components.
   ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
   5. DOCS / KNOWLEDGE CHROME
   Quiet Learn-inspired trail + page header. Neutral-first; accent as scalpel.
   ----------------------------------------------------------------------------- */

.ss-docs-breadcrumb {
  margin: 0 0 var(--ss-space-4);
}

.ss-docs-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 0;
  font-size: var(--ss-eyebrow-size);
  line-height: 1.4;
  color: var(--ss-muted-2);
}

.ss-docs-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.ss-docs-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  color: var(--ss-muted-2);
  opacity: 0.65;
  font-weight: 400;
  speak: never;
}

.ss-docs-breadcrumb__link {
  color: var(--ss-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ss-docs-breadcrumb__link:hover {
  color: var(--ss-text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ss-docs-breadcrumb__link:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ss-docs-breadcrumb__current {
  color: var(--ss-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(42ch, 70vw);
}

/* Page header — confident H1 under the trail; restrained CTAs */
.kh-hero {
  margin-bottom: var(--ss-space-5);
}

.kh-hero h1 {
  font-family: var(--ss-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ss-text);
  margin: 0 0 var(--ss-space-3);
}

.kh-hero .lead,
.kh-hero__lead {
  color: var(--ss-muted);
  font-size: var(--ss-body);
  font-weight: 400;
  line-height: 1.55;
  max-width: var(--ss-measure);
  margin: 0 0 var(--ss-space-4);
}

.kh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ss-space-2) var(--ss-space-3);
  margin: 0;
}

.kh-hero__actions .btn {
  margin: 0;
}

.kh-hero__link {
  color: var(--ss-muted);
  font-size: var(--ss-small);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kh-hero__link:hover {
  color: var(--ss-text);
  border-bottom-color: var(--ss-border-strong);
}

.kh-hero__link:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Shared knowledge surfaces (migrated from _knowledge_base_styles / article) */
.kh-card {
  background: var(--ss-bg-1);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 1.25rem;
  height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kh-card:hover {
  border-color: var(--ss-border-strong);
  box-shadow: var(--ss-shadow-sm);
}

.kh-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.kh-card a {
  color: var(--ss-text);
  text-decoration: none;
}

.kh-card a:hover {
  color: var(--ss-text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.kh-card a:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.kh-meta {
  font-size: 0.85rem;
  color: var(--ss-muted);
}

.kh-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--ss-muted);
  margin: 0 0.35rem 0.35rem 0;
  background: transparent;
}

.kh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--ss-space-3);
}

.kh-section-title {
  font-family: var(--ss-font-display);
  font-size: var(--ss-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: var(--ss-space-5) 0 var(--ss-space-3);
  color: var(--ss-text);
}

.kh-article-meta {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: var(--ss-space-4);
  background: var(--ss-bg-1);
}

.kh-toc {
  border-left: 2px solid var(--ss-border);
  padding-left: 1rem;
  margin-bottom: var(--ss-space-5);
}

.kh-toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.kh-toc li {
  margin-bottom: 0.35rem;
}

.kh-toc a {
  color: var(--ss-muted);
  text-decoration: none;
  font-size: var(--ss-small);
}

.kh-toc a:hover {
  color: var(--ss-text);
}

.kh-toc a:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.kh-related li {
  margin-bottom: 0.5rem;
}

.kh-path-nav {
  border-top: 1px solid var(--ss-border);
  padding-top: var(--ss-space-4);
  margin-top: var(--ss-space-5);
}

.kh-path-nav a {
  color: var(--ss-muted);
  text-decoration: none;
}

.kh-path-nav a:hover {
  color: var(--ss-text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.kh-path-nav a:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   6. DOCS DIRECTORY + ARTICLE READING (Slice 2)
   Learn-inspired IA: directory rows, query-first search, measured article body.
   ----------------------------------------------------------------------------- */

.ss-docs-page {
  max-width: 960px;
}

.ss-docs-page--wide {
  max-width: 1100px;
}

.ss-docs-section {
  margin-bottom: var(--ss-space-6);
}

.ss-docs-section:last-child {
  margin-bottom: 0;
}

.ss-docs-section__title {
  font-family: var(--ss-font-display);
  font-size: var(--ss-h3);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ss-text);
  margin: 0 0 var(--ss-space-3);
  padding-bottom: var(--ss-space-2);
  border-bottom: 1px solid var(--ss-border);
}

.ss-docs-section__intro {
  color: var(--ss-muted);
  font-size: var(--ss-small);
  max-width: var(--ss-measure);
  margin: calc(-1 * var(--ss-space-2)) 0 var(--ss-space-3);
}

/* Directory / result rows — not marketing cards */
.ss-docs-dir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Hub-of-hubs directory — two columns on wide viewports */
@media (min-width: 992px) {
  .ss-docs-dir--hubs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--ss-space-5);
    align-items: start;
  }

  .ss-docs-dir--hubs .ss-docs-row {
    border-bottom: 1px solid var(--ss-border);
    padding: var(--ss-space-3) 0;
  }

  .ss-docs-dir--hubs .ss-docs-row:first-child {
    padding-top: var(--ss-space-3);
  }
}

.ss-docs-row {
  display: block;
  padding: var(--ss-space-3) 0;
  border-bottom: 1px solid var(--ss-border);
}

.ss-docs-row:first-child {
  padding-top: 0;
}

.ss-docs-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ss-docs-row__title {
  display: inline-block;
  font-family: var(--ss-font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ss-text);
  text-decoration: none;
  margin: 0 0 0.25rem;
}

a.ss-docs-row__title:hover {
  color: var(--ss-text);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

a.ss-docs-row__title:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ss-docs-row__blurb {
  margin: 0.15rem 0 0;
  color: var(--ss-muted);
  font-size: var(--ss-small);
  line-height: 1.5;
  max-width: var(--ss-measure);
}

.ss-docs-row__meta {
  margin: 0.35rem 0 0;
  color: var(--ss-muted-2);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ss-docs-row--featured {
  padding: var(--ss-space-4) 0;
}

.ss-docs-row--featured .ss-docs-row__title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
}

.ss-docs-featured {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .ss-docs-featured--split {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0 var(--ss-space-5);
    align-items: start;
  }

  .ss-docs-featured--split .ss-docs-row--featured {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--ss-border-strong);
    margin-bottom: var(--ss-space-2);
    padding-bottom: var(--ss-space-4);
  }

  .ss-docs-featured--split .ss-docs-row:not(.ss-docs-row--featured) {
    border-bottom: none;
    padding: var(--ss-space-2) 0;
  }
}

/* Editorial recent / compact lists */
.ss-docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-docs-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ss-border);
}

.ss-docs-list__item:last-child {
  border-bottom: none;
}

.ss-docs-list__link {
  color: var(--ss-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--ss-small);
}

.ss-docs-list__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ss-docs-list__link:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ss-docs-list__date {
  color: var(--ss-muted-2);
  font-size: 0.8125rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Search — query first, filters quiet */
.ss-docs-search {
  margin-bottom: var(--ss-space-5);
}

.ss-docs-search__query-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ss-space-2);
  align-items: stretch;
  margin-bottom: var(--ss-space-3);
}

.ss-docs-search__query-row .form-control {
  flex: 1 1 16rem;
  min-height: 2.75rem;
  font-size: 1rem;
}

.ss-docs-search__query-row .btn {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
}

.ss-docs-search__filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: var(--ss-space-2) var(--ss-space-3);
  padding: var(--ss-space-3);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  background: var(--ss-bg-1);
}

.ss-docs-search__filters .form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ss-muted-2);
  margin-bottom: 0.25rem;
}

.ss-docs-search__filters .form-select {
  font-size: var(--ss-small);
  padding-block: 0.4rem;
}

.ss-docs-search__count {
  margin: 0 0 var(--ss-space-3);
  color: var(--ss-muted-2);
  font-size: 0.8125rem;
}

.ss-docs-empty {
  color: var(--ss-muted);
  max-width: var(--ss-measure);
}

.ss-docs-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ss-space-2) var(--ss-space-3);
  margin-top: var(--ss-space-3);
}

/* Learning path detail steps */
.ss-docs-path-section {
  margin-bottom: var(--ss-space-5);
}

.ss-docs-path-section__title {
  font-family: var(--ss-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 var(--ss-space-2);
  color: var(--ss-text);
}

.ss-docs-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: path-step;
}

.ss-docs-path-steps li {
  counter-increment: path-step;
  position: relative;
  padding: 0.7rem 0 0.7rem 2.25rem;
  border-bottom: 1px solid var(--ss-border);
}

.ss-docs-path-steps li:last-child {
  border-bottom: none;
}

.ss-docs-path-steps li::before {
  content: counter(path-step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--ss-border-strong);
  color: var(--ss-muted-2);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-docs-path-steps a {
  color: var(--ss-text);
  text-decoration: none;
  font-weight: 500;
}

.ss-docs-path-steps a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ss-docs-path-steps a:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Article reading layout */
.ss-docs-article__meta {
  margin: 0 0 var(--ss-space-5);
  color: var(--ss-muted-2);
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 72ch;
}

.ss-docs-article__layout {
  display: flex;
  flex-direction: column;
  gap: var(--ss-space-5);
}

.ss-docs-toc {
  border-left: none;
  border-bottom: 1px solid var(--ss-border);
  padding: 0 0 var(--ss-space-4);
  margin: 0;
}

.ss-docs-toc__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ss-muted-2);
  margin: 0 0 var(--ss-space-2);
}

.ss-docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-docs-toc__item {
  margin: 0 0 0.4rem;
}

.ss-docs-toc__item--depth-3 {
  padding-left: 0.75rem;
}

.ss-docs-toc__item--depth-4 {
  padding-left: 1.5rem;
}

.ss-docs-toc a {
  color: var(--ss-muted);
  text-decoration: none;
  font-size: var(--ss-small);
  line-height: 1.4;
}

.ss-docs-toc a:hover {
  color: var(--ss-text);
}

.ss-docs-toc a:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ss-docs-article__main {
  min-width: 0;
}

.ss-docs-article .public-content-wrapper {
  max-width: 72ch;
  color: var(--ss-muted);
  font-size: var(--ss-body);
  line-height: 1.7;
}

.ss-docs-article .public-content-wrapper > :first-child {
  margin-top: 0;
}

.ss-docs-article .public-content-wrapper h2,
.ss-docs-article .public-content-wrapper h3,
.ss-docs-article .public-content-wrapper h4 {
  font-family: var(--ss-font-display);
  color: var(--ss-text);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-top: var(--ss-space-5);
  margin-bottom: var(--ss-space-3);
}

.ss-docs-article .public-content-wrapper h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
}

.ss-docs-article .public-content-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.ss-docs-article .public-content-wrapper h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

.ss-docs-article .public-content-wrapper p,
.ss-docs-article .public-content-wrapper li {
  max-width: 72ch;
}

.ss-docs-article .public-content-wrapper a {
  color: var(--ss-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ss-docs-article .public-content-wrapper a:hover {
  color: var(--ss-accent-hover);
}

.ss-docs-article .public-content-wrapper code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--ss-radius-sm);
  background: var(--ss-bg-2);
  border: 1px solid var(--ss-border);
  color: var(--ss-text);
}

.ss-docs-article .public-content-wrapper pre {
  padding: var(--ss-space-3);
  border-radius: var(--ss-radius-md);
  background: var(--ss-bg-1);
  border: 1px solid var(--ss-border);
  overflow-x: auto;
}

.ss-docs-article .public-content-wrapper pre code {
  padding: 0;
  border: none;
  background: transparent;
}

.ss-docs-article .public-content-wrapper blockquote {
  margin: var(--ss-space-4) 0;
  padding: var(--ss-space-3) var(--ss-space-4);
  border-left: 3px solid var(--ss-border-strong);
  background: var(--ss-bg-1);
  color: var(--ss-muted);
}

.ss-docs-article__tags {
  margin-top: var(--ss-space-5);
  padding-top: var(--ss-space-3);
  border-top: 1px solid var(--ss-border);
  color: var(--ss-muted-2);
  font-size: 0.8125rem;
}

.ss-docs-article__tags-label {
  color: var(--ss-muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.ss-docs-related {
  margin-top: var(--ss-space-6);
  padding-top: var(--ss-space-4);
  border-top: 1px solid var(--ss-border);
}

.ss-docs-related__title {
  font-family: var(--ss-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 var(--ss-space-3);
  color: var(--ss-text);
}

@media (min-width: 992px) {
  .ss-docs-article__layout--with-toc {
    display: grid;
    grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
    gap: var(--ss-space-6);
    align-items: start;
  }

  .ss-docs-article__layout--with-toc .ss-docs-toc {
    position: sticky;
    top: 5.5rem;
    border-bottom: none;
    border-right: 1px solid var(--ss-border);
    padding: 0 var(--ss-space-3) 0 0;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-docs-toc,
  .kh-card,
  .ss-docs-row__title,
  .ss-docs-list__link {
    transition: none;
  }
}
