:root {
  color-scheme: light;
  --ink: #17343a;
  --muted: #587177;
  --paper: #f6f3eb;
  --surface: #fffdf8;
  --line: #d8e2dd;
  --teal: #087f76;
  --teal-deep: #07534f;
  --coral: #d8664f;
  --gold: #d8a33f;
  --shadow: 0 24px 70px rgba(23, 52, 58, 0.11);
  font-family: "Aptos", "Gill Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 92% 3%,
      rgba(216, 163, 63, 0.16),
      transparent 24rem
    ),
    linear-gradient(135deg, #f6f3eb 0%, #eef5f0 52%, #e8f0ed 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.65;
}
.docs-page {
  overflow: hidden;
}
a {
  color: var(--teal-deep);
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.17em;
}
a:hover {
  color: var(--coral);
}
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 5;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-mark {
  display: inline-grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--surface);
  background: var(--teal);
  border-radius: 50%;
}
.brand-icon {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
}
.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  font-size: 0.92rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.site-nav a:hover {
  border-color: var(--line);
  color: var(--coral);
  background: rgba(255, 253, 248, 0.72);
}
.content-layout {
  display: grid;
  grid-template-columns: 17rem minmax(0, 46rem);
  gap: 3.5rem;
  height: calc(100vh - 5.5rem);
  min-height: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}
.content-sidebar {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.75rem;
}
.sidebar-kicker {
  margin: 0 0 0.7rem;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sidebar-kicker a {
  color: inherit;
  text-decoration: none;
}
.sidebar-kicker a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}
.sidebar-section {
  margin: 1.3rem 0;
}
.sidebar-section h2 {
  margin: 0 0 0.35rem;
  color: var(--teal-deep);
  font-size: 0.85rem;
}
.sidebar-section a {
  display: block;
  padding: 0.25rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}
.sidebar-section a[aria-current="page"] {
  color: var(--coral);
  font-weight: 800;
}
.prose {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.8rem 3.2rem;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}
.prose > h1 {
  margin-top: 0;
  color: var(--teal-deep);
  font:
    800 2.6rem/0.98 "Aptos Display",
    "Gill Sans",
    sans-serif;
}
.page-tools {
  margin: -1.3rem 0 1.8rem;
  font-size: 0.88rem;
}
.raw-markdown-link {
  color: var(--coral);
  font-weight: 700;
  text-underline-offset: 0.2em;
}
.page-description {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.docs-start {
  margin: 0 0 2rem;
  padding: 0.8rem 1rem;
  border-left: 0.25rem solid var(--gold);
  background: rgba(255, 246, 220, 0.55);
}
.prose .docs-start h2 {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.15rem;
}
.docs-start p {
  margin: 0.3rem 0;
  color: var(--muted);
}
.docs-start a {
  color: var(--teal-deep);
  font-weight: 800;
}
.docs-start a:hover {
  color: var(--coral);
}
.docs-areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
}
.docs-area {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.docs-area h2 {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.35rem;
}
.docs-area p {
  margin: 0.45rem 0 0.75rem;
  color: var(--muted);
}
.docs-area a {
  font-weight: 800;
}
.prose h2 {
  margin-top: 2.6rem;
  color: var(--teal-deep);
  font-size: 1.55rem;
}
.prose h3 {
  margin-top: 2rem;
  color: var(--teal-deep);
  font-size: 1.1rem;
}
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0.35rem solid #edf3ef;
  cursor: zoom-in;
}
.prose img.prose-image-portrait {
  width: auto;
  max-height: min(70vh, 42rem);
}
.prose img[role="button"]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}
dialog.image-lightbox {
  width: fit-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
dialog.image-lightbox[open] {
  display: grid;
  place-items: center;
}
dialog.image-lightbox::backdrop {
  background: rgba(7, 53, 50, 0.84);
}
.image-lightbox-image {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border: 0.35rem solid #edf3ef;
  box-shadow: var(--shadow);
}
.image-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--teal-deep);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.image-lightbox-close:hover {
  color: var(--surface);
  background: var(--coral);
}
.image-lightbox-close:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.prose pre {
  overflow-x: auto;
  padding: 1rem 1.2rem;
  color: #f7faf6;
  background: #17343a;
}
.prose code {
  padding: 0.1rem 0.3rem;
  background: #e8f0ed;
  font-size: 0.9em;
}
.prose pre code {
  padding: 0;
  background: transparent;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  min-width: 10rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  color: var(--teal-deep);
  background: #e8f0ed;
}
.prose blockquote {
  margin-left: 0;
  padding: 0.7rem 1rem;
  border-left: 0.3rem solid var(--gold);
  background: #fff6dc;
}
.site-header > [data-inspector-search] {
  flex: 1 1 20rem;
  min-width: 0;
  max-width: 42rem;
}
.search-island {
  width: 100%;
  position: relative;
}
.search-form {
  display: flex;
  gap: 0.35rem;
}
.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.search-form input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.search-form button,
.search-close {
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 0.3rem;
  color: var(--surface);
  background: var(--teal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.search-form button:hover,
.search-close:hover {
  background: var(--coral);
}
.search-panel {
  position: absolute;
  z-index: 3;
  top: calc(100% + 0.5rem);
  display: flex;
  flex-direction: column;
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(70vh, calc(100vh - 7rem));
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-panel-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.search-panel-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
}
.search-panel-title {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1rem;
}
.search-panel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.search-panel .search-ai-availability {
  margin: 0 0 1rem;
}
.search-results {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-results li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.search-results a {
  font-weight: 800;
}
.search-results span {
  color: var(--muted);
  font-size: 0.9rem;
}
.prose mark,
.search-result-snippet mark {
  background: color-mix(
    in srgb,
    var(--gold, #d8a33f) 28%,
    var(--surface, #fffdf8)
  );
  color: var(--ink, #17343a);
  padding: 0 0.12em;
}
.search-close {
  display: inline-grid;
  width: 2rem;
  min-height: 2rem;
  padding: 0;
  place-items: center;
  color: var(--teal-deep);
  background: #e8f0ed;
}
@media (max-width: 800px) {
  .site-header {
    gap: 0.75rem;
    padding: 1.1rem 1.2rem;
  }
  .site-nav {
    gap: 0.3rem;
  }
  .site-nav a {
    min-height: 2.4rem;
    padding: 0.45rem 0.45rem;
    white-space: nowrap;
  }
  .docs-page {
    overflow: auto;
  }
  .content-layout {
    display: block;
    height: auto;
    padding: 1.5rem 1.2rem 2.5rem;
  }
  .content-sidebar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: visible;
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
  .sidebar-kicker {
    display: none;
  }
  .sidebar-section {
    flex: 0 0 9rem;
    margin: 0;
  }
  .sidebar-section a {
    white-space: nowrap;
  }
  .prose {
    min-height: auto;
    overflow-y: visible;
    padding: 1.7rem 1.2rem;
  }
  .docs-areas {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .prose > h1 {
    font-size: 2rem;
  }
  .site-header > [data-inspector-search] {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .site-header {
    flex-wrap: wrap;
  }
}
