/* Front page redesign (preview-frontpage-1128): cream background, white rounded header, navy headline, pastel tiles. Scoped to the home view only. */
body:has(.fp-hero){background:#fff8e8}
body:has(.fp-hero) .main-wrap{background:transparent}
/* header card */
body:has(.fp-hero) .academy-header{background:#fff;border:1px solid #efe3c3;border-radius:22px;margin:12px 12px 0;padding:10px 16px;box-shadow:0 6px 18px -12px rgba(23,41,71,.35);gap:12px}
body:has(.fp-hero) .academy-header .brand{max-width:none}
body:has(.fp-hero) .academy-header .brand>span:last-child{display:none}
body:has(.fp-hero) .academy-header .brand-mark{width:auto;height:auto;background:none;border-radius:0;transform:none;display:block}
body:has(.fp-hero) .academy-header .brand-mark img{display:block;width:170px;height:auto;max-width:44vw}
/* tools row (Sound off / Aa) sits right under the header card */
body:has(.fp-hero) .topbar{height:auto;background:transparent;border:0;padding:10px 20px 0;flex-wrap:wrap;gap:6px 10px}
body:has(.fp-hero) .topbar #location{display:none}
body:has(.fp-hero) .topbar .top-actions{flex-wrap:wrap;gap:8px;margin-left:auto}
body:has(.fp-hero) .topbar .top-actions #settings{order:3;background:transparent;color:#182947;border-color:#d9c98f;width:auto}
body:has(.fp-hero) .topbar .top-actions #active-learner{order:4;font-size:.85rem;color:#182947;align-self:center}
body:has(.fp-hero) .topbar .top-actions #sound{order:1;background:#fff;color:#182947;border-color:#d9c98f;border-radius:14px}
body:has(.fp-hero) .topbar .top-actions #text{order:2;background:#fff3c4;color:#182947;border-color:#e3c35a;border-radius:14px}
body:has(.fp-hero) main{padding-top:10px}
/* hero */
.academy-home-hero.fp-hero{background:transparent;border:0;border-radius:0;padding:8px 6px 4px;margin:0 auto 18px;max-width:760px;text-align:left;overflow:visible}
.nma-home-enriched .academy-home-hero.fp-hero{overflow:visible}
.fp-hero .nma-hero-motion{display:none}
.fp-hero h1.fp-title{font-family:Manrope,Arial,sans-serif;font-size:clamp(1.5rem,.9rem + 3.7vw,2.25rem);line-height:1.22;letter-spacing:-.03em;color:#173b89;font-weight:800;margin:10px 0 12px;max-width:none}
.fp-title-text{display:inline-block;position:relative;max-width:100%;text-align:left}
.fp-quote{color:#d4a017;font-family:Georgia,"Palatino Linotype",Palatino,"Times New Roman",Times,serif;font-weight:600;font-size:1.28em;line-height:1;letter-spacing:0;font-style:normal}
.fp-quote--open{position:absolute;right:100%;top:-0.06em;padding-right:.05em}
.fp-quote--close{display:inline-block;width:0;overflow:visible;vertical-align:-0.02em;margin-left:.04em}
.large-text .fp-hero h1.fp-title{font-size:clamp(1.7rem,1.05rem + 3.9vw,2.5rem)}
.fp-hero .fp-sub{font-size:1.08rem;line-height:1.5;color:#182947;margin:0 0 18px;max-width:34em}
.fp-hero .fp-cta{display:flex;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;width:100%;min-height:60px;padding:14px 22px;border-radius:999px;background:#173b89;color:#fff;font-weight:800;font-size:1.15rem;text-decoration:none;box-shadow:0 5px 0 #0d2559}
.fp-hero .fp-cta:hover{filter:brightness(1.08)}
.fp-hero .fp-cta-arrow{color:#ffcf42;font-size:1.35rem;line-height:1}
.fp-hero .fp-note{margin:12px 0 16px;text-align:center;color:#182947;font-size:.95rem}
.fp-hero a:focus-visible{outline:3px solid #eead00;outline-offset:3px}
.fp-hero .fp-strip{margin:0 0 16px;border-radius:24px;overflow:hidden;box-shadow:0 0 0 3px #ffcf42,0 14px 28px -16px rgba(23,59,137,.45)}
.fp-hero .fp-strip img{width:100%;height:auto;aspect-ratio:809/417;object-fit:cover;display:block}
/* tiles */
.fp-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
.fp-tile{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;box-sizing:border-box;min-height:118px;padding:16px 14px;border-radius:22px;border:2px solid transparent;color:#173b89;text-decoration:none;overflow-wrap:anywhere}
.fp-tile svg{width:44px;height:44px;flex:none}
.fp-tile strong{font-family:Manrope,Arial,sans-serif;font-size:1.05rem;line-height:1.2;color:#173b89}
.fp-tile small{font-size:.88rem;font-weight:600;line-height:1.3;color:#182947}
.fp-tile:hover{filter:brightness(.97);transform:translateY(-1px)}
.fp-tile:focus-visible{outline:3px solid #173b89;outline-offset:3px}
.fp-green{background:#d9f2e0;border-color:#b6e0c3}
.fp-peach{background:#ffe2cf;border-color:#f6c6a8}
.fp-lav{background:#e6defa;border-color:#cdbff0}
.fp-yellow{background:#ffeaa3;border-color:#f3d36a}
.fp-crescendo{grid-column:1/-1;flex-direction:row;align-items:center;gap:14px;min-height:92px;background:#173b89;border-color:#ffcf42}
.fp-crescendo .fp-tile-text{display:flex;flex-direction:column;gap:3px}
.fp-crescendo strong{color:#ffcf42;font-size:1.15rem}
.fp-crescendo small{color:#fff}
.fp-crescendo svg{width:48px;height:48px}
/* YouTube bar */
.fp-yt{display:flex;align-items:center;gap:14px;box-sizing:border-box;padding:14px 16px;border-radius:22px;background:#fffaf0;border:2px solid #e0b93f;text-decoration:none;color:#173b89;margin:0 0 6px}
.fp-yt-play{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#ffcf42}
.fp-yt-play svg{width:24px;height:24px;margin-left:2px}
.fp-yt-text{display:flex;flex-direction:column}
.fp-yt strong{font-family:Manrope,Arial,sans-serif;font-size:1.08rem;color:#173b89}
.fp-yt small{font-size:.9rem;font-weight:600;color:#182947}
.fp-yt:hover{filter:brightness(.98)}
@media(min-width:900px){
 body:has(.fp-hero) .academy-header{margin:16px 24px 0;padding:10px 20px}
 body:has(.fp-hero) .academy-header .brand{flex:none}
 body:has(.fp-hero) .academy-header .brand-mark img{width:150px}
 body:has(.fp-hero) .topbar{padding:10px 36px 0}
 .academy-home-hero.fp-hero{max-width:860px}
 .fp-hero h1.fp-title{text-align:center}
 .fp-hero .fp-sub{margin-left:auto;margin-right:auto;text-align:center}
 .fp-hero .fp-cta{width:auto;max-width:460px;margin:0 auto}
 .fp-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
 .fp-crescendo{grid-column:1/-1}
}
@media(max-width:380px){.fp-tile{padding:14px 12px}.fp-tile strong{font-size:1rem}}
/* header fit + logo box */
body:has(.fp-hero) .academy-header .brand{flex:1 1 auto;min-width:0}
body:has(.fp-hero) .academy-header .brand-mark{border:0;box-shadow:none;padding:0;margin:0;background:transparent}
body:has(.fp-hero) .academy-header .brand-mark img{border:0;box-shadow:none;border-radius:0}
.fp-tile{justify-content:flex-start}
@media(max-width:760px){
 body:has(.fp-hero) .academy-header{padding:8px 10px;gap:8px}
 body:has(.fp-hero) .academy-header .brand-mark img{width:150px;max-width:100%}
 body:has(.fp-hero) .academy-header #academy-menu-toggle{padding:8px 12px;min-height:44px;flex:none;font-size:1.15rem}
 body:has(.fp-hero) .academy-header #academy-menu-toggle span{display:none}
 body:has(.fp-hero) .academy-header>.enroll-top{flex:none;padding:10px 12px;min-height:44px;display:flex;align-items:center}
}
body:has(.fp-hero) .topbar .top-actions{justify-content:flex-end;width:100%;margin-left:0}
body:has(.fp-hero) .topbar .top-actions button{width:auto;min-height:44px}
@media(min-width:1200px){body:has(.fp-hero) .academy-header nav a{white-space:nowrap}}
@media(max-width:760px){
 body:has(.fp-hero) .academy-header{margin:8px 8px 0;padding:8px 10px}
 body:has(.fp-hero) .academy-header:has(#academy-menu-toggle[aria-expanded="false"]){flex-wrap:nowrap}
 body:has(.fp-hero) .academy-header .brand-mark img{width:128px}
 body:has(.fp-hero) .academy-header #academy-menu-toggle{padding:8px 10px;font-size:1rem;white-space:nowrap}
 body:has(.fp-hero) .academy-header>.enroll-top{padding:10px;font-size:.85rem;white-space:nowrap}
}

/* Sound off + Aa sit on a second row of the white header card. */
body:has(.fp-hero) .academy-header{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:0;border-bottom-color:transparent;box-shadow:none}
body:has(.fp-hero) .topbar{position:relative;background:transparent;border:0;margin:0 12px;padding:0 12px 8px;height:auto;justify-content:flex-start}
body:has(.fp-hero) .topbar::before{content:"";position:absolute;left:0;right:0;top:0;height:54px;background:#fff;border:1px solid #efe3c3;border-top:0;border-radius:0 0 22px 22px;box-shadow:0 6px 18px -12px rgba(23,41,71,.35);pointer-events:none;z-index:0}
body:has(.fp-hero) .topbar .top-actions{position:relative;z-index:1;width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:4px 4px 0;justify-content:flex-start}
body:has(.fp-hero) .topbar .top-actions #sound{order:1;background:#fff;color:#182947;border-color:#d9c98f;border-radius:14px}
body:has(.fp-hero) .topbar .top-actions #text{order:2;background:#fff3c4;color:#182947;border-color:#e3c35a;border-radius:14px}
body:has(.fp-hero) .topbar .top-actions #settings{order:3;background:transparent;color:#182947;border-color:#d9c98f;width:auto}
body:has(.fp-hero) .topbar .top-actions #active-learner{order:4;flex-basis:100%;margin-top:16px;font-size:.85rem;color:#182947;padding:8px 10px;max-width:max-content}
body:has(.fp-hero) .topbar #location{display:none}
body:has(.fp-hero) .academy-header:has(nav.is-open),
body:has(.fp-hero) .academy-header:has(#academy-menu-toggle[aria-expanded="true"]){border-radius:22px;border-bottom-color:#efe3c3}
body:has(.fp-hero):has(nav.is-open) .topbar::before,
body:has(.fp-hero):has(#academy-menu-toggle[aria-expanded="true"]) .topbar::before{display:none}
@media(max-width:760px){
 body:has(.fp-hero) .topbar{margin:0 8px;padding:0 10px 8px}
}
@media(min-width:900px){
 body:has(.fp-hero) .academy-header{margin:16px 24px 0}
 body:has(.fp-hero) .topbar{margin:0 24px;padding:0 16px 8px}
 body:has(.fp-hero) .topbar .top-actions{justify-content:flex-end}
}

/* Fun Zone + instrument cards (John's 04–06 designs). Home only. */
body:has(.fp-hero) .fz-home-card{margin:8px 0 22px;padding:16px 18px;min-height:96px;border:3px solid #d4a017;border-radius:22px;background:#015c3e;box-shadow:none;gap:14px;color:#fff!important}
body:has(.fp-hero) .fz-home-card .fz-hc-ic{flex:0 0 64px;width:64px;height:64px}
body:has(.fp-hero) .fz-home-card .fz-hc-t strong{font-size:1.55rem;color:#ffcf42}
body:has(.fp-hero) .fz-home-card .fz-hc-t small{font-size:.98rem;line-height:1.3;color:#fff;font-weight:600}
body:has(.fp-hero) .fz-home-card .fz-hc-go{font-size:2rem;color:#ffcf42}
body:has(.fp-hero) .choose-instrument{margin:8px 0 24px}
body:has(.fp-hero) .choose-instrument h2{font-family:Manrope,Arial,sans-serif;color:#173b89;font-size:clamp(1.6rem,6vw,2.1rem);margin:0 0 10px;letter-spacing:-.02em}
body:has(.fp-hero) .choose-instrument>p{color:#182947;font-size:1.02rem;line-height:1.5;margin:0 0 16px}
body:has(.fp-hero) .choose-instrument .choose-instrument-grid.school-instruments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile{display:flex!important;flex-direction:column;align-items:flex-start;text-align:left;grid-template-columns:none;gap:0;padding:10px 10px 16px;min-height:0;background:#fff;border:2.5px solid #e0b93f;border-radius:22px;color:#173b89;text-decoration:none;box-shadow:none}
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile:hover,
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile:focus-visible{transform:translateY(-2px);box-shadow:0 10px 22px rgba(23,59,137,.12);border-color:#c9a017}
body:has(.fp-hero) .choose-instrument .fp-inst-photo{display:block;width:100%;border-radius:16px;overflow:hidden;background:#f4f0e6;margin:0 0 12px}
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile img,
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile .fp-inst-photo img{width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:cover;object-position:center;border-radius:0;background:transparent;grid-row:auto;display:block}
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile strong{font-family:Manrope,Arial,sans-serif;font-size:1.12rem;line-height:1.25;color:#173b89;padding:0 6px;margin:0 0 4px}
body:has(.fp-hero) .choose-instrument .school-instruments .instrument-tile small{display:block;font-size:.88rem;font-weight:600;color:#3a4660;padding:0 6px 10px}
body:has(.fp-hero) .choose-instrument .school-instruments .school-badge{background:#f3e0a6;color:#173b89;border-radius:999px;padding:6px 12px;font-size:.78rem;font-weight:750;margin:0 6px;justify-self:start;white-space:nowrap}
body:has(.fp-hero) .choose-instrument .school-instruments .school-badge.free{background:#f3e0a6;color:#173b89}
@media(min-width:900px){
 body:has(.fp-hero) .choose-instrument .choose-instrument-grid.school-instruments{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:860px;margin:0 auto}
 body:has(.fp-hero) .choose-instrument{max-width:860px;margin-left:auto;margin-right:auto}
 body:has(.fp-hero) .fz-home-card{max-width:860px;margin-left:auto;margin-right:auto}
}
body:has(.fp-hero) .choose-instrument .instrument-tile[href="#instrument/inclusive"] .fp-inst-photo img{aspect-ratio:3/4;object-fit:contain;background:#fff8e6}


/* Dec 2 2026: give the logo its width at laptop sizes so Home/Courses are not hidden under it. */
@media (min-width: 1101px) and (max-width: 1440px){
  body:has(.fp-hero) .academy-header .brand{flex:0 0 auto;min-width:0}
  body:has(.fp-hero) .academy-header nav{flex:1 1 0;min-width:0;flex-wrap:wrap;gap:4px 8px;justify-content:flex-end}
  body:has(.fp-hero) .academy-header nav a{font-size:.78rem;padding:6px 6px;line-height:1.2;white-space:nowrap}
  body:has(.fp-hero) .academy-header nav a.nism-tutor-nav{padding:6px 10px;min-height:36px}
  body:has(.fp-hero) .academy-header>.enroll-top{flex:0 0 auto}
}


/* Dec 2 2026: inactive header nav hover/focus uses white text on the dark #263d60 pill (WCAG contrast). */
body:has(.fp-hero) .academy-header nav a:not(.active):not(.nism-tutor-nav):hover,
body:has(.fp-hero) .academy-header nav a:not(.active):not(.nism-tutor-nav):focus-visible{color:#ffffff!important}
