/* Nyendwana Techworks unified demo system — additive layer, loaded after each demo's own CSS. */
:root{
  --nt-lapis:#1F4E8C;--nt-navy:#102B5C;--nt-gold:#CFA14A;--nt-stone:#F3F0E8;
  --nt-ink:#142033;--nt-muted:#526176;--nt-line:#cdd8e8;--nt-surface:#fff;--nt-soft:#e8eff8;
  --primary:var(--nt-lapis);--primary-dark:var(--nt-navy);--secondary:var(--nt-gold);--accent:var(--nt-gold);
  --blue:var(--nt-navy);--lapis:var(--nt-lapis);--gold:var(--nt-gold);--stone:var(--nt-stone);
  --ink:var(--nt-ink);--paper:var(--nt-stone);--bg:var(--nt-stone);--card:var(--nt-surface);
  --line:var(--nt-line);--border:var(--nt-line);--muted:var(--nt-muted);
  --toqi-accent:var(--nt-lapis);--toqi-on-accent:#fff;--toqi-accent-soft:var(--nt-soft);--toqi-accent-text:var(--nt-navy);--toqi-accent-border:var(--nt-lapis);--toqi-bg:var(--nt-stone);--toqi-surface:#fff;--toqi-text:var(--nt-ink);--toqi-text-secondary:var(--nt-muted);--toqi-text-tertiary:var(--nt-muted);--toqi-border:var(--nt-line);--toqi-rule:var(--nt-line);
  --serif:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--toqi-font:var(--sans);--toqi-font-display:var(--sans);
}
html{scroll-behavior:smooth} body,button,input,select,textarea{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
body{accent-color:var(--nt-lapis)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--nt-gold)!important;outline-offset:3px}
/* Shared controls; individual layout spacing remains owned by each demo. */
button:not(.theme-toggle):not(.theme-btn),.button,.btn,[class*="button"]{border-radius:9px}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-color:var(--nt-line)!important}
::selection{background:var(--nt-gold);color:var(--nt-navy)}
/* Dynamic cards, sheets and dialogs inherit the same surface language. */
.modal,.dialog,dialog,.drawer,[role="dialog"]{--paper:var(--nt-stone);--card:#fff;--line:var(--nt-line)}
/* Gallery stays recognisably Nyendwana and gains system typography. */
body:has(.heritage-pattern),body:has(.gallery){--blue:var(--nt-navy);--lapis:var(--nt-lapis);--gold:var(--nt-gold);--stone:var(--nt-stone)}
/* FundmyHustle: replace former forest/lime visual language while preserving the app flow. */
body:has(#donate),body:has(#campaignTitle){--fmh-lime:var(--nt-gold);--fmh-orange:var(--nt-gold)}
body:has(#donate) .brandmark,body:has(#campaignTitle) .brandmark{background:var(--nt-gold)!important}
body:has(#donate) #donate,body:has(#donate) #confirm,body:has(#donate) #preview,body:has(#donate) #detailsDonate{background:var(--nt-gold)!important;color:var(--nt-navy)!important;border-color:var(--nt-gold)!important}
body:has(#donate) .stage,body:has(#donate) .stat{box-shadow:none!important}
/* Gqews retains its vintage alternate; Lapis is the default fresh edition. */
body.lapis{--paper:var(--nt-stone);--ink:var(--nt-navy);--muted:#526176;--line:#b9cbe2;--lime:var(--nt-gold);--deep:var(--nt-navy);--white:#fff}
body.lapis{background-image:radial-gradient(#1F4E8C14 .65px,transparent .65px);font-family:ui-sans-serif,system-ui,sans-serif}
body.lapis .brand,body.lapis h1,body.lapis h2,body.lapis h3{font-family:ui-sans-serif,system-ui,sans-serif}
body.lapis .demo,body.lapis .theme-btn.active,body.lapis .signup button{background:var(--nt-navy);color:#fff}
body.lapis .theme-btn{border:1px solid var(--nt-line);border-radius:7px;padding:5px 8px;background:#fff;color:var(--nt-navy)}
body.lapis .theme-btn.active{border-color:var(--nt-navy)} body.lapis .save[aria-pressed=true]{background:var(--nt-gold)}
/* Editorial modes keep their content changes; their palette is unified rather than food/fashion-specific. */
body:has(.mode-switcher){--paper:var(--nt-stone);--ink:var(--nt-navy);--muted:#526176;--line:#cdd8e8;--accent:var(--nt-lapis);--accent-soft:#dbe7f5;--card:#fff}
body:has(.mode-switcher) .brand,body:has(.mode-switcher) h1,body:has(.mode-switcher) h2,body:has(.mode-switcher) h3{font-family:ui-sans-serif,system-ui,sans-serif}
body:has(.mode-switcher) .mode-switcher button[aria-selected=true],body:has(.mode-switcher) .bookmark[aria-pressed=true]{background:var(--nt-lapis);border-color:var(--nt-lapis)}
body:has(.mode-switcher) .saved-button span{background:var(--nt-gold);color:var(--nt-navy)}
/* Former green retail/dashboard demos: source variables and common action controls become Lapis. */
body:has(.demo-bar),body:has(.sidebar),body:has(.seller-dashboard){--dark-green:var(--nt-navy);--lime:var(--nt-gold);--olive:var(--nt-lapis);--forest:var(--nt-navy);--sage:#dbe7f5}
body:has(.demo-bar) .primary,body:has(.sidebar) .primary,body:has(.seller-dashboard) .primary{background:var(--nt-lapis)!important;border-color:var(--nt-lapis)!important;color:#fff!important}
body:has(.sidebar) .sidebar,body:has(.seller-dashboard) .sidebar{background:var(--nt-navy)!important}
/* Warm restaurant and marketplace action colours move to the brand system, with success/error semantics left untouched. */
body:has(.menu-grid),body:has(.food-grid),body:has(.products),body:has(.product-grid){--red:var(--nt-lapis);--orange:var(--nt-gold);--terracotta:var(--nt-lapis);--brown:var(--nt-navy)}
body:has(.menu-grid) .btn,body:has(.food-grid) .btn,body:has(.products) .add,body:has(.product-grid) .add{background:var(--nt-lapis);color:#fff}
/* Deliberately retain .success/.error/.status and data-state colours: they communicate state, not brand. */
@media(max-width:480px){body{overflow-x:hidden}input,select,textarea{max-width:100%}}
/* FMH detail pass: the streamed app used literal forest/lime declarations, so map its visible components explicitly. */
body:has(#donate){background:var(--nt-stone)!important;color:var(--nt-navy)!important}
body:has(#donate) .wordmark,body:has(#donate) h2,body:has(#donate) h3,body:has(#donate) .feedback{color:var(--nt-navy)!important}
body:has(#donate) .subtitle,body:has(#donate) .caption,body:has(#donate) .details-note,body:has(#donate) .profile-label{color:var(--nt-muted)!important}
body:has(#donate) .brand .badge,body:has(#donate) .segmented button.selected{background:var(--nt-navy)!important;color:#fff!important}
body:has(#donate) .segmented{background:#dbe7f5!important}
body:has(#donate) .stat,body:has(#donate) .stat:first-child{background:#e8eff8!important;border-color:var(--nt-line)!important}
body:has(#donate) .stat:first-child{background:var(--nt-gold)!important;color:var(--nt-navy)!important}
body:has(#donate) .meter,body:has(#donate) .budget-track{background:#dbe7f5!important}
body:has(#donate) .meter span,body:has(#donate) .budget-track span{background:var(--nt-lapis)!important;border-color:var(--nt-gold)!important}
body:has(#donate) button{background:var(--nt-navy)!important;border-color:var(--nt-navy)!important;color:#fff!important}
body:has(#donate) button.secondary,body:has(#donate) button.ghost{background:transparent!important;color:var(--nt-navy)!important;border-color:var(--nt-line)!important}
body:has(#donate) input:not([type=range]),body:has(#donate) select,body:has(#donate) textarea{background:#fff!important;color:var(--nt-navy)!important;border-color:var(--nt-line)!important}

/* Complete palette aliases across every standalone demo and dashboard. */
:root{--navy:var(--nt-navy);--n:var(--nt-navy);--b:var(--nt-lapis);--g:var(--nt-gold);--s:var(--nt-stone);--o:var(--nt-gold);--cream:var(--nt-stone);--ivory:var(--nt-stone);--pale:var(--nt-stone);--plum:var(--nt-navy);--pink:#dce6f4;--mint:var(--nt-gold);--sky:#e8eff8;--acid:var(--nt-gold);--rust:var(--nt-lapis);--coral:var(--nt-lapis);--brown:var(--nt-navy);--orange:var(--nt-gold);--sage:#e8eff8;--forest:var(--nt-navy);--accent-soft:#e8eff8}
body[data-nt-demo]:not([data-nt-demo="gqews"]),body[data-nt-demo="gqews"].lapis{background-color:var(--nt-stone);color:var(--nt-navy)}
body[data-nt-demo]:not([data-nt-demo="gqews"]) :is(h1,h2,h3,h4,.brand,.wordmark,.logo,.footer-brand){font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
body[data-nt-demo="mineral-muse"] :is(.search-panel,.jewellery-note,.story,.checkout-summary){background:var(--nt-soft)}
body[data-nt-demo="mineral-muse"] :is(.guide-intro>p:not(.eyebrow)){color:#dce6f4}
body[data-nt-demo="mineral-muse"] :is(.truth-note,.category-tiles small){color:var(--nt-muted)}
body[data-nt-demo="mineral-muse"] .product-image{background:var(--nt-soft)}
body[data-nt-demo="mineral-muse"] .save-product.saved{color:var(--nt-lapis)}
body[data-nt-demo="madehere"] :is(.hero-caption,.save-btn.saved){background:var(--nt-lapis)}
body[data-nt-demo="madehere"] :is(.demo-bar strong,.hub-intro .eyebrow,.match-list span){color:var(--nt-gold)}
body[data-nt-demo="madehere"] :is(.micro,.need b,.form-note){color:var(--nt-muted)}
body[data-nt-demo="second-story"] .btn:hover{background:var(--nt-lapis)}
body[data-nt-demo="second-story"] .stamp{background:var(--nt-gold);color:var(--nt-navy)}
body[data-nt-demo="second-story"] .demo-bar strong{color:var(--nt-gold)}
body[data-nt-demo="iphone-seller"] :is(.hero-art,.photo-wrap,.close){background:var(--nt-soft)}
body[data-nt-demo="iphone-seller"] .art-number{color:#c8d7eb}
body[data-nt-demo="iphone-seller"] .orbit{border-color:#b9cbe2}
body[data-nt-demo="iphone-seller"] .primary:hover{background:var(--nt-lapis)}
body[data-nt-demo="iphone-seller"] :is(h1 em,.hero-pills span:before,.trust b){color:var(--nt-lapis)}
body[data-nt-demo="iphone-seller"] .closing p{color:#dce6f4}
body[data-nt-demo="doctor-demo"] .hero{background:linear-gradient(125deg,var(--nt-stone) 0 55%,#dce6f4 55%)}
body[data-nt-demo="doctor-demo"] .notice a{color:var(--nt-gold)}
body[data-nt-demo="doctor-demo"] .footer{background:var(--nt-navy);color:#dce6f4}
body[data-nt-demo="doctor-demo"] .service.selected{background:var(--nt-soft)}
body[data-nt-demo="doctor-demo"] .appointment-card{box-shadow:12px 12px 0 #1f4e8c24}
@media(max-width:720px){body[data-nt-demo="doctor-demo"] .hero{background:linear-gradient(160deg,var(--nt-stone) 0 68%,#dce6f4 68%)}}
