/* Homepage navigation correction v21: scoped, responsive, no JS changes */
.at-header,.at-header *{box-sizing:border-box}
.at-header-inner{width:100%;max-width:1240px;margin-inline:auto;display:flex;align-items:center;gap:20px;padding:12px 20px}
.at-brand{flex:0 0 180px;min-width:0}
.at-brand img{display:block;width:100%;max-width:180px;height:auto}
.at-header .at-nav{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 8px;width:auto;max-width:100%}
.at-header .at-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 10px;margin:0;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center;font:600 13px/1.35 Arial,sans-serif;max-width:100%;text-decoration:none}
@media(max-width:1100px){
 .at-header-inner{flex-direction:column;gap:10px}
 .at-brand{flex:none;width:170px}
 .at-header .at-nav{width:100%;flex:none;justify-content:center}
}
@media(max-width:640px){
 .at-header-inner{padding:12px 14px}
 .at-header .at-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
 .at-header .at-nav a{width:100%;min-width:0;padding:9px 6px;font-size:12px;line-height:1.35;border:1px solid #dce8ee;border-radius:6px}
 .at-header .at-nav a:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:360px){.at-header .at-nav{grid-template-columns:1fr}}
