/* Taiwan Marksix brand and responsive navigation */
.site-header .brand{width:62px;height:56px;gap:0;background:url('/assets/taiwan-logo-twmccj-20261126.png') center/contain no-repeat;}
.site-header .brand>.logo,.site-header .brand>.brand-text{display:none!important;}
@media(max-width:820px){
 .site-header .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;min-height:0;padding:4px 12px;gap:0 8px;box-sizing:border-box;}
 .site-header .brand{grid-column:1;grid-row:1;width:50px;height:46px;}
 .site-header .style-toggle{grid-column:2;grid-row:1;margin-left:0;justify-self:end;height:28px;padding:0 9px;}
 .site-header .desktop-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-column:1 / -1;grid-row:2;gap:0;min-width:0;width:100%;}
 .site-header .nav-link{display:block;min-width:0;padding:6px 0 5px;font-size:12px;line-height:18px;text-align:center;white-space:nowrap;color:#fff;border-bottom:2px solid transparent;}
 .site-header .nav-link.active{color:#fff;border-bottom-color:#fff;font-weight:600;}
}

/* Desktop navigation: five evenly spaced entries */
@media(min-width:821px){
 .site-header .desktop-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1;max-width:640px;min-width:0;margin:0 auto;gap:8px;align-items:center;}
 .site-header .nav-link{display:block;text-align:center;white-space:nowrap;padding:9px 10px;font-size:15px;line-height:22px;}
}

/* Align the desktop red header with the content; compact mobile row. */
@media(min-width:821px){
 .site-header{width:min(980px,calc(100% - 32px));margin:0 auto;}
 .site-header .header-inner{width:100%;padding:6px 12px;}
}
@media(max-width:820px){
 .site-header{width:100%;}
 .site-header .header-inner{display:flex;flex-wrap:nowrap;min-height:42px;padding:4px 8px;gap:6px;}
 .site-header .brand{flex:0 0 36px;width:36px;height:34px;}
 .site-header .desktop-nav{display:grid;flex:1;grid-template-columns:repeat(5,minmax(0,1fr));width:auto;min-width:0;gap:0;}
 .site-header .nav-link{padding:7px 0 5px;line-height:18px;font-size:12px;}
 .site-header .style-toggle{flex:0 0 auto;height:26px;padding:0 6px;margin:0;font-size:11px;}
}
@media(max-width:360px){
 .site-header .header-inner{padding-left:6px;padding-right:6px;gap:4px;}
 .site-header .brand{flex-basis:30px;width:30px;height:30px;}
 .site-header .nav-link{font-size:10.5px;}
}
