/* CVPilot AI — Footer clarity + softer Aurora light theme
   Loaded after all theme bundles so footer colours stay correct in both modes. */
:root {
  color-scheme: light;
  --cp-bg: #f5f1fa;
  --cp-paper: #fffafd;
  --cp-paper-2: #f0eaf7;
  --cp-ink: #5b526e;
  --cp-muted: #6b637d;
  --cp-soft-muted: #746d84;
  --cp-line: #ded5e9;
  --cp-line-strong: #cfc3df;
  --cp-accent: #735bd2;
  --cp-accent-strong: #5c45b8;
  --cp-accent-soft: #eee8ff;
  --cp-mint-soft: #e4f4ee;
  --cp-teal: #287f79;
  --cp-coral: #c97987;
  --cp-gold: #a87b42;
  --cp-peach-soft: #faeaf0;
  --cp-blue-soft: #e9effd;
  --bg: var(--cp-bg);
  --paper: var(--cp-paper);
  --ink: var(--cp-ink);
  --muted: var(--cp-muted);
  --line: var(--cp-line);
  --soft: var(--cp-paper-2);
  --kr-bg: var(--cp-bg);
  --kr-surface: var(--cp-paper);
  --kr-surface-soft: var(--cp-paper-2);
  --kr-ink: var(--cp-ink);
  --kr-muted: var(--cp-muted);
  --kr-line: var(--cp-line);
}

html.dark {
  color-scheme: dark;
  --cp-bg: #17172b;
  --cp-paper: #24233d;
  --cp-paper-2: #302d4d;
  --cp-ink: #f5f0ff;
  --cp-muted: #d0c8e2;
  --cp-soft-muted: #b6aecb;
  --cp-line: #4a4568;
  --cp-line-strong: #625a82;
  --cp-accent: #b7a8ff;
  --cp-accent-strong: #d0c5ff;
  --cp-accent-soft: #3b345c;
  --cp-mint-soft: #214642;
  --cp-teal: #80ddce;
  --cp-coral: #f0a3af;
  --cp-gold: #edcb8c;
  --cp-peach-soft: #4b3444;
  --cp-blue-soft: #333e61;
  --bg: var(--cp-bg);
  --paper: var(--cp-paper);
  --ink: var(--cp-ink);
  --muted: var(--cp-muted);
  --line: var(--cp-line);
  --soft: var(--cp-paper-2);
  --kr-bg: var(--cp-bg);
  --kr-surface: var(--cp-paper);
  --kr-surface-soft: var(--cp-paper-2);
  --kr-ink: var(--cp-ink);
  --kr-muted: var(--cp-muted);
  --kr-line: var(--cp-line);
}

/* A soft pearl/lilac canvas makes light mode feel warmer, not stark white. */
html:not(.dark) body.public-site-body,
html:not(.dark) body.admin-console-body {
  background-color: #f5f1fa !important;
  background-image:
    radial-gradient(ellipse at 3% 7%, rgba(169, 145, 233, .20), transparent 34rem),
    radial-gradient(ellipse at 97% 11%, rgba(123, 204, 184, .17), transparent 31rem),
    radial-gradient(ellipse at 72% 92%, rgba(245, 190, 174, .17), transparent 36rem),
    linear-gradient(145deg, #f7f2fb 0%, #f0f3fb 48%, #eef7f1 100%) !important;
  color: #625a75 !important;
}
html.dark body.public-site-body,
html.dark body.admin-console-body {
  background-color: #17172b !important;
  background-image:
    radial-gradient(ellipse at 4% 4%, rgba(137, 113, 224, .19), transparent 34rem),
    radial-gradient(ellipse at 96% 14%, rgba(43, 155, 145, .15), transparent 32rem),
    radial-gradient(ellipse at 60% 100%, rgba(159, 99, 125, .10), transparent 38rem),
    linear-gradient(145deg, #17172b 0%, #1a2038 54%, #183234 100%) !important;
  color: #d0c9df !important;
}

/* Soft plum ink in light mode: intentionally coloured, but still high contrast. */
html:not(.dark) body.public-site-body :where(
  .career-page-header h1, .workspace-top h1, .page-hero h1, .editorial-page h1,
  .contact-hero h1, .checkout-heading h1, .admin-section-heading h1,
  .kr-gallery-copy h1, .kr-gallery-stats strong,
  .panel-head h2, .panel-head h3, .section-heading h2, .section-heading h3
) { color: #574c68 !important; }
html:not(.dark) body.public-site-body :where(
  .career-page-header p, .workspace-top > div > p, .contact-hero > p,
  .page-hero p, .panel-head p, .subhead, .field-hint
) { color: #70677f !important; }
html.dark body.public-site-body :where(
  .career-page-header h1, .workspace-top h1, .page-hero h1, .editorial-page h1,
  .contact-hero h1, .checkout-heading h1, .admin-section-heading h1,
  .kr-gallery-copy h1, .kr-gallery-stats strong,
  .panel-head h2, .panel-head h3, .section-heading h2, .section-heading h3
) { color: #f2edff !important; }
html.dark body.public-site-body :where(
  .career-page-header p, .workspace-top > div > p, .contact-hero > p,
  .page-hero p, .panel-head p, .subhead, .field-hint
) { color: #d0c9df !important; }


html:not(.dark) body.public-site-body .kr-gallery-copy h1 em { color: #795fc9 !important; }
body.public-site-body footer.site-footer .footer-col strong i[data-lucide="layers-3"]:empty::before { content: "✧"; }
body.public-site-body footer.site-footer .footer-col strong i[data-lucide="shield-check"]:empty::before { content: "◇"; }
body.public-site-body footer.site-footer .footer-col strong i[data-lucide="life-buoy"]:empty::before { content: "♡"; }

/* The footer intentionally changes palette with the selected theme. */
html:not(.dark) body.public-site-body footer.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(185, 160, 245, .36), transparent 25rem),
    radial-gradient(ellipse at 90% 12%, rgba(119, 207, 187, .30), transparent 24rem),
    radial-gradient(ellipse at 62% 100%, rgba(250, 192, 174, .28), transparent 28rem),
    linear-gradient(118deg, #eee8fb 0%, #e9f1fb 48%, #e7f4ee 100%) !important;
  border-top: 1px solid #d6c9e7 !important;
  color: #625873 !important;
  box-shadow: 0 -12px 42px rgba(92, 71, 145, .055) !important;
}
html:not(.dark) body.public-site-body footer.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px; height: 260px;
  right: -105px; top: -155px;
  border-radius: 50%;
  border: 1px solid rgba(124, 102, 195, .16);
  box-shadow: 0 0 0 24px rgba(255,255,255,.14), 0 0 0 50px rgba(255,255,255,.09);
  pointer-events: none;
}
html:not(.dark) body.public-site-body footer.site-footer .brand-wordmark {
  color: #554967 !important;
  font-weight: 850 !important;
}
html:not(.dark) body.public-site-body footer.site-footer .footer-brand p {
  color: #6d637e !important;
}
html:not(.dark) body.public-site-body footer.site-footer .footer-col strong {
  color: #554967 !important;
}
html:not(.dark) body.public-site-body footer.site-footer .footer-col a,
html:not(.dark) body.public-site-body footer.site-footer .footer-bottom,
html:not(.dark) body.public-site-body footer.site-footer .footer-bottom-links,
html:not(.dark) body.public-site-body footer.site-footer .footer-bottom-links span {
  color: #6d637e !important;
}
html:not(.dark) body.public-site-body footer.site-footer .footer-col a:hover,
html:not(.dark) body.public-site-body footer.site-footer .footer-bottom-links a:hover {
  color: #6247bf !important;
}
html:not(.dark) body.public-site-body footer.site-footer .brand-mark {
  color: #fff !important;
  background: linear-gradient(140deg, #8466df 0%, #6d64c9 48%, #339b8d 100%) !important;
  box-shadow: 0 8px 20px rgba(101, 80, 180, .22) !important;
}
html:not(.dark) body.public-site-body footer.site-footer .footer-bottom {
  border-color: rgba(115, 96, 155, .22) !important;
}
html:not(.dark) body.public-site-body footer.site-footer .cookie-settings-trigger {
  color: #6247bf !important;
  border-color: rgba(107, 83, 181, .25) !important;
}

html.dark body.public-site-body footer.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(132, 104, 223, .23), transparent 26rem),
    radial-gradient(ellipse at 92% 6%, rgba(35, 147, 140, .20), transparent 25rem),
    linear-gradient(122deg, #211b42 0%, #222c4b 55%, #164448 100%) !important;
  border-top: 1px solid rgba(190, 177, 238, .30) !important;
  color: #eee9fc !important;
  box-shadow: 0 -16px 50px rgba(0, 0, 0, .18) !important;
}
html.dark body.public-site-body footer.site-footer .brand-wordmark,
html.dark body.public-site-body footer.site-footer .footer-col strong {
  color: #fffaff !important;
}
html.dark body.public-site-body footer.site-footer .footer-brand p,
html.dark body.public-site-body footer.site-footer .footer-col a,
html.dark body.public-site-body footer.site-footer .footer-bottom,
html.dark body.public-site-body footer.site-footer .footer-bottom-links,
html.dark body.public-site-body footer.site-footer .footer-bottom-links span {
  color: #d8d2e9 !important;
}
html.dark body.public-site-body footer.site-footer .footer-col a:hover,
html.dark body.public-site-body footer.site-footer .footer-bottom-links a:hover {
  color: #ffffff !important;
}
html.dark body.public-site-body footer.site-footer .brand-mark {
  color: #fff !important;
  background: linear-gradient(140deg, #9478ef 0%, #6c68d2 50%, #2caaa0 100%) !important;
}
html.dark body.public-site-body footer.site-footer .footer-bottom {
  border-color: rgba(255,255,255,.19) !important;
}
html.dark body.public-site-body footer.site-footer .cookie-settings-trigger {
  color: #e0d6ff !important;
  border-color: rgba(211, 199, 255, .25) !important;
}

/* Higher-specificity protection against older bundled footer declarations. */
body.public-site-body footer.site-footer :where(.footer-col strong, .brand-wordmark) { display: inline-flex; align-items: center; }
body.public-site-body footer.site-footer .footer-col strong { gap: 8px; margin-bottom: 7px; font-size: 11px; letter-spacing: .10em; font-weight: 850; }
body.public-site-body footer.site-footer .footer-col strong i,
body.public-site-body footer.site-footer .footer-col strong svg {
  width: 16px; height: 16px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(121, 99, 196, .12);
  color: #7159c9;
  stroke-width: 2.2;
}
html.dark body.public-site-body footer.site-footer .footer-col strong i,
html.dark body.public-site-body footer.site-footer .footer-col strong svg {
  background: rgba(190, 174, 255, .13);
  color: #d5c9ff;
}
body.public-site-body footer.site-footer .footer-col a,
body.public-site-body footer.site-footer .footer-col a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
body.public-site-body footer.site-footer .footer-col a:hover { transform: translateX(2px); }

@media (max-width: 760px) {
  body.public-site-body footer.site-footer { padding-top: 28px !important; }
  body.public-site-body footer.site-footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 16px !important;
  }
  body.public-site-body footer.site-footer .footer-brand { grid-column: 1 / -1 !important; }
  body.public-site-body footer.site-footer .footer-col { min-width: 0; }
  body.public-site-body footer.site-footer .footer-col a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: no-preference) {
  body.public-site-body footer.site-footer .brand-mark { transition: transform .25s ease, box-shadow .25s ease; }
  body.public-site-body footer.site-footer .brand:hover .brand-mark { transform: translateY(-2px) rotate(-3deg); box-shadow: 0 12px 25px rgba(100, 77, 185, .28) !important; }
}
