/* ============================================
   SANAD + JEJARING — section khusus /tentang
   Spec: docs/execution/28-SEO-SANAD-TENTANG-OVERHAUL.md (D-045, D-046)
   ============================================ */

/* ───── Photo pengasuh besar di pembuka ───── */
.pembuka-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: 12px;
}
.pembuka-text { min-width: 0; }
.pembuka-photo { position: sticky; top: 96px; }
.pembuka-text .pengasuh-attr {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.photo-frame-tentang {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: var(--bg-elev);
}
.photo-frame-tentang img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.06) saturate(0.88) sepia(0.08);
  display: block;
}
.photo-frame-tentang .corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
  z-index: 2;
}
.photo-frame-tentang .corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.photo-frame-tentang .corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.photo-frame-tentang .corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.photo-frame-tentang .corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* ───── Sanad tree (text-only silsilah visual) ───── */
.sanad-section { }
.sanad-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 32px auto 48px;
  max-width: 580px;
}
.sanad-node {
  text-align: center;
  padding: 18px 24px;
  border: 1px solid rgba(201, 168, 76, 0.32);
  background: rgba(13, 13, 13, 0.6);
  width: 100%;
  position: relative;
  border-radius: 2px;
}
.sanad-node.top { border-color: var(--gold); }
.sanad-node.bottom {
  border-color: rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.06);
}
.sanad-name {
  font-family: var(--font-display, "Cinzel Decorative", serif);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 4px;
  line-height: 1.3;
}
.sanad-role {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
}
.sanad-meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sanad-arrow {
  font-size: 22px;
  color: var(--gold);
  margin: 12px 0;
  opacity: 0.7;
  line-height: 1;
}

.sanad-narrative p {
  margin-bottom: 14px;
  line-height: 1.8;
}
.sanad-narrative strong { color: var(--text); font-weight: 600; }

.sanad-sources {
  margin-top: 36px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.04);
}
.sanad-sources h4 {
  font-family: var(--font-heading, "JetBrains Mono", monospace);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.sanad-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sanad-sources li { margin-bottom: 8px; font-size: 13px; line-height: 1.5; }
.sanad-sources li:last-child { margin-bottom: 0; }
.sanad-sources a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.4);
  text-underline-offset: 3px;
}
.sanad-sources a:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ───── Jejaring grid (Saudara seperguruan + Yayasan) ───── */
.jejaring-section { }
.jejaring-section .lead {
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
}
.jejaring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.jejaring-card {
  padding: 28px 26px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(13, 13, 13, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
  border-radius: 2px;
}
.jejaring-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.jejaring-card--yayasan {
  background: rgba(201, 168, 76, 0.04);
}
.jejaring-icon {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}
.jejaring-card h3 {
  font-family: var(--font-display, "Cinzel Decorative", serif);
  font-size: 19px;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.jejaring-loc {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.jejaring-card p {
  line-height: 1.75;
  margin-bottom: 12px;
  font-size: 15px;
}
.jejaring-card p:last-of-type { margin-bottom: 0; }
.jejaring-card strong { color: var(--text); font-weight: 600; }
.jejaring-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-heading, "JetBrains Mono", monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.jejaring-link:hover { opacity: 0.8; }

/* ───── Mobile ───── */
@media (max-width: 768px) {
  .pembuka-grid { grid-template-columns: 1fr; gap: 28px; }
  .pembuka-photo { position: static; max-width: 320px; margin: 0 auto; width: 100%; }
  .photo-frame-tentang .corner { width: 22px; height: 22px; }
  .jejaring-grid { grid-template-columns: 1fr; }
  .sanad-tree { padding: 0 8px; max-width: 100%; }
  .sanad-name { font-size: 15px; }
  .sanad-role { font-size: 12.5px; }
}
