/* Site-wide layout from the base template (index.html): header, search, region pills, footer.
   Phones first; the header shows its links inline from 992px wide. */

/* Header: logo and a menu button on one row on phones */
.site-menu-btn {
  background: none; color: #fff; font-size: 1.25rem; line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; padding: 0.4rem 0.65rem;
}
.site-nav { width: 100%; }
.site-nav .nav-link, .site-nav .dropdown-toggle { padding: 0.55rem 0.25rem; }
@media (max-width: 991.98px) {
  .site-brand img { width: 38px; height: 38px; }
  .site-brand .figure-caption { display: none; }
  .site-nav .nav { border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .site-nav .dropdown-menu { max-height: 60vh; overflow-y: auto; }
}
@media (min-width: 992px) {
  .site-nav { width: auto; }
  .site-nav .nav-link, .site-nav .dropdown-toggle { padding: 0.5rem 0.8rem; }
}

/* Search box: three quarters wide on big screens, full width on phones */
.search-group { width: 75%; }
@media (max-width: 767.98px) {
  .search-group { width: 100%; }
  #search-mode-hint { display: none; }
}

/* Region pills: one row you can swipe on phones */
@media (max-width: 767.98px) {
  .region-pills {
    flex-wrap: nowrap !important; justify-content: flex-start !important;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-top: 0.75rem !important; padding-bottom: 2px;
  }
  .region-pills::-webkit-scrollbar { display: none; }
  .region-pills > a { flex: 0 0 auto; }
}

/* Footer */
.site-footer {
  margin-top: 2rem; padding: 1.25rem 1rem 1.5rem; border-top: 1px solid #e3e6ea;
  text-align: center; font-size: 0.9rem; color: #656d76;
}
.site-footer-links, .site-footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.6rem; }
.site-footer-social { font-size: 1.25rem; }
.site-footer-social a { color: #656d76; }
.site-footer-social a:hover { color: #198754; }
