/* =============================================================================
   [bosflbod_board_members] — Board of Directors listing
   -----------------------------------------------------------------------------
   Every rule is a descendant of .sc-bm-board, so nothing here can reach page
   content the shortcode did not render. The doubled class specificity is
   deliberate: it beats theme rules on ul / li / h2 / img / p without !important.
   Cards are static by design — no hover, transition or transform.
============================================================================= */

.sc-bm-board {
  /* Scoped to the block rather than :root so these never leak into other
     plugin stylesheets that share the page. */
  --sc-bm-accent: #3d51a0;
  --sc-bm-rule: #dcdff0;
  --sc-bm-photo-bg: #e8eaf6;
  --sc-bm-name: #1e2438;
  --sc-bm-role: #6b7290;
  --sc-bm-surface: #ffffff;

  --sc-bm-shadow-officer: 0 1px 2px rgba(30, 36, 56, 0.06),
    0 8px 24px rgba(30, 36, 56, 0.06);
  --sc-bm-shadow-director: 0 1px 2px rgba(30, 36, 56, 0.06),
    0 6px 18px rgba(30, 36, 56, 0.05);

  /* Roboto is served by the base theme — never enqueued here. See
     .claude/design-guides/shared.md. One token, because the block does not
     distinguish a display face from a body face. */
  --sc-bm-font: "Roboto", sans-serif;

  /* No horizontal padding: the theme's content container supplies the page
     gutter. max-width only bites if the theme runs wider than the design. */
  max-width: 1180px;
  margin-inline: auto;
  font-family: var(--sc-bm-font);
}

.sc-bm-board,
.sc-bm-board * {
  box-sizing: border-box;
}

/* Whichever group renders last must not add trailing space. */
.sc-bm-board > :last-child {
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   Section label — real <h2>, styled as a small-caps label with a rule that
   fills the remaining width. The rule is a pseudo-element so the heading stays
   a single semantic node.
----------------------------------------------------------------------------- */
.sc-bm-board .sc-bm-board__heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  font-family: var(--sc-bm-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-bm-accent);
}

.sc-bm-board .sc-bm-board__heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--sc-bm-rule);
}

/* -----------------------------------------------------------------------------
   Grids
----------------------------------------------------------------------------- */
.sc-bm-board .sc-bm-board__list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-bm-board .sc-bm-board__list--officers {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 56px;
}

.sc-bm-board .sc-bm-board__list--directors {
  /* Four across at full width, then reflow. The track floor is whichever is
     larger: a quarter of the row (72px = the three 24px gaps), which caps the
     count at 4, or 180px, which drops to 3/2/1 as the page narrows. */
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(180px, calc((100% - 72px) / 4)), 1fr)
  );
}

/* -----------------------------------------------------------------------------
   Card
----------------------------------------------------------------------------- */
.sc-bm-board .sc-bm-board__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--sc-bm-surface);
  border-radius: 12px;
  overflow: hidden;
}

/* Kill theme-injected list bullets (.entry-content ul li::before and friends). */
.sc-bm-board .sc-bm-board__item::before {
  content: none;
}

.sc-bm-board .sc-bm-board__item--officer {
  box-shadow: var(--sc-bm-shadow-officer);
}

.sc-bm-board .sc-bm-board__item--director {
  box-shadow: var(--sc-bm-shadow-director);
}

/* -----------------------------------------------------------------------------
   Photo — square crop is deliberate, it aligns faces across the grid.
----------------------------------------------------------------------------- */
.sc-bm-board .sc-bm-board__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--sc-bm-photo-bg);
}

.sc-bm-board .sc-bm-board__img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}

/* Decorative stand-in — the member's name sits directly beneath it. */
.sc-bm-board .sc-bm-board__placeholder {
  font-size: 44px;
  line-height: 1;
  color: var(--sc-bm-accent);
  opacity: 0.3;
}

/* -----------------------------------------------------------------------------
   Card text
----------------------------------------------------------------------------- */
.sc-bm-board .sc-bm-board__item--officer .sc-bm-board__body {
  padding: 18px 18px 20px;
}

.sc-bm-board .sc-bm-board__item--director .sc-bm-board__body {
  padding: 16px 16px 18px;
}

.sc-bm-board .sc-bm-board__name {
  margin: 0;
  padding: 0;
  font-family: var(--sc-bm-font);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sc-bm-name);
  /* Wrap between words only — never mid-name. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.sc-bm-board .sc-bm-board__item--officer .sc-bm-board__name {
  font-size: 18px;
}

.sc-bm-board .sc-bm-board__item--director .sc-bm-board__name {
  font-size: 16px;
}

/* No font-family here on purpose — it inherits the block font, and the theme
   sets Roboto on `p` directly anyway. Either path lands on the same face. */

.sc-bm-board .sc-bm-board__role {
  padding: 0;
  line-height: 1.35;
}

.sc-bm-board .sc-bm-board__item--officer .sc-bm-board__role {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--sc-bm-accent);
}

.sc-bm-board .sc-bm-board__item--director .sc-bm-board__role {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sc-bm-role);
}

/* -----------------------------------------------------------------------------
   Empty state
----------------------------------------------------------------------------- */
.sc-bm-board .sc-bm-board__empty {
  margin: 0;
  padding: 32px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sc-bm-role);
}
