/* Rashi Mandal theme. Loaded LAST on every page (after site.css, seo.css, philosophy.css).
   - Light page: neutral off-white background, white cards, navy text, gold accents
     (the same combination as the header).
   - Dark blocks (the wheel hero, today's-sky summary, footer, philosophy hero): the site's
     original night colours.
   It works by re-pointing the colour tokens the other stylesheets already use. */

/* ------------------------------------------------------------------ light page */
:root {
  --night:   #F6F6F4;   /* page background: neutral off-white */
  --night-2: #FFFFFF;   /* cards */
  --night-3: #ECEDEF;   /* subtle fills */
  --moon:       #1B2440;   /* headings and main text: navy */
  --moon-dim:   #4A5368;   /* body text */
  --moon-faint: #6B7183;   /* small print */
  --gold:    #B8892F;   /* gold fills and rules */
  --gold-hi: #84601F;   /* gold text on light backgrounds */
  --line:      #D9DBE0;
  --line-soft: #E6E7EA;
  --danger: #B3261E;
  --ok: #2E7D32;
}
body { background: #F6F6F4; }

/* header: off-white, navy text, navy-and-gold language pill */
.masthead { background: rgba(246, 246, 244, .97); border-bottom-color: #DCDDE2; box-shadow: none; }
.masthead .lang { border-color: #D9DBE0; }
.masthead .lang__btn[aria-pressed="true"],
.masthead .seo-lang a.lang__btn[aria-current="page"] { background: #0A1428; color: #F3D9A0; text-decoration: none; }

/* ------------------------------------------------------------------ dark blocks: the original night colours */
.hero, .footer, .rm-sky__intro, .ph-hero, .ph-elders, .ph-band {
  --night:   #0A1428;
  --night-2: #0F1D38;
  --night-3: #16264A;
  --moon:       #ECE6D6;
  --moon-dim:   #B9B3A4;
  --moon-faint: #8D8879;
  --gold:    #D6AE5C;
  --gold-hi: #EBCB86;
  --line:      rgba(214, 174, 92, .22);
  --line-soft: rgba(236, 230, 214, .10);
  color: var(--moon);
}

/* the wheel block spans the full width in night blue */
main { overflow-x: clip; }
.hero { position: relative; isolation: isolate; overflow-x: visible; }
.hero::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%;
  width: 100vw; margin-left: -50vw; background: #0A1428;
}
.hero .btn--gold { background: var(--gold); color: #0A1428; }
.hero .btn--gold:hover { background: var(--gold-hi); }
.hero input[type="date"] { color-scheme: dark; }

.rm-sky__intro { background: #0F1D38; }
.footer { background: #0A1428; }
.ph-hero { color: var(--moon); }
.ph-elders { background: #0E1A35; }
.ph-band { background: #0F1D38; border-block: 0; }
.ph-band__text { color: #ECE6D6; }
.ph-band__text::after { color: #D6AE5C; }

/* ------------------------------------------------------------------ light sections */
h2, h3 { color: #1B2440; }
.btn--gold { background: #1B2440; color: #F3D9A0; }
.btn--gold:hover { background: #0A1428; }
.tile, .rm-planet, .rm-panel { background: #FFFFFF; }
.rm-track__bg { fill: rgba(27, 36, 64, .08); }
.rm-pill--direct { color: #2E6B34; border-color: rgba(46, 107, 52, .3); background: rgba(46, 125, 50, .06); }
.rm-pill--retro  { color: #A33A2A; border-color: rgba(163, 58, 42, .3); background: rgba(179, 38, 30, .05); }
.rm-sign__now, .tile__badge { color: #1B2440; }
.rm-sign { background: #FFFFFF; }
.rm-sign:hover { box-shadow: 0 10px 24px rgba(27, 36, 64, .12); }
.rm-sign__glyph { background: var(--night-2); }
.rm-planet__glyph { color: var(--gold-hi); background: var(--night-3); }
.rm-date { background: #F6F6F4; }
[data-el="fire"]  { --el: #C65D36; }
[data-el="earth"] { --el: #5F8A3F; }
[data-el="air"]   { --el: #3E7DBE; }
[data-el="water"] { --el: #2C8C88; }

/* full-width notes */
.rm-sky__note { max-width: none; }
.disclaimer { background: #ECEDEF; border-top-color: #DCDDE2; }
.disclaimer p { max-width: none; }

/* philosophy page: light cards on the off-white page */
.ph { background: #F6F6F4; }
.ph-card { background: #FFFFFF; border-color: var(--line); }
.ph-outcome .is-key, .ph-side--fact .ph-side__label, .ph-ticket__time { color: #1B2440; }
.ph-ticket__glyph { color: #84601F; }
.ph-quote--mars { background: #FFFFFF; }
.ph-side--meaning { background: #FFFFFF; }
.ph-side--meaning .ph-side__label { color: #2B5D90; }
.ph-tile--sun .ph-tile__icon { color: #C27F1E; }
.ph-tile--moon .ph-tile__icon { color: #3E7DBE; }
.ph-tile--leaf .ph-tile__icon { color: #5F8A3F; }
.ph-whole__ring::before { border-color: rgba(27, 36, 64, .14); }
/* the old scroll-in fade left content transparent in full-page renders (search previews); show it plainly */
.ph-card, .ph-whole, .ph-quote, .ph-source, .ph-tile, .ph-elders, .ph-side, .ph-band__text, .ph-ticket { animation: none !important; }
.ph-card__art { background: #0F1D38; }
