/* =====================================================================
 * s3h-constitution.css
 * Session 3.H - Public landing page alignment to
 * PDA Notification No. PDA/NOTIFICATION/007/2026 (23 May 2026).
 * All rules scoped under .s3h- to prevent collision with the
 * inline <style> block in index.html and other stylesheets.
 * PDA palette: green #1F7A6B / dark #0F5C4E / gold #C9A24D.
 * ===================================================================== */

:root {
  --s3h-green: #1F7A6B;
  --s3h-dark: #145B50;
  --s3h-gold: #C9A24D;
  --s3h-green-pale: #E8F4F1;
  --s3h-ink: #0F1F1C;
  --s3h-muted: #4A5857;
  --s3h-line: #D9E3E1;
  --s3h-card-bg: #FFFFFF;
}

/* ---- Notification reference banner ---- */
.s3h-notif-ref {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 auto 40px;
  max-width: 780px;
  padding: 13px 20px;
  background: var(--s3h-green-pale);
  border: 1px solid var(--s3h-line);
  border-left: 4px solid var(--s3h-gold);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--s3h-dark);
  text-align: center;
}
.s3h-notif-ref strong { color: var(--s3h-green); font-weight: 700; }
.s3h-notif-ref .s3h-notif-date { color: var(--s3h-muted); }

/* ---- Panel grouping ---- */
.s3h-panel { margin-bottom: 48px; }
.s3h-panel:last-of-type { margin-bottom: 0; }
.s3h-panel-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--s3h-dark);
  text-align: center;
  margin: 0 0 4px;
}
.s3h-panel-sub {
  font-size: 15px;
  color: var(--s3h-muted);
  text-align: center;
  margin: 0 0 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Member grid ---- */
.s3h-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .s3h-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .s3h-grid { grid-template-columns: 1fr; } }

/* Single-card panels (Patron, Convener) stay readable, not stretched */
.s3h-grid.s3h-grid-solo {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

/* ---- Member card (interactive) ---- */
.s3h-card {
  background: var(--s3h-card-bg);
  border: 1px solid var(--s3h-line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.s3h-card:hover {
  border-color: #2C9A87;
  box-shadow: 0 4px 12px rgba(15,31,28,.08), 0 2px 4px rgba(15,31,28,.04);
  transform: translateY(-2px);
}
.s3h-card.s3h-open {
  border-color: var(--s3h-green);
  box-shadow: 0 12px 28px rgba(15,31,28,.10), 0 4px 8px rgba(15,31,28,.04);
  transform: none;
}

/* ---- Card header = clickable trigger ---- */
.s3h-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.s3h-trigger:focus-visible {
  outline: 3px solid var(--s3h-gold);
  outline-offset: -3px;
}

.s3h-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,31,28,.06), 0 1px 3px rgba(15,31,28,.04);
}
.s3h-avatar.s3h-c-patron   { background: linear-gradient(135deg,#C9A24D 0%,#A88338 100%); }
.s3h-avatar.s3h-c-convener { background: linear-gradient(135deg,#2C9A87 0%,#1F7A6B 100%); }
.s3h-avatar.s3h-c-member   { background: linear-gradient(135deg,#1F7A6B 0%,#145B50 100%); }
.s3h-avatar.s3h-c-authority{ background: linear-gradient(135deg,#3A6B61 0%,#285048 100%); }
.s3h-avatar.s3h-c-coord    { background: linear-gradient(135deg,#7FA398 0%,#5C8E84 100%); }

.s3h-id { flex: 1 1 auto; min-width: 0; }
.s3h-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--s3h-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.s3h-status {
  display: block;
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--s3h-green);
  line-height: 1.4;
}
.s3h-honorific {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--s3h-dark);
  background: rgba(201,162,77,.18);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---- Chevron ---- */
.s3h-chev {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--s3h-muted);
  transition: transform .25s ease;
}
.s3h-card.s3h-open .s3h-chev { transform: rotate(180deg); }

/* ---- Expandable profile body ---- */
.s3h-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.s3h-card.s3h-open .s3h-body { grid-template-rows: 1fr; }
.s3h-body-inner { overflow: hidden; }
.s3h-body-pad {
  padding: 0 24px 22px;
  border-top: 1px solid var(--s3h-line);
}
.s3h-role {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--s3h-dark);
}
.s3h-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--s3h-muted);
}
.s3h-hint {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: #7A8785;
  text-align: center;
}

/* ---- Reduced-motion respect ---- */
@media (prefers-reduced-motion: reduce) {
  .s3h-body, .s3h-chev, .s3h-card { transition: none; }
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .s3h-grid.s3h-grid-solo { grid-template-columns: 1fr; }
  .s3h-trigger { padding: 18px 18px; gap: 13px; }
  .s3h-body-pad { padding: 0 18px 18px; }
  .s3h-notif-ref { font-size: 12.5px; padding: 12px 16px; }
  .s3h-avatar { width: 46px; height: 46px; font-size: 15px; }
}
