.header-container {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  color: var(--header-txt);
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  padding-top: 10px;
  position: relative; /* anchor for dropdown panel */
}

.header-left {
  align-items: center;
  display: flex;
  justify-content: flex-start;
}

.header-left-link {
  text-decoration: none;
}

.header-left img {
  width: 48px;
  height: 48px;
  margin-right: 15px;
}

.header-site-name {
  color: var(--header-txt);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

/* Hamburger */

.menu-toggle {
  display: none; /* Hide checkbox */
}

.menu-icon {
  cursor: pointer;
  line-height: 0;
  user-select: none;
}

.icon-menu svg {
  width: calc(var(--font-size-body) * 1.9);
  height: calc(var(--font-size-body) * 1.9);
  display: block;
}

/* Only show hamburger by default */
.icon-hamburger {
  display: inline-block;
}

.icon-close {
  display: none;
}

/* Swap icons when checked */
.menu-toggle:checked + .menu-icon .icon-hamburger {
  display: none;
}

.menu-toggle:checked + .menu-icon .icon-close {
  display: inline-block;
}

/* Dropdown panel (hidden by default) */
.site-nav {
  background-color: var(--dropdown-bg);
  border-radius: var(--curve);
  box-shadow: var(--shadow);
  flex-direction: column;
  margin-top: -10px;
  position: absolute;
  right: 20px;
  top: 100%;
  width: min(260px, 92vw);
  z-index: 99;

  /* animation setup */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.site-nav a {
  color: var(--dropdown-txt);
  display: block;
  padding: 12px 18px;
  text-decoration: none;
}

/*
.site-nav a:hover,
.site-nav a:focus {
  transform: scale(1.03);
}
*/

/* Show menu when checked */
.menu-toggle:checked ~ .site-nav {
  display: flex;
  max-height: 500px; /* max height required for animation */
}

/* ----------------------- Desktop ----------------------- */

@media (min-width: 768px) {
  .header-inner {
    padding: 9px 20px;
  }

  .menu-icon {
    display: none;
  }

  .site-nav {
    /* show as a normal horizontal bar */
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 0;
    position: static;
    width: auto;

    /* undo the mobile dropdown collapse */
    max-height: none;
    overflow: visible;
    transition: none;
  }

  .site-nav a {
    color: var(--header-txt);
    padding: 0;
  }
}

/* Main Logo */

.svg-base {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 16px;
  min-width: 16px;
}

.svg-main-logo-wrap {
  flex-shrink: 0;
  height: 30px;
  width: 30px;
}

.svg-main-logo-bg {
  margin-right: 4px;
  padding: 8px 8px 8px 0;
  border-radius: 4px;
}

.main-icon-square-filled {
  fill: #353535;
}

.main-icon-dot {
  fill: #353535;
}

.main-icon-circle-path {
  fill: none;
  stroke-dasharray: none;
  stroke-width: 64;
  stroke: #146ef5;
}
