/* ============================================================
   SODP — Data-forward design system
   Inter (UI) + IBM Plex Mono (data, eyebrows, IDs)
   ============================================================ */

:root {
  /* SODP brand */
  --indigo-900: #1B1960;
  --indigo-700: #2E2B8E;
  --indigo-500: #5A54CF;
  --indigo-300: #8B86E0;
  --indigo-100: #E8E6FA;
  --indigo-50:  #F4F3FC;

  /* Topic accents (data-forward — categorical) */
  --topic-ai:    #5A54CF;     /* indigo */
  --topic-impl:  #2D7C50;     /* emerald */
  --topic-rsch:  #3961A8;     /* blue */
  --topic-eth:   #8E5B0A;     /* amber */
  --topic-eq:    #B23A6B;     /* magenta */
  --topic-edu:   #2B3047;     /* ink */

  /* Neutrals */
  --ink:       #0F1226;
  --ink-2:     #2B3047;
  --ink-3:     #5A6079;
  --ink-4:     #8C92A8;
  --rule:      #ECEDF2;
  --rule-2:    #DDDFE9;
  --bg:        #FFFFFF;
  --bg-soft:   #F8F8FB;
  --bg-zebra:  #FAFAFC;
  --bg-card:   #FFFFFF;

  /* Type families */
  --type-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --type-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --type-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--type-sans);
  font-feature-settings: "ss01", "cv11", "cv02";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

/* ── Type scale (sans only) ─────────────────────────────── */

.t-display { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.028em; font-weight: 600; }
.t-h1      { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.022em; font-weight: 600; }
.t-h2      { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.18; letter-spacing: -0.018em; font-weight: 600; }
.t-h3      { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }
.t-h4      { font-size: 15px; line-height: 1.4; letter-spacing: -0.005em; font-weight: 600; }

.lede      { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--ink-2); font-weight: 400; }
.body      { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.body-sm   { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.caption   { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* Mono — used wherever data, IDs, dates, technical labels appear */
.mono      { font-family: var(--type-mono); font-feature-settings: "zero", "ss02"; }
.mono-stat { font-family: var(--type-mono); font-feature-settings: "zero"; font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--type-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-500);
}
.eyebrow-ink { color: var(--ink-3); }

/* ── Layout ─────────────────────────────────────────────── */

.wrap        { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px;  margin: 0 auto; padding: 0 32px; }

.rule { height: 1px; background: var(--rule); border: 0; }
.rule-thick { height: 4px; background: var(--indigo-500); border: 0; width: 56px; }

/* Section header — eyebrow + thick rule + title */
.section-head {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .head-l { display: flex; align-items: center; gap: 14px; }
.section-head .num {
  font-family: var(--type-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-4); font-weight: 500;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 42px; width: auto; display: block; border-radius: 3px; }
@media (max-width: 600px) { .brand img { height: 36px; } }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--indigo-500); background: var(--indigo-50); }
.nav-cta {
  margin-left: 10px;
  padding: 9px 18px;
  background: var(--indigo-500);
  color: white !important;
  border-radius: 6px;
  font-size: 13.5px; font-weight: 600;
  transition: background .15s;
}
.nav-cta:hover { background: var(--indigo-700); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--rule-2);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink-2);
  transition: transform .15s, opacity .15s;
}
.nav-toggle[data-open="true"] span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[data-open="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[data-open="true"] span:nth-child(3) { transform: translateY(-2.75px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  background: white;
  padding: 12px 32px 18px;
}
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: 15px; font-weight: 500;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a.active { color: var(--indigo-500); }
.nav-mobile a.cta {
  margin-top: 14px;
  padding: 12px 18px;
  background: var(--indigo-500);
  color: white;
  border-radius: 6px;
  text-align: center;
  border-bottom: 0;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile[data-open="true"] { display: block; }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--indigo-500); color: white; }
.btn-primary:hover { background: var(--indigo-700); }
.btn-ghost { background: white; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-dark { background: var(--indigo-900); color: white; }
.btn-dark:hover { background: var(--indigo-700); }
.btn-onDark { background: white; color: var(--indigo-900); }
.btn-onDark:hover { background: var(--indigo-100); }

.link {
  font-family: var(--type-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--indigo-500);
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  padding-bottom: 2px;
}
.link:hover { border-bottom-color: var(--indigo-500); }

/* ── Tag / pill (mono, data-forward) ────────────────────── */

.tag {
  display: inline-block;
  font-family: var(--type-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--indigo-50);
  color: var(--indigo-500);
  white-space: nowrap;
}
.tag-neutral { background: var(--bg-soft); color: var(--ink-3); }
.tag-blue    { background: #EFF4FB; color: var(--topic-rsch); }
.tag-violet  { background: var(--indigo-50); color: var(--topic-ai); }
.tag-emerald { background: #ECF5EF; color: var(--topic-impl); }
.tag-amber   { background: #FAF3E5; color: var(--topic-eth); }
.tag-magenta { background: #FBEAF1; color: var(--topic-eq); }
.tag-ink     { background: #ECEDF2; color: var(--topic-edu); }

/* ── Card ───────────────────────────────────────────────── */

.card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px;
  transition: border-color .18s, box-shadow .18s;
}
.card:hover { border-color: var(--rule-2); box-shadow: 0 1px 2px rgba(15,18,38,0.04); }

/* ── Form fields ────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--type-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  background: white;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14.5px; font-family: inherit; color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px var(--indigo-50);
}

/* ── Webinar posters (typographic) ──────────────────────── */

.webinar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 960px) { .webinar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .webinar-grid { grid-template-columns: 1fr; } }

.webinar-poster {
  background: white;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  position: relative;
  transition: background .18s;
  color: var(--ink);
}
.webinar-poster:hover { background: var(--bg-soft); }
.webinar-poster .meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--type-mono);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-3); text-transform: uppercase;
}
.webinar-poster .id {
  color: var(--ink-4); font-weight: 500;
}
.webinar-poster .title {
  flex: 1;
  font-size: 17px; font-weight: 600;
  color: var(--ink); line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.webinar-poster .speaker {
  font-family: var(--type-mono);
  font-size: 11px; color: var(--ink-3);
  line-height: 1.5; letter-spacing: 0.02em;
}
.webinar-poster .speaker strong { color: var(--ink-2); font-weight: 500; }
.webinar-poster .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--type-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-500);
  font-weight: 500;
}

/* Inverted poster — for upcoming/featured */
.webinar-poster.dark {
  background: var(--indigo-900);
  color: white;
  position: relative;
  overflow: hidden;
}
.webinar-poster.dark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(139,134,224,0.22), transparent 55%);
  pointer-events: none;
}
.webinar-poster.dark > * { position: relative; }
.webinar-poster.dark .meta-top,
.webinar-poster.dark .id { color: rgba(255,255,255,0.55); }
.webinar-poster.dark .title { color: white; }
.webinar-poster.dark .speaker { color: rgba(255,255,255,0.7); }
.webinar-poster.dark .speaker strong { color: white; }
.webinar-poster.dark .footer { color: var(--indigo-300); border-top-color: rgba(255,255,255,0.12); }

/* Topic accent stripe (left edge) */
.webinar-poster .topic-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--indigo-500);
}
.webinar-poster.t-ai   .topic-stripe { background: var(--topic-ai); }
.webinar-poster.t-impl .topic-stripe { background: var(--topic-impl); }
.webinar-poster.t-rsch .topic-stripe { background: var(--topic-rsch); }
.webinar-poster.t-eth  .topic-stripe { background: var(--topic-eth); }
.webinar-poster.t-eq   .topic-stripe { background: var(--topic-eq); }
.webinar-poster.t-edu  .topic-stripe { background: var(--topic-edu); }

/* ── Video webinar cards (image-based) ──────────────────── */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: box-shadow .28s ease, transform .28s ease;
  opacity: 0;
  transform: translateY(20px);
}
.video-card.in-view {
  animation: video-card-rise 500ms cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--card-delay, 0ms);
}
@keyframes video-card-rise {
  to { opacity: 1; transform: translateY(0); }
}
.video-card:hover {
  box-shadow:
    0 14px 32px -10px rgba(15, 23, 42, 0.20),
    0 4px 10px -3px rgba(15, 23, 42, 0.08);
}

.video-thumb {
  position: relative;
  height: 192px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-900));
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

/* Topic-colored gradient placeholders (when no image) */
.video-thumb[data-topic="t-ai"]   { background: linear-gradient(135deg, #8B86E0, #2E2B8E); }
.video-thumb[data-topic="t-impl"] { background: linear-gradient(135deg, #4FAE7C, #1F5A39); }
.video-thumb[data-topic="t-rsch"] { background: linear-gradient(135deg, #6791D1, #2A4A7F); }
.video-thumb[data-topic="t-eth"]  { background: linear-gradient(135deg, #C99343, #6E4408); }
.video-thumb[data-topic="t-eq"]   { background: linear-gradient(135deg, #D66495, #832A4F); }
.video-thumb[data-topic="t-edu"]  { background: linear-gradient(135deg, #5A6079, #1F2335); }

.video-thumb-fill {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--type-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 16px;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.10);
  transition: background 300ms ease;
  display: grid;
  place-items: center;
}
.video-card:hover .video-overlay { background: rgba(15, 23, 42, 0.30); }

.video-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 300ms ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.video-card:hover .video-play { transform: scale(1); }
.video-play svg {
  width: 20px;
  height: 20px;
  fill: var(--indigo-500);
  margin-left: 2px; /* optical centering of triangle */
}

.video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-family: var(--type-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  line-height: 1;
}
.video-badge.upcoming { background: var(--indigo-500); color: white; }
.video-badge.recorded { background: white; color: #0F172A; }

.video-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.video-title {
  font-family: var(--type-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: #0F172A;
  transition: color .2s ease;
  margin: 0 0 10px;
}
.video-card:hover .video-title { color: var(--indigo-500); }

.video-speaker {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.45;
}

.video-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--type-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
}
.video-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.video-meta svg {
  width: 14px;
  height: 14px;
  color: var(--indigo-500);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .video-card { opacity: 1; transform: none; animation: none; }
  .video-thumb img { transition: none; }
  .video-play { transition: none; }
}

@media (max-width: 600px) {
  .video-body { padding: 20px; }
  .video-meta { gap: 14px; }
}

/* ── Data table (tabular zebra) ─────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.data-table th {
  font-family: var(--type-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  background: white;
}
.data-table tbody tr:nth-child(odd) td { background: var(--bg-zebra); }
.data-table tbody tr:hover td { background: var(--indigo-50); }
.data-table .col-mono { font-family: var(--type-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.data-table .col-num { font-variant-numeric: tabular-nums; text-align: right; }

/* ── Stat block — big mono numbers ──────────────────────── */

.stat-row {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.stat-cell {
  padding: 24px 28px;
  background: white;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .num {
  font-family: var(--type-mono);
  font-feature-settings: "zero", "ss02";
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 500;
  color: var(--indigo-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-cell .label {
  font-family: var(--type-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
.stat-cell .delta {
  font-family: var(--type-mono);
  font-size: 11px; color: var(--topic-impl);
  letter-spacing: 0.02em; margin-top: 4px;
}

/* Color-blocked dark stat row variant */
.stat-row.dark { border: 0; background: var(--indigo-900); }
.stat-row.dark .stat-cell { background: transparent; border-right-color: rgba(255,255,255,0.12); }
.stat-row.dark .stat-cell .num { color: white; }
.stat-row.dark .stat-cell .label { color: var(--indigo-300); }

/* Vertical stat list (sidebar usage in hero) */
.stat-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
}
.stat-list .row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.stat-list .row .num {
  font-family: var(--type-mono);
  font-feature-settings: "zero", "ss02";
  font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 500;
  color: var(--indigo-900);
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat-list .row .label {
  font-family: var(--type-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.stat-list .row .delta {
  font-family: var(--type-mono);
  font-size: 10.5px;
  color: var(--topic-impl);
  letter-spacing: 0.04em;
  margin-left: 8px;
}

/* Featured single poster — larger than grid posters */
.webinar-poster.featured {
  min-height: 460px;
  padding: 32px 30px 28px;
  gap: 20px;
}
.webinar-poster.featured .title {
  font-size: 26px;
  letter-spacing: -0.018em;
  line-height: 1.18;
}
.webinar-poster.featured .speaker { font-size: 12px; }
.webinar-poster.featured .footer { padding-top: 16px; font-size: 11px; }

/* ── Three-Pronged Road Map ─────────────────────────────── */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 900px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
  background: white;
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .18s ease;
}
.pillar-card:hover { background: var(--bg-soft); }

.pillar-image {
  background: var(--indigo-50);
  display: grid;
  place-items: center;
  padding: 28px 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
  height: 200px;
}
.pillar-image img {
  max-width: 160px;
  max-height: 144px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.pillar-num {
  font-family: var(--type-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.pillar-title {
  font-family: var(--type-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin: 0;
  padding: 0 28px;
}
.pillar-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
  flex: 1;
  padding: 0 28px;
}
.pillar-cta {
  margin-top: 4px;
  align-self: flex-start;
  margin-left: 28px;
}

.citation {
  margin: 36px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-4);
  font-family: var(--type-sans);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  letter-spacing: 0.005em;
}

/* ── Global Network (map + benefits) ────────────────────── */

.benefits-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.benefits-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.benefits-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 10px;
  height: 1px;
  background: var(--indigo-500);
}
@media (max-width: 600px) {
  .benefits-list { grid-template-columns: 1fr; }
}

.map-frame {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.map-frame figcaption {
  padding: 14px 20px;
  border-top: 1px solid var(--rule);
  background: white;
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ── Featured publication card ──────────────────────────── */

.pub-card {
  display: block;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 36px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pub-card:hover {
  border-color: var(--indigo-300);
  box-shadow: 0 4px 14px rgba(15, 18, 38, 0.06);
}
.pub-tag {
  display: inline-block;
  font-family: var(--type-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-500);
  background: var(--indigo-50);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 18px;
}
.pub-title {
  font-family: var(--type-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 920px;
}
.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--type-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.pub-meta-sep { color: var(--ink-4); }
.pub-abstract {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 920px;
}
.pub-link {
  font-family: var(--type-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo-500);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.pub-card:hover .pub-link { border-bottom-color: var(--indigo-500); }

@media (max-width: 600px) {
  .pub-card { padding: 24px 22px; }
  .pillar-image { height: 170px; padding: 22px 20px; }
  .pillar-image img { max-width: 140px; max-height: 120px; }
  .pillar-head, .pillar-title, .pillar-desc { padding-left: 22px; padding-right: 22px; }
  .pillar-cta { margin-left: 22px; }
}

/* ── Members grid (editorial team page) ─────────────────── */

.members-section {
  padding: 96px 0;
  background: white;
  border-top: 1px solid #E2E8F0;
}

.members-header {
  text-align: center;
  max-width: 672px;
  margin: 0 auto 56px;
  padding: 0 16px;
}
.members-header .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
}
.members-header h2 {
  font-family: var(--type-serif);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 500;
  color: #0F172A;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.members-header p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: #64748B;
  margin: 0;
}

.members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 600px)  { .members-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .members-grid { grid-template-columns: repeat(3, 1fr); } }

.member-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  transform: translateY(20px);
  overflow: hidden;
  outline: none;
}
.member-card.in-view {
  animation: member-card-rise 400ms cubic-bezier(.22, .61, .36, 1) forwards;
  animation-delay: var(--card-delay, 0ms);
}
@keyframes member-card-rise {
  to { opacity: 1; transform: translateY(0); }
}
.member-card:hover {
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.14),
    0 2px 4px rgba(15, 23, 42, 0.06);
  border-color: #C7D2FE;
}
.member-card:focus-visible {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px var(--indigo-100);
}

.member-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--indigo-50);
  overflow: hidden;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1);
  transition: filter 500ms ease, transform 700ms ease;
  display: block;
}
.member-card:hover .member-photo img { filter: grayscale(0); transform: scale(1.02); }
.member-photo .ini {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--type-mono);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--indigo-300);
}

.member-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.member-name {
  font-family: var(--type-serif);
  font-size: 19px;
  font-weight: 500;
  color: #0F172A;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}

.member-role-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.member-role {
  font-family: var(--type-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4338CA;
  line-height: 1;
}
.member-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4338CA;
  transition: transform .3s ease;
}
.member-card.is-expanded .member-toggle { transform: rotate(180deg); }

.member-bio {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows .35s ease;
}
.member-card.is-expanded .member-bio { grid-template-rows: 1fr; }
.member-bio-inner {
  overflow: hidden;
  min-height: 0;
}
.member-bio-inner p {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid #E2E8F0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: #475569;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .member-card { opacity: 1; transform: none; animation: none; }
  .member-photo img { transition: none; }
  .member-bio { transition: none; }
  .member-toggle { transition: none; }
}

@media (max-width: 600px) {
  .members-section { padding: 64px 0; }
  .members-header { margin-bottom: 40px; }
}

/* ── Portrait grid (About) ──────────────────────────────── */

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 960px) { .portrait-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .portrait-grid { grid-template-columns: repeat(2, 1fr); } }

.portrait { background: white; transition: background .18s; }
.portrait:hover { background: var(--bg-soft); }
.portrait .img-wrap {
  aspect-ratio: 1/1;
  background: var(--indigo-50);
  overflow: hidden;
  position: relative;
}
.portrait .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  filter: grayscale(100%);
  transition: filter .25s;
}
.portrait:hover .img-wrap img { filter: grayscale(0%); }
.portrait .img-wrap .ini {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--type-mono);
  font-size: 28px; font-weight: 500;
  color: var(--indigo-300);
  letter-spacing: 0.04em;
}
.portrait .meta {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--rule);
}
.portrait .meta .name {
  font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.3;
}
.portrait .meta .aff {
  font-family: var(--type-mono);
  font-size: 10.5px; line-height: 1.45;
  color: var(--ink-3); margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ── Map block (interactive map will live here) ─────────── */

.map-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
}

/* ── Footer ─────────────────────────────────────────────── */

footer.foot {
  background: var(--indigo-900);
  color: rgba(255,255,255,0.85);
  padding: 72px 0 28px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
footer.foot::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 0%, rgba(139,134,224,0.15), transparent 50%);
  pointer-events: none;
}
.foot .wrap { padding: 0 32px; position: relative; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

.foot h4 {
  font-family: var(--type-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { font-size: 14px; color: rgba(255,255,255,0.78); transition: color .12s; }
.foot a:hover { color: white; }
.foot-brand .name {
  font-size: 18px; font-weight: 600; color: white; line-height: 1.2;
  letter-spacing: -0.012em;
}
.foot-brand p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.7); max-width: 400px; margin: 14px 0 0; }
.foot-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--type-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
}

/* ── Responsive grid utilities ──────────────────────────── */

/* Hero: text + featured webinar (2-col → stack on tablet) */
.grid-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .grid-hero { grid-template-columns: 1fr; gap: 40px; }
}

/* Generic 50/50 split (Mission/Vision, Network) */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 880px) {
  .grid-split { grid-template-columns: 1fr; }
}

/* CTA dark — copy + right-align CTA → stack */
.grid-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) {
  .grid-cta { grid-template-columns: 1fr; gap: 32px; }
  .grid-cta .cta-actions { justify-content: flex-start !important; }
}

/* Apply form: main + sidebar */
.grid-apply {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid-apply { grid-template-columns: 1fr; gap: 32px; }
}

/* Network: map column + partner table */
.grid-network {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid-network { grid-template-columns: 1fr; gap: 32px; }
}

/* Section intro: small label col + wide body */
.grid-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 760px) {
  .grid-intro { grid-template-columns: 1fr; gap: 16px; }
}

/* Stat row variants */
.stat-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .stat-row-5 { grid-template-columns: repeat(3, 1fr); }
  .stat-row-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row .stat-cell { border-bottom: 1px solid var(--rule); }
  .stat-row .stat-cell:nth-last-child(-n+1) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .stat-row-5, .stat-row-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .stat-row-5, .stat-row-4 { grid-template-columns: 1fr; }
  .stat-row .stat-cell { border-right: 0; }
}

/* Tables: horizontal scroll on small */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 720px; }

/* Mobile padding adjustments */
@media (max-width: 600px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
  .foot .wrap { padding: 0 20px; }
  .nav-mobile { padding: 12px 20px 18px; }
  .webinar-poster { min-height: 200px; padding: 20px; }
  .webinar-poster.featured { min-height: 380px; padding: 24px; }
  .webinar-poster.featured .title { font-size: 22px; }
  .data-table th, .data-table td { padding: 12px 14px; }
  footer.foot { padding: 56px 0 24px; }
}

/* ── Utility ────────────────────────────────────────────── */

.muted { color: var(--ink-3); }
.center { text-align: center; }
.flex { display: flex; }

/* ── Webinar detail page ───────────────────────────────── */

.webinar-prose p {
  margin: 0 0 1.1em;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.webinar-prose p:last-child { margin-bottom: 0; }

/* Speaker portrait + text in the detail-page sidebar */
.speaker-card { display: flex; gap: 12px; align-items: flex-start; }
.speaker-card-photo {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  background: var(--rule); flex-shrink: 0;
}
.speaker-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.speaker-card-text { flex: 1; min-width: 0; }

@media (max-width: 860px) {
  .webinar-body-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .webinar-body-grid aside {
    position: static !important;
    border-top: 1px solid var(--rule);
    padding-top: 32px;
  }
}

/* ── News list rows ───────────────────────────────────── */

.news-row { transition: background .15s ease; }
.news-row:hover { background: var(--bg-soft); }
.news-row:hover .news-row-title { color: var(--indigo-700, var(--indigo-500)); }
.news-row:hover .news-row-arrow { transform: translateX(4px); }

/* ── Admin panel ───────────────────────────────────────── */

.adm-bootstrap { padding: 80px; text-align: center; color: var(--ink-3); font-family: var(--type-mono); font-size: 12px; letter-spacing: 0.06em; }

/* Login */
.adm-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-soft); padding: 40px 20px; }
.adm-login-card { width: 100%; max-width: 380px; background: white; border: 1px solid var(--rule); border-radius: 6px; padding: 36px; }
.adm-login-brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.adm-login-sub { color: var(--ink-3); font-size: 13.5px; margin: 8px 0 24px; }

/* Shell + topbar */
.adm-shell { min-height: 100vh; background: var(--bg-soft); }
.adm-topbar { position: sticky; top: 0; z-index: 50; background: white; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; }
.adm-topbar-brand { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.adm-tabs { display: flex; gap: 4px; flex: 1; }
.adm-tab { background: none; border: 0; padding: 8px 14px; border-radius: 4px; font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; }
.adm-tab:hover { background: var(--bg-soft); color: var(--ink); }
.adm-tab-active { background: var(--ink); color: white; }
.adm-tab-active:hover { background: var(--ink); color: white; }
.adm-topbar-right { display: flex; align-items: center; gap: 14px; }
.adm-link-btn { background: none; border: 0; color: var(--ink-3); font-size: 12px; cursor: pointer; padding: 4px; }
.adm-link-btn:hover { color: var(--ink); }
.adm-dirty { font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--indigo-500); }
.adm-save-msg { font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 3px; }
.adm-save-ok { background: #E6F4EA; color: #1E6B3A; }
.adm-save-err { background: #FCEBEB; color: #B42323; }

/* Main */
.adm-main { padding: 32px 24px 80px; max-width: 1100px; margin: 0 auto; }
.adm-tab-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 20px; }
.adm-tab-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.adm-tab-sub { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; max-width: 720px; }

/* List rows */
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-row { background: white; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.adm-row-open { border-color: var(--indigo-500); box-shadow: 0 0 0 1px var(--indigo-500); }
.adm-row-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; }
.adm-row-head:hover { background: var(--bg-soft); }
.adm-row-photo { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--rule); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--type-mono); font-size: 13px; color: var(--ink-3); font-weight: 600; }
.adm-row-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-row-photo-small { width: 36px; height: 36px; }
.adm-row-main { flex: 1; min-width: 0; }
.adm-row-title { font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.adm-row-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.adm-warn { color: #C97500; font-weight: 500; }
.adm-row-controls { display: flex; gap: 4px; flex-shrink: 0; }
.adm-icon-btn { background: none; border: 1px solid var(--rule); border-radius: 4px; padding: 4px 10px; font-size: 12px; font-family: var(--type-mono); letter-spacing: 0.04em; cursor: pointer; color: var(--ink-2); }
.adm-icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.adm-icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.adm-icon-btn.adm-danger { color: #B42323; border-color: #F1C9C9; }
.adm-icon-btn.adm-danger:hover { background: #FCEBEB; }

/* Row body (expanded form) */
.adm-row-body { border-top: 1px solid var(--rule); padding: 22px 22px 28px; background: var(--bg-soft); }

/* Form */
.adm-field { display: block; margin-bottom: 16px; }
.adm-field-label { font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.adm-field-required { color: #C97500; }
.adm-field-hint { font-size: 11.5px; color: var(--ink-4); margin-top: 5px; line-height: 1.45; }
.adm-input { width: 100%; padding: 9px 12px; border: 1px solid var(--rule-2); border-radius: 4px; font-family: inherit; font-size: 13.5px; color: var(--ink); background: white; box-sizing: border-box; }
.adm-input:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 3px rgba(90, 84, 207, 0.15); }
.adm-textarea { font-family: var(--type-mono); font-size: 12.5px; line-height: 1.55; resize: vertical; min-height: 100px; }
select.adm-input { cursor: pointer; }

.adm-form-row { margin-bottom: 12px; }
.adm-form-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-form-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adm-form-grid-photo { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
@media (max-width: 720px) {
  .adm-form-cols-4 { grid-template-columns: 1fr 1fr; }
  .adm-form-cols-2 { grid-template-columns: 1fr; }
  .adm-form-grid-photo { grid-template-columns: 1fr; }
}

/* Buttons */
.adm-btn { border: 1px solid var(--rule-2); background: white; color: var(--ink); padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.adm-btn:hover { background: var(--bg-soft); }
.adm-btn-primary { background: var(--ink); color: white; border-color: var(--ink); }
.adm-btn-primary:hover { background: var(--indigo-700); border-color: var(--indigo-700); }
.adm-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.adm-btn-ghost { background: white; }
.adm-btn-ghost:hover { background: var(--bg-soft); }

/* Section cards */
.adm-section-card { background: white; border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px 24px; margin-bottom: 20px; }
.adm-section-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-section-card-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.adm-section { margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.adm-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.adm-section-head h4 { margin: 0; font-size: 13px; font-weight: 600; }

/* Photo upload */
.adm-photo-upload {}
.adm-photo-preview { width: 200px; height: 200px; border: 1px dashed var(--rule-2); border-radius: 6px; overflow: hidden; background: white; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
.adm-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-photo-preview:hover { border-color: var(--indigo-500); }
.adm-photo-empty { color: var(--ink-4); font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.06em; }
.adm-photo-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--type-mono); font-size: 11px; letter-spacing: 0.06em; }
.adm-photo-actions { margin-top: 10px; display: flex; gap: 6px; }

/* Speakers grid */
.adm-speakers-head { display: grid; grid-template-columns: 48px 1.3fr 0.85fr 1.5fr 0.85fr 32px; gap: 8px; font-family: var(--type-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); padding: 0 2px 6px; }
.adm-speaker-row { display: grid; grid-template-columns: 48px 1.3fr 0.85fr 1.5fr 0.85fr 32px; gap: 8px; align-items: start; margin-bottom: 10px; }
.adm-speaker-photo {
  width: 48px; height: 48px; border-radius: 4px; background: white; border: 1px dashed var(--rule-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  padding: 0; position: relative; color: var(--ink-4); font-size: 18px; line-height: 1;
}
.adm-speaker-photo:hover { border-color: var(--indigo-500); border-style: solid; }
.adm-speaker-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-speaker-photo-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.adm-speaker-suggest {
  grid-column: 2 / -1;
  background: var(--bg-soft); border: 1px solid var(--rule-2); border-radius: 3px;
  padding: 5px 10px; font-size: 11.5px; color: var(--indigo-500); cursor: pointer;
  font-family: var(--type-mono); letter-spacing: 0.02em; justify-self: start;
  margin-top: -2px;
}
.adm-speaker-suggest:hover { background: white; border-color: var(--indigo-500); }
@media (max-width: 720px) {
  .adm-speakers-head { display: none; }
  .adm-speaker-row { grid-template-columns: 48px 1fr; padding: 10px; border: 1px solid var(--rule); border-radius: 4px; background: white; gap: 10px; }
  .adm-speaker-row > input, .adm-speaker-row > select, .adm-speaker-row > button { grid-column: 1 / -1; }
  .adm-speaker-photo { grid-column: 1; grid-row: 1; }
  .adm-speaker-suggest { grid-column: 1 / -1; }
}

/* Papers grid (same shape, 2 cols + remove button) */
.adm-papers-head { display: grid; grid-template-columns: 1.2fr 2fr 32px; gap: 8px; font-family: var(--type-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); padding: 0 2px 6px; }
.adm-paper-row { display: grid; grid-template-columns: 1.2fr 2fr 32px; gap: 8px; align-items: start; margin-bottom: 6px; }
@media (max-width: 720px) {
  .adm-papers-head { display: none; }
  .adm-paper-row { grid-template-columns: 1fr; padding: 10px; border: 1px solid var(--rule); border-radius: 4px; background: white; }
}

/* Toggle */
.adm-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.adm-toggle input { width: 16px; height: 16px; }

/* Pills (topic filter in admin) */
.adm-pill-row { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-pill { background: white; border: 1px solid var(--rule-2); padding: 5px 10px; border-radius: 4px; font-family: var(--type-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-2); cursor: pointer; }
.adm-pill:hover { background: var(--bg-soft); }
.adm-pill-active { background: var(--ink); color: white; border-color: var(--ink); }
.adm-pill:disabled { opacity: 0.35; cursor: not-allowed; }

/* States */
.adm-loading { padding: 60px 20px; text-align: center; color: var(--ink-3); font-family: var(--type-mono); font-size: 12px; letter-spacing: 0.06em; }
.adm-empty { padding: 32px 20px; text-align: center; color: var(--ink-4); font-size: 13px; background: var(--bg-soft); border-radius: 4px; }
.adm-empty-inline { color: var(--ink-4); font-size: 12.5px; padding: 8px 0; }
.adm-error { color: #B42323; background: #FCEBEB; padding: 10px 14px; border-radius: 4px; font-size: 13px; }

/* Mobile topbar */
@media (max-width: 720px) {
  .adm-topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .adm-tabs { order: 3; width: 100%; }
  .adm-topbar-right { flex: 1; justify-content: flex-end; }
  .adm-main { padding: 24px 16px 60px; }
}

/* ── Nav dropdown ───────────────────────────────────────── */

.nav-dd { position: relative; display: inline-flex; }
.nav-dd-trigger { display: inline-flex; align-items: center; cursor: pointer; }
.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(15, 18, 38, 0.08);
  padding: 6px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}
.nav-dd.is-open .nav-dd-menu,
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dd-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-dd-menu a:first-child {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  border-radius: 4px 4px 0 0;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

/* Mobile nav grouped dropdown */
.nav-mobile-group { display: flex; flex-direction: column; padding: 4px 0; }
.nav-mobile-group-label {
  font-family: var(--type-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 0 4px;
}
.nav-mobile-group a { padding-left: 12px; font-size: 14px; }

/* ── Hero stack: webinar poster + featured news poster ──── */

.hero-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 540px; /* fixed so a carousel swap never resizes the page */
}
@media (max-width: 880px) {
  /* On stacked layout let the cards size naturally. */
  .hero-stack { height: auto; grid-template-rows: auto auto; }
  .hero-stack > * { min-height: 300px; }
}

/* Poster card: large image on top, text block below.
   Tag overlays the top-left of the image. */
.hero-poster {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  min-height: 0;
  height: 100%; /* always fill the fixed grid cell — variants never resize it */
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.hero-poster:hover {
  border-color: var(--indigo-300);
  box-shadow: 0 6px 24px rgba(15, 18, 38, 0.08);
}

/* Carousel swap: gentle fade + slight rise on the incoming card. */
.hero-poster-anim { animation: heroPosterIn 480ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes heroPosterIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-poster-anim { animation: none; }
}
.hero-poster.is-upcoming {
  background: var(--indigo-900);
  color: white;
  border-color: var(--indigo-900);
}

/* Card layout: text fills left, portrait image fixed-width on the right. */
.hero-poster-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.hero-poster-image {
  background-size: cover;
  background-position: center 25%; /* keep faces (upper half) in frame */
  background-color: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.is-upcoming .hero-poster-image { background-color: var(--indigo-700); }
.hero-poster-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.is-upcoming .hero-poster-image-empty {
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900));
}

.hero-poster-fill {
  font-family: var(--type-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.is-upcoming .hero-poster-fill { color: rgba(255, 255, 255, 0.5); }

.hero-poster-text {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  justify-content: center;
}

.hero-poster-eyebrow-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hero-poster-date {
  font-family: var(--type-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}
.is-upcoming .hero-poster-date,
.is-upcoming .eyebrow { color: rgba(255, 255, 255, 0.7); }

.hero-poster-tag-row { display: flex; }

.hero-poster-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.is-upcoming .hero-poster-title { color: white; }

.hero-poster-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.is-upcoming .hero-poster-body { color: rgba(255, 255, 255, 0.78); }

/* News card variant: replace the photo with a solid colored typographic panel.
 *  Solves two problems at once — visually distinct from the webinar card,
 *  and never collides with text-heavy uploaded news images. */
.hero-poster-cat-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  gap: 8px;
  color: white;
  position: relative;
}
.hero-poster-cat-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.hero-poster-cat-label {
  font-family: var(--type-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero-poster-cat-name {
  font-family: var(--type-serif, var(--type-sans));
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.005em;
  line-height: 1;
  text-align: center;
  color: white;
}

/* Category background colors — match the topic palette used elsewhere. */
.cat-violet { background: #5A54CF; }
.cat-blue { background: #3961A8; }
.cat-amber { background: #8E5B0A; }
.cat-emerald { background: #2D7C50; }
.cat-magenta { background: #B23A6B; }
.cat-ink { background: #2B3047; }

/* News card variant: Newsletter — name header strip on top, cover image below. */
.hero-poster-newsletter { padding: 0; background: white; }
.hero-poster-newsletter-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}
.hero-poster-newsletter-head {
  flex-shrink: 0;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-poster-newsletter-eyebrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hero-poster-newsletter-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-poster-newsletter-img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: contain; /* scale the whole cover to fit, no cropping */
  object-position: center;
  display: block;
  background: var(--bg-soft);
  padding: 8px;
  box-sizing: border-box;
}
.hero-poster-newsletter .hero-poster-cat-panel { flex: 1; }

/* News card variant: full-bleed image. When the admin uploads a complete
 *  designed social card, the image IS the card — no text overlay. */
.hero-poster-news-full {
  background: var(--bg-soft);
  padding: 0;
}
.hero-poster-news-full-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.hero-poster-news-full-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 540px) {
  /* Narrow the image column to give text room on phones. */
  .hero-poster-link { grid-template-columns: minmax(0, 1fr) 110px; }
  .hero-poster-title { font-size: 16px; }
  .hero-poster-cat-name { font-size: 20px; }
}

/* Control strip in the bottom-right of news cards: optional dots + permanent
 *  "All news →" pill. The pill has a white chip background so it stays
 *  readable against full-bleed image cards. */
.hero-poster-controls {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-poster-dots { display: flex; gap: 6px; }
.hero-poster-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 18, 38, 0.2);
  padding: 0;
  cursor: pointer;
  transition: background 120ms ease, width 120ms ease;
}
.hero-poster-dots button:hover { background: var(--ink-3); }
.hero-poster-dots button.is-active { background: var(--indigo-500); width: 18px; border-radius: 3px; border-color: var(--indigo-500); }

.hero-poster-all-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--type-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.hero-poster-all-link:hover {
  background: white;
  color: var(--ink);
  border-color: var(--ink-3);
}
