
/* ==============================================================
   V3 SYSTEMIC SVG + OUTCOME PANEL CORRECTION
   --------------------------------------------------------------
   Root cause:
   The original icon sizing was scoped only to:
       .wyget-card .card-icon
   More than 20 outcome/editorial panels use .card-icon outside .wyget-card.
   Their SVGs therefore expanded fluidly to the full panel width.

   This final component guard constrains every icon regardless of context.
   ============================================================== */

/* Universal icon boundary: applies to all 318 card icons on the page. */
.card-icon {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  padding: 13px !important;
  margin: 0 0 20px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  border: 1px solid #cde7f5 !important;
  background: linear-gradient(145deg,#edf9ff,#e5f2fb) !important;
  color: #167eae !important;
  line-height: 1 !important;
}

.card-icon > svg,
.card-icon svg {
  display: block !important;
  box-sizing: border-box !important;
  flex: none !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  object-fit: contain !important;
}

/* Preserve the premium dark-section treatment. */
.wyget-dark .card-icon,
.wyget-outcome .card-icon {
  border-color: rgba(116,225,255,.25) !important;
  background: rgba(116,225,255,.10) !important;
  color: #83e8ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 10px 24px rgba(0,0,0,.12) !important;
}

/* Rebuild all 34 outcome panels as compact institutional callouts. */
.wyget-outcome {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 58px minmax(0,1fr) !important;
  column-gap: 19px !important;
  row-gap: 8px !important;
  align-items: start !important;
  min-height: 0 !important;
  height: auto !important;
  margin-top: 32px !important;
  padding: 29px 31px !important;
  overflow: hidden !important;
  border: 1px solid rgba(119,224,255,.22) !important;
  border-radius: 10px !important;
  background:
    radial-gradient(circle at 96% 0,rgba(75,190,244,.16),transparent 34%),
    linear-gradient(145deg,#061a37,#0b3768) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,.18) !important;
}

.wyget-outcome::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: linear-gradient(180deg,#87eaff,#398df4) !important;
}

.wyget-outcome .card-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  margin: 1px 0 0 !important;
}

.wyget-outcome .card-title {
  grid-column: 2 !important;
  margin: 0 !important;
  max-width: 980px !important;
  color: #fff !important;
  font-size: clamp(24px,2.3vw,35px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}

.wyget-outcome .card-copy {
  grid-column: 2 !important;
  margin: 3px 0 0 !important;
  max-width: 1100px !important;
  color: #b9cce0 !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}

.wyget-outcome .card-copy strong {
  color: #fff !important;
}

/* The one editorial panel using the same icon component. */
.wyget-editorial .card-icon {
  margin-bottom: 17px !important;
}

/* ==============================================================
   DESKTOP HEADER COLLISION CORRECTION
   --------------------------------------------------------------
   Remove redundant metadata from the command header and reserve the
   available centre column for the actual chapter navigation.
   ============================================================== */
.sv-header {
  grid-template-columns: auto minmax(0,1fr) auto !important;
  gap: 15px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.sv-header-meta,
.sv-brand-badge {
  display: none !important;
}

.sv-brand {
  min-width: 0 !important;
  padding-right: 0 !important;
}

.sv-brand img {
  width: 158px !important;
  max-width: 158px !important;
}

.sv-nav {
  justify-self: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 2px !important;
  padding: 6px !important;
}

.sv-nav a {
  flex: 0 0 auto !important;
  padding: 10px 12px !important;
  white-space: nowrap !important;
  font-size: 9px !important;
  letter-spacing: .09em !important;
}

.sv-actions {
  justify-self: end !important;
  gap: 10px !important;
}

.sv-text-link {
  font-size: 10px !important;
}

.sv-primary-link {
  min-height: 42px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  font-size: 9px !important;
  white-space: nowrap !important;
}

/* Switch to the existing mobile menu before the navigation can collide. */
@media (max-width: 1380px) {
  .sv-header {
    grid-template-columns: auto 1fr auto !important;
  }

  .sv-nav {
    display: none !important;
  }

  .sv-menu {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

@media (max-width: 760px) {
  .wyget-outcome {
    grid-template-columns: 1fr !important;
    padding: 25px 22px !important;
  }

  .wyget-outcome .card-icon,
  .wyget-outcome .card-title,
  .wyget-outcome .card-copy {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .wyget-outcome .card-title {
    font-size: clamp(23px,7vw,31px) !important;
  }

  .sv-brand img {
    width: 142px !important;
    max-width: 142px !important;
  }
}
