/* Topbar (default / desktop) */
.topbar {
  background: var(--amber);
  color: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  font-weight: 800;
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 30px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-left,
.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.topbar-brand {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-motto {
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.topbar-link {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  opacity: 0.95;
  white-space: nowrap;
}
.topbar-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar-sep {
  opacity: 0.65;
  font-weight: 900;
}

/* ✅ Scale down (tablets / smaller laptops) */
@media (max-width: 980px) {
  .topbar {
    font-size: 11px;
  }

  .topbar-inner {
    min-height: 28px;
    padding: 6px 12px;
    gap: 10px;
  }

  .topbar-left,
  .topbar-right {
    gap: 8px;
  }

  .topbar-motto {
    max-width: 360px;
  }
}

/* ✅ Scale down more (phones) */
@media (max-width: 680px) {
  .topbar {
    font-size: 10px;
  }

  .topbar-inner {
    min-height: 26px;
    padding: 5px 10px;
    gap: 8px;
  }

  .topbar-left,
  .topbar-right {
    gap: 6px;
  }

  /* Start simplifying content */
  .topbar-motto {
    display: none;
  } /* hide motto */
  .topbar-right a[href^="mailto:"] {
    display: none;
  } /* hide email */
}

/* ✅ Hide completely on very small screens */
@media (max-width: 420px) {
  .topbar {
    display: none;
  }
}
