/* ═══════════════════════════════════════════════════════════
   PAGE: Monks Listing (archive-tac_monk.php)
═══════════════════════════════════════════════════════════ */
.monks-page { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }

/* ── HERO ──────────────────────────────────────────────── */
.listing-hero {
  padding: 48px 0 36px; border-bottom: .5px solid var(--br);
  margin-bottom: 32px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.lh-eyebrow {
  font-size: 10.5px; font-weight: 500; letter-spacing: .10em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.lh-eyebrow::before { content: ''; width: 20px; height: .5px; background: var(--t3); }
.lh-h1 {
  font-family: var(--font-d); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; color: var(--t1); line-height: 1.1;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.lh-lead { font-size: 14px; color: var(--t2); line-height: 1.65; max-width: 560px; }
.lh-stats { display: flex; gap: 24px; margin-top: 20px; }
.lhstat-n { font-family: var(--font-d); font-size: 24px; color: var(--t1); line-height: 1; margin-bottom: 3px; }
.lhstat-l { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; }

/* ── FEATURED MONKS ────────────────────────────────────── */
.featured-section { margin-bottom: 32px; }
.featured-label {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t3); margin-bottom: 14px;
}
.featured-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.feat-card {
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-xl); padding: 16px 12px; text-align: center;
  cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
}
.feat-card:hover { border-color: var(--br-md); box-shadow: 0 2px 10px rgba(0,0,0,.07); transform: translateY(-2px); }
.feat-portrait {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg2); border: .5px solid var(--br);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; overflow: hidden;
}
.feat-portrait img { width: 100%; height: 100%; object-fit: cover; }
.feat-portrait svg { width: 22px; height: 22px; stroke: var(--t3); fill: none; stroke-width: 1.5; }
.feat-name { font-size: 12.5px; font-weight: 500; color: var(--t1); margin-bottom: 3px; line-height: 1.3; }
.feat-sub { font-size: 11px; color: var(--t3); line-height: 1.4; }

/* Featured monks grid (shared with homepage) */
.fm-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.fm-card {
  background: var(--bg1); border: .5px solid var(--br);
  border-radius: var(--r-lg); padding: 18px 14px 16px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.fm-card:hover {
  border-color: var(--br-md); background: var(--bg0);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.fm-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 10px;
  background: var(--bg2); border: 2px solid var(--br);
  display: flex; align-items: center; justify-content: center;
}
.fm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fm-avatar svg { width: 28px; height: 28px; color: var(--t3); }
.fm-name { font-size: 12.5px; font-weight: 500; color: var(--t1); line-height: 1.35; }

/* ── FILTER BAR ────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.filter-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg0); border: .5px solid var(--br);
  border-radius: var(--r-lg); padding: 8px 14px;
  flex: 1; min-width: 200px; max-width: 320px;
}
.filter-search input {
  font-family: var(--font-b); font-size: 13.5px; color: var(--t1);
  border: none; background: transparent; outline: none; flex: 1;
}
.filter-search input::placeholder { color: var(--t3); }
.filter-search svg { width: 14px; height: 14px; stroke: var(--t3); fill: none; stroke-width: 2; flex-shrink: 0; }
.filter-count { font-size: 12.5px; color: var(--t3); margin-left: auto; white-space: nowrap; }

/* ── ALPHABET INDEX ────────────────────────────────────── */
.alpha-index { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.alpha-btn {
  width: 30px; height: 30px; border-radius: 6px;
  border: .5px solid var(--br); background: var(--bg0);
  font-size: 12px; font-weight: 500; color: var(--t2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.alpha-btn:hover { background: var(--bg2); color: var(--t1); }
.alpha-btn.on { background: var(--t1); color: #fff; border-color: var(--t1); }
.alpha-btn.empty { color: var(--t3); cursor: default; opacity: .4; }

/* ── MONKS GRID ────────────────────────────────────────── */
.monks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mcard {
  display: flex; gap: 14px; background: var(--bg0);
  border: .5px solid var(--br); border-radius: var(--r-xl);
  padding: 14px 16px; align-items: flex-start;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; text-decoration: none;
}
.mcard:hover { border-color: var(--br-md); box-shadow: 0 2px 12px rgba(0,0,0,.07); transform: translateY(-2px); }
.mcard-portrait {
  width: 48px; height: 58px; border-radius: 10px;
  background: var(--bg2); border: .5px solid var(--br);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.mcard-portrait img { width: 100%; height: 100%; object-fit: cover; }
.mcard-portrait svg { width: 20px; height: 20px; stroke: var(--t3); fill: none; stroke-width: 1.5; }
.mcard-body { flex: 1; min-width: 0; }
.mcard-name { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 2px; line-height: 1.3; }
.mcard-thai { font-size: 11.5px; color: var(--t3); margin-bottom: 4px; }
.mcard-temple { font-size: 12px; color: var(--t2); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mcard-count { font-size: 11.5px; color: var(--gold-dim); font-weight: 500; }

/* Load more */
.load-more-row { text-align: center; margin-top: 32px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 960px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .fm-grid { grid-template-columns: repeat(3, 1fr); }
  .monks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-avatar { width: 60px; height: 60px; }
  .fm-card { padding: 14px 10px 12px; }
  .fm-name { font-size: 11.5px; }
  .monks-grid { grid-template-columns: 1fr; }
  .listing-hero { flex-direction: column; align-items: flex-start; }
}
