@charset "UTF-8";
:root, html[data-theme=light] {
  --bg: #fdfdfc;
  --bg-sidebar: #f4f3f0;
  --bg-surface: #ffffff;
  --bg-hover: #e8e6e0;
  --text: #1b1b1a;
  --text-muted: #6c6b66;
  --text-inverted: #fdfdfc;
  --heading: #101010;
  --link: #1f6f5c;
  --link-hover: #14503f;
  --accent: #1f6f5c;
  --border: #e2e0d9;
  --code-bg: #f1efe9;
  --focus: #1f6f5c;
}

html[data-theme=dark] {
  --bg: #17181b;
  --bg-sidebar: #1e2024;
  --bg-surface: #22242a;
  --bg-hover: #2c2f36;
  --text: #e6e5e1;
  --text-muted: #9b9a94;
  --text-inverted: #17181b;
  --heading: #f5f4f1;
  --link: #6fd3b3;
  --link-hover: #9ce4cd;
  --accent: #6fd3b3;
  --border: #2f3238;
  --code-bg: #22242a;
  --focus: #6fd3b3;
}

html[data-theme=tokyonight] {
  --bg: #1a1b26;
  --bg-sidebar: #16161e;
  --bg-surface: #24283b;
  --bg-hover: #292e42;
  --text: #c0caf5;
  --text-muted: #9aa5ce;
  --text-inverted: #1a1b26;
  --heading: #d5dbf5;
  --link: #7aa2f7;
  --link-hover: #7dcfff;
  --accent: #bb9af7;
  --border: #292e42;
  --code-bg: #16161e;
  --focus: #7aa2f7;
}

[data-theme=light] .theme-picker__option[data-theme=light] {
  color: var(--accent);
  font-weight: 600;
}
[data-theme=light] .theme-picker__option[data-theme=light]::after {
  content: "✓";
  margin-left: auto;
}

[data-theme=dark] .theme-picker__option[data-theme=dark] {
  color: var(--accent);
  font-weight: 600;
}
[data-theme=dark] .theme-picker__option[data-theme=dark]::after {
  content: "✓";
  margin-left: auto;
}

[data-theme=tokyonight] .theme-picker__option[data-theme=tokyonight] {
  color: var(--accent);
  font-weight: 600;
}
[data-theme=tokyonight] .theme-picker__option[data-theme=tokyonight]::after {
  content: "✓";
  margin-left: auto;
}

html {
  color-scheme: light;
}
html[data-theme=dark] {
  color-scheme: dark;
}
html[data-theme=tokyonight] {
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  margin: 2rem 0 0.5rem;
  color: var(--heading);
  line-height: 1.25;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

p,
ul,
ol,
blockquote,
pre,
table {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--link-hover);
}

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

img,
video {
  max-width: 100%;
  height: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

code {
  background: var(--code-bg);
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
}

blockquote {
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  margin-left: 0;
  padding-left: 1rem;
}

table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}
table th,
table td {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem;
  text-align: left;
}

button {
  font: inherit;
}

.layout {
  display: block;
}

.main {
  padding: 2rem 1rem;
}

.main__inner {
  margin: 0 auto;
  max-width: 44rem;
}

@media (min-width: 48rem) {
  .layout {
    display: flex;
    min-height: 100vh;
  }
  .main {
    flex: 1;
    min-width: 0;
    margin-left: 16rem;
    padding: 3rem 2rem;
  }
}
.page__header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.page__title {
  margin: 0;
}

.page__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

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

.page__back {
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.sidebar {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border);
}

.sidebar__bar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.sidebar__brand {
  min-width: 0;
}

.sidebar__title {
  color: var(--heading);
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.sidebar__toggle {
  align-items: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex: none;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}
.sidebar__toggle:hover {
  background: var(--bg-hover);
}

.sidebar__panel {
  display: none;
  padding: 0 1rem 1rem;
}

.sidebar.is-open .sidebar__panel {
  display: block;
}
.sidebar.is-open .sidebar__toggle-icon {
  transform: translateY(0.1rem) rotate(225deg);
}

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

.nav__link {
  border-radius: 0.375rem;
  color: var(--text);
  display: block;
  padding: 0.5rem;
  text-decoration: none;
}
.nav__link:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.nav__link--current {
  color: var(--accent);
  font-weight: 600;
}

.sidebar__footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.sidebar__footer-text {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0.5rem 0 0;
}

@media (min-width: 48rem) {
  .sidebar {
    border-bottom: 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    width: 16rem;
  }
  .sidebar__bar {
    display: block;
    padding: 2rem 1rem 1rem;
  }
  .sidebar__toggle {
    display: none;
  }
  .sidebar__panel,
  .sidebar.is-open .sidebar__panel {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .sidebar__nav {
    flex: 1;
  }
}
.socials {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.social {
  align-items: center;
  border-radius: 0.375rem;
  color: var(--text);
  display: flex;
  font-size: 0.8125rem;
  gap: 0.375rem;
  padding: 0.3rem 0.5rem;
  text-decoration: none;
}
.social:hover {
  background: var(--bg-hover);
  color: var(--link);
}
.social svg {
  fill: currentColor;
  flex: none;
  height: 1em;
  width: 1em;
}

.social__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-picker {
  position: relative;
}

.theme-picker__button {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  list-style: none;
  padding: 0.375rem 0.5rem;
}
.theme-picker__button::-webkit-details-marker {
  display: none;
}
.theme-picker__button:hover {
  background: var(--bg-hover);
}

.theme-picker__current::after {
  content: "▾";
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.theme-picker[open] .theme-picker__current::after {
  content: "▴";
}

.theme-picker__list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  bottom: calc(100% + 0.25rem);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  position: absolute;
  right: 0;
  z-index: 20;
}

.theme-picker__option {
  align-items: center;
  background: none;
  border: 0;
  border-radius: 0.375rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  padding: 0.25rem 0.375rem;
  text-align: left;
  width: 100%;
}
.theme-picker__option:hover {
  background: var(--bg-hover);
}

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

.entry-list__item {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.entry-list__row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.entry-list__link {
  text-decoration: none;
}
.entry-list__link:hover {
  text-decoration: underline;
}

.entry-list__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0.15rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-list__desc--full {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.entry-list__item--empty {
  color: var(--text-muted);
}

.filter {
  margin-bottom: 2rem;
}

.filter__input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  transition: border-color 150ms ease;
  width: 100%;
}
.filter__input::placeholder {
  color: var(--text-muted);
}
.filter__input:hover {
  border-color: var(--text-muted);
}
.filter__input:focus {
  border-color: var(--focus);
}

.filter__empty {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.entry-list__item[hidden] {
  display: none;
}

.chevron {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  height: 0.5rem;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 150ms ease;
  width: 0.5rem;
}

.chevron--up {
  transform: translateY(0.15rem) rotate(225deg);
}

.dropdown__summary {
  cursor: pointer;
  display: flex;
  list-style: none;
}
.dropdown__summary::-webkit-details-marker {
  display: none;
}
.dropdown__summary::before {
  color: var(--text-muted);
  font-size: 1.05rem;
  content: "▸";
  flex: 0 0 1em;
}
.dropdown__summary:hover {
  color: var(--link);
}

.dropdown[open] > .dropdown__summary::before {
  content: "▾";
}

.dropdown__title p {
  margin: 0;
}
.dropdown__title p:first-child {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
}
.dropdown__title p:not(:first-child) {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.dropdown__body {
  margin: 0.5rem 0;
  padding-left: 1rem;
}

.back-to-top {
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  bottom: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  height: 2.5rem;
  justify-content: center;
  opacity: 0;
  position: fixed;
  right: 1rem;
  transition: opacity 150ms ease, visibility 150ms ease, border-color 150ms ease, color 150ms ease;
  visibility: hidden;
  width: 2.5rem;
  z-index: 20;
}
.back-to-top:hover, .back-to-top:focus-visible {
  border-color: var(--focus);
  color: var(--link);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 48rem) {
  .back-to-top {
    bottom: 2rem;
    right: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
.label {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
}

.note {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 0.5rem;
}
.note p {
  margin: 0 0 0.5rem;
}
.note p:last-child {
  margin-bottom: 0;
}

.muted-list {
  color: var(--text-muted);
  font-size: 0.875rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.muted-list__item {
  padding: 0.1rem 0;
}

.kv-list {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: auto 1fr;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.kv-list__item {
  display: contents;
}

.kv-list__key {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.kv-list__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

.kv-list--prose {
  row-gap: 0.2rem;
}
.kv-list--prose .kv-list__value {
  color: var(--text-muted);
  font-family: inherit;
}

.link-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.link-list__item {
  padding: 0.1rem 0;
}

.toc {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.toc ol,
.toc ul {
  margin: 0;
  padding-left: 1.5rem;
}
.toc li {
  padding: 0.1rem 0;
}

.section {
  padding-top: 1rem;
}
.section + .section {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.section__title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.data-table {
  border: 1px solid var(--border);
  border-collapse: collapse;
  display: table;
  table-layout: fixed;
  width: 100%;
}
.data-table th,
.data-table td {
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  color: var(--heading);
  font-size: 0.875rem;
}
.data-table p {
  margin: 0;
}

.visually-hidden {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}