body.yg-context-public {
  background: var(--yg-color-background);
}

.yg-site-header {
  position: sticky;
  z-index: var(--yg-z-header);
  top: 0;
  width: 100%;
  border-bottom: var(--yg-border-width) solid var(--yg-color-border);
  background: var(--yg-color-sidebar-background);
}

.yg-site-header__inner {
  position: relative;
  display: grid;
  min-height: var(--yg-mobile-topbar-height);
  grid-template-columns: minmax(0, 1fr) var(--yg-control-height);
  align-items: center;
  gap: var(--yg-space-2);
  padding: 10px var(--yg-gutter-mobile);
}

.yg-brand {
  min-width: 0;
}

.yg-brand .custom-logo-link,
.yg-brand__text {
  display: inline-flex;
  align-items: center;
  color: var(--yg-color-menu-text);
  font-family: var(--yg-font-heading);
  font-size: var(--yg-font-size-xl);
  font-weight: var(--yg-font-weight-semibold);
  line-height: 1;
  text-decoration: none;
}

.yg-brand .custom-logo {
  width: min(var(--yg-logo-width-mobile), 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.yg-menu-toggle {
  display: inline-flex;
  width: var(--yg-control-height);
  height: var(--yg-control-height);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: var(--yg-border-width) solid var(--yg-color-border);
  border-radius: var(--yg-radius-control);
  background: transparent;
  color: var(--yg-color-menu-text);
}

.yg-menu-toggle__icon {
  display: grid;
  width: 20px;
  gap: 5px;
}

.yg-menu-toggle__icon span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--yg-duration-fast) var(--yg-ease-standard), opacity var(--yg-duration-fast) var(--yg-ease-standard);
}

.is-menu-open .yg-menu-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.is-menu-open .yg-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.is-menu-open .yg-menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.yg-menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  padding: var(--yg-space-1) var(--yg-gutter-mobile) calc(var(--yg-space-3) + var(--yg-safe-area-bottom));
  border-bottom: var(--yg-border-width) solid var(--yg-color-border);
  background: var(--yg-color-sidebar-background);
}

.yg-site-header.is-menu-open .yg-menu-panel {
  display: block;
}

.yg-navigation__list,
.yg-navigation__list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yg-navigation__list ul {
  padding-left: var(--yg-space-2);
}

.yg-navigation a {
  display: flex;
  min-height: var(--yg-control-height-large);
  align-items: center;
  border-bottom: var(--yg-border-width) solid var(--yg-color-border);
  color: var(--yg-color-menu-text);
  font-family: var(--yg-font-menu);
  font-size: var(--yg-menu-font-size-mobile);
  font-weight: var(--yg-menu-font-weight);
  letter-spacing: var(--yg-menu-letter-spacing);
  line-height: 1.25;
  text-decoration: none;
}

.yg-navigation a:hover,
.yg-navigation .current-menu-item > a,
.yg-navigation .current_page_item > a {
  color: var(--yg-color-menu-hover);
}

.yg-private-access {
  display: inline-flex;
  width: 100%;
  min-height: var(--yg-control-height);
  align-items: center;
  justify-content: center;
  align-self: var(--yg-private-access-align);
  margin-top: var(--yg-space-2);
  padding: var(--yg-space-1) var(--yg-space-2);
  border: var(--yg-border-width) solid var(--yg-color-accent);
  border-radius: var(--yg-radius-control);
  color: var(--yg-color-accent);
  font-size: var(--yg-private-access-font-size);
  font-weight: var(--yg-font-weight-semibold);
  line-height: 1.25;
  text-decoration: none;
}

.yg-private-access[hidden] {
  display: none !important;
}

.yg-private-access[data-style="solid"] {
  background: var(--yg-color-accent);
  color: var(--yg-color-on-accent);
}

.yg-private-access[data-style="text"] {
  padding-inline: 0;
  border-color: transparent;
}

.yg-private-access:hover {
  background: var(--yg-color-accent);
  color: var(--yg-color-on-accent);
}

.yg-private-access[data-style="solid"]:hover {
  border-color: var(--yg-color-accent-hover);
  background: var(--yg-color-accent-hover);
}

.yg-private-access[data-style="text"]:hover {
  background: transparent;
  color: var(--yg-color-accent-hover);
}

.yg-main {
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--yg-mobile-topbar-height));
}

.yg-site-footer {
  border-top: var(--yg-border-width) solid var(--yg-color-border);
  color: var(--yg-color-muted);
  font-size: var(--yg-font-size-sm);
}

.yg-site-footer__inner {
  padding-block: var(--yg-space-3);
}

.yg-site-footer p {
  margin: 0;
}

@media (min-width: 922px) {
  body.yg-context-public {
    padding-left: var(--yg-sidebar-width);
  }

  .yg-site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--yg-sidebar-width);
    border-right: var(--yg-border-width) solid var(--yg-color-border);
    border-bottom: 0;
    overflow-y: auto;
  }

  .yg-site-header__inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--yg-space-4) var(--yg-sidebar-padding-x);
  }

  .yg-brand .custom-logo-link,
  .yg-brand__text {
    min-height: 120px;
    align-items: flex-start;
  }

  .yg-brand,
  .yg-brand .custom-logo-link {
    width: 100%;
  }

  .yg-brand .custom-logo-link {
    justify-content: center;
  }

  .yg-brand .custom-logo {
    width: min(var(--yg-logo-width-desktop), 100%);
    max-width: 100%;
  }

  .yg-menu-toggle {
    display: none;
  }

  .yg-menu-panel {
    position: static;
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
    padding: var(--yg-space-4) 0 0;
    border: 0;
    background: transparent;
  }

  .yg-navigation {
    width: 100%;
    padding-left: var(--yg-menu-offset-x);
  }

  .yg-navigation__list {
    display: flex;
    flex-direction: column;
    gap: var(--yg-menu-item-gap);
  }

  .yg-navigation a {
    min-height: 32px;
    border: 0;
    font-size: var(--yg-menu-font-size-desktop);
  }

  .yg-private-access {
    width: auto;
    margin-top: auto;
  }

  .yg-main {
    min-height: 100vh;
  }
}
