
/* Launch Candidate 5 — Visual Polish & Content Flow */

.sdm-sitewide-source-first {
  order: 99;
  margin-top: 0;
  padding: clamp(2.75rem, 6vw, 5.5rem) 0;
  background: #f7fafc;
  border-top: 1px solid #d9e3ea;
  border-bottom: 0;
}

.sdm-sitewide-source-first__inner {
  display: block;
}

.sdm-sitewide-source-first__intro {
  max-width: 52rem;
}

.sdm-sitewide-source-first__summary {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}

.sdm-sitewide-source-first__summary span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e3ea;
  color: #10263d;
  font-size: .76rem;
  font-weight: 850;
}

.sdm-sitewide-source-first__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.25rem;
  padding: .72rem 1rem;
  border: 2px solid #10263d;
  border-radius: 999px;
  background: #fff;
  color: #10263d;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sdm-sitewide-source-first__toggle:hover {
  background: #10263d;
  color: #fff;
}

.sdm-sitewide-source-first__sources {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.sdm-sitewide-source-first.is-expanded .sdm-sitewide-source-first__sources {
  display: grid;
}

.sdm-sitewide-source-first__scope {
  display: none;
  max-width: 58rem;
  margin-top: 1rem;
  color: #5c6b78;
}

.sdm-sitewide-source-first.is-expanded .sdm-sitewide-source-first__scope {
  display: block;
}

.sdm-sitewide-direct-sources {
  display: none !important;
}

.sdm-page-source-card {
  min-height: 100%;
  box-shadow: 0 .5rem 1.4rem rgba(16,38,61,.06);
}

main > section {
  scroll-margin-top: calc(var(--sdm-header-height) + 1rem);
}

main > section + section {
  border-top: 0;
}

.sdm-section {
  position: relative;
}

.sdm-section + .sdm-section {
  margin-top: 0;
}

/* Remove obsolete/duplicate floating controls. */
.sdm-memory-badge,
[data-sdm-intelligence-floater],
.sdm-intelligence-floater,
.sdm-floating-intelligence,
.sdm-ask-intelligence,
[data-sdm-memory-badge],
[data-sdm-floating-record],
.sdm-recovery-record-floater {
  display: none !important;
}

body > .sdm-lc1-launcher ~ .sdm-lc1-launcher {
  display: none !important;
}

@media(max-width:68rem){
  .sdm-sitewide-source-first__sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:47.5rem){
  .sdm-sitewide-source-first {
    padding: 2.75rem 0;
  }

  .sdm-sitewide-source-first__sources {
    grid-template-columns: 1fr;
  }

  .sdm-sitewide-source-first__toggle {
    width: 100%;
  }
}

@media print {
  .sdm-sitewide-source-first__toggle {
    display: none;
  }

  .sdm-sitewide-source-first__sources,
  .sdm-sitewide-source-first__scope {
    display: block !important;
  }

  .sdm-sitewide-source-first__sources {
    columns: 2;
  }

  .sdm-page-source-card {
    break-inside: avoid;
    margin-bottom: .15in;
  }
}
