/* Article detail page — Figma node 48:3816 */

.page-article {
  font-family: "Inter", "Hanken Grotesk", system-ui, sans-serif;
  background: #fff;
}

.article-main {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.article-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 450px;
  height: 450px;
  background: #000;
  overflow: hidden;
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.article-hero__bg > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 70%
  );
}

.article-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 40px;
}

.article-hero__content h1 {
  font-size: var(--type-hero);
  font-weight: 700;
  font-style: normal;
  line-height: var(--leading-hero);
  color: #fff;
  margin: 0 0 16px;
}

.article-hero__subtitle {
  max-width: 672px;
  font-size: var(--type-hero-sub);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ---------- Layout ---------- */
.article-layout {
  padding: 64px 40px 96px;
}

.article-layout__inner {
  max-width: var(--container-nav);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 441px;
  gap: 64px;
  align-items: start;
}

/* ---------- Article content ---------- */
.article-content {
  min-width: 0;
  max-width: 780px;
}

.article-header {
  padding-bottom: 25px;
  margin-bottom: 48px;
  border-bottom: 1px solid #9ca3af;
}

.article-header__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: #191c1d;
  margin: 0 0 16px;
}

.article-header__date {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.article-section__title {
  font-family: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 36px;
  color: #191c1d;
  margin: 0 0 24px;
}

.article-section__text {
  font-size: 16px;
  line-height: 26px;
  color: #5d5e61;
  margin: 0;
}

.article-featured {
  margin: 24px 0 0;
  border-radius: 2px;
  overflow: hidden;
}

.article-featured img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.article-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 26px;
  color: #5d5e61;
}

.article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e31e24;
}

/* ---------- Prev / Next nav ---------- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 49px;
  border-top: 1px solid #edeeef;
}

.article-nav__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px;
  border: 1px solid #e7bdb8;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-nav__card:hover {
  border-color: #e31e24;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-nav__card--next {
  justify-content: flex-end;
  text-align: right;
}

.article-nav__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.article-nav__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.article-nav__label {
  font-family: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5d5e61;
}

.article-nav__title {
  font-family: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #191c1d;
}

/* ---------- Sidebar ---------- */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  width: 100%;
}

.sidebar-block {
  padding: 32px;
  border: 1px solid #e7bdb8;
  border-radius: 2px;
  background: #fff;
}

.sidebar-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.sidebar-block__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  color: #191c1d;
  margin: 0;
}

.sidebar-block__bar {
  width: 32px;
  height: 2px;
  background: #e31e24;
  margin: 24px 0;
  flex-shrink: 0;
}

.sidebar-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e31e24;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-view-all:hover {
  opacity: 0.8;
}

.sidebar-view-all img {
  width: 7.2px;
  height: 7.2px;
  flex-shrink: 0;
}

/* TOC */
.sidebar-block--toc {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-block--toc .sidebar-block__title {
  margin: 0;
}

.article-toc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-toc__link {
  display: block;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  color: #5d5e61;
  border: none;
  transition: color 0.2s ease;
}

.article-toc__link:hover {
  color: #191c1d;
}

.article-toc__link.is-active {
  color: #e31e24;
  font-weight: 700;
}

/* Related articles */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: opacity 0.2s ease;
}

.related-item:hover {
  opacity: 0.85;
}

.related-item__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 2px;
}

.related-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.related-item__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #191c1d;
}

.related-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5d5e61;
  line-height: 15px;
}

/* CTA */
.sidebar-cta {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: #000;
  padding: 32px;
}

.sidebar-cta__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("../img/article-cta-pattern.png");
  background-size: 48px 48px;
  background-repeat: repeat;
}

.sidebar-cta__pattern img {
  display: none;
}

.sidebar-cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-cta__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  color: #fff;
  margin: 0;
}

.sidebar-cta__text {
  font-size: 14px;
  line-height: 20px;
  color: #9ca3af;
  margin: 0 0 16px;
}

.sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #e31e24;
  border-radius: 2px;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: #fff;
  transition: background 0.2s ease;
}

.sidebar-cta__btn:hover {
  background: #bc000c;
}

.sidebar-cta__btn img {
  width: 10.8px;
  height: 10.8px;
  flex-shrink: 0;
}

/* Downloads */
.sidebar-block--downloads {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-block--downloads .sidebar-block__title {
  margin: 0;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-file {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.2s ease;
}

.download-file:hover {
  opacity: 0.85;
}

.download-file__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #e7e8e9;
  border-radius: 2px;
}

.download-file__icon img {
  width: 16px;
  height: 20px;
}

.download-file__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.download-file__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: #191c1d;
}

.download-file__size {
  font-family: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5d5e61;
}

.sidebar-downloads-all {
  display: inline-block;
  align-self: flex-start;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(227, 30, 36, 0.2);
  font-family: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e31e24;
  transition: opacity 0.2s ease;
}

.sidebar-downloads-all:hover {
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .article-layout__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .sidebar-block--toc {
    position: static;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .sidebar-cta,
  .sidebar-block--downloads {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .article-hero {
    min-height: 320px;
    height: auto;
    padding: 64px 0;
  }

  .article-hero__content {
    padding: 0 24px;
  }

  .article-hero__content h1 {
    font-size: 36px;
    line-height: 48px;
  }

  .article-hero__subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  .article-layout {
    padding: 40px 24px 64px;
  }

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

  .article-section__title {
    font-size: 24px;
    line-height: 30px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__card--next {
    text-align: left;
    justify-content: flex-start;
    flex-direction: row-reverse;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar-block {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .article-hero__content h1 {
    font-size: 28px;
    line-height: 36px;
  }

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

  .article-featured img {
    height: 220px;
  }
}
