.article-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(212, 174, 48, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--oyster), #f3efe6 52%, var(--oyster));
}

html {
  scroll-padding-top: 118px;
}

.article-progress,
.reading-progress [data-reading-progress] {
  height: 4px;
  background:
    linear-gradient(90deg, var(--gold), var(--gold-light), rgba(240, 228, 168, 0.95));
  box-shadow: 0 0 18px rgba(212, 174, 48, 0.34);
}

.article-hero {
  isolation: isolate;
  min-height: clamp(720px, 92vh, 980px);
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(20px, 5vw, 72px) 34px;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 174, 48, 0.86), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.article-hero__media {
  filter: saturate(0.92) contrast(1.04);
}

.article-hero__overlay {
  background:
    radial-gradient(circle at 76% 16%, rgba(212, 174, 48, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(15, 28, 22, 0.1) 0%, rgba(15, 28, 22, 0.48) 46%, rgba(15, 28, 22, 0.97) 100%),
    linear-gradient(90deg, rgba(15, 28, 22, 0.94) 0%, rgba(15, 28, 22, 0.58) 56%, rgba(15, 28, 22, 0.22));
}

.article-hero__content {
  padding-bottom: clamp(76px, 9vw, 112px);
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.article-category::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold-light);
}

.article-hero h1 {
  text-wrap: balance;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.article-subtitle {
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 1px solid rgba(212, 174, 48, 0.74);
  color: rgba(249, 248, 246, 0.86);
}

.article-hero__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  max-width: min(100%, 1060px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  box-sizing: border-box;
  max-width: min(100%, 690px);
  margin: 0;
  padding: 12px 16px;
  line-height: 1.45;
  background: rgba(15, 28, 22, 0.34);
  border: 1px solid rgba(212, 174, 48, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.article-meta span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.article-meta span + span {
  margin-left: 14px;
  padding-left: 14px;
}

.article-meta span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.2em;
  background: rgba(212, 174, 48, 0.32);
  transform: translateY(-50%);
}

.article-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 17px clamp(26px, 3vw, 40px);
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease);
}

.article-hero__cta:hover,
.article-hero__cta:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--jungle);
  letter-spacing: 0.22em;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.article-hero__cta:focus-visible {
  outline: 2px solid rgba(249, 248, 246, 0.95);
  outline-offset: 4px;
}

.article-layout {
  grid-template-columns: minmax(220px, 290px) minmax(0, 900px);
  gap: clamp(42px, 6vw, 92px);
}

.article-toc__inner {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 174, 48, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(184, 150, 12, 0.2);
  box-shadow: 0 28px 70px rgba(15, 28, 22, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.article-toc__inner::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 150, 12, 0.1);
  pointer-events: none;
}

.article-toc a {
  position: relative;
  padding: 10px 0 10px 18px;
}

.article-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(184, 150, 12, 0.32);
  transform: translateY(-50%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.article-toc a:hover::before,
.article-toc a.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(212, 174, 48, 0.54);
}

.article-content {
  position: relative;
  scroll-margin-top: 118px;
}

.article-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: -36px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(184, 150, 12, 0.26), transparent 28rem);
}

.article-section {
  position: relative;
}

.article-section h2 {
  max-width: 840px;
  text-wrap: balance;
}

.article-section h2::after {
  content: "";
  display: block;
  width: clamp(72px, 9vw, 118px);
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.article-lead {
  margin-bottom: clamp(34px, 5vw, 54px);
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 239, 228, 0.64));
  border: 1px solid rgba(184, 150, 12, 0.18);
  border-left: 3px solid var(--gold);
  box-shadow: 0 24px 70px rgba(15, 28, 22, 0.07);
}

.quick-answer,
.article-callout,
.article-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 174, 48, 0.2);
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 174, 48, 0.18), transparent 34%),
    linear-gradient(135deg, var(--jungle), var(--jungle-deep));
  box-shadow: 0 30px 90px rgba(15, 28, 22, 0.16);
}

.quick-answer::before,
.article-callout::before,
.article-cta::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212, 174, 48, 0.16);
  pointer-events: none;
}

.quick-answer > *,
.article-callout > *,
.article-cta > * {
  position: relative;
  z-index: 1;
}

.article-grid > div,
.comparison-grid > div,
.via-grid > div,
.related-grid a,
.mistake-list article {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 248, 246, 0.9));
  border: 1px solid rgba(184, 150, 12, 0.16);
  box-shadow: 0 16px 46px rgba(15, 28, 22, 0.055);
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.article-grid > div::before,
.comparison-grid > div::before,
.via-grid > div::before,
.related-grid a::before,
.mistake-list article::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 3vw, 34px);
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.article-grid > div:hover,
.comparison-grid > div:hover,
.via-grid > div:hover,
.related-grid a:hover,
.mistake-list article:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 150, 12, 0.32);
  box-shadow: 0 26px 70px rgba(15, 28, 22, 0.12);
}

.article-grid > div:hover::before,
.comparison-grid > div:hover::before,
.via-grid > div:hover::before,
.related-grid a:hover::before,
.mistake-list article:hover::before {
  transform: scaleX(1);
}

.table-wrap {
  border: 1px solid rgba(184, 150, 12, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 239, 228, 0.54));
  box-shadow: 0 24px 70px rgba(15, 28, 22, 0.07);
}

th {
  background: rgba(229, 223, 211, 0.62);
}

td {
  background: rgba(255, 255, 255, 0.72);
}

.via-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 150, 12, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 174, 48, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(229, 223, 211, 0.76));
  box-shadow: 0 24px 70px rgba(15, 28, 22, 0.07);
}

.faq-list {
  border-top: 0;
}

.faq-item {
  margin-bottom: 12px;
  padding: 0 clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 150, 12, 0.16);
}

.faq-answer {
  color: var(--muted);
}

.sources-section {
  padding-top: clamp(18px, 3vw, 34px);
  border-top: 1px solid rgba(184, 150, 12, 0.18);
}

@media (max-width: 980px) {
  .article-hero__details {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-hero__cta {
    align-self: flex-start;
    margin-top: 0;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100% - 36px, 900px) !important;
    gap: 34px !important;
  }

  .article-content,
  .article-toc,
  .article-toc__inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .article-toc {
    position: static !important;
  }

  .article-content::before {
    display: none;
  }

  .article-toc__inner {
    position: relative;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .article-hero {
    min-height: 760px;
  }

  .article-hero__content,
  .article-layout,
  .article-content,
  .article-section,
  .quick-answer,
  .article-callout,
  .article-cta,
  .via-section,
  .article-related,
  .article-sources {
    box-sizing: border-box;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .article-layout {
    width: min(100% - 28px, 680px) !important;
    padding-top: 52px !important;
  }

  .article-content {
    margin-inline: 0 !important;
    transform: none !important;
  }

  .article-hero__details {
    width: 100%;
  }

  .article-section h2,
  .article-section h3,
  .article-content p,
  .article-content li,
  .article-content td,
  .article-content th,
  .article-lead {
    overflow-wrap: anywhere;
  }

  .article-meta {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .article-meta span + span {
    margin-left: 0;
    padding-left: 0;
  }

  .article-meta span + span::before {
    display: none;
  }

  .article-hero__cta {
    width: 100%;
    padding: 17px 22px;
  }

  .article-category::before {
    width: 28px;
  }

  .article-lead {
    padding: 24px;
  }

  .table-wrap,
  .article-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap table,
  .article-table-wrap table,
  .article-content table {
    width: max-content;
    min-width: min(720px, calc(100vw - 28px));
    max-width: none;
  }

  .faq-question {
    gap: 16px;
    align-items: flex-start;
  }

  .faq-question span:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .faq-question .faq-icon,
  .faq-question span:last-child {
    flex: 0 0 auto;
  }

  .related-grid,
  .comparison-grid,
  .via-grid,
  .article-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
