/* assets/nbsx/sections/footer.css — footer.nbsx-footer (blueprint v2 §3.8)
   Tokens come from core.css on .nbsx-footer; every var() carries the token's
   own value as fallback so the footer also renders before core.css is enqueued.
   Motion: background-size (underline slide), color, opacity, transform only. */

.nbsx-footer{
  position:relative;
  background:var(--ink-footer,#17123a);
  color:var(--fg,#fff);
  padding:96px 0 48px;
  border-top:1px solid var(--hair,rgba(255,255,255,.18));
  font-family:"Epilogue",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:400;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.nbsx-footer__in{max-width:1240px;margin-inline:auto;padding-inline:var(--pad-x,clamp(20px,4vw,64px));box-sizing:border-box}
.nbsx-footer__in *{box-sizing:border-box}

/* ── row 1: 12 columns ───────────────────────────────────────── */
.nbsx-footer__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:48px var(--gutter,24px);margin:0}
.nbsx-footer__brand{grid-column:1/5}
.nbsx-footer__col--programmes{grid-column:5/8}
.nbsx-footer__col--students{grid-column:8/10}
.nbsx-footer__news{grid-column:10/13}

.nbsx-footer__logo{display:inline-block;margin:0 0 28px;line-height:0}
.nbsx-footer__logo img{display:block;width:202px;height:53px;max-width:100%;object-fit:contain;object-position:left center}

.nbsx-footer__address{font-style:normal;margin:0 0 20px;color:var(--muted,rgba(255,255,255,.7));max-width:32ch}
.nbsx-footer__address p{margin:0 0 8px}
.nbsx-footer__address p:last-child{margin-bottom:0}

.nbsx-footer__h{font-size:13px;font-weight:500;letter-spacing:.04em;line-height:1.3;margin:0 0 20px;color:var(--muted,rgba(255,255,255,.7))}

.nbsx-footer__list{list-style:none;margin:0;padding:0}
.nbsx-footer__list li{margin:0 0 12px}
.nbsx-footer__list li:last-child{margin-bottom:0}
.nbsx-footer__group{margin:0 0 20px}
.nbsx-footer__group:last-child{margin-bottom:0}
.nbsx-footer__group-label{display:block;font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,rgba(255,255,255,.7));margin:0 0 10px}

/* text link — underline slides in via background-size (paint-only, §3.9) */
.nbsx-footer__a{
  display:inline;
  color:var(--fg,#fff);
  text-decoration:none;
  font-size:15px;
  line-height:1.5;
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;
  padding-bottom:2px;
  transition:background-size .25s var(--ease,cubic-bezier(.65,0,.35,1)),color .2s var(--ease,cubic-bezier(.65,0,.35,1));
}
.nbsx-footer__a:hover,.nbsx-footer__a:focus-visible{background-size:100% 1px}
.nbsx-footer__a--muted{color:var(--muted,rgba(255,255,255,.7))}
.nbsx-footer__a--muted:hover,.nbsx-footer__a--muted:focus-visible{color:var(--fg,#fff)}
.nbsx-footer__a--insight{font-weight:500}
.nbsx-footer__book{margin-top:4px}
.nbsx-footer__book svg{width:16px;height:16px}

/* newsletter */
.nbsx-footer__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.nbsx-footer__form{margin:0}
.nbsx-footer__field{display:flex;align-items:stretch;gap:8px}
.nbsx-footer__input{
  flex:1 1 auto;min-width:0;height:48px;padding:0 14px;
  font:400 15px/1 "Epilogue",system-ui,sans-serif;color:var(--fg,#fff);
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.24);border-radius:2px;
  transition:border-color .2s var(--ease,cubic-bezier(.65,0,.35,1));
}
.nbsx-footer__input::placeholder{color:rgba(255,255,255,.5)}
.nbsx-footer__input:hover{border-color:rgba(255,255,255,.45)}
.nbsx-footer__btn{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  height:48px;padding:0 22px;border-radius:999px;border:1px solid #fff;
  font:500 15px/1 "Epilogue",system-ui,sans-serif;color:var(--ink,#221c4a);background:#fff;cursor:pointer;
  transition:background-color .2s var(--ease,cubic-bezier(.65,0,.35,1)),color .2s var(--ease,cubic-bezier(.65,0,.35,1)),opacity .2s var(--ease,cubic-bezier(.65,0,.35,1));
}
.nbsx-footer__btn:hover{background-color:transparent;color:#fff}
.nbsx-footer__btn:disabled{opacity:.6;cursor:default}
.nbsx-footer__note{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--muted,rgba(255,255,255,.7))}
.nbsx-footer__note .nbsx-footer__a{font-size:13px}
.nbsx-footer__msg{margin:8px 0 0;min-height:1.5em;font-size:13px;line-height:1.5;color:var(--muted,rgba(255,255,255,.7))}
.nbsx-footer__msg.is-ok{color:#fff}
.nbsx-footer__msg.is-err{color:#ffb3d9}
.nbsx-footer__form.is-done .nbsx-footer__field{opacity:.5}

/* ── row 2: accreditation logos + social ─────────────────────── */
.nbsx-footer__row2{
  display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;
  margin-top:72px;padding-top:32px;border-top:1px solid var(--hair,rgba(255,255,255,.18));
}
.nbsx-footer__accr{display:flex;align-items:center;flex-wrap:wrap;gap:16px 28px;list-style:none;margin:0;padding:0}
.nbsx-footer__accr li{display:flex;align-items:center;justify-content:center;height:34px;padding:5px 10px;background:#fff;border-radius:2px;line-height:0}
/* The accreditation marks are full-colour logos on white plates: inverting them
   on the ink footer turned every one into a blank white block. They keep their
   own colours on a small white chip instead. */
.nbsx-footer__accr img{display:block;height:24px;width:auto;max-width:140px;object-fit:contain;opacity:.9;transition:opacity .2s ease}
.nbsx-footer__accr li:hover img{opacity:1}
.nbsx-footer__social{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;list-style:none;margin:0;padding:0}

/* ── row 3: legal line ───────────────────────────────────────── */
.nbsx-footer__row3{
  display:flex;align-items:center;justify-content:space-between;gap:12px 32px;flex-wrap:wrap;
  margin-top:40px;font-size:13px;color:var(--muted,rgba(255,255,255,.7));
}
.nbsx-footer__copy{margin:0}
.nbsx-footer__legal{display:flex;align-items:center;flex-wrap:wrap;gap:8px 0;list-style:none;margin:0;padding:0}
.nbsx-footer__legal li{display:inline-flex;align-items:center}
.nbsx-footer__legal li + li::before{content:"·";margin:0 10px;color:var(--muted,rgba(255,255,255,.7))}
.nbsx-footer__legal .nbsx-footer__a{font-size:13px}
.nbsx-footer__lang{display:inline-flex;align-items:center;gap:0;margin:0;padding:0;list-style:none}
.nbsx-footer__lang li{display:inline-flex;align-items:center}
.nbsx-footer__lang li + li::before{content:"/";margin:0 6px;color:var(--muted,rgba(255,255,255,.7))}
.nbsx-footer__lang [aria-current]{color:var(--fg,#fff);font-weight:500}

/* focus — 2px indigo ring, 2px offset (core covers .nbsx-footer :focus-visible too) */
.nbsx-footer__a:focus-visible,.nbsx-footer__logo:focus-visible,.nbsx-footer__input:focus-visible,.nbsx-footer__btn:focus-visible{outline:2px solid var(--indigo,#4800FF);outline-offset:2px}

/* ── tablet ≤1024 ─────────────────────────────────────────────── */
@media (max-width:1024px){
  .nbsx-footer{padding:72px 0 40px}
  .nbsx-footer__grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:40px var(--gutter,24px)}
  .nbsx-footer__brand{grid-column:1/4}
  .nbsx-footer__news{grid-column:4/7}
  .nbsx-footer__col--programmes{grid-column:1/4}
  .nbsx-footer__col--students{grid-column:4/7}
  .nbsx-footer__row2{margin-top:56px}
}

/* ── mobile ≤700: stack in order contact · programmes · students · newsletter ── */
@media (max-width:700px){
  .nbsx-footer{padding:56px 0 32px}
  .nbsx-footer__grid{grid-template-columns:1fr;gap:36px}
  .nbsx-footer__brand,.nbsx-footer__col--programmes,.nbsx-footer__col--students,.nbsx-footer__news{grid-column:1}
  .nbsx-footer__field{flex-direction:column}
  .nbsx-footer__btn{width:100%}
  .nbsx-footer__row2{margin-top:44px;flex-direction:column;align-items:flex-start}
  .nbsx-footer__row3{flex-direction:column;align-items:flex-start;gap:12px}
  .nbsx-bar-active .nbsx-footer{padding-bottom:calc(32px + 56px + env(safe-area-inset-bottom,0px))}
}

/* ── reduced motion: nothing slides, nothing fades ───────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-footer__a,.nbsx-footer__input,.nbsx-footer__btn,.nbsx-footer__form.is-done .nbsx-footer__field{transition:none}
}
