:root {
  --color-primary: #009689;
  --color-logo: #04ba9b;
  --color-logo-text: #14b8a6;
  --color-logo-small: #164e63;
  --topbar-height: 72px;
  --sidebar-width: 250px;
  --bg-color: #ffffff;
  --text-color: #000000;
  --muted-foreground: #6c727f;
  --border: #e5e7eb;
  --color-navigation: #f8f8f8;
  --border-navigation: #e5e7eb;
  --table-border-color: #e5e6ea;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --neutral-800: #262626;
  --color-warning: #b45309;
  --color-warning-soft: #fff7ed;
  --font: Inter, ui-sans-serif, system-ui, sans-serif;
  --radius: 0.375rem;
}

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

html {
  height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--color-primary) 18%, white);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Hash / TOC targets are focused for assistive tech, without a visible ring. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  outline: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -2.75rem;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Sidebar — matches PageDrawer + LogoWithText */
.app-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--color-navigation);
  border-right: 1px solid var(--border-navigation);
  z-index: 20;
}

.app-sidebar__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
}

.app-sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1rem 0.25rem 0.5rem;
}

.app-sidebar__section {
  margin: 0;
  padding: 0.5rem 0.75rem;
  min-height: 2rem;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.app-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo__img {
  width: 1.75rem;
  height: 1.75rem;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  max-width: 13.25rem;
  overflow: hidden;
  white-space: nowrap;
}

.logo__text-small {
  margin: 0;
  color: var(--color-logo-small);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.15;
}

.logo__text-big {
  margin: 0;
  color: var(--color-logo-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}

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

.nav-tree--nested {
  margin: 0.15rem 0 0.4rem 1.35rem;
  padding: 0;
  border-left: none;
}

.nav-tree--nested .nav-link {
  padding-left: 0.85rem;
  margin-left: 0;
  border-left: 2px solid var(--zinc-300);
  border-radius: 0;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nav-tree--nested .nav-tree--nested {
  margin-left: 0.85rem;
}

.nav-node {
  margin: 0;
}

.nav-branch > summary {
  list-style: none;
}

.nav-branch > summary::-webkit-details-marker {
  display: none;
}

.nav-summary {
  list-style: none;
  cursor: pointer;
}

.nav-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 400;
  user-select: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-toggle-row:hover {
  background: var(--zinc-100);
  color: var(--color-primary);
}

.nav-toggle-row:hover .nav-link__icon,
.nav-toggle-row:hover .nav-chevron {
  color: inherit;
}

.nav-toggle-row.has-active-child,
.nav-link.has-active-child {
  font-weight: 500;
}

.nav-toggle-row .nav-link__label,
.nav-toggle-row .nav-branch__link {
  flex: 1;
  min-width: 0;
}

.nav-branch__link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.nav-branch__link:hover {
  color: inherit;
  text-decoration: none;
}

.nav-toggle-row .nav-chevron {
  margin-right: 0;
}

.nav-chevron {
  display: inline-flex;
  flex-shrink: 0;
  margin-right: 0.35rem;
  color: var(--gray-500);
  transition: transform 0.15s ease;
}

.nav-chevron .icon {
  width: 1rem;
  height: 1rem;
}

.nav-branch[open] > .nav-summary .nav-chevron {
  transform: rotate(90deg);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 0.5rem 0.5rem calc(0.75rem + var(--nav-depth, 0) * 0.75rem);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  background: var(--zinc-100);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-link:hover .nav-link__icon {
  color: inherit;
}

.nav-link.is-active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-tree--nested .nav-link.is-active {
  border-left-color: var(--color-primary);
}

.nav-link.is-active .nav-link__icon {
  color: inherit;
}

.nav-link__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link__icon {
  display: inline-flex;
  color: var(--gray-500);
}

.nav-link__icon .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.app-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--topbar-height);
  flex-shrink: 0;
  padding: 0.75rem 1.5rem 0.65rem;
  z-index: 2;
  background: var(--bg-color);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.18s ease;
}

.topbar.is-scrolled {
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--border) 90%, transparent),
    0 8px 16px -12px rgb(15 23 42 / 14%);
}

.topbar__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.topbar__titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.breadcrumbs {
  min-width: 0;
  color: var(--gray-500);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.2;
}

.breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.breadcrumbs__list a,
.breadcrumbs__list [aria-current="page"] {
  color: inherit;
  transition: color 0.15s ease;
}

.breadcrumbs__list a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs__home {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__home .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.breadcrumbs__sep {
  display: inline-flex;
  flex-shrink: 0;
}

.breadcrumbs__sep .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.topbar__title {
  margin: 0;
  color: var(--neutral-800);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  cursor: pointer;
}

.nav-toggle-btn:hover {
  color: var(--color-primary);
}

.nav-backdrop {
  display: none;
}

.locale-menu {
  position: relative;
  flex-shrink: 0;
}

.locale-menu details {
  position: relative;
}

.locale-menu summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.875rem;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.locale-menu summary::-webkit-details-marker {
  display: none;
}

.locale-menu summary:hover,
.locale-menu details[open] summary {
  background: var(--zinc-100);
}

.locale-menu ul {
  position: absolute;
  right: 0;
  z-index: 30;
  min-width: 12rem;
  margin: 0.35rem 0 0;
  padding: 0.25rem;
  list-style: none;
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgb(15 23 42 / 8%);
}

.locale-menu a,
.locale-menu [aria-current="page"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.875rem;
}

.locale-menu a:hover {
  background: var(--zinc-100);
  text-decoration: none;
}

.locale-menu [aria-current="page"] {
  background: var(--zinc-100);
  font-weight: 500;
}

.locale-menu__flag {
  font-size: 1rem;
  line-height: 1;
}

.locale-menu__chevron {
  display: inline-flex;
  margin-left: 0.1rem;
  color: var(--gray-500);
  transition: transform 0.15s ease;
}

.locale-menu__chevron .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.locale-menu details[open] .locale-menu__chevron {
  transform: rotate(180deg);
}

.site-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 1.75rem 2rem;
  scroll-padding-top: 1rem;
  scrollbar-gutter: stable;
}

.docs-with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.docs-with-toc .page {
  max-width: 52rem;
  width: 100%;
}

.toc {
  display: none;
}

@media (min-width: 1180px) {
  .docs-with-toc--has-toc {
    width: 100%;
    grid-template-columns: minmax(0, 52rem) 13.5rem;
    justify-content: space-between;
    column-gap: 2.5rem;
  }

  .toc {
    display: block;
    position: sticky;
    top: 0.25rem;
    justify-self: end;
    width: 13.5rem;
    max-height: calc(100vh - 6rem);
    overflow: auto;
    padding: 0.15rem 0 0.5rem;
  }
}

.toc__label {
  margin: 0 0 0.65rem;
  color: var(--gray-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

.toc__item {
  margin: 0;
}

.toc__link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.28rem 0.35rem 0.28rem 0.85rem;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--gray-600);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc__item--h3 .toc__link {
  display: block;
  padding-left: 1.45rem;
  font-size: 0.75rem;
  overflow-wrap: break-word;
}

.toc__chevron {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--gray-500);
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.toc__chevron .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.toc__item.is-expanded > .toc__link .toc__chevron {
  transform: rotate(180deg);
}

.toc__sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.22s ease, visibility 0.22s ease;
}

.toc__item.is-expanded > .toc__sub {
  grid-template-rows: 1fr;
  visibility: visible;
}

.toc__sublist {
  overflow: hidden;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc__link:hover {
  color: var(--neutral-800);
  text-decoration: none;
}

.toc__link.is-active {
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .toc__chevron,
  .toc__sub {
    transition: none;
  }
}

/* Filled by toc.js so the last heading can reach the active-section marker */
.toc-scroll-spacer {
  width: 100%;
  height: 0;
  pointer-events: none;
}

.page {
  max-width: 52rem;
}

.page--hub {
  max-width: 58rem;
}

.site-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 47px;
  padding: 0 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-color);
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.site-footer__list li {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.site-footer__list li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--zinc-300);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.page--hub .section-header h2 {
  margin: 0 0 0.35rem;
  color: var(--neutral-800);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* Hub intro: quieter second paragraph under the lead */
.page--hub .hub-content.prose > p:first-child + p {
  margin: 0 0 1.75rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tiles {
  display: grid;
  gap: 0.85rem;
  margin: 0.9rem 0 2rem;
  padding: 0;
  list-style: none;
}

.prose .tiles {
  margin: 0.9rem 0 2rem;
  padding: 0;
}

.prose .tiles > .tile + .tile {
  margin-top: 0;
}

@media (min-width: 720px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-height: 100%;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--table-border-color);
  border-radius: var(--radius);
  background: #fafafa;
}

.tile__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--color-primary) 12%, white);
  color: var(--color-primary);
}

.tile__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.tile__title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--neutral-800);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.tile__text {
  display: block;
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.55;
}

.info-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 1.5rem 0 2.25rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--table-border-color));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-primary) 7%, white);
}

.info-card__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--color-primary) 16%, white);
  color: var(--color-primary);
}

.info-card__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.info-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.prose .info-card__label,
.info-card__label {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.prose .info-card__title,
.info-card__title {
  color: var(--neutral-800);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.info-card__text {
  margin-top: 0.2rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.info-card__content {
  margin-top: 0.35rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
}

.prose .info-card__content > :first-child {
  margin-top: 0;
}

.prose .info-card__content > :last-child {
  margin-bottom: 0;
}

.prose .info-card ul {
  margin: 0.35rem 0 0;
  padding-left: 0;
  list-style: none;
}

.prose .info-card li {
  position: relative;
  padding-left: 1.15rem;
}

.prose .info-card li + li {
  margin-top: 0.4rem;
}

.prose .info-card li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
}

.page--hub .section-header {
  margin-bottom: 1.15rem;
}

.page--hub .section-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.section-header {
  margin-bottom: 1.15rem;
}

.section-header h2 {
  margin: 0 0 0.25rem;
  color: var(--neutral-800);
  font-size: 1.0625rem;
  font-weight: 600;
}

.section-header p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--table-border-color);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, white);
  border-color: color-mix(in srgb, var(--color-primary) 28%, var(--table-border-color));
  text-decoration: none;
}

.card:hover .card__icon {
  color: var(--color-primary);
}

.card__icon {
  display: inline-flex;
  margin-top: 0.15rem;
  color: var(--gray-500);
  transition: color 0.15s ease;
}

.card__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.card__title {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--neutral-800);
  font-size: 1rem;
  font-weight: 500;
}

.card__desc {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.content-placeholder {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--zinc-200);
  border-radius: var(--radius);
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.page-meta {
  margin: 0 0 1.25rem;
  color: var(--gray-600);
  font-size: 0.75rem;
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.page-nav__link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.7rem 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.page-nav__link:hover {
  background: #fafafa;
  border-color: var(--table-border-color);
  text-decoration: none;
}

.page-nav__link--next {
  justify-self: end;
  width: 100%;
}

.page-nav__link--prev {
  justify-self: start;
  width: 100%;
}

.page-nav__link--empty {
  border: 0;
  padding: 0;
  pointer-events: none;
}

.page-nav__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.page-nav__link--next .page-nav__body {
  margin-left: auto;
  text-align: right;
}

.page-nav__direction {
  color: var(--gray-500);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-nav__title {
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.page-nav__link:hover .page-nav__title {
  color: var(--color-primary);
}

.page-nav__arrow.icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 2.15rem;
  color: var(--gray-500);
  stroke-width: 1.35;
  opacity: 0.7;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.page-nav__arrow--prev {
  transform: rotate(180deg);
}

.page-nav__link:hover .page-nav__arrow {
  color: var(--gray-700);
  opacity: 1;
}

.prose {
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.prose > p:first-child {
  color: var(--gray-700);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.65;
}

.prose h2,
.prose h3 {
  color: var(--neutral-800);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h2:first-of-type {
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin-top: 1.85rem;
  margin-bottom: 0.55rem;
  color: var(--gray-700);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose h2 + h3 {
  margin-top: 1.15rem;
}

.anchored {
  scroll-margin-top: calc(var(--topbar-height) + 0.75rem);
}

.anchored:focus,
.anchored:focus-visible {
  outline: none;
}

.heading-link {
  margin-left: 0.35rem;
  color: var(--gray-500);
  font-weight: 500;
  text-decoration: none;
  opacity: 0.4;
}

.heading-link:hover,
.heading-link:focus-visible,
.anchored:hover .heading-link {
  color: var(--color-primary);
  text-decoration: none;
  opacity: 1;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.3rem;
}

.prose a {
  color: inherit;
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

/* External links: body text + dotted underline; green text on hover */
.prose a[target="_blank"],
.hub-content.prose a[target="_blank"] {
  color: inherit;
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--gray-500) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose a[target="_blank"]:hover,
.hub-content.prose a[target="_blank"]:hover {
  color: var(--color-primary);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--gray-500) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose strong {
  color: var(--neutral-800);
  font-weight: 600;
}

.prose .doc-figure {
  margin: 1.5rem 0 1.75rem;
}

.prose .doc-figure__frame {
  position: relative;
}

.prose .doc-figure__frame img {
  width: 100%;
  border: 1px solid var(--table-border-color);
  border-radius: var(--radius);
  background: #fafafa;
}

.prose .doc-figure__zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: var(--gray-700);
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
  cursor: zoom-in;
}

.prose a.doc-figure__zoom,
.prose a.doc-figure__zoom:hover {
  color: var(--gray-700);
  font-weight: inherit;
  text-decoration: none;
}

.prose .doc-figure__zoom:hover,
.prose .doc-figure__zoom:focus-visible {
  background: #fff;
  color: var(--neutral-800);
}

.prose .doc-figure__zoom .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.prose .doc-figure figcaption {
  margin: 0.6rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.prose .doc-figure-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 1.75rem;
}

.prose .doc-figure-row .doc-figure {
  margin: 0;
}

.prose .doc-figure-row figcaption {
  text-align: center;
}

@media (min-width: 720px) {
  .prose .doc-figure-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
  }
}

.figure-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 3rem 1.25rem 1.25rem;
  border: none;
  background: transparent;
}

.figure-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-dialog::backdrop {
  background: rgb(15 23 32 / 78%);
}

.figure-dialog__img {
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 4.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px rgb(0 0 0 / 35%);
  cursor: default;
}

.figure-dialog__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: var(--gray-700);
  cursor: pointer;
  box-shadow: 0 1px 6px rgb(0 0 0 / 18%);
}

.figure-dialog__close:hover,
.figure-dialog__close:focus-visible {
  background: #fff;
  color: var(--neutral-800);
}

.figure-dialog__close .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.prose table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.55;
}

.prose th,
.prose td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--table-border-color);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #fafafa;
  color: var(--neutral-800);
  font-weight: 600;
}

.prose td {
  color: var(--gray-700);
}

.prose h2:has(+ .faq) {
  margin-bottom: 1rem;
}

.faq,
.prose .faq {
  margin: 0 0 2.35rem;
}

.faq-item {
  border-bottom: 1px solid var(--table-border-color);
  scroll-margin-top: 1rem;
}

.faq-item__summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.1rem 1.05rem 0;
}

.faq-item[open] .faq-item__row {
  padding-bottom: 0.5rem;
}

.faq-item__question {
  flex: 1;
  min-width: 0;
  color: var(--neutral-800);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.faq-item__toggle {
  position: relative;
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 999px;
  color: var(--gray-500);
  background: var(--zinc-100);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
}

.faq-item__toggle::before {
  width: 0.5625rem;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
  width: 1.5px;
  height: 0.5625rem;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.faq-item[open] .faq-item__toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-item__summary:hover .faq-item__question,
.faq-item[open] .faq-item__question {
  color: var(--color-primary);
}

.faq-item__summary:hover .faq-item__toggle,
.faq-item[open] .faq-item__toggle {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, white);
}

.faq-item__answer {
  padding: 0 2.75rem 1.15rem 0;
  color: var(--gray-600);
}

.prose .faq-item__answer > :first-child {
  margin-top: 0;
}

.prose .faq-item__answer > :last-child {
  margin-bottom: 0;
}

.prose .faq-item__answer ul,
.prose .faq-item__answer ol {
  margin-bottom: 0.75rem;
}

.prose .faq-item__answer li + li {
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__question,
  .faq-item__toggle,
  .faq-item__toggle::after {
    transition: none;
  }
}

.callout {
  margin: 1.25rem 0;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--table-border-color);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.doc-panel {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius);
  background: var(--zinc-100);
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.prose .doc-panel > :first-child {
  margin-top: 0;
}

.prose .doc-panel > :last-child {
  margin-bottom: 0;
}

.prose .doc-panel ol,
.prose .doc-panel ul {
  margin: 0.5rem 0 0;
}

.prose .doc-panel li + li {
  margin-top: 0.35rem;
}

.callout[id] {
  scroll-margin-top: 1rem;
}

.callout--tip {
  border-color: color-mix(in srgb, var(--color-primary) 24%, var(--table-border-color));
  background: color-mix(in srgb, var(--color-primary) 7%, white);
}

.callout--warning {
  border-color: color-mix(in srgb, var(--color-warning) 28%, var(--table-border-color));
  background: var(--color-warning-soft);
}

.callout--nriz {
  border-color: color-mix(in srgb, var(--color-primary) 24%, var(--table-border-color));
  background: color-mix(in srgb, var(--color-primary) 7%, white);
}

.callout--titled {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
}

.callout__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--color-primary) 16%, white);
  color: var(--color-primary);
}

.callout--warning .callout__icon {
  background: color-mix(in srgb, var(--color-warning) 22%, white);
  color: var(--color-warning);
}

.callout__icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.callout__body {
  min-width: 0;
  flex: 1;
}

.prose .callout__title {
  margin: 0 0 0.45rem;
  color: var(--neutral-800);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose .callout > :first-child,
.prose .callout__body > :first-child {
  margin-top: 0;
}

.prose .callout > :last-child,
.prose .callout__body > :last-child {
  margin-bottom: 0;
}

.prose .callout ul {
  margin-bottom: 0;
}

.prose .callout--titled ul {
  margin: 0.4rem 0 0;
  padding-left: 0;
  list-style: none;
}

.prose .callout--titled li {
  position: relative;
  padding-left: 1.15rem;
}

.prose .callout--titled li + li {
  margin-top: 0.4rem;
}

.prose .callout--titled li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.support-email:hover {
  text-decoration: underline;
}

.support-email .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.prose .callout .support-email {
  display: inline-flex;
  vertical-align: middle;
}

.lang-fallback {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}

.lang-fallback__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.lang-fallback__main img {
  margin-bottom: 0.75rem;
}

.lang-fallback ul {
  display: grid;
  gap: 0.5rem;
  width: 16rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.lang-fallback a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--table-border-color);
  border-radius: var(--radius);
  color: var(--gray-700);
  background: var(--bg-color);
}

.lang-fallback a:hover {
  background: var(--zinc-100);
  text-decoration: none;
}

@media (max-width: 859px) {
  body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(var(--sidebar-width), 86vw);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-toggle:checked ~ .app-sidebar {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgb(0 0 0 / 35%);
  }
}
