/* ==========================================================================
   PAGE: MEDIA ARTICLE DETAIL

   A reading page, not a marketing page. It deliberately drops the page-hero
   used everywhere else — a briefing opens with its own headline at reading
   width rather than a two-column banner with an illustration beside it.

   Loaded AFTER pages/media.css, because the related-articles strip at the
   bottom reuses the .news card from the Media Corner unchanged.
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.article-head {
  padding-top: clamp(1.75rem, 1.2rem + 1.8vw, 2.34rem);
  padding-bottom: clamp(1.5rem, 1rem + 1.6vw, 1.95rem);
  background:
    radial-gradient(90% 120% at 50% 0%, var(--c-tint-indigo) 0%, rgba(244, 245, 255, 0) 70%),
    var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.article-head .breadcrumb-sysin {
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
}

.article__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--c-navy-900);
  margin: 0.85rem 0 0;
  /* Long briefing headlines break badly on their own; keep the last two
     words together so no line ends up as a single orphan. */
  text-wrap: balance;
}

/* Body size, matching .page-hero__lead and .overview__text. */
.article__standfirst {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-500);
  margin: 1rem 0 0;
  max-width: 44rem;
}

.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-ink-400);
}

.article__meta svg {
  width: 16px;
  height: 16px;
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   LEAD IMAGE
   -------------------------------------------------------------------------- */
.article__figure {
  margin: 0 0 clamp(2rem, 1.4rem + 2vw, 3.25rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface-alt);
}

.article__figure img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 460px);
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   KEY TAKEAWAYS
   Sits above the body so a reader who will not read 1,200 words still leaves
   with the argument.
   -------------------------------------------------------------------------- */
.takeaways {
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 1.56rem);
  margin-bottom: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  border: 1px solid var(--c-border-mid);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-md);
  background: var(--c-surface-alt);
}

.takeaways__title {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-primary);
  margin: 0 0 0.9rem;
}

.takeaways__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.takeaways__list li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.6;
  color: var(--c-ink-800);
}

.takeaways__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   PROSE
   Scoped so article body copy can use bare h2/p/ul without every element
   needing a class — the one place in the build where that is worth doing.
   -------------------------------------------------------------------------- */
.prose {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-600);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  color: var(--c-navy-900);
  margin: clamp(2.25rem, 1.8rem + 1.4vw, 3rem) 0 0.9rem;
  /* A short rule instead of a bigger type size — the headline is already
     large, so section markers only need to be visible, not loud. */
  padding-top: 1.1rem;
  border-top: 1px solid var(--c-border-mid);
}

.prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.55rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--c-ink-600);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--c-primary);
}

.prose__quote {
  position: relative;
  margin: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem) 0;
  padding: 0 0 0 clamp(1.25rem, 1rem + 1vw, 2rem);
  border-left: 3px solid var(--c-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  font-style: normal;
  line-height: 1.55;
  color: var(--c-navy-900);
}

/* --------------------------------------------------------------------------
   FOOT — byline + next step
   -------------------------------------------------------------------------- */
.article__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: clamp(2.25rem, 1.8rem + 1.4vw, 3rem);
  padding-top: clamp(1.5rem, 1.2rem + 1vw, 1.56rem);
  border-top: 1px solid var(--c-border-mid);
}

.author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author__avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--c-tint-indigo);
  color: var(--c-primary);
}

.author__avatar svg {
  width: 21px;
  height: 21px;
}

.author__name {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
}

.author__role {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: var(--c-ink-400);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .article__foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   ALBUM GALLERY  →  <AlbumGallery />
   Sits between the article header and the body: a slider of the story's own
   photographs, using the shared carousel so the arrows, dots, autoplay and
   drag all behave as they do everywhere else.
   -------------------------------------------------------------------------- */
.album-gallery {
  padding-block: clamp(1rem, 0.7rem + 1.2vw, 1.9rem);
}

.album-gallery__frame {
  /* Three across on a desktop, two on a tablet, one on a phone — the frame
     itself carries nothing, each photograph holds its own corner. */
  position: relative;
}

.album-gallery__slide img {
  display: block;
  width: 100%;
  height: clamp(190px, 22vw, 300px);
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* The controls sit on the photograph, so they follow the banner treatment
   rather than the light-background one. */
.album-gallery .carousel__arrow {
  background: var(--c-white);
  border-color: var(--c-border-mid);
  color: var(--c-navy-900);
  box-shadow: 0 4px 16px rgba(11, 28, 45, 0.12);
}

.album-gallery .carousel__arrow--prev {
  left: -18px;
}

.album-gallery .carousel__arrow--next {
  right: -18px;
}

.album-gallery .carousel__arrow:hover {
  opacity: 1;
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-navy-900);
}

/* Under the strip, not on top of the photographs. */
.album-gallery .carousel__dots {
  position: static;
  margin-top: 1.1rem;
}

.album-gallery .carousel__dot {
  background: var(--c-border-mid);
}

.album-gallery .carousel__dot.is-active {
  background: var(--c-primary);
}
