:root {
  --site-sidebar-collapsed-width: 64px;
  --site-sidebar-expanded-width: 272px;
}

body.has-site-sidebar {
  padding-left: var(--site-sidebar-collapsed-width);
}

html.is-site-landing body > :not(#site-nav-root):not(script) {
  display: none !important;
}

html.is-site-landing body {
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

#site-nav-root,
#site-nav-root * {
  box-sizing: border-box;
}

#site-nav-root {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5000;
  width: var(--site-sidebar-collapsed-width);
  color: #666b68;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  pointer-events: none;
}

.site-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: var(--site-sidebar-collapsed-width);
  height: 100%;
  overflow: hidden;
  border-right: 1px solid #e6e8e7;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  pointer-events: auto;
  transition: width 180ms ease, box-shadow 180ms ease;
}

.site-sidebar.is-expanded {
  width: min(var(--site-sidebar-expanded-width), calc(100vw - 16px));
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.1);
}

.site-sidebar-toggle,
.site-sidebar-link,
.site-sidebar-backdrop {
  appearance: none;
  border: 0;
  font: inherit;
}

.site-sidebar-toggle {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  flex: 0 0 auto;
  width: calc(var(--site-sidebar-expanded-width) - 16px);
  min-height: 58px;
  margin: 0 8px;
  padding: 0 6px;
  border-bottom: 1px solid #eceeed;
  background: transparent;
  color: #161a18;
  cursor: pointer;
  text-align: left;
}

.site-sidebar-toggle__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #2f7358;
  color: #ffffff;
}

.site-sidebar-toggle__mark svg,
.site-sidebar-link__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-sidebar-toggle__label,
.site-sidebar-toggle__chevron,
.site-sidebar-link__label,
.site-sidebar-group__title {
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.site-sidebar-toggle__label {
  min-width: 0;
  overflow: hidden;
  padding-left: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-sidebar-toggle__chevron {
  color: #8a908d;
  font-size: 18px;
  text-align: center;
}

.site-sidebar.is-expanded .site-sidebar-toggle__label,
.site-sidebar.is-expanded .site-sidebar-toggle__chevron,
.site-sidebar.is-expanded .site-sidebar-link__label,
.site-sidebar.is-expanded .site-sidebar-group__title {
  opacity: 1;
  transform: translateX(0);
}

.site-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px 18px;
  scrollbar-width: none;
}

.site-sidebar-nav::-webkit-scrollbar {
  display: none;
}

.site-sidebar-group {
  width: calc(var(--site-sidebar-expanded-width) - 16px);
}

.site-sidebar-group + .site-sidebar-group {
  margin-top: 9px;
  padding-top: 10px;
  border-top: 1px solid #e6e8e7;
}

.site-sidebar-group__title {
  height: 0;
  margin: 0;
  overflow: hidden;
  color: #929794;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  text-transform: uppercase;
}

.site-sidebar.is-expanded .site-sidebar-group__title {
  height: 24px;
  margin: 0 8px 4px 46px;
}

.site-sidebar-link {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  width: calc(var(--site-sidebar-expanded-width) - 16px);
  min-height: 42px;
  padding: 3px 6px;
  border-radius: 8px;
  background: transparent;
  color: #686d6a;
  cursor: pointer;
  text-decoration: none;
}

.site-sidebar-link + .site-sidebar-link {
  margin-top: 2px;
}

.site-sidebar-link:hover,
.site-sidebar-link:focus-visible,
.site-sidebar-link.active {
  background: #f2f3f2;
  color: #141816;
}

.site-sidebar-link:focus-visible,
.site-sidebar-toggle:focus-visible {
  outline: 2px solid #2f7358;
  outline-offset: -2px;
}

.site-sidebar-link.active::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #2f7358;
}

.site-sidebar-link__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: currentColor;
}

.site-sidebar-link__label {
  min-width: 0;
  overflow: hidden;
  padding-left: 10px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  background: rgba(15, 23, 42, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.anu-section-back {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  z-index: 4999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px 0 10px;
  border: 1px solid rgba(223, 226, 224, 0.94);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 24px rgba(15, 23, 42, 0.1);
  color: #262b28;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.anu-section-back:hover,
.anu-section-back:focus-visible {
  background: #f4f6f5;
  color: #111512;
}

.anu-section-back:focus-visible {
  outline: 2px solid #2f7358;
  outline-offset: 2px;
}

.anu-section-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.has-site-sidebar .information-full-screen__close {
  left: calc(var(--site-sidebar-collapsed-width) + 22px);
}

@media (max-width: 720px) {
  :root {
    --site-sidebar-collapsed-width: 56px;
    --site-sidebar-expanded-width: 284px;
  }

  .site-sidebar-toggle,
  .site-sidebar-group,
  .site-sidebar-link {
    width: calc(var(--site-sidebar-expanded-width) - 16px);
  }

  .site-sidebar.is-expanded + .site-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .anu-section-back {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .anu-section-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 476px) {
  body.has-site-sidebar[data-page="ledger"] .mark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-sidebar,
  .site-sidebar-backdrop,
  .site-sidebar-toggle__label,
  .site-sidebar-toggle__chevron,
  .site-sidebar-link__label,
  .site-sidebar-group__title {
    transition: none;
  }
}
