/* Keep the shared footer focused on useful directory links. */
footer > div > .grid > div:nth-child(3),
footer > div > .grid > div:has(> ul a[href^="/s/"]) {
  display: none;
}
footer > div > .grid > div:nth-child(2) > ul {
  columns: 2;
  column-gap: 1.5rem;
}
footer > div > .grid > div:nth-child(2) > ul > li {
  break-inside: avoid;
}
footer > div > .grid > div:nth-child(2) > ul a {
  display: inline-block;
  padding: 4px 0;
}
@media (max-width: 640px) {
  #cej-browse .cej-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #cej-browse .cej-btn { min-width: 0 !important; padding: 12px 10px !important; }
  #cej-browse .cej-label { white-space: normal !important; overflow-wrap: anywhere; line-height: 1.3 !important; }
}
@media (min-width: 1024px) {
  footer > div > .grid > div:nth-child(2) {
    grid-column: span 2;
  }
}