/*
 * AstroDestiny workspace contrast restoration.
 * Legacy sections were designed for a dark canvas. The workspace shell had
 * switched the canvas and member strip to pale grey/white, leaving the legacy
 * pale headings and muted text almost invisible. Restore the dark editorial
 * canvas while retaining the light, readable top navigation bar.
 */
:root {
  --ws-canvas: #0b1220;
  --ws-canvas-raised: #111c2e;
  --ws-card: #142137;
  --ws-card-border: rgba(216,184,121,.22);
  --ws-text: #edf2fa;
  --ws-text-muted: #b6c2d4;
  --ws-gold-strong: #e3c27f;
}

html, body.astro-workspace-page {
  background: var(--ws-canvas) !important;
  color: var(--ws-text) !important;
}
body.astro-workspace-page {
  color-scheme: dark;
}
body.astro-workspace-page #top {
  background:
    radial-gradient(ellipse at 82% 0%, rgba(91,78,133,.16), transparent 38rem),
    radial-gradient(ellipse at 8% 42%, rgba(35,75,91,.10), transparent 34rem),
    var(--ws-canvas) !important;
  color: var(--ws-text) !important;
}

/* Keep the top navigation clean and high contrast. */
body.astro-workspace-page .workspace-topbar {
  background: rgba(250,251,253,.97) !important;
  color: #182338 !important;
  border-bottom: 1px solid #dce2eb !important;
}
body.astro-workspace-page .workspace-breadcrumb { color:#68758a !important; }
body.astro-workspace-page .workspace-top-actions a { color:#735a2d !important; }

/* The account strip was white with near-white inherited text. */
body.astro-workspace-page .member-dashboard-strip {
  background: linear-gradient(112deg,#142238 0%,#101a2b 100%) !important;
  color: var(--ws-text) !important;
  border-bottom: 1px solid var(--ws-card-border) !important;
}
body.astro-workspace-page .member-dashboard-heading h2,
body.astro-workspace-page .member-dashboard-heading p,
body.astro-workspace-page .member-dashboard-heading,
body.astro-workspace-page .member-dashboard-strip .member-kicker {
  color: var(--ws-text) !important;
}
body.astro-workspace-page .member-dashboard-heading p {
  color: var(--ws-text-muted) !important;
}
body.astro-workspace-page .member-profile-chip {
  background: #26364d !important;
  border: 1px solid rgba(227,194,127,.35) !important;
  color: #f6e6c4 !important;
}
body.astro-workspace-page .member-profile-chip strong,
body.astro-workspace-page .member-profile-chip small {
  color: inherit !important;
}
body.astro-workspace-page .member-history-item {
  background: #17263b !important;
  border: 1px solid rgba(227,194,127,.22) !important;
  color: var(--ws-text) !important;
}
body.astro-workspace-page .member-history-item strong {
  color: #f4dfb2 !important;
}
body.astro-workspace-page .member-history-item small,
body.astro-workspace-page .member-history-item span {
  color: #bdc9d9 !important;
}
body.astro-workspace-page .member-dashboard-actions a,
body.astro-workspace-page .member-dashboard-actions button {
  color: #f0d59e !important;
  border-color: rgba(227,194,127,.55) !important;
}

/* Restore legibility for legacy content headings and body copy. */
body.astro-workspace-page #top h1,
body.astro-workspace-page #top h2,
body.astro-workspace-page #top h3,
body.astro-workspace-page #top h4,
body.astro-workspace-page #top .map-heading h2,
body.astro-workspace-page #top .section-intro h2,
body.astro-workspace-page #top .city-discovery h2,
body.astro-workspace-page #top .vedic-location-section h2,
body.astro-workspace-page #top .how-section h2 {
  color: #f2f5fa;
}
body.astro-workspace-page #top p,
body.astro-workspace-page #top li,
body.astro-workspace-page #top label,
body.astro-workspace-page #top .city-intro,
body.astro-workspace-page #top .hero-text,
body.astro-workspace-page #top .section-intro p,
body.astro-workspace-page #top .map-hint {
  color: #bdc8d8;
}
body.astro-workspace-page #top .eyebrow,
body.astro-workspace-page #top .member-kicker {
  color: var(--ws-gold-strong);
}
body.astro-workspace-page #top a:not(.button):not(.workspace-nav-link) {
  text-decoration-color: rgba(227,194,127,.45);
}

/* Dark panels remain visually distinct from the page canvas. */
body.astro-workspace-page #top .form-card,
body.astro-workspace-page #top .premium-card,
body.astro-workspace-page #top .map-shell,
body.astro-workspace-page #top .vedic-location-section,
body.astro-workspace-page #top .matrix-chart-card,
body.astro-workspace-page #top .matrix-numbers-card,
body.astro-workspace-page #top .matrix-section,
body.astro-workspace-page #top .vedic-section,
body.astro-workspace-page #top .disclaimer,
body.astro-workspace-page #top .city-card,
body.astro-workspace-page #top .location-card {
  color: #edf2fa;
}
body.astro-workspace-page #top .premium-card,
body.astro-workspace-page #top .form-card {
  background: linear-gradient(145deg,#142137,#101a2b);
  border-color: var(--ws-card-border);
}
body.astro-workspace-page #top input,
body.astro-workspace-page #top select,
body.astro-workspace-page #top textarea {
  background: #0c1728 !important;
  color: #f2f5fa !important;
  border-color: #34445c !important;
}
body.astro-workspace-page #top input::placeholder,
body.astro-workspace-page #top textarea::placeholder {
  color: #8998ad !important;
  opacity: 1;
}
body.astro-workspace-page #top button {
  color: inherit;
}
body.astro-workspace-page #top .button,
body.astro-workspace-page #top button.button {
  color: #172238 !important;
  background: linear-gradient(110deg,#e4c783,#c5a25f) !important;
  border-color: #d9b96f !important;
}

/* Overview cards intentionally stay light, with dark text. */
body.astro-workspace-page .workspace-overview-grid a {
  background: #f8fafc !important;
  color: #182338 !important;
  border-color: #dfe5ed !important;
}
body.astro-workspace-page .workspace-overview-grid a strong {
  color: #182338 !important;
}
body.astro-workspace-page .workspace-overview-grid a small {
  color: #56647a !important;
}

/* Footer should match the dark canvas, not form a white strip. */
body.astro-workspace-page footer {
  background: #101a2b !important;
  color: #b6c2d4 !important;
  border-top: 1px solid rgba(216,184,121,.18) !important;
}
body.astro-workspace-page footer a { color:#e3c27f !important; }

@media (max-width: 760px) {
  body.astro-workspace-page .member-dashboard-strip { padding:16px !important; }
  body.astro-workspace-page .member-dashboard-actions { flex-wrap:wrap; }
}
