.ng-strip {
  --ng-bg: #181a19;
  --ng-line: #373b38;
  --ng-text: #f0eddd;
  --ng-muted: #bac0b8;
  --ng-accent: #deead8;
  --ng-active-bg: #292e29;
  --ng-menu-bg: #181a19;
  position: relative;
  z-index: 12;
  box-sizing: border-box;
  height: 36px;
  flex: none;
  border-bottom: 1px solid var(--ng-line);
  background: var(--ng-bg);
  color: var(--ng-text);
  font: 600 12px/1 Arial, Helvetica, sans-serif;
}

.ng-strip :is(div, a, img, summary, details, span) { box-sizing: border-box; }

.ng-strip-inner {
  display: flex;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.ng-strip a {
  color: var(--ng-muted);
  text-decoration: none;
}

.ng-strip :is(a, summary):focus-visible {
  outline: 2px solid var(--ng-accent);
  outline-offset: -2px;
}

.ng-strip a.ng-strip-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 100%;
  color: var(--ng-text);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .10em;
}

.ng-strip-brand img { display: block; border-radius: 3px; }

.ng-strip-projects {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-inline-start: 22px;
  padding-inline-start: 10px;
  border-inline-start: 1px solid var(--ng-line);
}

.ng-strip-projects a {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  white-space: nowrap;
}

.ng-strip a:hover, .ng-strip summary:hover { color: var(--ng-text); }

.ng-strip a[aria-current="true"] {
  background: var(--ng-active-bg);
  color: var(--ng-accent);
  box-shadow: inset 0 -2px var(--ng-accent);
}

.ng-strip-community { display: flex; height: 100%; margin-inline-start: auto; }
.ng-strip-community a { display: flex; align-items: center; padding-inline: 10px; }
.ng-strip-dropdown .ng-strip-community { display: contents; }

.ng-strip-menu { display: none; }

@media (max-width: 700px) {
  .ng-strip-inner { width: calc(100% - 24px); gap: 8px; }
  .ng-strip-inner > .ng-strip-community,
  .ng-strip-projects a:not([aria-current="true"]) { display: none; }
  .ng-strip-projects { margin: 0 auto; padding: 0; border: 0; }
  .ng-strip-projects a { padding-inline: 8px; }
  .ng-strip-menu { display: block; height: 100%; flex: none; }
  .ng-strip-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding-inline: 8px;
    list-style: none;
    cursor: pointer;
  }
  .ng-strip-menu summary::-webkit-details-marker { display: none; }
  .ng-strip-menu summary::after {
    content: "";
    width: 10px;
    height: 6px;
    border-block: 1px solid currentColor;
  }
  .ng-strip-menu[open] summary { background: var(--ng-active-bg); }
  .ng-strip-dropdown {
    position: absolute;
    inset: 100% 12px auto auto;
    display: grid;
    min-width: min(194px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    max-height: 70vh;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--ng-line);
    border-radius: 0 0 6px 6px;
    background: var(--ng-menu-bg);
    box-shadow: 0 8px 20px #0008;
  }
  .ng-strip-dropdown a {
    min-height: 40px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 10px;
  }
}

.ng-strip a.ng-strip-brand[aria-current="page"] {
  color: var(--ng-accent);
  box-shadow: inset 0 -2px var(--ng-accent);
}

@media (max-width: 700px) {
  .ng-strip-brand:not([aria-current="page"]) span { display: none; }
  .ng-strip-projects { min-width: 0; }
  .ng-strip-projects a { display: block; align-content: center; overflow: hidden; text-overflow: ellipsis; }
  .ng-strip-inner > .ng-strip-menu { margin-inline-start: auto; }
}
