/* Aria's Violin Studio — site header + English / 中文 rules only (copied from easy.css, 28 Oct 2026).
   For pages that don't load easy.css, so their header matches the Home page exactly.
   If you change the header rules in easy.css, change them here too. */
/* English / 中文: write both, the page shows one */
.zh{display:none}
html[data-lang="zh"] .zh{display:revert}
html[data-lang="zh"] .en{display:none}
html[data-lang="zh"] body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}

/* language button, beside Menu in the site header */
.navlinks{margin-left:auto;order:1}
.e-lang{order:2;font:inherit;font-size:14px;font-weight:700;border-radius:999px;padding:7px 14px;border:1px solid var(--brand);background:#fff;color:var(--brand);cursor:pointer;white-space:nowrap}
.e-lang:hover{background:var(--soft)}
.menu-btn{order:3}
@media(max-width:850px){.e-lang{margin-left:auto}}
/* room for the 中文 button: keep every menu item on one line */
@media(min-width:851px){.navlinks{gap:15px}.navlinks a{white-space:nowrap;font-size:15px}.navlinks a.nav-cta{padding:8px 14px}}
@media(min-width:851px) and (max-width:1380px){.brand small{display:none}.navlinks{gap:12px}.navlinks a{font-size:14px}}
/* 28 Oct 2026: menu still ran 74px past the header above 1380px — same compact size on wide screens, tagline kept */
@media(min-width:1381px){.navlinks{gap:10px}.navlinks a{font-size:14px}}
@media(min-width:851px) and (max-width:1200px){.brand-text{font-size:19px}.navlinks{gap:9px}.navlinks a{font-size:13px}.navlinks a.nav-cta{padding:7px 10px}}

/* Phone header fit (QA 2026-10-24): on phones 400-850px wide the logo and studio name were still
   desktop size, which pushed Menu off the right edge (worse with 中文 / English). Let the name wrap,
   keep both buttons fully on screen and at least 40px tall. */
@media(max-width:850px){
 .nav{gap:8px}
 .brand{min-width:0;flex:1 1 auto;font-size:19px;gap:8px}
 .brand-text{min-width:0;white-space:normal;line-height:1.12}
 .brand-logo{width:40px;height:40px;flex-basis:40px}
 .e-lang,.menu-btn{flex:none;min-height:44px}
 .e-lang{padding:7px 11px;margin-left:0}
 .menu-btn{padding:8px 11px;font-size:15px}
}
@media(max-width:400px){
 .brand{font-size:16px}
 .brand small{display:none}
}
@media(max-width:359px){
 .brand-logo{width:34px;height:34px;flex-basis:34px}
 .brand small{display:none}
 .e-lang{padding:7px 9px}
 .menu-btn{padding:8px 9px}
}

/* Laptop-width header (QA 2026-10-27): between 851 and 1100px the English menu plus the 中文 button
   was ~25px wider than the screen. Use the Menu button there, like on tablets. */
@media(min-width:851px) and (max-width:1100px){
 .navlinks{display:none;position:absolute;top:72px;left:0;right:0;background:var(--bg);padding:18px 20px;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start;gap:14px}
 .navlinks.open{display:flex}
 .navlinks a{font-size:16px}
 .menu-btn{display:block}
 .e-lang{margin-left:auto}
}

/* English / 中文 must always win over layout rules such as ".tile b{display:block}" (QA 2026-10-27) */
html:not([data-lang="zh"]) .zh{display:none!important}
html[data-lang="zh"] .en{display:none!important}

/* Tap targets at least 44×44 px on phones and tablets (UX round 2, 9 Nov 2026) */
@media(max-width:850px){.brand{min-height:44px}footer a:not([class]):not(small *),.footer a:not([class]):not(small *){display:inline-block;padding:11px 0;min-height:44px;box-sizing:border-box}}
