
/* -------------------------------------------------------------
   Branch Flags — Navbar (SVG Version)
   ------------------------------------------------------------- */
.nav__flags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.5rem;
}

.nav__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.35s var(--ease);
  text-decoration: none;
  cursor: pointer;
}

.nav__flag:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nav__flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.nav__flag-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav__flag-label {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Mobile menu branch flags */
.mobile-menu__flags {
  margin-top: 2rem;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--line);
}

.mobile-menu__flags-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.mobile-menu__flags-row {
  display: flex;
  gap: 0.75rem;
}

.mobile-menu__flag {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.75rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.35s var(--ease);
  text-decoration: none;
}

.mobile-menu__flag:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.mobile-menu__flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.mobile-menu__flag-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mobile-menu__flag-name {
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

/* Responsive: hide flag labels on medium screens, keep icons */
@media (max-width: 1200px) {
  .nav__flag {
    padding: 0.4rem 0.55rem;
  }
  .nav__flag-label {
    display: none;
  }
}

/* At 1024px the whole nav collapses to burger, so flags go to mobile menu */
@media (max-width: 1024px) {
  .nav__flags {
    display: none;
  }
}