:root {
  --footer-bg: #07101f;
  --footer-bg-deep: #050b15;
  --footer-line: rgba(255,255,255,.075);
  --footer-text: #d8deea;
  --footer-muted: #7c899d;
  --footer-heading: #7f8ca2;
  --footer-accent: #f59e0b;
}

.csprofile-footer {
  margin-top: 72px;
  color: var(--footer-text);
  background:
    radial-gradient(circle at 15% -20%, rgba(43,95,174,.18), transparent 34%),
    linear-gradient(180deg, var(--footer-bg), var(--footer-bg-deep));
  border-top: 1px solid var(--footer-line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.csp-footer-inner {
  width: min(calc(100% - 48px), 1450px);
  margin: 0 auto;
  padding: 52px 0 22px;
}

.csp-footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(440px, .8fr);
  gap: 54px;
  align-items: end;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--footer-line);
}

.csp-footer-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--footer-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.csp-footer-intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 2.3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.csp-footer-intro p {
  max-width: 690px;
  margin: 14px 0 0;
  color: #929daf;
  font-size: 14px;
  line-height: 1.65;
}

.csp-footer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.csp-footer-stats div {
  min-width: 0;
  padding: 16px 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
}

.csp-footer-stats strong,
.csp-footer-stats span {
  display: block;
}

.csp-footer-stats strong {
  color: #fff;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -.025em;
}

.csp-footer-stats span {
  margin-top: 5px;
  color: var(--footer-muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.csp-footer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 42px;
  padding-top: 40px;
}

.csp-footer-column {
  min-width: 0;
}

.csp-footer-column h3 {
  margin: 0 0 17px;
  color: var(--footer-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.csp-footer-column a {
  display: block;
  width: fit-content;
  margin: 0 0 12px;
  color: #cbd2de;
  text-decoration: none;
  font-size: 14px;
  font-weight: 630;
  line-height: 1.28;
  transition: color .16s ease, transform .16s ease;
}

.csp-footer-column a:hover,
.csp-footer-column a:focus-visible {
  color: #fff;
  transform: translateX(2px);
  outline: none;
}

.csp-footer-popular {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-top: 34px;
  padding: 23px 0;
  border-top: 1px solid var(--footer-line);
  border-bottom: 1px solid var(--footer-line);
}

.csp-footer-popular a {
  position: relative;
  color: rgba(210,216,226,.48);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
  transition: color .16s ease;
}

.csp-footer-popular a:not(:last-child)::after {
  content: "•";
  margin: 0 9px;
  color: rgba(210,216,226,.22);
}

.csp-footer-popular a:hover,
.csp-footer-popular a:focus-visible {
  color: #dce2ec;
  outline: none;
}

.csp-footer-bottom {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--footer-muted);
  font-size: 12px;
}

.csp-footer-bottom p {
  margin: 0;
}

.csp-footer-bottom p:last-child {
  margin-left: auto;
}

.csp-footer-brand {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -.045em;
}

.csp-footer-brand span {
  color: var(--footer-accent);
  font-weight: 850;
}

@media (max-width: 1100px) {
  .csp-footer-intro {
    grid-template-columns: 1fr;
  }

  .csp-footer-stats {
    max-width: 760px;
  }

  .csp-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 38px;
  }
}

@media (max-width: 680px) {
  .csprofile-footer {
    margin-top: 48px;
  }

  .csp-footer-inner {
    width: min(calc(100% - 28px), 1450px);
    padding-top: 38px;
  }

  .csp-footer-intro {
    gap: 28px;
    padding-bottom: 30px;
  }

  .csp-footer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .csp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 22px;
    padding-top: 32px;
  }

  .csp-footer-column a {
    font-size: 13px;
  }

  .csp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 4px;
  }

  .csp-footer-bottom p:last-child {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .csp-footer-grid {
    grid-template-columns: 1fr;
  }
}


/* V21 — force the footer to use the CSProfile dark design in every theme. */
html[data-theme="light"] .csprofile-footer,
html[data-theme="dark"] .csprofile-footer,
.csprofile-footer {
  --footer-bg: #07101f;
  --footer-bg-deep: #050b15;
  --footer-line: rgba(255,255,255,.075);
  --footer-text: #d8deea;
  --footer-muted: #7c899d;
  --footer-heading: #7f8ca2;
  background:
    radial-gradient(circle at 15% -20%, rgba(43,95,174,.18), transparent 34%),
    linear-gradient(180deg, var(--footer-bg), var(--footer-bg-deep));
  color: var(--footer-text);
}

html[data-theme="light"] .csp-footer-intro h2,
html[data-theme="light"] .csp-footer-stats strong,
html[data-theme="light"] .csp-footer-brand,
.csp-footer-intro h2,
.csp-footer-stats strong,
.csp-footer-brand {
  color: #fff;
}

html[data-theme="light"] .csp-footer-intro p,
html[data-theme="light"] .csp-footer-column a,
.csp-footer-intro p,
.csp-footer-column a {
  color: #cbd2de;
}

html[data-theme="light"] .csp-footer-stats div,
.csp-footer-stats div {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}

html[data-theme="light"] .csp-footer-popular a,
.csp-footer-popular a {
  color: rgba(210,216,226,.55);
}



/* =========================================================
   CSProfile Navy Design System v22
   ========================================================= */
:root {
  --csp-page: #07101f;
  --csp-page-deep: #050b15;
  --csp-surface: #0b1423;
  --csp-surface-2: #101b2d;
  --csp-surface-3: #132036;
  --csp-line: rgba(138,160,193,.14);
  --csp-line-strong: rgba(138,160,193,.24);
  --csp-text: #f4f6fa;
  --csp-muted: #8d9aae;
  --csp-muted-2: #68758a;
  --csp-accent: #f59e0b;
}

.csprofile-footer {
  background:
    radial-gradient(circle at 15% -20%, rgba(43,95,174,.18), transparent 34%),
    linear-gradient(180deg, var(--csp-page), var(--csp-page-deep)) !important;
}
