/* ---------- Diodrum (Exelon brand typeface, per Brand Guidelines V4 §Typography) ---------- */
@font-face {
  font-family: "Diodrum";
  src: url("/fonts/Diodrum-Light.woff2") format("woff2"),
    url("/fonts/Diodrum-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Diodrum";
  src: url("/fonts/Diodrum-Regular.woff2") format("woff2"),
    url("/fonts/Diodrum-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Diodrum";
  src: url("/fonts/Diodrum-Medium.woff2") format("woff2"),
    url("/fonts/Diodrum-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Diodrum";
  src: url("/fonts/Diodrum-Semibold.woff2") format("woff2"),
    url("/fonts/Diodrum-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Diodrum";
  src: url("/fonts/Diodrum-Bold.woff2") format("woff2"),
    url("/fonts/Diodrum-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Exelon brand palette (per Exelon Brand Guidelines V4 §Color Palette) */
  --exelon-dark-blue: #170d67;
  --exelon-purple: #6e06c1;
  --exelon-light-blue: #3a5cff;
  --exelon-green: #00e4a5;
  --exelon-gray: #e8e7f0;
  --exelon-orange: #ff8300;
  --exelon-yellow: #ffd700;

  --text: #0f0a3d;
  --muted: #5b5878;
  --border: #d8d6e3;
  --card: #ffffff;
  --bg: #f7f6fb;

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(23, 13, 103, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 13, 103, 0.1);

  /* Primary gradient: Dark Blue + Purple at 80:20, 45° (lighter Purple toward
     lower-left → darker Dark Blue upper-right). */
  --gradient-brand: linear-gradient(45deg, #6e06c1 0%, #170d67 55%, #170d67 100%);

  --font-brand: "Diodrum", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  --max: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-brand);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--exelon-light-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---------- Top bar (white ImpactHub logo on the brand gradient) ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--gradient-brand);
}
.topbar .logo {
  height: 26px;
  display: block;
}
.topbar nav {
  display: flex;
  gap: 22px;
}
.topbar nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 14px;
}
.topbar nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 72px 24px 96px;
  position: relative;
  overflow: hidden;
}
.hero .motif {
  position: absolute;
  inset: auto -60px -120px auto;
  width: 540px;
  height: 540px;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero .motif {
    width: 360px;
    height: 360px;
    inset: auto -120px -160px auto;
  }
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Cards (program documents) ---------- */
.cards {
  max-width: var(--max);
  margin: -56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23, 13, 103, 0.16);
}
.card .icon {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 12px;
  color: var(--exelon-dark-blue);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--exelon-dark-blue);
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Section wrapper ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}
.section h2 {
  margin: 0 0 10px;
  color: var(--exelon-dark-blue);
  font-size: 26px;
  font-weight: 500;
}
.section > p.sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0;
}

/* ---------- Support block ---------- */
.support-card {
  margin-top: 22px;
  background: var(--exelon-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.support-card strong {
  color: var(--exelon-dark-blue);
}
.support-card .contact {
  font-size: 16px;
  line-height: 1.9;
}

/* ---------- Legal / document pages ---------- */
.doc {
  background: #fff;
}
.doc .page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--muted);
}
.doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  color: var(--exelon-dark-blue);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.doc .meta {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doc .meta span {
  display: inline-block;
  margin-right: 18px;
}
.doc h2 {
  font-size: 20px;
  color: var(--exelon-dark-blue);
  font-weight: 600;
  margin: 36px 0 10px;
}
.doc h3 {
  font-size: 15.5px;
  color: var(--exelon-dark-blue);
  font-weight: 600;
  margin: 24px 0 6px;
}
.doc p,
.doc li {
  font-size: 16px;
  color: var(--text);
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: var(--exelon-dark-blue);
}
.doc code {
  background: var(--exelon-gray);
  color: var(--exelon-dark-blue);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.callout {
  background: rgba(0, 228, 165, 0.12);
  border: 1px solid var(--exelon-green);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 15px;
  color: var(--text);
}
.callout strong {
  color: var(--exelon-dark-blue);
}

.consent-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 14px 0 24px;
}
.consent-box .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent-box .checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--exelon-dark-blue);
}
.consent-box label {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.consent-box .disclosure {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.5;
}

.contact {
  font-size: 16px;
  line-height: 1.9;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--exelon-dark-blue);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 24px;
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer .footer-logo {
  height: 26px;
  width: auto;
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}
.site-footer .links a {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer .links a:hover {
  color: #fff;
}
.site-footer .legal-line {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 18px;
  margin: 4px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}
