.article-page {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding: 8.5rem 1.5rem 4rem;
}
@media (min-width: 768px) {
  .article-page { padding: 9.5rem 2rem 5rem; }
}

.article-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.15rem;
  min-height: 44px;
  color: #a1a1aa;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.article-back:hover { color: #fff; transform: translateX(-2px); }

/* Full-width hero thumbnail on top */
.article-cover {
  width: 100%;
  margin: 0 0 2.5rem;
}
.article-cover .note-cover {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #0a0a0a;
  isolation: isolate;
  aspect-ratio: 16 / 8.5;
  min-height: 220px;
  width: 100%;
}
@media (min-width: 640px) {
  .article-cover .note-cover {
    min-height: 340px;
    aspect-ratio: 16 / 7.5;
  }
}
@media (min-width: 960px) {
  .article-cover .note-cover {
    min-height: 440px;
    aspect-ratio: 16 / 6.8;
    border-radius: 1.5rem;
  }
}
@media (min-width: 1180px) {
  .article-cover .note-cover { min-height: 480px; }
}

.note-cover__visual {
  position: absolute;
  inset: 0;
}
.note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Three columns below the thumbnail */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 11.5rem minmax(0, 1fr) 18rem;
    gap: 2.5rem 3rem;
    position: relative;
  }
}
@media (min-width: 1180px) {
  .article-layout {
    grid-template-columns: 13rem minmax(0, 1fr) 19rem;
    gap: 3rem 3.5rem;
  }
}

.article-toc { order: 1; }
.article-body { order: 2; min-width: 0; }
.article-cta-col { order: 3; }

@media (min-width: 960px) {
  .article-toc,
  .article-cta-col {
    position: relative;
    align-self: stretch;
  }
}

.article-toc__sticky,
.article-cta__sticky {
  position: static;
}

.article-toc__time {
  font-family: Manrope, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}
.article-toc__rule {
  width: 3.4rem;
  height: 2px;
  border: 0;
  margin: 0 0 1.15rem;
  background: linear-gradient(90deg, #ff3131, #ff914d);
}
.article-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (max-width: 959px) {
  .article-toc__sticky {
    position: static;
  }
  .article-toc {
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .article-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
  }
  .article-cta-col { display: none; }
}
.article-toc a {
  color: #8b8b8b;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.2s ease, font-weight 0.2s ease;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  margin-left: -0.65rem;
}
.article-toc a:hover { color: #e4e4e7; }
.article-toc a.is-active {
  color: #ff914d;
  font-weight: 700;
  border-left-color: #ff914d;
}

.article-body h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 0.7rem;
}
.article-meta {
  color: #71717a;
  font-size: 0.88rem;
  margin: 0 0 1.85rem;
}

.article-prose h2 {
  font-family: Manrope, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 0.35rem;
  padding-top: 1.5rem;
  padding-bottom: 0;
  scroll-margin-top: 7.5rem;
}
/* Only the first section title (Overview) — not every h2 inside a section */
.article-prose > section:first-child h2 {
  margin-top: 0;
  padding-top: 0;
}
.article-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.article-facts li {
  color: #c4c4c8;
  font-size: 1.02rem;
  line-height: 1.55;
}
.article-facts b {
  color: #fff;
  font-weight: 700;
  margin-right: 0.28rem;
}
.article-prose p {
  color: #b4b4b8;
  font-size: 1.05rem;
  line-height: 1.78;
  margin: 0 0 0.85rem;
}
.article-prose p:last-child { margin-bottom: 0; }
.article-prose strong { color: #fff; font-weight: 700; }

.article-author {
  margin-top: 3.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
@media (min-width: 960px) {
  .article-author {
    margin-left: calc(11.5rem + 3rem);
    margin-right: calc(18rem + 3rem);
  }
}
@media (min-width: 1180px) {
  .article-author {
    margin-left: calc(13rem + 3.5rem);
    margin-right: calc(19rem + 3.5rem);
  }
}
.article-author__avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.35rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 145, 77, 0.45) 0%, rgba(255, 49, 49, 0.18) 42%, transparent 70%),
    #141414;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.article-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.article-author__name {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
}
.article-author__role {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a1a1aa;
}
.article-author__bio {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #b4b4b8;
}
.article-author__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.article-author__social-btn {
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.article-author__social-btn:hover {
  background: rgba(255, 145, 77, 0.18);
  color: #ff914d;
  transform: translateY(-2px);
}

.article-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 960px) {
  .article-pager {
    margin-left: calc(11.5rem + 3rem);
    margin-right: calc(18rem + 3rem);
  }
}
@media (min-width: 1180px) {
  .article-pager {
    margin-left: calc(13rem + 3.5rem);
    margin-right: calc(19rem + 3.5rem);
  }
}
.article-pager a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 46%;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-pager a:last-child { text-align: right; margin-left: auto; }
.article-pager a:hover { color: #fff; }
.article-pager a:first-child:hover { transform: translateX(-3px); }
.article-pager a:last-child:hover { transform: translateX(3px); }
.article-pager b {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  margin-top: 0.25rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #0a0a0a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --border-gradient: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.06) 42%, rgba(255,255,255,0.06) 58%, rgba(255,255,255,0.22));
  --border-radius-before: 1.35rem;
}
.cta-card__media {
  position: relative;
  height: 168px;
  overflow: hidden;
}
.cta-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-card__body {
  padding: 1.2rem 1.2rem 1.3rem;
  background: #070707;
}
.cta-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 77, 0.45);
  color: #ffd4b3;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.cta-card h2 {
  font-family: Manrope, sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem;
}
.cta-card h2 em {
  font-style: italic;
  font-weight: 500;
  background-image: linear-gradient(90deg, #ff3131, #ff914d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.12em;
}
.cta-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cta-card__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #d4d4d8;
  font-size: 0.88rem;
  font-weight: 600;
}
.cta-card__check {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(90deg, #ff3131, #ff914d);
  color: #fff;
}
.cta-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(90deg, #ff3131, #ff914d);
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta-card__btn:hover { filter: brightness(1.08); }
.cta-card__btn:active { transform: scale(0.98); }

@media (min-width: 960px) and (max-width: 1179px) {
  .cta-card__media { height: 140px; }
  .cta-card h2 { font-size: 1.28rem; }
}

/* overflow on html/body breaks position:sticky — reset on article pages */
html:has(body[data-note]),
html:has(body[data-note]) body {
  overflow: visible !important;
}
