/* Unified MetronomeBase identity: lime metronome icon and responsive wordmark. */
a.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  color: #111c2d;
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-decoration: none;
}
a.site-brand .site-brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
  flex: 0 0 40px;
}
a.site-brand .site-brand-wordmark {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.12;
}
a.site-brand .site-brand-light { font-weight: 400; }
.sidebar a.site-brand {
  width: 100%;
  max-width: none;
  height: 103px;
  gap: 9px;
  padding: 0 14px;
}
.sidebar a.site-brand .site-brand-wordmark { font-size: 17px; }
.sidebar a.site-brand .site-brand-icon { width: 37px; height: 37px; flex-basis: 37px; }
@media (max-width: 1190px) {
  .sidebar a.site-brand .site-brand-wordmark { font-size: 14px; }
}
@media (max-width: 760px) {
  .sidebar a.site-brand { gap: 10px; padding-inline: 16px; }
  .sidebar a.site-brand .site-brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .sidebar a.site-brand .site-brand-wordmark { font-size: clamp(15px, 4.25vw, 19px); }
}
.topbar a.site-brand { gap: 9px; max-width: calc(100% - 58px); }
.topbar a.site-brand .site-brand-wordmark { font-size: clamp(15px, 3vw, 20px); }
.site-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.site-brand-row a.site-brand .site-brand-wordmark { font-size: clamp(17px, 3vw, 20px); }
.brand-back {
  display: inline-block;
  flex-shrink: 0;
  color: #586274;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.brand-back:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .topbar .brand-back-extra { display: none; }
  .topbar a.site-brand .site-brand-wordmark { font-size: clamp(15px, 4.6vw, 18px); }
  .topbar a.site-brand .site-brand-icon { width: 36px; height: 36px; flex-basis: 36px; }
}

/* Show the actual lime metronome identity in the mobile homepage header.
   Desktop keeps the existing sidebar branding and page context. */
.topbar a.mobile-top-brand { display: none; }
@media (max-width: 760px) {
  .topbar {
    gap: 7px;
    padding-inline: 12px;
  }
  .topbar .top-context { display: none; }
  .topbar a.mobile-top-brand {
    display: inline-flex;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: 6px;
    margin-right: 0;
  }
  .topbar a.mobile-top-brand .site-brand-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
  }
  .topbar a.mobile-top-brand .site-brand-wordmark {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(13px, 3.6vw, 17px);
    letter-spacing: -.055em;
    text-overflow: clip;
  }
  .topbar .top-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 5px;
    min-width: 0;
  }
  .topbar .language-control { padding: 5px 5px; }
  .topbar .language-control select { max-width: 80px; font-size: 11px; }
  .topbar #shareBtn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .topbar #menuToggle {
    flex: 0 0 34px;
    width: 34px;
    height: 36px;
    padding: 5px;
  }
}
@media (max-width: 380px) {
  .topbar { gap: 5px; padding-inline: 9px; }
  .topbar a.mobile-top-brand { gap: 5px; }
  .topbar a.mobile-top-brand .site-brand-icon {
    width: 29px; height: 29px; flex-basis: 29px;
  }
  .topbar a.mobile-top-brand .site-brand-wordmark { font-size: 12px; }
  .topbar .language-control select { max-width: 62px; font-size: 10px; }
  .topbar #shareBtn { width: 33px; height: 33px; flex-basis: 33px; }
  .topbar #menuToggle { width: 32px; flex-basis: 32px; }
}

/* Center the complete sidebar lockup as a unit, without hiding any letters.
   Applies to the sticky desktop sidebar and the wider mobile slide-out drawer. */
.sidebar a.site-brand {
  justify-content: center;
  gap: 7px;
  padding-inline: 8px;
}
.sidebar a.site-brand .site-brand-icon {
  flex: 0 0 37px;
}
.sidebar a.site-brand .site-brand-wordmark {
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  font-size: 14px;
}
@media (max-width: 760px) {
  .sidebar a.site-brand {
    justify-content: center;
    padding-inline: 10px;
    gap: 9px;
  }
  .sidebar a.site-brand .site-brand-icon {
    flex: 0 0 40px;
  }
  .sidebar a.site-brand .site-brand-wordmark {
    font-size: clamp(14px, 4.15vw, 19px);
    overflow: visible;
  }
}
@media (max-width: 340px) {
  .sidebar a.site-brand { padding-inline: 7px; gap: 7px; }
  .sidebar a.site-brand .site-brand-wordmark { font-size: 13px; }
}
