/* ============================================
   NEWS ITEM — full page article layout
   ============================================ */

/* Section wrapper */
.section-article {
  padding-top: 40px;
  padding-bottom: 64px;
}

/* Article header — full width, above the hero */
.article-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--who-gray-200);
}
.article-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--who-navy);
  margin: 0 0 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .875rem;
  color: var(--who-gray-500);
}
.article-meta .type-tag {
  font-size: .75rem;
  padding: 3px 10px;
}
.article-meta-sep { color: var(--who-gray-300); }
.article-meta-reading { font-style: italic; }

/* Hero image */
.article-hero {
  margin-bottom: 36px;
  line-height: 0;
  /* overflow visible so thumbnail strip can overflow below the image */
}
/* Extra bottom clearance: strip center = image bottom, so half the strip height protrudes */
.article-hero:has(.hero-thumbstrip-wrap) {
  margin-bottom: 64px;
}
.article-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  border-radius: var(--who-radius-md);
}
/* Back layer sits behind front for crossfade */
.hero-img-back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
@media (max-width: 768px) {
  .article-hero-img { height: 280px; }
}

/* ── Mobile gallery button + modal ─────────────────────────────────────── */
.hero-mobile-gallery-btn {
  display: none; /* visible only on mobile */
}
@media (max-width: 768px) {
  .hero-thumbstrip-wrap { display: none !important; }
  .article-hero:has(.hero-thumbstrip-wrap) { margin-bottom: 36px; }

  .hero-mobile-gallery-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 3;
    background: var(--who-navy);
    color: var(--who-white);
    border: none;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
    transition: background var(--who-transition);
  }
  .hero-mobile-gallery-btn:hover { background: var(--who-navy-dark); }
}

/* Mobile gallery modal — fullscreen overlay */
.hero-mobile-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
.hero-mobile-modal[hidden] { display: none; }
.hero-mobile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,10,30,.92);
}
.hero-mobile-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hero-mobile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--who-white-70);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.hero-mobile-modal-close {
  background: none;
  border: none;
  color: var(--who-white);
  padding: 4px;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--who-transition);
}
.hero-mobile-modal-close:hover { opacity: 1; }
.hero-mobile-modal-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 8px;
  gap: 8px;
}
.hero-mobile-modal-img {
  max-width: calc(100% - 80px);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--who-radius-sm);
}
.hero-mobile-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  color: var(--who-white);
  cursor: pointer;
  padding: 0;
  transition: background var(--who-transition);
}
.hero-mobile-nav:hover { background: rgba(255,255,255,.22); }
.hero-mobile-modal-caption {
  padding: 14px 20px 24px;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Thumbnail strip — center aligned to the bottom edge of the hero image */
.hero-thumbstrip-wrap {
  position: absolute;
  bottom: 0;
  left: 10px;
  transform: translateY(50%) translateY(-10px);
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-thumbstrip-wrap.is-revealed {
  opacity: 1;
  transform: translateY(50%);
}
.hero-thumbstrip-label {
  position: absolute;
  bottom: 100%;
  /* align with first thumbnail: prev btn 32 + gap 6 + strip padding 4 */
  left: 42px;
  margin-bottom: 12px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--who-white);
  white-space: nowrap;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.hero-thumbstrip {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow: hidden;
  scroll-behavior: smooth;
  flex: 0 1 auto;
  /* 4 thumbs (128px) + 3 gaps (8px) + padding (4px×2) = 544px */
  max-width: calc(128px * 4 + 8px * 3 + 4px * 2);
  /* Padding = shadow blur so thumb shadows show inside the scroll container */
  padding: 4px;
}
.thumb-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--who-navy);
  border: none;
  border-radius: 50%;
  color: var(--who-white);
  cursor: pointer;
  padding: 0;
  transition: background var(--who-transition), opacity var(--who-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.thumb-nav:hover:not(:disabled) { background: var(--who-navy-dark); }
.thumb-nav:disabled {
  background: var(--who-gray-300);
  color: var(--who-white-50);
  cursor: default;
  box-shadow: none;
}
.hero-thumb {
  flex: 0 0 auto;
  width: 128px;
  height: 72px; /* 16:9 */
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--who-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--who-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.hero-thumb:hover { border-color: rgba(255,255,255,.6); }
.hero-thumb.is-active { border-color: var(--who-gold); }
.hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article title overlay — top-right of the hero image */
.hero-article-title {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  max-width: 48%;
  color: rgba(255,255,255,.82);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  letter-spacing: .01em;
  opacity: 0; /* revealed by JS once image is loaded */
}

/* ── Image credits accordion (hero + gallery thumbnails) ─────────────── */
.img-credits-wrap {
  position: relative;
  line-height: 0; /* collapse whitespace around img */
}
.img-credits-wrap > img {
  display: block;
  width: 100%;
}
/* The unit groups the text + button — sits at bottom-right when closed,
   stretches full-width when open (.is-open) */
.img-credits-unit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--who-navy);
  max-width: 340px;
  box-sizing: border-box;
}
.img-credits-unit.is-open {
  left: auto;
}
/* Credits text — hidden until open */
.img-credits-text {
  color: var(--who-white-90);
  padding: 12px 16px;
  font-size: .8125rem;
  line-height: 1.5;
  box-sizing: border-box;
}
.img-credits-text[hidden] { display: none; }
/* Toggle button */
.img-credits-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--who-white);
  padding: 8px 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background var(--who-transition);
}
.img-credits-btn:hover { background: rgba(255,255,255,.12); }
.img-credits-icon {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  width: 14px;
  text-align: center;
}

/* 3/4 + 1/4 layout */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Article body typography ── */
.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--who-gray-800);
}
.article-body > * + * { margin-top: 1.25em; }
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--who-navy);
  margin-top: 2em;
  margin-bottom: .5em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--who-blue-light);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--who-navy);
  margin-top: 1.75em;
  margin-bottom: .4em;
}
.article-body p { margin: 0 0 1.25em; }
.article-body a {
  color: var(--who-blue);
  text-decoration: underline;
}
.article-body a:hover { color: var(--who-blue-mid); }
.article-body blockquote {
  margin: 2em 0;
  padding: 16px 22px;
  background: var(--who-gray-50);
  border-radius: var(--who-radius-sm);
  font-style: italic;
  color: var(--who-gray-700);
  font-size: 1.05rem;
  line-height: 1.6;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.25em;
}
.article-body li { margin-bottom: .4em; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--who-radius-sm);
  margin: 1em 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 1.5em 0;
}
.article-body th {
  background: var(--who-navy);
  color: var(--who-white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}
.article-body td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--who-gray-200);
}
.article-body tr:nth-child(even) td { background: var(--who-gray-50); }

/* ── Article image gallery ── */
.article-gallery {
  margin: 40px 0;
}
.gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--who-radius-sm);
  overflow: hidden;
  line-height: 0;
  transition: opacity var(--who-transition);
}
.gallery-thumb:hover { opacity: .82; }
.gallery-thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: var(--who-radius-sm);
  margin: 0;
}

/* Lightbox modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
}
.gallery-modal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(92vw, 1100px);
  width: 100%;
  padding: 0 8px;
}
.gallery-slide-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-modal-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--who-radius-sm);
  display: block;
}
.gallery-modal-footer {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 0 4px;
  flex-wrap: wrap;
}
.gallery-counter {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-caption-text {
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  line-height: 1.45;
  flex: 1;
}
.gallery-credits {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery-nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: var(--who-white);
  cursor: pointer;
  transition: background var(--who-transition);
}
.gallery-nav:hover { background: rgba(255,255,255,.25); }
.gallery-nav:disabled { opacity: .25; cursor: default; }
.gallery-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: var(--who-white);
  cursor: pointer;
  transition: background var(--who-transition);
}
.gallery-close:hover { background: rgba(255,255,255,.25); }
@media (max-width: 600px) {
  .gallery-modal-inner { gap: 8px; }
  .gallery-nav { width: 36px; height: 36px; }
}

/* ── Media contacts ── */
.media-contacts {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--who-gray-50);
  border: 1px solid var(--who-gray-200);
  border-radius: var(--who-radius-md);
}
.media-contacts-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--who-navy);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--who-blue-light);
}
.media-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px 32px;
}
.media-contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}
.media-contact-item:last-child {
  margin-bottom: 0;
}
/* Separator only between contacts, never before the first one */
.media-contact-item + .media-contact-item {
  padding-top: 14px;
  border-top: 1px solid var(--who-gray-200);
}
.media-contact-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--who-gray-800);
  font-size: .9375rem;
}
.media-contact-name::before {
  content: '';
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: .6;
}
.media-contact-role {
  font-size: .8125rem;
  font-weight: 400;
  color: var(--who-gray-600);
  line-height: 1.4;
  padding-left: 23px; /* align with name text (icon 16px + gap 7px) */
}
.media-contact-body {
  font-size: .8125rem;
  color: var(--who-gray-700);
  line-height: 1.5;
  padding-left: 23px;
}
.media-contact-body p { margin: 2px 0; }
.media-contact-body a { color: var(--who-blue); }

/* ── Share bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--who-gray-200);
}
.share-bar-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--who-gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--who-gray-100);
  color: var(--who-navy);
  transition: background var(--who-transition), color var(--who-transition);
  text-decoration: none;
}
.share-btn:hover { background: var(--who-navy); color: var(--who-white); }
.share-btn--x:hover  { background: #000; }
.share-btn--fb:hover { background: #1877f2; }
.share-btn--li:hover { background: #0a66c2; }
.share-btn--email:hover { background: var(--who-blue); }

/* ── Sidebar ── */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--who-nav-height) + 36px); /* 52px nav + 36px gap = 88px */
}
.sidebar-card {
  padding: 20px 22px;
  background: var(--who-gray-50);
  border: 1px solid var(--who-gray-200);
  border-radius: var(--who-radius-md);
}
.sidebar-card--accent {
  background: var(--who-blue-light);
  border-color: #c5dff8;
}
.sidebar-card-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--who-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--who-blue-light);
}
.sidebar-card--accent .sidebar-card-title {
  border-bottom-color: var(--who-navy);
}
.sidebar-card-text {
  font-size: .8125rem;
  color: var(--who-gray-600);
  line-height: 1.55;
  margin: 0 0 14px;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--who-navy);
  color: var(--who-white);
  border-radius: var(--who-radius-pill);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--who-transition);
}
.sidebar-tag:hover { background: var(--who-blue); color: var(--who-white); }
.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: .875rem;
  color: var(--who-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--who-gray-100);
  line-height: 1.4;
  min-width: 0;
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--who-navy); }
.sidebar-link svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--who-gray-400);
}
.sidebar-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sidebar-subscribe {
  display: inline-block;
  padding: 9px 20px;
  background: var(--who-navy);
  color: var(--who-white) !important;
  border-radius: var(--who-radius-sm);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--who-transition);
}
.sidebar-subscribe:hover { background: var(--who-blue); }

