/* InterfAIth Authors v1.1 — compact responsive directory. Scoped to shortcode output. */
.interfaith-authors.if-author-grid,
.interfaith-authors {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.interfaith-authors *,
.interfaith-authors *::before,
.interfaith-authors *::after { box-sizing: border-box; }

.interfaith-authors .interfaith-author-card,
.interfaith-authors .if-author-card {
  background: #fffdf7;
  border: 1px solid rgba(5, 43, 58, 0.14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(2, 28, 39, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
}

.interfaith-authors .interfaith-author-photo,
.interfaith-authors .if-author-photo,
.interfaith-authors .interfaith-author-placeholder,
.interfaith-authors .if-author-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 270px;
  display: block;
}

.interfaith-authors .interfaith-author-photo,
.interfaith-authors .if-author-photo {
  object-fit: cover;
  object-position: center;
}

.interfaith-authors .interfaith-author-placeholder,
.interfaith-authors .if-author-placeholder {
  background: #0b3444;
  color: #e9a11b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}

.interfaith-authors .interfaith-author-placeholder span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  line-height: 1;
}

.interfaith-authors .interfaith-author-placeholder small {
  color: #f4ead7;
  font-size: 10px;
  letter-spacing: .14em;
  font-weight: 700;
}

.interfaith-authors .interfaith-author-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.interfaith-authors .interfaith-author-label {
  color: #24b7cc;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 800;
}

.interfaith-authors h3 {
  margin: 6px 0 4px;
  color: #092b3a !important;
  font-size: 21px !important;
  line-height: 1.15 !important;
}

.interfaith-authors .interfaith-author-professional {
  margin: 0 0 8px;
  color: #53646c;
  font-size: 13px;
  line-height: 1.35;
}

.interfaith-authors .interfaith-author-chapter,
.interfaith-authors .if-author-chapter {
  margin: 8px 0 7px;
  color: #9a6410;
  font-weight: 800;
  font-size: 13px;
}

.interfaith-authors .interfaith-author-hook,
.interfaith-authors .interfaith-author-bio {
  color: #243941;
  line-height: 1.5;
  font-size: 13px;
}

.interfaith-authors .interfaith-author-links,
.interfaith-authors .if-author-links {
  margin-top: auto;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.interfaith-authors .interfaith-author-links a,
.interfaith-authors .if-author-links a {
  color: #087b91;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.interfaith-authors .interfaith-author-links a:hover,
.interfaith-authors .if-author-links a:hover { text-decoration: underline; }

.interfaith-authors .interfaith-podcast-coming {
  color: #6c777b;
  font-size: 12px;
  font-style: italic;
}

.interfaith-authors-empty {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto;
  padding: 24px;
  background: #f6efe0;
  border-left: 4px solid #e9a11b;
}

@media (max-width: 1100px) {
  .interfaith-authors.if-author-grid,
  .interfaith-authors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .interfaith-authors.if-author-grid,
  .interfaith-authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .interfaith-authors.if-author-grid,
  .interfaith-authors {
    width: min(100% - 28px, 440px);
    grid-template-columns: 1fr;
  }
  .interfaith-authors .interfaith-author-photo,
  .interfaith-authors .if-author-photo,
  .interfaith-authors .interfaith-author-placeholder,
  .interfaith-authors .if-author-placeholder { max-height: none; }
}
