/* PRABOA public look (shared by join/*.html and directory.html).
   Loaded AFTER each page's own <style>, so it re-points those pages' colour
   variables to the resident-app palette (cream, navy, teal, gold; Poppins)
   and adds a dark theme. The theme is chosen in <head> by the same rule as
   the app and map: ?theme= > saved choice (praboaTheme) > device setting. */

:root {
  --bg:#fbf7ef; --panel:#ffffff; --line:#e6dfd3; --ink:#2b2b2b; --muted:#5a5a5a;
  --green:#1a7b6e; --green-d:#155e54; --yellow:#f5b335; --navy:#10184a;
  --photo:#d6ece8; --offer-bg:#fde7b8; --offer-ink:#5c3d00;
  --field:#ffffff; --field-line:#d8d2c8; --soft:#f3ece0; --err:#b3261e;
  --sel-bg:#e6f2ef; --note-bg:#fde7b8; --note-ink:#5c3d00;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg:#0c1129; --panel:#161d40; --line:#2c3566; --ink:#dfe3ef; --muted:#a2a9c2;
  --green:#1a7b6e; --green-d:#22917f; --navy:#25317a;
  --photo:#123430; --offer-bg:#3a2e12; --offer-ink:#f5d27a;
  --field:#0f1533; --field-line:#2c3566; --soft:#1d2550; --err:#ff8a80;
  --sel-bg:#123430; --note-bg:#3a2e12; --note-ink:#f5d27a;
  color-scheme: dark;
}

body { font-family:'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
.goldbar { height:4px !important; }
header.hero { background:var(--navy) !important; }
a { color:var(--green); }
[data-theme="dark"] a { color:#5fc4b4; }

/* hard-coded colours in the older pages, re-pointed */
.card p, .blurb, #detail .about, .legal, label { color:var(--ink) !important; }
.card .note, label .opt, .stepsub, .progress .ptext, .cat { color:var(--muted) !important; }
input, select, textarea { background:var(--field) !important; color:var(--ink) !important;
  border-color:var(--field-line) !important; }
.progress .pbar { background:var(--soft) !important; }
.plan:has(input:checked) { background:var(--sel-bg) !important; }
.plannote { background:var(--note-bg) !important; color:var(--note-ink) !important; border-color:var(--yellow) !important; }
.legal { background:var(--soft) !important; }
.nav .back { background:var(--soft) !important; color:var(--ink) !important; }
.err, .formerr { color:var(--err) !important; }
#done .refbox { background:var(--sel-bg) !important; }
.card.sp a.btn { background:var(--navy) !important; }
.offers-toggle { color:#3a2a00 !important; border-color:#d9a014 !important; }
.ticket { border-color:var(--yellow) !important; }
.links a { background:var(--soft) !important; }
#detail .contact { background:var(--soft) !important; }
[data-theme="dark"] .ticket, [data-theme="dark"] .plannote { color:var(--offer-ink) !important; }
[data-theme="dark"] #overlay { background:rgba(0,0,0,.6) !important; }
