/* ==========================================================================
   InterpretBank Docs — design system
   Loaded after bootstrap.min.css; overrides the framework defaults.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --header-h: 60px;
  --sidebar-w: 288px;
  --toc-w: 232px;
  --content-max: 780px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --panel: #ffffff;
  --panel-hover: #f3f5f8;
  --border: #e4e7ec;
  --border-strong: #d2d8e0;
  --text: #14181f;
  --text-muted: #5b6472;
  --text-faint: #858e9c;
  --accent: #1a6dd4;
  --accent-hover: #1559ad;
  --accent-soft: #eef4fd;
  --accent-contrast: #ffffff;
  --code-bg: #f5f7fa;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, 0.16);

  --note-bg: #f2f7fe;
  --note-border: #c9defa;
  --note-icon: #1a6dd4;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0e12;
  --bg-subtle: #101319;
  --panel: #12161c;
  --panel-hover: #191e26;
  --border: #232932;
  --border-strong: #313945;
  --text: #e7eaef;
  --text-muted: #9aa3b1;
  --text-faint: #6f7885;
  --accent: #6ba6f5;
  --accent-hover: #8bbaf8;
  --accent-soft: #14203010;
  --accent-contrast: #08121f;
  --code-bg: #151a21;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);

  --note-bg: #121b27;
  --note-border: #22354c;
  --note-icon: #6ba6f5;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.12s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

p { color: var(--text); }

hr { border-color: var(--border); }

code, pre, kbd {
  font-family: var(--font-mono);
}

code {
  font-size: 0.875em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.12em 0.38em;
  color: var(--text);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  color: var(--text);
}

pre code {
  background: none;
  border: 0;
  padding: 0;
}

.docs-screenshot {
  display: block;
  width: 280px;
  max-width: 36%;
  height: auto;
  margin: 0 0 18px auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.docs-section .row:has(.docs-screenshot) {
  display: block;
}

.docs-section .row:has(.docs-screenshot) > [class*="col"] {
  display: contents;
}

.docs-screenshot,
p > .docs-screenshot:only-child,
.col .docs-screenshot,
.col-sm .docs-screenshot {
  float: right;
  margin: 2px 0 18px 24px;
}

.docs-screenshot-full,
p > .docs-screenshot-full:only-child {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
}

.docs-screenshot:not(.docs-screenshot-full) {
  cursor: zoom-in;
}

.docs-image-modal .modal-dialog {
  max-width: min(1120px, calc(100vw - 32px));
}

.docs-image-modal .modal-content {
  position: relative;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
}

.docs-image-modal .modal-body {
  padding: 18px;
}

.docs-image-modal img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.docs-image-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  opacity: 1;
}

@media (max-width: 767.98px) {
  .docs-screenshot,
  p > .docs-screenshot:only-child,
  .col .docs-screenshot,
  .col-sm .docs-screenshot {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 18px;
  }

  .docs-section .row:has(.docs-screenshot) {
    display: flex;
  }

  .docs-section .row:has(.docs-screenshot) > [class*="col"] {
    display: block;
  }
}

kbd {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}

::selection {
  background: var(--accent-soft);
}

/* Focus rings — visible but unobtrusive */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover { color: var(--text); }

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.brand-docs {
  color: var(--text-faint);
  font-weight: 500;
}

.header-spacer { flex: 1 1 auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search trigger */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  height: 34px;
  padding: 0 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-faint);
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.search-trigger:hover {
  border-color: var(--border-strong);
  background: var(--panel-hover);
}

.search-trigger .search-trigger-label {
  flex: 1 1 auto;
  text-align: left;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.icon-btn:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.theme-toggle .icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }

/* Sidebar toggle (mobile) */
.sidebar-toggler {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn,
.btn-primary,
.btn-light {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 7px 15px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  box-shadow: none;
}

.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
  box-shadow: none;
}

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--panel-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   5. Sidebar
   -------------------------------------------------------------------------- */

.docs-shell {
  padding-top: var(--header-h);
  overflow-x: clip;
}

.docs-sidebar {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 24px 12px 64px 20px;
  z-index: 1020;
}

.docs-sidebar::-webkit-scrollbar { width: 8px; }
.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }

/* Product switcher at the top of the sidebar */
.sidebar-switcher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-switcher a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.sidebar-switcher a:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.sidebar-switcher a.current {
  background: var(--accent-soft);
  color: var(--accent);
}

:root[data-theme="dark"] .sidebar-switcher a.current {
  background: var(--panel-hover);
}

.sidebar-switcher i {
  width: 15px;
  text-align: center;
  font-size: 12.5px;
}

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

.docs-nav .nav-item { display: block; }

.docs-nav .nav-link {
  display: block;
  padding: 5px 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background 0.1s ease, color 0.1s ease;
}

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

.docs-nav .nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}

:root[data-theme="dark"] .docs-nav .nav-link.active {
  background: var(--panel-hover);
}

/* Group headings */
.docs-nav .section-title {
  margin-top: 22px;
}

.docs-nav .section-title:first-child { margin-top: 0; }

.docs-nav .section-title > .nav-link {
  padding-left: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.docs-nav .section-title > .nav-link:hover {
  background: none;
  color: var(--text);
}

.docs-nav .section-title > .nav-link.active,
:root[data-theme="dark"] .docs-nav .section-title > .nav-link.active {
  background: none;
  color: var(--text-faint);
}

/* Child links get a hairline rail, like Soniox */
.docs-nav .nav-item:not(.section-title) {
  margin-left: 10px;
  border-left: 1px solid var(--border);
  padding-left: 4px;
}

.docs-nav .nav-item:not(.section-title) .nav-link.active {
  box-shadow: inset 2px 0 0 var(--accent);
}

.docs-nav .theme-icon-holder { display: none; }

/* --------------------------------------------------------------------------
   6. Content
   -------------------------------------------------------------------------- */

.docs-content {
  margin-left: var(--sidebar-w);
  min-height: calc(100vh - var(--header-h));
}

.docs-content > .container,
.docs-content > .container-fluid {
  max-width: none;
  padding: 0 40px;
}

.docs-article {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}

.docs-article:last-of-type { border-bottom: 0; }

.docs-header { margin-bottom: 8px; }

.docs-heading {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.docs-time {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-faint);
  margin-top: 6px;
}

.docs-intro {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.docs-section {
  padding: 20px 0;
  max-width: var(--content-max);
}

.section-heading {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 20px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.docs-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 22px 0 10px;
}

.docs-section h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.docs-section p { margin-bottom: 14px; }

.docs-section ul,
.docs-section ol {
  margin-bottom: 16px;
  padding-left: 22px;
}

.docs-section li { margin-bottom: 6px; }

.component-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}

.component-card {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.component-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--accent-soft);
}

.component-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.component-card p {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 991.98px) {
  .component-card-grid {
    grid-template-columns: 1fr;
  }
}

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

/* The prose was authored against the Bootstrap grid. Neutralise the gutter
   negative margins so nothing can push the page wider than the viewport. */
.docs-content .row {
  margin-left: 0;
  margin-right: 0;
}

.docs-content .row > [class*="col"] {
  padding-left: 8px;
  padding-right: 8px;
}

.docs-content .container,
.docs-content .container-fluid .container-fluid {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Wide tables scroll inside themselves rather than widening the page */
.docs-section .table-responsive,
.docs-section table {
  max-width: 100%;
  overflow-x: auto;
}

/* Screenshots */
.docs-section img.rounded,
.docs-section img.img-fluid {
  border-radius: var(--radius);
}

.docs-section img.rounded {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 2px;
}

:root[data-theme="dark"] .docs-section img.rounded,
:root[data-theme="dark"] .docs-section img.img-fluid {
  filter: brightness(0.94);
}

/* Inline icon images inside prose (toolbar glyphs) */
.docs-section p > img[src*="/hell/"],
.docs-section li > img[src*="/hell/"] {
  vertical-align: text-bottom;
  border-radius: 4px;
}

/* Tables */
.docs-section table,
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 18px;
  color: var(--text);
}

.table th,
.table td,
.docs-section table th,
.docs-section table td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  vertical-align: top;
}

.table thead th,
.docs-section table thead th {
  background: var(--bg-subtle);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
}

.table-striped tbody tr:nth-of-type(odd) {
  background: var(--bg-subtle);
}

/* Callouts */
.callout-block {
  display: flex;
  gap: 12px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
}

.callout-block .callout-icon-holder {
  flex: 0 0 auto;
  color: var(--note-icon);
  font-size: 14px;
  line-height: 1.7;
}

.callout-block .content { flex: 1 1 auto; }

.callout-block .callout-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}

.callout-block p:last-child { margin-bottom: 0; }

.callout-block .callout-title .fas { display: none; }

/* --------------------------------------------------------------------------
   7. "On this page" rail
   -------------------------------------------------------------------------- */

.docs-toc {
  display: none;
}

@media (min-width: 1400px) {
  .docs-content { margin-right: var(--toc-w); }

  .docs-toc {
    display: block;
    position: fixed;
    top: calc(var(--header-h) + 40px);
    right: 0;
    width: var(--toc-w);
    max-height: calc(100vh - var(--header-h) - 80px);
    overflow-y: auto;
    padding: 0 24px 40px 12px;
  }

  .docs-toc-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
  }

  .docs-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
  }

  .docs-toc a {
    display: block;
    padding: 4px 0 4px 12px;
    margin-left: -1px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
    border-left: 1px solid transparent;
  }

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

  .docs-toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   8. Landing page
   -------------------------------------------------------------------------- */

.landing {
  padding-top: var(--header-h);
}

.landing-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.landing-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.landing-title {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.landing-lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 32px;
}

.landing-search {
  max-width: 520px;
  width: 100%;
  height: 46px;
  font-size: 15px;
  margin-bottom: 64px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 767.98px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
}

.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.doc-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.doc-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 16px;
}

:root[data-theme="dark"] .doc-card-icon {
  background: var(--panel-hover);
}

.doc-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex: 1 1 auto;
}

.doc-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
}

.doc-card-links a {
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.doc-card-links a:hover { color: var(--accent); }

.doc-card-cta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
}

.doc-card-cta i {
  font-size: 11px;
  margin-left: 5px;
  transition: transform 0.15s ease;
  display: inline-block;
}

.doc-card:hover .doc-card-cta i { transform: translateX(3px); }

.card-link-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-lg);
}

/* Secondary link row under the cards */
.landing-secondary {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 767.98px) {
  .landing-secondary { grid-template-columns: minmax(0, 1fr); }
}

.landing-secondary h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.landing-secondary p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Search overlay (⌘K)
   -------------------------------------------------------------------------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(16, 20, 28, 0.45);
  backdrop-filter: blur(2px);
  display: none;
  padding: 12vh 16px 16px;
}

.search-overlay.open { display: block; }

.search-panel {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-panel-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
}

.search-panel-input input {
  flex: 1 1 auto;
  border: 0;
  background: none;
  font-size: 15.5px;
  color: var(--text);
  outline: none;
}

.search-results {
  max-height: 56vh;
  overflow-y: auto;
  padding: 8px;
}

.search-result {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.search-result:hover,
.search-result.active {
  background: var(--panel-hover);
  color: var(--text);
}

.search-result-title {
  font-size: 14px;
  font-weight: 500;
}

.search-result-crumb {
  font-size: 12px;
  color: var(--text-faint);
}

.search-empty {
  padding: 28px 12px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
}

.search-footer {
  display: flex;
  gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   10. Page footer & pager
   -------------------------------------------------------------------------- */

.docs-pager {
  display: flex;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 0 8px;
}

.docs-pager a {
  flex: 1 1 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.12s ease;
}

.docs-pager a:hover { border-color: var(--border-strong); }

.docs-pager .pager-label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.docs-pager .pager-title {
  font-size: 14.5px;
  font-weight: 500;
}

.docs-pager .pager-next { text-align: right; }

.footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 0;
}

.footer .copyright,
.footer small {
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer .social-list {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.footer .social-list a {
  color: var(--text-faint);
  font-size: 15px;
}

.footer .social-list a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   11. Modal (video lightbox) — reskin of the Bootstrap component
   -------------------------------------------------------------------------- */

.modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.modal-dialog { max-width: 860px; }

.modal-body { padding: 0; position: relative; }

.modal-body video { width: 100%; display: block; border-radius: var(--radius-lg); }

.modal .close {
  position: absolute;
  right: -34px;
  top: -4px;
  z-index: 5;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
  background: none;
  border: 0;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .sidebar-toggler { display: inline-flex; align-items: center; justify-content: center; }

  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }

  .docs-sidebar.open { transform: translateX(0); }

  .docs-content { margin-left: 0; }

  .sidebar-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(16, 20, 28, 0.4);
    z-index: 1010;
    display: none;
  }

  .sidebar-backdrop.open { display: block; }
}

@media (max-width: 991.98px) {
  .search-trigger { width: 34px; padding: 0; justify-content: center; }
  .search-trigger .search-trigger-label,
  .search-trigger kbd { display: none; }
  .header-hide-sm { display: none !important; }
}

@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .docs-content > .container,
  .docs-content > .container-fluid { padding: 0 20px; }
  .docs-heading { font-size: 28px; }
  .landing-title { font-size: 32px; }
  .landing-inner { padding: 48px 20px 64px; }
  .modal .close { right: 6px; top: 6px; }
}

/* Print */
@media print {
  .site-header, .docs-sidebar, .docs-toc, .search-overlay { display: none !important; }
  .docs-content { margin: 0; }
}
