/* ============================================================================
   AshToolbox — Editorial Engineering Pro Design System (v3.0)
   100% Unified Crisp Light Editorial Canvas · Zero Dark Boxes · Vibrant 3D Cards
   ============================================================================ */

:root {
  --ep-bg: #F8FAFC;
  --ep-surface: #FFFFFF;
  --ep-subtle: #F1F5F9;
  --ep-tint-blue: #EFF6FF;
  --ep-tint-emerald: #ECFDF5;
  --ep-tint-amber: #FFFBEB;
  --ep-tint-teal: #F0FDFA;
  --ep-tint-violet: #F5F3FF;
  --ep-border: #E2E8F0;
  --ep-border-strong: #CBD5E1;
  --ep-ink: #0F172A;
  --ep-ink-2: #334155;
  --ep-muted: #475569;
  --ep-accent: #1D4ED8;
  --ep-accent-hover: #1E40AF;
  --ep-emerald: #047857;
  --ep-amber: #B45309;
  --ep-teal: #0F766E;
  --ep-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ep-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ep-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ep-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --ep-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px -10px rgba(15, 23, 42, 0.08);
  --ep-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 20px 40px -14px rgba(15, 23, 42, 0.12);
  --ep-shadow-3d: 0 20px 44px -14px rgba(29, 78, 216, 0.18), 0 4px 14px -4px rgba(15, 23, 42, 0.08);
  --ep-radius: 16px;
}

/* ============================================================================
   1. UNIFIED CRISP LIGHT CANVAS
   ============================================================================ */
html.editorial-pro-light,
body.editorial-pro-light {
  background-color: var(--ep-bg) !important;
  background-image:
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 48%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.045) 0px, transparent 46%) !important;
  background-attachment: fixed !important;
  color: var(--ep-ink) !important;
  font-family: var(--ep-sans);
  --bg: var(--ep-bg);
  --surface: var(--ep-surface);
  --surface-2: var(--ep-subtle);
  --border: var(--ep-border);
  --text: var(--ep-ink);
  --text-muted: var(--ep-muted);
  --primary: var(--ep-accent);
  --primary-hover: var(--ep-accent-hover);
  --primary-text: var(--ep-accent);
  --shadow: var(--ep-shadow-md);
}

body.editorial-pro-light::before {
  display: none !important;
  background: none !important;
}

/* ============================================================================
   2. HEADER, NAVIGATION & DROPDOWNS
   ============================================================================ */
body.editorial-pro-light header,
body.editorial-pro-light .site-header,
body.editorial-pro-light .top-nav,
body.editorial-pro-light nav.sticky {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid var(--ep-border) !important;
  color: var(--ep-ink) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.editorial-pro-light header a:not(.btn-primary):not(.flagship-cta-btn),
body.editorial-pro-light .nav-link,
body.editorial-pro-light .brand-title,
body.editorial-pro-light .nav-brand {
  color: var(--ep-ink) !important;
}

body.editorial-pro-light .nav-link:hover,
body.editorial-pro-light header a:hover {
  color: var(--ep-accent) !important;
}

body.editorial-pro-light .brand-icon,
body.editorial-pro-light .brand-icon-animated {
  background: linear-gradient(135deg, #1D4ED8 0%, #0284C7 100%) !important;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25) !important;
  color: #FFFFFF !important;
}

body.editorial-pro-light .dropdown-menu,
body.editorial-pro-light #heroSearchResults,
body.editorial-pro-light .modal-container {
  background: #FFFFFF !important;
  border: 1px solid var(--ep-border-strong) !important;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22) !important;
  color: var(--ep-ink) !important;
}

body.editorial-pro-light .dropdown-item:hover { background: var(--ep-tint-blue) !important; }
body.editorial-pro-light .dropdown-heading { color: var(--ep-ink) !important; }
body.editorial-pro-light .dropdown-subtext { color: var(--ep-muted) !important; }

body.editorial-pro-light .privacy-badge-header,
body.editorial-pro-light .directory-badge,
body.editorial-pro-light .showcase-badge {
  background: var(--ep-tint-emerald) !important;
  color: var(--ep-emerald) !important;
  border: 1px solid #A7F3D0 !important;
  font-weight: 700 !important;
}

/* ============================================================================
   3. FULL-WIDTH 2-COLUMN FUTURISTIC EDITORIAL HERO (Homepage Top Section)
   ============================================================================ */
body.editorial-pro-light .directory-hero {
  max-width: 1240px !important;
  width: 100% !important;
  background:
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.09), transparent 46%),
    radial-gradient(circle at 10% 85%, rgba(16, 185, 129, 0.07), transparent 44%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%) !important;
  border: 1px solid var(--ep-border) !important;
  border-radius: 24px !important;
  padding: 40px 40px 38px !important;
  margin: 10px auto 38px !important;
  box-shadow: var(--ep-shadow-md) !important;
  text-align: left !important;
}

.ep-hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 38px;
  align-items: center;
}

@media (max-width: 960px) {
  body.editorial-pro-light .directory-hero {
    padding: 28px 20px !important;
  }
  .ep-hero-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ep-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

body.editorial-pro-light .ep-hero-left .directory-title {
  font-family: var(--ep-serif) !important;
  font-weight: 400 !important;
  font-size: clamp(2.35rem, 4.1vw, 3.65rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.015em !important;
  color: var(--ep-ink) !important;
  margin: 14px 0 14px !important;
  text-align: left !important;
}

body.editorial-pro-light .directory-title .gradient-text {
  background: linear-gradient(120deg, #1D4ED8 0%, #0284C7 52%, #059669 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-style: italic;
}

body.editorial-pro-light .ep-hero-left .directory-subtitle {
  color: var(--ep-ink-2) !important;
  font-size: 1rem !important;
  line-height: 1.62 !important;
  max-width: 580px !important;
  margin: 0 0 22px !important;
  text-align: left !important;
}

.ep-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.ep-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1D4ED8 0%, #0284C7 100%) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 20px -6px rgba(29, 78, 216, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ep-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -6px rgba(29, 78, 216, 0.55);
  color: #FFFFFF !important;
}

.ep-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  background: #FFFFFF !important;
  color: var(--ep-ink) !important;
  border: 1px solid var(--ep-border-strong) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ep-hero-btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--ep-accent) !important;
  color: var(--ep-accent) !important;
}

.ep-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ep-border);
  width: 100%;
}

@media (max-width: 600px) {
  .ep-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.ep-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ep-ink);
  line-height: 1.2;
}

.ep-metric-lbl {
  font-family: var(--ep-mono);
  font-size: 0.69rem;
  color: var(--ep-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Right Futuristic Visual Bento Stage */
.ep-hero-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-hero-main-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  background: #FFFFFF;
  box-shadow: var(--ep-shadow-md);
  height: 225px;
}

.ep-hero-main-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.ep-hero-main-card:hover img {
  transform: scale(1.04);
}

.ep-hero-float-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}

.ep-hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ep-hero-mini-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  background: #FFFFFF;
  height: 126px;
  text-decoration: none;
  box-shadow: var(--ep-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.ep-hero-mini-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--ep-shadow-3d);
  border-color: #60A5FA;
}

.ep-hero-mini-tile img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.45s ease;
}

.ep-hero-mini-tile:hover img {
  transform: scale(1.06);
}

.ep-hero-mini-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Search Input */
body.editorial-pro-light .directory-search-input,
body.editorial-pro-light input[type="text"],
body.editorial-pro-light input[type="search"],
body.editorial-pro-light input[type="number"],
body.editorial-pro-light input[type="email"],
body.editorial-pro-light input[type="url"],
body.editorial-pro-light select,
body.editorial-pro-light textarea {
  background-color: #FFFFFF !important;
  color: var(--ep-ink) !important;
  border: 1px solid var(--ep-border-strong) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.editorial-pro-light .directory-search-input:focus,
body.editorial-pro-light input:focus,
body.editorial-pro-light select:focus,
body.editorial-pro-light textarea:focus {
  border-color: var(--ep-accent) !important;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14) !important;
  outline: none !important;
}

body.editorial-pro-light .search-shortcut-pill {
  background: var(--ep-subtle) !important;
  color: var(--ep-muted) !important;
  border: 1px solid var(--ep-border) !important;
}

/* ============================================================================
   4. TYPOGRAPHY & FLAGSHIP CARDS
   ============================================================================ */
body.editorial-pro-light .showcase-title,
body.editorial-pro-light .section-title,
body.editorial-pro-light h1,
body.editorial-pro-light h2,
body.editorial-pro-light h3,
body.editorial-pro-light h4 {
  color: var(--ep-ink) !important;
}

body.editorial-pro-light p,
body.editorial-pro-light li {
  color: var(--ep-ink-2);
}

body.editorial-pro-light .flagship-card {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid var(--ep-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--ep-shadow-sm) !important;
  color: var(--ep-ink) !important;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
}

body.editorial-pro-light .flagship-card::before { display: none !important; }
body.editorial-pro-light .flagship-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--ep-shadow-3d) !important;
  border-color: #93C5FD !important;
}

body.editorial-pro-light .flagship-card-title a { color: var(--ep-ink) !important; }
body.editorial-pro-light .flagship-card-desc { color: var(--ep-ink-2) !important; }
body.editorial-pro-light .flagship-tag { background: var(--ep-tint-blue) !important; color: var(--ep-accent) !important; border: 1px solid #BFDBFE !important; }
body.editorial-pro-light .flagship-card-og .flagship-tag { background: var(--ep-tint-amber) !important; color: var(--ep-amber) !important; border-color: #FDE68A !important; }
body.editorial-pro-light .flagship-card-sc .flagship-tag,
body.editorial-pro-light .flagship-card-finance .flagship-tag { background: var(--ep-tint-emerald) !important; color: var(--ep-emerald) !important; border-color: #A7F3D0 !important; }
body.editorial-pro-light .flagship-card-urdu .flagship-tag { background: var(--ep-tint-violet) !important; color: #6D28D9 !important; border-color: #DDD6FE !important; }
body.editorial-pro-light .flagship-chip,
body.editorial-pro-light .flagship-chip-more { background: #F8FAFC !important; color: var(--ep-ink-2) !important; border: 1px solid var(--ep-border) !important; transition: all 0.18s ease !important; }
body.editorial-pro-light .flagship-chip:hover { background: var(--ep-accent) !important; color: #FFFFFF !important; border-color: var(--ep-accent) !important; transform: translateY(-1px); }
body.editorial-pro-light .flagship-card-footer { border-top: 1px solid var(--ep-border) !important; }
body.editorial-pro-light .flagship-meta { color: var(--ep-muted) !important; }

/* High-Ranked Core Studios */
body.editorial-pro-light .studio-group-card {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid var(--ep-border) !important;
  border-top: 3px solid var(--ep-accent) !important;
  border-radius: 18px !important;
  box-shadow: var(--ep-shadow-sm) !important;
  color: var(--ep-ink) !important;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease !important;
}
body.editorial-pro-light .studio-group-card:nth-child(2) { border-top-color: #059669 !important; }
body.editorial-pro-light .studio-group-card:nth-child(3) { border-top-color: #D97706 !important; }
body.editorial-pro-light .studio-group-card:nth-child(4) { border-top-color: #0284C7 !important; }
body.editorial-pro-light .studio-group-card:hover { transform: translateY(-4px) !important; box-shadow: var(--ep-shadow-md) !important; }
body.editorial-pro-light .studio-group-title { color: var(--ep-ink) !important; }
body.editorial-pro-light .studio-group-subtitle { color: var(--ep-muted) !important; }
body.editorial-pro-light .studio-view-all { color: var(--ep-accent) !important; font-weight: 700 !important; }
body.editorial-pro-light .studio-rank-badge { background: var(--ep-tint-blue) !important; color: var(--ep-accent) !important; border: 1px solid #BFDBFE !important; }
body.editorial-pro-light .studio-item-card { background: #F8FAFC !important; border: 1px solid var(--ep-border) !important; border-radius: 12px !important; color: var(--ep-ink) !important; transition: all 0.2s ease !important; }
body.editorial-pro-light .studio-item-card:hover { background: #FFFFFF !important; border-color: #60A5FA !important; transform: translateY(-3px) !important; box-shadow: 0 10px 24px -8px rgba(29, 78, 216, 0.16) !important; }
body.editorial-pro-light .studio-item-title,
body.editorial-pro-light .studio-item-card h4,
body.editorial-pro-light .studio-item-card strong { color: var(--ep-ink) !important; }
body.editorial-pro-light .studio-item-desc,
body.editorial-pro-light .studio-item-card p,
body.editorial-pro-light .studio-item-card span { color: var(--ep-ink-2) !important; }

/* ============================================================================
   5. VIBRANT MULTI-COLOR 3D DIRECTORY CARDS (All 134 Tools — Zero Monotone!)
   ============================================================================ */
body.editorial-pro-light .dir-card,
body.editorial-pro-light .tool-card,
body.editorial-pro-light .flagship-mini-card,
body.editorial-pro-light .bento-card,
body.editorial-pro-light .guide-card,
body.editorial-pro-light .content-card,
body.editorial-pro-light .faq-item {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid var(--ep-border) !important;
  border-top: 3px solid #2563EB !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 8px 20px -10px rgba(15, 23, 42, 0.07) !important;
  color: var(--ep-ink) !important;
  height: auto !important;
  min-height: 215px !important;
  overflow: visible !important;
  transform-style: preserve-3d;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease !important;
}

body.editorial-pro-light .dir-card:hover,
body.editorial-pro-light .tool-card:hover,
body.editorial-pro-light .guide-card:hover {
  background: #FFFFFF !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 42px -14px rgba(15, 23, 42, 0.16), 0 4px 12px -4px rgba(15, 23, 42, 0.06) !important;
  border-color: var(--ep-border-strong) !important;
}

/* Crisp dark ink titles (NEVER monotone blue!) */
body.editorial-pro-light .dir-card-title,
body.editorial-pro-light .dir-card-title a,
body.editorial-pro-light .dir-card h3,
body.editorial-pro-light .dir-card h3 a,
body.editorial-pro-light .tool-card h3 {
  color: #0F172A !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

body.editorial-pro-light .dir-card-desc,
body.editorial-pro-light .dir-card p {
  color: #475569 !important;
  font-size: 0.835rem !important;
  line-height: 1.5 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

/* 3D Glossy Colored Icon Tiles per Category */
body.editorial-pro-light .dir-card-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.05rem !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
  border: none !important;
}

body.editorial-pro-light .dir-card-icon i {
  color: #FFFFFF !important;
}

/* Category Color Themes (Distinct Jewel Tones) */
body.editorial-pro-light .dir-card[data-cat="finance"] { border-top-color: #059669 !important; }
body.editorial-pro-light .dir-card[data-cat="finance"] .dir-card-icon { background: linear-gradient(135deg, #10B981 0%, #047857 100%) !important; box-shadow: 0 6px 14px -3px rgba(5, 150, 105, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="finance"] .badge-ats { background: #ECFDF5 !important; color: #047857 !important; border-color: #A7F3D0 !important; }

body.editorial-pro-light .dir-card[data-cat="maintenance"] { border-top-color: #0284C7 !important; }
body.editorial-pro-light .dir-card[data-cat="maintenance"] .dir-card-icon { background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%) !important; box-shadow: 0 6px 14px -3px rgba(2, 132, 199, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="maintenance"] .badge-ats { background: #F0F9FF !important; color: #0369A1 !important; border-color: #BAE6FD !important; }

body.editorial-pro-light .dir-card[data-cat="quality"] { border-top-color: #0891B2 !important; }
body.editorial-pro-light .dir-card[data-cat="quality"] .dir-card-icon { background: linear-gradient(135deg, #06B6D4 0%, #0E7490 100%) !important; box-shadow: 0 6px 14px -3px rgba(8, 145, 178, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="quality"] .badge-ats { background: #ECFEFF !important; color: #0E7490 !important; border-color: #A5F3FC !important; }

body.editorial-pro-light .dir-card[data-cat="oil-gas"] { border-top-color: #D97706 !important; }
body.editorial-pro-light .dir-card[data-cat="oil-gas"] .dir-card-icon { background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%) !important; box-shadow: 0 6px 14px -3px rgba(217, 119, 6, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="oil-gas"] .badge-ats { background: #FFFBEB !important; color: #B45309 !important; border-color: #FDE68A !important; }

body.editorial-pro-light .dir-card[data-cat="supply-chain"] { border-top-color: #0D9488 !important; }
body.editorial-pro-light .dir-card[data-cat="supply-chain"] .dir-card-icon { background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%) !important; box-shadow: 0 6px 14px -3px rgba(13, 148, 136, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="supply-chain"] .badge-ats { background: #F0FDFA !important; color: #0F766E !important; border-color: #99F6E4 !important; }

body.editorial-pro-light .dir-card[data-cat="pdf"] { border-top-color: #DC2626 !important; }
body.editorial-pro-light .dir-card[data-cat="pdf"] .dir-card-icon { background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%) !important; box-shadow: 0 6px 14px -3px rgba(220, 38, 38, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="pdf"] .badge-ats { background: #FEF2F2 !important; color: #B91C1C !important; border-color: #FECACA !important; }

body.editorial-pro-light .dir-card[data-cat="ai"] { border-top-color: #4F46E5 !important; }
body.editorial-pro-light .dir-card[data-cat="ai"] .dir-card-icon { background: linear-gradient(135deg, #6366F1 0%, #4338CA 100%) !important; box-shadow: 0 6px 14px -3px rgba(79, 70, 229, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="ai"] .badge-ats { background: #EEF2FF !important; color: #4338CA !important; border-color: #C7D2FE !important; }

body.editorial-pro-light .dir-card[data-cat="urdu"] { border-top-color: #7C3AED !important; }
body.editorial-pro-light .dir-card[data-cat="urdu"] .dir-card-icon { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important; box-shadow: 0 6px 14px -3px rgba(124, 58, 237, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="urdu"] .badge-ats { background: #F5F3FF !important; color: #6D28D9 !important; border-color: #DDD6FE !important; }

body.editorial-pro-light .dir-card[data-cat="image"] { border-top-color: #DB2777 !important; }
body.editorial-pro-light .dir-card[data-cat="image"] .dir-card-icon { background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%) !important; box-shadow: 0 6px 14px -3px rgba(219, 39, 119, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="image"] .badge-ats { background: #FDF2F8 !important; color: #BE185D !important; border-color: #FBCFE8 !important; }

body.editorial-pro-light .dir-card[data-cat="developer"],
body.editorial-pro-light .dir-card[data-cat="dev"] { border-top-color: #334155 !important; }
body.editorial-pro-light .dir-card[data-cat="developer"] .dir-card-icon,
body.editorial-pro-light .dir-card[data-cat="dev"] .dir-card-icon { background: linear-gradient(135deg, #475569 0%, #1E293B 100%) !important; box-shadow: 0 6px 14px -3px rgba(30, 41, 59, 0.35) !important; }

body.editorial-pro-light .dir-card[data-cat="career"],
body.editorial-pro-light .dir-card[data-cat="health"] { border-top-color: #EA580C !important; }
body.editorial-pro-light .dir-card[data-cat="career"] .dir-card-icon,
body.editorial-pro-light .dir-card[data-cat="health"] .dir-card-icon { background: linear-gradient(135deg, #F97316 0%, #C2410C 100%) !important; box-shadow: 0 6px 14px -3px rgba(234, 88, 12, 0.42) !important; }
body.editorial-pro-light .dir-card[data-cat="career"] .badge-ats,
body.editorial-pro-light .dir-card[data-cat="health"] .badge-ats { background: #FFF7ED !important; color: #C2410C !important; border-color: #FED7AA !important; }

body.editorial-pro-light .dir-card-footer {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid #F1F5F9 !important;
}

/* Category Filter Pills & Primary Buttons */
body.editorial-pro-light .cat-pill,
body.editorial-pro-light .filter-pill {
  background: #FFFFFF !important;
  color: var(--ep-ink-2) !important;
  border: 1px solid var(--ep-border-strong) !important;
  box-shadow: var(--ep-shadow-xs) !important;
  transition: all 0.18s ease !important;
}
body.editorial-pro-light .cat-pill:hover,
body.editorial-pro-light .filter-pill:hover { border-color: var(--ep-accent) !important; color: var(--ep-accent) !important; transform: translateY(-1px); }
body.editorial-pro-light .cat-pill.active,
body.editorial-pro-light .filter-pill.active { background: var(--ep-accent) !important; color: #FFFFFF !important; border-color: var(--ep-accent) !important; box-shadow: 0 6px 16px -4px rgba(29, 78, 216, 0.35) !important; }
body.editorial-pro-light .cat-pill.active i { color: #FFFFFF !important; }

body.editorial-pro-light .flagship-cta-btn,
body.editorial-pro-light .btn-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #0284C7 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 6px 16px -4px rgba(29, 78, 216, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
body.editorial-pro-light .flagship-cta-btn:hover,
body.editorial-pro-light .btn-primary:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 24px -6px rgba(29, 78, 216, 0.45) !important; color: #FFFFFF !important; }
body.editorial-pro-light .flagship-cta-btn i,
body.editorial-pro-light .btn-primary i { color: #FFFFFF !important; }

/* ============================================================================
   6. COMPLETE ELIMINATION OF ALL DARK BOXES & DARK GRADIENTS SITEWIDE
   ============================================================================ */
body.editorial-pro-light [class*="bg-[#0"],
body.editorial-pro-light [class*="bg-[#1"],
body.editorial-pro-light [class*="from-[#0"],
body.editorial-pro-light [class*="from-[#1"],
body.editorial-pro-light [class*="via-[#0"],
body.editorial-pro-light [class*="via-[#1"],
body.editorial-pro-light [class*="to-[#0"],
body.editorial-pro-light [class*="to-[#1"],
body.editorial-pro-light [class*="bg-slate-950"],
body.editorial-pro-light [class*="bg-slate-900"],
body.editorial-pro-light [class*="bg-slate-800"],
body.editorial-pro-light [class*="bg-zinc-950"],
body.editorial-pro-light [class*="bg-zinc-900"],
body.editorial-pro-light [class*="bg-zinc-800"],
body.editorial-pro-light [class*="bg-gray-950"],
body.editorial-pro-light [class*="bg-gray-900"],
body.editorial-pro-light [class*="bg-neutral-900"],
body.editorial-pro-light [class*="from-slate-9"],
body.editorial-pro-light [class*="from-zinc-9"],
body.editorial-pro-light [class*="to-slate-9"],
body.editorial-pro-light [class*="to-zinc-9"] {
  background-color: #FFFFFF !important;
  background-image: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%) !important;
  border-color: var(--ep-border) !important;
  box-shadow: var(--ep-shadow-sm) !important;
}

body.editorial-pro-light [class*="border-slate-8"],
body.editorial-pro-light [class*="border-slate-7"],
body.editorial-pro-light [class*="border-zinc-8"],
body.editorial-pro-light [class*="border-white/"] {
  border-color: var(--ep-border) !important;
}

body.editorial-pro-light [class*="text-slate-100"],
body.editorial-pro-light [class*="text-slate-200"],
body.editorial-pro-light [class*="text-zinc-100"],
body.editorial-pro-light [class*="text-zinc-200"],
body.editorial-pro-light [class*="text-gray-100"],
body.editorial-pro-light [class*="text-gray-200"] {
  color: var(--ep-ink) !important;
}

body.editorial-pro-light [class*="text-slate-300"],
body.editorial-pro-light [class*="text-slate-400"],
body.editorial-pro-light [class*="text-zinc-300"],
body.editorial-pro-light [class*="text-zinc-400"],
body.editorial-pro-light [class*="text-gray-300"],
body.editorial-pro-light [class*="text-gray-400"] {
  color: var(--ep-ink-2) !important;
}

body.editorial-pro-light [class*="text-white"]:not(.ep-img-badge):not(.ep-hero-mini-label):not(.ep-hero-btn-primary):not(.btn-primary):not(.flagship-cta-btn):not([class*="bg-blue-6"]):not([class*="bg-indigo-6"]):not([class*="bg-sky-6"]):not([class*="bg-sky-5"]):not([class*="bg-cyan-6"]):not([class*="bg-cyan-5"]):not([class*="bg-emerald-6"]):not([class*="bg-emerald-5"]):not([class*="bg-teal-6"]):not([class*="bg-amber-6"]):not([class*="bg-amber-5"]):not([class*="bg-violet-6"]):not([class*="bg-rose-6"]):not([class*="bg-red-6"]) {
  color: var(--ep-ink) !important;
}

body.editorial-pro-light [class*="text-cyan-300"],
body.editorial-pro-light [class*="text-cyan-400"],
body.editorial-pro-light [class*="text-sky-300"],
body.editorial-pro-light [class*="text-sky-400"] { color: #0369A1 !important; }
body.editorial-pro-light [class*="text-emerald-300"],
body.editorial-pro-light [class*="text-emerald-400"],
body.editorial-pro-light [class*="text-teal-300"],
body.editorial-pro-light [class*="text-teal-400"] { color: #047857 !important; }
body.editorial-pro-light [class*="text-amber-300"],
body.editorial-pro-light [class*="text-amber-400"] { color: #B45309 !important; }
body.editorial-pro-light [class*="text-indigo-300"],
body.editorial-pro-light [class*="text-indigo-400"],
body.editorial-pro-light [class*="text-violet-300"],
body.editorial-pro-light [class*="text-violet-400"],
body.editorial-pro-light [class*="text-purple-300"],
body.editorial-pro-light [class*="text-purple-400"] { color: #4338CA !important; }

/* Catch EVERY hardcoded inline dark background (#1e293b, #111827, #0f172a, #1f2937, #0b0f19, etc.) */
body.editorial-pro-light [style*="background:#1e293b"],
body.editorial-pro-light [style*="background: #1e293b"],
body.editorial-pro-light [style*="background-color:#1e293b"],
body.editorial-pro-light [style*="background:#111827"],
body.editorial-pro-light [style*="background: #111827"],
body.editorial-pro-light [style*="background:#1f2937"],
body.editorial-pro-light [style*="background: #1f2937"],
body.editorial-pro-light [style*="background:#0b0f19"],
body.editorial-pro-light [style*="background:#0f172a"],
body.editorial-pro-light [style*="background: #0f172a"],
body.editorial-pro-light [style*="background:#080d1a"],
body.editorial-pro-light [style*="background:#0a0f1d"],
body.editorial-pro-light [style*="background: rgba(15, 23, 42"],
body.editorial-pro-light [style*="background:rgba(15,23,42"],
body.editorial-pro-light [style*="background: rgba(17, 24, 39"],
body.editorial-pro-light [style*="background:rgba(17,24,39"],
body.editorial-pro-light [style*="background: rgba(30, 41, 59"],
body.editorial-pro-light [style*="background:rgba(30,41,59"],
body.editorial-pro-light [style*="background: rgba(255, 255, 255, 0.0"],
body.editorial-pro-light [style*="background:rgba(255,255,255,0.0"] {
  background: #FFFFFF !important;
  background-image: none !important;
  border-color: var(--ep-border) !important;
  color: var(--ep-ink-2) !important;
  box-shadow: var(--ep-shadow-xs) !important;
}

body.editorial-pro-light [style*="color: #f8fafc"],
body.editorial-pro-light [style*="color:#f8fafc"],
body.editorial-pro-light [style*="color: #ffffff"],
body.editorial-pro-light [style*="color:#ffffff"] {
  color: var(--ep-ink) !important;
}

body.editorial-pro-light [style*="color: #cbd5e1"],
body.editorial-pro-light [style*="color:#cbd5e1"],
body.editorial-pro-light [style*="color: #94a3b8"],
body.editorial-pro-light [style*="color:#94a3b8"] {
  color: var(--ep-ink-2) !important;
}

body.editorial-pro-light [style*="color: #818cf8"],
body.editorial-pro-light [style*="color:#818cf8"] {
  color: var(--ep-accent) !important;
}

/* Keep SVG chart labels legible on light mode */
body.editorial-pro-light svg text[fill="#f8fafc"],
body.editorial-pro-light svg text[fill="#e2e8f0"],
body.editorial-pro-light svg text[fill="#cbd5e1"],
body.editorial-pro-light svg text[fill="#94a3b8"],
body.editorial-pro-light svg text[fill="#ffffff"],
body.editorial-pro-light svg text[fill="white"] {
  fill: #334155 !important;
}

body.editorial-pro-light table { background: #FFFFFF !important; border-color: var(--ep-border) !important; }
body.editorial-pro-light th { background: var(--ep-subtle) !important; color: var(--ep-ink) !important; border-color: var(--ep-border) !important; }
body.editorial-pro-light td { color: var(--ep-ink-2) !important; border-color: var(--ep-border) !important; }

body.editorial-pro-light footer { background: #FFFFFF !important; border-top: 1px solid var(--ep-border) !important; color: var(--ep-ink-2) !important; }
body.editorial-pro-light footer h3,
body.editorial-pro-light footer h4,
body.editorial-pro-light footer strong { color: var(--ep-ink) !important; }
body.editorial-pro-light footer a { color: var(--ep-ink-2) !important; }
body.editorial-pro-light footer a:hover { color: var(--ep-accent) !important; }

/* ============================================================================
   7. PROPORTIONED LANDSCAPE HD VISUALS & MOTION
   ============================================================================ */
.ep-suite-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 18px 0 !important;
  height: 205px !important;
  width: 100% !important;
  background: #E2E8F0;
  border: 1px solid var(--ep-border);
}

.ep-suite-media img,
.ep-studio-ribbon img,
.ep-visual-banner-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.flagship-card:hover .ep-suite-media img,
.studio-group-card:hover .ep-studio-ribbon img,
.ep-visual-banner:hover img { transform: scale(1.045); }

.ep-studio-ribbon {
  position: relative;
  width: 100%;
  height: 132px !important;
  margin: 0 0 16px 0 !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  background: #EFF6FF;
}

.ep-img-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.84) !important;
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  font-family: var(--ep-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.ep-visual-banner {
  max-width: 1120px;
  margin: 18px auto 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ep-border);
  background: #FFFFFF !important;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: stretch;
  box-shadow: var(--ep-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ep-visual-banner:hover { transform: translateY(-2px); box-shadow: var(--ep-shadow-md); }
@media (max-width: 780px) { .ep-visual-banner { grid-template-columns: 1fr; } }

.ep-visual-banner-media { position: relative; overflow: hidden; height: 185px !important; width: 100%; }
.ep-visual-banner-copy { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ep-visual-kicker { font-family: var(--ep-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ep-accent) !important; }
.ep-visual-caption { font-size: 14px; line-height: 1.55; margin: 0; color: var(--ep-ink-2) !important; }
.ep-visual-caption strong { color: var(--ep-ink) !important; }
.ep-visual-standards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ep-std-pill { font-family: var(--ep-mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--ep-tint-emerald) !important; border: 1px solid #A7F3D0 !important; color: var(--ep-emerald) !important; font-weight: 600; }

.ep-technical-reference { max-width: 1120px; margin: 32px auto; padding: 28px; border-radius: 16px; border: 1px solid var(--ep-border) !important; background: #FFFFFF !important; color: var(--ep-ink) !important; box-shadow: var(--ep-shadow-sm); line-height: 1.72; }
.ep-technical-reference h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 12px; color: var(--ep-ink) !important; }
.ep-technical-reference h3 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 8px; color: var(--ep-ink) !important; }
.ep-technical-reference p { margin: 0 0 12px; font-size: 0.94rem; color: var(--ep-ink-2) !important; }
.ep-aeo-box { padding: 16px 18px; border-left: 4px solid var(--ep-accent); border-radius: 10px; background: var(--ep-tint-blue) !important; color: var(--ep-ink) !important; margin-bottom: 20px; }
.ep-formula-block { font-family: var(--ep-mono); font-size: 0.88rem; padding: 14px 16px; border-radius: 10px; background: var(--ep-subtle) !important; color: var(--ep-ink) !important; border: 1px solid var(--ep-border) !important; overflow-x: auto; margin: 12px 0 16px; }
.ep-ref-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 0.88rem; }
.ep-ref-table th, .ep-ref-table td { padding: 10px 12px; border: 1px solid var(--ep-border) !important; text-align: left; }

.ep-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.ep-reveal.ep-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .ep-reveal { opacity: 1; transform: none; transition: none; } }


/* ============================================================================
   8. WCAG AAA ACCESSIBILITY CONTRAST & MOBILE CORE WEB VITALS OPTIMIZATION
   ============================================================================ */
body.editorial-pro-light .brand-badge {
  background: #EFF6FF !important;
  color: #1E3A8A !important;
  border: 1px solid #93C5FD !important;
  font-weight: 800 !important;
}

body.editorial-pro-light .nav-dropdown-trigger,
body.editorial-pro-light #suitesDropdownTrigger,
body.editorial-pro-light .nav-dropdown > button {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  font-weight: 700 !important;
}

body.editorial-pro-light .nav-dropdown-trigger:hover,
body.editorial-pro-light #suitesDropdownTrigger:hover {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border-color: #93C5FD !important;
}

body.editorial-pro-light .ep-hero-mini-label {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #FFFFFF !important;
}

body.editorial-pro-light .flagship-meta,
body.editorial-pro-light .ep-metric-lbl,
body.editorial-pro-light .studio-group-subtitle,
body.editorial-pro-light .dropdown-subtext {
  color: #475569 !important;
}

body.editorial-pro-light [style*="color:#34d399"],
body.editorial-pro-light [style*="color: #34d399"],
body.editorial-pro-light [style*="color:#10b981"],
body.editorial-pro-light [style*="color: #10b981"] {
  color: #047857 !important;
}

body.editorial-pro-light [style*="color:#38bdf8"],
body.editorial-pro-light [style*="color: #38bdf8"],
body.editorial-pro-light [style*="color:#06b6d4"],
body.editorial-pro-light [style*="color: #06b6d4"] {
  color: #0369A1 !important;
}

body.editorial-pro-light [style*="color:#f59e0b"],
body.editorial-pro-light [style*="color: #f59e0b"] {
  color: #B45309 !important;
}

body.editorial-pro-light [style*="color:#14b8a6"],
body.editorial-pro-light [style*="color: #14b8a6"] {
  color: #0F766E !important;
}

body.editorial-pro-light [style*="color:#c084fc"],
body.editorial-pro-light [style*="color: #c084fc"] {
  color: #6D28D9 !important;
}

/* Mobile Rendering Acceleration: Skip layout/paint of off-screen sections */
#toolsGrid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 4200px;
}
#flagshipSuitesShowcase,
#rankedStudiosSection,
#engineeringGuidesSection,
#guidesSection,
#faqSection,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}
