/* ============================================================================
   SkillScape Data Academy — Warm Editorial Neutral & Semantic Precision CSS
   90% Neutral (#F8FAFC Canvas / #FFFFFF Cards / #0F172A Ink)
   10% Semantic (#047857 Emerald / #B45309 Amber / #BE123C Rose)
   ============================================================================ */

:root {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --brand-emerald: #047857;
  --brand-teal: #0D9488;
  --brand-amber: #B45309;
  --brand-rose: #BE123C;
  --border-light: #E2E8F0;
  --border-strong: #CBD5E1;
}

html {
  scroll-behavior: smooth;
}

body.lean-light-theme {
  background-color: var(--bg-page) !important;
  color: var(--text-body) !important;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.38 !important;
  letter-spacing: -0.02em;
}

h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.35 !important;
}

.tabular-nums {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

button,
[role="tab"] {
  min-height: 28px;
}

/* Elevated White Card (90% Neutral Surface) */
.lean-card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1rem;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow: hidden;
}

.lean-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px -5px rgba(15, 23, 42, 0.07);
}

/* Featured Card: Refined Architectural Elevation */
.lean-card-featured {
  background-color: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 1rem;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  min-width: 0;
  overflow: hidden;
}

[data-canvas-box="true"],
[data-canvas-box="true"] > div,
[data-canvas-box="true"] svg {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Primary Conversion CTA: Soft Semantic Emerald Surface */
.btn-lean-primary {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1.5px solid #6EE7B7;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-lean-primary:hover {
  background-color: #D1FAE5;
  border-color: #10B981;
  color: #064E3B;
}

/* Active Tab / Filter Pill */
.btn-lean-active {
  background-color: #F1F5F9;
  color: #0F172A;
  border: 1.5px solid #64748B;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-lean-secondary {
  background-color: #FFFFFF;
  color: #334155;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-lean-secondary:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

/* Compact Segmented Control Track & Pills */
.seg-track {
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.seg-pill {
  background-color: transparent;
  color: #334155;
  border: 1px solid transparent;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.seg-pill:hover {
  background-color: rgba(255, 255, 255, 0.75);
  color: #0F172A;
}

.seg-pill-active {
  background-color: #FFFFFF;
  color: #0F172A;
  border: 1px solid #94A3B8;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: all 0.16s ease;
  white-space: nowrap;
}

/* Form Controls */
.lean-input {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0F172A;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lean-input:focus {
  outline: none;
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

/* Neutral Slate Range Slider */
input[type="range"].lean-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  outline: none;
}

input[type="range"].lean-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

input[type="range"].lean-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.35);
}
