/**
 * Local task tabs — admin operations rendered by the primary/secondary
 * local_tasks_block (View/Edit/Delete/Revisions/Layout/Clone/Convert Bundle…).
 * Loaded via the `global-styling` library, after variables.css.
 */

/* Block wrappers (content region) */
#block-gmu-libraries-primary-local-tasks,
#block-gmu-libraries-secondary-local-tasks {
  margin: 0 0 1rem;
}

/* Primary tab row */
.tabs.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid var(--gmu-primary-green, #005239);
  font-family: 'Open Sans', sans-serif;
}

/* Secondary tab row (lighter, sits under primary) */
.tabs.secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.25rem 0 0;
  list-style: none;
  font-family: 'Open Sans', sans-serif;
}

.tabs.primary > li,
.tabs.secondary > li {
  margin: 0;
  padding: 0;
}

/* Primary tab links */
.tabs.primary > li > a,
.tabs.primary .tabs__tab > a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gmu-primary-green, #005239);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tabs.primary > li > a:hover,
.tabs.primary > li > a:focus {
  background-color: rgba(0, 82, 57, 0.08);
  text-decoration: none;
}

/* Active primary tab — filled GMU green */
.tabs.primary > li > a.is-active,
.tabs.primary > li.is-active > a,
.tabs.primary .is-active > a {
  background-color: var(--gmu-primary-green, #005239);
  color: var(--gmu-white, #fff);
  border-color: var(--gmu-primary-green, #005239);
}

/* Secondary tab links — pill style */
.tabs.secondary > li > a {
  display: block;
  padding: 0.3rem 0.85rem;
  color: var(--gmu-dark-gray, #3b3b3b);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--gmu-light-gray, #e1e1e1);
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tabs.secondary > li > a:hover,
.tabs.secondary > li > a:focus {
  background-color: rgba(0, 82, 57, 0.06);
  border-color: var(--gmu-primary-green, #005239);
  color: var(--gmu-primary-green, #005239);
  text-decoration: none;
}

/* Active secondary tab — gold accent */
.tabs.secondary > li > a.is-active,
.tabs.secondary > li.is-active > a {
  background-color: var(--gmu-accent-yellow, #ffc733);
  border-color: var(--gmu-accent-yellow, #ffc733);
  color: var(--gmu-black, #000);
}
