/* =========================================================
   Programas — section-specific styles
   Refactored from inline styles to a cleaner, robust system.
   ========================================================= */

/* Each program block (article) ------------------------------ */
.program-row {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  padding: clamp(40px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
}
.program-row:last-of-type { border-bottom: 0; }

/* Header: Roman numeral + (eyebrow + h2) -------------------- */
.program-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: end;
  margin-bottom: 4px;
}
.program-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 5.4vw, 76px);
  font-weight: 380;
  color: var(--brass);
  line-height: .85;
  letter-spacing: -.02em;
  font-feature-settings: "lnum";
  align-self: end;
  /* small optical adjustment so the baseline sits flush with the title */
  margin-bottom: -4px;
}
.program-head-meta {
  align-self: end;
  min-width: 0; /* allow shrink inside grid */
}
.program-head-meta .eyebrow { margin-bottom: 2px; }
.program-head-meta h2 {
  margin-top: 8px;
  /* allow long titles to wrap gracefully */
  text-wrap: balance;
}

/* Body text under the header */
.program-row p { max-width: 56ch; }
.program-row p.lead { margin-top: 22px; }
.program-row p + p { margin-top: 14px; }

/* Right sidebar card --------------------------------------- */
.program-side {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 32px);
}
.program-side .kicker { margin-bottom: 16px; display: block; }
.program-side ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.program-side ul.dividers { gap: 0; }
.program-side ul.dividers li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.program-side ul.dividers li:first-child { padding-top: 0; }
.program-side ul.dividers li:last-child { border-bottom: 0; padding-bottom: 0; }
.program-side ul.dividers li strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.program-side ul.dividers li span {
  font-size: 14px;
  color: var(--gris);
  display: block;
}
.program-side .side-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}

/* Mobile ---------------------------------------------------- */
@media (max-width: 980px) {
  .program-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .program-head {
    column-gap: 16px;
    margin-bottom: 0;
  }
  .program-num { margin-bottom: -2px; }
}
@media (max-width: 520px) {
  .program-head { column-gap: 12px; }
  .program-num { font-size: 48px; }
}
