/* ================================================================
   Keytos global nav + footer for the Docs site.
   Ported from KeytosLandingPage (branch template-overhaul):
     assets/css/tokens.css + navbar.css + footer.css
   Docs-specific overrides live in the DOCS OVERRIDES block at the
   end of this file — keep them there so a re-port is a simple
   re-concat of the three source files above.
   ================================================================ */

/* ================================================================
   Keytos redesign — design tokens
   Values pulled from the Figma "Design System" variables.
   These are the single source of truth for the redesigned site;
   reference them via var(--…) — never hardcode raw hex/px.
   ================================================================ */
:root {
  /* ---- Brand / surface colors ---------------------------------- */
  --color-surface-card: #ffffff;
  --color-surface-canvas: #f7f9fb;
  --color-border-default: #dde3ea;

  --color-text-primary: #181d23;
  --color-text-secondary: #56616f;
  --color-text-brand: #0071a2;
  --color-text-button-fill: #f7f9fb;

  --color-btn-primary-default: #0071a2;
  --color-btn-primary-hover: #00577c;
  --color-btn-secondary-border-default: #56616f;
  --color-btn-secondary-border-selected: #0071a2;

  --color-info-background: #ebf5ff;
  --color-info-default: #00577c;
  --color-link-rest: #00577c;

  --color-error-default: #9e0a17;
  --color-error-background: #fee9e9;
  --color-success-default: #207f4f;
  --color-surface-raised: #ffffff;
  --color-text-disabled: #9aa6b4;

  --logo-blue: #27aae1;
  --logo-gray: #58595b;
  --color-blue-500: #0091ce;

  /* ---- Typography ---------------------------------------------- */
  --font-family-primary: "Ubuntu", system-ui, sans-serif;      /* headers */
  --font-family-secondary: "Inter", system-ui, sans-serif;     /* body / UI */
  --font-family-mono: "DM Mono", ui-monospace, monospace;      /* code / special */

  --font-size-b4: 14px;
  --font-size-b3: 16px;
  --font-size-b2: 18px;
  --font-size-b1: 20px;
  --font-size-h5: 20px;
  --font-size-h4: 24px;
  --font-size-h3: 30px;
  --font-size-h2: 36px;
  --font-size-h1: 48px;

  --line-height-b4: 19.6px;
  --line-height-b3: 22.4px;
  --line-height-b2: 25.2px;
  --line-height-b1: 28px;
  --line-height-l1: 19.6px;
  --line-height-h5: 26px;
  --line-height-h4: 31.2px;
  --line-height-h3: 39px;
  --line-height-h2: 46.8px;
  --line-height-h1: 62.4px;

  /* ---- Spacing scale ------------------------------------------- */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-120: 120px;

  /* ---- Radii --------------------------------------------------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 10000px;

  /* ---- Elevation ----------------------------------------------- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-dd: 0 2px 2px 0 rgba(0, 0, 0, 0.06);

  /* ---- Layout -------------------------------------------------- */
  --content-max: 1280px;
  --body-max: 800px;       /* body-text max-width for readability */
  --section-pad-x: 48px;   /* desktop section / footer horizontal padding — matches nav-pad-x */
  --hero-pad-y: 120px;     /* hero vertical padding */
  --section-pad-y: 96px;   /* normal section vertical padding */
  --section-pad-y-tight: 64px;
  --nav-pad-x: 48px;       /* desktop navbar horizontal padding */
  --nav-height: 72px;      /* desktop navbar height */
  --nav-height-tablet: 64px;
  --nav-height-mobile: 56px;

  /* ---- Breakpoints (for reference in comments) ----------------- */
  /* desktop >= 1200px | tablet 450-1199px | mobile < 450px */
}

/* ================================================================
   Dark theme scope — apply `theme-dark` to any section that renders
   on a dark surface (e.g. the footer). Overrides the semantic color
   tokens with their dark-mode values from Figma.
   ================================================================ */
.theme-dark {
  --color-surface-canvas: #0d1116;
  --color-surface-card: #181d23;
  --color-surface-brand-subtle: #001523;
  --color-border-default: #404954;
  --color-text-primary: #f7f9fb;
  --color-text-secondary: #9aa6b4;
  --color-text-brand: #0091ce;
  --color-btn-secondary-border-default: #9aa6b4;
  --color-info-background: #00577c;
}

/* ================================================================
   Responsive typography — same breakpoints as the navbar (1072px / 767px)
   so the whole page shifts together as one system.
   ================================================================ */

@media (max-width: 1139px) {
  :root {
    --font-size-h1: 40px;
    --font-size-h2: 32px;
    --font-size-h3: 26px;
    --font-size-h4: 22px;
    --font-size-h5: 18px;

    --line-height-h1: 52px;
    --line-height-h2: 41.6px;
    --line-height-h3: 33.8px;
    --line-height-h4: 28.6px;
    --line-height-h5: 23.4px;
  }
}

@media (max-width: 767px) {
  :root {
    --font-size-h1: 32px;
    --font-size-h2: 28px;
    --font-size-h3: 24px;
    --font-size-h4: 20px;
    --font-size-h5: 16px;
    --font-size-b1: 18px;
    --font-size-b2: 16px;
    --font-size-b3: 14px;
    --font-size-b4: 12px;
    --line-height-l1: 16.8px;

    --line-height-h1: 41.6px;
    --line-height-h2: 36.4px;
    --line-height-h3: 31.2px;
    --line-height-h4: 26px;
    --line-height-h5: 20.8px;
    --line-height-b1: 25.2px;
    --line-height-b2: 22.4px;
    --line-height-b3: 19.6px;
    --line-height-b4: 16.8px;
  }
}

/* ================================================================
   Keytos redesign — global navbar  (.knav-* namespace)
   Matches Figma "Templates" desktop nav (node 9:3142) and the
   Design-System dropdown / tablet / mobile variants.
   Interactivity: static/js/knav-interact.js
   Breakpoints: desktop >= 1200 | tablet 450-1199 | mobile < 450
   ================================================================ */

/* ---- Local reset scoped to the nav ----------------------------- */
.knav-root *,
.knav-root *::before,
.knav-root *::after { box-sizing: border-box; }
.knav-root ul { list-style: none; padding: 0; margin: 0; }
.knav-root p { margin: 0; }
.knav-root a,
.knav-root button { font-family: var(--font-family-secondary); }
.knav-ico { display: block; flex-shrink: 0; }

/* ---- Root / bar ------------------------------------------------- */
.knav-root {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--color-surface-card);
  border-bottom: 1px solid var(--color-border-default);
}
.knav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: var(--nav-height);
  /* content (logo -> contact) reaches 1280 like page sections; 48px is the min gutter, outside the 1280 */
  max-width: calc(var(--content-max) + 2 * var(--nav-pad-x));
  margin: 0 auto;
  padding: 0 var(--nav-pad-x);
}

/* ---- Logo ------------------------------------------------------- */
.knav-logo { line-height: 0; flex-shrink: 0; text-decoration: none; }
.knav-logo img { height: 48px; width: auto; display: block; }

/* ---- Centered desktop menu ------------------------------------- */
.knav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.knav-item { position: relative; display: flex; align-items: center; gap: var(--space-4); padding-inline: 12px; }

.knav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-8);
  padding-inline: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-b3);
  line-height: var(--line-height-b3);
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.knav-link:hover,
.knav-link[aria-expanded="true"] { color: var(--color-text-brand); }
.knav-link.knav-current { color: var(--color-text-brand); }

.knav-chev { transition: transform 0.2s ease; }
.knav-link[aria-expanded="true"] .knav-chev { transform: rotate(180deg); }

/* ---- Right-side controls --------------------------------------- */
.knav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
  margin-left: auto;
}

/* Language switcher */
.knav-lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-12);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  color: var(--color-text-primary);
  transition: color 0.15s ease;
}
.knav-lang:hover,
.knav-lang[aria-expanded="true"] { color: var(--color-text-brand); }
.knav-lang .knav-chev { width: 12px; height: 12px; }
.knav-lang[aria-expanded="true"] .knav-chev { transform: rotate(180deg); }

.knav-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dd);
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1051;
}
.knav-lang-wrap { position: relative; display: flex; align-items: center; padding: var(--space-8); gap: var(--space-4); }
.knav-lang-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.knav-lang-menu a {
  display: block;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-b3);
  color: var(--color-text-primary);
  text-decoration: none;
}
.knav-lang-menu a:hover { background: var(--color-info-background); color: var(--color-info-default); }

/* Contact Us pill */
.knav-contact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  background: var(--color-btn-primary-default);
  color: var(--color-text-button-fill);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-b4);
  line-height: var(--line-height-b4);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.knav-contact:hover { background: var(--color-btn-primary-hover); color: var(--color-text-button-fill); }

/* Hamburger (tablet / mobile) */
.knav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  border: none;
  background: none;
  color: var(--color-text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.knav-burger:hover { color: var(--color-text-brand); }

/* ================================================================
   Desktop mega-dropdown
   ================================================================ */
.knav-dd {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-default);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-dd);
  padding: var(--space-24);
  display: flex;
  gap: var(--space-24);
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1049;
  width: 860px;                                      /* fixed for all tabs; sized so Partner's longest button ("Managed service providers") fits on one line with a full 20px icon */
  max-width: calc(100vw - 2 * var(--nav-pad-x));
}
.knav-dd.is-open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

/* Left column: category list */
.knav-dd-left { display: flex; flex-direction: column; gap: var(--space-12); flex-shrink: 0; }
.knav-dd-label {
  font-size: var(--font-size-b4);
  line-height: var(--line-height-l1);
  font-weight: 600;
  color: var(--color-text-secondary);
}
.knav-dd-options { display: flex; flex-direction: column; gap: var(--space-4); }
.knav-opt {
  display: grid;
  align-items: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-b3);
  line-height: var(--line-height-b3);
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.knav-opt > span { grid-area: 1 / 1; white-space: nowrap; }
/* Ghost reserves the Medium-weight (selected) width so the column doesn't
   resize when a different option becomes active. */
.knav-opt::after {
  content: attr(data-label);
  grid-area: 1 / 1;
  font-weight: 500;
  height: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.knav-opt:hover { background: var(--color-surface-canvas); color: var(--color-text-primary); }
.knav-opt.is-active { background: var(--color-info-background); color: var(--color-info-default); }
.knav-opt.is-active > span { font-weight: 500; }

/* Vertical divider */
.knav-dd-divider { width: 1px; background: var(--color-border-default); align-self: stretch; flex-shrink: 0; }

/* Right column */
.knav-dd-right { position: relative; flex: 1; min-width: 0; }

/* --- Product / partner preview panel --- */
.knav-prod { display: none; flex-direction: column; gap: var(--space-16); }
.knav-prod.is-visible { display: flex; }
.knav-prod-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); }
/* Uniform logo height, aspect locked, left-aligned */
.knav-prod-logo { height: 36px; width: auto; display: block; }
.knav-prod-tagline {
  font-size: var(--font-size-b4);
  line-height: var(--line-height-b4);
  color: var(--color-text-secondary);
}
.knav-prod-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
}
.knav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  border: 1px solid var(--color-btn-secondary-border-default);
  border-radius: var(--radius-md);
  background: var(--color-surface-card);
  font-size: var(--font-size-b3);
  line-height: var(--line-height-b3);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.knav-btn:hover { border-color: var(--color-btn-secondary-border-selected); color: var(--color-text-brand); }
.knav-btn-ico { flex-shrink: 0; }
.knav-btn-ico--filled { display: none; }
.knav-btn:hover .knav-btn-ico:not(.knav-btn-ico--filled) { display: none; }
.knav-btn:hover .knav-btn-ico--filled { display: block; }
.knav-btn span { white-space: nowrap; }
.knav-btn .knav-chev-r { color: currentColor; }
/* Reuse the down-chevron glyph, rotated to point right */
.knav-chev-r { transform: rotate(-90deg); }

/* --- Blog preview panel --- */
.knav-blog { display: none; flex-direction: column; gap: var(--space-16); width: 100%; }
.knav-blog.is-visible { display: flex; }
.knav-blog-title {
  font-family: var(--font-family-primary);
  font-weight: 500;
  font-size: var(--font-size-h5);
  line-height: var(--line-height-h5);
  color: var(--color-text-primary);
}
.knav-blog-featrow { display: flex; align-items: center; justify-content: space-between; }
.knav-blog-featured { font-size: var(--font-size-b4); line-height: var(--line-height-b4); color: var(--color-text-secondary); }
.knav-more {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--font-size-b4); line-height: var(--line-height-b4);
  color: var(--color-link-rest); text-decoration: none;
}
.knav-more:hover { color: var(--color-text-brand); }
.knav-blog-cards { display: flex; gap: var(--space-16); }
.knav-card {
  display: flex; flex-direction: column;
  flex: 1 1 0; min-width: 0;
  background: var(--color-surface-canvas);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
}
.knav-card-img { width: 100%; aspect-ratio: 500 / 173; background: linear-gradient(135deg, #1c2438, #0071a2); }
.knav-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.knav-card-body { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-8) var(--space-8) var(--space-16); }
.knav-card-title {
  font-size: var(--font-size-b3); line-height: var(--line-height-b3); color: var(--color-text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.knav-card-meta { display: flex; align-items: center; justify-content: space-between; }
.knav-card-author { display: flex; align-items: center; gap: var(--space-4); }
.knav-card-author img { height: 16px; width: auto; object-fit: contain; }
.knav-card-author span { font-size: var(--font-size-b4); line-height: var(--line-height-l1); font-weight: 600; color: var(--color-text-secondary); }
.knav-card-date { font-size: var(--font-size-b4); line-height: var(--line-height-b4); color: var(--color-text-secondary); }

/* ================================================================
   Mobile / tablet slide panel  (shared markup, CSS-switched)
   ================================================================ */
.knav-panel {
  position: fixed;
  background: var(--color-surface-card);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  max-height: 100dvh;              /* hug content; scroll only if taller than viewport */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.knav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--panel-nav-h, 64px);   /* align the X with the navbar hamburger */
  padding: 0 var(--panel-pad-x, 24px);
  flex-shrink: 0;
}
.knav-panel-head .knav-logo img { height: 32px; }
.knav-close {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-8);
  border: none; background: none; color: var(--color-text-primary);
  cursor: pointer; border-radius: var(--radius-sm); margin-left: auto;
}
.knav-close:hover { color: var(--color-text-brand); }

/* .knav-panel prefix beats the `.knav-root ul` reset (0,1,1) so padding applies */
.knav-panel .knav-acc { display: flex; flex-direction: column; padding: 0 var(--panel-pad-x, 24px); }
.knav-acc-item { border-top: 1px solid var(--color-border-default); }
.knav-acc-item:first-child { border-top: none; }
.knav-acc-trigger,
.knav-acc-top-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8);
  width: 100%;
  padding: var(--space-16) 0;
  border: none; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-b3); line-height: var(--line-height-b3); font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
}
.knav-acc-trigger[aria-expanded="true"],
.knav-acc-top-link.knav-current { color: var(--color-text-brand); }
.knav-acc-item.is-open .knav-acc-trigger .knav-chev { transform: rotate(180deg); }
/* Collapsed by default; shown only when its item is open. Driving display off
   .is-open (not the [hidden] attr) because the .knav-panel-scoped rule would
   otherwise override [hidden]{display:none}. */
.knav-panel .knav-acc-sub { display: none; flex-direction: column; padding: 0 0 var(--space-8) var(--space-16); }
.knav-panel .knav-acc-item.is-open .knav-acc-sub { display: flex; }
.knav-acc-link {
  display: block;                 /* block so the vertical padding actually spaces the links */
  padding: var(--space-8) 0;
  font-size: var(--font-size-b3); line-height: var(--line-height-b3);
  color: var(--color-text-primary); text-decoration: none;
}
.knav-acc-link:hover { color: var(--color-text-brand); }
.knav-panel-contact {
  margin: var(--space-16) var(--panel-pad-x, 24px) var(--space-24);
  justify-content: center;
}

/* Overlay behind the panel */
.knav-overlay {
  position: fixed; inset: 0;
  background: rgba(24, 29, 35, 0.4);
  z-index: 1199;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.knav-overlay.is-open { opacity: 1; pointer-events: auto; }
body.knav-lock { overflow: hidden; }

/* ================================================================
   Responsive
   ================================================================ */

/* --- Desktop (>=1073): no hamburger, so the slide panel must not render --- */
@media (min-width: 1140px) {
  .knav-panel { display: none; }
}

/* --- Tablet & mobile: hide desktop menu + language, show burger --- */
@media (max-width: 1139px) {
  .knav-menu,
  .knav-lang-wrap,
  .knav-dd { display: none; }
  .knav-burger { display: inline-flex; }
}

/* --- Tablet (768-1072): top-right sheet, narrower, bottom-left radius only --- */
@media (min-width: 768px) and (max-width: 1139px) {
  .knav-bar { height: var(--nav-height-tablet); padding: 0 32px; }
  .knav-logo img { height: 40px; }

  .knav-panel {
    --panel-pad-x: 32px;
    --panel-nav-h: var(--nav-height-tablet);
    top: 0;
    right: 0;
    width: min(400px, 100vw);
    border-bottom-left-radius: var(--radius-lg);
    transform: translateY(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Shadow only while open, so the hidden (translated-up) panel doesn't bleed a shade at the top */
  .knav-panel.is-open { transform: translateY(0); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
  /* Tablet: hide the logo in the panel head (X only) */
  .knav-panel .knav-panel-head .knav-logo { display: none; }
}

/* --- Mobile (< 768): full-width top sheet, hugs content --- */
@media (max-width: 767px) {
  .knav-bar { height: var(--nav-height-mobile); padding: 0 16px; }
  .knav-logo img { height: 32px; }
  .knav-actions .knav-contact { display: none; }   /* no contact pill in mobile bar */

  .knav-panel {
    --panel-pad-x: 16px;
    --panel-nav-h: var(--nav-height-mobile);
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    transform: translateY(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Shadow only while open, so the hidden (translated-up) panel doesn't bleed a shade at the top */
  .knav-panel.is-open { transform: translateY(0); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
}

/* ================================================================
   Keytos redesign — global footer (.kfoot-* namespace)
   Dark surface (applies .theme-dark token scope).
   Figma Design-System footer: desktop 2180:2589 / tablet 2180:2588 / mobile 2180:2587
   Breakpoints: desktop >= 1100 | tablet 500-1099 | mobile < 500
   ================================================================ */

.kfoot-root *,
.kfoot-root *::before,
.kfoot-root *::after { box-sizing: border-box; }
.kfoot-root p { margin: 0; }
.kfoot-root ul { list-style: none; margin: 0; padding: 0; }

.kfoot-root {
  background: var(--color-surface-canvas);
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
  padding: var(--space-64) var(--section-pad-x) 120px;
  font-family: var(--font-family-secondary);
}
.kfoot-row { width: 100%; max-width: var(--content-max); }

/* ---- Top: brand + nav columns --------------------------------- */
.kfoot-top { display: flex; gap: var(--space-96); align-items: flex-start; }
.kfoot-brand { display: flex; flex-direction: column; gap: var(--space-16); flex-shrink: 0; }
.kfoot-logo { line-height: 0; display: block; }
.kfoot-logo img { height: 80px; width: auto; display: block; }
.kfoot-badges { display: flex; gap: var(--space-16); align-items: center; }
/* cover (not contain) so both badges fill the box at equal visual size despite
   differing source aspect ratios/padding (matches Figma) */
.kfoot-badge { height: 100px; width: 100px; object-fit: cover; object-position: center; }

.kfoot-nav { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: var(--space-32); }
.kfoot-col { display: flex; flex-direction: column; gap: var(--space-12); }
.kfoot-col-title {
  font-size: var(--font-size-b4); line-height: var(--line-height-l1);
  font-weight: 600; color: var(--color-text-secondary);
}
.kfoot-links { display: flex; flex-direction: column; gap: var(--space-8); }
.kfoot-link {
  display: block; padding: var(--space-2) 0;
  font-size: var(--font-size-b3); line-height: var(--line-height-b3);
  color: var(--color-text-primary); text-decoration: none;
  transition: color 0.15s ease;
}
.kfoot-link:hover { color: var(--color-text-brand); }

/* ---- Podcast preview card ------------------------------------- */
/* Outer is a size container so the card responds to its OWN width
   (individual responsiveness), independent of the viewport. */
.kfoot-podcast { container-type: inline-size; }
.kfoot-podcast-card {
  display: flex; align-items: center; gap: var(--space-32);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-default);
  border-radius: 20px;
  padding: var(--space-16);
}
.kfoot-podcast-thumb {
  position: relative; flex-shrink: 0;
  width: 402px; aspect-ratio: 402 / 226;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #10233b 0%, #0b3a5c 55%, #0091ce 100%);
}
.kfoot-podcast-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kfoot-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #ff0000; display: flex; align-items: center; justify-content: center;
}
.kfoot-play svg { width: 45%; height: 45%; display: block; }
.kfoot-podcast-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); justify-content: center; }
.kfoot-podcast-meta { display: flex; flex-direction: column; gap: var(--space-4); }
.kfoot-podcast-date { font-size: var(--font-size-b4); line-height: var(--line-height-l1); font-weight: 600; color: var(--color-text-secondary); }
.kfoot-podcast-title {
  font-family: var(--font-family-primary); font-weight: 700;
  font-size: var(--font-size-h4); line-height: var(--line-height-h4);
  color: var(--color-text-primary);
}
.kfoot-podcast-desc {
  font-size: var(--font-size-b2); line-height: var(--line-height-b2);
  color: var(--color-text-secondary); max-width: 800px;
}
.kfoot-yt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  align-self: flex-start;
  padding: var(--space-16) var(--space-32);
  border: 1px solid var(--color-btn-secondary-border-default);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-b2); line-height: var(--line-height-b2); font-weight: 500;
  color: var(--color-text-primary); text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.kfoot-yt-btn:hover { color: var(--color-text-brand); border-color: var(--color-text-brand); }
.kfoot-yt-btn svg { width: 24px; height: 24px; flex-shrink: 0; }

/* Card responds to its OWN width (not viewport): go vertical once narrow enough
   that the horizontal layout would exceed ~330px tall. Placed AFTER the base
   rules so these win (same specificity). Thumbnail then fills width, aspect locked. */
@container (max-width: 830px) {
  .kfoot-podcast-card { flex-direction: column; align-items: stretch; gap: var(--space-16); }
  .kfoot-podcast-thumb { width: 100%; }
  .kfoot-play { width: 80px; height: 80px; }
  .kfoot-yt-btn { align-self: stretch; }
}

/* ---- Social + language row ------------------------------------ */
.kfoot-social-row { display: flex; align-items: center; justify-content: space-between; }
.kfoot-social { display: flex; align-items: center; gap: var(--space-16); }
.kfoot-social a { line-height: 0; display: block; }
.kfoot-social img { height: 32px; width: 32px; object-fit: contain; display: block; }
.kfoot-lang {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-8) var(--space-16); border: none; background: none; cursor: pointer;
  border-radius: var(--radius-pill); color: var(--color-text-primary);
  transition: color 0.15s ease;
}
.kfoot-lang:hover { color: var(--color-text-brand); }
.kfoot-lang-inner { display: inline-flex; align-items: center; gap: var(--space-8); }
.kfoot-lang-label { font-size: var(--font-size-b4); line-height: var(--line-height-b4); font-weight: 500; }
.kfoot-lang svg.kfoot-globe { width: 16px; height: 16px; }
.kfoot-lang svg.kfoot-chev { width: 16px; height: 16px; transition: transform 0.2s ease; }
.kfoot-lang[aria-expanded="true"] svg.kfoot-chev { transform: rotate(180deg); }

/* Language dropdown — opens upward (footer is at page bottom) */
.kfoot-lang-wrap { position: relative; }
.kfoot-lang-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px);
  min-width: 160px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  padding: var(--space-4);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}
.kfoot-lang-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.kfoot-lang-menu a {
  display: block; padding: var(--space-8) var(--space-12); border-radius: var(--radius-sm);
  font-size: var(--font-size-b3); color: var(--color-text-primary); text-decoration: none;
}
.kfoot-lang-menu a:hover { background: var(--color-info-background); color: var(--color-text-primary); }

/* ---- Legal ---------------------------------------------------- */
.kfoot-legal {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--font-size-b4); line-height: var(--line-height-b4);
  color: var(--color-text-primary);
}
.kfoot-legal-line { display: flex; gap: var(--space-8); }
.kfoot-legal-links { display: flex; gap: var(--space-20); }
.kfoot-legal-links a { color: var(--color-text-primary); text-decoration: none; }
.kfoot-legal-links a:hover { color: var(--color-text-brand); }

/* ================================================================
   Tablet (500-1099)
   ================================================================ */
@media (max-width: 1099px) {
  .kfoot-root { gap: var(--space-48); padding: var(--space-48) var(--space-32) 120px; }
  /* stretch so the nav grid fills the container (podcast layout is container-driven) */
  .kfoot-top { align-items: stretch; }
}

@media (min-width: 500px) and (max-width: 1099px) {
  /* brand: logo left, badges right */
  .kfoot-top { flex-direction: column; gap: var(--space-48); }
  .kfoot-brand { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .kfoot-logo img { height: 80px; }
  .kfoot-badge { height: 80px; width: 80px; }

  /* nav: 2x2 grid */
  .kfoot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ----------------------------------------------------------------
   Legal row: stack into two rows below 640px so the UEI/CAGE line
   and the Terms/Privacy links never wrap their own text mid-line.
   ---------------------------------------------------------------- */
@media (max-width: 639px) {
  .kfoot-legal { flex-direction: column; align-items: flex-start; gap: var(--space-20); }
  .kfoot-legal-links { order: -1; }
  .kfoot-legal-line { flex-direction: column; gap: 0; }
  .kfoot-legal-sep { display: none; }
}

/* ================================================================
   Mobile (< 500) — single column, larger link text
   ================================================================ */
@media (max-width: 499px) {
  .kfoot-root { gap: var(--space-20); padding: 40px var(--space-20) 120px; align-items: stretch; }

  .kfoot-top { flex-direction: column; gap: var(--space-20); }
  .kfoot-brand { flex-direction: column; gap: var(--space-24); }
  .kfoot-logo img { height: 60px; }
  .kfoot-badge { height: 60px; width: 60px; }

  /* nav columns stack full width */
  .kfoot-nav { display: flex; flex-direction: column; gap: var(--space-20); }
  .kfoot-col-title { font-size: var(--font-size-b2); line-height: var(--line-height-b2); font-weight: 500; }
  .kfoot-link { font-size: var(--font-size-b1); line-height: var(--line-height-b1); }

  /* social + language stack */
  .kfoot-social-row { flex-direction: column; align-items: flex-start; gap: var(--space-20); }
  .kfoot-social img { height: 44px; width: 44px; }
  .kfoot-lang { padding: var(--space-16) var(--space-32); }
  .kfoot-lang-label { font-size: var(--font-size-b2); line-height: var(--line-height-b2); }
  .kfoot-lang svg.kfoot-globe { width: 24px; height: 24px; }
  .kfoot-lang svg.kfoot-chev { width: 20px; height: 20px; }

  /* legal: links first, then stacked info, all at B2 */
  .kfoot-legal { flex-direction: column; align-items: flex-start; gap: var(--space-20); font-size: var(--font-size-b2); line-height: var(--line-height-b2); }
  .kfoot-legal-links { order: -1; }
  .kfoot-legal-line { flex-direction: column; gap: 0; }
  .kfoot-legal-sep { display: none; }
}

/* ================================================================
   DOCS OVERRIDES
   Figma "Design System": desktop 2193:2194, tablet 2193:2266,
   mobile 2193:2226. Everything above this block is a verbatim port
   of the marketing site's tokens + navbar + footer; the docs-specific
   deltas live here so re-porting is just a re-concat of those three.

   Deltas from the marketing navbar:
     1. horizontal padding 24 / 24 / 16   (Figma measures 20/20/16 —
        24 is the value specified for the build)
     2. breakpoints 1140 / 768 (patched in place above, incl. tokens)
     3. "Docs" label + divider after the logo; logo -> keytos.io,
        Docs -> keytos.io/docs/
     4. bar background is canvas grey, not white
   Plus: search bar becomes an icon; tablet = search + burger (no
   Contact pill); mobile = burger only.
   ================================================================ */

/* ---- 4. Bar background (Figma #f7f9fb) ------------------------- */
.knav-root { background: var(--color-surface-canvas); }

/* ---- 1. Horizontal padding 24 / 24 / 16 ------------------------ */
:root { --nav-pad-x: 24px; }
@media (min-width: 768px) and (max-width: 1139px) {
  .knav-bar { padding-inline: 24px; }
}
@media (max-width: 767px) {
  .knav-bar { padding-inline: 16px; }
}

/* ---- 3. Brand cluster: logo | divider | Docs ------------------- */
/* Two separate links because users were confusing them: the logo
   returns to the marketing site, "Docs" to the docs root. */
.knav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.knav-divider-v {
  width: 1px;
  height: 48px;
  background: var(--color-border-default);
  flex-shrink: 0;
}
/* Scoped with .knav-root so it beats the nav reset
   `.knav-root a, .knav-root button { font-family: secondary }` (0,1,1),
   which would otherwise force Inter onto this Ubuntu label. */
.knav-root .knav-docs {
  padding-inline: 4px;
  font-family: var(--font-family-primary);
  font-weight: 500;
  /* --font-size-h3 is already 30 / 26 / 24 across these breakpoints,
     which is exactly what Figma specifies for the three sizes. */
  font-size: var(--font-size-h3);
  line-height: 1;
  color: var(--logo-gray);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.knav-root .knav-docs:hover { color: var(--color-text-brand); }

/* ---- Search: DocSearch v3 button reduced to an icon ------------ */
/* Same widget, same modal — only the label and keyboard hint are
   hidden, so search behaviour is untouched. */
.knav-search-wrap { display: flex; align-items: center; flex-shrink: 0; }
.knav-search-wrap .td-search,
.knav-search-wrap .td-search--algolia { margin: 0; padding: 0; }

.knav-search-wrap .DocSearch-Button {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.knav-search-wrap .DocSearch-Button:hover,
.knav-search-wrap .DocSearch-Button:focus-visible {
  background: transparent;
  box-shadow: none;
  color: #0071A2;
}
.knav-search-wrap .DocSearch-Button:hover .DocSearch-Search-Icon,
.knav-search-wrap .DocSearch-Button:focus-visible .DocSearch-Search-Icon {
  color: #0071A2;
}
.knav-search-wrap .DocSearch-Button-Container { margin: 0; }
/* Label + ⌘K hint are the only things dropped */
.knav-search-wrap .DocSearch-Button-Placeholder,
.knav-search-wrap .DocSearch-Button-Keys { display: none; }
.knav-search-wrap .DocSearch-Search-Icon {
  width: 23px;
  height: 23px;
  color: var(--color-text-primary);
  stroke-width: 2;
}

/* ---- Right-side composition per breakpoint -------------------- */
/* Tablet: search + burger, no Contact pill (Figma 2193:2266) */
@media (min-width: 768px) and (max-width: 1139px) {
  .knav-actions .knav-contact { display: none; }
  .knav-divider-v { height: 40px; }
}
/* Mobile: burger only — no search, no Contact (Figma 2193:2226) */
@media (max-width: 767px) {
  .knav-search-wrap { display: none; }
  .knav-divider-v { height: 32px; }
}

/* ---- Blog cards: real cover images ---------------------------- */
/* The marketing build used a gradient placeholder; docs renders real
   covers from data/navblogposts.json. Gradient stays as the backdrop
   so a 404 cover degrades to the placeholder instead of a blank box. */
.knav-card-img { position: relative; overflow: hidden; }
.knav-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---- Supplied icon glyphs (List.svg, Search.svg) as mask URIs ---- */
:root {
  --knav-list-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M2%205.75C2%205.33579%202.33579%205%202.75%205H18.25C18.6642%205%2019%205.33579%2019%205.75C19%206.16421%2018.6642%206.5%2018.25%206.5H2.75C2.33579%206.5%202%206.16421%202%205.75ZM2%2017.75C2%2017.3358%202.33579%2017%202.75%2017H15.25C15.6642%2017%2016%2017.3358%2016%2017.75C16%2018.1642%2015.6642%2018.5%2015.25%2018.5H2.75C2.33579%2018.5%202%2018.1642%202%2017.75ZM2.75%2011C2.33579%2011%202%2011.3358%202%2011.75C2%2012.1642%202.33579%2012.5%202.75%2012.5H21.25C21.6642%2012.5%2022%2012.1642%2022%2011.75C22%2011.3358%2021.6642%2011%2021.25%2011H2.75Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  --knav-search-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%3E%3Cpath%20d%3D%22M18.6664%2019.727C17.0069%2021.1443%2014.8534%2022%2012.5%2022C7.25329%2022%203%2017.7467%203%2012.5C3%207.25329%207.25329%203%2012.5%203C17.7467%203%2022%207.25329%2022%2012.5C22%2014.8534%2021.1443%2017.0069%2019.727%2018.6663L25.7803%2024.7197C26.0732%2025.0126%2026.0732%2025.4874%2025.7803%2025.7803C25.4874%2026.0732%2025.0126%2026.0732%2024.7197%2025.7803L18.6664%2019.727ZM20.5%2012.5C20.5%208.08172%2016.9183%204.5%2012.5%204.5C8.08172%204.5%204.5%208.08172%204.5%2012.5C4.5%2016.9183%208.08172%2020.5%2012.5%2020.5C16.9183%2020.5%2020.5%2016.9183%2020.5%2012.5Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
}

/* ================================================================
   DOCSY INTEGRATION FIXES (round 2)
   ================================================================ */

/* ---- 2. Nav spans the full width (no 1280 cap) ---------------- */
.knav-bar { max-width: none; }

/* ---- 4. Reclaim the old fixed-navbar offset -------------------
   Docsy's navbar is position:fixed, so it padded the sidebar (4rem)
   and main (5.5rem at md+) to clear it. Our nav is position:sticky and
   sits in normal flow, so that compensation was dead space. Drop to
   1.5rem — the same content padding Docsy already uses below md — so
   the sidebar and the content start at the same height. */
@media (min-width: 768px) {
  .td-sidebar { padding-top: 1.5rem; }
  .td-404 main,
  .td-main main { padding-top: 1.5rem; }
}

/* ---- 8. Gutter belongs to the content, not the whole page -----
   .td-outer is a .container-fluid, so Bootstrap's gutter put 12px down
   both sides of everything inside it — including the footer, which
   manages its own padding. Move that gutter onto the content row. */
.td-outer { padding-left: 0; padding-right: 0; }
.td-main { padding-left: 12px; padding-right: 12px; }

/* ---- 5. Sidebar toggle uses the supplied List glyph -----------
   Docsy renders this as a Font Awesome `bars` glyph in ::before.
   Swapped for the provided List.svg via mask-image so it still
   inherits currentColor. */
/* Scoped to the COLLAPSED state only. Docsy swaps in a Font Awesome
   xmark via .td-sidebar__toggle[aria-expanded="true"]::before (0,2,0),
   which would outrank an unscoped rule and paint the glyph on top of
   the mask. Matching that specificity keeps the X as the close icon. */
.td-sidebar__toggle {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.td-sidebar__toggle[aria-expanded="false"]::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-image: var(--knav-list-icon);
  mask-image: var(--knav-list-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

/* ---- 7. Nav search icon uses the supplied Search glyph --------
   DocSearch ships its own inline SVG; hide it and mask in the provided
   28px icon so the button keeps DocSearch's behaviour. */
.knav-search-wrap .DocSearch-Search-Icon { display: none; }
.knav-search-wrap .DocSearch-Button::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  background-color: var(--color-text-primary);
  -webkit-mask-image: var(--knav-search-icon);
  mask-image: var(--knav-search-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 28px 28px;
  mask-size: 28px 28px;
}

/* ================================================================
   DOCSY INTEGRATION FIXES (round 3)
   ================================================================ */

/* ---- 1. Sidebar search aligns with the page heading ------------
   Docsy gives .td-sidebar__search `padding: 1rem 0`; that 16px top
   pushed the search box below the "Keytos Documentation" heading on
   the right. Drop the top pad at md+ so the two line up. */
@media (min-width: 768px) {
  .td-sidebar__search { padding-top: 0; }
}

/* ---- 2a. Make the navbar genuinely sticky ---------------------
   Docsy's baseof wraps the partial in a bare <header>, and that
   wrapper hugs the nav (73px tall), so .knav-root's own sticky
   positioning had zero scroll range and the bar scrolled away.
   Promoting the WRAPPER to the sticky container is what actually
   pins it -- and it is why the gap above the sidebar search grew:
   the sidebar stuck at the nav height while the nav itself had
   already scrolled off. */
body > header {
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* ---- 2. Sticky sidebar sticks below the nav, not under it ------
   .td-sidebar__inner is `position: sticky; top: 4rem` — another
   leftover sized for Docsy's fixed navbar. Our nav is sticky and
   72px/64px tall, so a 4rem stop made the gap above the search box
   grow as the page scrolled. Pin it to the real nav height. */
@media (min-width: 768px) {
  .td-sidebar__inner {
    /* nav height + its 1px bottom border + the sidebar's own 1.5rem
       top padding, so the gap above the search box is the SAME at rest
       and once pinned (it used to collapse to 0 on scroll). */
    top: calc(var(--nav-height) + 1px + 1.5rem);
    height: calc(100vh - var(--nav-height) - 1px - 1.5rem);
  }
}
@media (min-width: 768px) and (max-width: 1139px) {
  .td-sidebar__inner {
    top: calc(var(--nav-height-tablet) + 1px + 1.5rem);
    height: calc(100vh - var(--nav-height-tablet) - 1px - 1.5rem);
  }
}

/* ---- 2b. Keep the sidebar scroll area inside the sticky column -----
   Docsy caps .td-sidebar-nav at `calc(100vh - 8.5rem)` (~724px), a
   height sized for its own layout. Our .td-sidebar__inner is shorter —
   100vh minus the real nav height — and it also holds the ~52px search
   box ABOVE the nav, so search + nav overflowed the inner by ~13px. At
   rest that sliver hides below the viewport, but when the sticky sidebar
   is pushed up at the page bottom it spilled — scrollbar and all — onto
   the dark footer (the "slight overhang" in review). Make the inner a
   flex column and let the nav flex to fill exactly the space left under
   the search, so it scrolls WITHIN the column and never overhangs. */
@media (min-width: 768px) {
  .td-sidebar__inner { display: flex; flex-direction: column; }
  .td-sidebar__inner > .td-sidebar-nav {
    max-height: none;   /* drop Docsy's viewport-based cap */
    min-height: 0;      /* let the flex child shrink so it scrolls */
    flex: 1 1 auto;
  }
}

/* ---- kbtn — shared pill buttons (ported from landing page hero.css) --- */
.kbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-family-secondary, Inter, sans-serif);
  font-size: 1rem; line-height: 1.5; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.kbtn svg { flex-shrink: 0; }
.kbtn-primary { background: var(--color-btn-primary-default, #0071A2); color: #fff; }
.kbtn-primary:hover { background: var(--color-btn-primary-hover, #00577c); color: #fff; }
.kbtn-secondary { background: transparent; color: var(--color-text-primary, #1a1a2e); border-color: #c0c8d0; }
.kbtn-secondary:hover { color: #0071A2; border-color: #0071A2; }

/* ---- 4. Toggle keeps one width in both states -----------------
   Docsy sizes the collapsed (bars) and expanded (xmark) glyphs
   differently, so `width: auto` made the button — and therefore the
   search box beside it — resize on every click. Fix the box and let
   the glyph centre inside it. */
.td-sidebar__toggle {
  width: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  padding: 0;
  box-sizing: content-box;
}
.td-sidebar__toggle[aria-expanded="true"]::before {
  display: block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

/* ---- 5. DocSearch modal above sticky navbar --------------------
   The navbar sits at z-index 1050; DocSearch's default container
   z-index is ~200, so the modal renders behind the bar on mobile.
   Raise both the backdrop and the modal above the navbar. */
.DocSearch-Container {
  z-index: 1100;
}
