/* ==========================================================================
   COODU TRUST — Program detail pages (programs/*.html: sector landings +
   sub-program pages). One shared system, image-light by design:
   banner hero · frosted stat slab · understanding split · process card ·
   project timeline · impact pillars · story quotes · related strip · CTA.
   Tokens only; breakpoints 600 / 900 / 1200; motion gated.
   ========================================================================== */

/* ---- Hero (banner photo + scrim + breadcrumb) ---------------------------- */
.pd-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark);
  background-image: var(--pd-hero-img);
  background-size: cover;
  background-position: center;
  color: var(--color-on-dark);
}
.pd-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .55));
  pointer-events: none;
}
.pd-hero .container { position: relative; z-index: 1; }
.pd-hero__content {
  max-width: 720px;
  padding-block: clamp(56px, 9vw, 96px) clamp(88px, 11vw, 128px);
}
.pd-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 var(--s3);
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.pd-crumbs a { color: var(--on-dark-80); text-decoration: none; }
.pd-crumbs a:hover { color: var(--color-on-dark); }
.pd-crumbs li[aria-current] { color: var(--color-amber); }
.pd-crumbs li + li::before { content: "/"; margin-right: 7px; color: var(--on-dark-60, rgba(255,255,255,.6)); }
.pd-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: 1.08;
  color: var(--color-on-dark);
}
.pd-hero__sub {
  max-width: 560px;
  margin: var(--s2) 0 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--on-dark-80);
}

/* ---- Hero meta chips (project dossier pages) — scheme · period · status -- */
.pd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}
.pd-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-on-dark);
  white-space: nowrap;
}
.pd-meta-chip svg { width: 14px; height: 14px; color: var(--color-amber); flex: none; }

/* ---- Stat slab (overlaps hero) — the Home impact-card recipe ------------- */
.pd-stats { position: relative; z-index: 3; margin-top: clamp(-70px, -7vw, -56px); }
.pd-stats__card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}
.pd-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-card);
}
.pd-stats .stat__num { font-size: var(--fs-stat); }

@media (min-width: 900px) {
  .pd-stats__card { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .pd-stats__card {
    gap: 0;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    box-shadow: var(--shadow-2);
  }
  .pd-stats .stat {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    padding: 28px 24px;
  }
  .pd-stats .stat:last-child { border-right: 0; }
}

/* ---- Vivid stat slab variant: green-gradient pills, amber numbers -------- */
.pd-stats--vivid .stat {
  background: var(--grad-cta);
  border: 0;
  box-shadow: var(--shadow-2);
}
.pd-stats--vivid .stat__num { color: var(--color-amber); }
.pd-stats--vivid .stat__label { color: var(--on-dark-80); }

@media (min-width: 1200px) {
  .pd-stats--vivid .pd-stats__card {
    background: var(--grad-cta);
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .pd-stats--vivid .stat {
    background: transparent;
    box-shadow: none;
    border-right: 1px solid var(--border-on-dark-soft);
  }
  .pd-stats--vivid .stat:last-child { border-right: 0; }
}

/* ---- Inline rich-text highlights ------------------------------------------ */
/* Key terms: green, heavier weight */
.pd-hl {
  color: var(--color-primary-dark);
  font-weight: 700;
}
/* Key figures: display type on a soft amber wash, like a marker pass */
mark.pd-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02em;
  color: var(--text-strong);
  background: linear-gradient(transparent 58%, color-mix(in srgb, var(--color-amber) 32%, transparent) 0);
  padding: 0 3px;
  border-radius: 3px;
}

/* ---- Understanding split: prose + callout | process card ----------------- */
.pd-understand__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s4), 4vw, 56px);
  align-items: start;
}
@media (min-width: 900px) {
  .pd-understand__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.pd-callout {
  margin: var(--s3) 0;
  padding: 18px 20px;
  background: linear-gradient(120deg, var(--surface-tint), color-mix(in srgb, var(--color-amber) 10%, var(--surface)));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.pd-callout__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.pd-callout p { margin: 0; font-size: .9375rem; line-height: 1.65; color: var(--text); }

.pd-understand__prose p { margin: var(--s2) 0 0; line-height: 1.7; color: var(--text); }

/* principle chips */
.pd-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}
.pd-principles li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.pd-principles [data-lucide] { width: 15px; height: 15px; color: var(--color-primary); }

/* numbered process card */
.pd-process {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
  padding: clamp(var(--s3), 2.4vw, 28px);
}
.pd-process__title {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary);
}
.pd-process ol { margin: 0; padding: 0; list-style: none; counter-reset: pd-step; }
.pd-process li {
  position: relative;
  counter-increment: pd-step;
  padding: 0 0 var(--s3) 52px;
}
.pd-process li:last-child { padding-bottom: 0; }
.pd-process li::before {
  content: counter(pd-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8125rem;
  color: var(--color-primary-dark);
  background: var(--surface-tint);
  border-radius: 10px;
}
/* connector line between steps */
.pd-process li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 6px;
  width: 2px;
  background: var(--border-soft);
}
.pd-process__step {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-strong);
}
.pd-process__desc { display: block; margin-top: 3px; font-size: .875rem; line-height: 1.55; color: var(--text-muted); }

/* ---- Single editorial field photo ---------------------------------------- */
.pd-field { margin: 0; }
.pd-field__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-frame);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
  max-height: 540px;
}
.pd-field img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Floating achievement badge on the photo ("Since 2001") */
.pd-field__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 11px 18px;
  background: var(--color-amber);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  pointer-events: none;
}
.pd-field__badge-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .625rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgba(0, 0, 0, .62);
}
.pd-field__badge-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(0, 0, 0, .85);
}
.pd-field figcaption {
  margin-top: 10px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Fact file (executive at-a-glance grid) -------------------------------- */
.pd-facts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
@media (min-width: 600px) { .pd-facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pd-facts__grid { grid-template-columns: repeat(3, 1fr); } }
.pd-fact { margin: 0; padding: 20px 22px; background: var(--surface); }
.pd-fact dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.pd-fact dd {
  margin: 6px 0 0;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-strong);
}
.pd-fact dd .pd-fact__note { display: block; font-weight: 400; font-size: .8125rem; color: var(--text-muted); }

/* ---- Challenge → response pairs (problem / how we solve it) ---------------- */
.pd-cr { display: grid; gap: var(--s2); }
.pd-cr__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
@media (min-width: 900px) { .pd-cr__row { grid-template-columns: 1fr 1fr; } }

.pd-cr__cell {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}
.pd-cr__cell--problem { background: color-mix(in srgb, var(--color-accent) 6%, var(--surface)); }
.pd-cr__cell--response { background: color-mix(in srgb, var(--color-primary) 5%, var(--surface)); }
.pd-cr__cell .icon-chip { flex: none; width: 42px; height: 42px; }

.pd-cr__kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.pd-cr__cell--problem .pd-cr__kicker { color: var(--color-accent-dark); }
.pd-cr__cell--response .pd-cr__kicker { color: var(--color-primary); }
.pd-cr__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--text-strong);
}
.pd-cr__desc { margin: 5px 0 0; font-size: .875rem; line-height: 1.6; color: var(--text); }

/* Connector arrow on the seam (desktop only) */
.pd-cr__arrow {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-1);
  color: var(--color-primary);
  pointer-events: none;
}
.pd-cr__arrow svg,
.pd-cr__arrow [data-lucide] { width: 16px; height: 16px; }
@media (min-width: 900px) { .pd-cr__arrow { display: inline-flex; } }

/* ---- Programme portfolio table (executive track record) -------------------- */
.pd-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
/* Summary bar above the head row */
.pd-table__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}
.pd-table__bar-strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--text-strong);
}
.pd-table__bar-note { font-size: .8125rem; color: var(--text-muted); }

.pd-table { width: 100%; border-collapse: collapse; text-align: left; }

/* Mini timeline bar: each programme's span inside the 2001-2024 window.
   Position/width come from inline --s / --w custom properties. */
.pd-span {
  display: block;
  position: relative;
  margin-top: 8px;
  width: 132px;
  max-width: 100%;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
}
.pd-span::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--s, 0%);
  width: var(--w, 10%);
  min-width: 8px;
  border-radius: inherit;
  background: var(--color-primary);
}
.pd-span--live::after { background: var(--color-amber); }
.pd-table th,
.pd-table td { padding: 15px 20px; vertical-align: middle; }
.pd-table thead th {
  background: var(--color-primary-dark);
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .71875rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.pd-table tbody tr { border-top: 1px solid var(--border-soft); }
.pd-table tbody tr:first-child { border-top: 0; }
.pd-table tbody tr:hover { background: var(--surface-alt); }

.pd-table__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.3;
  color: var(--text-strong);
}
.pd-table__name a { color: inherit; text-decoration: none; }
.pd-table__name a:hover { color: var(--color-primary); }
.pd-table__period {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--color-primary);
  white-space: nowrap;
}
.pd-table__type { font-size: .875rem; color: var(--text-muted); white-space: nowrap; }
.pd-table__note { font-size: .875rem; line-height: 1.5; color: var(--text); }

/* Status chips */
.pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  white-space: nowrap;
}
.pd-chip--live { background: var(--surface-tint); color: var(--color-primary-dark); }
.pd-chip--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}
.pd-chip--done { background: var(--surface-alt); color: var(--text-muted); }

/* Stacked rows below 900px: hide the head (kept in the a11y tree), label cells */
@media (max-width: 899px) {
  .pd-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .pd-table,
  .pd-table tbody,
  .pd-table tr,
  .pd-table td { display: block; }
  .pd-table tr { padding: 16px 18px; }
  .pd-table td { padding: 4px 0; }
  .pd-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 74px;
    margin-right: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .6875rem;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .pd-table__name { font-size: 1.05rem; padding-bottom: 6px; }
}

/* ---- Project timeline ----------------------------------------------------- */
.pd-timeline { margin: 0; padding: 0; list-style: none; }
.pd-project {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px var(--s3);
  padding: clamp(var(--s3), 2.4vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
}
.pd-project + .pd-project { margin-top: var(--s2); }
@media (min-width: 900px) {
  .pd-project { grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; }
}
.pd-project__years {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--color-primary);
  white-space: nowrap;
}
.pd-project__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--text-strong);
}
.pd-project__meta { margin: 2px 0 0; font-size: .875rem; line-height: 1.5; color: var(--text-muted); }
.pd-project__tag {
  justify-self: start;
  display: inline-block;
  padding: 5px 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .6875rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--surface-tint);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pd-project--accent .pd-project__years { color: var(--color-accent); }
.pd-project--accent .pd-project__tag { color: var(--color-accent-dark); background: var(--surface-tint-orange); }

@media (prefers-reduced-motion: no-preference) {
  .pd-project { transition: transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s ease; }
  .pd-project:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
}

/* ---- Impact pillars -------------------------------------------------------- */
.pd-impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s2), 2vw, var(--s3));
}
@media (min-width: 600px) { .pd-impact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .pd-impact__grid { grid-template-columns: repeat(4, 1fr); } }
.pd-pillar {
  padding: clamp(var(--s3), 2.2vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
}
.pd-pillar__title {
  margin: var(--s2) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--text-strong);
}
.pd-pillar p { margin: var(--s1) 0 0; font-size: .875rem; line-height: 1.6; color: var(--text); }

/* ---- Impact stories (sector landing) --------------------------------------- */
.pd-stories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s2), 2vw, var(--s3));
}
@media (min-width: 900px) { .pd-stories__grid { grid-template-columns: repeat(3, 1fr); } }
.pd-story {
  display: flex;
  flex-direction: column;
  padding: clamp(var(--s3), 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--color-amber);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
}
.pd-story__area {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary);
}
.pd-story blockquote { margin: var(--s2) 0 0; font-size: .9375rem; line-height: 1.65; color: var(--text); }
.pd-story figcaption {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--border-soft);
  font-size: .8125rem;
  color: var(--text-muted);
}
.pd-story figcaption strong { display: block; font-size: .875rem; color: var(--text-strong); }

/* ---- Sub-program photo cards (sector landing) ------------------------------ */
.pd-programs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s3), 3vw, var(--s4));
}
@media (min-width: 600px) { .pd-programs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pd-programs__grid { grid-template-columns: repeat(3, 1fr); } }

.pd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.pd-card__media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--surface-alt);
}
.pd-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .22));
  pointer-events: none;
}
.pd-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 clamp(var(--s3), 2.2vw, 26px) clamp(var(--s3), 2.2vw, 26px);
}
.pd-card__top { display: flex; align-items: center; margin-top: -23px; position: relative; z-index: 1; }
.pd-card__top .icon-chip { width: 46px; height: 46px; box-shadow: 0 0 0 4px var(--surface); }
.pd-card__top .icon-chip svg,
.pd-card__top .icon-chip [data-lucide] { width: 22px; height: 22px; }
.pd-card__title {
  margin: var(--s2) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  color: var(--text-strong);
}
.pd-card__desc { margin: var(--s1) 0 0; font-size: .875rem; line-height: 1.6; color: var(--text); }
.pd-card__cta { margin-top: auto; padding-top: var(--s3); }
.pd-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}
.pd-card__link [data-lucide],
.pd-card__link svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .pd-card { transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease; }
  .pd-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
  .pd-card__media img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
  .pd-card:hover .pd-card__media img { transform: scale(1.05); }
  .pd-card__link svg { transition: transform var(--ease); }
  .pd-card__link:hover svg { transform: translateX(3px); }
}

/* ---- Related programs strip (sub-pages) ------------------------------------ */
.pd-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
}
@media (min-width: 600px) { .pd-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pd-related__grid { grid-template-columns: repeat(3, 1fr); } }
.pd-related__grid { margin: 0; padding: 0; list-style: none; }
.pd-related__grid > li { display: flex; }
.pd-rel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
}
.pd-rel .icon-chip { width: 38px; height: 38px; flex: none; }
.pd-rel .icon-chip svg,
.pd-rel .icon-chip [data-lucide] { width: 19px; height: 19px; }
.pd-rel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-strong);
}
.pd-rel:hover { border-color: var(--color-primary); }
.pd-rel:hover .pd-rel__title { color: var(--color-primary); }
@media (prefers-reduced-motion: no-preference) {
  .pd-rel { transition: border-color var(--ease), transform var(--ease); }
  .pd-rel:hover { transform: translateY(-2px); }
}

/* ---- Closing CTA band ------------------------------------------------------ */
.pd-cta { background: var(--grad-cta); color: var(--color-on-dark); text-align: center; }
.pd-cta__inner { max-width: 640px; margin-inline: auto; }
.pd-cta__title {
  margin: var(--s2) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.12;
  color: var(--color-on-dark);
}
.pd-cta__sub { max-width: 520px; margin: var(--s2) auto 0; color: var(--on-dark-80); line-height: 1.6; }
.pd-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: var(--s4); }
@media (max-width: 599px) { .pd-cta__actions .btn { width: 100%; } }
