/* Highlights: story circles + story viewer. Styled to the homepage section pattern
   (Montserrat eyebrow + 40px H2 with an azure accent, 18px lede, 44px round arrow buttons). */

.ighl-sec {
  position: relative;
  background: var(--gsl-white, #F8F8FF);
  padding: 48px 48px 44px;
}
.ighl-wrap { max-width: 1200px; margin: 0 auto; }
.ighl-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ighl-sec .ighl-eyebrow {
  margin: 0; font-family: Montserrat, sans-serif; font-size: 12px !important; font-weight: 700; line-height: 1.3 !important;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink, #00806E);
}
.ighl-sec .ighl-h2 {
  margin: 0; font-family: Montserrat, sans-serif; font-size: 34px; font-weight: 800;
  line-height: 1.12; color: var(--ink-1, #212121); text-wrap: balance;
}
.ighl-h2 span { color: var(--gsl-azure, #073393); }
.ighl-lede {
  margin: 14px 0 0; max-width: 54ch; font-size: 18px; line-height: 1.6; color: var(--ink-2, #4a4a52); text-wrap: pretty;
}
.ighl-arrows { display: flex; gap: 10px; }
.ighl-arrow {
  width: 44px; height: 44px; border-radius: 999px; background: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ighl-arrow svg { width: 18px; height: 18px; }
.ighl-arrow--prev { border: 1px solid var(--border-1, #E6E6EB); color: #8a8a94; }
.ighl-arrow--prev:hover { border-color: var(--gsl-azure, #073393); color: var(--gsl-azure, #073393); }
.ighl-arrow--next { border: 2px solid var(--gsl-azure, #073393); color: var(--gsl-azure, #073393); }
.ighl-arrow--next:hover { background: var(--gsl-azure, #073393); color: #fff; }
.ighl-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.ighl-sec .ighl-rail {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 20px -8px 0; padding: 6px 8px 4px; scroll-padding-inline: 8px;
}
.ighl-rail::-webkit-scrollbar { display: none; }

.ighl-item {
  flex: 0 0 auto; width: 124px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-1, #212121);
  font: inherit; text-align: center; -webkit-tap-highlight-color: transparent;
}
.ighl-ring {
  position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 3px; box-sizing: border-box;
  background: conic-gradient(from 200deg, var(--gsl-turquoise, #00D8B9), var(--gsl-azure, #073393), var(--gsl-turquoise, #00D8B9));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ighl-item.is-seen .ighl-ring { background: var(--border-1, #E6E6EB); }
.ighl-ring img {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gsl-white, #F8F8FF); box-sizing: border-box; background: var(--border-2, #F1F1F5);
}
.ighl-item:hover .ighl-ring { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(7, 51, 147, 0.16); }
.ighl-item:focus-visible { outline: none; }
.ighl-item:focus-visible .ighl-ring { box-shadow: 0 0 0 3px var(--gsl-white, #F8F8FF), 0 0 0 5px var(--gsl-azure, #073393); }
.ighl-badge {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); white-space: nowrap;
  background: var(--gsl-orange, #FF934F); color: #fff; border: 2px solid var(--gsl-white, #F8F8FF); border-radius: 999px;
  padding: 2px 8px; font-family: Montserrat, sans-serif; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.ighl-text { display: flex; flex-direction: column; gap: 2px; max-width: 124px; }
.ighl-label {
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
  font-family: Montserrat, sans-serif; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--ink-1, #212121);
}
.ighl-when { font-size: 12px; line-height: 1.3; color: var(--ink-3, #6b6b74); }

@media (max-width: 767px) {
  .ighl-sec { padding: 32px 0 28px; }
  .ighl-sec .ighl-h2 { font-size: 24px; line-height: 1.15; }
  .ighl-arrows { display: none; }
  .ighl-sec .ighl-rail { margin: 14px -24px 0; padding: 6px 24px 4px; gap: 4px; scroll-padding-inline: 24px; }
  .ighl-item { width: 88px; gap: 8px; }
  .ighl-ring { width: 76px; height: 76px; }
  .ighl-text { max-width: 88px; }
  .ighl-label { font-size: 12px; }
  .ighl-when { font-size: 11px; }
}

/* ---------- Story viewer ---------- */
.igsv {
  position: fixed; inset: 0; z-index: 2147482000; display: none;
  align-items: center; justify-content: center; background: var(--azure-deep, #051F58);
  font-family: 'Nunito Sans', sans-serif; color: #fff; touch-action: none;
}
.igsv.is-open { display: flex; }
.igsv-card {
  position: relative; width: min(420px, calc((100vh - 48px) * 9 / 16)); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  user-select: none; -webkit-user-select: none;
}
@media (max-width: 600px) {
  .igsv-card { width: 100vw; height: 100dvh; aspect-ratio: auto; border-radius: 0; }
}
.igsv-bg {
  position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.55); transform: scale(1.1);
}
.igsv-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.igsv-textcard {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 80px 30px 140px; box-sizing: border-box; text-align: left;
  background: radial-gradient(120% 80% at 100% 0%, rgba(0,216,185,0.28), transparent 60%), linear-gradient(160deg, #073393, #051F58);
  color: #fff;
}
.igsv-textcard--light {
  background-color: #F8F8FF; color: #073393;
  background-image: linear-gradient(rgba(7,51,147,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(7,51,147,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.igsv-logo {
  align-self: flex-start; max-width: 62%; max-height: 96px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(5,31,88,0.12);
}
.igsv-kicker {
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gsl-turquoise, #00D8B9);
}
.igsv-kicker b { display: inline-block; padding: 1px 7px; margin: 0 2px; border-radius: 4px; background: var(--gsl-turquoise, #00D8B9); color: #073393; text-transform: lowercase; font-weight: 800; }
.igsv-textcard--light .igsv-kicker { color: #073393; }
.igsv-headline { font-family: Montserrat, sans-serif; font-weight: 800; font-size: clamp(24px, 6.4vh, 34px); line-height: 1.18; }
.igsv-sub { font-size: 16px; line-height: 1.55; opacity: 0.92; }
.igsv-textcard--light .igsv-sub { color: var(--ink-1, #212121); }
.igsv-card.is-light .igsv-shade-top, .igsv-card.is-light .igsv-shade-bot { display: none; }
.igsv-card.is-light .igsv-top, .igsv-card.is-light .igsv-btn { color: #073393; }
.igsv-card.is-light .igsv-btn:hover { background: rgba(7,51,147,0.08); }
.igsv-card.is-light .igsv-bar { background: rgba(7,51,147,0.18); }
.igsv-card.is-light .igsv-caption { color: #073393; text-shadow: none; }

/* Instagram embed stories: the post sits between the header and the link button; taps shrink to thin side strips */
.igsv-card.is-embed { background: #fff; }
.igsv-embed {
  position: absolute; left: 0; right: 0; top: 64px; bottom: 74px; width: 100%; height: calc(100% - 138px);
  border: 0; background: #fff; z-index: 1;
}
.igsv-card.is-embed .igsv-shade-top { background: linear-gradient(#051F58, #051F58); height: 64px; }
.igsv-card.is-embed .igsv-shade-bot { background: #051F58; height: 74px; }
.igsv-card.is-embed .igsv-caption { display: none; }
.igsv-card.is-embed .igsv-tap { z-index: 2; width: 9%; top: 64px; bottom: 74px; }
.igsv-card.is-embed .igsv-tap--next { width: 9%; }
.igsv-card.is-embed .igsv-bottom { padding-bottom: 16px; }

/* YouTube shorts fill the card under the header; the player keeps its own controls */
.igsv-yt { position: absolute; left: 0; right: 0; top: 64px; bottom: 74px; width: 100%; height: calc(100% - 138px); border: 0; background: #000; z-index: 1; }
.igsv-card.is-yt .igsv-shade-top { background: #051F58; height: 64px; }
.igsv-card.is-yt .igsv-shade-bot { background: #051F58; height: 74px; }
.igsv-card.is-yt .igsv-caption { display: none; }
.igsv-card.is-yt .igsv-tap { z-index: 2; width: 9%; top: 64px; bottom: 74px; }
.igsv-card.is-yt .igsv-bottom { padding-bottom: 16px; }

.igsv-shade-top, .igsv-shade-bot { position: absolute; left: 0; right: 0; pointer-events: none; }
.igsv-shade-top { top: 0; height: 110px; background: linear-gradient(rgba(5,31,88,0.7), transparent); }
.igsv-shade-bot { bottom: 0; height: 230px; background: linear-gradient(transparent, rgba(5,31,88,0.85)); }

.igsv-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.igsv-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.35); overflow: hidden; }
.igsv-bar > i { display: block; height: 100%; width: 0; background: var(--gsl-turquoise, #00D8B9); }

.igsv-top { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 4; display: flex; align-items: center; gap: 10px; }
.igsv-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid var(--gsl-turquoise, #00D8B9); }
.igsv-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.igsv-name { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igsv-date { font-size: 12px; opacity: 0.85; }
.igsv-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.igsv-btn:hover { background: rgba(255,255,255,0.15); }
.igsv-btn svg { width: 22px; height: 22px; }

.igsv-tap { position: absolute; top: 70px; bottom: 100px; z-index: 2; cursor: pointer; }
.igsv-tap--prev { left: 0; width: 35%; }
.igsv-tap--next { right: 0; width: 65%; }

.igsv-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
/* captions are kept for screen readers only; nothing is printed under the picture */
.igsv .igsv-caption { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.igsv-caption { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.igsv-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px;
  background: var(--gsl-turquoise, #00D8B9); color: var(--gsl-azure, #073393) !important;
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 13.5px; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.igsv-link:hover { background: #fff; }

.igsv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--gsl-azure, #073393); cursor: pointer; display: grid; place-items: center;
}
.igsv-nav:hover { background: var(--gsl-turquoise, #00D8B9); }
.igsv-nav svg { width: 20px; height: 20px; }
.igsv-nav--prev { right: calc(50% + min(210px, (100vh - 48px) * 9 / 32) + 20px); }
.igsv-nav--next { left: calc(50% + min(210px, (100vh - 48px) * 9 / 32) + 20px); }
@media (max-width: 600px) { .igsv-nav { display: none; } }

@media (prefers-reduced-motion: reduce) { .ighl-ring, .ighl-sec .ighl-rail { transition: none; scroll-behavior: auto; } }

/* ---------- Mobile refinements ----------
   --ighl-g is the side gutter; the rail bleeds edge to edge by exactly that much.
   It tracks the page-wide section padding used on index.html (24 / 20 / 16px). */
@media (max-width: 767px) {
  .ighl-sec { --ighl-g: 24px; padding: 32px var(--ighl-g) 28px !important; }
  .ighl-sec .ighl-rail {
    margin: 14px calc(-1 * var(--ighl-g)) 0; padding: 6px var(--ighl-g) 4px;
    scroll-padding-inline: var(--ighl-g); scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  }
}
@media (max-width: 480px) { .ighl-sec { --ighl-g: 20px; } }
@media (max-width: 374px) {
  .ighl-sec { --ighl-g: 16px; }
  .ighl-item { width: 80px; }
  .ighl-ring { width: 70px; height: 70px; }
  .ighl-text { max-width: 80px; }
}
@media (max-width: 600px) {
  /* full-screen viewer: fall back to 100vh where dvh is unsupported, and clear the notch / home bar */
  .igsv-card { height: 100vh; height: 100dvh; }
  .igsv-bars { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .igsv-top { top: calc(22px + env(safe-area-inset-top, 0px)); }
  .igsv-bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .igsv-btn { width: 44px; height: 44px; }
  .igsv-link { padding: 13px 22px; font-size: 14px; }
}
