/* Anopedia 1.7.13 · Harmonized footer groups and restrained dark header wordmark. */

/* Preserve the exact ruby wordmark, changing size only in the dark theme. */
html[data-theme="dark"] .site-header .anopedia-brand.anopedia-brand-wordmark .anopedia-wordmark-image {
  width: min(202px, 100%);
  max-height: 41px;
}

/* Editorial footer groups: predictable two-column links with clear hierarchy. */
.ed-footer .anopedia-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  justify-content: start;
  gap: clamp(22px, 4vw, 52px);
  width: min(100%, 480px);
  max-width: 480px;
  padding-top: 4px;
}
.ed-footer .anopedia-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 11px;
}
.ed-footer .anopedia-footer-links h2 {
  margin: 0 0 6px;
  padding: 0;
  color: var(--accent);
  font: 700 11px/1.45 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ed-footer .anopedia-footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 2px 0 4px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--line2) 75%, transparent);
  overflow-wrap: anywhere;
}
.ed-footer .anopedia-footer-links a:hover,
.ed-footer .anopedia-footer-links a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.ed-footer .anopedia-footer-links a span[aria-hidden] {font-size: 12px;}

@media (max-width: 700px) {
  html[data-theme="dark"] .site-header .anopedia-brand.anopedia-brand-wordmark .anopedia-wordmark-image {
    width: min(157px, 100%);
    max-height: 30px;
  }
  .ed-footer .anopedia-footer-nav {
    margin-top: 25px;
    width: 100%;
    max-width: 440px;
    gap: clamp(16px, 5vw, 34px);
  }
  .ed-footer .anopedia-footer-links a {font-size: 13px;}
}
@media (max-width: 370px) {
  html[data-theme="dark"] .site-header .anopedia-brand.anopedia-brand-wordmark .anopedia-wordmark-image {
    width: min(146px, 100%);
  }
}
@media (max-width: 345px) {
  .ed-footer .anopedia-footer-nav {grid-template-columns: 1fr; gap: 24px;}
}
