:root {
  --octc-color-primary: #18181b;
  --octc-color-primary-hover: #3f3f46;
  --octc-color-bg: #ffffff;
  --octc-color-bg-alt: #f6f6f7;
  --octc-color-text: #18181b;
  --octc-color-text-muted: #5f5f67;
  --octc-color-border: #ececee;
  --octc-color-code-bg: #111113;
  --octc-color-code-bg-top: #111113;
  --octc-color-code-text: #e8e8eb;
}
[data-theme="dark"] {
  --octc-color-primary: #fafafa;
  --octc-color-primary-hover: #d4d4d8;
  --octc-color-bg: #09090b;
  --octc-color-bg-alt: #131316;
  --octc-color-text: #ececef;
  --octc-color-text-muted: #8e8e96;
  --octc-color-border: #1c1c1f;
  --octc-color-code-bg: #0e0e10;
  --octc-color-code-bg-top: #0e0e10;
  --octc-color-code-text: #e8e8eb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --octc-color-primary: #fafafa;
    --octc-color-primary-hover: #d4d4d8;
    --octc-color-bg: #09090b;
    --octc-color-bg-alt: #131316;
    --octc-color-text: #ececef;
    --octc-color-text-muted: #8e8e96;
    --octc-color-border: #1c1c1f;
    --octc-color-code-bg: #0e0e10;
    --octc-color-code-bg-top: #0e0e10;
    --octc-color-code-text: #e8e8eb;
  }
}
:root {
  --octc-sidebar-width: 260px;
  --octc-header-height: 60px;
  --octc-max-content-width: 960px;
}
:root {
  --octc-font-sans: "IBM Plex Sans", "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  --octc-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
:root {
  --octc-color-code-line-highlight: color-mix(in srgb, #e8e8eb 10%, transparent);
  --octc-color-code-line-warning: color-mix(in srgb, #a16207 18%, transparent);
  --octc-color-code-line-warning-border: #a16207;
  --octc-color-code-line-error: color-mix(in srgb, #c8323f 20%, transparent);
  --octc-color-code-line-error-border: #c8323f;
  --octc-color-code-line-add: color-mix(in srgb, #15803d 16%, transparent);
  --octc-color-code-line-add-border: #15803d;
  --octc-color-code-line-remove: color-mix(in srgb, #c8323f 14%, transparent);
  --octc-color-code-line-remove-border: #c8323f;
  --octc-color-code-line-focus: color-mix(in srgb, #e8e8eb 10%, transparent);
  --octc-color-code-line-dim: 0.45;
  --octc-color-code-title-bg: color-mix(in srgb, #111113 92%, #e8e8eb);
  --octc-color-code-title-text: color-mix(in srgb, #e8e8eb 88%, #111113);
  --octc-color-code-title-border: color-mix(in srgb, #e8e8eb 16%, transparent);
  --octc-color-code-line-number: color-mix(in srgb, #e8e8eb 40%, transparent);
  --octc-color-code-frame-border: #111113;
  --octc-color-backdrop: rgba(24, 24, 27, 0.42);
  --octc-surface-glass: color-mix(in srgb, #f6f6f7 62%, #ffffff);
  --octc-surface-line: color-mix(in srgb, #ececee 72%, #ffffff);
  --octc-brand-violet: #7c3aed;
  --octc-brand-cyan: #0e7490;
  --octc-brand-lime: #15803d;
  --octc-brand-coral: #c8323f;
  --octc-brand-navy: color-mix(in srgb, #18181b 70%, #ffffff);
  --octc-brand-violet-rgb: 124, 58, 237;
  --octc-brand-cyan-rgb: 14, 116, 144;
  --octc-brand-lime-rgb: 21, 128, 61;
  --octc-brand-coral-rgb: 200, 50, 63;
  --octc-accent-a: #18181b;
  --octc-accent-b: #7c3aed;
  --octc-accent-c: #0e7490;
  --octc-accent-warm: #a16207;
  --octc-accent-cool: #2563eb;
  --octc-accent-a-ink: #18181b;
  --octc-accent-b-ink: #7c3aed;
  --octc-accent-c-ink: #0e7490;
  --octc-accent-warm-ink: #a16207;
  --octc-accent-cool-ink: #2563eb;
  --octc-accent-coral-ink: #c8323f;
  --octc-color-tip: #15803d;
  --octc-color-info: #5f5f67;
  --octc-color-warning: #a16207;
  --octc-color-danger: #c8323f;
  --octc-syntax-foreground: #e8e8eb;
  --octc-syntax-background: #111113;
  --octc-syntax-token-comment: color-mix(in srgb, #e8e8eb 50%, #111113);
  --octc-syntax-token-punctuation: color-mix(in srgb, #e8e8eb 70%, #111113);
  --octc-syntax-token-keyword: #c4a3ff;
  --octc-syntax-token-string: #7ee2a8;
  --octc-syntax-token-string-expression: #7ee2a8;
  --octc-syntax-token-constant: #e8c170;
  --octc-syntax-token-function: #82b4ff;
  --octc-syntax-token-parameter: #ff7b86;
  --octc-syntax-token-link: #6fe3f0;
}
[data-theme="dark"] {
  --octc-color-code-line-highlight: color-mix(in srgb, #e8e8eb 10%, transparent);
  --octc-color-code-line-warning: color-mix(in srgb, #e8c170 18%, transparent);
  --octc-color-code-line-warning-border: #e8c170;
  --octc-color-code-line-error: color-mix(in srgb, #ff7b86 20%, transparent);
  --octc-color-code-line-error-border: #ff7b86;
  --octc-color-code-line-add: color-mix(in srgb, #7ee2a8 16%, transparent);
  --octc-color-code-line-add-border: #7ee2a8;
  --octc-color-code-line-remove: color-mix(in srgb, #ff7b86 14%, transparent);
  --octc-color-code-line-remove-border: #ff7b86;
  --octc-color-code-line-focus: color-mix(in srgb, #e8e8eb 10%, transparent);
  --octc-color-code-line-dim: 0.35;
  --octc-color-code-title-bg: color-mix(in srgb, #0e0e10 92%, #e8e8eb);
  --octc-color-code-title-text: color-mix(in srgb, #e8e8eb 88%, #0e0e10);
  --octc-color-code-title-border: color-mix(in srgb, #e8e8eb 16%, transparent);
  --octc-color-code-line-number: color-mix(in srgb, #e8e8eb 40%, transparent);
  --octc-color-code-frame-border: color-mix(in srgb, #1c1c1f 92%, transparent);
  --octc-color-backdrop: rgba(4, 4, 5, 0.66);
  --octc-surface-glass: color-mix(in srgb, #131316 62%, #09090b);
  --octc-surface-line: color-mix(in srgb, #1c1c1f 72%, #09090b);
  --octc-brand-violet: #c4a3ff;
  --octc-brand-cyan: #6fe3f0;
  --octc-brand-lime: #7ee2a8;
  --octc-brand-coral: #ff7b86;
  --octc-brand-navy: color-mix(in srgb, #ececef 70%, #09090b);
  --octc-brand-violet-rgb: 196, 163, 255;
  --octc-brand-cyan-rgb: 111, 227, 240;
  --octc-brand-lime-rgb: 126, 226, 168;
  --octc-brand-coral-rgb: 255, 123, 134;
  --octc-accent-a: #fafafa;
  --octc-accent-b: #c4a3ff;
  --octc-accent-c: #6fe3f0;
  --octc-accent-warm: #e8c170;
  --octc-accent-cool: #82b4ff;
  --octc-accent-a-ink: #fafafa;
  --octc-accent-b-ink: #c4a3ff;
  --octc-accent-c-ink: #6fe3f0;
  --octc-accent-warm-ink: #e8c170;
  --octc-accent-cool-ink: #82b4ff;
  --octc-accent-coral-ink: #ff7b86;
  --octc-color-tip: #7ee2a8;
  --octc-color-info: #8e8e96;
  --octc-color-warning: #e8c170;
  --octc-color-danger: #ff7b86;
  --octc-syntax-foreground: #e8e8eb;
  --octc-syntax-background: #0e0e10;
  --octc-syntax-token-comment: color-mix(in srgb, #e8e8eb 50%, #0e0e10);
  --octc-syntax-token-punctuation: color-mix(in srgb, #e8e8eb 70%, #0e0e10);
  --octc-syntax-token-keyword: #c4a3ff;
  --octc-syntax-token-string: #7ee2a8;
  --octc-syntax-token-string-expression: #7ee2a8;
  --octc-syntax-token-constant: #e8c170;
  --octc-syntax-token-function: #82b4ff;
  --octc-syntax-token-parameter: #ff7b86;
  --octc-syntax-token-link: #6fe3f0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --octc-color-code-line-highlight: color-mix(in srgb, #e8e8eb 10%, transparent);
    --octc-color-code-line-warning: color-mix(in srgb, #e8c170 18%, transparent);
    --octc-color-code-line-warning-border: #e8c170;
    --octc-color-code-line-error: color-mix(in srgb, #ff7b86 20%, transparent);
    --octc-color-code-line-error-border: #ff7b86;
    --octc-color-code-line-add: color-mix(in srgb, #7ee2a8 16%, transparent);
    --octc-color-code-line-add-border: #7ee2a8;
    --octc-color-code-line-remove: color-mix(in srgb, #ff7b86 14%, transparent);
    --octc-color-code-line-remove-border: #ff7b86;
    --octc-color-code-line-focus: color-mix(in srgb, #e8e8eb 10%, transparent);
    --octc-color-code-line-dim: 0.35;
    --octc-color-code-title-bg: color-mix(in srgb, #0e0e10 92%, #e8e8eb);
    --octc-color-code-title-text: color-mix(in srgb, #e8e8eb 88%, #0e0e10);
    --octc-color-code-title-border: color-mix(in srgb, #e8e8eb 16%, transparent);
    --octc-color-code-line-number: color-mix(in srgb, #e8e8eb 40%, transparent);
    --octc-color-code-frame-border: color-mix(in srgb, #1c1c1f 92%, transparent);
    --octc-color-backdrop: rgba(4, 4, 5, 0.66);
    --octc-surface-glass: color-mix(in srgb, #131316 62%, #09090b);
    --octc-surface-line: color-mix(in srgb, #1c1c1f 72%, #09090b);
    --octc-brand-violet: #c4a3ff;
    --octc-brand-cyan: #6fe3f0;
    --octc-brand-lime: #7ee2a8;
    --octc-brand-coral: #ff7b86;
    --octc-brand-navy: color-mix(in srgb, #ececef 70%, #09090b);
    --octc-brand-violet-rgb: 196, 163, 255;
    --octc-brand-cyan-rgb: 111, 227, 240;
    --octc-brand-lime-rgb: 126, 226, 168;
    --octc-brand-coral-rgb: 255, 123, 134;
    --octc-accent-a: #fafafa;
    --octc-accent-b: #c4a3ff;
    --octc-accent-c: #6fe3f0;
    --octc-accent-warm: #e8c170;
    --octc-accent-cool: #82b4ff;
    --octc-accent-a-ink: #fafafa;
    --octc-accent-b-ink: #c4a3ff;
    --octc-accent-c-ink: #6fe3f0;
    --octc-accent-warm-ink: #e8c170;
    --octc-accent-cool-ink: #82b4ff;
    --octc-accent-coral-ink: #ff7b86;
    --octc-color-tip: #7ee2a8;
    --octc-color-info: #8e8e96;
    --octc-color-warning: #e8c170;
    --octc-color-danger: #ff7b86;
    --octc-syntax-foreground: #e8e8eb;
    --octc-syntax-background: #0e0e10;
    --octc-syntax-token-comment: color-mix(in srgb, #e8e8eb 50%, #0e0e10);
    --octc-syntax-token-punctuation: color-mix(in srgb, #e8e8eb 70%, #0e0e10);
    --octc-syntax-token-keyword: #c4a3ff;
    --octc-syntax-token-string: #7ee2a8;
    --octc-syntax-token-string-expression: #7ee2a8;
    --octc-syntax-token-constant: #e8c170;
    --octc-syntax-token-function: #82b4ff;
    --octc-syntax-token-parameter: #ff7b86;
    --octc-syntax-token-link: #6fe3f0;
  }
}
.content h1,
              .hero-name {
                letter-spacing: -0.02em;
              }
              /*
 * Ox Content docs skin: seamless chrome, tiles instead of rules.
 *
 * The page is one continuous surface — the header and sidebar sit on the page
 * background with no dividing lines — and anything that needs a boundary
 * (code, callouts, cards, the landing-page bento) is a rounded tile one step
 * lighter than the page instead of a bordered box.
 */

:root {
  --docs-radius: 14px;
  --docs-radius-sm: 10px;
  --docs-radius-code: 8px;
  --docs-tile: var(--octc-color-bg-alt);
  --docs-tile-hover: color-mix(in srgb, var(--octc-color-bg-alt) 86%, var(--octc-color-text) 4%);
  --docs-tile-edge: inset 0 1px 0 color-mix(in srgb, var(--octc-color-text) 5%, transparent);
  --docs-hairline: color-mix(in srgb, var(--octc-color-text) 9%, transparent);
  /* On wide screens the whole chrome (header, sidebar, toc) lives in a centred
     frame instead of pinning the menus to the far edges of the display. */
  --docs-frame: 1600px;
  --docs-gutter: max(0px, calc((100vw - var(--docs-frame)) / 2));
}
:root:has(body.entry-page) {
  --docs-frame: 1180px;
}

/* ---------- Chrome ---------- */

@media (min-width: 769px) {
  .header {
    padding-inline: calc(1.5rem + var(--docs-gutter));
  }
  .sidebar {
    left: var(--docs-gutter);
  }
  .main {
    margin-left: calc(var(--octc-sidebar-width) + var(--docs-gutter));
    padding-right: calc(2rem + var(--docs-gutter));
  }
  .toc {
    right: var(--docs-gutter);
  }
  .entry-page .main,
  .ox-no-sidebar .main {
    margin-left: 0;
    padding-right: 2rem;
  }
}
@media (min-width: 1480px) {
  .main--with-toc {
    padding-right: calc(var(--octc-toc-width) + var(--octc-toc-gap) + var(--docs-gutter));
  }
}

.header {
  background: var(--octc-color-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 0;
}

.search-button {
  background: var(--docs-tile);
  border: 0;
  border-radius: var(--docs-radius-sm);
  box-shadow: var(--docs-tile-edge);
}
.search-button:hover {
  background: var(--docs-tile-hover);
}
.search-button kbd {
  border: 0;
  border-radius: 6px;
  background: var(--octc-color-bg);
}

.sidebar {
  /* Match the page on desktop and stay opaque when presented as a drawer. */
  background: var(--octc-color-bg) !important;
  border-right: 0 !important;
}
.nav-list--nested {
  border-inline-start: 0;
}
.nav-link {
  border-radius: 8px;
}
.nav-link.active {
  background: var(--docs-tile);
  box-shadow: var(--docs-tile-edge);
}

.toc {
  border-left: 0;
}

body .site-footer,
body .mobile-footer {
  border-top: 0;
}

.mobile-footer {
  background: var(--octc-color-bg);
}

/* Links are identified by their text and underline, without decorative arrows. */
.ox-external-icon {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    padding: 0.5rem;
    scrollbar-gutter: auto;
  }
  .sidebar .nav-list--nested {
    margin-inline-start: 0.5rem;
    padding-inline-start: 0.5rem;
  }

  .ox-code > .ox-copy {
    display: none;
  }
  .content .ox-code > pre,
  .content .ox-code:has(ox-code-play) pre {
    padding-inline-end: var(--octc-code-pad-inline);
  }
  .content .ox-code > pre[data-code-title]::before {
    margin-inline-end: calc(-1 * var(--octc-code-pad-inline));
    padding-inline-end: var(--octc-code-pad-inline);
  }
  .ox-code:has(> ox-code-play) .ox-code-play__toolbar {
    padding-inline-end: 0.65rem;
  }
}

/* Search: one floating tile, no rules between its rows, no ring in the field. */
.search-modal {
  border: 0;
  border-radius: var(--docs-radius);
  background: var(--docs-tile);
  box-shadow:
    var(--docs-tile-edge),
    0 32px 80px -24px rgb(0 0 0 / 0.55);
}
.search-modal .search-header,
.search-modal .search-filters,
.search-modal .search-footer {
  border: 0;
  background: transparent;
}
.search-modal .search-input:focus,
.search-modal .search-input:focus-visible {
  outline: none;
}
.search-modal .search-close,
.search-modal .search-footer kbd,
.search-modal .search-filter-select {
  border: 0;
  border-radius: 6px;
  background: var(--octc-color-bg);
}
.search-modal .search-filter-select:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--docs-hairline);
}
.search-modal .search-result {
  border-radius: var(--docs-radius-sm);
}
.search-modal .search-result:hover,
.search-modal .search-result.selected {
  background: var(--docs-tile-hover);
}
.search-modal .search-result-scope {
  background: var(--octc-color-bg);
  color: var(--octc-color-text-muted);
}

/* ---------- Prose ---------- */

.content h2 {
  border-bottom: 0;
  padding-bottom: 0;
}

.content
  :is(p, li, td, dd, blockquote, figcaption)
  a:is(:not([class]), .ox-external:not(.ox-magic-link)) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.content
  :is(p, li, td, dd, blockquote, figcaption)
  a:is(:not([class]), .ox-external:not(.ox-magic-link)):hover {
  text-decoration-color: currentColor;
}

.content code {
  border: 0;
  border-radius: 4px;
  background: var(--docs-tile);
}

.content pre {
  border: 0;
  border-radius: var(--docs-radius-code);
  box-shadow: var(--docs-tile-edge);
}

.content hr {
  border-top-color: var(--docs-hairline);
}

/* Tables: row rules only, no frame and no column lines. */
.content table {
  border: 0;
}
.content th,
.content td {
  border-inline-end: 0;
  border-block-end-color: var(--docs-hairline);
}
.content th {
  background: transparent;
  color: var(--octc-color-text-muted);
  font-size: 0.8125rem;
  border-block-end-color: color-mix(in srgb, var(--octc-color-text) 16%, transparent);
}
.content th:first-child,
.content td:first-child {
  padding-inline-start: 0;
}

/* Callouts, containers and cards become tiles; the accent moves to the title. */
.content blockquote,
.content blockquote.ox-callout,
.content .ox-container {
  border-left: 0;
  border-radius: var(--docs-radius);
  background: var(--docs-tile);
  box-shadow: var(--docs-tile-edge);
  padding: 1rem 1.15rem;
}
.content .ox-card,
.content .ox-link-card {
  border: 0;
  border-radius: var(--docs-radius);
  background: var(--docs-tile);
  box-shadow: var(--docs-tile-edge);
}
.content .ox-link-card:hover {
  background: var(--docs-tile-hover);
}

/* Ox Content docs skin — landing page (bento hero + feature tiles). Tokens live in chrome.css. */

/* ---------- Landing page ---------- */

/* The first view is the hero alone. The header overlays the page and slides in,
   scrubbed by scroll, once the hero is half gone; browsers without scroll-driven
   animations simply keep it visible. */
body.entry-page .layout {
  padding-top: 0;
}
@supports (animation-timeline: scroll()) {
  body.entry-page .header {
    animation: docs-header-reveal linear both;
    animation-timeline: scroll(root block);
    animation-range: 45vh calc(45vh + 96px);
  }
}
@keyframes docs-header-reveal {
  from {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    box-shadow: 0 1px 0 transparent;
  }
  to {
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: 0 1px 0 var(--docs-hairline);
  }
}

.entry-page .main {
  --docs-entry-width: 1180px;
  --docs-entry-gutter: clamp(1rem, 4vw, 2.5rem);
}

.hero {
  min-height: 0;
  max-width: var(--docs-entry-width);
  margin: 0 auto;
  padding: clamp(4.5rem, 11vh, 8rem) var(--docs-entry-gutter) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 16.5rem);
  grid-template-areas:
    "image  ."
    "content notice";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  text-align: left;
  overflow: visible;
  background: none;
  border: 0;
}

.hero-image {
  grid-area: image;
  justify-self: start;
  margin: 0 0 2.75rem;
  max-width: none;
}
.hero-image img {
  width: auto;
  height: clamp(60px, 7.6vw, 108px);
  margin: 0;
}
/* entry.css gives `.hero-image img` display:block, which outranks the
   `.theme-asset--*` toggles and leaves the other theme's wordmark visible. */
.hero-image img.theme-asset--dark,
[data-theme="dark"] .hero-image img.theme-asset--light {
  display: none;
}
[data-theme="dark"] .hero-image img.theme-asset--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-image img.theme-asset--light {
    display: none;
  }
  :root:not([data-theme="light"]) .hero-image img.theme-asset--dark {
    display: block;
  }
}

.hero-content {
  grid-area: content;
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero-text {
  margin: 0 0 1.5rem;
  max-width: 13em;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  text-wrap: balance;
  hyphens: manual;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--octc-color-text);
}

.hero-tagline {
  max-width: 38rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
}

.hero-actions {
  justify-content: flex-start;
  gap: 0.625rem;
  margin-top: 2.25rem;
}
.hero-action {
  min-width: 0;
  padding: 0.8rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 0;
  border-radius: var(--docs-radius-sm);
}
.hero-action-brand:hover {
  border: 0;
}
.hero-action-alt {
  background: none;
  box-shadow: none;
  color: var(--octc-color-text-muted);
}
.hero-action-alt:hover {
  background: none;
  color: var(--octc-color-text);
}
.hero-action-alt {
  gap: 0.3em;
  white-space: nowrap;
}

.hero-notice {
  grid-area: notice;
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  background-image: none;
  box-shadow: none;
}
.hero .hero-notice-title {
  color: var(--octc-color-text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
}
.hero .hero-notice-body {
  margin-top: 0.3rem;
  font-size: 0.71875rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--octc-color-text-muted) 85%, transparent);
}

/* Features: no fills and no rules — a 3-column grid held together by spacing. */
.features {
  max-width: var(--docs-entry-width);
  padding: 3rem var(--docs-entry-gutter) 6rem;
}
.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.25rem 3rem;
  max-width: none;
  border-top: 0;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.feature-card:hover {
  background: none;
}
.feature-icon {
  width: auto;
  height: auto;
  justify-content: flex-start;
  border-radius: 0;
  background: none;
}
.feature-icon .iconify-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--octc-color-text);
}
.feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.004em;
}
.feature-card:hover .feature-title {
  color: var(--octc-color-text);
}
.feature-link {
  display: none;
}

.entry-content {
  max-width: var(--docs-entry-width);
  padding: 0 var(--docs-entry-gutter) 4.5rem;
}
.entry-content .content {
  max-width: 46rem;
  margin: 0;
  padding-inline: 0;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "image"
      "content"
      "notice";
  }
  .hero-notice {
    margin-top: 2.5rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem var(--docs-entry-gutter) 1.5rem;
  }
  .hero-image {
    margin: 0 0 1.5rem;
  }
  .hero-image img {
    height: clamp(48px, 15vw, 64px);
  }
  .hero-text {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-action-alt {
    padding-inline: 0.5rem;
  }
  .features {
    padding: 0.5rem var(--docs-entry-gutter) 3rem;
  }
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .features-grid {
    gap: 2.5rem;
  }
  .feature-card {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
  }
  .feature-icon {
    margin-top: 0.2rem;
  }
  .feature-icon .iconify-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  .entry-content {
    padding: 0 var(--docs-entry-gutter) 2.25rem;
  }
}

/*
 * Ox Content docs skin — typography.
 *
 * Inter for text and display (variable, with the optical-size axis so headings
 * tighten on their own), JetBrains Mono for code, both loaded from Google Fonts
 * in vite.config.ts. Japanese falls through to the platform's own gothic so no
 * CJK webfont has to be downloaded.
 */

:root {
  --octc-font-sans:
    "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI Variable",
    system-ui, sans-serif;
  --octc-font-mono:
    "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Noto Sans Mono CJK JP", monospace;
}

html {
  font-size: 16px;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 0.96875rem;
  line-height: 1.75;
  letter-spacing: 0;
}

:lang(ja) body,
body:lang(ja) {
  letter-spacing: 0.04em;
  line-height: 1.9;
  line-break: strict;
}

::selection {
  background: color-mix(in srgb, var(--octc-color-text) 18%, transparent);
  color: inherit;
}

/* ---------- Headings: tight display rhythm ---------- */

.content :is(h1, h2, h3, h4) {
  font-weight: 600;
  text-wrap: balance;
}
.content h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.content h2 {
  margin-top: 3.25rem;
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.content h3 {
  margin-top: 2.25rem;
  font-size: 1.175rem;
  line-height: 1.35;
  letter-spacing: -0.006em;
}
.content h4 {
  font-size: 1rem;
  letter-spacing: 0;
}
.content > h1 + p {
  color: var(--octc-color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.content p,
.content li {
  text-wrap: pretty;
  hanging-punctuation: first;
}
.content strong {
  font-weight: 600;
}

/* ---------- Code ---------- */

.content :is(code, pre, kbd, samp) {
  font-variant-ligatures: none;
}
.content :not(pre) > code {
  font-size: 0.86em;
  padding: 0.14em 0.4em;
}
.content pre,
.content pre code {
  font-size: 0.8125rem;
  line-height: 1.75;
}

/* ---------- Numbers and small caps ---------- */

.content table,
.pager,
.last-updated {
  font-variant-numeric: tabular-nums;
}
.content th,
.toc-title,
.nav-title,
.hero-notice-title {
  font-weight: 500;
  letter-spacing: 0.04em;
}
.toc-title,
.nav-title,
.hero-notice-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
}

/* ---------- Chrome text ---------- */

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.005em;
}
.nav-link.active {
  font-weight: 500;
}
.toc-link {
  font-size: 0.8125rem;
}

/* ---------- Landing display type ---------- */

.hero-text {
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1;
}
.hero-tagline {
  letter-spacing: 0.004em;
  color: var(--octc-color-text-muted);
}
.feature-title {
  letter-spacing: -0.004em;
}
.feature-details {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Japanese display: break at phrase boundaries and drop the Latin tightening,
   which crowds kana. */
:lang(ja) :is(.hero-text, .hero-tagline, .content h1, .content h2, .feature-title) {
  word-break: auto-phrase;
}
:lang(ja) .hero-text {
  max-width: 11em;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0;
}
:lang(ja) :is(.content h1, .content h2, .content h3) {
  letter-spacing: 0.01em;
}

/*
 * Ox Content docs skin — motion.
 *
 * Two curves: a snappy one for hover/press feedback and a long, soft
 * deceleration for things entering the page. Everything that moves is behind
 * `prefers-reduced-motion: no-preference`; colour changes stay, since they
 * carry state rather than motion.
 */

:root {
  --docs-ease-snap: cubic-bezier(0.2, 0, 0, 1);
  --docs-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --docs-dur-fast: 140ms;
  --docs-dur: 220ms;
  --docs-dur-enter: 720ms;
  --octc-motion-base: var(--docs-dur);
  --octc-motion-ease: var(--docs-ease-snap);
  interpolate-size: allow-keywords;
}

/* ---------- Feedback ---------- */

a,
.nav-link,
.toc-link,
.pager-title,
.search-button,
.hero-action,
.feature-card,
.feature-icon,
.content .ox-link-card {
  transition:
    color var(--docs-dur-fast) var(--docs-ease-snap),
    background-color var(--docs-dur) var(--docs-ease-snap),
    box-shadow var(--docs-dur) var(--docs-ease-snap),
    text-decoration-color var(--docs-dur) var(--docs-ease-snap),
    opacity var(--docs-dur) var(--docs-ease-snap),
    transform var(--docs-dur) var(--docs-ease-snap);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:not(.active):hover {
    background: color-mix(in srgb, var(--docs-tile) 60%, transparent);
    color: var(--octc-color-text);
    text-decoration: none;
  }
}
.toc-link:hover {
  color: var(--octc-color-text);
  border-left-color: var(--octc-color-text);
}

:focus-visible {
  outline: 2px solid var(--octc-color-text);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-action:active,
  .search-button:active,
  .content .ox-link-card:active {
    transform: scale(0.97);
    transition-duration: 80ms;
  }
  .feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
  }
  .content .ox-link-card:hover {
    transform: translateY(-2px);
  }

  /* Sidebar groups open and close instead of snapping. */
  .sidebar details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size var(--docs-dur) var(--docs-ease-snap),
      content-visibility var(--docs-dur) allow-discrete;
  }
  .sidebar details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Header: a shadow fades in once content scrolls under it ---------- */

@supports (animation-timeline: scroll()) {
  .header {
    animation: docs-header-lift linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 96px;
  }
}
@keyframes docs-header-lift {
  from {
    box-shadow: 0 1px 0 transparent;
  }
  to {
    box-shadow: 0 1px 0 var(--docs-hairline);
  }
}

/* ---------- Entering the page ---------- */

@keyframes docs-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes docs-focus {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Cross-document navigation: chrome holds still and only the page body
     cross-fades (the framework clears these names during a theme toggle). */
  .header {
    view-transition-name: docs-header;
  }
  .sidebar {
    view-transition-name: docs-sidebar;
  }

  body:not(.entry-page) .content {
    animation: docs-rise 480ms var(--docs-ease-out) both;
  }

  .hero-image,
  .hero-text,
  .hero-tagline,
  .hero-actions,
  .hero-notice,
  .feature-card {
    animation: docs-rise var(--docs-dur-enter) var(--docs-ease-out) both;
  }
  .hero-text {
    animation-name: docs-focus;
    animation-duration: 900ms;
    animation-delay: 70ms;
  }
  .hero-tagline {
    animation-delay: 160ms;
  }
  .hero-actions {
    animation-delay: 230ms;
  }
  .hero-notice {
    animation-delay: 320ms;
  }
  .feature-card {
    animation-delay: calc(360ms + var(--docs-i, 0) * 55ms);
  }
  .feature-card:nth-child(2) {
    --docs-i: 1;
  }
  .feature-card:nth-child(3) {
    --docs-i: 2;
  }
  .feature-card:nth-child(4) {
    --docs-i: 3;
  }
  .feature-card:nth-child(5) {
    --docs-i: 4;
  }
  .feature-card:nth-child(n + 6) {
    --docs-i: 5;
  }
}