/* Copyright (c) 2026 Aeirya Mohammadi.
 * Licensed under the GNU General Public License v3.0.
 * See LICENSE for details. */

/*
 * Palette bridge for the modern block theme.
 *
 * Tritheme publishes these runtime CSS custom properties specifically so
 * generic plugins can follow each journal's configured colours without
 * depending on Tritheme's LESS build. The fallbacks preserve the previous
 * modern theme appearance under other OJS themes.
 */
.block_editorialBoard.beb_theme_modern {
  --beb-modern-accent: var(--tri-accent, #8a2be2);
  --beb-modern-strong: var(--tri-base-strong, #8a2be2);
  --beb-modern-soft: var(--tri-base-soft, rgba(138, 43, 226, 0.05));
  --beb-modern-border: var(--tri-base-border, #ddd);

  border-color: var(--beb-modern-border);
}

.block_editorialBoard.beb_theme_modern > details {
  border-left: 0;
  border-inline-start: 3px solid transparent;
  padding-left: 0;
  padding-inline-start: 12px;
  transition: border-inline-start-color .2s, background .2s;
}

.block_editorialBoard.beb_theme_modern > details[open] {
  border-inline-start-color: var(--beb-modern-accent);
  background: var(--beb-modern-soft);
}

.block_editorialBoard.beb_theme_modern summary::before {
  color: var(--beb-modern-accent);
}

.block_editorialBoard.beb_theme_modern .block-editorialboard-role-container {
  color: var(--beb-modern-strong);
}

.block_editorialBoard.beb_theme_modern .board-member-container,
.block_editorialBoard.beb_theme_modern > details:not(.show-avatars) .board-member-container {
  border-color: var(--beb-modern-border);
}
