/* v25: header-only refinement. Map, cards, dialogs and request form keep
   the approved v24 rules. The map sizing variable is deliberately unchanged. */
.topbar {
  height: 60px;
  min-height: 0;
  flex: 0 0 60px;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0 20px;
  padding-block: 6px;
  align-items: center;
}
.brand-lockup {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}
.brand-mark { width: 46px; height: 44px; flex: 0 0 auto; }
.brand-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.top-actions {
  grid-column: 2;
  grid-row: 1;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: none;
}
.top-cta { font-size: 13px; line-height: 1.25; padding: 11px 20px; }

@media (min-width: 900px) and (max-width: 1199px) {
  .topbar { height: 56px; flex-basis: 56px; padding-inline: 16px; column-gap: 14px; }
  .brand-mark { width: 44px; height: 42px; }
  .brand-name { font-size: 13px; }
  .top-actions { flex-direction: row; align-items: center; gap: 10px; }
  .top-cta { font-size: 12px; padding: 10px 16px; }
}

/* Tablet portrait: reserve a narrow action column, keeping the full name
   on one line and both controls visible. */
@media (min-width: 680px) and (max-width: 899px) {
  .topbar { height: 64px; flex-basis: 64px; padding: 5px 16px; column-gap: 10px; }
  .brand-lockup { gap: 8px; }
  .brand-mark { width: 42px; height: 40px; }
  .brand-name { font-size: 12px; }
  .top-actions { flex-direction: column; align-items: flex-end; gap: 3px; }
  .top-cta { font-size: 11px; padding: 6px 12px; }
  .lang-switcher { padding: 2px; }
  .lang-btn { padding: 5px 8px; font-size: 10px; }
}

/* A narrow phone cannot fit the full brand and controls on one row at a
   readable size. Keep the name unabridged and place controls underneath. */
@media (max-width: 679px) {
  .topbar {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    padding: 6px 12px;
    gap: 4px;
    align-items: stretch;
  }
  .brand-lockup { width: 100%; max-width: 100%; gap: 8px; align-self: stretch; }
  .brand-mark { width: 36px; height: 34px; }
  .brand-name { font-size: 12px; white-space: normal; line-height: 1.25; }
  .top-actions { width: auto; align-self: flex-end; flex-direction: row; align-items: center; gap: 8px; }
  .top-cta { font-size: 11px; padding: 7px 12px; }
  .lang-switcher { padding: 2px; }
  .lang-btn { font-size: 10px; padding: 6px 8px; }
}
