/* Scoped CSS for KeLoc Blog & Documentation Layout */

:root {
  --doc-sidebar-width: 260px;
}

/* Two-column layout */
.doc-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-block: 40px 80px;
}

.doc-sidebar {
  width: var(--doc-sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.doc-sidebar-inner {
  padding-bottom: 32px;
}

.doc-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-sidebar-group {
  margin-bottom: 20px;
}

.doc-sidebar-group .eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 12px;
}

.doc-nav-link {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 12px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  line-height: 1.4;
}

.doc-nav-link:hover {
  color: var(--blue);
  border-left-color: rgba(35, 90, 233, 0.3);
  background: rgba(35, 90, 233, 0.03);
}

.doc-nav-link.active {
  color: var(--blue);
  font-weight: 600;
  border-left-color: var(--blue);
  background: rgba(35, 90, 233, 0.07);
}

.doc-content {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 920px;
}

.doc-content section {
  margin-bottom: 56px;
}

.doc-content h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.doc-content h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.doc-content h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 28px;
  margin-bottom: 12px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Mini Runner Widget */
.mini-runner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-block: 24px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.runner-query-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fdfefe;
  border-bottom: 1px solid var(--line);
}

.runner-prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.95rem;
  user-select: none;
}

.runner-query-input {
  flex: 1 1 0%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.runner-query-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 90, 233, 0.15);
}

.runner-output {
  margin: 0;
  padding: 14px 16px;
  background: #1e2430;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  max-height: 280px;
}

.runner-output code {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

/* Icon actions shared by runners and the playground */
.runner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.runner-icon-btn,
.doc-content .runner-actions .code-snippet-actions button,
.playground-page .runner-actions .code-snippet-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.runner-icon-btn:hover,
.doc-content .runner-actions .code-snippet-actions button:hover,
.playground-page .runner-actions .code-snippet-actions button:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #ffffff;
}

.runner-icon-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.runner-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runner-icon-btn svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

.runner-run-btn {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.runner-run-btn:hover {
  background: #153da8;
  border-color: #153da8;
  color: #ffffff;
}

.runner-icon-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* Result copy sits on the output instead of a title bar */
.runner-result {
  position: relative;
}

.runner-result .runner-output,
.runner-result .playground-output-pre {
  padding-right: 60px;
}

.doc-content .runner-result-copy,
.playground-page .runner-result-copy {
  position: absolute;
  top: 10px;
  right: 20px;
}

.doc-content .runner-result .runner-result-copy button,
.playground-page .runner-result .runner-result-copy button {
  width: 30px;
  height: 30px;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(30, 36, 48, 0.92);
  color: #e6edf3;
}

.doc-content .runner-result .runner-result-copy button:hover,
.playground-page .runner-result .runner-result-copy button:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: #2b3445;
  color: #ffffff;
}

/* Thin, quiet scrollbars on dark outputs */
.runner-output,
.playground-output-pre {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.runner-output::-webkit-scrollbar,
.playground-output-pre::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.runner-output::-webkit-scrollbar-track,
.playground-output-pre::-webkit-scrollbar-track {
  background: transparent;
}

.runner-output::-webkit-scrollbar-thumb,
.playground-output-pre::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28) padding-box;
}

.runner-output::-webkit-scrollbar-corner,
.playground-output-pre::-webkit-scrollbar-corner {
  background: transparent;
}

/* Full Playground Section */
.playground-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-block: 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.playground-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.playground-editor-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.playground-textarea {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fafbfd;
  resize: vertical;
  outline: none;
}

.playground-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 90, 233, 0.15);
}

.playground-output-pre {
  height: 280px;
  margin: 0;
  border: 1px solid #2d3748;
  border-radius: 6px;
  padding: 12px;
  background: #171d26;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow: auto;
}

/* Status sits under the query bar, on the right, in small muted text */
.playground-status-line {
  margin: 4px 2px 0;
  min-height: 18px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: right;
}

/* The playground page is the playground alone, filling the browser window */
.playground-page .playground-card {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.playground-page .playground-grid {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}

.playground-page .playground-grid > div,
.playground-page .runner-result {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.playground-page .runner-result {
  flex: 1 1 auto;
}

.playground-page .playground-textarea,
.playground-page .playground-output-pre {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  resize: none;
}

/* Left group: site links, then the page title after a thin divider */
.playground-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.playground-title {
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.6;
}

/* Dev Workbench button beside Run: the app icon and name; icon only on phones */
.playground-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 5px 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.playground-app-link:hover,
.playground-app-link:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(35, 90, 233, 0.12);
  color: var(--ink);
}

.playground-app-link img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

/* Blue square with a white arrow: this opens the App Store */
.playground-app-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 2px;
  border-radius: 3px;
  background: var(--blue);
}

.playground-app-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 575.98px) {
  .playground-app-link {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
  .playground-app-name,
  .playground-app-arrow {
    display: none;
  }
}

/* KeLoc wordmark with Products and Blog on the left, as in the site header */
.playground-site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.playground-site-nav a:not(.global-wordmark) {
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}

.playground-site-nav a:not(.global-wordmark):hover {
  color: var(--ink);
}

.playground-site-nav .global-wordmark {
  margin-right: 8px;
}

/* KeLoc wordmark on the left; sample picker and actions together on the right */
.playground-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  margin-left: auto;
}

/* Below 1200px the picker's own text says what it is, so the "Sample" label is
   kept for screen readers only and the controls stay on one row at 1024px */
@media (max-width: 1199.98px) {
  .playground-sample-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }
}

/* Very narrow phones: the title may wrap, so it drops its divider */
@media (max-width: 359.98px) {
  .playground-title {
    padding-left: 0;
    border-left: 0;
  }
}

/* Phones: wordmark above one row of sample picker and actions; the label stays for screen readers */
@media (max-width: 575.98px) {
  .playground-brand,
  .playground-site-nav {
    gap: 6px 8px;
  }
  .playground-site-nav .global-wordmark {
    margin-right: 0;
  }
  .playground-site-nav a:not(.global-wordmark) {
    font-size: .88rem;
  }
  .playground-title {
    padding-left: 8px;
    font-size: .88rem;
  }
  .playground-page .playground-controls {
    gap: 10px;
    margin-bottom: 12px;
  }
  .playground-toolbar {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .playground-sample {
    flex: 1 1 auto;
    min-width: 0;
  }
  .playground-sample select {
    width: 100% !important;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .playground-page .playground-card {
    padding: 12px 16px;
  }
  .playground-page .playground-grid {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Tutorial link to the playground page */
.playground-link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.playground-link-card p {
  flex: 1 1 320px;
  margin: 0;
}

/* Call to action conversion box */
.doc-app-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
  margin-top: 64px;
}

.doc-app-cta h2 {
  font-size: 1.6rem;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}

/* Responsive styles */
@media (max-width: 991.98px) {
  .doc-layout {
    flex-direction: column;
    gap: 20px;
    padding-block: 20px 48px;
  }
  .doc-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .doc-content {
    max-width: 100%;
  }
  .playground-grid {
    grid-template-columns: 1fr;
  }
}


/* Keep snippet actions attached to their code without using page CTA styles. */
.doc-content .code-snippet {
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.doc-content .code-snippet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}
.doc-content .code-snippet-actions,
.playground-page .code-snippet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.doc-content .code-snippet-actions button,
.playground-page .code-snippet-actions button {
  padding: 3px 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.doc-content .code-snippet-actions button:hover,
.playground-page .code-snippet-actions button:hover {
  background: var(--line);
  color: var(--ink);
}
.doc-content .code-snippet-actions button:focus-visible,
.playground-page .code-snippet-actions button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.doc-content .code-snippet pre {
  margin: 0;
  padding: 16px;
}

.doc-content .code-snippet-actions button,
.playground-page .code-snippet-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.doc-content .code-snippet-actions svg,
.playground-page .code-snippet-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doc-content .code-snippet-actions .copy-tick,
.playground-page .code-snippet-actions .copy-tick,
.doc-content .code-snippet-actions [data-copied] .copy-icon,
.playground-page .code-snippet-actions [data-copied] .copy-icon {
  display: none;
}
.doc-content .code-snippet-actions [data-copied] .copy-tick,
.playground-page .code-snippet-actions [data-copied] .copy-tick {
  display: block;
}

.doc-content .runner-query-input { min-width: 0; }
.doc-content .code-snippet-actions button[hidden],
.playground-page .code-snippet-actions button[hidden] { display: none; }

/* Article breadcrumb, side note and cheat sheet */
.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-breadcrumb li + li::before {
  content: "›";
  margin-right: 6px;
}

.doc-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.doc-breadcrumb a:hover {
  color: var(--blue);
}

.doc-note {
  border-left: 2px solid var(--blue);
  padding-left: 14px;
  color: var(--muted);
}

.doc-table {
  font-size: 0.9rem;
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
}

.doc-table th {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

.doc-table td {
  vertical-align: top;
}

.doc-table td:first-child {
  min-width: 160px;
}

/* Runner captions say what each example queries */
.runner-caption {
  margin: 28px 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.runner-caption + .mini-runner {
  margin-top: 0;
}

/* Icon tooltips appear immediately on hover and keyboard focus */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--dark);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.mini-runner {
  overflow: visible;
}

.mini-runner > .runner-query-bar {
  border-radius: 7px 7px 0 0;
}

/* Several query rows share one result: only the first row has top corners,
   and a blue edge marks the row whose result is showing. */
.mini-runner > .runner-query-bar + .runner-query-bar {
  border-radius: 0;
}

.mini-runner > .runner-query-bar.is-active {
  background: #f4f7fe;
  box-shadow: inset 3px 0 0 var(--blue);
}

.runner-result .runner-output {
  border-radius: 0 0 7px 7px;
}

/* Collapsible sample JSON */
.doc-content .sample-disclosure {
  margin-bottom: 1rem;
}

.doc-content .sample-disclosure > summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
}

.doc-content .sample-disclosure:not([open]) > summary {
  border-bottom: 0;
}

.doc-content .sample-disclosure > summary::-webkit-details-marker {
  display: none;
}

.doc-content .sample-disclosure > summary:hover {
  background: #f7f9fc;
}

.doc-content .sample-disclosure > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.sample-disclosure-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
}

.sample-disclosure-hint::before {
  content: "Show";
}

.sample-disclosure[open] .sample-disclosure-hint::before {
  content: "Hide";
}

.sample-disclosure-hint::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}

.sample-disclosure[open] .sample-disclosure-hint::after {
  transform: translateY(2px) rotate(-135deg);
}

.sample-disclosure-body {
  position: relative;
}

.doc-content .sample-disclosure-body pre {
  padding-right: 60px;
}

.doc-content .sample-copy {
  position: absolute;
  top: 10px;
  right: 20px;
}

.doc-content .sample-disclosure-body .sample-copy button {
  width: 30px;
  height: 30px;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

/* Platform tabs (install instructions) */
.doc-content .doc-tabs {
  gap: 4px;
  margin: 20px 0 16px;
  border-bottom: 1px solid var(--line);
}

.doc-content .doc-tab {
  margin-bottom: -1px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.doc-content .doc-tab:hover {
  color: var(--ink);
}

.doc-content .doc-tab.active {
  border-bottom-color: var(--blue);
  color: var(--ink);
}

.doc-content .doc-tab:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.doc-content .tab-pane:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* Shown only when JavaScript is off and every platform is listed */
.doc-tab-label {
  display: none;
  margin: 20px 0 8px;
  color: var(--ink);
  font-weight: 650;
}

/* Short numbered instructions */
.doc-content .doc-steps {
  padding-left: 1.4rem;
}

.doc-content .doc-steps li {
  margin-bottom: 4px;
  padding-left: 2px;
}

/* Closing Dev Workbench panel: copy beside one demonstration card */
.doc-app-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.doc-app-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.doc-app-demo {
  flex: 0 0 280px;
}

.doc-app-benefits {
  margin: 0 0 24px;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .9rem;
}

.doc-app-benefits li {
  margin-bottom: 6px;
}

.doc-app-benefits strong {
  color: var(--ink);
}

.doc-app-demo .workbench-media-gallery {
  margin-top: 0;
}

.doc-app-demo .workbench-media-card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

/* Two columns only where the copy column fits both actions on one line. */
@media (max-width: 1199.98px) {
  .doc-app-layout {
    flex-direction: column;
    gap: 24px;
  }

  .doc-app-demo {
    flex-basis: auto;
    width: 100%;
    max-width: 360px;
  }
}

/* A highlighted contents link keeps the KeLoc accent over the default contents link colour. */
.doc-nav-link.text-accent {
  color: var(--blue);
}
