/* Kalimantan Visual Theme. Presentation-only. Loaded after older XL themes. */
:root{--kal-magenta:#c30772;--kal-purple:#69278c;--kal-indigo:#313c9b;--kal-blue:#315bcd;--kal-ink:#13284b}
/* Fallback for pages outside Admin/CS/public wrappers */
html body{background-color:#f4f3fa!important;background-image:linear-gradient(110deg,rgba(251,250,255,.92),rgba(247,246,255,.88)),url('/kalimantan-background.webp')!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-attachment:fixed!important;color:var(--kal-ink)}
/* Layout-specific override of the old XL SMART image with greater specificity. */
html body:has(.admin-layout) .admin-layout>.admin-main,
html body:has(.admin-layout) .admin-main,
html body:has(.cs-workspace) .cs-main,
html body:has(.cs-workspace) .cs-content{
 background-color:#f7f4fb!important;
 background-image:linear-gradient(rgba(252,251,255,.87),rgba(250,249,255,.90)),url('/kalimantan-background.webp')!important;
 background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-attachment:fixed!important;
}
/* Public pages should have a calm backdrop, reserving the strongest motif for the landing hero. */
html body:has(.xl-public-header){background-image:linear-gradient(rgba(250,248,255,.91),rgba(249,248,254,.93)),url('/kalimantan-background.webp')!important}
/* Landing page: show the Kalimantan art clearly, with a dark legibility layer behind text. */
html body .pub-hero{background-image:linear-gradient(90deg,rgba(30,15,75,.94) 0%,rgba(54,21,105,.82) 41%,rgba(66,19,114,.28) 66%,rgba(35,20,96,.06) 100%),url('/kalimantan-background.webp')!important;background-color:#672487!important;background-size:cover!important;background-position:center center!important;isolation:isolate}
html body .pub-hero::before{opacity:.18!important}
html body .pub-hero-content{z-index:1}
html body .pub-hero h1,html body .pub-hero h1 em{color:#fff!important;text-shadow:0 2px 12px rgba(23,9,55,.36)}
html body .pub-hero p{color:#f6f0ff!important;text-shadow:0 1px 8px rgba(20,10,51,.4)}
html body .pub-eyebrow{color:#ffe5f7!important}
html body .pub-ticket{position:relative;z-index:1}
/* Global legibility: surfaces preserve content contrast and form controls remain opaque. */
html body :is(.card,.metric,.claim-topbar,.claim-activity,.cs-available-card,.pub-steps article,.pub-store,.rd5-overview,.rd5-workspace-aside){box-shadow:0 6px 22px rgba(32,25,95,.07)}
html body :is(input,select,textarea){background-color:#fff;color:#162a4c}
html body :is(.pub-section,.pub-stats,.pub-banner){position:relative}
/* Maintain readable text and a subtle theme for sidebar. */
html body:has(.admin-layout) .admin-sidebar{background:linear-gradient(165deg,#243b94 0%,#5136a2 58%,#8d246f 100%)!important}
html body :is(.admin-main,.cs-main,.cs-content) :is(.card,.metric,.claim-activity){background-color:rgba(255,255,255,.96)!important}
/* Retain white text on dark dashboard hero, including inherited global heading rules. */
html body .redeem-dashboard-v5 .rd5-hero h1,html body .redeem-dashboard-v5 .rd5-hero p{color:#fff!important}
@media(max-width:760px){html body,html body:has(.admin-layout) .admin-main,html body:has(.cs-workspace) .cs-main,html body:has(.cs-workspace) .cs-content{background-attachment:scroll!important}html body .pub-hero{background-position:67% center!important;padding:38px 26px!important;background-image:linear-gradient(90deg,rgba(30,15,75,.94),rgba(54,21,105,.75) 74%,rgba(40,15,85,.42)),url('/kalimantan-background.webp')!important}}
