/* ========== Ideas / Progress goal pages ========== */

.page-progress {
  --pg-width: min(1280px, 96vw);
  --pg-pad: clamp(16px, 2vw, 28px);
  --pg-blue: #81c9f3;
  --pg-blue-deep: #0a3d66;
  --pg-ink: #1a1d23;
  background: #fff;
  color: var(--pg-ink);
}

.pg-shell {
  width: var(--pg-width);
  max-width: 100%;
  margin: 0 auto;
  padding-left: var(--pg-pad);
  padding-right: var(--pg-pad);
  box-sizing: border-box;
}

/* Site header on progress pages: match banner blue (not yellow) */
.page-progress .site-header {
  background: var(--pg-blue);
  transition: transform 0.28s ease;
}

.page-progress .mega-panels {
  background: var(--pg-blue);
}

@media (max-width: 760px) {
  .page-progress .primary-nav {
    background: var(--pg-blue);
  }
}

.page-progress.pg-scrolled .site-header {
  transform: translateY(-110%);
  pointer-events: none;
}

/* Keep Going bar: white, appears on scroll */
.pg-keep {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  transform: translateY(-110%);
  transition: transform 0.28s ease;
  pointer-events: none;
  background: #fff;
}

.page-progress.pg-scrolled .pg-keep {
  transform: translateY(0);
  pointer-events: auto;
}

.pg-keep-bar {
  position: relative;
  min-height: 64px;
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.pg-keep-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--yellow, #f5c400);
}

.pg-keep-inner {
  width: var(--pg-width);
  max-width: 100%;
  margin: 0 auto;
  min-height: 64px;
  padding: 0.85rem var(--pg-pad) 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}

.pg-keep-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pg-ink);
  text-decoration: none;
}

.pg-keep-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pg-keep-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.5rem;
}

.pg-keep-links a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.pg-keep-links a:hover {
  color: var(--pg-ink);
}

.pg-keep-links a.is-active {
  color: var(--pg-ink);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow, #f5c400);
  padding-bottom: 2px;
}

/* Hero */
.pg-hero {
  background: var(--pg-blue);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.pg-hero-title {
  margin: 0 auto 1.35rem;
  max-width: min(34ch, 100%);
  font-family: var(--font-sans);
  font-size: var(--title-page);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--pg-ink);
}

.pg-hero-title span {
  display: block;
}

.pg-hero-tag {
  margin: 0 auto 1.75rem;
  max-width: 36ch;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  color: #2a2f36;
}

.pg-hero-lead {
  margin: 0 auto;
  max-width: 58ch;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2a2f36;
}

.pg-hero-media {
  margin: 2.5rem auto 0;
  max-width: min(920px, 100%);
}

.pg-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  background: #dceaf3;
}

/* Why it matters */
.pg-why {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}

.pg-why-title {
  margin: 0 auto 1.75rem;
  max-width: 28ch;
  font-family: var(--font-serif);
  font-size: var(--title-section);
  font-weight: 700;
  line-height: 1.45;
  color: var(--pg-ink);
}

.pg-why-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 52ch;
  text-align: left;
}

.pg-why-list li {
  position: relative;
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2a2f36;
}

.pg-why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pg-ink);
}

.pg-why-list a {
  color: var(--blue);
  text-underline-offset: 3px;
}

/* Quote band */
.pg-quote {
  background: var(--pg-blue);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
}

.pg-quote p {
  margin: 0 auto;
  max-width: min(860px, 90%);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
  color: var(--pg-blue-deep);
}

/* Partners grid */
.pg-partners {
  background: #2d323a;
  color: #fff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.pg-partners-title {
  margin: 0 0 2.75rem;
  max-width: 28ch;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
}

.pg-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.pg-partner-card {
  max-width: 36ch;
}

.pg-partner-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: #fff;
}

.pg-partner-card h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.pg-partner-card p {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.pg-partner-card a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pg-partner-card a:hover {
  color: var(--yellow, #f5c400);
}

/* Stories */
.pg-stories {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.pg-stories-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pg-stories-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pg-stories-nav {
  display: flex;
  gap: 0.5rem;
}

.pg-stories-nav button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #e8e4dc;
  color: var(--pg-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pg-stories-nav button:hover {
  background: var(--yellow, #f5c400);
}

.pg-stories-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.pg-stories-track::-webkit-scrollbar {
  display: none;
}

.pg-story-card {
  flex: 0 0 min(340px, 78%);
  scroll-snap-align: start;
}

.pg-story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: #e8e4dc;
}

.pg-story-label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #777;
}

.pg-story-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}

.pg-story-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pg-story-card h3 a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pg-story-card p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.pg-story-by {
  margin-top: 0.65rem !important;
  font-size: 0.88rem !important;
  color: #777 !important;
}

/* Newsletter: shared site-wide styles live in styles.css */

/* Infectious diseases theme */
.page-progress-infectious {
  --pg-blue: #ff9c75;
  --pg-blue-deep: #9b320d;
  --pg-accent-dark: #313a44;
  --pg-game: #ebcb00;
}

.page-progress-infectious .site-header,
.page-progress-infectious .mega-panels,
.page-progress-infectious .pg-hero {
  background: #ff9c75;
}

@media (max-width: 760px) {
  .page-progress-infectious .primary-nav {
    background: #ff9c75;
  }
}

.page-progress-infectious .pg-hero {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-progress-infectious .pg-hero-lead strong {
  font-weight: 700;
}

.page-progress-infectious .pg-partners {
  background: var(--pg-accent-dark);
}

.page-progress-infectious .pg-quote p {
  color: var(--pg-ink);
}

/* Economic opportunity theme */
.page-progress-economic {
  --pg-blue: #9cd9c5;
  --pg-blue-deep: #295958;
  --pg-accent-dark: #313a44;
}

.page-progress-economic .site-header,
.page-progress-economic .mega-panels,
.page-progress-economic .pg-hero,
.page-progress-economic .pg-quote {
  background: #9cd9c5;
}

@media (max-width: 760px) {
  .page-progress-economic .primary-nav {
    background: #9cd9c5;
  }
}

.page-progress-economic .pg-hero-title {
  max-width: min(22ch, 100%);
}

.page-progress-economic .pg-quote p {
  color: var(--pg-ink);
}

.page-progress-economic .pg-partners {
  background: var(--pg-accent-dark);
}

.page-progress-economic .pg-stat-block {
  background: var(--pg-blue-deep);
  border-radius: 18px;
}

.page-progress-economic .pg-stat-desc {
  max-width: 22ch;
}

.page-progress-economic .pg-stat-source {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  opacity: 0.9;
}

/* AI for Equity / ai-for-good */
.page-progress-ai {
  --pg-blue: #ebcb00;
  --ai-cream: #f5f3ed;
  --ai-ink: #1a1d23;
  background: var(--ai-cream);
}

/* Keep site chrome white so nav doesn’t merge with the yellow page top */
.page-progress-ai .site-header,
.page-progress-ai .mega-panels {
  background: #fff;
}

@media (max-width: 760px) {
  .page-progress-ai .primary-nav {
    background: #fff;
  }
}

.ai-crumb {
  margin: 0;
  padding: 0.85rem 0;
  background: #ebcb00;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #5c636b;
  box-sizing: border-box;
}

.ai-crumb a {
  color: #1a1d23;
  font-weight: 500;
  text-decoration: none;
}

.ai-crumb a:hover {
  color: var(--blue, #00558c);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-hero {
  padding: 1.25rem 0 2.25rem;
}

.ai-hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: #ebcb00;
  border-radius: 28px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.ai-hero-eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a2f36;
}

.ai-hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--title-page);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ai-ink);
}

.ai-hero-body p {
  margin: 0 0 1.15rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.75;
  color: #2a2f36;
}

.ai-hero-body p:last-child {
  margin-bottom: 0;
}

.ai-hero-media {
  margin: 0;
}

.ai-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 16px;
  background: #d6c36a;
}

.ai-quote {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #e0e2e6;
}

.ai-quote blockquote {
  margin: 0 auto;
  max-width: min(920px, 92%);
}

.ai-quote p {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ai-ink);
}

.ai-quote footer {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.ai-quote footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.ai-focus {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--ai-cream, #f5f3ed);
}

.ai-focus-title {
  margin: 0 auto 1.75rem;
  max-width: 22ch;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  color: var(--ai-ink);
}

.ai-focus-lead {
  margin: 0 auto 1.15rem;
  max-width: 58ch;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.8;
  text-align: center;
  color: #3a4048;
}

.ai-tabs {
  margin-top: 3rem;
}

.ai-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  border-bottom: 1px solid #c9cdd3;
  margin-bottom: 2rem;
}

.ai-tablist button {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  margin-bottom: -1px;
  padding: 0.7rem 1rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
}

.ai-tablist button[aria-selected="true"] {
  color: var(--ai-ink);
  background: #fff;
  border-color: #c9cdd3;
  border-radius: 6px 6px 0 0;
}

.ai-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.ai-panel[hidden] {
  display: none;
}

.ai-panel-media {
  margin: 0;
}

.ai-panel-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #e4e0d6;
}

.ai-panel-media figcaption {
  margin-top: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #777;
}

.ai-panel-copy p {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a2f36;
}

.ai-panel-link a {
  color: var(--ai-ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.ai-stories {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
  background: #fff;
}

.page-progress-ai .ai-stories {
  padding-top: clamp(3rem, 5vw, 4rem);
}

.ai-stories-title {
  margin: 0 0 2rem;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ai-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 1.75rem;
}

.ai-story-card > a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.ai-story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: #e8e4dc;
}

.ai-story-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-story-card > a:hover h3 {
  color: var(--blue);
}

.ai-story-card p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

.ai-story-by {
  margin-top: 0.65rem !important;
  font-size: 0.88rem !important;
  color: #777 !important;
}

@media (max-width: 960px) {
  .ai-hero-card,
  .ai-panel {
    grid-template-columns: 1fr;
  }

  .ai-stories-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.pg-media-band {
  background: #fff;
  padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.pg-hero-media--framed {
  margin-top: 0;
}

.pg-hero-media--framed img {
  border-radius: 0;
  border: 5px solid #111;
  background: #ddd;
}

.pg-stat-row {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #fff;
}

.pg-stat-row-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.pg-stat-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  padding: 2rem 1.5rem;
  background: var(--pg-blue-deep, #9b320d);
  color: #fff;
  text-align: center;
}

.pg-stat-value {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.pg-stat-suffix {
  font-size: 0.72em;
}

.pg-stat-desc {
  margin: 0.85rem auto 0;
  max-width: 14ch;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
}

.pg-stat-copy .pg-why-title {
  margin: 0 0 1.25rem;
  max-width: none;
  text-align: left;
}

.pg-stat-copy .pg-why-list {
  margin: 0;
  max-width: 48ch;
}

.pg-partners-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.pg-partner-icon-img {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.pg-game {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: #fff;
}

.pg-game-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--pg-game, #ebcb00);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.pg-game-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--pg-ink);
}

.pg-game-copy p {
  margin: 0 0 1.35rem;
  max-width: 34ch;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #2a2f36;
}

.pg-game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: #3a414b;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.pg-game-btn:hover {
  background: #2a3038;
}

.pg-game-media {
  margin: 0;
}

.pg-game-media img {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #222;
}

@media (max-width: 960px) {
  .pg-partners-grid,
  .pg-partners-grid--4 {
    grid-template-columns: 1fr 1fr;
  }

  .pg-keep-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pg-keep-links {
    justify-content: flex-start;
  }

  .pg-stat-row-inner,
  .pg-game-inner {
    grid-template-columns: 1fr;
  }

  .pg-stat-block {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  .pg-partners-grid,
  .pg-partners-grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-progress {
    --pg-pad: 14px;
  }
}
