/* KEMET public site · homepage themes (rc7, 2026-10-01 · rc7-hf1 "light site" · rc7-hf2 "visitor dark mode", 2026-10-02)
   Switched from the console page «ثيم الموقع» (App\Platform\SiteTheme). The layout sets <html data-theme="light" data-site-theme="…">.
   This file is loaded by the public layout only (never by the console or the tenant auth pages).

   rc7-hf1 · the public site is ALWAYS LIGHT:
     - data-theme="light" on <html> switches off core.css's dark tokens, whatever the visitor's OS preference;
       no rule here depends on prefers-color-scheme any more.
     - big bands (hero, page heroes, «شوف النظام من جوّه», contact/CTA bands, /start side panel, article tip, card placeholders)
       are light grounds: the --date family is remapped inside them to the theme's band tokens (--kt-band…), so site.css and
       public.css keep using --date / --on-date unchanged. The theme colour becomes the text + accent colour.
     - the footer stays the one deep area (the theme's own --date).
     - gold used as TEXT goes through --gold-ink (a darker brass that reads on light grounds); gold fills (CTA) stay --brass-hi.
     - night is the exception: dark by design, no band remap.
   Themes:
     classic  · ivory/cream ground, deep-green text, gold CTA, green footer
     night    · dark-first (color-scheme: dark), candle light
     modern   · light ivory + tomato accent, graphite footer
     ramadan  · cream + navy text, navy/gold line-art lanterns and crescent, navy footer
     eid      · warm blush cream + plum text, festive confetti, plum footer
     national · classic palette + thin Kuwait-flag stripes
   rc7-hf2 · VISITOR DARK MODE (header sun/moon button, localStorage "kemet-site-mode"; default light):
     <html data-theme="dark"> switches every theme except night to its own dark palette (section at the end of this file).
     The light-band remap above is skipped in dark mode (:not([data-theme="dark"])): bands go back to the theme's deep
     --date, like night. Gold stays the CTA (modern keeps its tomato CTA), paper objects stay paper, motifs are re-inked.
   The seasonal greeting comes from the layout as --kt-greeting (a CSS string) and shows as a pill after the hero eyebrow. */

/* =========================== base tokens: classic (also national) =========================== */
html:root[data-site-theme]{
  color-scheme:light;
  --ground:#F7F3EA; --surface:#FFFFFF; --sunk:#EFE9DC;
  --ink:#10261F; --ink-2:#435249; --ink-3:#56655E;
  --line:#DDD5C4; --line-2:#E9E3D5;
  --brass:#7F5F22; --brass-hi:#C9A45C; --brass-wash:#F3E9D2; --on-brass:#10261F;
  --date:#0B3A2E; --date-2:#0F4638; --date-3:#1C5646; --on-date:#F1EEE4; --on-date-2:#B4C8BE;
  --paper:#FFFDF8; --paper-2:#F1EDE4; --paper-ink:#1E2A25; --paper-mute:#5A6560;
  --ok:#4C6A38; --ok-wash:#E0E8D6; --warn:#8F5512; --warn-wash:#F3E5CC; --bad:#A1302A; --bad-wash:#F4DDD9;
  --focus:#10261F;
  /* light bands */
  --kt-band:#FBF8F1; --kt-band-alt:#F2ECDF; --kt-raise:#FFFFFF; --kt-band-line:#DCD3C0;
  --kt-on-band:#0B3A2E; --kt-on-band-2:#3F5148; --kt-gold-ink:#7F5F22; --kt-gold-display:#A57C2C;
  --kt-sh:11 58 46; --kt-strip:#0B3A2E;
}

/* =========================== light bands (every theme except night) =========================== */
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.hero,.kp-cta,.kp-night,.kp-su-side,.kp-tip,.kp-card-ph){
  --date:var(--kt-band); --date-2:var(--kt-raise); --date-3:var(--kt-band-line);
  --on-date:var(--kt-on-band); --on-date-2:var(--kt-on-band-2); --focus:var(--kt-on-band);
  --gold-ink:var(--kt-gold-ink); --plate-err:var(--bad);
}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.kp-cta,.kp-night,.kp-tip){--date:var(--kt-band-alt)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.h1 em,.kp-su-h em){color:var(--kt-gold-display)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.hero,.kp-su-side){box-shadow:inset 0 4px 0 var(--kt-strip)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .hero::before{opacity:.75}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.kp-cta,.kp-night){border-block:1px solid var(--line-2)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .kp-su-side{border-inline-end:1px solid var(--line-2)}
/* hairlines and outline controls: theme ink instead of translucent gold (which disappears on cream) */
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.hero .lh,.kp-proof,.kp-su-get,.kp-tip-by){border-color:color-mix(in srgb,var(--on-date) 14%,transparent)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.lh-login,.menu-btn,.kp-lang summary,.kp-mode,.wm-ar,.btn-line-on-dark,.kp-scr-tab){border-color:color-mix(in srgb,var(--on-date) 26%,transparent)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.lh-login,.kp-lang summary,.kp-mode,.btn-line-on-dark,.kp-scr-tab):hover{border-color:var(--brass-hi)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .hero .lnav{border-color:color-mix(in srgb,var(--on-date) 14%,transparent);box-shadow:0 18px 40px -20px rgb(var(--kt-sh) / .3)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .hero .lnav :is(.kp-nav-login,.kp-lang-list){border-color:color-mix(in srgb,var(--on-date) 12%,transparent)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .hero .lnav .kp-lang-list a:not([aria-current="true"]){border-color:color-mix(in srgb,var(--on-date) 18%,transparent)}
/* restaurant login plate: white card, white field with a theme-ink border */
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .plate{background:var(--kt-raise);border-color:color-mix(in srgb,var(--on-date) 14%,transparent);box-shadow:0 20px 40px -30px rgb(var(--kt-sh) / .45)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .slugfield{background:#fff;border:1.5px solid color-mix(in srgb,var(--on-date) 55%,transparent)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .slugfield:focus-within{border-color:var(--on-date);box-shadow:0 0 0 3px color-mix(in srgb,var(--brass-hi) 30%,transparent)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .slugfield .pre{color:var(--on-date-2)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .slugfield input::placeholder{color:var(--on-date-2);opacity:1}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .slugfield[data-bad]{border-color:var(--bad)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .plate-btn{border-color:var(--on-date);color:var(--on-date)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .plate-btn:hover{background:color-mix(in srgb,var(--on-date) 7%,transparent)}
/* paper objects on a light ground: soft, light-friendly shadow plus a hairline so the receipt still pops */
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .rc-wrap{filter:drop-shadow(0 0 1px rgb(var(--kt-sh) / .28)) drop-shadow(0 26px 28px rgb(var(--kt-sh) / .2))}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .rc-tag{border-color:color-mix(in srgb,var(--on-date) 16%,transparent);box-shadow:0 14px 26px -18px rgb(var(--kt-sh) / .45)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .kp-scr-stage{background:radial-gradient(90% 80% at 50% 100%,color-mix(in srgb,var(--brass-hi) 14%,transparent),transparent 70%),var(--kt-raise);border-color:var(--line-2)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .kp-scr-img{box-shadow:0 26px 40px -26px rgb(var(--kt-sh) / .55)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.kp-frame,.kp-art.has-poster img){box-shadow:0 20px 30px -20px rgb(var(--kt-sh) / .45)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp :is(.kp-cf,.kp-req){box-shadow:0 26px 46px -32px rgb(var(--kt-sh) / .4)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .kp-cta .kp-cf{border-color:var(--line-2)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .kp-tip{border:1px solid var(--line-2);border-inline-start:4px solid var(--brass-hi)}
html[data-site-theme]:not([data-site-theme="night"],[data-theme="dark"]) .kp .kp-card-ph{color:var(--kt-gold-ink)}

/* =========================== shared =========================== */
/* console preview banner (signed ?theme_preview= links only) */
.kt-preview{position:fixed;z-index:60;inset-block-end:16px;inset-inline-start:16px;max-width:min(420px,calc(100vw - 32px));display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:10px 14px;border-radius:12px;background:var(--surface);color:var(--ink);border:1px solid var(--brass-hi);box-shadow:0 18px 40px -16px rgba(0,0,0,.5);font-size:13px;line-height:1.5}
.kt-preview b{font-weight:600}
.kt-preview span{color:var(--ink-2);flex-basis:100%;font-size:12px}
.kt-preview a{color:var(--brass);font-weight:600;text-underline-offset:4px}
/* placeholders and the language menu's current row: readable on every ground */
.kp ::placeholder{color:var(--ink-3);opacity:1}
.kp .kp-lang-menu a[aria-current="true"] small{color:var(--brass)}

/* seasonal greeting pill after the hero eyebrow */
html:is([data-site-theme="ramadan"],[data-site-theme="eid"],[data-site-theme="national"]) .hero .eyebrow{flex-wrap:wrap;row-gap:10px}
html:is([data-site-theme="ramadan"],[data-site-theme="eid"],[data-site-theme="national"]) .hero .eyebrow::after{
  content:var(--kt-greeting,"");display:inline-flex;align-items:center;min-height:30px;padding-block:2px;padding-inline:32px 14px;border-radius:99px;
  border:1px solid color-mix(in srgb,var(--brass-hi) 70%,transparent);background:color-mix(in srgb,var(--brass-hi) 16%,var(--kt-raise)) no-repeat;
  background-size:16px 16px;background-position:right 11px center;color:var(--on-date);font-size:14px;font-weight:600;line-height:1.5;white-space:nowrap}
html[dir="ltr"]:is([data-site-theme="ramadan"],[data-site-theme="eid"],[data-site-theme="national"]) .hero .eyebrow::after{background-position:left 11px center}
html[lang="ar"]:is([data-site-theme="ramadan"],[data-site-theme="eid"],[data-site-theme="national"]) .hero .eyebrow::after{font-family:var(--f-display);font-size:17px;font-weight:700;line-height:1.4}
html[data-site-theme="ramadan"] .hero .eyebrow::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16'%3E%3Cpath transform='rotate(-25)' d='M0-7A7 7 0 0 0 0 7 9 9 0 0 1 0-7z' fill='%23A8822F'/%3E%3C/svg%3E")}
html[data-site-theme="eid"] .hero .eyebrow::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 16 16'%3E%3Cpath d='M0-7 1.6-1.6 7 0 1.6 1.6 0 7-1.6 1.6-7 0-1.6-1.6z' fill='%23A8822F'/%3E%3C/svg%3E")}
html[data-site-theme="national"] .hero .eyebrow::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect width='18' height='4' fill='%23007A3D'/%3E%3Crect y='4' width='18' height='4' fill='%23FFFFFF'/%3E%3Crect y='8' width='18' height='4' fill='%23CE1126'/%3E%3Cpath d='M0 0 5 4v4l-5 4z' fill='%23000000'/%3E%3Crect x='.25' y='.25' width='17.5' height='11.5' fill='none' stroke='%23000' stroke-opacity='.25' stroke-width='.5'/%3E%3C/svg%3E");background-size:18px 12px}
@media (prefers-reduced-motion:no-preference){
  html:is([data-site-theme="ramadan"],[data-site-theme="eid"],[data-site-theme="national"]) .hero .eyebrow::after{animation:kt-in .7s ease-out both}
}
@keyframes kt-in{from{opacity:0}to{opacity:1}}

/* =========================== night · luxurious night (dark-first, the only dark theme) =========================== */
html:root[data-site-theme="night"]{
  color-scheme:dark;
  --ground:#0D0C0A; --surface:#16140F; --sunk:#090807;
  --ink:#F2EDE3; --ink-2:#C4BBAB; --ink-3:#A39A89;
  --line:#2F2A21; --line-2:#221F18;
  --brass:#DDB977; --brass-hi:#D8B36C; --brass-wash:#33291A; --on-brass:#15110A;
  --date:#0A0908; --date-2:#16140F; --date-3:#2C271D; --on-date:#F4EEE2; --on-date-2:#C2B7A3;
  --paper:#F6F2EA; --paper-2:#EAE4D8; --paper-ink:#1E2A25; --paper-mute:#55605B;
  --ok:#9DB98A; --ok-wash:#1F2A1B; --warn:#E6AE5F; --warn-wash:#36291A; --bad:#EC8478; --bad-wash:#3B1F1B;
  --focus:#D8B36C; --plate-err:#F2A595;
}
/* candle-light: warmer, wider pendant glow + a soft top vignette */
html[data-site-theme="night"] .hero{background-image:radial-gradient(120% 70% at 50% -20%,rgba(255,214,150,.07),transparent 60%);box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--brass-hi) 28%,transparent)}
html[data-site-theme="night"] .hero::before{background:radial-gradient(closest-side,rgba(232,184,104,.26),rgba(232,184,104,.08) 55%,transparent)}
html[data-site-theme="night"] .kp-cta::before{background:radial-gradient(closest-side,rgba(232,184,104,.2),transparent)}
html[data-site-theme="night"] .h1 em{text-shadow:0 0 28px rgba(216,179,108,.28)}
/* gold hairline separators that fade at both ends */
html[data-site-theme="night"] .kp-alt{border-image:linear-gradient(90deg,transparent,color-mix(in srgb,var(--brass-hi) 42%,transparent) 50%,transparent) 1}
html[data-site-theme="night"] .kp-foot{border-block-start-color:color-mix(in srgb,var(--brass-hi) 30%,transparent)}
html[data-site-theme="night"] .kp-cta{box-shadow:inset 0 1px 0 color-mix(in srgb,var(--brass-hi) 28%,transparent)}
/* near-black buttons/toggles need gold to stand out on near-black grounds */
html[data-site-theme="night"] .kp-bill button[aria-pressed="true"]{background:var(--brass-hi);color:var(--on-brass)}
html[data-site-theme="night"] .kp-pk{box-shadow:0 24px 44px -30px rgba(0,0,0,.9)}
/* login plate on near-black: readable prefix and placeholder */
html[data-site-theme="night"] .slugfield .pre{color:var(--ink-3)}
html[data-site-theme="night"] .slugfield input::placeholder{color:var(--ink-3);opacity:1}
html[data-site-theme="night"] .btn-brass:hover{background:color-mix(in srgb,var(--brass-hi) 84%,#fff)}

/* =========================== modern · light, fresh =========================== */
html:root[data-site-theme="modern"]{
  --ground:#F7F5F0; --surface:#FFFFFF; --sunk:#EFECE6;
  --ink:#1C1B19; --ink-2:#55524C; --ink-3:#66625B;
  --line:#E1DDD4; --line-2:#ECE9E2;
  --brass:#B3391B; --brass-hi:#C9401C; --brass-wash:#FCEAE3; --on-brass:#FFFFFF;
  --date:#1C1B19; --date-2:#2A2825; --date-3:#3D3A35; --on-date:#FAF8F4; --on-date-2:#CBC6BC;
  --focus:#1C1B19;
  --kt-band:#FFFDF9; --kt-band-alt:#F2EEE6; --kt-raise:#FFFFFF; --kt-band-line:#DCD5C8;
  --kt-on-band:#1C1B19; --kt-on-band-2:#57534C; --kt-gold-ink:#B3391B; --kt-gold-display:#B3391B;
  --kt-sh:28 27 25; --kt-strip:transparent;
  --kt-saffron:#F2B33D;
}
/* crisp type: headlines in the body face, heavy and tight (Aref Ruqaa stays for the classic look) */
html[data-site-theme="modern"] .kp{--f-display:var(--f-body)}
html[data-site-theme="modern"][lang="ar"] .kp .h1{font-size:clamp(38px,5vw,72px);line-height:1.3;font-weight:700;letter-spacing:0;text-wrap:balance}
html[data-site-theme="modern"][lang="ar"] .kp :is(.h2,.kp-su-h){font-size:clamp(28px,3.3vw,46px);line-height:1.4;font-weight:700;text-wrap:balance}
html[data-site-theme="modern"][lang="ar"] .kp .rc-name{font-size:24px}
html[data-site-theme="modern"][lang="ar"] .kp .wm-ar{font-size:15px;font-weight:600}
html[data-site-theme="modern"] .h1 em{background:linear-gradient(transparent 68%,color-mix(in srgb,var(--kt-saffron) 42%,transparent) 68% 92%,transparent 92%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding-inline:.06em}
/* dotted hero, saffron blush instead of the gold glow */
html[data-site-theme="modern"] .hero{background-image:radial-gradient(color-mix(in srgb,var(--on-date) 9%,transparent) 1px,transparent 1.3px);background-size:22px 22px}
html[data-site-theme="modern"] .hero::before{background:radial-gradient(closest-side,color-mix(in srgb,var(--kt-saffron) 22%,transparent),color-mix(in srgb,var(--brass-hi) 6%,transparent) 55%,transparent)}
html[data-site-theme="modern"] .txt-link{text-decoration-color:color-mix(in srgb,var(--brass-hi) 60%,transparent)}
html[data-site-theme="modern"] .btn-brass:hover{background:color-mix(in srgb,var(--brass-hi) 86%,#000)}
html[data-site-theme="modern"] .btn-green{border-color:transparent}
html[data-site-theme="modern"] :is(.kp-cta,.kp-su-side)::before{background:radial-gradient(closest-side,color-mix(in srgb,var(--kt-saffron) 16%,transparent),transparent)}
html[data-site-theme="modern"] .kp-pk{box-shadow:0 22px 40px -34px rgba(28,27,25,.45)}

/* =========================== ramadan · cream + navy, navy/gold lanterns and crescent =========================== */
html:root[data-site-theme="ramadan"]{
  --ground:#F6F3EA; --surface:#FFFFFF; --sunk:#ECE8DD;
  --ink:#131B33; --ink-2:#434C68; --ink-3:#545C78;
  --line:#D9D5C8; --line-2:#E7E3D8;
  --brass:#7F5F22; --brass-hi:#D2AC62; --brass-wash:#F2E8D2; --on-brass:#131B33;
  --date:#0F1A3D; --date-2:#17244F; --date-3:#2B3B70; --on-date:#F4F0E5; --on-date-2:#BAC3DC;
  --focus:#131B33;
  --kt-band:#FBF8F0; --kt-band-alt:#F1ECDF; --kt-raise:#FFFFFF; --kt-band-line:#D6CFBE;
  --kt-on-band:#0F1A3D; --kt-on-band-2:#3E4866; --kt-gold-ink:#7F5F22; --kt-gold-display:#A57C2C;
  --kt-sh:15 26 61; --kt-strip:#0F1A3D;
}
/* a few navy stars and gold sparkles on the cream bands */
html[data-site-theme="ramadan"] .kp :is(.hero,.kp-cta,.kp-su-side){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='180'%3E%3Cg fill='%231B2A5C'%3E%3Ccircle cx='18' cy='22' r='1.1' opacity='.22'/%3E%3Ccircle cx='92' cy='60' r='.8' opacity='.16'/%3E%3Ccircle cx='150' cy='18' r='1.3' opacity='.2'/%3E%3Ccircle cx='210' cy='88' r='.9' opacity='.18'/%3E%3Ccircle cx='44' cy='118' r='1' opacity='.15'/%3E%3Ccircle cx='128' cy='140' r='.8' opacity='.16'/%3E%3Ccircle cx='190' cy='162' r='1.2' opacity='.2'/%3E%3Ccircle cx='70' cy='170' r='.7' opacity='.14'/%3E%3C/g%3E%3Cpath d='M176 44l1.6 3.4 3.4 1.6-3.4 1.6-1.6 3.4-1.6-3.4-3.4-1.6 3.4-1.6z' fill='%23C9A04F' opacity='.55'/%3E%3C/svg%3E");background-size:240px 180px}
html[data-site-theme="ramadan"] .hero::before{background:radial-gradient(closest-side,rgba(214,172,98,.2),rgba(214,172,98,.05) 55%,transparent)}
/* lanterns hanging from the header line + crescent, navy line art with gold glass, at the inline end (behind the receipt column) */
html[data-site-theme="ramadan"] .hero::after{content:"";position:absolute;z-index:-1;pointer-events:none;inset-block-start:76px;inset-inline-end:clamp(8px,2.4vw,40px);
  width:clamp(150px,15vw,220px);aspect-ratio:240/230;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 230'%3E%3Cdefs%3E%3Cg id='l'%3E%3Ccircle cx='0' cy='3' r='3' fill='none' stroke='%231B2A5C' stroke-width='1.4'/%3E%3Cpath d='M-8 13 0 6 8 13z' fill='%231B2A5C'/%3E%3Crect x='-11' y='13' width='22' height='4' rx='1.2' fill='%231B2A5C'/%3E%3Cpath d='M-9 17-13 26v14l4 8h18l4-8V26l-4-9z' fill='%23D2AC62' fill-opacity='.22' stroke='%231B2A5C' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M-5.5 24Q0 18.5 5.5 24v16h-11z' fill='%23D2AC62' fill-opacity='.75'/%3E%3Cpath d='M0 24v16' stroke='%231B2A5C' stroke-width='1'/%3E%3Crect x='-9' y='48' width='18' height='3.5' rx='1.2' fill='%231B2A5C'/%3E%3Cpath d='M-4 51.5 0 58 4 51.5z' fill='%23C9A04F'/%3E%3C/g%3E%3C/defs%3E%3Cpath d='M40 0v58M112 0v96M184 0v40' stroke='%231B2A5C' stroke-width='1' opacity='.45'/%3E%3Cuse href='%23l' transform='translate(40 58)'/%3E%3Cuse href='%23l' transform='translate(112 96) scale(1.25)'/%3E%3Cuse href='%23l' transform='translate(184 40) scale(.9)'/%3E%3Cpath transform='translate(196 168)' d='M0-26A26 26 0 0 0 0 26 34 34 0 0 1 0-26z' fill='%23D2AC62' stroke='%231B2A5C' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath transform='translate(210 156) scale(.55)' d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4z' fill='%23C9A04F'/%3E%3C/svg%3E") no-repeat top center/contain;opacity:.8}
/* RTL: mirror so the crescent sits at the outer edge, away from the receipt */
html[dir="rtl"][data-site-theme="ramadan"] .hero::after{transform:scaleX(-1)}
/* thin separator: dotted gold line with a crescent */
html[data-site-theme="ramadan"] .kp-alt{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='16' viewBox='0 0 260 16'%3E%3Cpath d='M4 8h100M156 8h100' stroke='%23A8822F' stroke-width='1.6' stroke-dasharray='.1 7' stroke-linecap='round'/%3E%3Cpath transform='translate(124 8)' d='M0-6.5A6.5 6.5 0 0 0 0 6.5 8.5 8.5 0 0 1 0-6.5z' fill='%231B2A5C'/%3E%3Cpath transform='translate(136 8) scale(.42)' d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4z' fill='%23A8822F'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center 14px;background-size:260px 16px}

/* =========================== eid · festive, elegant =========================== */
html:root[data-site-theme="eid"]{
  --ground:#F8F3F0; --surface:#FFFFFF; --sunk:#EFE7E3;
  --ink:#26172B; --ink-2:#57475C; --ink-3:#66576B;
  --line:#E2D6D8; --line-2:#EEE6E7;
  --brass:#7F5F22; --brass-hi:#D4AE66; --brass-wash:#F4E9D6; --on-brass:#26172B;
  --date:#2E1435; --date-2:#3C1D46; --date-3:#583164; --on-date:#F8F0EE; --on-date-2:#D8C6D5;
  --focus:#26172B;
  --kt-band:#FCF8F5; --kt-band-alt:#F5EDE9; --kt-raise:#FFFFFF; --kt-band-line:#E0D2D2;
  --kt-on-band:#2E1435; --kt-on-band-2:#5A4560; --kt-gold-ink:#7F5F22; --kt-gold-display:#A57C2C;
  --kt-sh:46 20 53; --kt-strip:#2E1435;
}
html[data-site-theme="eid"] .hero::before{background:radial-gradient(closest-side,rgba(226,186,120,.22),rgba(216,138,162,.1) 55%,transparent)}
/* sparse confetti, strongest at the top and fading out before the content */
html[data-site-theme="eid"] :is(.hero,.kp-cta)::after{content:"";position:absolute;z-index:-1;pointer-events:none;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='200'%3E%3Cg%3E%3Ccircle cx='20' cy='30' r='2.2' fill='%23C99A3E'/%3E%3Crect x='70' y='18' width='2.4' height='9' rx='1.2' fill='%23D9708F' transform='rotate(35 71 22)'/%3E%3Cpath d='M130 40l4 4-4 4-4-4z' fill='%234FA88C'/%3E%3Ccircle cx='200' cy='22' r='1.6' fill='%237A4386'/%3E%3Crect x='236' y='60' width='2.4' height='9' rx='1.2' fill='%23C99A3E' transform='rotate(-30 237 64)'/%3E%3Ccircle cx='96' cy='92' r='1.8' fill='%23D9708F'/%3E%3Cpath d='M168 100l3.5 3.5-3.5 3.5-3.5-3.5z' fill='%23C99A3E'/%3E%3Crect x='30' y='130' width='2.4' height='9' rx='1.2' fill='%234FA88C' transform='rotate(60 31 134)'/%3E%3Ccircle cx='140' cy='160' r='2' fill='%23C99A3E'/%3E%3Ccircle cx='228' cy='150' r='1.4' fill='%234FA88C'/%3E%3Cpath d='M70 178l1.5 3.2 3.2 1.5-3.2 1.5-1.5 3.2-1.5-3.2-3.2-1.5 3.2-1.5z' fill='%237A4386'/%3E%3Crect x='190' y='186' width='2.4' height='8' rx='1.2' fill='%23D9708F' transform='rotate(-50 191 190)'/%3E%3C/g%3E%3C/svg%3E") 0 0/260px 200px repeat;
  -webkit-mask-image:linear-gradient(to bottom,#000,rgba(0,0,0,.35) 40%,transparent 75%);mask-image:linear-gradient(to bottom,#000,rgba(0,0,0,.35) 40%,transparent 75%);opacity:.6}
html[data-site-theme="eid"] .kp-cta::after{-webkit-mask-image:linear-gradient(to top,#000,transparent 60%);mask-image:linear-gradient(to top,#000,transparent 60%);opacity:.45}
html[data-site-theme="eid"] .kp-alt{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14'%3E%3Cpath d='M4 7h86M130 7h86' stroke='%23A8822F' stroke-width='1' opacity='.6'/%3E%3Cpath d='M110 1l1.6 4.4L116 7l-4.4 1.6L110 13l-1.6-4.4L104 7l4.4-1.6z' fill='%23A8822F'/%3E%3Ccircle cx='96' cy='7' r='2' fill='%23D9708F'/%3E%3Ccircle cx='124' cy='7' r='2' fill='%234FA88C'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center 14px;background-size:220px 14px}

/* =========================== national · Kuwait National Day (25–26 Feb) =========================== */
/* classic light palette; Kuwait flag colours only as thin stripes */
html[data-site-theme="national"]{--kt-kw-green:#007A3D;--kt-kw-red:#CE1126;--kt-kw-white:#FFFFFF;--kt-kw-black:#000}
html:root[data-site-theme="national"]{--kt-strip:transparent}
html[data-site-theme="national"] .hero::after{content:"";position:absolute;z-index:1;pointer-events:none;inset-block-start:0;inset-inline:0;height:6px;
  background:linear-gradient(105deg,var(--kt-kw-black) 0 26px,transparent 26.5px) left top/60px 6px no-repeat,
    linear-gradient(var(--kt-kw-green) 0 2px,var(--kt-kw-white) 2px 4px,var(--kt-kw-red) 4px 6px)}
html[data-site-theme="national"] .kp-alt{background-image:linear-gradient(var(--kt-kw-green) 0 2px,#E9E4D8 2px 4px,var(--kt-kw-red) 4px 6px);background-repeat:no-repeat;background-position:center top;background-size:84px 6px}
html[data-site-theme="national"] .kp-foot{background-image:linear-gradient(105deg,var(--kt-kw-black) 0 26px,transparent 26.5px),linear-gradient(var(--kt-kw-green) 0 1px,var(--kt-kw-white) 1px 2px,var(--kt-kw-red) 2px 3px);
  background-size:60px 3px,100% 3px;background-position:left top,left top;background-repeat:no-repeat}
html[data-site-theme="national"] .kp :is(.kp-cta,.kp-night){box-shadow:inset 0 3px 0 -1px var(--kt-kw-green)}
html[data-site-theme="national"] .kp .kp-su-side{box-shadow:inset 0 3px 0 0 var(--kt-kw-green),inset 0 6px 0 0 var(--kt-kw-red)}

/* =========================== rc7-hf2 · VISITOR DARK MODE (every theme except night) =========================== */
/* <html data-theme="dark"> comes from the header sun/moon switch (localStorage "kemet-site-mode"). Each theme gets its own
   dark palette: same identity and accents, gold CTA, paper objects stay paper. Text pairs checked >= 4.5:1
   (tools/kemet-contrast-audit.cjs). Selectors are (0,3,1) so they beat the light theme blocks above (0,2,1). */
/* classic (and national): green-charcoal ground, deep date-green hero/footer, soft gold */
html:root[data-theme="dark"][data-site-theme]{
  color-scheme:dark;
  --ground:#0F1714; --surface:#16211D; --sunk:#0B120F;
  --ink:#EEF1EC; --ink-2:#BAC6BF; --ink-3:#98A69E;
  --line:#2B3B35; --line-2:#202D28;
  --brass:#DDBB7A; --brass-hi:#D2AE66; --brass-wash:#322A1B; --on-brass:#10261F;
  --date:#0B2A21; --date-2:#10352A; --date-3:#23493D; --on-date:#F1EEE4; --on-date-2:#B7CABF;
  --paper:#F6F2EA; --paper-2:#EAE4D8; --paper-ink:#1E2A25; --paper-mute:#55605B;
  --ok:#9DBB86; --ok-wash:#1E2B1C; --warn:#E6AE5F; --warn-wash:#36291A; --bad:#EC8478; --bad-wash:#3B1F1B;
  --focus:#D6B16B; --plate-err:#F2A595; --gold-ink:#DDBB7A;
  --kt-band:var(--date); --kt-band-alt:var(--date); --kt-raise:var(--date-2); --kt-band-line:var(--date-3);
  --kt-on-band:var(--on-date); --kt-on-band-2:var(--on-date-2); --kt-gold-ink:#DDBB7A; --kt-gold-display:#DDBB7A;
  --kt-sh:0 0 0; --kt-strip:transparent;
}
/* modern: graphite, tomato accent (its CTA), saffron highlight */
html:root[data-theme="dark"][data-site-theme="modern"]{
  --ground:#151514; --surface:#1E1E1C; --sunk:#10100F;
  --ink:#F3F1EC; --ink-2:#C6C2BA; --ink-3:#A39E95;
  --line:#353430; --line-2:#292826;
  --brass:#FF967A; --brass-hi:#F2643C; --brass-wash:#3A211A; --on-brass:#161615;
  --date:#111110; --date-2:#1F1E1C; --date-3:#3D3A35; --on-date:#FAF8F4; --on-date-2:#CBC6BC;
  --focus:#FF967A; --gold-ink:#FF967A; --kt-gold-ink:#FF967A; --kt-gold-display:#FF967A;
}
/* ramadan: deep navy night, gold lanterns and crescent */
html:root[data-theme="dark"][data-site-theme="ramadan"]{
  --ground:#0D1429; --surface:#141D38; --sunk:#0A1022;
  --ink:#F1EEE6; --ink-2:#C0C7DB; --ink-3:#9EA7C2;
  --line:#2B365A; --line-2:#1F2947;
  --brass:#E2C27E; --brass-hi:#D8B36C; --brass-wash:#312A1D; --on-brass:#131B33;
  --date:#0B1230; --date-2:#16224F; --date-3:#2B3B70; --on-date:#F4F0E5; --on-date-2:#BAC3DC;
  --focus:#D8B36C; --gold-ink:#E2C27E; --kt-gold-ink:#E2C27E; --kt-gold-display:#E2C27E;
}
/* eid: deep plum, gold, festive confetti */
html:root[data-theme="dark"][data-site-theme="eid"]{
  --ground:#1B1020; --surface:#25162B; --sunk:#140B18;
  --ink:#F6EEF0; --ink-2:#D4C4D1; --ink-3:#B5A2B3;
  --line:#3E2A45; --line-2:#2F1E35;
  --brass:#E4C281; --brass-hi:#D4AE66; --brass-wash:#36281E; --on-brass:#26172B;
  --date:#241029; --date-2:#341A3E; --date-3:#583164; --on-date:#F8F0EE; --on-date-2:#D8C6D5;
  --focus:#D4AE66; --gold-ink:#E4C281; --kt-gold-ink:#E4C281; --kt-gold-display:#E4C281;
}
/* shared dark details (borrowed from night): a hairline under the hero, gold toggles, readable plate prefix/placeholder */
html[data-theme="dark"][data-site-theme] .kp .hero{box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--brass-hi) 24%,transparent)}
html[data-theme="dark"][data-site-theme] .kp .kp-bill button[aria-pressed="true"]{background:var(--brass-hi);color:var(--on-brass)}
html[data-theme="dark"][data-site-theme] .kp .slugfield .pre{color:var(--on-date-2)}
html[data-theme="dark"][data-site-theme] .kp .slugfield input::placeholder{color:var(--on-date-2);opacity:1}
html[data-theme="dark"][data-site-theme] .kp .btn-brass:hover{background:color-mix(in srgb,var(--brass-hi) 84%,#fff)}
html[data-theme="dark"][data-site-theme] .kp .kp-pk{box-shadow:0 24px 44px -30px rgba(0,0,0,.9)}
html[data-theme="dark"][data-site-theme] .kp .kp-alt{border-block-color:var(--line-2)}
/* device drawings and screenshot bezels: lift the body a touch so it reads on the dark card */
html[data-theme="dark"][data-site-theme] .kp{--frame:#2A3430}
html[data-theme="dark"][data-site-theme] .kp .kp-dev{--dv:#2A3430}
/* modern: saffron highlight becomes a low underline so the tomato word keeps its contrast */
html[data-theme="dark"][data-site-theme="modern"] .h1 em{background:linear-gradient(transparent 82%,color-mix(in srgb,var(--kt-saffron) 85%,transparent) 82% 92%,transparent 92%)}
html[data-theme="dark"][data-site-theme="modern"] .kp{--frame:#2C2B28}
html[data-theme="dark"][data-site-theme="modern"] .kp .kp-dev{--dv:#2C2B28}
/* ramadan: cream stars, gold line-art lanterns and crescent on the navy night */
html[data-theme="dark"][data-site-theme="ramadan"] .kp :is(.hero,.kp-cta,.kp-su-side){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='180'%3E%3Cg fill='%23F4E3B5'%3E%3Ccircle cx='18' cy='22' r='1.1' opacity='.22'/%3E%3Ccircle cx='92' cy='60' r='.8' opacity='.16'/%3E%3Ccircle cx='150' cy='18' r='1.3' opacity='.2'/%3E%3Ccircle cx='210' cy='88' r='.9' opacity='.18'/%3E%3Ccircle cx='44' cy='118' r='1' opacity='.15'/%3E%3Ccircle cx='128' cy='140' r='.8' opacity='.16'/%3E%3Ccircle cx='190' cy='162' r='1.2' opacity='.2'/%3E%3Ccircle cx='70' cy='170' r='.7' opacity='.14'/%3E%3C/g%3E%3Cpath d='M176 44l1.6 3.4 3.4 1.6-3.4 1.6-1.6 3.4-1.6-3.4-3.4-1.6 3.4-1.6z' fill='%23C9A04F' opacity='.55'/%3E%3C/svg%3E");background-size:240px 180px}
html[data-theme="dark"][data-site-theme="ramadan"] .hero::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 230'%3E%3Cdefs%3E%3Cg id='l'%3E%3Ccircle cx='0' cy='3' r='3' fill='none' stroke='%23E6CC92' stroke-width='1.4'/%3E%3Cpath d='M-8 13 0 6 8 13z' fill='%23E6CC92'/%3E%3Crect x='-11' y='13' width='22' height='4' rx='1.2' fill='%23E6CC92'/%3E%3Cpath d='M-9 17-13 26v14l4 8h18l4-8V26l-4-9z' fill='%23D2AC62' fill-opacity='.22' stroke='%23E6CC92' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M-5.5 24Q0 18.5 5.5 24v16h-11z' fill='%23D2AC62' fill-opacity='.75'/%3E%3Cpath d='M0 24v16' stroke='%23E6CC92' stroke-width='1'/%3E%3Crect x='-9' y='48' width='18' height='3.5' rx='1.2' fill='%23E6CC92'/%3E%3Cpath d='M-4 51.5 0 58 4 51.5z' fill='%23C9A04F'/%3E%3C/g%3E%3C/defs%3E%3Cpath d='M40 0v58M112 0v96M184 0v40' stroke='%23E6CC92' stroke-width='1' opacity='.45'/%3E%3Cuse href='%23l' transform='translate(40 58)'/%3E%3Cuse href='%23l' transform='translate(112 96) scale(1.25)'/%3E%3Cuse href='%23l' transform='translate(184 40) scale(.9)'/%3E%3Cpath transform='translate(196 168)' d='M0-26A26 26 0 0 0 0 26 34 34 0 0 1 0-26z' fill='%23D2AC62' stroke='%23E6CC92' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath transform='translate(210 156) scale(.55)' d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4z' fill='%23C9A04F'/%3E%3C/svg%3E");opacity:.9}
html[data-theme="dark"][data-site-theme="ramadan"] .kp-alt{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='16' viewBox='0 0 260 16'%3E%3Cpath d='M4 8h100M156 8h100' stroke='%23C9A04F' stroke-width='1.6' stroke-dasharray='.1 7' stroke-linecap='round'/%3E%3Cpath transform='translate(124 8)' d='M0-6.5A6.5 6.5 0 0 0 0 6.5 8.5 8.5 0 0 1 0-6.5z' fill='%23E2C27E'/%3E%3Cpath transform='translate(136 8) scale(.42)' d='M0-10 2.9-4 9.5-3.1 4.7 1.5 5.9 8.1 0 5-5.9 8.1-4.7 1.5-9.5-3.1-2.9-4z' fill='%23C9A04F'/%3E%3C/svg%3E")}
html[data-theme="dark"][data-site-theme="ramadan"] .kp{--frame:#26304F}
html[data-theme="dark"][data-site-theme="ramadan"] .kp .kp-dev{--dv:#26304F}
/* eid: confetti a little brighter on plum */
html[data-theme="dark"][data-site-theme="eid"] :is(.hero,.kp-cta)::after{opacity:.75}
html[data-theme="dark"][data-site-theme="eid"] .kp{--frame:#3A2442}
html[data-theme="dark"][data-site-theme="eid"] .kp .kp-dev{--dv:#3A2442}
/* national: the flag stripes stay as they are; the white stripe of the section separator stays white */
html[data-theme="dark"][data-site-theme="national"] .kp-alt{background-image:linear-gradient(var(--kt-kw-green) 0 2px,#F1EEE4 2px 4px,var(--kt-kw-red) 4px 6px)}

/* =========================== responsive + motion =========================== */
@media (max-width:980px){
  html[data-site-theme="ramadan"] .hero::after{width:118px;opacity:.55;inset-inline-end:4px}
}
@media (max-width:640px){
  html[data-site-theme="ramadan"] .hero::after{width:92px;opacity:.45;inset-block-start:72px}
  html:is([data-site-theme="ramadan"],[data-site-theme="eid"],[data-site-theme="national"]) .hero .eyebrow::after{white-space:normal}
  .kt-preview{inset-inline:16px;inset-block-end:12px}
  .kt-preview span{display:none}
}
@media (prefers-reduced-motion:reduce){
  html[data-site-theme] .hero .eyebrow::after{animation:none!important}
}
