/* Board intro */
.page-title {
  /* already styled globally, but ok if you want overrides here */
}

.page-intro {
  /* already styled globally */
}

/* Section title used on board page */
h2.section-title {
  font-family: var(--font-family-heading);
  font-size: 1.6rem;
  margin: 0 0 1.2rem;
}

/* Current board */
.board-section {
    margin-top: -3rem;
  margin-bottom: -5rem;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.board-card {
  background-color: #ffffff;
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.board-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.3rem;
}

.board-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e5e7eb;
  flex-shrink: 0;
}

.board-name {
  font-family: var(--font-family-heading);
  font-size: 1.05rem;
  margin: 0;
}

.board-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.board-affiliation {
  font-size: 0.88rem;
  color: var(--muted-text);
  margin: 0.2rem 0 0.3rem;
}

.board-affiliation a {
  color: var(--secondary-color);
  /*font-weight: 500;*/
}

/* Make affiliation links look clearly clickable */
.board-affiliation a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Hover/focus states */
.board-affiliation a:hover,
.board-affiliation a:focus-visible {
  text-decoration-thickness: 3px;
}

/* Optional: add a little external-link icon automatically */
.board-affiliation a::after {
  content: " ↗";
  font-size: 0.9em;
}

/* Optional: make the whole affiliation line feel interactive */
.board-affiliation {
  margin-top: 0.5rem;
}

.board-summary {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin: 0.35rem 0 0.6rem;
}

.board-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.board-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--light-color);
  color: var(--secondary-color);
  font-weight: 500;
}

.board-link-chip i {
  font-size: 0.8rem;
}

/* Past boards accordion */
.past-board-members {
  margin-top: 1rem;
}

.accordion {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border-color);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background-color: #f9fafb;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
}

.accordion-header span.period-label {
  font-family: var(--font-family-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--primary-color);
}

.accordion-icon {
  font-size: 0.9rem;
  color: var(--muted-text);
  transition: transform 0.18s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(90deg);
}

.accordion-panel {
  padding: 0.75rem 1rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Two-column list inside past-board accordion */
.accordion-panel ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  column-count: 2;
  column-gap: 2rem;
}

.accordion-panel li {
  break-inside: avoid;
  margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
  .accordion-panel ul {
    column-count: 1;
  }
}

.board-links{
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end; /* right side */
  align-items: center;
}

/* Make the button look exactly like your link chip */
.board-link-chip.board-more-chip{
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* optional: keep the icon spacing consistent if you use one */
.board-more-chip i{ margin-right: 0.35rem; }

.board-row-break {
  grid-column: 1 / -1;
  height: 0;
}

/* Chairs: wider when there's space, but still allow two on the first row */
.board-card.is-chair{
  grid-column: span 2;
  justify-self: stretch;
  width: 100%;
}

/* On smaller screens, don't force spanning */
@media (max-width: 700px){
  .board-card.is-chair{
    grid-column: span 1;
  }
}


.board-grid--chairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .board-grid--chairs {
    grid-template-columns: 1fr;
  }
}
