/* Revfaro docs. Same type and colours as the marketing site (src/marketing): Gabarito, near-black ink, zinc greys,
 * rounded controls and the brand coral as an accent. Light theme only. Built pages: scripts/docs.mjs. */

:root {
  --rf-ink: #09090b;
  --rf-text: #3f3f46;
  --rf-slate: #52525b;
  --rf-mute: #71717a;
  --rf-line: #e4e4e7;
  --rf-line-strong: #d4d4d8;
  --rf-mist: #fafafa;
  --rf-soft: #f4f4f5;
  --rf-brand: #e8562f;
  --rf-brand-dark: #c9441f;
  --rf-brand-soft: #fff1ec;
  --rf-code-bg: #111113;
  --rf-header: 72px;
  --rf-font: 'Gabarito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rf-mono: ui-monospace, 'Cascadia Code', SFMono-Regular, Menlo, Consolas, monospace;
  --rf-frame: 0 0 0 1px rgba(9, 9, 11, 0.04), 0 2px 4px rgba(9, 9, 11, 0.04), 0 24px 48px -12px rgba(9, 9, 11, 0.12);
  --rf-float: 0 0 0 1px rgba(9, 9, 11, 0.05), 0 8px 16px -4px rgba(9, 9, 11, 0.08), 0 32px 64px -16px rgba(9, 9, 11, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--rf-header) + 20px);
}

body {
  margin: 0;
  background: #fff;
  color: var(--rf-ink);
  font-family: var(--rf-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--rf-brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only,
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus {
  box-shadow: var(--rf-float);
  transform: none;
}

kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid var(--rf-line);
  border-radius: 6px;
  background: #fff;
  color: var(--rf-mute);
  font-family: var(--rf-font);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

/* Things that need JavaScript stay hidden until docs.js marks the page. */
.js-only {
  display: none !important;
}

/* ------------------------------------------------------------------ Header */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--rf-header);
  border-bottom: 1px solid var(--rf-line);
  background: #fff;
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--rf-ink);
}

.brand-docs {
  padding: 2px 0 2px 12px;
  border-left: 1px solid var(--rf-line);
  color: var(--rf-slate);
  font-size: 15.5px;
  font-weight: 600;
}
.brand-docs:hover {
  color: var(--rf-ink);
}

.js .search-btn {
  display: inline-flex !important;
}
.search-btn {
  align-items: center;
  gap: 10px;
  width: 280px;
  height: 40px;
  margin-left: 18px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  background: var(--rf-mist);
  color: var(--rf-mute);
  font-size: 14.5px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.search-btn:hover {
  border-color: var(--rf-line-strong);
  background: #fff;
}
.search-btn kbd {
  margin-left: auto;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.top-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--rf-slate);
  font-size: 14.5px;
  font-weight: 500;
}
.top-link:hover {
  background: var(--rf-mist);
  color: var(--rf-ink);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.pill svg {
  transition: transform 0.2s;
}
.pill:hover svg {
  transform: translateX(2px);
}
.pill-dark {
  background: var(--rf-ink);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(9, 9, 11, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pill-dark:hover {
  background: #27272a;
}
.pill-light {
  background: #fff;
  color: var(--rf-ink);
  box-shadow:
    0 0 0 1px var(--rf-line),
    0 1px 2px rgba(9, 9, 11, 0.05);
}
.pill-light:hover {
  background: var(--rf-mist);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border-radius: 10px;
  color: var(--rf-ink);
  cursor: pointer;
}
.menu-btn:hover {
  background: var(--rf-soft);
}
.menu-close {
  display: none;
}
.nav-toggle:checked ~ .top .menu-open {
  display: none;
}
.nav-toggle:checked ~ .top .menu-close {
  display: inline-flex;
}
.nav-toggle:focus-visible ~ .top .menu-btn {
  outline: 2px solid var(--rf-brand);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ Page grid */

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 208px;
  column-gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.sidebar {
  position: sticky;
  top: var(--rf-header);
  height: calc(100vh - var(--rf-header));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--rf-line) transparent;
}
.sidebar-inner {
  padding: 30px 12px 48px 0;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--rf-slate);
  font-size: 14.5px;
  line-height: 1.4;
  transition:
    background 0.12s,
    color 0.12s;
}
.sidebar a:hover {
  background: var(--rf-soft);
  color: var(--rf-ink);
}
.sidebar a[aria-current='page'] {
  background: var(--rf-brand-soft);
  color: var(--rf-ink);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--rf-brand);
}
.sidebar a svg {
  color: var(--rf-mute);
}

.nav-top {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rf-line);
}
.nav-group {
  margin-top: 22px;
}
.nav-title {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--rf-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.nav-cta {
  display: none;
}
.nav-backdrop {
  display: none;
}

/* ------------------------------------------------------------------ Article */

.main {
  min-width: 0;
  max-width: 800px;
  padding: 40px 0 80px;
}
.main:focus {
  outline: none;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--rf-mute);
  font-size: 13.5px;
}
.crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--rf-line-strong);
}
.crumbs a:hover {
  color: var(--rf-ink);
}
.crumbs [aria-current='page'] {
  color: var(--rf-slate);
}

.eyebrow {
  margin: 0;
  color: var(--rf-brand-dark);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 6px 0 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  max-width: 690px;
  margin: 14px 0 0;
  color: var(--rf-slate);
  font-size: 18.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--rf-line),
    0 1px 2px rgba(9, 9, 11, 0.04);
  color: var(--rf-slate);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.12s,
    color 0.12s;
}
.act:hover {
  background: var(--rf-mist);
  color: var(--rf-ink);
}
.act.is-done {
  color: #047857;
}

.in-short {
  margin-top: 30px;
  padding: 16px 20px 17px;
  border: 1px solid var(--rf-line);
  border-radius: 16px;
  background: var(--rf-mist);
}
.in-short-title {
  margin: 0 0 4px;
  color: var(--rf-brand-dark);
  font-size: 13.5px;
  font-weight: 600;
}
.in-short p:last-child {
  margin: 0;
  color: var(--rf-ink);
  font-size: 16px;
  line-height: 1.65;
}
.in-short a {
  color: var(--rf-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.in-short code {
  font-family: var(--rf-mono);
  font-size: 0.88em;
}

.toc-mobile {
  display: none;
  margin-top: 22px;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
}
.toc-mobile summary {
  padding: 11px 16px;
  color: var(--rf-ink);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.toc-mobile ul {
  margin: 0;
  padding: 0 16px 12px;
  list-style: none;
}
.toc-mobile li a {
  display: block;
  padding: 4px 0;
  color: var(--rf-slate);
  font-size: 14.5px;
}
.toc-mobile .toc-3 a {
  padding-left: 14px;
}

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

.prose {
  margin-top: 8px;
  color: var(--rf-text);
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: break-word;
}
.prose > :first-child {
  margin-top: 32px;
}

.prose h2,
.faq h2,
.home-sections h2 {
  margin: 56px 0 14px;
  color: var(--rf-ink);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.prose h3,
.faq h3 {
  margin: 34px 0 10px;
  color: var(--rf-ink);
  font-size: 19.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.prose h4 {
  margin: 26px 0 8px;
  color: var(--rf-ink);
  font-size: 16.5px;
  font-weight: 650;
}

.anchor {
  margin-left: 8px;
  color: var(--rf-line-strong);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.15s;
}
.anchor::before {
  content: '#';
}
h2:hover .anchor,
h3:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}
.anchor:hover {
  color: var(--rf-brand);
}

.prose p {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
  padding-left: 4px;
}
.prose li::marker {
  color: var(--rf-mute);
}
.prose li > p {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--rf-ink);
  font-weight: 650;
}
.prose a,
.faq a {
  color: var(--rf-brand-dark);
  text-decoration: underline;
  text-decoration-color: rgba(201, 68, 31, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 0.12s,
    text-decoration-color 0.12s;
}
.prose a:hover,
.faq a:hover {
  color: var(--rf-ink);
  text-decoration-color: var(--rf-ink);
}
.prose a.external svg {
  margin-left: 2px;
  vertical-align: -1px;
}
.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--rf-line);
}
.prose blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--rf-line);
  color: var(--rf-slate);
}

.prose :not(pre) > code,
.faq code {
  padding: 1px 5px;
  border: 1px solid var(--rf-line);
  border-radius: 6px;
  background: var(--rf-soft);
  color: var(--rf-ink);
  font-family: var(--rf-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.prose th {
  padding: 10px 14px;
  background: var(--rf-mist);
  color: var(--rf-ink);
  font-size: 13.5px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}
.prose td {
  padding: 10px 14px;
  border-top: 1px solid var(--rf-line);
  vertical-align: top;
}
.prose td code {
  overflow-wrap: normal;
  white-space: nowrap;
}

/* Code blocks */
.code {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--rf-code-bg);
  box-shadow: 0 0 0 1px rgba(9, 9, 11, 0.08);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 4px 8px 4px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-label {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--rf-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.js .code .copy {
  display: inline-flex !important;
}
.copy {
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.copy.is-done {
  color: #6ee7b7;
}
.code pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  color: #e4e4e7;
  font-family: var(--rf-mono);
  font-size: 13.5px;
  line-height: 1.7;
  tab-size: 2;
}
.code pre:focus-visible {
  outline-offset: -3px;
}
.code code {
  font-family: inherit;
}

/* Callouts */
.callout {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 14px 18px 14px 16px;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  background: var(--rf-soft);
}
.callout-icon {
  flex: none;
  padding-top: 2px;
  color: var(--rf-slate);
}
.callout-body {
  min-width: 0;
  font-size: 15.5px;
  line-height: 1.65;
}
.callout-body > :last-child {
  margin-bottom: 0;
}
.callout-body p {
  margin: 0 0 8px;
}
.callout .callout-title {
  margin: 0 0 2px;
  color: var(--rf-ink);
  font-weight: 650;
}
.callout-tip {
  border-color: #f8d2c4;
  background: var(--rf-brand-soft);
}
.callout-tip .callout-icon {
  color: var(--rf-brand-dark);
}
.callout-warning {
  border-color: #fde68a;
  background: #fffbeb;
}
.callout-warning .callout-icon {
  color: #b45309;
}
.callout .code {
  margin: 12px 0;
}

/* Steps */
.steps {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.prose .step {
  position: relative;
  margin: 0;
  padding: 0 0 10px 48px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rf-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.step::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: var(--rf-line);
}
.step:last-child::after {
  display: none;
}
.prose .step-title {
  margin: 2px 0 8px;
  font-size: 18.5px;
}
.step > :last-child {
  margin-bottom: 14px;
}

/* Tabs: every panel shows, labelled, without JavaScript. */
.tabs {
  margin: 24px 0;
}
.tablist {
  display: none;
}
.js .tablist {
  display: flex;
  gap: 2px;
  max-width: 100%;
  width: max-content;
  padding: 4px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--rf-soft);
  scrollbar-width: none;
}
.js .tablist::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rf-slate);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover {
  color: var(--rf-ink);
}
.tab[aria-selected='true'] {
  background: #fff;
  color: var(--rf-ink);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(9, 9, 11, 0.08),
    0 0 0 1px rgba(9, 9, 11, 0.04);
}
.tab-label {
  margin: 22px 0 6px !important;
  color: var(--rf-ink);
  font-weight: 650;
}
.js .tab-label {
  display: none;
}
.js .tab-panel {
  padding-top: 6px;
}
.js [data-tabs]:not([data-ready]) .tab-panel ~ .tab-panel {
  display: none;
}

/* Figures (2x screenshots shown at half their pixel size) */
.figure {
  margin: 28px 0;
}
.figure-frame {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--rf-mist);
  box-shadow: var(--rf-frame);
}
.prose .figure-frame {
  text-decoration: none;
}
.figure img {
  display: block;
  max-width: 100%;
  height: auto;
}
.figure figcaption {
  margin-top: 12px;
  color: var(--rf-mute);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

/* FAQ */
.faq {
  margin-top: 8px;
}
.faq-item {
  padding: 2px 0 4px;
  border-top: 1px solid var(--rf-line);
}
.faq-item:first-of-type {
  border-top: 0;
}
.faq h3 {
  margin: 20px 0 6px;
  font-size: 17.5px;
}
.faq p {
  margin: 0 0 16px;
  color: var(--rf-text);
  font-size: 16px;
  line-height: 1.7;
}

/* End of page */
.updated {
  margin: 56px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rf-line);
  color: var(--rf-mute);
  font-size: 13.5px;
}
.updated a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.updated a:hover {
  color: var(--rf-ink);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--rf-line);
  border-radius: 16px;
  transition:
    border-color 0.12s,
    background 0.12s;
}
.pager a:hover {
  border-color: var(--rf-line-strong);
  background: var(--rf-mist);
}
.pager-next {
  align-items: flex-end;
  text-align: right;
}
.pager-dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rf-mute);
  font-size: 13px;
}
.pager-title {
  color: var(--rf-ink);
  font-size: 15.5px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ Right-hand table of contents */

.toc {
  position: sticky;
  top: var(--rf-header);
  height: calc(100vh - var(--rf-header));
  overflow-y: auto;
  scrollbar-width: none;
}
.toc-inner {
  padding: 44px 0 40px;
}
.toc-title {
  margin: 0 0 10px;
  color: var(--rf-ink);
  font-size: 13px;
  font-weight: 700;
}
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rf-line);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: var(--rf-slate);
  font-size: 13.5px;
  line-height: 1.5;
  transition:
    color 0.12s,
    border-color 0.12s;
}
.toc .toc-3 a {
  padding-left: 26px;
  font-size: 13px;
}
.toc a:hover {
  color: var(--rf-ink);
}
.toc a.is-active {
  border-left-color: var(--rf-brand);
  color: var(--rf-ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ Docs home */

.js .search-hero {
  display: flex !important;
}
.search-hero {
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  height: 52px;
  margin-top: 26px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.05);
  color: var(--rf-mute);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.search-hero:hover {
  border-color: var(--rf-line-strong);
}
.search-hero kbd {
  margin-left: auto;
}

.home-group h3 {
  margin: 30px 0 12px;
  color: var(--rf-ink);
  font-size: 16px;
  font-weight: 700;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--rf-line);
  border-radius: 16px;
  background: #fff;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.card:hover {
  border-color: var(--rf-line-strong);
  box-shadow: 0 8px 24px -12px rgba(9, 9, 11, 0.18);
}
.card-title {
  color: var(--rf-ink);
  font-size: 15.5px;
  font-weight: 650;
}
.card-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rf-slate);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.article > .cards {
  margin-top: 32px;
}
.start {
  margin-top: 24px;
}
.cards-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card-kicker {
  color: var(--rf-brand-dark);
  font-size: 12.5px;
  font-weight: 600;
}
.cards-4 .card-text {
  -webkit-line-clamp: 3;
}
@media (max-width: 1279px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ Footer */

.foot {
  border-top: 1px solid var(--rf-line);
  background: #fff;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.65fr repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
}
.foot-brand .brand {
  min-height: 32px;
}
.foot-brand p {
  max-width: 260px;
  margin: 12px 0 0;
  color: var(--rf-slate);
  font-size: 14px;
  line-height: 24px;
}
.foot-title {
  margin: 0 0 8px;
  color: var(--rf-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot li {
  margin: 0;
}
.foot li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 0;
  color: var(--rf-slate);
  font-size: 13px;
  line-height: 1.5;
}
.foot li a:hover {
  color: var(--rf-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot a:focus-visible {
  outline: 2px solid var(--rf-ink);
  outline-offset: 4px;
  border-radius: 2px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  border-top: 1px solid var(--rf-line);
  color: var(--rf-slate);
  font-size: 12px;
}
.foot-bottom p {
  margin: 0;
}
.foot-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 2px;
  font-size: 12px;
}
.foot-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  line-height: 24px;
}
.foot-credits a {
  font-weight: 500;
}
.foot-credits a:hover {
  color: var(--rf-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-network {
  border-left: 1px solid var(--rf-line);
  padding-left: 12px;
}

/* ------------------------------------------------------------------ Search dialog */

.search-dialog {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(72vh, 640px);
  margin: 10vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--rf-float);
  color: var(--rf-ink);
}
.search-dialog[open] {
  display: flex;
  flex-direction: column;
}
.search-dialog::backdrop {
  background: rgba(9, 9, 11, 0.38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--rf-line);
  color: var(--rf-mute);
}
.search-box input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--rf-ink);
  font-family: var(--rf-font);
  font-size: 17px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-box input::-webkit-search-cancel-button {
  display: none;
}
.search-close {
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.search-status {
  margin: 0;
  padding: 10px 20px 2px;
  color: var(--rf-mute);
  font-size: 13px;
}
.search-status:empty {
  display: none;
}
.search-results {
  margin: 0;
  padding: 6px 8px 10px;
  overflow-y: auto;
  list-style: none;
}
.search-results a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
}
.search-results [aria-selected='true'] a,
.search-results a:hover {
  background: var(--rf-soft);
}
.sr-title {
  color: var(--rf-ink);
  font-size: 15px;
  font-weight: 600;
}
.sr-where {
  color: var(--rf-brand-dark);
  font-size: 12.5px;
  font-weight: 500;
}
.sr-text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rf-slate);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.search-results mark {
  border-radius: 3px;
  background: #ffe1d5;
  color: inherit;
}

/* ------------------------------------------------------------------ Responsive */

@media (max-width: 1279px) {
  .shell {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 48px;
  }
  .toc {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
}

@media (max-width: 1023px) {
  .shell {
    display: block;
    padding: 0 20px;
  }
  .main {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 26px;
  }
  .menu-btn {
    display: inline-flex;
  }
  .sidebar {
    position: fixed;
    top: var(--rf-header);
    left: 0;
    bottom: 0;
    z-index: 45;
    width: min(330px, 88vw);
    height: auto;
    padding: 0 16px;
    background: #fff;
    box-shadow: var(--rf-float);
    transform: translateX(-104%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      visibility 0.22s;
  }
  .nav-toggle:checked ~ .shell .sidebar {
    transform: none;
    visibility: visible;
  }
  .nav-backdrop {
    position: fixed;
    inset: var(--rf-header) 0 0 0;
    z-index: 44;
    display: block;
    background: rgba(9, 9, 11, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .nav-toggle:checked ~ .shell .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }
  .nav-cta {
    display: grid;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--rf-line);
  }
  .nav-cta .pill {
    height: 40px;
    justify-content: center;
    font-size: 14.5px;
  }
  .sidebar .nav-cta a,
  .sidebar .nav-cta a:hover {
    box-shadow: none;
  }
  .sidebar .nav-cta .pill-dark,
  .sidebar .nav-cta .pill-dark:hover {
    background: var(--rf-ink);
    color: #fff;
  }
  .sidebar .nav-cta .pill-light {
    border: 1px solid var(--rf-line);
  }
  .search-btn {
    width: 220px;
  }
}

@media (max-width: 767px) {
  .top-inner {
    gap: 10px;
    padding: 0 16px;
  }
  .shell {
    padding: 0 16px;
  }
  .hide-sm {
    display: none;
  }
  .search-btn {
    width: 38px;
    margin-left: auto;
    padding: 0;
    justify-content: center;
  }
  .search-btn-text,
  .search-btn kbd {
    display: none;
  }
  .top-links {
    margin-left: 0;
  }
  h1 {
    font-size: 32px;
  }
  .lead {
    font-size: 17px;
  }
  .prose {
    font-size: 16px;
  }
  .prose h2,
  .faq h2,
  .home-sections h2 {
    margin-top: 44px;
    font-size: 23px;
  }
  .prose h3 {
    font-size: 18px;
  }
  .code pre {
    font-size: 13px;
  }
  .prose .step {
    padding-left: 42px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 16px;
    padding: 32px 20px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .foot-bottom {
    padding: 16px 20px;
  }
  .search-dialog {
    margin-top: 12px;
    max-height: calc(100dvh - 24px);
  }
  .search-hero kbd {
    display: none;
  }
}

@media (max-width: 420px) {
  .hide-xs {
    display: none;
  }
  .brand-docs {
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .top,
  .sidebar,
  .toc,
  .toc-mobile,
  .page-actions,
  .pager,
  .foot,
  .copy,
  .anchor {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    max-width: none;
    padding: 0;
  }
  .js .tab-label {
    display: block;
  }
  .tab-panel[hidden] {
    display: block;
  }
}
