/* assets/nbsx/pages/program-description.css — the programme page
   (templates/program-description.php, blueprint v2 §5 "Programme page").

   Loaded last: core.css → pages.css → sections (outcomes, intakes, faculty) →
   this file. Every rule starts with .nbsx-prog__ — nothing shared is restyled,
   and the page's hero / anchor bar / accordion / photo-pairs are the page kit's
   own classes, styled in pages.css.

   Motion: transform, opacity and the paint-only exceptions of §3.9
   (background-size for the underline slides, colour). No !important, no
   box-shadow on content, no height/width transitions, no new observer. */

/* ══ hero ══════════════════════════════════════════════════════════════════
   The page hero itself is pages.css. One correction belongs here: the legacy
   bundle (assets/css/main.min.css) still carries a bare `h1` rule from the old
   particle hero — white, uppercase, its own family — and it wins on the three
   properties .nbsx-pagehero__h1 does not set, which leaves the H1 invisible on
   the white band. Restated inside this page's own namespace. */
.nbsx-prog__hero .nbsx-pagehero__h1{color:var(--fg);font-family:inherit;text-transform:none;
  /* programme names are one very long word ("Neuromarketing", "Neuroestrategia"):
     a hair smaller than the kit's clamp so the word still fits the text column
     beside the square photo, and a break as the last resort. */
  font-size:clamp(44px,5.4vw,76px);overflow-wrap:break-word}

/* ══ the sticky anchor bar can stick ═══════════════════════════════════════
   The legacy shell (.wrapper in assets/css/main.min.css) is `overflow:hidden`,
   which makes it the nearest scrollport — and a position:sticky child of a
   scrollport that never scrolls never sticks, so the kit's anchor bar just
   scrolled away. `overflow-x:clip` keeps exactly the same horizontal
   containment without creating a scroll container. Scoped by :has() to the
   shell that holds this page's hero (this file only loads on this template,
   so it can reach no other page). */
.wrapper:has(#nbsx-prog-hero){overflow-x:clip;overflow-y:visible}

/* ══ key-facts strip ════════════════════════════════════════════════════════
   A shallow band between the hero and the anchor bar: the programme's own
   Campus / Modality / Language / Duration, the first future intake, and the
   line that says the insight platform is included. */
.nbsx-prog__strip{padding-block:0 clamp(40px,5vh,64px)}
.nbsx-prog__facts{
  list-style:none;margin:0;padding:clamp(24px,3vh,32px) 0 0;
  border-top:1px solid var(--hair);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(20px,2.5vw,32px) var(--gutter);
}
.nbsx-prog__fact{margin:0;min-width:0;display:flex;flex-direction:column;gap:6px}
.nbsx-prog__fact--wide{grid-column:span 2}
.nbsx-prog__fact-label{color:var(--muted)}
.nbsx-prog__fact-value{font-size:var(--t-title);font-weight:500;line-height:1.25;text-wrap:pretty}
.nbsx-prog__fact-link{font-size:var(--t-title);font-weight:500}

@media (max-width:1024px){
  .nbsx-prog__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nbsx-prog__fact--wide{grid-column:span 2}
}
@media (max-width:700px){
  .nbsx-prog__strip{padding-bottom:32px}
  .nbsx-prog__facts{grid-template-columns:minmax(0,1fr);gap:20px}
  .nbsx-prog__fact--wide{grid-column:auto}
  .nbsx-prog__fact-value,.nbsx-prog__fact-link{font-size:17px}
}

/* ══ #overview ══════════════════════════════════════════════════════════════
   Every specifics__list row in full: photo + text, `reverse` honoured by
   .nbsx-pair--reverse, "•" objectives lifted out of the paragraph into a list. */
.nbsx-prog__pair--noimg{grid-template-columns:minmax(0,1fr)}
.nbsx-prog__pair--noimg .nbsx-pair__text{max-width:720px}
.nbsx-prog__pair-media{aspect-ratio:4/3}
.nbsx-prog__points{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:12px;max-width:60ch}
.nbsx-prog__point{
  margin:0;padding-left:26px;position:relative;
  font-size:var(--t-body);line-height:1.55;text-wrap:pretty;
}
.nbsx-prog__point::before{
  content:"";position:absolute;left:0;top:.62em;
  width:10px;height:1px;background:var(--indigo);
}

/* ══ #curriculum ════════════════════════════════════════════════════════════
   One accordion group per semester (page-kit .nbsx-acc), its panel a numbered
   list of modules. */
.nbsx-prog__acc{margin-top:0}
.nbsx-prog__mods{list-style:none;margin:0;padding:0;counter-reset:nbsx-prog-mod;display:grid;gap:20px}
.nbsx-prog__mod{margin:0;padding-left:36px;position:relative;counter-increment:nbsx-prog-mod;max-width:68ch}
.nbsx-prog__mod::before{
  content:counter(nbsx-prog-mod,decimal-leading-zero);
  position:absolute;left:0;top:2px;
  font-size:var(--t-small);font-weight:500;font-variant-numeric:tabular-nums;color:var(--muted);
}
.nbsx-prog__mod-h{margin:0;font-size:var(--t-title);font-weight:500;line-height:1.25;text-wrap:pretty}
.nbsx-prog__mod-credits{margin:4px 0 0;font-size:var(--t-small);color:var(--muted)}
.nbsx-prog__mod-desc{margin:8px 0 0;font-size:var(--t-body);line-height:1.6;text-wrap:pretty}

@media (max-width:700px){
  .nbsx-prog__mods{gap:16px}
  .nbsx-prog__mod{padding-left:28px}
  .nbsx-prog__mod-h{font-size:17px}
}

/* ══ #skills ════════════════════════════════════════════════════════════════
   Two columns of one-line skills, each with the school's own 24px icon. */
.nbsx-prog__skill-list{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px var(--gutter);
}
.nbsx-prog__skill{margin:0;display:grid;grid-template-columns:24px minmax(0,1fr);gap:16px;align-items:start}
.nbsx-prog__skill-icon{display:block;width:24px;height:24px;flex:none}
.nbsx-prog__skill-img{display:block;width:24px;height:24px;object-fit:contain}
.nbsx-prog__skill-text{margin:0;font-size:var(--t-body);line-height:1.55;color:var(--muted);text-wrap:pretty}
.nbsx-prog__skill-lead{display:block;font-weight:500;color:var(--fg)}

@media (max-width:700px){
  .nbsx-prog__skill-list{grid-template-columns:minmax(0,1fr);gap:20px}
}

/* ══ #career ════════════════════════════════════════════════════════════════ */
.nbsx-prog__career-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(32px,4vw,64px)}
.nbsx-prog__career-block{min-width:0}
.nbsx-prog__career-h{margin:0;max-width:44ch;text-wrap:pretty}
.nbsx-prog__career-list{margin-top:20px;max-width:52ch}
.nbsx-prog__career-list ul,.nbsx-prog__career-list ol{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.nbsx-prog__career-list li{
  margin:0;padding:0 0 12px 26px;position:relative;
  font-size:var(--t-body);line-height:1.55;border-bottom:1px solid var(--hair);text-wrap:pretty;
}
.nbsx-prog__career-list li:last-child{border-bottom:0;padding-bottom:0}
.nbsx-prog__career-list li::before{content:"";position:absolute;left:0;top:.62em;width:10px;height:1px;background:var(--indigo)}
.nbsx-prog__career-list p{margin:0 0 12px;font-size:var(--t-body);line-height:1.6}
.nbsx-prog__career-cta{margin:clamp(32px,4vw,48px) 0 0}

@media (max-width:1024px){
  .nbsx-prog__career-grid{grid-template-columns:minmax(0,1fr);gap:40px}
}

/* ══ #fees ══════════════════════════════════════════════════════════════════ */
.nbsx-prog__fee-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair)}
.nbsx-prog__fee{
  margin:0;padding:20px 0;border-bottom:1px solid var(--hair);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px var(--gutter);align-items:baseline;
}
.nbsx-prog__fee-name{font-size:var(--t-title);font-weight:500;line-height:1.25}
.nbsx-prog__fee-sum{justify-self:end;line-height:1}

@media (max-width:700px){
  .nbsx-prog__fee{padding:16px 0}
  .nbsx-prog__fee-name{font-size:17px}
  .nbsx-prog__fee-sum{font-size:28px}
}

/* ══ #intakes ═══════════════════════════════════════════════════════════════
   Future dates only; every date opens the online application. */
.nbsx-prog__intake-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--hair)}
.nbsx-prog__intake{
  margin:0;padding:24px 0;border-bottom:1px solid var(--hair);
  display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px var(--gutter);align-items:baseline;
}
.nbsx-prog__intake-format{margin:0;color:var(--muted)}
.nbsx-prog__dates{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:12px clamp(24px,3vw,48px)}
.nbsx-prog__date{margin:0;min-width:0}
.nbsx-prog__date-link{
  display:inline-block;font-size:var(--t-row);font-weight:500;line-height:1.1;color:inherit;text-decoration:none;
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;
  transition:background-size .25s var(--ease);
}
a.nbsx-prog__date-link:hover,a.nbsx-prog__date-link:focus-visible{background-size:100% 1px;color:inherit;text-decoration:none}

@media (max-width:1024px){
  .nbsx-prog__intake{grid-template-columns:180px minmax(0,1fr)}
}
@media (max-width:700px){
  .nbsx-prog__intake{grid-template-columns:minmax(0,1fr);gap:12px;padding:20px 0}
  .nbsx-prog__date-link{font-size:24px}
}

/* ══ #technology ════════════════════════════════════════════════════════════ */
.nbsx-prog__tech .nbsx-prog__pair-media{aspect-ratio:4/3}

/* ══ faculty + ambassadors ══════════════════════════════════════════════════ */
.nbsx-prog__faculty-all{margin:0}
.nbsx-prog__people{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(20px,2.5vw,32px) var(--gutter);
}
.nbsx-prog__person{margin:0;min-width:0}
.nbsx-prog__person-link{display:block;color:inherit;text-decoration:none}
a.nbsx-prog__person-link:hover,a.nbsx-prog__person-link:focus-visible{color:inherit;text-decoration:none}
.nbsx-prog__person-photo{aspect-ratio:4/5;width:100%}
.nbsx-prog__person-name{display:block;margin-top:12px;font-size:var(--t-small);font-weight:500;line-height:1.3}
.nbsx-prog__person-role{display:block;margin-top:4px;line-height:1.35}

.nbsx-prog__amb-h{margin:clamp(48px,6vw,72px) 0 24px;color:var(--muted)}
.nbsx-prog__ambs{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px var(--gutter);
}
.nbsx-prog__amb{margin:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:20px;align-items:start}
.nbsx-prog__amb-photo{width:72px;height:72px;flex:none}
.nbsx-prog__amb-body{display:block;min-width:0}
.nbsx-prog__amb-name{display:block;font-size:var(--t-title);font-weight:500;line-height:1.25}
.nbsx-prog__amb-meta{display:block;margin-top:4px;line-height:1.4}
.nbsx-prog__amb-link{margin-top:10px}

@media (max-width:1024px){
  .nbsx-prog__people{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:700px){
  .nbsx-prog__people{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
  .nbsx-prog__ambs{grid-template-columns:minmax(0,1fr)}
  .nbsx-prog__amb{grid-template-columns:56px minmax(0,1fr);gap:16px}
  .nbsx-prog__amb-photo{width:56px;height:56px}
  .nbsx-prog__amb-name{font-size:17px}
}

/* ══ reduced motion ═════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce){
  .nbsx-prog__date-link{transition:none}
}
