/* Shared public brand bar. Page content and maintenance/admin surfaces stay separate. */
html body[data-page] .a1-site-header,
html body[data-page] #header.a1-site-header {
  box-sizing:border-box; width:100%; max-width:1180px; height:auto; min-height:0;
  margin:2px auto 0; padding:0; background:var(--wx-primary); color:var(--wx-on-primary);
  font-family:var(--wx-font-family,Arial,"Microsoft YaHei",sans-serif);
}
html body[data-page] #header.a1-site-header #logo { width:100%; max-width:none; height:auto; margin:0; }
html body[data-page] #header.a1-site-header + .meinv { margin-top:2px; }
html body[data-page] #header.a1-site-header #logo :is(table,tbody) { display:block; width:100%; height:auto; border:0; border-collapse:collapse; }
html body[data-page] .a1-site-header:not(#header),
html body[data-page] #header.a1-site-header #logo tr {
  display:grid; grid-template-columns:clamp(112px,20vw,216px) minmax(0,1fr) auto;
  align-items:center; gap:clamp(6px,1.4vw,20px);
  box-sizing:border-box; width:100%; min-height:64px; padding:8px clamp(8px,1.1vw,16px);
}
html body[data-page] #header.a1-site-header #logo td {
  display:flex; align-items:center; align-self:stretch; box-sizing:border-box; min-width:0; width:auto; height:auto; margin:0; padding:0;
}
html body[data-page] #header.a1-site-header #logo td:first-child > a,
html body[data-page] .a1-site-brand {
  display:flex; align-items:center; align-self:stretch; float:none; box-sizing:border-box; min-width:0; width:100%; height:auto; margin:0; padding:0;
  text-decoration:none;
}
html body[data-page] .a1-site-header .site-brand-logo {
  display:block; width:100% !important; max-width:216px !important; height:auto !important; margin:0; object-fit:contain;
  filter:var(--wx-front-logo-filter,none);
}
html body[data-page] #header.a1-site-header #logo .site-brand-logo { margin:0; }
html body[data-page] #header.a1-site-header #logo td:nth-child(2),
html body[data-page] .a1-site-announcement {
  display:flex; flex-direction:column; justify-content:flex-start; align-items:stretch; align-self:stretch;
  min-width:0; height:auto; max-height:112px; margin:0; padding:0; overflow-wrap:anywhere;
  overflow-y:auto; overscroll-behavior-y:contain; touch-action:pan-y;
}
html body[data-page] #header.a1-site-header #logo td:nth-child(2) :is(p,span,strong,font),
html body[data-page] .a1-site-announcement :is(p,span,strong) {
  margin:0; padding:0; color:var(--wx-on-primary) !important; background:transparent !important;
  font-size:12px !important; line-height:1.55 !important;
}
html body[data-page] #header.a1-site-header #logo td:nth-child(2) > p,
html body[data-page] .a1-site-announcement > p { flex:0 0 auto; }
html body[data-page] #header.a1-site-header #logo td:nth-child(2) > p:first-child,
html body[data-page] .a1-site-announcement > p:first-child { margin-top:auto; }
html body[data-page] #header.a1-site-header #logo td:nth-child(2) > p:last-child,
html body[data-page] .a1-site-announcement > p:last-child { margin-bottom:auto; }
html body[data-page] .a1-site-header .a1-site-actions {
  position:relative; z-index:1001; display:flex; align-items:center; align-self:stretch; justify-content:flex-end; gap:4px;
  box-sizing:border-box; width:auto; height:auto; min-height:44px; margin:0; padding:0; border:0;
  background:transparent; line-height:1.5;
}
html body[data-page] .a1-site-header .a1-site-actions > :is(strong,.member-entry) {
  display:flex; align-items:center; float:none; width:auto !important; height:auto !important; margin:0; padding:0;
}
html body[data-page] .a1-site-header .a1-site-actions :is(a,button) {
  display:inline-flex; align-items:center; justify-content:center; float:none; box-sizing:border-box; width:auto; height:auto;
  min-width:52px; min-height:44px; margin:0; padding:8px 12px; border:0; border-radius:6px;
  background:transparent; color:var(--wx-on-primary) !important; font:400 13px/1.5 var(--wx-font-family,Arial,"Microsoft YaHei",sans-serif);
  text-align:center; white-space:nowrap; text-decoration:none;
}
html body[data-page] #header.a1-site-header #logo .a1-site-actions a { display:flex; float:none; width:auto; height:auto; }
html body[data-page] .a1-site-header .a1-site-actions :is(a:hover,button:hover:enabled) { background:var(--wx-hover); text-decoration:underline; }
html body[data-page] .a1-site-header :is(a,button):focus-visible { outline:2px solid var(--wx-on-primary); outline-offset:2px; }
html body[data-page] .a1-site-header .a1-site-actions button:disabled { opacity:.6; cursor:wait; }
body[data-page="community-search"] { box-sizing:border-box; padding:6px max(8px,env(safe-area-inset-right)) 28px max(8px,env(safe-area-inset-left)); }
