/* =========================================================================
   Divad — News Detail / single article (Figma 351:4370)
   Article header + featured image + two-column body (content + sidebar)
   + Read Next grid. .news-card styles are shared (shared.css).
   ========================================================================= */

.article {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
}

/* ---- Header: back link + title + meta row ------------------------------- */
.article__header {
  max-width: 1152px;
  margin-inline: auto;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff0080;
  text-decoration: none;
}

.article__back .cnm-icon {
  width: 16px;
  height: 16px;
}

.article__title {
  margin: 1.25rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 56rem;
}

.article__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border, #e2e2e2);
}

.article__meta-item {
  display: grid;
  gap: 0.35rem;
}

.article__meta-item--center { text-align: center; }
.article__meta-item--end { text-align: right; }

.article__meta-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted, #8a8a8a);
}

.article__meta-value {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Featured image with magenta progress bar --------------------------- */
.article__hero {
  position: relative;
  max-width: 1152px;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  aspect-ratio: 1152 / 418;
  overflow: hidden;
  background: #eeeeee;
}

.article__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__hero-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 4px;
  background: var(--accent);
}

/* ---- Two-column body ---------------------------------------------------- */
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 293px;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1152px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  align-items: start;
}

.article__main > * { margin-top: 0; }

.article__lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-light);
}

.article__h2 {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  color: var(--ink);
}

.article__main p {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--ink-light);
}

/* Pullquote — grey panel, magenta left border */
.article__quote {
  margin: 2rem 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: #f3f3f3;
  border-left: 4px solid var(--accent);
}

.article__quote p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.article__quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Key specification box — blue panel with pill chips */
.article__specs {
  margin-top: 2rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--brand);
  color: #ffffff;
}

.article__main .article__specs-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.article__specs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.article__specs-pill {
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ---- Sidebar ------------------------------------------------------------ */
.article__aside {
  display: grid;
  gap: 1.5rem;
}

.article-share {
  padding: 1.5rem;
  background: #e9e9e9;
}

.article-share__label {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.article-share__buttons {
  display: flex;
  gap: 0.625rem;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-share__btn .cnm-icon {
  width: 18px;
  height: 18px;
  background-color: var(--ink);
}

.article-share__btn:hover {
  background: var(--brand);
}

.article-share__btn:hover .cnm-icon {
  background-color: #ffffff;
}

.article-download {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dl-img) center / cover no-repeat;
  background-color: #4b5563;
}

.article-download__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 30%, rgba(15, 23, 42, 0.8) 100%);
}

.article-download__body {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.article-download__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  color: #ffffff;
}

.article-download__btn {
  justify-self: start;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.article-download__btn:hover {
  background: #7d3263;
}

/* ---- Read Next ---------------------------------------------------------- */
.read-next__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.read-next__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}

.read-next__all {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff0080;
  text-decoration: none;
  border-bottom: 1px solid #ff0080;
  padding-bottom: 2px;
}

.read-next__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

/* ===== Responsive ======================================================== */
@media (max-width: 991px) {
  .article__layout {
    grid-template-columns: 1fr;
  }

  .read-next__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .article__meta {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .article__meta-item--center,
  .article__meta-item--end {
    text-align: left;
  }

  .read-next__grid {
    grid-template-columns: 1fr;
  }
}
