/* ============================================================================
   SkillScape Enterprise B2B — Impeccable × Anti-Slop Warm Editorial Neutral CSS
   90% Neutral (OKLCH Slate-Tinted #F8FAFC Canvas / #FFFFFF Surface / #0F172A Ink)
   10% Semantic (#065F46 Emerald / #92400E Amber / #9F1239 Rose)
   ============================================================================ */

:root {
  --ent-canvas: oklch(0.984 0.003 247.86); /* #F8FAFC */
  --ent-surface: #FFFFFF;
  --ent-subtle: #F1F5F9;
  --ent-ink: #0F172A;
  --ent-body: #334155;
  --ent-muted: #64748B;
  --ent-hairline: #E2E8F0;
  --ent-border-strong: #CBD5E1;
  --ent-border-featured: #94A3B8;
  --ent-emerald-bg: #ECFDF5;
  --ent-emerald-border: #6EE7B7;
  --ent-emerald-ink: #065F46;
  --ent-amber-bg: #FFFBEB;
  --ent-amber-border: #FDE68A;
  --ent-amber-ink: #92400E;
  --ent-rose-bg: #FFF1F2;
  --ent-rose-border: #FECDD3;
  --ent-rose-ink: #9F1239;
  --ent-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
  scroll-behavior: smooth;
}

body.ent-light-theme {
  background-color: #F8FAFC;
  background-color: var(--ent-canvas);
  color: var(--ent-body);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

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;
}

.ent-h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.75rem);
  line-height: 1.38 !important;
  letter-spacing: -0.022em;
  color: var(--ent-ink);
}

.ent-h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.45rem, 1.15rem + 1.05vw, 2rem);
  line-height: 1.38 !important;
  letter-spacing: -0.02em;
  color: var(--ent-ink);
}

.editorial-measure {
  max-width: 65ch;
}

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

.font-sql-code {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* Surfaces & Elevation */
.ent-surface {
  background-color: var(--ent-surface);
  border: 1px solid var(--ent-hairline);
  border-radius: 1rem;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s var(--ent-ease), box-shadow 0.2s var(--ent-ease);
}

.ent-surface-featured {
  background-color: var(--ent-surface);
  border: 1.5px solid var(--ent-border-featured);
  border-radius: 1rem;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.07);
}

/* Tactile Buttons */
.ent-btn-primary {
  background-color: var(--ent-emerald-bg);
  color: var(--ent-emerald-ink);
  border: 1.5px solid var(--ent-emerald-border);
  font-weight: 700;
  border-radius: 0.75rem;
  min-height: 40px;
  white-space: nowrap;
  transition: transform 0.16s var(--ent-ease), background-color 0.16s var(--ent-ease), border-color 0.16s var(--ent-ease);
}

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

.ent-btn-primary:active,
.ent-btn-secondary:active,
.ent-tab-active:active {
  transform: translateY(1px);
}

.ent-btn-secondary {
  background-color: var(--ent-surface);
  color: var(--ent-body);
  border: 1px solid var(--ent-border-strong);
  font-weight: 600;
  border-radius: 0.75rem;
  min-height: 40px;
  white-space: nowrap;
  transition: transform 0.16s var(--ent-ease), background-color 0.16s var(--ent-ease), border-color 0.16s var(--ent-ease);
}

.ent-btn-secondary:hover {
  background-color: #F8FAFC;
  border-color: var(--ent-border-featured);
  color: var(--ent-ink);
}

.ent-tab-active {
  background-color: var(--ent-subtle);
  color: var(--ent-ink);
  border: 1.5px solid #64748B;
  font-weight: 700;
  border-radius: 0.75rem;
  white-space: nowrap;
  transition: transform 0.16s var(--ent-ease), background-color 0.16s var(--ent-ease);
}

/* Form Controls & Range Sliders */
.ent-input {
  width: 100%;
  min-height: 44px;
  background-color: var(--ent-surface);
  border: 1px solid var(--ent-border-strong);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--ent-ink);
  transition: border-color 0.16s var(--ent-ease), box-shadow 0.16s var(--ent-ease);
}

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

input[type="range"].ent-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  outline: none;
}

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

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

/* Light Confirmation Modal */
.b2b-light-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ent-ease);
}

.b2b-light-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.b2b-light-modal-card {
  width: 100%;
  max-width: 640px;
  background-color: #FFFFFF;
  border: 1.5px solid #94A3B8;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.22);
  transform: translateY(8px);
  transition: transform 0.22s var(--ent-ease);
}

.b2b-light-modal.is-active .b2b-light-modal-card {
  transform: translateY(0);
}
