/* v487 — Valenti Mart dark theme. Active only when <html data-theme="dark">.
   Maps the light palette (Tailwind utilities + the hard-coded hex colours used across the site) to a calm,
   high-contrast dark palette. Images, videos and brand-coloured buttons keep their own colours. */
html[data-theme="dark"]{color-scheme:dark;
  --d-bg:#0B0F17;--d-s1:#121826;--d-s2:#182133;--d-s3:#1F2A3F;--d-line:#273247;--d-line2:#33405A;
  --d-t1:#E8ECF2;--d-t2:#C3CBD6;--d-t3:#9AA5B4;--d-t4:#7C8798}
html[data-theme="dark"] body{background:var(--d-bg)!important;color:var(--d-t1)}

/* surfaces */
html[data-theme="dark"] .bg-white,html[data-theme="dark"] .bg-\[\#fff\],html[data-theme="dark"] .bg-\[\#FFF\],html[data-theme="dark"] .bg-\[\#ffffff\],html[data-theme="dark"] .bg-\[\#FFFFFF\]{background-color:var(--d-s1)!important}
html[data-theme="dark"] .bg-gray-50,html[data-theme="dark"] .bg-slate-50,html[data-theme="dark"] .bg-\[\#F4F6F8\],html[data-theme="dark"] .bg-\[\#F9FAFB\],html[data-theme="dark"] .bg-\[\#FAFAFA\],html[data-theme="dark"] .bg-\[\#F8F9FA\]{background-color:var(--d-bg)!important}
html[data-theme="dark"] .bg-gray-100,html[data-theme="dark"] .bg-slate-100,html[data-theme="dark"] .bg-\[\#F1F3F5\]{background-color:var(--d-s2)!important}
html[data-theme="dark"] .bg-gray-200,html[data-theme="dark"] .bg-slate-200{background-color:var(--d-s3)!important}
html[data-theme="dark"] .bg-white\/90,html[data-theme="dark"] .bg-white\/95,html[data-theme="dark"] .bg-white\/80{background-color:rgba(18,24,38,.92)!important}
html[data-theme="dark"] header,html[data-theme="dark"] nav,html[data-theme="dark"] footer:not(.bg-gray-900):not([class*="bg-[#"]){border-color:var(--d-line)!important}

/* text */
html[data-theme="dark"] .text-ink-900,html[data-theme="dark"] .text-gray-900,html[data-theme="dark"] .text-gray-800,html[data-theme="dark"] .text-slate-900,html[data-theme="dark"] .text-slate-800,html[data-theme="dark"] .text-black,
html[data-theme="dark"] .text-\[\#212B36\],html[data-theme="dark"] .text-\[\#161C24\],html[data-theme="dark"] .text-\[\#111827\],html[data-theme="dark"] .text-\[\#1B1F3B\]{color:var(--d-t1)!important}
html[data-theme="dark"] .text-gray-700,html[data-theme="dark"] .text-gray-600,html[data-theme="dark"] .text-slate-700,html[data-theme="dark"] .text-slate-600,html[data-theme="dark"] .text-\[\#454F5B\]{color:var(--d-t2)!important}
html[data-theme="dark"] .text-gray-500,html[data-theme="dark"] .text-slate-500,html[data-theme="dark"] .text-\[\#637381\]{color:var(--d-t3)!important}
html[data-theme="dark"] .text-gray-400,html[data-theme="dark"] .text-slate-400,html[data-theme="dark"] .text-\[\#919EAB\]{color:var(--d-t4)!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4{color:inherit}

/* borders & dividers */
html[data-theme="dark"] .border-gray-100,html[data-theme="dark"] .border-gray-200,html[data-theme="dark"] .border-gray-300,html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-\[\#DFE3E8\],html[data-theme="dark"] .border-\[\#E5E8EB\],html[data-theme="dark"] .border-\[\#EEE\],html[data-theme="dark"] .border-\[\#919EAB\]\/30,
html[data-theme="dark"] .divide-y>*,html[data-theme="dark"] .divide-gray-100>*,html[data-theme="dark"] .divide-gray-200>*,html[data-theme="dark"] hr{border-color:var(--d-line)!important}

/* soft status tints (50/100 backgrounds) */
html[data-theme="dark"] .bg-red-50,html[data-theme="dark"] .bg-rose-50{background-color:rgba(248,113,113,.10)!important}
html[data-theme="dark"] .bg-green-50,html[data-theme="dark"] .bg-emerald-50,html[data-theme="dark"] .bg-teal-50{background-color:rgba(52,211,153,.10)!important}
html[data-theme="dark"] .bg-amber-50,html[data-theme="dark"] .bg-yellow-50,html[data-theme="dark"] .bg-orange-50{background-color:rgba(251,191,36,.10)!important}
html[data-theme="dark"] .bg-blue-50,html[data-theme="dark"] .bg-sky-50,html[data-theme="dark"] .bg-indigo-50,html[data-theme="dark"] .bg-violet-50,html[data-theme="dark"] .bg-purple-50,html[data-theme="dark"] .bg-pink-50{background-color:rgba(129,140,248,.11)!important}
html[data-theme="dark"] [class*="border-red-"],html[data-theme="dark"] [class*="border-green-"],html[data-theme="dark"] [class*="border-emerald-"],html[data-theme="dark"] [class*="border-amber-"],html[data-theme="dark"] [class*="border-blue-"],html[data-theme="dark"] [class*="border-yellow-"],html[data-theme="dark"] [class*="border-orange-"]{border-color:rgba(255,255,255,.12)!important}
html[data-theme="dark"] .text-red-600,html[data-theme="dark"] .text-red-700,html[data-theme="dark"] .text-red-800,html[data-theme="dark"] .text-rose-700{color:#FCA5A5!important}
html[data-theme="dark"] .text-green-600,html[data-theme="dark"] .text-green-700,html[data-theme="dark"] .text-green-800,html[data-theme="dark"] .text-emerald-700,html[data-theme="dark"] .text-emerald-800,html[data-theme="dark"] .text-emerald-900,html[data-theme="dark"] .text-teal-700{color:#6EE7B7!important}
html[data-theme="dark"] .text-amber-700,html[data-theme="dark"] .text-amber-800,html[data-theme="dark"] .text-amber-900,html[data-theme="dark"] .text-yellow-800,html[data-theme="dark"] .text-orange-700,html[data-theme="dark"] .text-\[\#7C5A3A\],html[data-theme="dark"] .text-\[\#9C7A5A\]{color:#FCD34D!important}
html[data-theme="dark"] .text-blue-600,html[data-theme="dark"] .text-blue-700,html[data-theme="dark"] .text-blue-800,html[data-theme="dark"] .text-indigo-700{color:#93C5FD!important}

/* forms */
html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background-color:#0F1522!important;color:var(--d-t1)!important;border-color:var(--d-line2)!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:var(--d-t4)!important}
html[data-theme="dark"] option{background:#0F1522;color:var(--d-t1)}

/* inline white boxes written straight in style="" */
html[data-theme="dark"] [style*="background:#fff"],html[data-theme="dark"] [style*="background: #fff"],html[data-theme="dark"] [style*="background:#FFF"],html[data-theme="dark"] [style*="background:white"],html[data-theme="dark"] [style*="background-color:#fff"],html[data-theme="dark"] [style*="background:#ffffff"],html[data-theme="dark"] [style*="background:#F4F6F8"]{background:var(--d-s1)!important;border-color:var(--d-line)!important}
html[data-theme="dark"] [style*="color:#212B36"],html[data-theme="dark"] [style*="color:#111827"]{color:var(--d-t1)!important}
html[data-theme="dark"] [style*="color:#637381"]{color:var(--d-t3)!important}
html[data-theme="dark"] .vm-benefits>span{background:var(--d-s2)!important;border-color:var(--d-line)!important;color:var(--d-t1)!important}

/* depth: softer shadows, no white glow */
html[data-theme="dark"] .shadow,html[data-theme="dark"] .shadow-sm,html[data-theme="dark"] .shadow-md,html[data-theme="dark"] .shadow-lg,html[data-theme="dark"] .shadow-xl{box-shadow:0 1px 2px rgba(0,0,0,.5),0 8px 24px -12px rgba(0,0,0,.6)!important}
html[data-theme="dark"] img{filter:none}
html[data-theme="dark"] .vm-logo-light,html[data-theme="dark"] img[src*="logo"]{background:transparent}

/* scrollbars */
html[data-theme="dark"] ::-webkit-scrollbar{width:10px;height:10px}html[data-theme="dark"] ::-webkit-scrollbar-track{background:var(--d-bg)}html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#2A3550;border-radius:8px}

/* the switch itself */
.vm-theme-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;border:1px solid #DFE3E8;background:#fff;color:#212B36;cursor:pointer;transition:background .2s,border-color .2s,transform .15s;flex:none}
.vm-theme-btn:hover{transform:scale(1.05)}.vm-theme-btn:focus-visible{outline:2px solid var(--theme-primary,#00A76F);outline-offset:2px}
.vm-theme-btn svg{width:18px;height:18px}.vm-theme-btn .i-sun{display:none}
html[data-theme="dark"] .vm-theme-btn{background:var(--d-s2);border-color:var(--d-line2);color:#FDE68A}
html[data-theme="dark"] .vm-theme-btn .i-sun{display:block}html[data-theme="dark"] .vm-theme-btn .i-moon{display:none}
.vm-theme-float{position:fixed;left:14px;bottom:88px;z-index:60;box-shadow:0 6px 18px -6px rgba(0,0,0,.35)}
@media(min-width:768px){.vm-theme-float{bottom:22px}}
html.vm-theme-anim *,html.vm-theme-anim *::before,html.vm-theme-anim *::after{transition:background-color .25s ease,border-color .25s ease,color .25s ease!important}
@media (prefers-reduced-motion:reduce){html.vm-theme-anim *{transition:none!important}}

@media(min-width:768px){.vm-theme-btn.vm-theme-m{display:none!important}}
html[data-theme="dark"] .vm-cat,html[data-theme="dark"] .bp-card{background:var(--d-s1)!important}

/* v489 logo swap */
.vm-logo-dark{display:none!important}
html[data-theme="dark"] .vm-logo-dark{display:inline-block!important}
html[data-theme="dark"] .vm-logo-light{display:none!important}
