.articles-page {
  --a-ink: #17201e;
  --a-muted: #66706c;
  --a-paper: #f4f2ed;
  --a-surface: #fff;
  --a-line: #d9ddd8;
  --a-soft: #e9ede8;
  --a-accent: #bd392d;
  --a-accent-dark: #91291f;
  --a-radius: 18px;
  color: var(--a-ink);
  background: var(--a-paper);
  padding: 18px 0 clamp(72px, 9vw, 132px);
}

.articles-page * { box-sizing: border-box; }
.articles-page a { color: inherit; }
.articles-page :where(a, button, input, summary):focus-visible {
  outline: 3px solid rgba(189, 57, 45, .42);
  outline-offset: 3px;
}
.articles-page h1,
.articles-page h2,
.articles-page h3 { font-family: "Inter", sans-serif; text-wrap: balance; }
.articles-page p { text-wrap: pretty; }
.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;
}

/* Editorial cover */
.articles-hero {
  width: min(calc(100% - 36px), 1320px) !important;
  min-height: 610px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(390px, .82fr) minmax(0, 1.18fr) !important;
  overflow: hidden;
  border: 1px solid var(--a-line) !important;
  border-radius: var(--a-radius) !important;
  background: var(--a-surface) !important;
  color: var(--a-ink) !important;
  box-shadow: 0 18px 55px rgba(31, 39, 36, .07);
}
.articles-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(44px, 6vw, 86px);
}
.articles-hero__copy::before {
  content: "";
  position: absolute;
  top: 54px; bottom: 54px; left: 0;
  width: 5px;
  background: var(--a-accent);
}
.articles-breadcrumbs {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: auto;
  color: var(--a-muted); font-size: 13px; font-weight: 600;
}
.articles-breadcrumbs a { text-decoration: none; }
.articles-breadcrumbs a:hover { color: var(--a-accent); }
.articles-breadcrumbs svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.articles-eyebrow,
.articles-heading p,
.articles-popular header p,
.articles-guide > div > p,
.articles-info__intro > p,
.articles-faq > p {
  margin: 0 0 12px;
  color: var(--a-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.articles-eyebrow { margin-top: clamp(38px, 7vh, 72px); }
.articles-hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--a-ink) !important;
  font-size: clamp(48px, 5vw, 78px) !important;
  font-weight: 770 !important;
  line-height: .96 !important;
  letter-spacing: -.065em !important;
}
.articles-hero__lead {
  max-width: 510px;
  margin: 24px 0 0 !important;
  color: var(--a-muted) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}
.articles-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 30px;
  padding: 7px 7px 7px 16px;
  border: 1px solid #cfd5d0;
  border-radius: 11px;
  background: #fafaf8;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.articles-search:focus-within { border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(189, 57, 45, .1); }
.articles-search svg { width: 21px; height: 21px; fill: none; stroke: #76817c; stroke-width: 1.8; }
.articles-search input {
  min-width: 0; height: 46px; padding: 0;
  border: 0 !important; outline: 0 !important; background: transparent !important;
  color: var(--a-ink) !important; font: 500 15px/1.2 "Inter", sans-serif;
}
.articles-search input::placeholder { color: #8a938f; }
.articles-search button {
  min-height: 44px; padding: 0 21px;
  border: 0; border-radius: 8px;
  background: var(--a-ink); color: #fff;
  font: 750 14px/1 "Inter", sans-serif; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.articles-search button:hover { background: var(--a-accent); }
.articles-search button:active { transform: translateY(1px); }
.articles-hero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: auto; padding-top: 34px;
  color: var(--a-muted); font-size: 12px;
}
.articles-hero__facts span { display: inline-flex; align-items: center; gap: 5px; }
.articles-hero__facts span + span::before { content: ""; width: 4px; height: 4px; margin-right: 7px; border-radius: 50%; background: #aeb6b2; }
.articles-hero__facts strong { color: var(--a-ink); font-size: 14px; }
.articles-hero__visual {
  position: relative; min-width: 0; min-height: 610px; margin: 0;
  overflow: hidden; background: #d9ddd8;
}
.articles-hero__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 17, 15, .48));
  pointer-events: none;
}
.articles-hero__visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.articles-hero__visual figcaption {
  position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px;
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  color: #fff; font-size: 14px; font-weight: 650;
}
.articles-hero__visual figcaption span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.articles-shell { width: min(calc(100% - 36px), 1240px); margin: 0 auto; }
.articles-topics {
  display: flex; gap: 8px; margin: 48px 0 0; padding: 0 0 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.articles-topics::-webkit-scrollbar { display: none; }
.articles-topics a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 15px;
  border: 1px solid var(--a-line); border-radius: 9px;
  background: rgba(255,255,255,.7); color: #414b47;
  font-size: 13px; font-weight: 700; text-decoration: none;
  scroll-snap-align: start; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.articles-topics a:hover { border-color: #aab3ae; background: #fff; }
.articles-topics a span { color: #909894; font-size: 11px; font-weight: 700; }
.articles-topics a.is-active { border-color: var(--a-ink) !important; background: var(--a-ink) !important; color: #fff !important; }
.articles-topics a.is-active span { color: rgba(255,255,255,.65); }

.articles-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin: clamp(54px, 7vw, 88px) 0 28px;
}
.articles-heading p { margin-bottom: 9px; }
.articles-heading h2,
.articles-popular h2,
.articles-guide h2,
.articles-info h2,
.articles-faq h2 {
  margin: 0; color: var(--a-ink);
  font-size: clamp(30px, 3.4vw, 48px); font-weight: 760; line-height: 1.02; letter-spacing: -.05em;
}
.articles-heading > span { padding-bottom: 5px; color: var(--a-muted); font-size: 13px; white-space: nowrap; }

.articles-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px 20px; }
.article-tile {
  grid-column: span 4; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--a-line); border-radius: 14px;
  background: var(--a-surface);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-tile:hover { transform: translateY(-4px); border-color: #bcc4c0; box-shadow: 0 18px 42px rgba(26, 36, 32, .1); }
.article-tile--featured { grid-column: span 8; }
.article-tile__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dce0dc; text-decoration: none; }
.article-tile--featured .article-tile__media { aspect-ratio: 2 / 1; }
.article-tile__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .65s cubic-bezier(.2,.65,.25,1); }
.article-tile:hover .article-tile__media img { transform: scale(1.035); }
.article-tile__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: var(--a-soft); color: #a0aaa5; font-size: 22px; font-weight: 850; letter-spacing: .18em; }
.article-tile__flag {
  position: absolute; top: 16px; left: 16px; padding: 8px 10px;
  border-radius: 6px; background: var(--a-accent); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.article-tile__content { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 24px; }
.article-tile--featured .article-tile__content { padding: 26px 28px 28px; }
.article-tile__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--a-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.article-tile__meta > span[aria-hidden] { width: 3px; height: 3px; border-radius: 50%; background: #aab2ae; }
.article-tile h3 { margin: 14px 0 0; font-size: 22px; font-weight: 740; line-height: 1.16; letter-spacing: -.035em; }
.article-tile--featured h3 { max-width: 22ch; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; }
.article-tile h3 a { color: var(--a-ink); text-decoration: none; }
.article-tile h3 a:hover { color: var(--a-accent-dark); }
.article-tile p { margin: 12px 0 0; color: var(--a-muted); font-size: 14px; line-height: 1.58; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.article-tile--featured p { max-width: 62ch; font-size: 15px; }
.article-tile__action { display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-top: auto; padding-top: 22px; color: var(--a-accent) !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.article-tile__action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.article-tile:hover .article-tile__action svg { transform: translateX(4px); }

.articles-empty { grid-column: 1 / -1; padding: 64px 24px; border: 1px dashed #bcc5c0; border-radius: 14px; background: rgba(255,255,255,.55); text-align: center; }
.articles-empty > span { color: var(--a-accent); font-size: 42px; }
.articles-empty h2 { margin: 8px 0; font-size: 28px; }
.articles-empty p { margin: 0 auto; color: var(--a-muted); }
.articles-empty a { display: inline-flex; margin-top: 20px; color: var(--a-accent); font-weight: 800; }

.articles-pagination { margin: 48px 0 0; }
.articles-pagination nav > div:first-child { display: none; }
.articles-pagination nav > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.articles-pagination nav > div:last-child > div:first-child { color: var(--a-muted); font-size: 12px; }
.articles-pagination nav > div:last-child > div:last-child { display: flex; align-items: center; }
.articles-pagination a,
.articles-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; margin-left: -1px; padding: 0 13px; border: 1px solid var(--a-line) !important; border-radius: 0 !important; background: #fff !important; color: var(--a-ink) !important; font-size: 13px; text-decoration: none; }
.articles-pagination a:hover { position: relative; border-color: var(--a-accent) !important; color: var(--a-accent) !important; }
.articles-pagination [aria-current="page"] span { position: relative; border-color: var(--a-ink) !important; background: var(--a-ink) !important; color: #fff !important; }

.articles-popular { margin-top: clamp(72px, 9vw, 124px); padding-top: 38px; border-top: 1px solid var(--a-line) !important; }
.articles-popular header { display: flex; align-items: end; justify-content: space-between; }
.articles-popular ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.articles-popular li { border-top: 2px solid var(--a-ink); }
.articles-popular li a { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px; align-items: center; gap: 16px; min-height: 126px; text-decoration: none; }
.articles-popular__number { align-self: start; padding-top: 22px; color: var(--a-accent); font-size: 12px; font-weight: 850; }
.articles-popular__copy { min-width: 0; }
.articles-popular__copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--a-ink); font-size: 15px; line-height: 1.35; }
.articles-popular__copy small { display: block; margin-top: 9px; color: var(--a-muted); font-size: 11px; }
.articles-popular img { width: 90px; height: 72px; display: block; object-fit: cover; border-radius: 7px; }
.articles-popular li a:hover strong { color: var(--a-accent-dark); }

.articles-guide { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 92px); margin-top: clamp(72px, 9vw, 124px); padding: clamp(36px, 6vw, 72px); border-radius: var(--a-radius); background: #e5e6d8; }
.articles-guide > div > span { display: block; max-width: 48ch; margin-top: 18px; color: #5e6863; font-size: 15px; line-height: 1.6; }
.articles-guide nav { display: grid; }
.articles-guide nav a { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 92px; padding: 16px 48px 16px 0; border-bottom: 1px solid rgba(23,32,30,.18); text-decoration: none; }
.articles-guide nav a:first-child { border-top: 1px solid rgba(23,32,30,.18); }
.articles-guide nav a::after { content: "↗"; position: absolute; right: 4px; color: var(--a-accent); font-size: 24px; transition: transform .2s ease; }
.articles-guide nav a:hover::after { transform: translate(3px,-3px); }
.articles-guide nav strong { font-size: 18px; }
.articles-guide nav span { margin-top: 5px; color: #68716d; font-size: 12px; }

.articles-info { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 8vw, 120px); margin-top: clamp(72px, 9vw, 124px); padding: 0 0 clamp(64px, 8vw, 100px); border-bottom: 1px solid var(--a-line); }
.articles-info h2 { max-width: 13ch; font-size: clamp(30px, 3.8vw, 52px); }
.articles-info__text { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 28px; }
.articles-info__text p { margin: 0; color: var(--a-muted); font-size: 14px; line-height: 1.75; }

.articles-faq { max-width: 880px; margin-top: clamp(72px, 9vw, 112px); }
.articles-faq > div { margin-top: 32px; border-top: 1px solid var(--a-line); }
.articles-faq details { border-bottom: 1px solid var(--a-line) !important; }
.articles-faq summary { position: relative; display: flex; align-items: center; min-height: 74px; padding: 18px 52px 18px 0; list-style: none; color: var(--a-ink); font-size: 16px; font-weight: 750; cursor: pointer; }
.articles-faq summary::-webkit-details-marker { display: none; }
.articles-faq summary::after { content: "+"; position: absolute; right: 8px; color: var(--a-accent); font-size: 26px; font-weight: 400; transition: transform .2s ease; }
.articles-faq details[open] summary::after { transform: rotate(45deg); }
.articles-faq details p { max-width: 70ch; margin: -4px 52px 22px 0; color: var(--a-muted); font-size: 14px; line-height: 1.7; }
.articles-updated { margin: 42px 0 0; color: #88918d; font-size: 11px; text-align: right; }

@media (max-width: 1060px) {
  .articles-hero { grid-template-columns: minmax(350px, .95fr) 1.05fr !important; min-height: 560px !important; }
  .articles-hero__copy { padding: 48px; }
  .articles-hero__visual { min-height: 560px; }
  .article-tile { grid-column: span 6; }
  .article-tile--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.08fr .92fr; }
  .article-tile--featured .article-tile__media { aspect-ratio: auto; min-height: 390px; }
  .articles-popular ol { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 780px) {
  .articles-page { padding-top: 10px; }
  .articles-hero { width: calc(100% - 24px) !important; min-height: 0 !important; grid-template-columns: 1fr !important; }
  .articles-hero__copy { padding: 30px 24px 34px; }
  .articles-hero__copy::before { top: 28px; bottom: auto; width: 48px; height: 4px; }
  .articles-breadcrumbs { margin: 16px 0 42px; }
  .articles-eyebrow { margin-top: 0; }
  .articles-hero h1 { max-width: 11ch; font-size: clamp(42px, 12vw, 64px) !important; }
  .articles-hero__lead { margin-top: 18px !important; font-size: 15px !important; }
  .articles-hero__facts { padding-top: 26px; }
  .articles-hero__visual { min-height: 310px; }
  .articles-hero__visual figcaption { right: 20px; bottom: 20px; left: 20px; }
  .articles-shell { width: calc(100% - 24px); }
  .articles-topics { margin-top: 28px; }
  .articles-heading { margin-top: 54px; }
  .articles-heading > span { display: none; }
  .article-tile--featured { display: flex; }
  .article-tile--featured .article-tile__media { min-height: 0; aspect-ratio: 16 / 10; }
  .articles-guide,
  .articles-info { grid-template-columns: 1fr; }
  .articles-guide { padding: 34px 26px; }
  .articles-info__text { padding-top: 0; }
}

@media (max-width: 580px) {
  .articles-search { grid-template-columns: 20px minmax(0, 1fr); padding: 8px 12px; }
  .articles-search input { height: 42px; font-size: 14px; }
  .articles-search button { grid-column: 1 / -1; width: 100%; }
  .articles-hero__facts span:last-child { flex-basis: 100%; }
  .articles-hero__facts span:last-child::before { display: none; }
  .articles-hero__visual { min-height: 250px; }
  .articles-hero__visual figcaption { font-size: 12px; }
  .articles-hero__visual figcaption span { display: none; }
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-tile,
  .article-tile--featured { grid-column: 1; }
  .article-tile__media,
  .article-tile--featured .article-tile__media { aspect-ratio: 16 / 10; }
  .article-tile__content,
  .article-tile--featured .article-tile__content { padding: 20px; }
  .article-tile h3,
  .article-tile--featured h3 { font-size: 22px; }
  .article-tile p { -webkit-line-clamp: 2; }
  .articles-pagination nav > div:last-child > div:first-child { display: none; }
  .articles-pagination nav > div:last-child { justify-content: center; }
  .articles-pagination a,
  .articles-pagination span { min-width: 37px; height: 39px; padding: 0 10px; }
  .articles-popular li a { grid-template-columns: 30px minmax(0, 1fr) 76px; gap: 10px; }
  .articles-popular img { width: 76px; height: 62px; }
  .articles-info__text { grid-template-columns: 1fr; gap: 16px; }
  .articles-faq summary { min-height: 68px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .articles-page *, .articles-page *::before, .articles-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
