:root {
  --theme-color: #22c55e;
  --color-bg: #e4e8f0;
  --color-text: #131a27;
  --strong-color: #131a27;
  --border-color: #e7e7e7;
  --border-radius: 8px;
  --font-family: "Inter", system-ui, sans-serif;
  --font-size: 16px;
  --font-weight: 400;
  --line-height: 1.75;
  --heading-line-height: 1.3;
  --heading-font-weight: 600;
  --strong-font-weight: 600;
  --link-color: var(--theme-color);
  --link-color-hover: #15924a;
  --content-max-width: 960px;
  --content-margin-inline: 40px;
  --sidebar-bg: #fff;
  --sidebar-width: 320px;
  --sidebar-border-color: var(--border-color);
  --sidebar-font-size: 14px;
  --sidebar-link-color: #3e474f;
  --sidebar-link-color-active: #14532d;
  --sidebar-link-spacing: 0.2em;
  --sidebar-name-margin: 28px 24px 22px;
  --sidebar-toggle-alignment: start;
  --sidebar-toggle-bg: #f4faf6;
  --sidebar-toggle-color: #287c49;
  --sidebar-toggle-width: 36px;
  --sidebar-toggle-height: 44px;
  --sidebar-toggle-margin-block: 24px;
  --form-element-bg: #f6f7f9;
  --form-element-border-color: var(--border-color);
  --table-row-alt-bg: #f3f4f6;
  --code-bg: #f0fdf4;
  --codeblock-bg: #f1f4f8;
  --TopLevelActiveHalo: 0 0 2px 1px rgb(34 197 94 / 88%);
  --SecondLevelActiveHalo: 0 0 1px 1px rgb(34 197 94 / 70%);
}

.sidebar {
  --plugin-search-margin: 0 16px 18px;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--theme-color);
  border-right: 0;
  background: #fff;
  box-shadow:
    inset -1px 0 0 #cbd2dc,
    5px 0 16px rgb(19 26 39 / 8%);
}

.sidebar .app-name {
  flex-shrink: 0;
  text-align: left;
}

.app-name-link {
  display: block;
  max-width: 190px;
}

.sidebar .search {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar .search .input-wrap,
.sidebar .search .results-status {
  flex-shrink: 0;
}

.sidebar .search .results-panel {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar .search input {
  padding: 12px 54px 12px 14px;
  border-color: #d5dbe3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(19 26 39 / 3%);
  font-size: 14px;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}

.sidebar .search input:focus {
  border-color: #73c792;
  outline: none;
  box-shadow: 0 0 0 3px rgb(34 197 94 / 14%);
}

.sidebar .matching-post a {
  display: block;
}

.sidebar .search .matching-post {
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgb(19 26 39 / 6%);
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-block: 0;
  border-top: 1px solid #c1c9d2;
  box-shadow: inset 0 5px 8px rgb(19 26 39 / 6%);
}

.sidebar-nav > ul {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  margin: 0;
  padding: 16px 14px 20px;
}

.sidebar-nav > ul::-webkit-scrollbar {
  width: 9px;
}

.sidebar-nav > ul::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, #d4e1d9, #cbdad1);
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.sidebar-nav > ul::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #edf1f3;
}

.sidebar-nav:has(.ThirdPartyNotice) {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

.sidebar-nav .ThirdPartyNotice {
  flex-shrink: 0;
  margin: auto 0 0;
  padding: 5.5px 12px;
  border-top: 1px solid #c1c9d2;
  background: #fff;
  box-shadow: 0 -5px 8px rgb(19 26 39 / 6%);
  line-height: 1.2;
  text-align: center;
}

.sidebar-nav .ThirdPartyNotice a {
  color: #66717b;
  font-size: 12px;
}

.sidebar-nav .ThirdPartyNotice a:hover {
  color: #166534;
  text-decoration: underline;
}

.sidebar-nav > ul > li.group {
  --GroupAccent: var(--theme-color);
  --GroupTint: #f7f9f8;
  --GroupBorder: #bcc7d0;

  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle {
  position: relative;
  margin: 0;
  padding: 14px 42px 14px 47px;
  border: 1px solid var(--GroupBorder);
  border-radius: 10px;
  background-color: #fff;
  background-image: none;
  color: #25272c;
  box-shadow:
    0 1px 2px rgb(19 26 39 / 4%),
    0 4px 12px rgb(19 26 39 / 4%);
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-transform: none;
  transition:
    background-color 150ms,
    color 150ms,
    border-color 150ms,
    box-shadow 150ms;
}

.sidebar-nav .GroupIcon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #3e474f;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 150ms,
    transform 150ms;
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #668a74;
  border-bottom: 1.5px solid #668a74;
  transform: translateY(-65%) rotate(45deg);
  transition:
    border-color 150ms,
    transform 150ms;
}

body.sidebar-chevron-right
  .sidebar-nav
  p.group-toggle[aria-expanded="false"]::after {
  transform: translateY(-50%) rotate(-45deg);
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle[aria-expanded="true"] {
  border-color: #a9cdb3;
  border-bottom-width: 1px;
  border-radius: 10px 10px 0 0;
  background-color: #f8faf9;
  background-image: none;
  color: #131a27;
  box-shadow: none;
}

body.sidebar-chevron-right
  .sidebar-nav
  li.group:has([aria-current="page"])
  > p.group-toggle {
  border-color: #79bf90;
  background-color: #f5fbf7;
  background-image: none;
  color: #166534;
  box-shadow: none;
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle:hover {
  background-color: #f7f9fb;
  background-image: none;
  border-color: #b8c2cb;
  color: #131a27;
  box-shadow:
    0 2px 4px rgb(19 26 39 / 5%),
    0 6px 16px rgb(19 26 39 / 7%);
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle:hover .GroupIcon {
  color: #15924a;
  transform: translateY(-50%);
}

body.sidebar-chevron-right
  .sidebar-nav
  li.group:has([aria-current="page"])
  > p.group-toggle:hover {
  background-color: #eff9f2;
  background-image: none;
  border-color: #90c89f;
}

body.sidebar-chevron-right
  .sidebar-nav
  p.group-toggle[aria-expanded="true"]:hover {
  box-shadow: none;
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle:hover::after,
body.sidebar-chevron-right
  .sidebar-nav
  li.group:has([aria-current="page"])
  > p.group-toggle::after {
  border-color: var(--GroupAccent);
}

body.sidebar-chevron-right .sidebar-nav p.group-toggle:active,
body.sidebar-chevron-right
  .sidebar-nav
  li.group:has([aria-current="page"])
  > p.group-toggle:active {
  background-color: #e5f4ea;
  background-image: none;
}

.sidebar-nav .group-toggle strong {
  color: inherit;
  font-weight: 600;
}

.sidebar-nav > ul > li > ul {
  margin: -1px 0 0;
  padding: 10px 9px;
  border: 1px solid #b8c3cc;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #f0f3f6;
  box-shadow:
    0 0 8px rgb(34 197 94 / 7%),
    0 5px 14px rgb(19 26 39 / 5%);
}

.sidebar-nav > ul > li.group:has([aria-current="page"]) > ul {
  border-color: #79bf90;
  box-shadow: 0 5px 14px rgb(19 26 39 / 5%);
}

.sidebar-nav > ul > li.group:has([aria-current="page"]) {
  border-radius: 10px;
  box-shadow: var(--TopLevelActiveHalo);
}

.sidebar-nav > ul > li > ul > li + li {
  margin-top: 5px;
}

.sidebar-nav a {
  text-decoration: none;
  transition:
    background-color 150ms,
    border-color 150ms,
    color 150ms,
    box-shadow 150ms;
}

.sidebar-nav li a.page-link {
  position: relative;
  padding: 10px 32px 10px 12px;
  border: 1px solid #b8c2cc;
  border-radius: 8px;
  background-color: #fff;
  color: #3e474f;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.sidebar-nav li a.page-link:hover {
  border-color: #9dc9aa;
  background-color: #f6fbf7;
  color: #166534;
  box-shadow: 0 2px 6px rgb(19 80 42 / 8%);
  text-decoration: none;
}

.sidebar-nav a.section-link:hover {
  border-color: #b7d3c0;
  background-color: #f6fbf7;
  color: #166534;
  box-shadow: 0 1px 4px rgb(30 63 45 / 6%);
  text-decoration: none;
}

.sidebar-nav li a.page-link:active {
  background-color: #e9f5ed;
}

.sidebar-nav a.section-link:active {
  background-color: #e9f5ed;
}

.sidebar-nav li[aria-current="page"] > a.page-link,
.sidebar-nav .active > a.section-link {
  border-radius: 8px;
  border-color: #79bf90;
  background-color: #eaf6ee;
  color: #166534;
  font-weight: 600;
}

.sidebar-nav li[aria-current="page"] > a.page-link:hover,
.sidebar-nav .active > a.section-link:hover {
  border-color: #5eaa75;
  background-color: #eaf6ee;
}

.sidebar-nav li[aria-current="page"] > a.page-link:active,
.sidebar-nav .active > a.section-link:active {
  background-color: #ddf0e3;
}

.sidebar-nav .active > a.section-link {
  border-color: #90c89f;
  background-color: #eef8f1;
}

.sidebar-nav .active > a.section-link:hover {
  border-color: #6cb483;
  background-color: #f5fbf7;
}

.sidebar-nav .active > a.section-link:active {
  background-color: #e2f3e7;
}

.sidebar-nav
  li[aria-current="page"]:not(.collapse):has(> .app-sub-sidebar)
  > a.page-link {
  border-color: #c8d1d9;
  border-radius: 8px 8px 0 0;
  background-color: #f9fbfc;
}

.sidebar-nav li:not(.collapse):has(> .app-sub-sidebar) > a.page-link:hover {
  border-color: #9dc9aa;
  background-color: #f6fbf7;
  box-shadow: none;
}

.sidebar-nav li:not(.collapse):has(> .app-sub-sidebar) > a.page-link:active {
  background-color: #e9f5ed;
}

.sidebar-nav
  li[aria-current="page"]:not(.collapse):has(> .app-sub-sidebar)
  > a.page-link {
  border-color: #79bf90;
  background-color: #f3faf5;
}

.sidebar-nav
  li[aria-current="page"]:not(.collapse):has(> .app-sub-sidebar)
  > a.page-link:hover {
  border-color: #5eaa75;
  background-color: #f3faf5;
}

.sidebar-nav
  li[aria-current="page"]:not(.collapse):has(> .app-sub-sidebar)
  > a.page-link:active {
  background-color: #ddf0e3;
}

.sidebar-nav .app-sub-sidebar {
  margin: -1px 0 7px;
  padding: 8px;
  border: 1px solid #c8d1d9;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #eef2f6;
  box-shadow:
    0 0 7px rgb(34 197 94 / 6%),
    0 3px 7px rgb(19 26 39 / 5%);
}

.sidebar-nav
  li[aria-current="page"]:not(.collapse):has(> .app-sub-sidebar)
  > .app-sub-sidebar {
  border-color: #79bf90;
  box-shadow: 0 3px 7px rgb(19 26 39 / 5%);
}

.sidebar-nav li[aria-current="page"]:not(.collapse):has(> .app-sub-sidebar) {
  border-radius: 8px;
  box-shadow: var(--SecondLevelActiveHalo);
}

.sidebar-nav .app-sub-sidebar ul {
  margin: 0;
  padding: 0;
}

.sidebar-nav .app-sub-sidebar li + li {
  margin-top: 4px;
}

.sidebar-nav .section-link {
  padding: 7px 10px 7px 13px;
  border: 1px solid #bbc5ce;
  border-radius: 6px;
  background: #fff;
  color: #525f69;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar-nav :is(.group-toggle, a):focus-visible {
  outline: 2px solid #15924a;
  outline-offset: -2px;
}

.sidebar-toggle {
  bottom: auto;
}

.sidebar-toggle-button {
  border: 1px solid #a9cdb3;
  background-color: #f4faf6;
  color: #287c49;
  box-shadow: 0 2px 8px rgb(19 26 39 / 8%);
}

.sidebar-toggle-button:hover {
  border-color: #79ae8a;
  background-color: #edf7f0;
  color: #1e693c;
}

.sidebar-toggle-button:active {
  background-color: #e3f1e7;
}

.markdown-section {
  margin-block: 32px 64px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--theme-color);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(19 26 39 / 4%);
}

.markdown-section h1 {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.markdown-section h2 {
  margin-top: 2.2em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.markdown-section h3 {
  margin-top: 1.8em;
  font-size: 1.15rem;
}

.markdown-section > p:first-of-type {
  color: #52565e;
  font-size: 1.05rem;
}

.markdown-section li {
  margin-block: 0.35em;
}

.markdown-section a:not(.anchor, .Card) {
  font-weight: 500;
  text-decoration: none;
}

.markdown-section a:not(.anchor, .Card):is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.markdown-section img:not(.emoji) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(19 26 39 / 6%);
}

.markdown-section code,
.markdown-section pre,
.markdown-section samp {
  font-variant-ligatures: none;
  font-feature-settings:
    "liga" 0,
    "clig" 0,
    "calt" 0;
}

.markdown-section pre {
  --codeblock-color: #344150;
  --codeblock-comment: #687582;
  --codeblock-function: #315d8a;
  --codeblock-important: #9a4f64;
  --codeblock-keyword: #5261a5;
  --codeblock-operator: #526171;
  --codeblock-punctuation: #526171;
  --codeblock-selector: #326f50;
  --codeblock-tag: #9a4f64;
  --codeblock-variable: #8b642f;

  padding: 24px;
  border: 1px solid #cdd5df;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(19 26 39 / 4%);
}

.markdown-section pre[data-lang]::after {
  display: none;
}

.markdown-section pre[data-lang]:not([data-lang=""])::before {
  content: attr(data-lang);
  display: block;
  padding: 10px 24px;
  border-bottom: 1px solid #d5dde7;
  background: #e9eef4;
  color: #5c6878;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
}

.markdown-section :not(pre) > code {
  border: 1px solid #dcebe1;
  border-radius: 4px;
}

.markdown-section table {
  width: fit-content;
  border: 1px solid #dfe3e8;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.markdown-section th {
  background: #eef0f3;
  color: #3e474f;
  font-weight: 600;
}

.markdown-section td,
.markdown-section th {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e6e9ed;
  vertical-align: top;
}

.markdown-section tbody tr:last-child td {
  border-bottom: 0;
}

.markdown-section blockquote {
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  background: #f0fdf4;
}

.Cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-block: 28px 36px;
}

.markdown-section a.Card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  border: 2px solid #88c9a0;
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}

.markdown-section a.Card:hover {
  border-color: var(--theme-color);
  background: #f0fdf4;
  box-shadow: 0 4px 16px rgb(19 26 39 / 8%);
}

.Card .Eyebrow {
  color: var(--theme-color);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.Card strong {
  color: var(--theme-color);
  font-size: 1.05rem;
  line-height: 1.4;
}

.Card span:last-child {
  color: #52565e;
  font-size: 13px;
  line-height: 1.6;
}

.yt-video {
  position: relative;
  display: block;
  margin: 0 0 40px;
  height: 0;
  overflow: hidden;
  padding: 0 0 56.25%;
}

.yt-video iframe {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

@media (max-width: 768px) {
  :root {
    --content-margin-inline: 16px;
    --sidebar-width: min(300px, calc(100vw - 56px));
    --sidebar-toggle-margin-block: 14px;
  }

  .markdown-section {
    margin-top: 76px;
    padding: 24px 20px;
    border-radius: 8px;
  }

  .Cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .search input,
  .sidebar-nav a,
  body.sidebar-chevron-right .sidebar-nav p.group-toggle,
  .sidebar-nav .GroupIcon,
  body.sidebar-chevron-right .sidebar-nav p.group-toggle::after,
  .markdown-section a.Card {
    transition: none;
  }
}
