/*
 * IJARIT Editorial Board — OJS 3.4 stylesheet
 * Works with the class names used in ijarit-editorial-board.html.
 *
 * Upload/use this stylesheet alongside the HTML page.
 * Replace all photo placeholders in the HTML with authorised image URLs.
 */

:root {
  --ijarit-green: #176b45;
  --ijarit-green-dark: #104b32;
  --ijarit-blue: #174f79;
  --ijarit-text: #25313b;
  --ijarit-muted: #5c6873;
  --ijarit-border: #d9e4de;
  --ijarit-card-bg: #ffffff;
  --ijarit-soft-bg: #f4f8f5;
}

/* Wrapper and page introduction */
.ijarit-editorial-team {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--ijarit-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.ijarit-editorial-team *,
.ijarit-editorial-team *::before,
.ijarit-editorial-team *::after {
  box-sizing: border-box;
}

.ijarit-team-header {
  margin: 0 0 1.5rem;
  padding: 0 0 1rem;
  border-bottom: 2px solid var(--ijarit-green);
}

.ijarit-team-header h1 {
  margin: 0 0 0.6rem;
  color: var(--ijarit-green-dark);
  font-size: 1.8rem;
  line-height: 1.25;
}

.ijarit-team-header p {
  margin: 0.4rem 0 0;
  color: var(--ijarit-muted);
}

/* Section headings */
.ijarit-role-heading {
  margin: 1.7rem 0 0.85rem;
  padding: 0.5rem 0.8rem;
  border-left: 4px solid var(--ijarit-green);
  background: var(--ijarit-soft-bg);
  color: var(--ijarit-green-dark);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Profile cards */
.ijarit-profile {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
  gap: 1.1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--ijarit-border);
  border-radius: 10px;
  background: var(--ijarit-card-bg);
  box-shadow: 0 2px 8px rgba(20, 55, 38, 0.06);
}

.ijarit-photo-wrap {
  width: 116px;
  margin: 0;
  padding: 0;
}

.ijarit-photo {
  display: block;
  width: 116px;
  height: 136px;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--ijarit-border);
  border-radius: 7px;
  background: #edf2ee;
}

.ijarit-profile-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ijarit-profile h3 {
  margin: 0 0 0.25rem;
  color: var(--ijarit-blue);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.ijarit-role {
  margin: 0 0 0.45rem;
  color: var(--ijarit-green-dark);
  font-weight: 700;
}

.ijarit-affiliation {
  margin: 0 0 0.55rem;
  color: var(--ijarit-muted);
  font-size: 0.94rem;
}

.ijarit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
}

.ijarit-meta a,
.ijarit-bio-link {
  color: var(--ijarit-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ijarit-meta a:hover,
.ijarit-bio-link:hover {
  color: var(--ijarit-green);
}

.ijarit-expertise {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.94rem;
}

.ijarit-expertise strong {
  color: var(--ijarit-green-dark);
}

.ijarit-bio {
  margin: 0.5rem 0 0;
  color: var(--ijarit-text);
  font-size: 0.94rem;
}

.ijarit-bio-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Optional badge if you add <span class="ijarit-role-badge">...</span> */
.ijarit-role-badge {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e8f3ec;
  color: var(--ijarit-green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Accessible keyboard focus */
.ijarit-editorial-team a:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

/* Tablet and mobile */
@media (max-width: 680px) {
  .ijarit-profile {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .ijarit-photo-wrap,
  .ijarit-photo {
    width: 88px;
  }

  .ijarit-photo {
    height: 108px;
  }

  .ijarit-profile h3 {
    font-size: 1.03rem;
  }

  .ijarit-meta {
    display: block;
  }

  .ijarit-meta span {
    display: block;
    margin: 0.2rem 0;
  }

  .ijarit-team-header h1 {
    font-size: 1.55rem;
  }
}

@media (max-width: 420px) {
  .ijarit-profile {
    grid-template-columns: 1fr;
  }

  .ijarit-photo-wrap,
  .ijarit-photo {
    width: 96px;
  }

  .ijarit-photo {
    height: 112px;
  }
}

/* Print styles */
@media print {
  .ijarit-profile {
    break-inside: avoid;
    box-shadow: none;
  }

  .ijarit-editorial-team a {
    color: #000;
  }
}
