/* A small shared control, without changing the site's existing page layouts. */
.gs-language-switch {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 1085;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border: 1px solid #bed0d3;
  border-radius: 20px;
  background: #fff;
  color: #0e4a57;
  box-shadow: 0 2px 9px #0002;
  font: 600 12px/1.3 system-ui, sans-serif;
}
.gs-language-switch button {
  color: inherit;
  font: inherit;
  border: 0;
  padding: 5px 7px;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}
.gs-language-switch button[aria-pressed="true"] { background: #0e4a57; color: #fff; }
.gs-language-switch button:focus-visible { outline: 2px solid #d5a543; outline-offset: 2px; }
.gs-language-switch.gs-language-inline {
  position: static;
  flex-shrink: 0;
  align-self: center;
  margin-inline: .5rem;
  box-shadow: none;
}
.header-right .gs-language-inline, .header-actions .gs-language-inline { order: -1; }
/* Keep the public language control at the right end, after Login. */
@media (min-width: 992px) {
  .navbar .navbar-collapse { order: 1; }
  .navbar .gs-language-inline { order: 2; margin-inline: .75rem 0; }
}
@media (max-width: 991.98px) {
  .navbar .gs-language-inline { margin-inline: auto .4rem; }
  .navbar .navbar-collapse .gs-language-inline {
    width: fit-content;
    margin: 1rem auto .5rem;
    justify-content: center;
  }
}
@media (min-width: 768px) {
  html[lang="fr"] .navbar .nav-link { margin-inline: 2px; white-space: nowrap; }
  html[lang="fr"] .navbar .btn-nav { white-space: nowrap; }
  html[lang="fr"] .navbar .navbar-brand img { max-width: 230px; object-fit: contain; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .navbar-brand img { max-width: 180px; height: 60px; object-fit: contain; }
  html[lang="fr"] .navbar .navbar-brand img { max-width: 180px; }
  .navbar .nav-link { font-size: .875rem; }
}
@media (max-width: 767px) {
  .navbar .navbar-brand { max-width: calc(100% - 175px); }
  .navbar .navbar-brand img { max-width: 100%; height: auto; max-height: 54px; }
  .navbar .gs-language-inline { margin-inline: auto .4rem; }
  .header-right .gs-language-inline { font-size: 11px; gap: 1px; margin-inline: .2rem; }
  .header-right .gs-language-inline button { padding: 4px; }
}
html[lang="fr"] .admin-tab-btn, html[lang="fr"] .settings-tab-btn { white-space: normal; }
html[lang="fr"] .gs-button { white-space: normal; }
/* French select captions need two lines inside the existing floating field. */
html[lang="fr"] .form-floating > .form-select {
  padding-top: 1.7rem;
  padding-bottom: .2rem;
  font-size: .88rem;
}
/* This registration select starts with a real option, not an input placeholder.
   Keep its label above the border instead of relying on :placeholder-shown. */
html[lang="fr"] #organization_type.form-select {
  padding: .75rem 2.25rem .75rem .75rem !important;
}
html[lang="fr"] #organization_type.form-select + label {
  position: absolute;
  top: -.55rem;
  left: .7rem;
  width: auto;
  height: auto;
  max-width: calc(100% - 2rem);
  padding: 0 .3rem;
  background: #fff;
  font-size: .75rem;
  line-height: 1.1rem;
  opacity: 1 !important;
  transform: none !important;
  z-index: 2;
}
html[lang="fr"] .hero-visual .floating-card.card-2 { bottom: 140px; }
@media print { .gs-language-switch { display: none; } }
