/* ==========================================================================
   NEWS DETAIL – ARTICLE LAYOUT  ()
   Scoped to html so nothing leaks into other pages.
   ========================================================================== */

/* ── Global wrap centering (covers footer and any shared .wrap usage) ───── */
.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .wrap { padding: 0 48px; }
}

@media (min-width: 1200px) {
  .wrap { padding: 0 64px; }
}

/* ── Article layout tokens ─────────────────────────────────────────────── */
html {
  --article-envelope: 1360px;
  --article-col:      720px;
  --article-wide:     1040px;
  --article-gutter:   clamp(24px, 4vw, 56px);
}

/* ── Article hero ────────────────────────────────────────────────────────── */
.article-hero {
  position: relative;
  padding: 180px 0 48px;
  background: var(--bg);
}

@media (min-width: 980px) {
  .article-hero { padding: 220px 0 56px; }
}

.article-hero-inner {
  max-width: var(--article-envelope);
  margin: 0 auto;
  padding: 0 var(--article-gutter);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-55);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.article-back:hover { color: var(--ink); }

.article-back svg {
  width: 16px;
  height: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: 18px;
}

.article-eyebrow { color: var(--accent); font-weight: 500; }

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink-25);
}

.article-headline {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: none;
}

.article-headline em {
  font-style: normal;
  font-weight: 500;
  color: #a8b3cc;
}

.article-deck {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0 0 8px;
  max-width: none;
}

.article-hero-media {
  margin: 48px auto 0;
  max-width: var(--article-wide);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink-10);
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-caption {
  text-align: center;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-55);
  letter-spacing: 0.02em;
  max-width: none;
}

/* ── Article body container ──────────────────────────────────────────────── */
.article-body-wrap {
  padding: 48px 0 80px;
}

@media (min-width: 980px) {
  .article-body-wrap { padding: 64px 0 120px; }
}

.article-body {
  max-width: var(--article-envelope);
  margin: 0 auto;
  padding: 0 var(--article-gutter);
  text-align: left;
}

/* Body text flow spans the full browser width, matching the hero image */
.article-body p,
.article-body h2,
.article-body h3,
.article-body ul,
.article-body ol {
  max-width: none;
}

/* Pull quotes, blockquotes and callouts stay at reading measure as visual accents */
.article-body .pull-quote,
.article-body blockquote,
.article-body .article-callout {
  max-width: var(--article-col);
}

.article-body p {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 24px;
  text-align: left;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body .lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 32px;
}

.article-body h2 {
  font-family: "Poppins", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 44px 0 16px;
}

.article-body h3 {
  font-family: "Poppins", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.article-body li {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 8px;
}

.article-body ol li { padding-left: 4px; }
.article-body ol li::marker { color: var(--accent); font-weight: 600; }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(44, 62, 106, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

/* ── Pull quote ──────────────────────────────────────────────────────────── */
.article-body .pull-quote {
  margin: 40px 0;
  padding: 8px 0;
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  position: relative;
}

.article-body .pull-quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 20px;
}

/* ── Attributed blockquote ───────────────────────────────────────────────── */
.article-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.article-body blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Single image with caption (figure) ─────────────────────────────────── */
.article-body .article-figure {
  margin: 40px 0;
  max-width: var(--article-wide);
}

.article-body .article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: var(--ink-10);
}

.article-body .article-figure figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-55);
  letter-spacing: 0.02em;
  max-width: var(--article-col);
}

/* ── Media + text (2-col layout) ─────────────────────────────────────────── */
.article-body .media-text {
  margin: 48px 0;
  max-width: var(--article-wide);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 800px) {
  .article-body .media-text {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .article-body .media-text.reverse .media-text-media { order: 2; }
}

.article-body .media-text-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: var(--ink-10);
}

.article-body .media-text-body { max-width: none; }
.article-body .media-text-body h3 { margin-top: 0; }
.article-body .media-text-body p:last-child { margin-bottom: 0; }

/* ── Image galleries ─────────────────────────────────────────────────────── */
.article-body .gallery {
  margin: 40px 0;
  max-width: var(--article-wide);
  display: grid;
  gap: 12px;
}

.article-body .gallery.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.article-body .gallery.gallery-3 { grid-template-columns: 1fr; }

@media (min-width: 700px) {
  .article-body .gallery { gap: 16px; }
  .article-body .gallery.gallery-3 { grid-template-columns: repeat(3, 1fr); }
}

.article-body .gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: var(--ink-10);
}

.article-body .gallery-caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-55);
  letter-spacing: 0.02em;
  max-width: var(--article-col);
}

/* ── Callout / key facts box ─────────────────────────────────────────────── */
.article-body .article-callout {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--bg-raised);
  border: 1px solid var(--ink-10);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

.article-body .article-callout .callout-label {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 500;
}

.article-body .article-callout p { margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
.article-body .article-callout p:last-child { margin-bottom: 0; }
.article-body .article-callout ul { margin-bottom: 0; }
.article-body .article-callout ul li { font-size: 16px; line-height: 1.55; margin-bottom: 6px; }

/* ── Stat strip ──────────────────────────────────────────────────────────── */
.article-body .stat-strip {
  margin: 48px 0;
  max-width: var(--article-wide);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}

@media (min-width: 700px) {
  .article-body .stat-strip { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.article-body .stat-num {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.article-body .stat-num em {
  font-style: normal;
  font-weight: 500;
  color: #a8b3cc;
}

.article-body .stat-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.5;
}

/* ── Embedded video placeholder ──────────────────────────────────────────── */
.article-body .article-video {
  margin: 40px 0;
  max-width: var(--article-wide);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #0a0f1a;
}

.article-body .article-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.article-body .article-video .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body .article-video .video-play-btn {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.article-body .article-video .video-play-btn:hover {
  transform: scale(1.06);
  background: #fff;
}

.article-body .article-video .video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  color: var(--ink);
}

.article-body .article-video .video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ── Inline read-next card ───────────────────────────────────────────────── */
.article-body .read-next {
  margin: 36px 0;
  max-width: var(--article-col);
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--ink-10);
  border-radius: 8px;
  background: var(--bg-raised);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-body .read-next:hover {
  border-color: var(--ink-25);
  transform: translateY(-2px);
}

.article-body .read-next .read-next-label {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.article-body .read-next .read-next-title {
  font-family: "Poppins", "IBM Plex Sans Arabic", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-body .read-next .read-next-title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Article divider ─────────────────────────────────────────────────────── */
.article-body .article-divider {
  margin: 56px 0;
  max-width: var(--article-col);
  border: 0;
  border-top: 1px solid var(--ink-10);
}

/* ── Share row ───────────────────────────────────────────────────────────── */
.article-share {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-10);
  max-width: var(--article-col);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-55);
}

.article-share-label {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
}

.article-share-btns { display: flex; gap: 8px; }

.article-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--ink-10);
  color: var(--ink-70);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.article-share-btn:hover {
  border-color: var(--ink-40);
  color: var(--ink);
}

.article-share-btn svg { width: 16px; height: 16px; }

/* ── Back link footer row ────────────────────────────────────────────────── */
.news-post-footer {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-10);
  max-width: var(--article-col);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.news-post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.news-post-back svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.news-post-back:hover { color: var(--ink); gap: 12px; }
.news-post-back:hover svg { transform: translateX(-4px); }

/* Strip Drupal field wrappers inside the body */
.article-body-content .field,
.article-body-content .field__item,
.article-body-content .field__items {
  display: contents;
}

/* ── Related stories strip ───────────────────────────────────────────────── */
.related-section {
  padding: 64px 0 96px;
  background: var(--bg-raised);
  border-top: 1px solid var(--ink-10);
}

.related-section .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .related-section .wrap { padding: 0 48px; }
}

@media (min-width: 1200px) {
  .related-section .wrap { padding: 0 64px; }
}

.related-head {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin: 0 0 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 700px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 1000px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.related-card {
  background: #ffffff;
  border: 1px solid var(--ink-10);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 12px 12px 0;
  box-shadow: 0 1px 4px rgba(26, 37, 64, 0.06);
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0, 0, 1),
              border-color 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink-25);
  box-shadow: 0 12px 32px -12px rgba(26, 37, 64, 0.16);
}

.related-card-media {
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  background: var(--ink-05);
  overflow: hidden;
  border-radius: 10px;
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.2, 0, 0, 1);
}

.related-card:hover .related-card-media img { transform: scale(1.06); }

.related-card-body {
  padding: 18px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.related-card-date {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 13px;
  color: var(--ink-55);
  flex-shrink: 0;
}

.related-card-title {
  font-family: "Poppins", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

/* ── CTA strip (newsletter) on news detail ──────────────────────────────── */
.cta-strip {
  background: #0e1424;
  color: #fff;
  padding: 96px 0;
}

.cta-strip-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--article-gutter);
}

.cta-strip-title {
  font-family: "Poppins", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
}

.cta-strip-title em {
  font-style: normal;
  font-weight: 500;
  color: #a8b3cc;
}

.cta-strip-lede {
  font-family: "Inter", -apple-system, system-ui, "IBM Plex Sans Arabic", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 28px;
  max-width: 60ch;
}

@media (max-width: 760px) {
  .cta-strip { padding: 64px 0; }
}

/* ── Newsletter webform pill inside CTA strip ────────────────────────────── */
.cta-newsletter {
  width: 100%;
  max-width: 560px;
}

.cta-newsletter .webform-submission-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 600px) {
  .cta-newsletter .webform-submission-form {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 6px 6px 8px;
  }
}

.cta-newsletter .form-item {
  flex: 1;
  margin: 0;
}

.cta-newsletter .form-item label {
  display: none;
}

.cta-newsletter input[type="email"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  outline: none;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .cta-newsletter input[type="email"] {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 16px;
  }
}

.cta-newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta-newsletter input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 600px) {
  .cta-newsletter input[type="email"]:focus {
    border: none;
    box-shadow: none;
  }
}

.cta-newsletter .form-actions {
  flex-shrink: 0;
}

.cta-newsletter .form-submit {
  background: #fff;
  color: #1a2540;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cta-newsletter .form-submit:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* ── Scroll progress bar ─────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 60;
  transition: width 0.1s linear;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .split-word {
    transition-duration: 0.01ms;
    opacity: 1;
    transform: none;
  }
}

