/* NISMCAA Music Academy: redesigned Tests & Certificates page (body.ts-active). Cream, navy and gold. */
body.ts-active{
  --ts-navy:#14275e;
  --ts-navy2:#1d3f9b;
  --ts-gold:#d9a93a;
  --ts-gold2:#f3cf6b;
  --ts-cream:#fbf7ee;
  --ts-line:#eee2c4;
  background:var(--ts-cream);
  color:var(--ts-navy);
  overflow-x:hidden;
}
body.ts-active .app,
body.ts-active .main-wrap,
body.ts-active #main,
body.ts-active .academy-layout{
  background:var(--ts-cream);
  max-width:100%;
  min-width:0;
}
body.ts-active #main{padding-top:0;max-width:1080px}
body.ts-active .academy-header{background:var(--ts-cream);border-bottom:0;padding:10px 16px 4px}
body.ts-active .academy-header .brand{background:none;border:0;box-shadow:none;padding:0;color:var(--ts-navy)}
body.ts-active .academy-header .brand>span:not(.brand-mark){display:none}
body.ts-active .brand-mark{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;transform:none!important;padding:0!important;width:auto!important;height:auto!important}
body.ts-active .brand-mark img{height:auto!important;width:176px!important;max-width:48vw!important;border:0;box-shadow:none;border-radius:0;background:transparent}
body.ts-active #academy-menu-toggle>span{display:none!important}
body.ts-active #academy-menu-toggle{font-size:1.6rem;margin-left:auto;min-width:44px;min-height:44px;padding:0 6px;background:transparent;border:0;box-shadow:none;color:var(--ts-navy)}
body.ts-active .academy-header>.enroll-top{background:linear-gradient(180deg,var(--ts-gold2),var(--ts-gold));color:var(--ts-navy);border:0;border-radius:999px;padding:9px 16px;box-shadow:0 4px 10px -6px rgba(140,100,20,.7)}
body.ts-active .topbar{background:var(--ts-cream);border:0;box-shadow:none;padding:2px 16px;min-height:0}
body.ts-active .topbar #location{display:none}
body.ts-active .topbar .top-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;width:100%}
body.ts-active .topbar .top-actions>*{font-size:.8rem;padding:6px 10px;min-height:36px;border-radius:999px;background:#fff;border:1px solid var(--ts-line);width:auto;color:var(--ts-navy)}
body.ts-active .academy-header nav a.active,
body.ts-active .academy-header a.active[data-nav]{background:var(--ts-navy)!important;color:#fff!important;border-radius:999px}

body.ts-active .ts-page a.primary,
body.ts-active .ts-page button.primary,
body.ts-active .ts-start{
  background:linear-gradient(180deg,var(--ts-gold2),var(--ts-gold));
  color:var(--ts-navy)!important;
  border:0;
  border-radius:999px;
  box-shadow:0 4px 10px -6px rgba(140,100,20,.7);
  font-weight:800;
  text-decoration:none;
  text-align:center;
  white-space:nowrap;
}
body.ts-active .ts-page a.primary:hover,
body.ts-active .ts-start:hover{filter:brightness(1.04)}

.ts-page{max-width:100%;min-width:0;color:var(--ts-navy)}
.ts-hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr);
  align-items:center;
  gap:8px 12px;
  margin:0 0 16px;
  min-width:0;
}
.ts-hero-copy{min-width:0}
.ts-eyebrow{margin:0 0 4px;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--ts-navy)}
.ts-hero h1{margin:0 0 8px;color:var(--ts-navy);font-weight:800;letter-spacing:-.04em;line-height:1.08;font-size:clamp(1.55rem,6.2vw,2.55rem)}
.ts-sub{margin:0 0 12px;color:#3a4a72;font-size:.92rem;line-height:1.4;max-width:46ch}
.ts-pace{display:inline-block;background:linear-gradient(180deg,var(--ts-gold2),var(--ts-gold));color:var(--ts-navy);font-weight:800;font-size:.82rem;border-radius:999px;padding:8px 14px;box-shadow:0 4px 10px -6px rgba(140,100,20,.7)}
.ts-hero-art{min-width:0;align-self:end}
.ts-hero-art img{display:block;width:100%;height:auto;max-height:18vh;object-fit:contain;object-position:right center;background:transparent;border:0}

.ts-featured{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 22px}
.ts-feature{
  background:#fff8e8;
  border:1px solid #ead7a0;
  border-radius:18px;
  padding:16px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:
    "icon copy"
    "actions actions";
  align-items:start;
  gap:12px 16px;
  min-width:0;
}
.ts-feature.ts-int{background:#f4f0ff;border-color:#ddd3f2}
.ts-feature-icon{
  grid-area:icon;
  flex:none;
  width:72px;height:72px;
  display:flex;align-items:center;justify-content:center;
  background:#fff;
  border:1px solid var(--ts-line);
  border-radius:14px;
  overflow:hidden;
}
.ts-feature-icon img,
body.ts-active #main .ts-feature-icon img{
  width:64px;height:64px;max-width:64px!important;max-height:64px;
  object-fit:contain!important;object-position:center;display:block;
}
.ts-feature-copy{grid-area:copy;min-width:0}
.ts-feature-copy h2{margin:0 0 6px;font-size:1.15rem;color:var(--ts-navy);font-weight:800}
.ts-feature-copy p{margin:0;color:#3a4a72;font-size:.9rem;line-height:1.4}
body.ts-active .ts-feature-actions, .ts-feature-actions{grid-area:actions;display:flex;flex-wrap:wrap;gap:8px;width:100%}
body.ts-active .ts-feature-actions a.ts-start,
body.ts-active .ts-feature-actions a.primary{
  display:inline-block;padding:9px 16px;min-height:40px;font-size:.88rem;
}
body.ts-active .ts-feature-actions a.ts-secondary{
  display:inline-block;
  background:#fff;
  color:var(--ts-navy);
  border:1.5px solid var(--ts-navy2);
  border-radius:999px;
  padding:9px 14px;
  min-height:40px;
  font-weight:800;
  font-size:.86rem;
  text-decoration:none;
  white-space:nowrap;
}
.ts-cert-badge{
  display:none;
  grid-area:badge;
  flex:none;
  width:72px;height:72px;
  border-radius:14px;
  background:#fff;
  border:1.5px solid var(--ts-gold);
  flex-direction:column;align-items:center;justify-content:center;
  color:var(--ts-navy);font-weight:800;font-size:.58rem;text-align:center;letter-spacing:.04em;
  text-transform:uppercase;
}
.ts-cert-badge span{font-size:1.4rem;line-height:1;color:var(--ts-gold);margin-bottom:2px}

.ts-heading{margin:4px 0 12px;color:var(--ts-navy);font-size:1.35rem;font-weight:800}
body.ts-active .ts-grid,
body.ts-active .test-hub-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
body.ts-active .ts-card,
body.ts-active .test-hub-grid .teacher-panel{
  background:#fff;
  border:1px solid var(--ts-line);
  border-radius:16px;
  box-shadow:0 8px 20px -16px rgba(20,39,94,.4);
  margin:0;
  overflow:hidden;
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:14px;
  padding:12px 14px;
  min-width:0;
}
body.ts-active #main .ts-photo,
body.ts-active .ts-photo,
body.ts-active .ts-card img{
  width:88px;height:88px;max-width:88px!important;max-height:88px;
  flex:none;object-fit:contain!important;object-position:center;
  background:#fff;padding:4px;border:1px solid var(--ts-line);border-radius:12px;display:block;
}
.ts-info{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
body.ts-active .ts-card h3{margin:0;font-size:1rem;line-height:1.25;color:var(--ts-navy);font-weight:800}
.ts-meta{margin:0;color:#546277;font-size:.82rem;line-height:1.35}
.ts-passed{color:var(--ts-navy);font-weight:800}
body.ts-active .ts-card a.ts-start,
body.ts-active .ts-card a.primary{
  display:inline-block;margin-top:4px;padding:8px 16px;min-height:36px;font-size:.86rem;white-space:nowrap;
}
.ts-placeholder{
  width:88px;height:88px;flex:none;border-radius:12px;border:1px solid var(--ts-line);
  background:#fffaf0;display:flex;align-items:center;justify-content:center;
  color:var(--ts-gold);font-size:2rem;line-height:1;
}
.ts-note{margin:22px 0 8px;font-size:.8rem;color:#546277;line-height:1.45}
.ts-note a{color:var(--ts-navy);font-weight:800}
body.ts-active .ts-teacher{
  margin:22px 0 8px;background:#fff;border:1px solid var(--ts-line);border-radius:16px;padding:12px 14px;
}
body.ts-active .ts-teacher summary{font-weight:800;color:var(--ts-navy);cursor:pointer;padding:4px 0}

@media(min-width:721px){
  .ts-feature.ts-int{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:
      "icon copy badge"
      "actions actions actions";
  }
  .ts-cert-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;}
  body.ts-active .ts-grid,
  body.ts-active .test-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  body.ts-active #main .ts-photo,
  body.ts-active .ts-photo,
  body.ts-active .ts-card img{width:104px;height:104px;max-width:112px!important;max-height:104px}
  .ts-placeholder{width:104px;height:104px}
  body.ts-active .ts-card h3{font-size:1.05rem}
  .ts-feature{padding:18px 20px}
}
@media(min-width:760px){
  .ts-hero{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;margin-bottom:18px}
  .ts-hero h1{font-size:clamp(2.2rem,4vw,3rem)}
  .ts-hero-art img{max-height:22vh}
  .ts-sub{font-size:1.02rem}
}
@media(min-width:1100px){
  .ts-hero-art img{max-height:240px}
}
@media(max-width:720px){
  body.ts-active #main{padding-left:14px;padding-right:14px}
  body.ts-active .ts-grid,
  body.ts-active .test-hub-grid{grid-template-columns:1fr;gap:12px}
  .ts-hero h1{font-size:1.5rem}
  .ts-sub{font-size:.82rem}
}
