/* Article page — Figma 982:495 desktop, 992:765 mobile (402px frame) */

.article-page.site-main {
  margin: 0;
  padding: 0;
  max-width: none;
}

.article-page-layout {
  --article-inset: var(--silver-inset-x);
  --article-gold: #7EAEB6;
  --article-dark: #121211;
  --article-muted: #6a6a68;
  --article-panel: #fafaf8;
  --article-font-outfit: "Outfit", var(--font-konnect), sans-serif;

  width: 100%;
  background: #fff;
}

/* —— Hero (718px, image + 40% overlay) —— */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 718px;
  overflow: hidden;
  background: var(--article-dark);
}

.article-hero__media {
  position: absolute;
  inset: 0;
}

.article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 718px;
  object-fit: cover;
  object-position: center;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.article-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 718px;
  padding: 0 var(--article-inset);
  text-align: center;
}

.article-hero__eyebrow {
  margin: 0 0 26px;
  font-family: var(--font-konnect);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.2;
  color: #fff;
}

.article-hero__title {
  max-width: 1025px;
  margin: 0 0 28px;
  font-family: var(--font-konnect);
  font-size: 112px;
  font-weight: 800;
  line-height: 0.97;
  color: #fff;
}

.article-hero__description {
  max-width: 758px;
  margin: 0;
  font-family: var(--font-konnect);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.41;
  color: #fff;
}

/* —— Main white block —— */
.article-page-layout__main {
  padding: 80px var(--article-inset) 0;
}

/* —— Featured header —— */
.article-featured {
  margin-bottom: 55px;
}

.article-featured__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-konnect);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--article-dark);
  text-transform: capitalize;
}

.article-featured__title {
  margin: 0;
  font-family: var(--font-konnect);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--article-dark);
}

/* —— Split body —— */
.article-body {
  padding-bottom: 80px;
}

.article-body__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 20px;
}

.article-body__gallery {
  width: 100%;
  /* max-width: 648px; */
  min-width: 0;
}

.article-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 648 / 672;
  overflow: hidden;
  background: #d9d9d9;
}

.article-gallery-main .swiper-wrapper,
.article-gallery-main .swiper-slide {
  height: 100% !important;
}

.article-gallery-main__slide {
  box-sizing: border-box;
}

.article-gallery-main__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.article-gallery-main__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.article-gallery-main__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: var(--article-dark);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.article-gallery-main__nav svg {
  width: 22px;
  height: 22px;
}

.article-gallery-main__nav:hover {
  opacity: 0.9;
}

.article-gallery-main__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.article-gallery-main__nav--prev {
  left: 16px;
}

.article-gallery-main__nav--next {
  right: 16px;
}

/* —— Thumbnails —— */
.article-gallery-thumbs {
  margin-top: 20px;
  overflow: hidden;
}

.article-gallery-thumbs .swiper-wrapper {
  align-items: flex-end;
}

.article-gallery-thumbs__slide {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #d9d9d9;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-gallery-thumbs__slide.is-active,
.article-gallery-thumbs__slide.swiper-slide-thumb-active {
  border-color: #000;
}

.article-gallery-thumbs__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.article-body__content {
  min-width: 0;
  padding-top: 39px;
}

.article-body__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-body__flag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  padding: 5px 12px;
  font-family: var(--article-font-outfit);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.43;
  color: var(--article-dark);
  background: var(--article-gold);
}

.article-body__title {
  margin: 0 0 20px;
  font-family: var(--font-konnect);
  font-size: 45px;
  font-weight: 700;
  line-height: 1.09;
  color: var(--article-dark);
}

.article-body__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.article-body__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--article-font-outfit);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--article-dark);
}

.article-body__meta-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.article-body__text {
  font-family: var(--font-konnect);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.61;
  color: var(--article-dark);
}

.article-body__text p {
  margin: 0 0 20px;
  text-align: justify;
}

.article-body__text p:last-child {
  margin-bottom: 0;
}

.article-body__text h2,
.article-body__text h3,
.article-body__text h4 {
  margin: 32px 0 16px;
  font-family: var(--font-konnect);
  font-weight: 700;
  line-height: 1.2;
  color: var(--article-dark);
  text-align: start;
}

.article-body__text h2 {
  font-size: 28px;
}

.article-body__text h3 {
  font-size: 22px;
}

.article-body__text h4 {
  font-size: 18px;
}

.article-body__text > :first-child {
  margin-top: 0;
}

.article-body__text ul,
.article-body__text ol {
  margin: 0 0 20px;
  padding-inline-start: 1.4em;
}

.article-body__text li {
  margin-bottom: 8px;
}

.article-body__text li:last-child {
  margin-bottom: 0;
}

.article-body__text ul:last-child,
.article-body__text ol:last-child {
  margin-bottom: 0;
}

.article-body__text strong {
  font-weight: 600;
}

/* —— Recent articles panel —— */
.article-related {
  padding: 52px var(--article-inset) 88px;
  background: var(--article-panel);
}

.article-related__header {
  margin: 0 auto 48px;
  text-align: center;
}

.article-related__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-konnect);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--article-dark);
  text-transform: capitalize;
}

.article-related__title {
  margin: 0;
  font-family: var(--font-konnect);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--article-dark);
  text-transform: uppercase;
}

.article-related__title-accent {
  color: #7EAEB6;
}

.article-related__slider-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.article-related-swiper {
  overflow: hidden;
}

.article-related-swiper .swiper-wrapper {
  align-items: stretch;
}

.article-related-swiper__slide {
  flex-shrink: 0;
  width: 424px;
  height: auto;
  box-sizing: border-box;
}

.article-related__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.article-related__nav:hover {
  opacity: 0.9;
}

.article-related__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.article-related__nav--prev {
  left: 0;
}

.article-related__nav--next {
  right: 0;
}

/* —— Card —— */
.article-card {
  min-width: 0;
  background: #fff;
}

.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.article-card__media {
  aspect-ratio: 422 / 318;
  overflow: hidden;
  background: var(--article-dark);
}

.article-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.article-card__link:hover .article-card__image {
  transform: scale(1.03);
}

.article-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 31px 28px;
}

.article-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.article-card__flag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  padding: 5px 14px;
  font-family: var(--article-font-outfit);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.69px;
  color: #fff;
  text-transform: uppercase;
  background: var(--article-dark);
}

.article-card__title {
  margin: 0 0 12px;
  font-family: var(--font-konnect);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--article-dark);
}

.article-card__meta {
  margin: 0 0 18px;
  font-family: var(--article-font-outfit);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--article-dark);
}

.article-card__excerpt {
  margin: 0 0 16px;
  font-family: var(--font-konnect);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.68;
  color: var(--article-dark);
}

.article-card__read-more {
  margin-top: auto;
  font-family: var(--font-konnect);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.44;
  color: var(--article-dark);
}

.article-card__link:hover .article-card__read-more {
  opacity: 0.75;
}

/* —— Newsletter (horizontal gold) —— */
.article-newsletter {
  padding: 48px var(--article-inset) 56px;
  background: #dadbd9;
}

.article-newsletter__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.article-newsletter__copy {
  flex: 0 1 auto;
  min-width: 0;
}

.article-newsletter__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-konnect);
  font-size: 31px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--article-dark);
}

.article-newsletter__title {
  margin: 0;
  font-family: var(--font-konnect);
  font-size: 61px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--article-dark);
}

.article-newsletter__form {
  display: flex;
  flex: 0 1 520px;
  align-items: stretch;
  min-width: 0;
  max-width: 520px;
}

.article-newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border: none;
  font-family: var(--article-font-outfit);
  font-size: 15px;
  font-weight: 400;
  color: var(--article-dark);
  background: #fff;
}

.article-newsletter__input::placeholder {
  color: #9a9a99;
}

.article-newsletter__input:focus {
  outline: 2px solid var(--article-dark);
  outline-offset: -2px;
}

.article-newsletter__submit {
  flex: 0 0 auto;
  min-width: 148px;
  height: 56px;
  padding: 0 24px;
  border: none;
  font-family: var(--font-konnect);
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  background: var(--article-dark);
  cursor: pointer;
}

.article-newsletter__submit:hover {
  opacity: 0.9;
}

/* —— Tablet —— */
@media (max-width: 1200px) and (min-width: 993px) {
  .article-hero__title {
    font-size: 72px;
  }

  .article-body__split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .article-body__gallery {
    max-width: none;
  }

  .article-related-swiper__slide {
    width: clamp(280px, 35vw, 424px);
  }

  .article-newsletter__title {
    font-size: 48px;
  }
}

/* —— Mobile (Figma 992:765 — 402px frame) —— */
@media (max-width: 992px) {
  .silver-article-page .header__bar {
    max-width: none;
  }

  /* Hero band 389px — image full bleed, copy uses global inset */
  .article-hero {
    min-height: min(96.8vw, 389px);
  }

  .article-hero__image {
    min-height: min(96.8vw, 389px);
    object-position: center 42%;
  }

  .article-hero__overlay {
    background: rgba(0, 0, 0, 0.4);
  }

  .article-hero__content {
    justify-content: center;
    min-height: min(96.8vw, 389px);
    padding: 0 var(--article-inset) 0;
    text-align: center;
  }

  .article-hero__eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.2;
  }

  .article-hero__title {
    max-width: none;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
  }

  .article-hero__description {
    max-width: none;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.45;
  }

  .article-page-layout__main {
    padding: 24px var(--article-inset) 0;
  }

  .article-featured {
    margin-bottom: 20px;
    text-align: center;
  }

  .article-featured__eyebrow {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
  }

  .article-featured__title {
    font-size: 24px;
    line-height: 1.15;
  }

  .article-body {
    padding-bottom: 28px;
  }

  .article-body__split {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  .article-body__gallery {
    max-width: none;
    width: 100%;
  }

  .article-gallery-main {
    aspect-ratio: 648 / 672;
  }

  .article-gallery-main__nav {
    width: 36px;
    height: 36px;
  }

  .article-gallery-main__nav svg {
    width: 18px;
    height: 18px;
  }

  .article-gallery-main__nav--prev {
    left: 12px;
  }

  .article-gallery-main__nav--next {
    right: 12px;
  }

  .article-body__content {
    padding-top: 20px;
  }

  .article-body__flags {
    gap: 6px;
    margin-bottom: 12px;
  }

  .article-body__flag {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.35;
  }

  .article-body__title {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.2;
  }

  .article-body__meta {
    gap: 16px;
    margin-bottom: 16px;
  }

  .article-body__meta-item {
    gap: 6px;
    font-size: 14px;
    line-height: 1.4;
  }

  .article-body__meta-icon {
    width: 16px;
    height: 16px;
  }

  .article-body__text {
    font-size: 14px;
    line-height: 1.55;
  }

  .article-body__text p {
    margin-bottom: 16px;
    font-weight: 300;
    text-align: start;
  }

  .article-body__text h2 {
    margin: 24px 0 12px;
    font-size: 20px;
  }

  .article-body__text h3 {
    margin: 20px 0 10px;
    font-size: 17px;
  }

  .article-body__text h4 {
    margin: 16px 0 8px;
    font-size: 15px;
  }

  .article-body__text ul,
  .article-body__text ol {
    margin-bottom: 16px;
    padding-inline-start: 1.2em;
  }

  .article-body__text li {
    margin-bottom: 6px;
  }

  .article-gallery-thumbs {
    margin-top: 12px;
    width: 100%;
  }

  .article-gallery-thumbs__slide {
    width: 72px;
    height: 72px;
    aspect-ratio: 1;
  }

  .article-gallery-thumbs__slide:nth-child(3).is-active,
  .article-gallery-thumbs__slide:nth-child(3).swiper-slide-thumb-active {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
  }

  .article-related {
    padding: 36px var(--article-inset) 40px;
    overflow-x: clip;
  }

  .article-related__header {
    margin-bottom: 20px;
    text-align: center;
  }

  .article-related__eyebrow {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
  }

  .article-related__title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: 0.01em;
  }

  .article-related__slider-wrap {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .article-related-swiper {
    overflow: hidden;
    width: 100%;
  }

  .article-related-swiper__slide {
    width: calc((100% - 12px) / 1.12);
    max-width: none;
  }

  .article-related__nav {
    display: none;
  }

  .article-card__body {
    padding: 14px 16px 20px;
  }

  .article-card__flags {
    gap: 6px;
    margin-bottom: 10px;
  }

  .article-card__flag {
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.04em;
  }

  .article-card__title {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.25;
  }

  .article-card__meta {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  .article-card__excerpt {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .article-card__read-more {
    font-size: 15px;
    line-height: 1.4;
  }

  .article-newsletter {
    padding: 28px var(--article-inset) 36px;
  }

  .article-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .article-newsletter__eyebrow {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.2;
  }

  .article-newsletter__title {
    font-size: 26px;
    line-height: 1.1;
  }

  .article-newsletter__form {
    flex: 1 1 auto;
    flex-direction: column;
    max-width: none;
  }

  .article-newsletter__input {
    height: 48px;
    font-size: 13px;
  }

  .article-newsletter__submit {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 15px;
    letter-spacing: 0.06em;
  }

  .article-gallery-thumbs .swiper-wrapper{
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .article-hero__content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .article-hero__title {
    font-size: 28px;
  }

  .article-page-layout__main {
    padding-top: 20px;
  }

  .article-featured__eyebrow,
  .article-related__eyebrow {
    font-size: 16px;
  }

  .article-featured__title,
  .article-related__title {
    font-size: 22px;
  }

  .article-body__title {
    font-size: 20px;
  }

  .article-gallery-thumbs__slide {
    width: 64px;
    height: 64px;
  }

  .article-gallery-thumbs__slide:nth-child(3).is-active,
  .article-gallery-thumbs__slide:nth-child(3).swiper-slide-thumb-active {
    width: 64px;
    height: 64px;
  }

  .article-related-swiper__slide {
    width: calc((100% - 10px) / 1.1);
  }

  .article-newsletter__title {
    font-size: 24px;
  }
}

@media (max-width: 430px) {
  .article-hero__title {
    font-size: 26px;
  }

  .article-hero__description {
    font-size: 12px;
  }

  .article-featured__title,
  .article-related__title {
    font-size: 22px;
  }

  .article-newsletter__title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card__image {
    transition: none !important;
  }
}
