/* 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;
  }
}

/* Center the ownership message below the footer links. */
footer .mt-8.pt-6, footer .mt-4.flex.items-center.justify-between { justify-content: center; }
footer .mt-8.pt-6 > p, footer .mt-4.flex.items-center.justify-between > div:first-child { display: block; width: 100%; max-width: 52rem; margin-inline: auto; text-align: center; font-size: 0.95rem; line-height: 1.8; color: #334155; }
footer .mt-8.pt-6 > p strong, footer .mt-4.flex.items-center.justify-between > div:first-child strong { font-size: 1.1rem; font-weight: 700; }
footer .mt-8.pt-6 > p a, footer .mt-4.flex.items-center.justify-between > div:first-child a { color: var(--primary-color); font-weight: 600; text-decoration: underline; }