
/* HAI VU PRACTICE HUB V14
   Piano Practice + Ear Training
   Institutional – Academic – Premium
*/

.hv14-tabs-wrap{
  border-bottom:1px solid rgba(24,56,79,.08);
  background:#fff;
}
.hv14-tabs{
  width:min(1180px,calc(100% - 48px));
  min-height:58px;
  margin-inline:auto;
  display:flex;
  align-items:flex-end;
  gap:28px;
  overflow-x:auto;
}
.hv14-tabs a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:58px;
  padding:0 2px;
  color:#6a7b86;
  text-decoration:none;
  white-space:nowrap;
  font-size:14px;
  font-weight:560;
}
.hv14-tabs a.active{
  color:#18384f;
  font-weight:620;
}
.hv14-tabs a.active::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:2px;
  background:#9a7040;
}

/* Compact the piano page so the instrument appears much earlier. */
body .hvp2-hero{
  padding:46px 0 34px!important;
}
body .hvp2-hero h1{
  max-width:780px!important;
  margin-bottom:14px!important;
  font-size:clamp(38px,3.6vw,48px)!important;
  line-height:1.1!important;
  letter-spacing:-.03em!important;
}
body .hvp2-hero p{
  max-width:820px!important;
  font-size:16px!important;
  line-height:1.65!important;
}
body .hvp2-section{
  padding-top:32px!important;
}
body .hvp2-toolbar{
  margin-bottom:14px!important;
}

/* Ear-training page */
.hv14-ear{
  --ink:#18384f;
  --muted:#647681;
  --navy:#123f5b;
  --line:rgba(24,56,79,.12);
  --gold:#9a7040;
  background:#fff;
  color:var(--ink);
}
.hv14-wrap{
  width:min(1180px,calc(100% - 48px));
  margin-inline:auto;
}
.hv14-ear-hero{
  padding:52px 0 38px;
  background:linear-gradient(90deg,#fbfaf6 0%,#f7fafb 100%);
  border-bottom:1px solid rgba(24,56,79,.06);
}
.hv14-kicker{
  display:block;
  margin-bottom:12px;
  color:var(--gold);
  font-size:12px;
  font-weight:650;
  letter-spacing:.045em;
}
.hv14-ear-hero h1{
  margin:0 0 16px;
  max-width:760px;
  font-size:clamp(40px,3.8vw,50px);
  line-height:1.08;
  letter-spacing:-.03em;
  font-weight:620;
}
.hv14-ear-hero p{
  max-width:820px;
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}
.hv14-ear-section{
  padding:48px 0 88px;
}
.hv14-modebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.hv14-modecopy strong{
  display:block;
  margin-bottom:4px;
  font-size:15px;
  font-weight:620;
}
.hv14-modecopy span{
  color:var(--muted);
  font-size:13px;
}
.hv14-modes{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.hv14-chip{
  min-height:40px;
  padding:0 14px;
  border:1px solid rgba(18,63,91,.17);
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.hv14-chip[aria-pressed="true"]{
  color:#fff;
  background:var(--navy);
  border-color:var(--navy);
}
.hv14-trainer{
  display:grid;
  grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
  gap:48px;
  align-items:stretch;
}
.hv14-listen{
  min-height:332px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:34px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f8fafb;
}
.hv14-listen .eyebrow{
  margin-bottom:12px;
  color:var(--gold);
  font-size:12px;
  font-weight:650;
  letter-spacing:.04em;
}
.hv14-listen h2{
  margin:0 0 12px;
  max-width:520px;
  font-size:32px;
  line-height:1.18;
  font-weight:610;
  letter-spacing:-.02em;
}
.hv14-listen p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
}
.hv14-primary{
  align-self:flex-start;
  min-height:44px;
  padding:0 18px;
  border:1px solid var(--navy);
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font:inherit;
  font-size:14px;
  font-weight:620;
  cursor:pointer;
}
.hv14-primary:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.hv14-answer{
  min-height:332px;
  padding:30px 32px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hv14-answer h3{
  margin:0 0 18px;
  font-size:24px;
  line-height:1.25;
  font-weight:610;
}
.hv14-options{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.hv14-option{
  min-height:58px;
  padding:8px 10px;
  border:1px solid rgba(24,56,79,.14);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:14px;
  font-weight:580;
  cursor:pointer;
}
.hv14-option:hover{
  border-color:rgba(18,63,91,.28);
}
.hv14-option.correct{
  border-color:#8baa9b;
  background:#f1f7f3;
}
.hv14-option.wrong{
  border-color:#d4aaa2;
  background:#fff7f5;
}
.hv14-feedback{
  min-height:26px;
  margin-top:16px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.hv14-feedback strong{color:var(--ink)}
.hv14-progress{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#788892;
  font-size:12px;
}
.hv14-note{
  margin-top:34px;
  padding-top:22px;
  border-top:1px solid var(--line);
  color:#778892;
  font-size:12px;
  line-height:1.65;
}
.hv14-error{
  display:none;
  margin-bottom:16px;
  padding:11px 13px;
  border:1px solid #d9b4ad;
  border-radius:10px;
  background:#fff8f6;
  color:#7a392e;
  font-size:13px;
}
.hv14-error.show{display:block}

@media(max-width:900px){
  .hv14-trainer{grid-template-columns:1fr;gap:24px}
  .hv14-options{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
  .hv14-tabs{width:min(100% - 32px,1180px);gap:22px}
  .hv14-wrap{width:min(100% - 32px,1180px)}
  .hv14-ear-hero{padding:44px 0 34px}
  .hv14-ear-hero h1{font-size:clamp(36px,10vw,42px)}
  .hv14-ear-section{padding:38px 0 64px}
  .hv14-listen,.hv14-answer{min-height:auto;padding:26px 22px}
  .hv14-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
