@import url('/fonts/cormorant-figtree.css');

/* Luminous animated "Good news first" section upgrade for 508ministry.com */
/* Strictly scoped to #good-news. Preserves Gold Compass, (i) tooltip, original 3 photos, lightbox, and links. */

#good-news.gn {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: clamp(40px, 5vw, 66px) 20px clamp(44px, 5.2vw, 72px) !important;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 52%, #eff6ff 100%) !important;
  border-top: 0 !important;
  color: #243652 !important;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif !important;
}

#good-news.gn *,
#good-news.gn *::before,
#good-news.gn *::after {
  box-sizing: border-box;
}

/* 1. Sunlit Rounded Outer Frame */
#good-news .gn-wrap {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 36px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 7% 6%, rgba(191, 219, 254, 0.34) 0%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 93% 7%, rgba(186, 230, 253, 0.36) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 86% 94%, rgba(219, 234, 254, 0.38) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border: 1.5px solid #d9eafa;
  box-shadow:
    0 24px 62px -26px rgba(30, 64, 175, 0.16),
    0 0 38px rgba(147, 197, 253, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

/* 2. Header Row: 3-Part Responsive Layout */
#good-news .gn-head {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 18px 26px !important;
  align-items: center !important;
  margin: 0 0 26px !important;
  padding: 0 0 24px !important;
  border-bottom: 1px solid #dcebfa;
}

#good-news .gnv-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

#good-news .gnv-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe594 0%, #f6c343 100%);
  border: 1px solid rgba(217, 155, 22, 0.34);
  color: #0b2046;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow:
    0 6px 16px -6px rgba(217, 155, 22, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

#good-news h2#gn2-h.gn-h {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 11px !important;
  margin: 0 !important;
  font-family: 'Cormorant', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: clamp(33px, 3.3vw, 45px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.02em !important;
  color: #0b2046 !important;
  text-align: left !important;
}

#good-news h2#gn2-h.gn-h::before {
  display: none !important;
  content: none !important;
}

/* Gleaming Animated Gold Compass Medallion */
#good-news #gn2-h .gn-compass-wrap {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(255, 232, 155, 0.55), rgba(212, 168, 75, 0.12) 68%, transparent 100%);
  box-shadow:
    0 0 0 2px rgba(247, 206, 98, 0.42),
    0 8px 18px -6px rgba(180, 130, 32, 0.55),
    0 0 20px rgba(246, 195, 67, 0.34);
  filter: drop-shadow(0 3px 8px rgba(180, 130, 32, 0.36)) !important;
  animation: gnvCompassGlow 4.6s ease-in-out infinite;
  will-change: transform, filter;
}

#good-news #gn2-h .gn-compass-wrap::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 195, 67, 0.52);
  opacity: 0;
  pointer-events: none;
  animation: gnvCompassRing 4.6s ease-out infinite;
}

#good-news #gn2-h .gn-compass-svg {
  width: 46px !important;
  height: 46px !important;
  display: block;
}

#good-news #gn2-h .gn-compass-svg .gnv-compass-needle {
  transform-origin: 50px 50px;
  animation: gnvNeedleSway 5.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes gnvCompassGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 3px 8px rgba(180, 130, 32, 0.36)) brightness(1);
  }
  50% {
    transform: translateY(-1.5px) scale(1.035);
    filter: drop-shadow(0 6px 14px rgba(212, 160, 48, 0.55)) brightness(1.07);
  }
}

@keyframes gnvCompassRing {
  0% {
    transform: scale(0.94);
    opacity: 0.65;
  }
  70%, 100% {
    transform: scale(1.26);
    opacity: 0;
  }
}

@keyframes gnvNeedleSway {
  0%, 100% {
    transform: rotate(-7deg);
  }
  25% {
    transform: rotate(9deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(6deg);
  }
}

/* Preserved Gold (i) Info Badge & Tooltip */
#good-news #gn2-h .gn-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#good-news #gn2-h .gn-info-btn {
  width: 26px !important;
  height: 26px !important;
  background: radial-gradient(circle at 42% 28%, #ffe9a2 0%, #f5c342 66%, #e0a726 100%) !important;
  color: #0b2046 !important;
  font-family: 'Cormorant', Georgia, serif !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  box-shadow:
    0 0 0 1px rgba(212, 152, 24, 0.42),
    0 0 12px rgba(246, 195, 67, 0.55),
    0 4px 10px -4px rgba(160, 114, 24, 0.65) !important;
}

#good-news #gn2-h .gn-info-pop {
  z-index: 80 !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
}

/* Center Explainer Copy with Soft Sky-Blue Vertical Accent Bar */
#good-news .gn-lede {
  margin: 0 !important;
  padding: 2px 0 2px 22px !important;
  border-left: 2px solid #c9e0f8;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.56 !important;
  color: #243858 !important;
  text-align: left !important;
  max-width: 470px;
}

/* Right Header Audio Cluster: Royal-Blue Play + Clara & Marcus + Soundwave */
#good-news .gnv-head-audio {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 4px 10px 4px;
  min-width: 190px;
}

#good-news .gnv-wave-head {
  position: absolute;
  left: -26px;
  right: -10px;
  bottom: -6px;
  height: 50px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#good-news .gnv-wave-head svg {
  width: 100%;
  height: 48px;
  display: block;
  overflow: visible;
}

#good-news .gnv-play-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: radial-gradient(circle at 34% 28%, #5aa9ff 0%, #1d74eb 60%, #1456bd 100%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
  will-change: transform;
}

#good-news .gnv-play-btn:hover {
  transform: scale(1.07);
  filter: brightness(1.06);
}

#good-news .gnv-play-btn:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

#good-news .gnv-play-btn-lg {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 0 5px rgba(246, 195, 67, 0.58),
    0 10px 22px -6px rgba(29, 116, 235, 0.62),
    0 0 22px rgba(96, 165, 250, 0.55);
}

#good-news .gnv-play-btn-lg::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.38);
  pointer-events: none;
  animation: gnvPlayHalo 3.2s ease-out infinite;
}

#good-news .gnv-play-btn-sm {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  box-shadow:
    0 0 0 2.5px #ffffff,
    0 8px 18px -5px rgba(29, 116, 235, 0.55),
    0 0 14px rgba(96, 165, 250, 0.45);
}

#good-news .gnv-play-btn svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

#good-news .gnv-play-btn-sm svg {
  width: 15px;
  height: 15px;
}

#good-news .gnv-play-btn .gnv-ico-pause {
  display: none;
}

#good-news.gnv-playing .gnv-play-btn .gnv-ico-play {
  display: none;
}

#good-news.gnv-playing .gnv-play-btn .gnv-ico-pause {
  display: block;
}

@keyframes gnvPlayHalo {
  0% {
    transform: scale(0.95);
    opacity: 0.72;
  }
  75%, 100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

/* Clara & Marcus Circular Avatars */
#good-news .gnv-avatars {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
}

#good-news .gnv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2.5px solid #ffffff;
  background: #e2e8f0;
  box-shadow:
    0 6px 14px -4px rgba(15, 35, 75, 0.28),
    0 0 0 1px rgba(147, 197, 253, 0.55);
  transition: transform 0.24s ease;
}

#good-news .gnv-avatar + .gnv-avatar {
  margin-left: -6px;
}

#good-news .gnv-head-audio:hover .gnv-avatar:first-child {
  transform: translateY(-2px);
}

#good-news .gnv-head-audio:hover .gnv-avatar:last-child {
  transform: translateY(-2px) translateX(2px);
}

/* Animated Soundwave Bars (60fps GPU transform) */
#good-news .gnv-wave rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: gnvWaveBreath 2.6s ease-in-out infinite;
  will-change: transform, opacity;
}

#good-news.gnv-playing .gnv-wave rect {
  animation-name: gnvWaveActive;
  animation-duration: 1.05s;
}

@keyframes gnvWaveBreath {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(0.54);
    opacity: 1;
  }
}

@keyframes gnvWaveActive {
  0%, 100% {
    transform: scaleY(1.12);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.32);
    opacity: 0.78;
  }
}

/* 3. Three Luminous Step Cards */
#good-news .gn-grid,
#good-news .gn-grid.gn-solo {
  display: block !important;
  grid-template-columns: none !important;
}

#good-news .gn-tiles,
#good-news .gn-solo .gn-tiles {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  gap: 20px !important;
  align-items: stretch !important;
}

#good-news .gn-tile,
#good-news .gn-solo .gn-tile {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  min-width: 0;
  min-height: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid #d9eafa !important;
  box-shadow:
    0 14px 32px -20px rgba(30, 64, 175, 0.22),
    0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.28s ease !important;
  will-change: transform;
}

@media (hover: hover) {
  #good-news .gn-tile:hover,
  #good-news .gn-solo .gn-tile:hover {
    transform: translateY(-5px) !important;
    border-color: #93c5fd !important;
    box-shadow:
      0 24px 44px -20px rgba(37, 99, 235, 0.26),
      0 6px 14px rgba(15, 23, 42, 0.05) !important;
  }
}

/* Media Stage Wrapping Original .gn-zoom + Floating Overlays */
#good-news .gnv-media-stage {
  position: relative;
  width: 100%;
  padding: 10px 10px 0 10px;
  background: transparent;
}

#good-news .gnv-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.2;
  border-radius: 14px;
  overflow: hidden;
  background: #e6f0fb;
  box-shadow: inset 0 0 0 1px rgba(15, 35, 75, 0.06);
}

#good-news .gn-zoom.gn-tile-media,
#good-news .gn-solo .gn-zoom.gn-tile-media {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  border-radius: 14px;
  overflow: hidden;
  background: #dce9f8 !important;
}

#good-news .gn-zoom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Exact original photo framing so faces stay crystal clear */
#good-news .gn-tile:nth-child(1) .gn-zoom img {
  object-position: center 22%;
}

#good-news .gn-tile:nth-child(2) .gn-zoom img {
  object-position: 24% 18%;
}

#good-news .gn-tile:nth-child(3) .gn-zoom img {
  object-position: 91% 30%;
}

/* Crisp Royal-Blue Circular Zoom Magnifier Button */
#good-news .gn-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(145deg, #4b74b8 0%, #31518c 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.62) !important;
  box-shadow:
    0 8px 18px -4px rgba(15, 35, 75, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.16) !important;
  opacity: 0.96 !important;
  z-index: 4;
  transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease !important;
}

#good-news .gn-badge svg {
  width: 17px !important;
  height: 17px !important;
  stroke-width: 2.2;
}

#good-news .gn-zoom:hover .gn-badge,
#good-news .gn-zoom:focus-visible .gn-badge {
  opacity: 1 !important;
  transform: scale(1.1) !important;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%) !important;
}

/* Card 2 Floating Translucent Checklist Overlay (Bottom-Right) */
#good-news .gnv-float-c2 {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 55%;
  max-width: 196px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.91);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 26px -6px rgba(12, 28, 64, 0.34),
    0 2px 6px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 3;
  transform: perspective(640px) rotateY(-4deg) rotateX(1.5deg);
  animation: gnvFloatC2 4.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes gnvFloatC2 {
  0%, 100% {
    transform: perspective(640px) rotateY(-4deg) rotateX(1.5deg) translateY(0px);
  }
  50% {
    transform: perspective(640px) rotateY(-2deg) rotateX(0.5deg) translateY(-4px);
  }
}

#good-news .gnv-c2-sparkles {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

#good-news .gnv-c2-sparkles line {
  stroke: #f5b92a;
  stroke-width: 2.6;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: gnvSparkleTick 2.4s ease-in-out infinite;
}

#good-news .gnv-c2-sparkles line:nth-child(2) {
  animation-delay: 0.25s;
}

#good-news .gnv-c2-sparkles line:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes gnvSparkleTick {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

#good-news .gnv-c2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#good-news .gnv-c2-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #0b2046;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(147, 197, 253, 0.42);
}

#good-news .gnv-c2-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
  align-items: flex-start;
}

#good-news .gnv-check {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(145deg, #22c55e 0%, #10b981 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.36);
  margin-top: 0.5px;
}

#good-news .gnv-check svg {
  width: 9.5px;
  height: 9.5px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card 3 Floating Spiral-Notebook Checklist Overlay (Bottom-Left) */
#good-news .gnv-float-c3 {
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 40%;
  max-width: 146px;
  padding: 12px 8px 8px;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow:
    0 14px 26px -6px rgba(12, 24, 52, 0.44),
    0 3px 8px rgba(15, 23, 42, 0.14);
  pointer-events: none;
  z-index: 3;
  transform: rotate(-3.2deg);
  transform-origin: bottom left;
  animation: gnvFloatC3 5.2s ease-in-out infinite;
  will-change: transform;
}

@keyframes gnvFloatC3 {
  0%, 100% {
    transform: rotate(-3.2deg) translateY(0px);
  }
  50% {
    transform: rotate(-2.1deg) translateY(-4px);
  }
}

#good-news .gnv-spiral-rings {
  position: absolute;
  top: -7px;
  left: 7px;
  right: 7px;
  height: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

#good-news .gnv-spiral-ring {
  position: relative;
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 45%, #475569 100%);
  box-shadow: 0 2px 3px rgba(15, 23, 42, 0.3);
}

#good-news .gnv-spiral-ring::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
}

#good-news .gnv-c3-title {
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #e2ecf8;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0b2046;
  text-align: center;
}

#good-news .gnv-c3-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4.5px;
}

#good-news .gnv-c3-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 9.3px;
  font-weight: 700;
  line-height: 1.16;
  color: #162c52;
  padding-bottom: 3.5px;
  border-bottom: 1px solid rgba(191, 219, 254, 0.45);
}

#good-news .gnv-c3-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

#good-news .gnv-c3-list .gnv-check {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

#good-news .gnv-c3-list .gnv-check svg {
  width: 8px;
  height: 8px;
}

/* Card Text Body: Pale-Sky Icon Tile Left + Step Pill & Copy Right */
#good-news .gn-tile-body,
#good-news .gn-solo .gn-tile-body {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 0 14px !important;
  align-items: start !important;
  flex: 1 1 auto !important;
  padding: 18px 18px 22px 16px !important;
}

#good-news .gn-ic {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  margin: 2px 0 0 !important;
  background: linear-gradient(180deg, #f0f7ff 0%, #dfeeff 100%) !important;
  border: 1px solid #cbe2fd !important;
  color: #1d72e8 !important;
  box-shadow:
    0 8px 18px -10px rgba(29, 114, 232, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  display: grid !important;
  place-items: center !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#good-news .gn-tile:hover .gn-ic {
  transform: scale(1.05);
  box-shadow:
    0 12px 22px -10px rgba(29, 114, 232, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

#good-news .gn-ic svg {
  width: 25px !important;
  height: 25px !important;
  stroke: #1d72e8 !important;
}

#good-news .gnv-step-copy {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

#good-news .gnv-step-pill {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe594 0%, #f6c343 100%);
  border: 1px solid rgba(217, 155, 22, 0.32);
  color: #0b2046;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 4px 10px -5px rgba(217, 155, 22, 0.5);
}

#good-news .gn-t {
  margin: 2px 0 0 !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  line-height: 1.24 !important;
  letter-spacing: -0.012em !important;
  color: #0b2046 !important;
  text-align: left !important;
}

#good-news .gn-d {
  margin: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.54 !important;
  color: #364b6d !important;
  text-align: left !important;
}

/* 4. Bottom Pill Action Strip */
#good-news .gn-links {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px 22px !important;
  margin: 24px 0 0 !important;
  padding: 11px 24px 11px 16px !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  border: 1px solid #d9eafa;
  box-shadow:
    0 12px 28px -18px rgba(30, 64, 175, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

#good-news .gnv-bar-left {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

#good-news .gnv-bar-div {
  width: 1px;
  height: 22px;
  background: #c8def6;
  flex: 0 0 1px;
}

#good-news .gn-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  color: #0b2046 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  padding: 4px 0 7px !important;
  transition: color 0.2s ease;
}

#good-news .gn-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7c948 0%, #f3b324 100%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
  transform-origin: left center;
}

#good-news .gn-links a:hover,
#good-news .gn-links a:focus-visible {
  color: #1d64d8 !important;
  outline: none;
}

#good-news .gn-links a:hover::after,
#good-news .gn-links a:focus-visible::after {
  transform: scaleX(1.04);
  filter: brightness(1.06);
}

#good-news .gnv-wave-bar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 350px;
  min-width: 160px;
  pointer-events: none;
}

#good-news .gnv-wave-bar svg {
  width: 100%;
  max-width: 350px;
  height: 42px;
  display: block;
}

/* Smooth Scroll-Reveal Stagger (never blocks visibility) */
#good-news.gnv-reveal-ready .gn-tile {
  opacity: 0;
  transform: translateY(18px);
}

#good-news.gnv-reveal-ready.gnv-revealed .gn-tile {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease !important;
}

#good-news.gnv-reveal-ready.gnv-revealed .gn-tile:nth-child(2) {
  transition-delay: 0.08s;
}

#good-news.gnv-reveal-ready.gnv-revealed .gn-tile:nth-child(3) {
  transition-delay: 0.16s;
}

/* Tablet Layout */
@media (max-width: 1080px) {
  #good-news .gn-wrap {
    padding: 28px 24px 26px;
    border-radius: 24px;
  }

  #good-news .gn-head {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 16px 20px !important;
  }

  #good-news .gn-lede {
    grid-column: 1 / -1;
    max-width: none;
    border-left: 3px solid #c9e0f8;
    padding-left: 16px !important;
  }

  #good-news .gn-tiles,
  #good-news .gn-solo .gn-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  #good-news .gn-tile-body,
  #good-news .gn-solo .gn-tile-body {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 0 11px !important;
    padding: 15px 14px 18px !important;
  }

  #good-news .gn-ic {
    width: 42px !important;
    height: 42px !important;
  }

  #good-news .gnv-wave-bar {
    flex: 0 1 210px;
    min-width: 120px;
  }
}

/* Mobile Layout (Zero Horizontal Overflow) */
@media (max-width: 820px) {
  #good-news .gn-tiles,
  #good-news .gn-solo .gn-tiles {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #good-news .gn-tile,
  #good-news .gn-solo .gn-tile {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
  }

  #good-news .gnv-media-frame {
    aspect-ratio: 16 / 10;
  }

  #good-news .gn-links {
    border-radius: 22px;
    padding: 14px 16px !important;
    justify-content: flex-start !important;
  }

  #good-news .gnv-wave-bar {
    width: 100%;
    flex: 1 0 100%;
    justify-content: center;
    margin-top: 2px;
  }
}

@media (max-width: 640px) {
  #good-news.gn {
    padding: 28px 12px 36px !important;
  }

  #good-news .gn-wrap {
    padding: 22px 15px 20px;
    border-radius: 22px;
  }

  #good-news .gn-head {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-bottom: 18px !important;
    margin-bottom: 20px !important;
  }

  #good-news .gnv-eyebrow {
    font-size: 10px;
    padding: 5px 12px;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  #good-news h2#gn2-h.gn-h {
    font-size: clamp(29px, 8.2vw, 36px) !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
  }

  #good-news #gn2-h .gn-compass-wrap {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  #good-news #gn2-h .gn-compass-svg {
    width: 38px !important;
    height: 38px !important;
  }

  #good-news #gn2-h .gn-info-pop {
    left: auto !important;
    right: -8px !important;
    transform: none !important;
    width: min(270px, 78vw) !important;
  }

  #good-news #gn2-h .gn-info-pop::before {
    left: auto !important;
    right: 16px !important;
    transform: rotate(45deg) !important;
  }

  #good-news .gn-lede {
    font-size: 14px !important;
    padding-left: 14px !important;
  }

  #good-news .gnv-head-audio {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    padding: 6px 2px 10px;
  }

  #good-news .gnv-wave-head {
    left: 0;
    right: 0;
    bottom: -2px;
  }

  #good-news .gnv-float-c2 {
    width: 56%;
    max-width: 184px;
    right: 8px;
    bottom: 8px;
    padding: 7px 9px;
  }

  #good-news .gnv-c2-list li {
    font-size: 10px;
  }

  #good-news .gnv-float-c3 {
    width: 42%;
    max-width: 142px;
    left: 7px;
    bottom: 6px;
    padding: 11px 7px 7px;
  }

  #good-news .gnv-c3-title {
    font-size: 10.5px;
  }

  #good-news .gnv-c3-list li {
    font-size: 9px;
  }

  #good-news .gn-tile-body,
  #good-news .gn-solo .gn-tile-body {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    padding: 16px 15px 18px 14px !important;
  }

  #good-news .gn-ic {
    width: 46px !important;
    height: 46px !important;
  }

  #good-news .gn-t {
    font-size: 17px !important;
  }

  #good-news .gn-d {
    font-size: 14px !important;
  }

  #good-news .gnv-bar-left {
    gap: 10px 14px;
  }

  #good-news .gnv-bar-div {
    display: none;
  }

  #good-news .gn-links a {
    font-size: 14px !important;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  #good-news .gn-compass-wrap,
  #good-news .gn-compass-wrap::after,
  #good-news .gn-compass-svg .gnv-compass-needle,
  #good-news .gnv-play-btn-lg::after,
  #good-news .gnv-wave rect,
  #good-news .gnv-float-c2,
  #good-news .gnv-float-c3,
  #good-news .gnv-c2-sparkles line {
    animation: none !important;
  }

  #good-news .gn-tile,
  #good-news .gn-zoom img,
  #good-news .gn-badge,
  #good-news .gnv-play-btn,
  #good-news .gnv-avatar,
  #good-news .gn-ic,
  #good-news .gn-links a::after {
    transition: none !important;
  }

  #good-news.gnv-reveal-ready .gn-tile {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* mg-20261126 */
@media (max-width: 900px) {
  #good-news .gnv-eyebrow,
  #good-news .gnv-c3-title,
  #good-news .gnv-c2-list li,
  #good-news .v508-h {
    font-size: 14px !important;
  }
  #good-news .gnv-play-btn.gnv-play-btn-sm {
    width: 44px !important;
    height: 44px !important;
  }
}
/* /mg-20261126 */

/* mobile-gate-20261127-gn */
@media (max-width:1024px){
  .gn-links a{min-height:44px!important;padding:10px 0!important;display:inline-flex!important;align-items:center!important}
}
/* /mobile-gate-20261127-gn */
