:root {
  --cc-bg: #fafafa;
  --cc-surface: #ffffff;
  --cc-text: #242424;
  --cc-heading: #141414;
  --cc-muted: #6f6f6f;
  --cc-border: #e5e5e5;
  --cc-code-bg: #f4f4f5;
  --cc-code-fade-start: rgba(244, 244, 245, 0);
  --cc-code-text: #111827;
  --cc-brand: #1f2937;
  --cc-brand-dark: #111111;
  --cc-nav: #fafafa;
  --cc-nav-soft: #f1f1f2;
  --cc-nav-current: #ffffff;
  --cc-nav-current-link: #eeeeee;
  --cc-nav-sub-current: #e9e9ea;
  --cc-input-bg: #ffffff;
  --cc-input-text: #0f172a;
  --cc-input-placeholder: #737373;
  --cc-card-bg: #ffffff;
  --cc-table-head: #f6f6f6;
  --cc-quote-bg: #f6f6f6;
  --cc-inline-code-bg: #f6f6f6;
  --cc-inline-code-border: #e5e5e5;
  --cc-nav-width: clamp(420px, 32vw, 540px);
  --cc-mobile-nav-width: 300px;
  color-scheme: light;
}

html {
  background: var(--cc-bg);
}

body {
  color: var(--cc-text);
  background: var(--cc-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.76;
}

a {
  color: var(--cc-brand);
}

a:hover {
  color: var(--cc-brand-dark);
}

.wy-body-for-nav {
  background: var(--cc-bg);
}

.wy-nav-content {
  max-width: none;
  min-height: 100vh;
  background: var(--cc-surface);
  box-shadow: 0 0 0 1px var(--cc-border);
}

.wy-nav-content-wrap {
  margin-left: var(--cc-nav-width);
  background: var(--cc-bg);
  transition: margin-left 220ms ease;
}

.wy-nav-side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--cc-nav-width);
  background: var(--cc-nav);
  border-right: 1px solid #dedede;
  transition: left 220ms ease;
}

.wy-side-scroll {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

.wy-side-scroll,
.wy-menu-vertical {
  width: var(--cc-nav-width);
}

.wy-side-nav-search {
  width: var(--cc-nav-width);
  box-sizing: border-box;
  background: #111111;
  border-bottom: 1px solid #242424;
}

.wy-side-nav-search > a,
.wy-side-nav-search .wy-dropdown > a {
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
}

.wy-side-nav-search input[type="text"] {
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  box-shadow: none;
  color: var(--cc-input-text);
  background: var(--cc-input-bg);
  font-size: 0.84rem;
  line-height: 2rem;
}

.wy-side-nav-search input[type="text"]::placeholder {
  color: var(--cc-input-placeholder);
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
  margin-top: 1.65rem;
  color: var(--cc-muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.wy-menu-vertical a {
  overflow: hidden;
  color: var(--cc-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 0.88rem;
  font-weight: 520;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wy-menu-vertical a:hover {
  color: var(--cc-heading);
  background: var(--cc-nav-soft);
}

.wy-menu-vertical li.current > a,
.wy-menu-vertical li.on a {
  color: var(--cc-heading);
  border-color: var(--cc-border);
  background: var(--cc-nav-current-link);
  font-weight: 700;
}

.wy-menu-vertical li.current {
  background: var(--cc-nav-current);
}

.wy-menu-vertical li.toctree-l1.current > a {
  border-top: 1px solid var(--cc-border);
  border-bottom: 1px solid var(--cc-border);
}

.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l3.current > a,
.wy-menu-vertical li.toctree-l4.current > a {
  background: var(--cc-nav-sub-current);
  font-weight: 700;
}

.wy-menu-vertical li.toctree-l2 a,
.wy-menu-vertical li.toctree-l3 a,
.wy-menu-vertical li.toctree-l4 a {
  color: var(--cc-text);
  font-size: 0.84rem;
  font-weight: 500;
}

.rst-content {
  color: var(--cc-text);
}

.rst-content h1,
.rst-content h2,
.rst-content h3,
.rst-content h4 {
  color: var(--cc-heading);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-weight: 750;
  letter-spacing: 0;
}

.rst-content h1 {
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cc-border);
  font-size: 2rem;
}

body:has(.cc-home-shell) .wy-nav-side,
body.cc-home-page .wy-nav-side,
body:has(.cc-home-shell) .wy-breadcrumbs,
body.cc-home-page .wy-breadcrumbs,
body:has(.cc-home-shell) footer:not(.cc-home-footer),
body.cc-home-page footer:not(.cc-home-footer),
body:has(.cc-home-shell) .wy-nav-top,
body.cc-home-page .wy-nav-top,
body:has(.cc-home-shell) .cc-theme-toggle,
body.cc-home-page .cc-theme-toggle,
body:has(.cc-home-shell) .cc-sidebar-toggle,
body.cc-home-page .cc-sidebar-toggle {
  display: none;
}

body:has(.cc-home-shell),
body.cc-home-page {
  overflow-x: hidden;
  background: #0a0b0d;
}

body:has(.cc-home-shell) .wy-nav-content-wrap,
body.cc-home-page .wy-nav-content-wrap {
  margin-left: 0;
  border: 0;
  background: #0a0b0d;
  box-shadow: none;
}

body:has(.cc-home-shell) .wy-nav-content,
body.cc-home-page .wy-nav-content {
  max-width: none;
  min-height: 100vh;
  padding: 0;
  border: 0;
  background: #0a0b0d;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.7;
}

body:has(.cc-home-shell) .document,
body.cc-home-page .document,
body:has(.cc-home-shell) .document > div {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

body:has(.cc-home-shell) .rst-content > h1:first-child,
body.cc-home-page .rst-content > h1:first-child,
body:has(.cc-home-shell) .rst-content > section > h1:first-child,
body.cc-home-page .rst-content > section > h1:first-child,
body:has(.cc-home-shell) .rst-content section > h1:first-child:not(.cc-home-title),
body.cc-home-page .rst-content section > h1:first-child:not(.cc-home-title) {
  display: none;
}

body:has(.cc-directory-page) .rst-content > section > h1:first-child,
.rst-content section:has(.cc-directory-page) > h1:first-child {
  display: none;
}

.cc-home-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(50, 240, 140, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(96, 242, 189, 0.08), transparent 70%),
    #0a0b0d;
  color: #f5f9fe;
  font-size: 16px;
  line-height: 1.7;
}

.cc-home-shell::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  height: 4.1rem;
  background: rgba(10, 11, 13, 0.72);
  content: "";
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.cc-home-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cc-home-aurora::before,
.cc-home-aurora::after {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  content: "";
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}

.cc-home-aurora::before {
  top: -30%;
  left: -10%;
  background: radial-gradient(circle, rgba(50, 240, 140, 0.35), transparent 60%);
  animation: cc-aurora-a 18s ease-in-out infinite alternate;
}

.cc-home-aurora::after {
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(96, 242, 189, 0.25), transparent 60%);
  animation: cc-aurora-b 22s ease-in-out infinite alternate;
}

.cc-home-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 50% at 50% 20%, #000 30%, transparent 80%);
  pointer-events: none;
}

.cc-home-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.84;
  pointer-events: none;
}

@keyframes cc-aurora-a {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(12%, 8%) scale(1.15);
  }
}

@keyframes cc-aurora-b {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-10%, 12%) scale(1.1);
  }
}

.cc-home-nav,
.cc-home-hero,
.cc-home-section,
.cc-home-footer {
  position: relative;
  z-index: 1;
}

.cc-home-nav {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  gap: 2.2rem;
  align-items: center;
  width: min(100% - 3rem, 1120px);
  height: 4.1rem;
  border: 0;
  transform: translateX(-50%);
  box-shadow: none;
}

.cc-home-brand,
.cc-home-menu a,
.cc-home-subscribe,
.cc-home-actions a,
.cc-home-article-card a,
.cc-home-socials a,
.cc-home-footer a {
  text-decoration: none;
}

.cc-home-brand {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: #f5f9fe;
  font-size: 0.96rem;
  font-weight: 760;
}

.cc-home-mark {
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(135deg, transparent 42%, #3ee1a3 43% 56%, transparent 57%),
    linear-gradient(45deg, #32f08c 0 34%, transparent 35%),
    linear-gradient(135deg, transparent 0 58%, #a0fde7 59% 100%);
  clip-path: polygon(50% 0, 100% 88%, 78% 88%, 50% 38%, 22% 88%, 0 88%);
}

.cc-home-menu {
  display: flex;
  gap: 1.85rem;
  align-items: center;
  justify-content: flex-start;
}

.cc-home-menu a {
  color: #a6aab5;
  font-size: 0.86rem;
  font-weight: 560;
}

.cc-home-menu a:hover {
  color: #f5f9fe;
}

.cc-home-menu-item {
  position: relative;
}

.cc-home-dropdown {
  position: absolute;
  top: 2rem;
  left: -0.8rem;
  display: grid;
  min-width: 9.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 11, 13, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cc-home-menu-item:hover .cc-home-dropdown,
.cc-home-menu-item:focus-within .cc-home-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cc-home-dropdown a {
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  color: #a6aab5;
}

.cc-home-dropdown a:hover {
  background: rgba(237, 239, 242, 0.08);
  color: #f5f9fe;
}

.cc-home-search {
  font-size: 1.08rem !important;
}

.cc-home-subscribe {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: #0a0b0d;
  background: #32f08c;
  font-size: 0.84rem;
  font-weight: 650;
}

.cc-home-subscribe:hover {
  color: #0a0b0d;
  background: #60f2bd;
}

.cc-home-hero {
  display: grid;
  min-height: 100vh;
  padding: 7rem 1.5rem 4rem;
  place-items: center;
}

.cc-home-center {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.cc-home-symbol {
  display: none;
  margin-bottom: 0.8rem;
  color: #32f08c;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.cc-home-kicker {
  display: none;
  margin: 0 0 0.95rem;
  color: #a6aab5;
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rst-content .cc-home-title,
.cc-home-title {
  display: block !important;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  color: #f5f9fe !important;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(3.4rem, 7vw, 4.5rem) !important;
  font-weight: 650 !important;
  letter-spacing: 0;
  line-height: 0.96;
}

.cc-home-subtitle {
  max-width: 680px;
  margin: 1.25rem auto 0;
  color: #a6aab5;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.9;
}

.cc-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  justify-content: center;
  margin-top: 1.65rem;
}

.cc-home-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f5f9fe;
  background: rgba(237, 239, 242, 0.04);
  font-size: 0.92rem;
  font-weight: 650;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.cc-home-actions a:first-child {
  color: #0a0b0d;
  border-color: #32f08c;
  background: #32f08c;
}

.cc-home-section {
  width: min(100% - 3rem, 1120px);
  margin: 0 auto;
  padding: 5rem 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.cc-home-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cc-home-latest {
  display: grid;
  grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
  gap: 2rem;
}

.cc-home-section-lead p,
.cc-home-article-card span,
.cc-home-article-card time {
  color: #8a8a8a;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.cc-home-section h2,
.cc-home-section-lead h2 {
  margin: 0;
  color: #f5f9fe;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 650;
  line-height: 1.05;
}

.cc-home-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cc-home-article-card a {
  display: grid;
  min-height: 15rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  color: #f5f9fe;
  background: rgba(18, 19, 20, 0.78);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.cc-home-article-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
}

.cc-home-article-card h3 {
  margin: 0.85rem 0 0.55rem;
  color: #f5f9fe;
  font-size: 1.08rem;
  line-height: 1.42;
}

.cc-home-article-card p {
  margin: 0;
  color: #a6aab5;
  font-size: 0.92rem;
  line-height: 1.72;
}

.cc-home-article-card time {
  align-self: end;
}

.cc-home-toolbox {
  text-align: center;
}

.cc-home-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  justify-content: center;
  margin-top: 1.6rem;
}

.cc-home-tools span {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #d7dbe2;
  background: rgba(237, 239, 242, 0.04);
  font-size: 0.92rem;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease;
}

.cc-home-tools span:hover {
  border-color: rgba(50, 240, 140, 0.45);
  transform: scale(1.08);
}

.cc-home-about {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  max-width: 820px;
}

.cc-home-avatar {
  display: grid;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 42% 58% 48% 52%;
  color: #32f08c;
  background: radial-gradient(circle at 35% 25%, rgba(50, 240, 140, 0.16), rgba(237, 239, 242, 0.04));
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  place-items: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.cc-home-about p {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: #a6aab5;
  font-size: 0.98rem;
  line-height: 1.9;
}

.cc-home-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.15rem;
}

.cc-home-socials a {
  color: #a6aab5;
  font-size: 0.9rem;
  font-weight: 650;
}

.cc-home-socials a:hover {
  color: #f5f9fe;
}

.cc-home-footer {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
  color: #a1a1aa;
  font-size: 0.78rem;
}

.cc-home-footer a {
  color: #8a8a8a;
}

.cc-directory-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.2rem 0 4rem;
}

.cc-directory-hero {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.cc-directory-hero p {
  margin: 0 0 0.7rem;
  color: var(--cc-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rst-content .cc-directory-hero h1,
.cc-directory-hero h1 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--cc-heading);
  font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  font-weight: 650;
  line-height: 0.98;
}

.cc-directory-hero div {
  margin-top: 1rem;
  color: var(--cc-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.cc-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cc-directory-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cc-directory-card {
  display: grid;
  min-height: 13rem;
  padding: 1.25rem;
  border: 1px solid var(--cc-border);
  border-radius: 20px;
  color: var(--cc-text);
  background: var(--cc-card-bg);
  box-shadow: 0 10px 35px rgba(20, 24, 35, 0.04);
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.cc-directory-card:hover {
  color: var(--cc-text);
  border-color: var(--cc-muted);
  box-shadow: 0 20px 55px rgba(20, 24, 35, 0.1);
  transform: translateY(-4px);
}

.cc-directory-card span {
  color: var(--cc-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-directory-card h2 {
  align-self: end;
  margin: 1.7rem 0 0.55rem;
  color: var(--cc-heading);
  font-size: 1.35rem;
}

.cc-directory-card p {
  margin: 0;
  color: var(--cc-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.rst-content h2 {
  margin-top: 2.3rem;
  padding-top: 0.15rem;
  font-size: 1.45rem;
}

.rst-content h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.rst-content p {
  margin-bottom: 1rem;
}

.rst-content blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  color: var(--cc-muted);
  border-left: 4px solid var(--cc-brand);
  background: var(--cc-quote-bg);
}

.rst-content code.literal {
  color: #155e75;
  border: 1px solid var(--cc-inline-code-border);
  border-radius: 4px;
  background: var(--cc-inline-code-bg);
  font-size: 0.9em;
}

.rst-content div[class^="highlight"],
.rst-content pre.literal-block {
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  background: var(--cc-code-bg);
}

.cc-code-block {
  position: relative;
  margin: 1.1rem 0 1.3rem;
}

.cc-code-block div[class^="highlight"],
.cc-code-block pre.literal-block {
  margin: 0;
}

.cc-code-footer {
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 2.1rem 0 0.75rem;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(var(--cc-code-fade-start), var(--cc-code-bg) 55%);
  pointer-events: none;
}

.cc-code-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0;
  padding: 0 0.7rem;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  color: var(--cc-heading);
  background: var(--cc-card-bg);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.cc-code-toggle:hover {
  color: var(--cc-brand);
  border-color: var(--cc-brand);
}

.cc-code-toggle:focus-visible {
  outline: 2px solid var(--cc-brand);
  outline-offset: 2px;
}

.cc-code-collapsible {
  position: relative;
  transition: max-height 180ms ease;
}

.cc-code-collapsible.is-collapsed {
  max-height: var(--cc-code-collapsed-height);
  overflow: hidden;
}

.cc-code-collapsible.is-collapsed::after {
  content: none;
}

.cc-code-copy {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  padding: 2px 10px;
  border: 1px solid var(--cc-border);
  border-radius: 4px;
  background: var(--cc-surface);
  color: var(--cc-muted);
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 150ms ease, background 150ms ease;
}

div[class^="highlight"]:hover .cc-code-copy,
pre.literal-block:hover .cc-code-copy {
  opacity: 1;
}

.cc-code-copy:hover {
  background: var(--cc-nav-soft);
  color: var(--cc-heading);
}

.cc-code-copy--done {
  color: var(--cc-brand);
  border-color: var(--cc-brand);
}

.rst-content div[class^="highlight"] pre,
.rst-content pre.literal-block {
  padding: 1rem;
  color: var(--cc-code-text);
  font-size: 0.9rem;
  line-height: 1.68;
}

.cc-code-block:not(.is-collapsed) div[class^="highlight"] pre,
.cc-code-block:not(.is-collapsed) pre.literal-block {
  padding-bottom: 4.5rem;
}

.rst-content table.docutils {
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  overflow: hidden;
}

.rst-content table.docutils thead {
  background: var(--cc-table-head);
}

.rst-content table.docutils th,
.rst-content table.docutils td {
  border-color: var(--cc-border);
  padding: 0.55rem 0.7rem;
}

.rst-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2rem auto;
  border-radius: 6px;
}

.rst-content .admonition,
.rst-content .note,
.rst-content .warning,
.rst-content .attention {
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  box-shadow: none;
}

.rst-content .admonition-title {
  border-radius: 6px 6px 0 0;
  background: var(--cc-brand);
}

.rst-footer-buttons {
  margin-top: 2.5rem;
}

.wy-breadcrumbs {
  color: var(--cc-muted);
  font-size: 0.88rem;
}

.wy-breadcrumbs a {
  color: #475569;
}

footer {
  color: var(--cc-muted);
  font-size: 0.86rem;
}

/* --- Sidebar toggle ---------------------------------------------------- */

.wy-nav-side.cc-sidebar-collapsed {
  left: calc(-1 * var(--cc-nav-width));
}

.wy-nav-content-wrap.cc-sidebar-collapsed {
  margin-left: 0;
}

.cc-sidebar-toggle {
  position: fixed;
  top: 12px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  background: var(--cc-surface);
  color: var(--cc-heading);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cc-sidebar-toggle:hover {
  background: var(--cc-nav-soft);
}

body.cc-has-sidebar-toggle .cc-sidebar-toggle {
  display: flex;
}

/* Button sits next to sidebar when sidebar is open */
body.cc-has-sidebar-toggle .wy-nav-side:not(.cc-sidebar-collapsed) ~ .wy-nav-content-wrap .cc-sidebar-toggle {
  left: calc(var(--cc-nav-width) + 8px);
}

/* Button at left edge when sidebar is collapsed */
body.cc-has-sidebar-toggle .wy-nav-side.cc-sidebar-collapsed ~ .wy-nav-content-wrap .cc-sidebar-toggle {
  left: 12px;
}

/* --- Sidebar resize handle --------------------------------------------- */

.cc-sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 6px;
  cursor: col-resize;
  z-index: 10;
}

.cc-sidebar-resize-handle:hover,
.cc-sidebar-resize-handle:active {
  background: var(--cc-brand);
  opacity: 0.4;
}

body.cc-sidebar-resizing {
  cursor: col-resize;
  user-select: none;
}

body.cc-sidebar-resizing * {
  cursor: col-resize !important;
}

body.cc-sidebar-resizing .wy-nav-side,
body.cc-sidebar-resizing .wy-nav-content-wrap,
body.cc-sidebar-resizing .wy-side-scroll,
body.cc-sidebar-resizing .wy-menu-vertical,
body.cc-sidebar-resizing .wy-side-nav-search {
  transition: none !important;
}

/* --- Dark mode --------------------------------------------------------- */

html.cc-dark {
  --cc-bg: #111111;
  --cc-surface: #171717;
  --cc-text: #e5e5e5;
  --cc-heading: #fafafa;
  --cc-muted: #a3a3a3;
  --cc-border: #2f2f2f;
  --cc-code-bg: #0f0f0f;
  --cc-code-fade-start: rgba(15, 15, 15, 0);
  --cc-code-text: #e5e7eb;
  --cc-brand: #e5e5e5;
  --cc-brand-dark: #ffffff;
  --cc-nav: #171717;
  --cc-nav-soft: #222222;
  --cc-nav-current: #111111;
  --cc-nav-current-link: #262626;
  --cc-nav-sub-current: #2f2f2f;
  --cc-input-bg: #f8fafc;
  --cc-input-text: #0f172a;
  --cc-input-placeholder: #64748b;
  --cc-card-bg: #1c1c1c;
  --cc-table-head: #222222;
  --cc-quote-bg: #1c1c1c;
  --cc-inline-code-bg: #111111;
  --cc-inline-code-border: #333333;
  color-scheme: dark;
}

html.cc-dark a {
  color: var(--cc-brand);
}

html.cc-dark a:hover {
  color: #ffffff;
}

html.cc-dark .wy-nav-side {
  border-right-color: var(--cc-border);
}

html.cc-dark .wy-side-nav-search {
  background: #0f0f0f;
  border-bottom-color: #262626;
}

html.cc-dark .wy-menu-vertical header,
html.cc-dark .wy-menu-vertical p.caption,
html.cc-dark .wy-menu-vertical li.toctree-l2 a,
html.cc-dark .wy-menu-vertical li.toctree-l3 a,
html.cc-dark .wy-menu-vertical li.toctree-l4 a,
html.cc-dark .wy-breadcrumbs,
html.cc-dark .wy-breadcrumbs a {
  color: var(--cc-muted);
}

html.cc-dark .wy-menu-vertical a {
  color: var(--cc-text);
}

html.cc-dark .wy-menu-vertical a:hover {
  color: var(--cc-heading);
  background: var(--cc-nav-soft);
}

html.cc-dark .wy-menu-vertical li.toctree-l1.current > a {
  border-top-color: var(--cc-border);
  border-bottom-color: var(--cc-border);
}

html.cc-dark .cc-home-actions a:first-child {
  color: #0a0b0d;
  border-color: #32f08c;
  background: #32f08c;
}

html.cc-dark .cc-home-shell {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(50, 240, 140, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(96, 242, 189, 0.08), transparent 70%),
    #0a0b0d;
}

html.cc-dark body:has(.cc-home-shell),
html.cc-dark body.cc-home-page,
html.cc-dark body:has(.cc-home-shell) .wy-nav-content-wrap,
html.cc-dark body.cc-home-page .wy-nav-content-wrap,
html.cc-dark body:has(.cc-home-shell) .wy-nav-content,
html.cc-dark body.cc-home-page .wy-nav-content {
  background: #0a0b0d;
}

html.cc-dark .cc-home-brand,
html.cc-dark .cc-home-section h2,
html.cc-dark .cc-home-section-lead h2 {
  color: #f5f9fe;
}

html.cc-dark .cc-home-menu a,
html.cc-dark .cc-home-kicker,
html.cc-dark .cc-home-subtitle,
html.cc-dark .cc-home-about p,
html.cc-dark .cc-home-article-card p {
  color: #a6aab5;
}

html.cc-dark .cc-home-symbol {
  color: #32f08c;
}

html.cc-dark .rst-content table.docutils,
html.cc-dark .rst-content table.docutils th,
html.cc-dark .rst-content table.docutils td {
  border-color: var(--cc-border);
}

html.cc-dark .rst-content .admonition,
html.cc-dark .rst-content .note,
html.cc-dark .rst-content .warning,
html.cc-dark .rst-content .attention {
  background: var(--cc-card-bg);
}

html.cc-dark .highlight .hll {
  background-color: #1e293b;
}

/* --- Theme toggle button ----------------------------------------------- */

.cc-theme-toggle {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--cc-border);
  border-radius: 50%;
  background: var(--cc-surface);
  color: var(--cc-heading);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background 150ms ease, border-color 150ms ease;
}

.cc-theme-toggle:hover {
  background: var(--cc-nav-soft);
  border-color: var(--cc-brand);
}

.cc-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cc-theme-toggle .cc-icon-sun,
html.cc-dark .cc-theme-toggle .cc-icon-moon {
  display: none;
}

html.cc-dark .cc-theme-toggle .cc-icon-sun {
  display: block;
}

@media screen and (min-width: 961px) and (max-width: 1180px) {
  :root {
    --cc-nav-width: 340px;
  }
}

@media screen and (max-width: 960px) {
  body {
    font-size: 15px;
  }

  .wy-nav-top {
    display: block;
    background: var(--cc-brand-dark);
  }

  .wy-nav-side {
    left: calc(-1 * var(--cc-mobile-nav-width));
    width: var(--cc-mobile-nav-width);
  }

  .wy-side-nav-search,
  .wy-side-scroll,
  .wy-menu-vertical {
    width: var(--cc-mobile-nav-width);
  }

  .wy-nav-side.shift {
    left: 0;
  }

  .wy-nav-content-wrap {
    margin-left: 0;
  }

  .wy-nav-content-wrap.shift {
    position: fixed;
    min-width: 100%;
    left: var(--cc-mobile-nav-width);
    top: 0;
    height: 100%;
    overflow: hidden;
  }

  .wy-nav-content {
    padding: 1.4rem;
    box-shadow: none;
  }

  .rst-content h1 {
    font-size: 1.72rem;
  }

  .rst-content h2 {
    font-size: 1.32rem;
  }

  .cc-home-nav {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    height: auto;
    padding: 0.9rem 0;
    justify-items: center;
  }

  .cc-home-menu {
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
  }

  .cc-home-dropdown {
    display: none;
  }

  .cc-home-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .cc-home-subscribe {
    justify-self: center;
  }

  .cc-home-hero {
    padding-top: 11rem;
  }

  .cc-home-center {
    padding: 0;
  }

  .cc-home-latest,
  .cc-home-about,
  .cc-directory-grid,
  .cc-directory-grid-compact {
    grid-template-columns: 1fr;
  }

  .cc-home-articles {
    grid-template-columns: 1fr;
  }

  .cc-home-about {
    text-align: center;
  }

  .cc-home-avatar {
    margin: 0 auto;
  }

  .cc-home-socials,
  .cc-home-footer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cc-sidebar-resize-handle {
    display: none;
  }
}
