.subpage-bar {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 25px);
  max-width: 1600px;
  margin-inline: auto;
  padding: 15px 4vw;
  font-family: "Segoe UI", Arial, sans-serif;
}
.subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.subpage-mark { display: block; flex: none; width: 48px; height: 36px; }
.subpage-brand span { font-size: 15px; }
.subpage-bar .subpage-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.subpage-back:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.subpage-back-short { display: none; }
.subpage-bar .subpage-locales { display: flex; gap: 2px; margin: 0; }
.subpage-bar .subpage-locales a {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 44px;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
}
.subpage-bar .subpage-locales a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.subpage-bar a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.projects-top { border-bottom: 1px solid #24292225; }
header.lm-top { display: block; padding: 0; }
header.lm-top .subpage-bar { width: 100%; }
.lm-pessoal .subpage-mark .brand-dot { fill: var(--lm-lime); }

@media (max-width: 650px) {
  .subpage-bar { padding: 9px 4vw; }
  .subpage-mark { width: 37px; height: 32px; }
  .subpage-brand { gap: 4px; }
  .subpage-brand span { font-size: 12px; }
  .subpage-bar .subpage-back { gap: 4px; padding: 0 7px; font-size: 11px; }
  .subpage-back-full { display: none; }
  .subpage-back-short { display: inline; }
  .subpage-bar .subpage-locales a { min-width: 27px; }
}
