/* assets/nbsx/pages/about-us.css — templates/about-us.php only.
   Loaded after core.css → pages.css → sections/{welcome,method,faculty,campus}.css,
   so it never has to fight anything: every selector below is namespaced
   .nbsx-about__* and no shared class (.nbsx-sec, .nbsx-pair, .nbsx-rows,
   .nbsx-link, .nbsx-media, .nbsx-btn) is restyled. Tokens come from .nbsx-sec.
   Transitions are transform / opacity / background-size only; no !important. */

/* ── hero ──────────────────────────────────────────────────────────────── *
   The legacy bundle (assets/css/main.min.css) still carries `h1{color:var(--clr-white)}`
   from the old particle hero, and pages.css sets no colour on .nbsx-pagehero__h1,
   so the page H1 would paint white on white. Fixed here for THIS page only —
   the selector is scoped by the page's own .nbsx-about__hero class, so nothing
   shared changes; the kit should set the colour on .nbsx-pagehero__h1 itself.
   The same bundle also carries `h1{text-transform:uppercase}` — §3.1 allows no
   uppercase headings, so both are neutralised on this page's H1. */
.nbsx-about__hero .nbsx-pagehero__h1{color:var(--fg);text-transform:none}

/* ── #director ─────────────────────────────────────────────────────────── */
.nbsx-about__dir-quote{margin:0;padding:0}
.nbsx-about__dir-text{margin:24px 0 0;font-weight:300;max-width:34ch;text-wrap:pretty}
.nbsx-about__dir-cite{margin:24px 0 0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.nbsx-about__dir-name{font-size:var(--t-title);font-weight:500;font-style:normal}
.nbsx-about__dir-role{font-size:var(--t-small);color:var(--muted)}
.nbsx-about__director .nbsx-pair__media{aspect-ratio:4/5;max-width:420px}

/* ── #values — four rows, full text, no truncation ─────────────────────── */
.nbsx-about__vrows{list-style:none;margin:48px 0 0;padding:0}
.nbsx-about__vrow{display:grid;grid-template-columns:72px minmax(0,1fr);gap:var(--gutter);
  padding:28px 0;border-top:1px solid var(--hair)}
.nbsx-about__vrow:last-child{border-bottom:1px solid var(--hair)}
.nbsx-about__vn{font-size:var(--t-num-m);font-weight:200;line-height:1;color:var(--muted);
  font-variant-numeric:tabular-nums}
.nbsx-about__vbody{min-width:0}
.nbsx-about__vtitle{margin:0;font-size:var(--t-row);font-weight:500;line-height:1.15;text-wrap:balance}
.nbsx-about__vdesc{margin:12px 0 0;font-size:var(--t-body);line-height:1.6;max-width:68ch;
  color:var(--muted);text-wrap:pretty}

/* ── #community — three photo + text pairs, then the contact line ──────── */
.nbsx-about__crow{margin-top:clamp(48px,6vw,88px)}
.nbsx-about__contact{margin-top:clamp(48px,6vw,88px);padding-top:32px;border-top:1px solid var(--hair);
  max-width:720px}
.nbsx-about__contact-h{margin:0}
.nbsx-about__contact-text{margin:12px 0 0;font-size:var(--t-body);line-height:1.6;color:var(--muted)}
.nbsx-about__contact-text a{color:var(--indigo);text-decoration:none;
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;
  transition:background-size .25s var(--ease)}
.nbsx-about__contact-text a:hover,.nbsx-about__contact-text a:focus-visible{background-size:100% 1px}
.nbsx-about__contact-text svg{width:16px;height:16px;vertical-align:-2px;margin-left:6px}

/* ── #faculty — the 23 professors, four columns ────────────────────────── */
.nbsx-about__grid{list-style:none;margin:48px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(24px,3vw,40px) var(--gutter)}
.nbsx-about__person{min-width:0;display:flex;flex-direction:column}
.nbsx-about__portrait{margin:0;aspect-ratio:1/1;width:100%;overflow:hidden;background:var(--warm)}
.nbsx-about__pimg{width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.nbsx-about__pname{margin:16px 0 0;font-size:var(--t-title);font-weight:500;line-height:1.2;text-wrap:balance}
.nbsx-about__roles{list-style:none;margin:8px 0 0;padding:0}
.nbsx-about__role{font-size:var(--t-small);line-height:1.45;color:var(--muted)}
.nbsx-about__role + .nbsx-about__role{margin-top:2px}
.nbsx-about__plogo{margin:14px 0 0;display:flex;align-items:center;min-height:28px}
.nbsx-about__plogo-img{max-width:104px;max-height:28px;width:auto;height:auto;object-fit:contain;
  filter:grayscale(1);opacity:.75;transition:filter .2s var(--ease),opacity .2s var(--ease)}
.nbsx-about__person:hover .nbsx-about__plogo-img{filter:grayscale(0);opacity:1}
.nbsx-about__plink{margin:12px 0 0}
.nbsx-about__plink svg{width:16px;height:16px}

/* ── #quality ──────────────────────────────────────────────────────────── */
.nbsx-about__qhead{align-items:start}
.nbsx-about__accreds{list-style:none;margin:48px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gutter)}
.nbsx-about__accred{display:flex;flex-direction:column;gap:20px;padding-top:24px;border-top:1px solid var(--hair)}
.nbsx-about__accred-media{margin:0;aspect-ratio:16/9;display:flex;align-items:center;justify-content:flex-start}
.nbsx-about__accred-img{max-width:200px;max-height:100%;width:auto;height:auto;object-fit:contain}
.nbsx-about__accred-text{font-size:var(--t-body);line-height:1.6;color:var(--muted);text-wrap:pretty}
.nbsx-about__accred-text a{color:var(--indigo);text-decoration:none;
  background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 1px;
  transition:background-size .25s var(--ease)}
.nbsx-about__accred-text a:hover,.nbsx-about__accred-text a:focus-visible{background-size:100% 1px}
.nbsx-about__logos{list-style:none;margin:clamp(40px,5vw,64px) 0 0;padding:0;
  display:flex;flex-wrap:wrap;align-items:center;gap:clamp(24px,4vw,56px)}
.nbsx-about__logo{display:flex;align-items:center}
.nbsx-about__logo-img{max-width:132px;max-height:48px;width:auto;height:auto;object-fit:contain;
  filter:grayscale(1);opacity:.7;transition:filter .2s var(--ease),opacity .2s var(--ease)}
.nbsx-about__logo:hover .nbsx-about__logo-img{filter:grayscale(0);opacity:1}

/* ── journal & podcasts ────────────────────────────────────────────────── */
.nbsx-about__jlist{margin:32px 0 0}
/* the ruled row is the <a> inside each <li>, so core's :last-child bottom rule
   would fire on every row — the closing hairline belongs to the last one only.
   (Own class, own elements: nothing shared is restyled.) */
.nbsx-about__jrow{border-bottom:0}
.nbsx-about__jlist > li:last-child .nbsx-about__jrow{border-bottom:1px solid var(--hair)}
.nbsx-about__jmore{margin:32px 0 0;display:flex;flex-wrap:wrap;gap:16px 32px}

/* ── tablet ────────────────────────────────────────────────────────────── */
@media (max-width:1024px){
  .nbsx-about__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nbsx-about__accreds{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nbsx-about__director .nbsx-pair__media{max-width:none}
}

/* ── mobile ────────────────────────────────────────────────────────────── */
@media (max-width:700px){
  .nbsx-about__vrow{grid-template-columns:48px minmax(0,1fr);gap:16px;padding:20px 0}
  .nbsx-about__vn{font-size:20px}
  .nbsx-about__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
  .nbsx-about__accreds{grid-template-columns:minmax(0,1fr);gap:32px}
  .nbsx-about__logos{gap:24px}
  .nbsx-about__logo-img{max-width:104px;max-height:40px}
  .nbsx-about__dir-text{max-width:none}
  .nbsx-about__crow,.nbsx-about__contact{margin-top:48px}
}

/* ── reduced motion: nothing but the paint states remain ───────────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-about__plogo-img,.nbsx-about__logo-img,
  .nbsx-about__contact-text a,.nbsx-about__accred-text a{transition:none}
}
