/*
 * News archive (/news/, /news/page/N/), generated by tools/build-static.mjs from the home page's news section.
 * The cards keep Elementor's own styling. This file stacks the section (the home page puts the heading beside
 * the cards; on a full archive the heading goes on top) and styles the page links under the cards.
 * Colours follow the site: navy #001E43 on the section's light grey, gold focus ring. 44px targets.
 */
.gov-news-archive #news > .e-con-inner {
  --flex-direction: column;
  --align-items: stretch;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 32px;
}

.gov-news-archive #news > .e-con-inner > .e-con {
  --width: 100%;
  width: 100% !important;
}

.gov-news-pagination {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 48px 0 8px;
  font-family: "Montserrat", sans-serif;
}

.gov-news-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gov-news-pagination a,
.gov-news-pagination .gov-news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #001E43;
  background: #fff;
  color: #001E43;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.gov-news-pagination a:hover,
.gov-news-pagination a:focus {
  background: #001E43;
  color: #fff;
}

.gov-news-pagination a:focus-visible {
  outline: 3px solid #AD8400;
  outline-offset: 2px;
}

.gov-news-pagination [aria-current="page"] {
  background: #001E43;
  color: #fff;
}

.gov-news-pagination__gap {
  padding: 0 4px;
  color: #001E43;
}

@media (prefers-reduced-motion: reduce) {
  .gov-news-pagination a { transition: none; }
}
