/* NISMCAA sitewide fixes (additive): contrast + mobile layout */
.academy-header nav a:not(.active){color:#14254a}

/* Dec 2 2026: inactive header nav hover/focus uses white text on the dark #263d60 pill (WCAG contrast). */
.academy-header nav a:not(.active):not(.nism-tutor-nav):hover,
.academy-header nav a:not(.active):not(.nism-tutor-nav):focus-visible{color:#ffffff!important}
.academy-header .brand small,.brand small{color:#14254a!important;font-weight:700}
html,body{max-width:100%;overflow-x:hidden}
#main img,#main video,#main iframe,#main canvas{max-width:100%}
#main table{display:block;max-width:100%;overflow-x:auto}
#nma-support{max-width:760px;margin:24px auto}
#nma-support .primary{display:inline-block;margin:6px 10px 6px 0}
#nma-enroll-intro p{font-size:1.05rem;line-height:1.6;margin:0 0 12px}
@media(max-width:760px){
 #academy-menu-toggle{display:inline-flex!important;align-items:center;gap:6px;min-height:44px}
 .academy-header nav:not(.is-open){display:none!important}
 .academy-header nav.is-open a{white-space:normal;overflow:visible;text-overflow:clip}
 .topbar{flex-wrap:wrap;gap:6px;padding:6px 12px}
 .topbar .top-actions{display:flex;flex-wrap:wrap;gap:6px}
 .topbar .top-actions>*{font-size:.8rem;padding:6px 10px;min-height:36px}
 #location{font-size:.85rem}
}

/* Academy logo mark in header (Nov 9 2026) — reversible: remove this block + restore ♫ in index.html */
.academy-header .brand-mark{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  width:auto;height:40px;padding:2px 6px;overflow:visible;
  border-radius:0;transform:none;background:transparent;border:0;
  box-shadow:none;
}
.academy-header .brand-mark img{width:auto;height:36px;max-width:180px;display:block;object-fit:contain}
@media(max-width:760px){
  .academy-header .brand-mark{display:inline-flex!important;width:auto;height:auto;padding:0}
  .academy-header .brand-mark img{width:auto;height:37px;max-width:160px}
}
.nma-nigeria-note{margin:16px 0;padding:12px 16px;border:1px solid #d4dfef;border-radius:12px;background:#f7fafc;max-width:760px;color:#14254a;font:500 15px/1.5 system-ui,Segoe UI,sans-serif}
.nma-nigeria-note strong{display:block;color:#173b89;font-weight:800;margin-bottom:4px}

/* Keep Academy home logo from stretching full width under #main img{max-width:100%} */
#main .nma-about-logo img{max-width:640px!important;width:auto;max-height:220px;height:auto;margin-left:auto;margin-right:auto}
@media(max-width:480px){#main .nma-about-logo img{max-width:100%!important;max-height:140px}}

/* Home-page Founder section at the bottom (Nov 9, 8:53 PM ET correction) */
.nma-home-founder{margin:28px auto 8px;max-width:760px;padding:16px;border-radius:14px;background:#f7fafc;border:1px solid #d4dfef;display:grid;gap:12px;align-items:center}
@media(min-width:560px){.nma-home-founder{grid-template-columns:120px 1fr}}
.nma-home-founder img{width:120px;height:120px;object-fit:cover;object-position:center top;border-radius:50%;display:block;margin:0 auto;border:3px solid #ffcf42}
.nma-home-founder h2{margin:0 0 6px;font-size:1rem}
.nma-home-founder p{margin:0;font-size:.95rem;color:#314866}
.nma-home-founder blockquote{margin:8px 0 0;font-style:italic;font-size:.92rem;color:#3a4f6d}

/* iPhone / small screens: keep the Academy header from cramming Play Piano, Menu, and Subscribe on one row. */
.school-mobile-play{display:none!important}
@media (max-width:1100px){
  #academy-menu-toggle{display:inline-flex!important;align-items:center;gap:6px;min-height:44px;margin-left:auto}
  #academy-menu-toggle span{display:inline!important}
  .academy-header{display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;grid-template-columns:none}
  .academy-header .brand{margin-right:0;min-width:0}
  .academy-header .brand-mark{display:inline-flex!important}
  .academy-header nav{flex-basis:auto}
  .academy-header nav:not(.is-open){display:none!important}
  .academy-header nav.is-open{
    display:flex!important;
    flex-direction:column;
    order:4;
    flex-basis:100%;
    gap:0;
    padding:6px 0 8px;
  }
  .academy-header nav.is-open a{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    width:100%;
    padding:12px 8px;
    border-bottom:1px solid #e6edf7;
    font-size:1rem;
  }
}

/* Shared footer link menu: do not inherit sidebar nav a { color:#d8e2f1; padding:14px 16px }.
   Those sidebar styles made footer links nearly invisible (~1.2:1 on the light page) and very tall.
   Selectors include .academy-layout so they override academy.css `.academy-layout footer .footer-links`. */
.academy-layout footer .footer-links,
footer nav.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  width:100%;
  max-width:100%;
  opacity:1;
}
.academy-layout footer .footer-links a,
footer nav.footer-links a{
  color:#14254a;
  opacity:1;
  visibility:visible;
  filter:none;
  background:transparent;
  display:inline-flex;
  align-items:center;
  box-sizing:border-box;
  min-height:44px;
  padding:8px 4px;
  margin:0;
  font-size:.95rem;
  font-weight:700;
  line-height:1.3;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
  overflow-wrap:break-word;
}
.academy-layout footer .footer-links a:hover,
.academy-layout footer .footer-links a:focus-visible,
footer nav.footer-links a:hover,
footer nav.footer-links a:focus-visible{
  color:#14254a;
  background:#e7eef8;
}
@media(max-width:760px){
  .academy-layout footer .footer-links,
  footer nav.footer-links{
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:16px;
    row-gap:8px;
    width:100%;
  }
  .academy-layout footer .footer-links a,
  footer nav.footer-links a{
    width:100%;
    min-height:44px;
    padding:10px 4px;
  }
}

/* Phone tap targets (27 Nov 2026 journey audit): primary call-to-action links such as the membership
   "Subscribe now" buttons rendered as 21px-tall inline text on a 390px phone. Make every primary link
   in the app a full-size button (44px minimum) without changing its colours. */
#main a.primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:14px;text-decoration:none;line-height:1.2;box-sizing:border-box}
#main .school-plans a.primary{display:flex;width:100%;min-height:48px;margin-top:8px;color:#fff;font-weight:800;font-size:1.05rem}

/* Nov 30 2026: John's rule - the Academy logo is never in a box; it sits on the header background on every route, like Home. No duplicate brand text beside it. */
.academy-header .brand-mark,.academy-header .brand-mark img{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.academy-header .brand-mark{padding:0!important}
.academy-header .brand:has(.brand-mark img)>span:not(.brand-mark){display:none!important}
.academy-header .brand:has(.brand-mark img){background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;height:auto!important}

/* Publisher line for Apple App Store organization disclosure (2 Dec 2026). */
.academy-layout footer .footer-publisher,
footer .footer-publisher{
  margin:12px 0 8px;
  font-size:.95rem;
  line-height:1.45;
  color:#14254a;
  max-width:100%;
  overflow-wrap:anywhere;
}
.academy-layout footer .footer-publisher a,
footer .footer-publisher a{
  color:#14254a;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}




/* Dec 2 2026: keep every header nav link fully visible at laptop widths (Tiana 1280px nit).
   The front-page header already fits in one row; this targets every other route. */
@media (min-width: 1101px) and (max-width: 1440px){
  body:not(:has(.fp-hero)) .academy-header{gap:8px 12px;padding-left:16px;padding-right:16px;min-width:0;max-width:100%;box-sizing:border-box}
  body:not(:has(.fp-hero)) .academy-header .brand{flex:0 0 auto;min-width:0}
  body:not(:has(.fp-hero)) .academy-header .brand-mark img{width:140px!important;max-width:140px!important;height:auto!important}
  body:not(:has(.fp-hero)) .academy-header nav{flex:1 1 0;min-width:0;max-width:100%;flex-wrap:wrap;gap:4px 8px;justify-content:flex-end}
  body:not(:has(.fp-hero)) .academy-header nav a{font-size:.78rem;padding:6px 6px;line-height:1.2;white-space:nowrap}
  body:not(:has(.fp-hero)) .academy-header nav a.nism-tutor-nav{padding:6px 10px;min-height:36px}
  body:not(:has(.fp-hero)) .academy-header>.enroll-top{flex:0 0 auto;padding:8px 12px;font-size:.8rem}
}
