/* ============================================================
   Page extras — standalone, no build step required.
   Site header/logo, issue cover banner, back-to-top button,
   and a lightweight share widget. Uses the same design tokens
   defined in style.css (:root).
   ============================================================ */

:root {
  --header-h: 67px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: var(--paper, #fff);
  border-bottom: 1px solid var(--rule, #e3e8ef);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px var(--gap, 24px);
  display: flex;
  justify-content: center;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.site-logo img {
  display: block;
  height: 46px;
  width: auto;
}

/* ---------- Home button + language switch — floating pills,
   top-left (mirrors the "Give feedback" fab at bottom-left) -------- */
.site-fabs-left {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 56;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans, sans-serif);
}

.site-home-fab,
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--navy, #0d2440);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh-md, 0 8px 24px -8px rgba(13, 36, 64, .12));
  padding: 10px 16px 10px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.lang-switch__link {
  padding: 10px 16px;
}

.site-home-fab i {
  font-size: 1rem;
  line-height: 1;
}

.site-home-fab:hover,
.lang-switch__link:hover {
  background: var(--navy-2, #123153);
}

@media (max-width: 700px) {
  .site-fabs-left {
    left: 10px;
    top: 10px;
    gap: 8px;
  }

  .site-home-fab {
    padding: 8px 12px 8px 10px;
  }

  .lang-switch__link {
    padding: 8px 12px;
  }

  .site-home-fab span {
    display: none;
  }
}

.issue-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Tighten hero now that the H1 title is removed -------
   .byline's border-top/padding-top was meant to separate it from
   the title above it; with no title there, it was just floating
   with a lot of dead space around it. */
.hero {
  padding-top: clamp(20px, 3vw, 32px) !important;
  padding-bottom: clamp(20px, 3vw, 32px) !important;
}

.eyebrow {
  margin-bottom: 10px !important;
}

.byline {
  border-top: 0 !important;
  padding-top: 0 !important;
}

/* .byline-tools used to float right to balance byline text (author/date)
   that sat to its left; with the H1/byline text gone, it's the only
   thing left in .byline, so keep it flush left under the banner. */
.byline-tools {
  margin-left: 0 !important;
}

/* ---------- "Find more about us" + "Contact Us" — floating pills,
   top-right, same look as the Home fab. Collapse to icon-only
   circles (matching back-to-top) once the row no longer fits. ----- */
#find-more-root {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 56;
}

.find-more {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans, sans-serif);
}

.find-more__label,
.find-more__contact-btn {
  appearance: none;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--navy, #0d2440);
  color: #fff;
  box-shadow: var(--sh-md, 0 8px 24px -8px rgba(13, 36, 64, .12));
  padding: 10px 16px 10px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.find-more__label i,
.find-more__contact-btn i {
  font-size: 1rem;
  line-height: 1;
}

.find-more__label:hover,
.find-more__contact-btn:hover {
  background: var(--navy-2, #123153);
}

@media (max-width: 700px) {
  #find-more-root {
    top: 10px;
    right: 10px;
  }

  .find-more {
    gap: 8px;
  }

  .find-more__label,
  .find-more__contact-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .find-more__label span,
  .find-more__contact-btn span {
    display: none;
  }

  .find-more__label i,
  .find-more__contact-btn i {
    font-size: 14px;
  }
}

.find-more__social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.find-more__social-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 8px;
  letter-spacing: -.03em;
  font-weight: 700;
  font-family: var(--sans, sans-serif);
  line-height: 1;
  text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}

.find-more__social-btn i {
  font-size: 12px;
}

.find-more__social-btn:hover {
  transform: scale(1.1);
  opacity: .9;
}

/* header now only carries the centered logo — home/find-more/contact
   are fixed-position fabs (styled above), so the header itself just
   needs to stay short on narrow screens. */
@media (max-width: 700px) {
  :root {
    --header-h: 55px;
  }

  .site-logo img {
    height: 34px;
  }
}

/* ---------- Contact Us modal (text only, no embedded map) ------- */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 26, 48, .45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--sans, sans-serif);
}

.contact-modal {
  background: var(--paper, #fff);
  border-radius: var(--r, 12px);
  box-shadow: var(--sh-lg, 0 20px 48px -12px rgba(13, 36, 64, .3));
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--paper-2, #f7f8fa);
  border-bottom: 1px solid var(--rule, #e3e8ef);
  border-radius: var(--r, 12px) var(--r, 12px) 0 0;
  font-weight: 700;
  color: var(--ink, #1f2b3d);
}

.contact-modal__header-close {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--faint, #8a97a9);
  padding: 4px;
}

.contact-modal__header-close:hover {
  color: var(--ink, #1f2b3d);
}

.contact-modal__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-modal__card {
  border: 1px solid var(--rule, #e3e8ef);
  border-radius: var(--r, 12px);
  padding: 16px;
}

.contact-modal__name {
  font-weight: 700;
  color: var(--navy, #0d2440);
  margin-bottom: 10px;
}

.contact-modal__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--faint, #8a97a9);
  margin-top: 8px;
}

.contact-modal__value {
  font-size: 0.9rem;
  color: var(--ink, #1f2b3d);
}

.contact-modal__value a {
  color: var(--rw-blue, #1976d2);
  text-decoration: none;
}

.contact-modal__value a:hover {
  text-decoration: underline;
}

.contact-modal__follow {
  padding-top: 8px;
  border-top: 1px solid var(--rule, #e3e8ef);
}

.contact-modal__follow .contact-modal__label {
  margin-top: 0;
  margin-bottom: 8px;
}

.social-modal__body .find-more__social {
  flex-wrap: wrap;
  gap: 12px;
}

.social-modal__body .find-more__social-btn {
  width: 40px;
  height: 40px;
}

.social-modal__body .find-more__social-btn i {
  font-size: 18px;
}

/* ---------- Share widget --------------------------------------- */
.share-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-widget__label {
  font-size: 0.78rem;
  color: var(--muted, #5c6b80);
  margin-right: 2px;
}

.share-widget__btn {
  appearance: none;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  font-family: var(--sans, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform .12s ease, opacity .12s ease;
}

.share-widget__btn i {
  font-size: 14px;
}

.share-widget__btn:hover {
  transform: scale(1.08);
  opacity: .9;
}

.share-widget__btn--whatsapp { background: #25D366; }
.share-widget__btn--facebook { background: #1877F2; }
.share-widget__btn--x { background: #000; }
.share-widget__btn--linkedin { background: #0A66C2; }

@media (max-width: 560px) {
  .share-widget__label { display: none; }
  .share-widget__btn { width: 26px; height: 26px; font-size: 11px; }
  .share-widget__btn i { font-size: 12px; }
}

/* ---------- "Contact Us" card at the end of the article ---------- */
.article-contact-cta {
  margin: 40px 0 8px;
  padding: 28px var(--gap, 24px);
  text-align: center;
  background: var(--paper-2, #f7f8fa);
  border: 1px solid var(--rule, #e3e8ef);
  border-radius: var(--r, 12px);
  font-family: var(--sans, sans-serif);
}

.article-contact-cta__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #0d2440);
  margin-bottom: 8px;
}

.article-contact-cta__text {
  font-size: 0.9rem;
  color: var(--muted, #5c6b80);
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.article-contact-cta__btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy, #0d2440);
  border: 1px solid var(--navy, #0d2440);
  border-radius: 999px;
  padding: 10px 22px;
}

.article-contact-cta__btn i {
  font-size: 14px;
}

.article-contact-cta__btn:hover {
  background: var(--navy-2, #123153);
}

/* ---------- Back-to-top button ---------------------------------- */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--navy, #0d2440);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sh-md, 0 8px 24px -8px rgba(13, 36, 64, .12));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .18s ease, bottom .2s ease;
}

.back-to-top.is-live {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--navy-2, #123153);
}

@media (max-width: 480px) {
  .back-to-top {
    right: 10px;
    bottom: 68px;
    width: 36px;
    height: 36px;
  }
}

/* ---------- Clickable banner figures (fan club / BVIA) ----------- */
.banner-link {
  display: block;
  cursor: pointer;
}

.banner-link:hover img {
  transform: scale(1.015);
}

.banner-link img {
  transition: transform .18s ease;
}
