/**
 * /news/{post} — article page. Sits inside .sc-news.sc-news--press, so the page
 * colours (light #e8edf4 / dark #0d1520) come from news-press-cards.css and the
 * slider's cards from news-sections.css; this file is the article column and the
 * card slider.
 */

.sc-news-post {
  --sc-post-text: #111b26;
  --sc-post-muted: #4a5568;
  --sc-post-rule: rgba(17, 27, 38, 0.18);
  --sc-post-accent: #06a1eb;
  min-height: 60vh;
  padding: 64px 0 72px;
}

.sc-news-post.sc-news--dark {
  --sc-post-text: #fff;
  --sc-post-muted: #c4cedb;
  --sc-post-rule: rgba(255, 255, 255, 0.22);
}

.sc-news-post__shell {
  width: min(var(--sc-max, 1200px), calc(100% - 48px));
  margin: 0 auto;
}

/* ---- Article ------------------------------------------------------------- */

.sc-news-post__article {
  max-width: 800px;
  margin: 0 auto;
  color: var(--sc-post-text);
}

.sc-news-post__head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sc-post-rule);
}

.sc-news-post__eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f4762d;
}

.sc-news-post__eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-news-post__sep {
  padding: 0 10px;
}

.sc-news-post__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sc-post-text);
}

.sc-news-post__author {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--sc-post-muted);
}

.sc-news-post__author span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.sc-news-post__badges {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
}

.sc-news-post__badges .sc-feature-card__badge {
  margin: 0;
  background: #f4762d; /* the badge's own colour variable only exists inside .sc-news-bands */
  color: #fff;
}

/* ---- Body (preview or full WYSIWYG) -------------------------------------- */

.sc-news-post__body {
  padding-top: 32px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--sc-post-text);
}

.sc-news-post__body > :first-child {
  margin-top: 0;
}

.sc-news-post__body p,
.sc-news-post__body ul,
.sc-news-post__body ol {
  margin: 0 0 1.2em;
}

.sc-news-post__body h2,
.sc-news-post__body h3 {
  margin: 1.8em 0 0.6em;
  line-height: 1.2;
}

.sc-news-post__body a {
  color: var(--sc-post-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-news-post__body img {
  max-width: 100%;
  height: auto;
}

.sc-news-post__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* "Read Full Article →" */
.sc-news-post__actions {
  margin: 32px 0 0;
}

.sc-news-post__body a.sc-news-post__btn,
.sc-news-post__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid var(--sc-post-accent);
  border-radius: 999px;
  color: var(--sc-post-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sc-news-post__btn:hover,
.sc-news-post__btn:focus-visible {
  background: var(--sc-post-accent);
  border-color: var(--sc-post-accent);
  color: #0d1520;
}

.sc-news-post__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Related slider: one row, scroll-snap ------------------------------- */

.sc-news-post__related {
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--sc-post-rule);
}

.sc-news-post__related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.sc-news-post__related-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--sc-post-text);
}

.sc-news-post__slider-controls {
  display: flex;
  gap: 10px;
}

.sc-news-post__slider-controls[hidden] {
  display: none;
}

.sc-news-post__slider-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--sc-post-accent);
  border-radius: 50%;
  background: transparent;
  color: var(--sc-post-text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.sc-news-post__slider-btn:hover:not(:disabled),
.sc-news-post__slider-btn:focus-visible {
  background: var(--sc-post-accent);
  color: #0d1520;
}

.sc-news-post__slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sc-news-post__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sc-news-post__track::-webkit-scrollbar {
  display: none;
}

.sc-news-post__track:focus-visible {
  outline: 2px solid var(--sc-post-accent);
  outline-offset: 4px;
}

/* 3 across; each slide holds one shared card (elements/news_card.php), which fills
   it and keeps its own minimum height. */
.sc-news-post__slide {
  display: flex;
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

@media (max-width: 960px) {
  .sc-news-post__slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 700px) {
  .sc-news-post {
    padding: 40px 0 56px;
  }

  .sc-news-post__shell {
    width: min(100% - 32px, var(--sc-max, 1200px));
  }

  .sc-news-post__body {
    font-size: 17px;
  }

  .sc-news-post__slide {
    flex-basis: 85%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-news-post__track {
    scroll-behavior: auto;
  }
}
