/* ==Hybrid Styles — Shared across public + admin
   ================================================== */

/* ==Nav Tabs — Shared tab styling for all admin sections
   ------------------------------------------------ */

.nav-tabs {
  border-bottom: 1px solid var(--grey-pentadic);
}

.nav-tabs .nav-link {
  color: var(--green-primary);
  padding: 0.65rem 1rem;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  color: var(--green-secondary);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
  color: var(--green-primary) !important;
  font-weight: 700;
  border-color: var(--grey-pentadic) var(--grey-pentadic) var(--white);
}

/* ==Rounded Switch (rounded_switch.tpl) — shared across public + admin
   ------------------------------------------------ */
/* Flex layout overrides BS5's float-based form-check so the switch and label
   are vertically centered with no manual nudges. Centering keeps single-line
   labels (the common case) optically aligned; multi-line labels sit at the
   text block's vertical midpoint, which still reads cleanly. Tight 0.5em gap
   between switch and label. Mirrors admin styling so all rounded_switch
   instances look identical. */
.form-switch {
  display: flex;
  align-items: center;
  padding-left: 0;
  gap: 0.5em;
}
.form-switch .form-check-input {
  width: 3em;
  min-width: 3em;
  height: 1.5em;
  background-color: var(--grey-tertiary);
  border: none;
  cursor: pointer;
  margin-left: 0;
  float: none;
}
.form-switch .form-check-input:checked {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
}
.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem var(--green-primary-25);
  border-color: var(--green-primary);
}

