/* Anopedia v1.7.7: source-faithful logo with theme-specific transparent assets. */
.site-header .anopedia-brand {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  margin-right: auto;
  padding: 3px 0;
  overflow: visible;
}
.site-header .anopedia-brand .anopedia-brand-image {
  display: none;
  width: min(360px, 37vw);
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: none !important;
  object-position: left center;
  flex: 0 1 auto;
}
html:not([data-theme="dark"]) .site-header .anopedia-brand .anopedia-brand-full.anopedia-brand-light,
html[data-theme="dark"] .site-header .anopedia-brand .anopedia-brand-full.anopedia-brand-dark {
  display: block;
}
.site-header .header-inner { min-height: 80px; }
.ed-footer .anopedia-footer-logo {
  display: inline-flex;
  align-items: center;
  width: min(360px,100%);
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}
.ed-footer .anopedia-footer-image {
  display: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: none !important;
}
html:not([data-theme="dark"]) .ed-footer .anopedia-footer-light,
html[data-theme="dark"] .ed-footer .anopedia-footer-dark { display:block; }
@media (max-width: 700px) {
  .site-header .header-inner {min-height: 66px; gap: 6px;}
  .site-header .anopedia-brand { padding: 0; min-height: 44px; }
  .site-header .anopedia-brand .anopedia-brand-image {
    max-width: 100%;
    width: min(213px,100%);
    height: auto;
    max-height: 44px;
  }
  html:not([data-theme="dark"]) .site-header .anopedia-brand .anopedia-brand-full.anopedia-brand-light,
  html[data-theme="dark"] .site-header .anopedia-brand .anopedia-brand-full.anopedia-brand-dark {display:none;}
  html:not([data-theme="dark"]) .site-header .anopedia-brand .anopedia-brand-compact.anopedia-brand-light,
  html[data-theme="dark"] .site-header .anopedia-brand .anopedia-brand-compact.anopedia-brand-dark {display:block;}
  .site-header .header-actions {gap: 2px; flex: 0 0 auto;}
  .site-header :where(#menu-button,#search-button,#theme-button) {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    flex:0 0 44px;
  }
  .ed-footer .anopedia-footer-logo {width:min(310px,100%);}
}
@media (max-width: 370px) {
  .site-header .header-inner {gap:4px;}
  .site-header .header-actions {gap:0;}
  .site-header .anopedia-brand .anopedia-brand-image {width:100%;}
}
