body.articles-page { background: #f2f0eb; color: #171717; }
body.articles-page main { background: #fff; }

.articles-hero { min-height: 440px; padding: 170px var(--page-gutter) 84px; border-radius: 28px 28px 0 0; background: #fff; color: #181a1c; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.articles-hero::after { content: none; }
.articles-hero__inner { max-width: 920px; position: relative; z-index: 1; }
.articles-kicker { margin: 0 0 20px; color: #e42840; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.articles-hero h1 { margin: 0; font-size: clamp(48px,8vw,112px); line-height: .9; letter-spacing: -.055em; }
.articles-hero__lead { max-width: 690px; margin: 30px 0 0; font-size: clamp(18px,2vw,25px); line-height: 1.45; color: #625d56; }

.articles-content { position: relative; padding: 64px var(--page-gutter) 120px; border-radius: 28px 28px 0 0; background: #f2f0eb; }
.article-filters {  padding: 26px 0; display: grid; gap: 24px; }
.article-filter { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.article-filter > div { min-width: 0; }
.article-filter__label { padding-top: 9px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #777169; }
.article-filter__options { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px; }
.filter-pill, .filter-tag, .article-tag, .article-card__section, .article-filter__more { font: inherit; }
.filter-pill, .filter-tag { border: 1px solid #c9c5bd; border-radius: 999px; padding: 9px 15px; color: #37332e; background: transparent; transition: .2s ease; }
.filter-pill span { margin-left: 7px; opacity: .55; font-size: 11px; }
.filter-tag { display: inline-flex; box-sizing: border-box; min-width: 0; max-width: 100%; align-items: center; min-height: 40px; border-color: transparent; padding-inline: 8px; color: #706a62; line-height: 20px; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.filter-pill:hover, .filter-pill.is-active, .filter-tag:hover, .filter-tag.is-active { border-color: #171717; background: #171717; color: #fff; }
.article-filter__options--tags { box-sizing: border-box; max-height: 88px; overflow: hidden; }
.article-filter--tags > div { min-width: 0; max-width: 100%; }
.article-filter--tags .article-filter__options { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
.article-filter--tags.is-expanded .article-filter__options--tags { max-height: none; }
.article-filter__more { margin-top: 10px; border: 0; border-bottom: 1px solid currentColor; padding: 0; background: transparent; color: #e42840; font-size: 13px; }

.articles-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 52px 24px; }
.article-card { min-width: 0; display: flex; flex-direction: column; }
.article-card[hidden] { display: none; }
.article-card__media { display: block; aspect-ratio: 1.45; overflow: hidden; background: #ddd8ce; }
.article-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.article-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.article-card__section { align-self: flex-start; border: 0; padding: 0; background: transparent; color: #e42840; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-card h2 { margin: 12px 0 14px; font-size: clamp(23px,2.2vw,34px); line-height: 1.06; letter-spacing: -.035em; }
.article-card h2 a:hover { color: #e42840; }
.article-card p { margin: 0; color: #635e57; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__tags { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 19px 0; }
.article-tag { border: 0; padding: 0; background: transparent; color: #777169; font-size: 13px; }
.article-tag:hover { color: #e42840; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid #d5d1ca; font-size: 13px; }
.article-card__meta time { color: #777169; }
.article-card__meta a { font-weight: 700; }
.articles-empty { padding: 60px 0; text-align: center; color: #777169; }

.articles-pagination { margin-top: 72px; }
.articles-pagination ul { display: flex; justify-content: center; align-items: center; gap: 8px; }
.articles-pagination a, .articles-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #c9c5bd; border-radius: 50%; font-weight: 700; }
.articles-pagination span, .articles-pagination a:hover { background: #171717; border-color: #171717; color: #fff; }

.article-page { background: #f2f0eb; color: #171717; }
.article-detail { padding: 150px var(--page-gutter) 120px; }
.content-breadcrumbs, .article-detail > .content-breadcrumbs { max-width: 1280px; margin: 0 auto 38px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; color: #777169; font-size: 14px; }
.breadcrumbs-item a { color: inherit; text-decoration: none; }
.breadcrumbs-item a:hover { color: #e42840; }
.breadcrumb-separator { color: #aaa49b; }
.breadcrumbs-item.active { color: #37332e; }
.article-detail__header, .article-detail__body, .article-detail__image { max-width: 1280px; margin-inline: auto; }
.article-detail__header { margin-bottom: 48px; }
.article-detail__section { color: #e42840; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.content-detail__topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.content-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0; color: #837e91; font-size: 16px; line-height: 1.2; }
.content-meta time, .content-meta__views, .content-meta__reading { display: inline-flex; align-items: center; gap: 7px; }
.content-meta svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.article-detail h1 { margin: 18px 0 24px; font-size: clamp(42px,6vw,86px); line-height: .96; letter-spacing: -.055em; }
.article-detail__lead { margin: 0; color: #625d56; font-size: clamp(18px,2vw,24px); line-height: 1.5; }
.article-detail__date { display: block; margin: 24px 0 42px; color: #777169; }
.article-detail__image { width: 100%; max-height: 680px; object-fit: cover; display: block; margin: 0 auto 60px; }
.article-detail__body { font-size: 18px; line-height: 1.7; }
.article-detail__body h2 { margin: 64px 0 18px; font-size: clamp(30px,4vw,52px); line-height: 1.06; letter-spacing: -.035em; }
.article-detail__body h3 { margin: 42px 0 14px; font-size: 28px; }
.article-detail__body p, .article-detail__body ul, .article-detail__body ol { margin: 0 0 24px; }
.article-detail__body img { max-width: 100%; height: auto; display: block; }
.article-detail__body figure { margin: 42px 0; }
.article-detail__body figcaption { margin-top: 10px; color: #777169; font-size: 14px; }
.article-detail__body table { width: 100%; border-collapse: collapse; margin: 36px 0; font-size: 15px; }
.article-detail__body th, .article-detail__body td { padding: 13px; border: 1px solid #c9c5bd; text-align: left; vertical-align: top; }
.article-detail__body a { color: #c51d34; text-decoration: underline; text-underline-offset: 3px; }
.article-detail > .article-card__tags { max-width: 1280px; margin: 19px auto; }

/* Article cards use the same visual language as the News cards on the home page. */
.articles-page .article-card { overflow: hidden; border: 1px solid #d6d8d4; border-radius: 18px; background: #eceeea; color: #181a1c; opacity: 1; box-shadow: 0 16px 42px rgba(22,25,27,.06); transition: transform .35s cubic-bezier(.22,.68,0,1), background .35s ease; }
.articles-page .article-card__media { aspect-ratio: 1.54; background: #dcdfdb; }
.articles-page .article-card__media img { filter: saturate(.78); transition: transform .5s cubic-bezier(.22,.68,0,1), filter .3s ease; }
.articles-page .article-card__body { padding: 20px; }
.articles-page .article-card:hover, .articles-page .article-card:focus-within { transform: translateY(-5px); }
.articles-page .article-card:hover .article-card__media img, .articles-page .article-card:focus-within .article-card__media img { transform: scale(1.05); filter: saturate(1); }

/* Article view counter. */
.article-card__stats { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.article-card__views { display: inline-flex; align-items: center; gap: 7px; color: #837e91; font-size: inherit; line-height: inherit; }
.article-card__views svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Popular articles use the homepage-news carousel mechanics with article cards. */
.popular-articles { position: relative; overflow: hidden; padding: 112px var(--page-gutter) 96px; border-radius: 28px 28px 0 0; background: var(--link-hover); color: #fff; box-shadow: 0 -28px 0 #f2f0eb; }
.popular-articles__inner { width: 100%; max-width: 1920px; margin-inline: auto; }
.popular-articles__heading { margin-bottom: 42px; }
.popular-articles__heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 78px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.popular-articles__carousel .splide__track { overflow: hidden; }
.popular-articles .article-card { height: 100%; border: 0; background: #eceeea; color: #181a1c; }
.popular-articles .article-card__media { background: #dcdfdb; }
.popular-articles .article-card__media img { filter: saturate(.78); }
.popular-articles .article-card:hover .article-card__media img, .popular-articles .article-card:focus-within .article-card__media img { filter: saturate(1); }
.popular-articles .article-card:hover, .popular-articles .article-card:focus-within { transform: none; }
.popular-articles .splide__pagination { position: static; display: flex; justify-content: center; gap: 10px; margin-top: 28px; padding: 0; }
.popular-articles .splide__pagination__page { width: 8px; height: 8px; margin: 0; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.48); opacity: 1; transition: width .25s ease, background .25s ease; }
.popular-articles .splide__pagination__page.is-active { width: 28px; background: #fff; transform: none; }

@media (min-width: 981px) {
  .articles-content { display: grid; grid-template-columns: 200px repeat(3,minmax(0,1fr)); column-gap: 24px; row-gap: 52px; align-items: start; }
  .article-filters { grid-column: span 1; padding: 0; align-content: start; }
  .article-filter { display: block; }
  .article-filter__label { display: block; margin-bottom: 12px; padding-top: 0; }
  .article-filter__options { flex-direction: column; align-items: flex-start; gap: 7px; }
  .filter-pill, .filter-tag { align-self: flex-start; }
  .filter-pill { padding-inline: 10px; font-size: 15px; white-space: nowrap; }
  .filter-pill span { margin-left: 4px; }
  .article-filter--tags:not(.is-expanded) .article-filter__options--tags { max-height: var(--article-tags-collapsed-height, 400px); overflow: hidden; }
  .article-filter--tags.is-expanded .article-filter__options--tags { max-height: none; overflow: visible; }
  .article-filter__more { display: inline-block; }
  .articles-grid { grid-column: span 3; }
  .articles-pagination { grid-column: 2 / -1; margin-top: 0; }
}

/* Compact desktop and landscape tablets: keep the sidebar, give cards two full columns. */
@media (min-width: 981px) and (max-width: 1279px) {
  .articles-content { grid-template-columns: 200px repeat(2,minmax(0,1fr)); }
  .articles-grid { grid-column: span 2; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .articles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-filter { grid-template-columns: 1fr; gap: 10px; }
  .article-filter__label { padding-top: 0; }
  .article-filter--tags .article-filter__options { flex-direction: row; flex-wrap: wrap; }
  .popular-articles { padding-top: 88px; }
}

@media (max-width: 640px) {
  .articles-hero { min-height: 390px; padding-top: 145px; }
  .articles-content { padding-top: 40px; padding-bottom: 80px; }
  .articles-grid { grid-template-columns: 1fr; gap: 42px; }
  .popular-articles { padding: 76px 16px 72px; }
  .popular-articles__heading { margin-bottom: 30px; }
  .popular-articles__heading h2 { font-size: 42px; }
  .popular-articles .article-card { border-radius: 14px; }
  .popular-articles .article-card__body { padding: 14px; }
  .popular-articles .splide__pagination { margin-top: 20px; }
  .article-detail { padding-top: 128px; }
  .content-breadcrumbs, .article-detail > .content-breadcrumbs { margin-bottom: 28px; }
  .article-detail__body { font-size: 17px; }
  .article-detail__body table { display: block; overflow-x: auto; }
  .articles-page .article-card { border-radius: 14px; }
  .articles-page .article-card__body { padding: 14px; }
}
