/* Shared header/footer taxonomy styles for legacy standalone HTML pages.
   Keep this small: page-specific content CSS remains untouched. */
.taxonomy-dropdown .taxonomy-menu {
  left: auto;
  right: 0;
  width: min(640px, calc(100vw - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding: 12px;
}
.nav-dropdown:hover .taxonomy-menu,
.nav-dropdown.open .taxonomy-menu { display: grid; }
.taxonomy-menu-all {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 2px;
}
.taxonomy-menu-group { padding: 6px; border-radius: 10px; }
.taxonomy-menu-group:hover { background: var(--glass); }
.taxonomy-menu-parent { font-weight: 800 !important; }
.taxonomy-menu-children { display: grid; gap: 2px; padding-left: 12px; }
.taxonomy-menu-children a {
  padding: 7px 8px !important;
  font-size: .92rem;
  color: var(--muted) !important;
}
.taxonomy-submenu.open { max-height: 1100px; }
.taxonomy-mobile-parent { margin-top: 4px; font-weight: 800; }
.taxonomy-mobile-child { padding-left: 28px !important; color: var(--muted) !important; }

.footer-taxonomy {
  display: grid;
  gap: 12px;
  max-width: 240px;
  margin: 0 auto;
  text-align: left;
}
.footer-taxonomy-group { display: grid; gap: 5px; }
.footer-taxonomy-parent,
.footer-taxonomy-children a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.footer-taxonomy-parent i,
.footer-taxonomy-children i {
  width: 20px;
  text-align: center;
  color: var(--accent);
}
.footer-taxonomy-children { display: grid; gap: 5px; padding-left: 16px; }
.footer-taxonomy-children a { font-size: .92rem; color: var(--muted); }

@media (max-width: 1120px) {
  .nav-links { display: none !important; }
  .hamburger { display: block !important; }
}
