
.csg-page {
  max-width: 1080px;
  margin: 0 auto;
}

.csg-hero {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(115, 80, 154, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 8%, rgba(95, 124, 245, .12), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(147, 105, 188, .14), transparent 32%),
    #f7f4f7;
}

.csg-kicker {
  margin: 0 0 10px;
  color: #73509a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.csg-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #18121f;
  font-size: clamp(2.2rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.csg-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: #645c68;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.68;
}

.csg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.csg-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 13px;
  font-weight: 800;
  text-decoration: none;
}

.csg-primary {
  background: #73509a;
  color: #fff !important;
}

.csg-secondary {
  border: 1px solid #d7cddd;
  background: #fff;
  color: #2a2230 !important;
}

.csg-disclaimer {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid #ddd4e2;
  border-radius: 14px;
  background: #faf8fb;
  color: #645c68;
  font-size: .88rem;
  line-height: 1.55;
}

.csg-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.csg-section,
.csg-guardrail {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #e4dee7;
  border-radius: 20px;
  background: #fff;
}

.csg-section h2,
.csg-guardrail h2,
.csg-related h2,
.csg-hub-group h2 {
  margin: 0 0 10px;
  color: #18121f;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.18;
}

.csg-section p,
.csg-guardrail p {
  margin: 0;
  color: #69616e;
  line-height: 1.68;
}

.csg-guardrail {
  margin-top: 16px;
  background: #f4eff7;
}

.csg-related,
.csg-hub-group {
  margin-top: 32px;
}

.csg-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.csg-related-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid #e1d9e5;
  border-radius: 16px;
  background: #fff;
  color: #18121f !important;
  text-decoration: none !important;
}

.csg-related-card strong {
  color: inherit;
  line-height: 1.25;
}

.csg-related-card span {
  color: #746b79;
  font-size: .88rem;
  line-height: 1.5;
}

.csg-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e4dee7;
}

.csg-bottom-nav a {
  color: #73509a;
  font-weight: 750;
  text-decoration: none;
}

html[data-cv-theme="dark"] .csg-hero {
  border-color: #403449;
  background:
    radial-gradient(circle at 92% 8%, rgba(95,124,245,.12), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(147,105,188,.15), transparent 32%),
    #211a27;
}

html[data-cv-theme="dark"] .csg-kicker {
  color: #aa7fd0;
}

html[data-cv-theme="dark"] .csg-hero h1,
html[data-cv-theme="dark"] .csg-section h2,
html[data-cv-theme="dark"] .csg-guardrail h2,
html[data-cv-theme="dark"] .csg-related h2,
html[data-cv-theme="dark"] .csg-hub-group h2 {
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .csg-lead,
html[data-cv-theme="dark"] .csg-section p,
html[data-cv-theme="dark"] .csg-guardrail p {
  color: #c3b8c8 !important;
}

html[data-cv-theme="dark"] .csg-secondary {
  border-color: #4a3b55;
  background: #18131d;
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .csg-disclaimer {
  border-color: #403449;
  background: #1d1723;
  color: #bcb1c1;
}

html[data-cv-theme="dark"] .csg-section,
html[data-cv-theme="dark"] .csg-related-card {
  border-color: #403449;
  background: #211a27;
}

html[data-cv-theme="dark"] .csg-guardrail {
  border-color: #4a3b55;
  background: #28202f;
}

html[data-cv-theme="dark"] .csg-related-card {
  color: #f8f4fa !important;
}

html[data-cv-theme="dark"] .csg-related-card span {
  color: #aaa0af;
}

html[data-cv-theme="dark"] .csg-bottom-nav {
  border-color: #403449;
}

html[data-cv-theme="dark"] .csg-bottom-nav a {
  color: #b78bd8;
}

@media (max-width: 760px) {
  .csg-sections,
  .csg-related-grid {
    grid-template-columns: 1fr;
  }

  .csg-bottom-nav {
    flex-direction: column;
  }
}
