/* =========================================================
   CRP ARTICLES PAGE
   ========================================================= */

.articles-page {
  color: #173f3c;
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */

.articles-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 112%, rgba(114, 195, 186, .18) 0 16%, transparent 16.5%),
    radial-gradient(circle at 94% 92%, rgba(114, 195, 186, .08) 0 32%, transparent 32.5%),
    linear-gradient(112deg, #103d3a 0%, #164d48 54%, #276e68 100%);
}

.articles-hero::after {
  position: absolute;
  width: 430px;
  height: 430px;
  right: -110px;
  bottom: -265px;
  content: "";
  border: 55px solid rgba(255,255,255,.04);
  border-radius: 50%;
}

.articles-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 555px;
  margin: 0 auto;
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  gap: 70px;
  align-items: center;
}

.articles-hero-copy {
  min-width: 0;
}

.articles-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #8ee2dc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.articles-hero-eyebrow span {
  width: 28px;
  height: 2px;
  background: #8ee2dc;
}

.articles-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.1vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
}

.articles-hero-lead {
  max-width: 700px;
  margin: 24px 0 28px;
  color: #f4f7f7;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.55;
}

.articles-hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: 720px;
  padding: 8px;
  background: #fff;
  border-radius: 13px;
}

.articles-search-icon {
  padding-left: 14px;
  color: #426160;
  font-size: 24px;
}

.articles-hero-search input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: #314746;
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.articles-hero-search button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #2d9a92;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.articles-hero-search button:hover,
.articles-hero-search button:focus-visible {
  background: #227f78;
}

.articles-hero-try {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 16px;
  color: #d4e4e3;
  font-size: 13px;
}

.articles-hero-try a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Latest articles ---------- */

.articles-latest {
  overflow: hidden;
  background: rgba(8, 42, 39, .78);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.articles-latest-label {
  margin: 0;
  padding: 20px 25px;
  color: #d8e7e8;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.articles-latest ol {
  list-style: none;
  margin: 0;
  padding: 0 22px;
}

.articles-latest li + li {
  border-top: 1px solid rgba(255,255,255,.12);
}

.articles-latest a {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  color: #fff;
}

.articles-latest-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #e8fbf8;
  background: rgba(108,198,190,.24);
}

.articles-latest-number svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.articles-latest-copy {
  min-width: 0;
  text-align: left;
}

.articles-latest-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.articles-latest-copy small {
  display: block;
  margin-top: 4px;
  color: #d6e8e6;
  font-size: 11px;
}

.articles-latest-arrow {
  font-size: 16px;
}

/* ---------- Featured guidance, retained ---------- */

.featured-articles {
  width: min(1180px, calc(100% - 48px));
  margin: clamp(31px, 6vw, 30px) auto 28px;
}

.featured-articles__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.featured-articles__eyebrow {
  margin: 0 0 7px;
  color: #227f78;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.featured-articles__heading h2 {
  margin: 0;
  color: #173f3c;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.featured-articles__heading > p {
  max-width: 470px;
  margin: 0 0 3px;
  color: #586a69;
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.featured-articles__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr);
  gap: 18px;
}

.featured-articles__lead,
.featured-articles__small {
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8d9da;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(18, 56, 55, .10);
}

.featured-articles__lead {
  min-height: 420px;
  display: grid;
  grid-template-columns: minmax(230px, .95fr) minmax(0, 1.05fr);
}

.featured-articles__lead-media-link,
.featured-articles__small-media-link {
  display: block;
  min-width: 0;
}

.featured-articles__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d8e7e8;
}

.featured-articles__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.featured-articles__lead:hover .featured-articles__media img,
.featured-articles__small:hover .featured-articles__media img {
  transform: scale(1.035);
}

.featured-articles__media--fallback {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .24) 0 8%, transparent 8.5%),
    radial-gradient(circle at 83% 22%, transparent 0 19%, rgba(255, 255, 255, .13) 19.5% 20.5%, transparent 21%),
    linear-gradient(145deg, #173f3c 0%, #2d9a92 68%, #65c2bb 100%);
}

.featured-articles__media--fallback span {
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .82;
}

.featured-articles__media--fallback strong {
  max-width: 260px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.featured-articles__lead-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
}

.featured-articles__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 13px;
  color: #738180;
  font-size: 11px;
  font-weight: 700;
}

.featured-articles__meta span {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 10px;
  color: #227f78;
  background: #eaf4f4;
  border-radius: 999px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-articles__lead h3,
.featured-articles__small h3 {
  margin: 0;
  color: #173f3c;
  letter-spacing: -.025em;
}

.featured-articles__lead h3 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}

.featured-articles__lead-content > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 17px 0 24px;
  color: #586a69;
  font-size: 14px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.featured-articles__read {
  width: fit-content;
  margin-top: auto;
  padding: 11px 16px;
  color: #fff;
  background: #2d9a92;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.featured-articles__more {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.featured-articles__small {
  min-height: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(18, 56, 55, .07);
}

.featured-articles__media--small.featured-articles__media--fallback {
  padding: 14px;
}

.featured-articles__media--small.featured-articles__media--fallback span {
  display: none;
}

.featured-articles__media--small.featured-articles__media--fallback strong {
  font-size: 15px;
  line-height: 1.15;
}

.featured-articles__small-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 16px;
}

.featured-articles__small .featured-articles__meta {
  margin-bottom: 7px;
}

.featured-articles__small .featured-articles__meta span {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.featured-articles__small h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-articles__small-read {
  width: fit-content;
  margin-top: 8px;
  color: #227f78;
  font-size: 11px;
  font-weight: 800;
}

/* ---------- Directory ---------- */

.articles-directory {
  padding: 54px 0 90px;
}

.articles-directory-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.articles-sidebar-card {
  position: sticky;
  top: 90px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8d9da;
  border-radius: 14px;
}

.articles-sidebar h2 {
  margin: 0;
  padding: 17px 18px;
  color: #173f3c;
  background: #d8e7e8;
  font-size: 16px;
}

.articles-sidebar nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.articles-sidebar nav a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  color: #3f5554;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.articles-sidebar nav a.active,
.articles-sidebar nav a:hover,
.articles-sidebar nav a:focus-visible {
  color: #176d67;
  background: #eef5f5;
}

.articles-sidebar nav small {
  color: #829190;
  font-size: 11px;
}

.articles-listing {
  min-width: 0;
}

.articles-listing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e2e2;
}

.articles-listing-eyebrow {
  margin: 0 0 5px;
  color: #2d9a92;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.articles-listing h2 {
  margin: 0;
  color: #173f3c;
  font-size: clamp(26px, 3vw, 36px);
}

.articles-inline-search {
  display: flex;
  align-items: center;
}

.articles-inline-search input {
  width: 235px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfdadb;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  font: inherit;
  font-size: 13px;
}

.articles-inline-search button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 0 7px 7px 0;
  color: #fff;
  background: #2d9a92;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.articles-list {
  display: grid;
  gap: 14px;
}

.articles-list-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 145px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cddcdd;
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.articles-list-card:hover {
  border-color: #8fc4c0;
  box-shadow: 0 10px 24px rgba(18,56,55,.08);
  transform: translateY(-1px);
}

.articles-list-image {
  display: block;
  min-height: 145px;
  overflow: hidden;
  background: #d8e7e8;
}

.articles-list-image img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  display: block;
  object-fit: cover;
}

.articles-list-image-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 145px;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(145deg, #173f3c, #2d9a92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.articles-list-content {
  min-width: 0;
  padding: 17px 19px;
}

.articles-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  color: #7a8988;
  font-size: 10px;
  font-weight: 700;
}

.articles-list-meta span {
  color: #227f78;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.articles-list-card h3 {
  margin: 0;
  color: #173f3c;
  font-size: 18px;
  line-height: 1.25;
}

.articles-list-card h3 a:hover,
.articles-list-card h3 a:focus-visible {
  color: #2d9a92;
}

.articles-list-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 10px;
  color: #5c6d6c;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.articles-list-read {
  color: #227f78;
  font-size: 11px;
  font-weight: 900;
}

.articles-empty {
  padding: 40px 22px;
  text-align: center;
  background: #f7fbfb;
  border: 1px dashed #bfd1d2;
  border-radius: 12px;
}

.articles-empty h3 {
  margin: 0 0 7px;
}

/* ---------- Pagination ---------- */

.articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 38px;
}

.articles-pagination a,
.articles-pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0dbdc;
  border-radius: 7px;
  color: #36504e;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.articles-pagination .current {
  color: #fff;
  background: #2d9a92;
  border-color: #2d9a92;
}

.articles-pagination-arrow {
  font-size: 16px !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .articles-hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 48px 0;
  }

  .articles-latest {
    max-width: 720px;
  }

  .featured-articles__layout {
    grid-template-columns: 1fr;
  }

  .featured-articles__more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .featured-articles__small {
    grid-template-columns: 1fr;
  }

  .featured-articles__media--small {
    min-height: 135px;
  }

  .articles-directory-inner {
    grid-template-columns: 1fr;
  }

  .articles-sidebar-card {
    position: static;
  }

  .articles-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .articles-hero-inner,
  .featured-articles,
  .articles-directory-inner {
    width: min(100% - 28px, 1180px);
  }

  .articles-hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .articles-hero-search {
    grid-template-columns: minmax(0,1fr) auto;
  }

  .articles-search-icon {
    display: none;
  }

  .articles-hero-search button {
    padding: 0 16px;
  }

  .featured-articles__heading,
  .articles-listing-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-articles__heading > p {
    text-align: left;
  }

  .featured-articles__lead {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .featured-articles__media--lead {
    min-height: 235px;
  }

  .featured-articles__lead-content {
    padding: 26px;
  }

  .featured-articles__more {
    grid-template-columns: 1fr;
  }

  .featured-articles__small {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .articles-sidebar nav {
    grid-template-columns: 1fr;
  }

  .articles-inline-search {
    width: 100%;
  }

  .articles-inline-search input {
    width: 100%;
  }

  .articles-list-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .articles-list-image,
  .articles-list-image img,
  .articles-list-image-fallback {
    min-height: 150px;
  }

  .articles-list-content {
    padding: 14px;
  }

  .articles-list-card p {
    display: none;
  }
}

@media (max-width: 480px) {
  .articles-list-card {
    grid-template-columns: 1fr;
  }

  .articles-list-image,
  .articles-list-image img,
  .articles-list-image-fallback {
    min-height: 175px;
  }
}


/* Refined featured heading */
.featured-articles__heading {
  display: block;
}

.featured-articles__heading > p,
.featured-articles__eyebrow {
  display: none;
}

/* Decorative fallback image: no label text */
.articles-list-image-fallback {
  color: transparent;
}

/* Category AJAX transition */
.articles-listing {
  transition: opacity .16s ease;
}

.articles-listing.is-loading {
  opacity: .42;
  pointer-events: none;
}


/* Live article search */
.articles-listing {
  transition: opacity .16s ease;
}

.articles-listing.is-loading {
  opacity: .45;
  pointer-events: none;
}

.articles-search-result-count {
  margin: 7px 0 0;
  color: #5c6d6d;
  font-size: .92rem;
}

.articles-search-result-count strong {
  color: #173f3c;
}

.articles-search-highlight {
  padding: 0 .08em;
  border-radius: 2px;
  background: #fff1a8;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.articles-search-content-hit {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #176d67;
  background: #e7f4f3;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}


/* Search relevance/security additions */
.articles-search-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.articles-search-match-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border: 1px solid #d5e3e3;
  border-radius: 999px;
  color: #536a6a;
  background: #f7fafa;
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
}
