/* DW-style archive / category listing — Next.js rebuild */

body.hg-news-archive-page {
  background: #ffffff !important;
}

body.hg-news-archive-page .site-content,
body.hg-news-archive-page #content {
  background: #ffffff !important;
}

/*
 * GP uses display:flex on .site-content. Without #primary.content-area the archive
 * flex item shrinks to ~960px (body max-width), leaving an empty column on the right.
 */
body.hg-news-archive-page .site.grid-container,
body.hg-news-archive-page #page {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.hg-news-archive-page .site-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hg-news-archive-page #primary,
body.hg-news-archive-page .content-area,
body.hg-news-archive-page .site-main,
body.hg-news-archive-page .inside-article {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
}

body.hg-news-archive-page .site-main {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hg-news-archive-page #secondary,
body.hg-news-archive-page .widget-area {
  display: none !important;
  width: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden;
}

body.hg-news-archive-page .hg-archive {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hg-archive {
  background: linear-gradient(
    to top,
    #ffffff 0%,
    #ffffff 62%,
    #f8fcff 82%,
    rgba(0, 173, 238, 0.1) 100%
  );
  min-height: 50vh;
}

.hg-archive__hero {
  position: relative;
  min-height: clamp(220px, 32vw, 320px);
  background-size: cover;
  background-position: center;
  background-color: #00adee;
}

.hg-archive__hero--gradient {
  width: 100%;
  min-height: clamp(140px, 22vw, 200px);
  background-color: #00adee;
  background-image: linear-gradient(to top, #ffffff 0%, #ffffff 45%, #e8f7fd 72%, #00adee 100%) !important;
  background-repeat: no-repeat;
  background-size: cover;
}

.hg-archive__hero--gradient .hg-archive__hero-inner {
  max-width: none;
  width: 100%;
  padding: clamp(40px, 6vw, 64px) 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hg-archive__hero--gradient h1 {
  width: 100%;
  margin: 0;
  color: #fff !important;
  text-align: center;
  text-shadow: none;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.hg-archive__hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 18, 40, 0.92) 0%,
    rgba(0, 18, 40, 0.45) 45%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hg-archive__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 72px) 20px 28px;
  color: #fff;
  text-align: center;
}

.hg-archive__crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hg-archive__crumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.hg-archive__crumbs a:hover {
  text-decoration: underline;
}

.hg-archive__crumb-sep {
  margin: 0 4px;
  opacity: 0.7;
}

.hg-archive__hero-inner h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hg-archive__body {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px) 20px 56px;
}

.hg-archive__intro {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.hg-archive__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hg-archive__chip {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #00213d;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hg-archive__chip.is-active {
  background: #00adee;
  border-color: #00adee;
  color: #fff;
}

.hg-archive__chip:hover {
  background: #009fda;
  border-color: #009fda;
  color: #fff;
}

.hg-archive__list-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  color: #00213d;
  line-height: 1.2;
}

.hg-archive__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.hg-archive__item {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(20px, 2.5vw, 28px) 0;
  border-bottom: 1px solid #e8edf2;
}

.hg-archive__item:last-child {
  border-bottom: none;
}

.hg-archive__thumb-wrap {
  display: block;
  text-decoration: none;
}

.hg-archive__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #dce4ec;
}

.hg-archive__content h3 {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.35;
}

.hg-archive__content h3 a {
  color: #0056a3;
  text-decoration: none;
}

.hg-archive__content h3 a:hover {
  text-decoration: underline;
}

.hg-archive__content p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hg-archive__content time {
  font-size: 12px;
  font-weight: 600;
  color: #8a97a5;
  letter-spacing: 0.02em;
}

.hg-archive__empty {
  margin: 32px 0;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
}

.hg-archive__pager {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr minmax(96px, auto);
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hg-archive__pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(0, 173, 238, 0.35);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0077b3;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hg-archive__pager-btn:hover:not(.is-disabled) {
  background: rgba(0, 173, 238, 0.12);
  border-color: #00adee;
  color: #005a87;
}

.hg-archive__pager-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.hg-archive__pager-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-self: center;
  grid-column: 2;
}

.hg-archive__pager-pages .page-numbers,
.hg-archive__pager-page {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #0077b3 !important;
  text-decoration: none !important;
  border: 1px solid rgba(0, 173, 238, 0.28);
  background: #fff;
  padding: 0 4px;
  box-sizing: border-box;
}

.hg-archive__pager-pages a.page-numbers:hover {
  background: rgba(0, 173, 238, 0.14) !important;
  border-color: #00adee !important;
  color: #005a87 !important;
}

.hg-archive__pager-pages span.page-numbers.current,
.hg-archive__pager-page.is-active,
.hg-archive__pager-page.current {
  background: #00adee !important;
  color: #fff !important;
  border-color: #00adee !important;
}

.hg-archive__pager-pages span.page-numbers.dots {
  min-width: auto;
  height: auto;
  border: 0;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 600;
}

body.hg-news-archive-page .hg-archive__pager-pages .page-numbers {
  background: #fff;
}

body.hg-news-archive-page .hg-archive__pager-pages span.page-numbers.current {
  background: #00adee !important;
  border-color: #00adee !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .hg-archive__item {
    grid-template-columns: 1fr;
  }

  .hg-archive__pager {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .hg-archive__pager-pages {
    grid-column: 1 / -1;
    grid-row: 1;
    order: -1;
    margin-bottom: 4px;
  }

  .hg-archive__pager-btn {
    width: 100%;
    min-width: 0;
  }

  .hg-archive__pager-btn:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }

  .hg-archive__pager-btn:last-of-type,
  .hg-archive__pager .hg-archive__pager-btn.is-disabled:last-of-type {
    grid-column: 2;
    grid-row: 2;
  }
}

/* News & Updates hub — section blocks (page 1) */
.hg-news-hub__intro-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.hg-news-hub__sections {
  width: 100%;
}

.hg-news-hub .hg-archive__hero--gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e8f7fc 55%, #d4f0fa 100%);
}

.hg-news-hub .hg-topic-focus__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.hg-news-hub .hg-reports .hg-topic-focus__foot a {
  font-size: 14px;
  font-weight: 800;
  color: #00213d;
  text-decoration: none;
}

.hg-news-hub .hg-reports .hg-topic-focus__foot a:hover {
  color: #00adee;
  text-decoration: underline;
}
