:root { --wrap: 900px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

a { color: inherit; }

/* Heading scale */
h1 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 0.75rem; }
h2 { font-size: 1.375rem; line-height: 1.25; margin: 0 0 0.6rem; }
h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 0.5rem; }

/* Page section breathing room */
.latest,
.context { margin-block: 2rem; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px;
}

/* Global image sanity */
main img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
  border-radius: 999px;
}

.site-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.1s, background 0.1s;
}

.nav a:hover {
  opacity: 1;
  background: #f4f4f4;
}

/* Lang switch + hamburger */
.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  font-size: 0.72rem;
  opacity: 0.55;
  white-space: nowrap;
}

.lang-switch a {
  text-decoration: none;
}

.lang-switch a:hover {
  text-decoration: underline;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  border-radius: 6px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
}

.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after  { bottom: -5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); opacity: 1; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { transform: translateY(-5px) rotate(-45deg); opacity: 1; }

/* Mobile nav */
@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    z-index: 20;
  }

  .nav.nav--open { display: flex; }

  .nav a {
    padding: 11px 8px;
    font-size: 1rem;
    opacity: 0.9;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }

  .nav a:last-child { border-bottom: none; }

  .nav a:hover { background: none; opacity: 1; }
}

/* Home hero */
.hero { padding: 18px 0 8px; }
.hero h1 { margin: 0 0 10px; font-size: 2rem; }

.tagline {
  margin: 0 0 18px;
  max-width: 70ch;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Optional page hero image */
.page-hero { margin: 0 0 1.5rem 0; }

.page-hero__img {
  width: 100%;
  max-height: 360px;     /* tweak 280–420 */
  object-fit: cover;
  display: block;
  border-radius: 12px;
  object-position: center;
}

.page-hero img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}


/* Partner logo */
.partner-logo { margin: 1rem 0 1.25rem 0; }

.partner-logo__img {
  width: 100%;
  max-width: 320px;      /* tweak 240–420 */
  height: auto;
  display: block;
  margin: 0 auto;   /* centers the logo */
}

/* Cards */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.card {
  display: inline-block;
  padding: 12px 14px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  text-decoration: none;
}

.card:hover { border-color: #cfcfcf; }

/* Home visual */
.home-visual {
  margin: 32px 0 48px;
  display: flex;
  justify-content: center;
}

.home-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

.small { opacity: 0.8; font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid #e6e6e6;
  margin-top: 42px;
}

/* Episodes */
.episode-header { margin-bottom: 18px; }
.episode-summary { font-size: 1.05rem; max-width: 75ch; opacity: 0.95; }
.episode-body { max-width: 75ch; }
.episode-links { margin-top: 26px; }

.episode-figure { margin: 18px 0 22px; }

.episode-image {
  width: 80%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #eee;
}

.episode-caption {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.episode-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.episode-thumb {
  display: block;
  width: 88px;
  height: 88px;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
}

.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.episode-info { min-width: 0; }

.episode-title {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}

.episode-title:hover { text-decoration: underline; }

/* Latest */
.latest { margin: 34px 0 44px; }

.latest-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 18px;
}

.latest-thumb {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  flex: 0 0 auto;
}

.latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-body { min-width: 0; }

.latest-title {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.latest-title:hover { text-decoration: underline; }

.latest-summary {
  margin: 10px 0 14px;
  max-width: 70ch;
  opacity: 0.92;
}

.latest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 720px) {
  .latest-card { flex-direction: column; }

  .latest-thumb {
    width: 100%;
    height: auto;
  }

  .latest-thumb img { height: auto; }
}


.captivate-embed {
  width: 100%;
  height: 600px;
  margin: 14px 0 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.captivate-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .captivate-embed {
    height: 520px;
  }

}
.listen-links {
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.listen-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.listen-links a:hover {
  border-color: #cfcfcf;
  text-decoration: underline;
}

.episode-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.episode-list > li + li {
  margin-top: 16px;
}

.hero-copy {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-image {
  flex: 0 0 200px;
}

.hero-text {
  flex: 1;
}

@media (max-width: 768px) {
  .hero-copy {
    flex-direction: column;
    text-align: center;
  }
}
.latest-why {
  font-style: italic;
  opacity: 0.85;
  margin-top: 0.5rem;
}
.footer-contact {
  margin-bottom: 0.75rem;
  font-size: 0.95em;
}
.footer-production-links {
  margin-bottom: 0.6rem;
  font-size: 0.95em;
}

.production-section {
  margin: 1.5rem 0;
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.production-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.production-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.production-card p {
  margin: 0.35rem 0;
}

.volunteer-link {
  margin-top: 0.25rem;
}

.count {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.3rem 0 0;
}

/* ── Leaders listing ────────────────────────────── */
.leaders-listing h1 { margin-bottom: 0.25rem; }
.leaders-listing > p { color: #6b7280; margin-bottom: 2rem; }

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.leader-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.leader-card:hover { border-color: #9ca3af; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.leader-card-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.leader-card-body { padding: 1rem; }
.leader-card-name { font-size: 1.05rem; margin: 0 0 0.25rem; }
.leader-card-role { font-size: 0.85rem; color: #374151; margin: 0 0 0.4rem; }
.leader-card-topics { font-size: 0.8rem; color: #6b7280; margin: 0 0 0.3rem; }
.leader-card-eps { font-size: 0.8rem; color: #9ca3af; margin: 0; }

/* Intelligence digests — listing */
.digest-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.digest-list > li + li {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.digest-list-title {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.digest-list-title:hover { text-decoration: underline; }

.digest-list-summary {
  margin-top: 4px;
  max-width: 70ch;
  opacity: 0.85;
}

/* Intelligence digests — detail page */
.digest { max-width: 720px; margin: 0 auto; }
.digest-header { margin-bottom: 18px; }

.digest-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin: 0 0 6px;
}

.digest-editorial {
  border-left: 3px solid #e6e6e6;
  padding-left: 16px;
  margin: 0 0 28px;
  max-width: 70ch;
  font-size: 1.05rem;
  opacity: 0.95;
}

.digest-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.digest-item-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 18px;
}

.digest-item-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.digest-item-title a {
  text-decoration: none;
  font-weight: 700;
}

.digest-item-title a:hover { text-decoration: underline; }

.digest-item-meta {
  margin: 0 0 8px;
}

.digest-item-excerpt {
  margin: 0 0 8px;
  max-width: 70ch;
}

.digest-item-themes {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.digest-theme-tag {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85rem;
}

.digest-footer { margin-top: 16px; }

/* Intelligence brief listing — card grid */
.intel-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}

.intel-theme-select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}

.intel-brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.brief-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.brief-card:hover {
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.brief-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.brief-card-date { margin: 0; }

.brief-card-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.brief-card-excerpt { margin: 0; }

.brief-card-count {
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 640px) {
  .intel-brief-grid { grid-template-columns: 1fr; }
}

/* Intelligence brief detail — related threads */
.digest-related-threads {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.digest-thread-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.digest-thread-list a { text-decoration: none; font-size: 0.95rem; }
.digest-thread-list a:hover { text-decoration: underline; }

/* Leader profile */
.leader-profile { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }

.leader-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.leader-image img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.leader-header-text h1 { margin: 0 0 0.3rem; }
.leader-role { color: #6b7280; margin: 0; font-size: 0.95rem; }

.leader-org-badge { margin: 0.3rem 0 0; font-size: 0.85rem; }
.leader-org-badge a { color: #2e5c1c; text-decoration: none; border-bottom: 1px solid #c8dfc2; }
.leader-org-badge a:hover { border-bottom-color: #2e5c1c; }

.leader-bio { margin-bottom: 1.5rem; }

.leader-topics,
.leader-episodes,
.leader-threads,
.leader-links { margin-bottom: 1.5rem; }

.leader-topics h2,
.leader-episodes h2,
.leader-threads h2,
.leader-links h2 { font-size: 1rem; margin-bottom: 0.5rem; }

.topic-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topic-list li {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
}

.leader-episode-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.leader-episode-list li { font-size: 0.9rem; }

.leader-footer { margin-top: 2rem; font-size: 0.9rem; }
.leader-footer a { color: #6b7280; text-decoration: none; }
.leader-footer a:hover { color: #111; }

@media (max-width: 480px) {
  .leader-header { flex-direction: column; }
  .leader-image img { width: 100%; height: auto; aspect-ratio: 4/3; }
}

/* Thread profile */
.thread-profile { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }

.thread-label {
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  margin: 0 0 0.25rem;
}

.thread-header h1 { margin: 0 0 0.5rem; }
.thread-description { color: #374151; font-size: 0.95rem; margin: 0 0 2rem; }
.thread-section { margin-bottom: 2rem; }
.thread-section h2 { font-size: 1rem; margin-bottom: 0.5rem; }

.thread-item-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.thread-item-list li { font-size: 0.9rem; }
.thread-item-meta { color: #6b7280; }

.thread-footer { margin-top: 2rem; font-size: 0.9rem; }
.thread-footer a { color: #6b7280; text-decoration: none; }
.thread-footer a:hover { color: #111; }

/* ── Mobile — 480px (small phones) ─────────────── */
@media (max-width: 480px) {
  .wrap { padding: 16px; }

  .hero h1 { font-size: 1.375rem; }
  .hero-copy { gap: 1rem; }
  .hero-image { flex: 0 0 100px; }
  .home-image { max-width: 100px; }

  .captivate-embed { height: 360px; }

  .intel-filter-bar { flex-wrap: wrap; }

  .leaders-grid,
  .production-grid { grid-template-columns: 1fr; }
}

/* ── Leader avatar placeholder (no photo) ───────── */
.leader-avatar-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #2e5c1c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Recent briefs compact list (homepage) ──────── */
.recent-briefs-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.recent-briefs-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recent-briefs-list a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.recent-briefs-list a:hover { text-decoration: underline; }

.recent-brief-meta {
  font-size: 0.8rem;
  color: #6b7280;
}


/* Hero images — added Cycle 20 (image generation) */
.digest-hero,
.thread-hero {
  margin: 0 0 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
  max-width: 720px;
}
.digest-hero img,
.thread-hero img {
  width: 100
/* Hero images — added Cycle 20 (image generation) */
.digest-hero,
.thread-hero {
  margin: 0 0 1.5rem 0;
  border-radius: 6px;
  overflow: hidden;
  max-width: 720px;
}
.digest-hero img,
.thread-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.digest-hero figcaption,
.thread-hero figcaption {
  padding: 0.5rem 0.25rem 0;
  color: #6b7280;
}

/* Org logo badge on leader profile */
.leader-org-logo {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.35rem;
  border-radius: 3px;
  object-fit: contain;
}
