/* Programs & Councils — /dept/councils
 *
 * Theme-token driven throughout. The hero is the one deliberately dark
 * surface; everything below it rides --bg-secondary and must stay legible
 * under a light theme, so no hero-tuned ink escapes .pc-hero.
 */

/* ─── Hero ─────────────────────────────────────────────────────────── */
.pc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 30px 32px 26px;
  margin-bottom: 20px;
  background:
    radial-gradient(1100px 400px at 12% -30%, rgba(139, 92, 246, 0.30), transparent 60%),
    radial-gradient(800px 340px at 88% 120%, rgba(59, 130, 246, 0.22), transparent 60%),
    linear-gradient(135deg, #171233 0%, #10162e 55%, #0d1020 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
}
.pc-hero-inner { position: relative; z-index: 1; max-width: 980px; }
.pc-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}
.pc-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f3ff;
}
.pc-grad {
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pc-hero-tag {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.86);
  max-width: 860px;
}
.pc-hero-tag strong { color: #f1f5f9; font-weight: 650; }
.pc-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.pc-fact-num {
  font-size: 22px;
  font-weight: 750;
  color: #f4f3ff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pc-fact-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(196, 181, 253, 0.78);
  margin-top: 3px;
}

/* ─── Explanatory notes ────────────────────────────────────────────── */
.pc-note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--chart-5);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 16px;
}
.pc-note strong { color: var(--text-primary); }
.pc-note em { color: var(--text-primary); font-style: normal; font-weight: 600; }
.pc-note-stat {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

/* A widened window is an amber caveat, not an error — the answer on screen is
   correct, it is simply broader than the control implies. */
.pc-relaxed {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent);
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  color: var(--text-secondary);
  font-size: 12px;
}

/* ─── Filters ──────────────────────────────────────────────────────── */
.pc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.pc-filters select,
.pc-filters input[type="text"] {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: inherit;
  min-width: 150px;
}
.pc-filters input[type="text"] { min-width: 230px; flex: 1 1 230px; max-width: 380px; }
.pc-filters select:focus,
.pc-filters input:focus { outline: none; border-color: var(--chart-5); }

.pc-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pc-btn:hover { border-color: var(--chart-5); }
.pc-btn-ghost { background: transparent; }
.pc-btn-primary {
  background: var(--chart-5);
  border-color: var(--chart-5);
  color: #fff;
}
.pc-btn-primary:hover { filter: brightness(1.08); }

/* ─── Tables & scroll bodies ───────────────────────────────────────── */
.pc-scroll { max-height: 62vh; overflow: auto; padding: 0; }
.pc-scroll .dept-table { width: 100%; }
.pc-scroll .dept-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-secondary);
}
.pc-row-link { cursor: pointer; }
.pc-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-muted { color: var(--text-muted); }
.pc-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ─── Expandable event rows ────────────────────────────────────────── */
.pc-events .pc-erow { cursor: pointer; }
.pc-events .pc-erow:hover { background: var(--bg-tertiary, rgba(148, 163, 184, 0.06)); }
.pc-caret { color: var(--text-muted); font-size: 11px; user-select: none; }
.pc-edetail > td { padding: 0 !important; }
.pc-edetail-cell { background: var(--bg-tertiary, rgba(148, 163, 184, 0.05)); }
.pc-ed { padding: 16px 18px 18px; }
.pc-ed-head { margin-bottom: 14px; }
.pc-ed-title { font-size: 13.5px; font-weight: 650; color: var(--text-primary); }
.pc-ed-head .pc-muted { font-size: 12px; margin-top: 2px; }
.pc-ed-head a { color: var(--chart-5); }
.pc-ed-grid {
  display: grid;
  /* The sponsor roster is the substantive half and runs long; the audience
     block is a fixed handful of figures, so it gets a fixed rail. */
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .pc-ed-grid { grid-template-columns: 1fr; } }
.pc-ed-grid h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.pc-ed-grid h4 .pc-muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-stat {
  flex: 1 1 84px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.pc-stat-v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-stat-l { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.pc-levels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pc-ed .pc-note { margin: 10px 0; }
.pc-sponsors { width: 100%; }
.pc-sponsors th, .pc-sponsors td { font-size: 12px; }

/* ─── Pills ────────────────────────────────────────────────────────── */
.pc-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pc-pill.ok      { background: rgba(16, 185, 129, 0.14); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.pc-pill.warn    { background: rgba(245, 158, 11, 0.14); color: #d97706; border-color: rgba(245, 158, 11, 0.3); }
.pc-pill.info    { background: rgba(59, 130, 246, 0.14); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.pc-pill.violet  { background: rgba(139, 92, 246, 0.14); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }
.pc-pill.neutral { background: var(--bg-tertiary, rgba(148,163,184,0.12)); color: var(--text-muted); border-color: var(--border-color); }
.pc-pill.bad     { background: rgba(244, 63, 94, 0.13); color: #f43f5e; border-color: rgba(244, 63, 94, 0.3); }

/* ─── Status bar (members) ─────────────────────────────────────────── */
.pc-statusbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pc-statchip {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 8px 13px;
  min-width: 110px;
}
.pc-statchip-num { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.pc-statchip-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-top: 2px; }

/* ─── Overlap ──────────────────────────────────────────────────────── */
.pc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .pc-two-col { grid-template-columns: 1fr; } }

.pc-depth { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pc-depth-chip {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 9px 14px;
}
.pc-depth-num { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.pc-depth-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-top: 2px; }

.pc-bar {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  overflow: hidden;
  min-width: 70px;
}
.pc-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--chart-5);
  border-radius: 3px;
}

/* ─── Program cards ────────────────────────────────────────────────── */
.pc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.pc-card {
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 16px 17px;
  transition: border-color .15s, transform .15s;
}
.pc-card:hover { border-color: var(--chart-5); transform: translateY(-1px); }
.pc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.pc-card-aud { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-top: 3px; }
.pc-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}
.pc-card-metric-num { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.pc-card-metric-label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 2px; }

/* ─── Account drawer ───────────────────────────────────────────────── */
.pc-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 900;
  display: none;
}
.pc-drawer-backdrop.open { display: block; }
.pc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 94vw);
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  box-shadow: -18px 0 48px rgba(2, 6, 23, 0.35);
  z-index: 901;
  transform: translateX(102%);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
}
.pc-drawer.open { transform: translateX(0); }
.pc-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-color);
}
.pc-drawer-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.pc-drawer-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.pc-drawer-body { flex: 1; overflow: auto; padding: 18px 20px 30px; }
.pc-drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin: 20px 0 8px;
}
.pc-drawer-section-title:first-child { margin-top: 0; }
