/* ==========================================================================
   PUBLIC WEBSITE — THEME LIBRARY
   --------------------------------------------------------------------------
   Purely additive: overrides design tokens only, it changes no layout rule.
   Loaded AFTER site.css so every value here wins.

   Chosen in Admin → Settings → Appearance, stored in vapp_config as
   `site_theme`, printed as data-theme + data-scheme on <html> by
   includes/header.php.

   Six dark themes + two light themes (Pearl, Coffee Gold). `data-scheme` (dark | light) is what the
   shared correction blocks below key off, because site.css paints the header,
   hero, CTA band and footer with dark surfaces and hard-coded white text —
   on the light theme those same surfaces must invert.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ocean — Oceanic
   -------------------------------------------------------------------------- */
html[data-theme="ocean"] {
  --bg: #051520; --bg-2: #0C2739; --card: #0B2233; --line: #16394F; --line-2: #102D40;
  --ink: #E9F3F9; --ink-2: #B8CFDD; --ink-3: #8AA3B5;
  --navy-900: #04121F; --navy-800: #08202F; --navy-700: #0C2E42; --navy-600: #123D57;
  --blue: #0EA5E9; --blue-700: #0284C7; --blue-100: #E0F2FE;
  --cyan: #38BDF8; --cyan-200: #BAE6FD;
  --grad: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
  --grad-soft: linear-gradient(135deg, #0EA5E9 0%, #22D3EE 100%);
  --grad-deep: linear-gradient(140deg, #04121F 0%, #08202F 48%, #0E4A63 100%);
  --grad-line: linear-gradient(90deg, #0EA5E9, #38BDF8, #22D3EE);
  --sh-blue: 0 6px 16px rgba(14, 165, 233, .22), 0 16px 38px rgba(14, 165, 233, .20);
  --sh-cyan: 0 10px 30px rgba(56, 189, 248, .26);
  --hdr-glass: rgba(4, 18, 31, .78); --hdr-glass-solid: rgba(4, 18, 31, .92);
  --hdr-line: rgba(255, 255, 255, .09); --shadow-dark: rgba(4, 18, 31, .55);
}

/* --------------------------------------------------------------------------
   2. maroon — Dark Maroon
   Oxblood / burgundy surfaces with a warm amber undertone, so it reads brownish
   and wine-like rather than crimson. Deliberately the most muted accent.
   -------------------------------------------------------------------------- */
html[data-theme="maroon"] {
  --bg: #1A0D0D; --bg-2: #2E1614; --card: #26110F; --line: #452423; --line-2: #381B19;
  --ink: #F8EDEC; --ink-2: #D9BDBB; --ink-3: #A88E8C;
  --navy-900: #1A0A0A; --navy-800: #26110F; --navy-700: #331816; --navy-600: #452220;
  --blue: #9F1239; --blue-700: #881337; --blue-100: #FFF1F2;
  --cyan: #E11D48; --cyan-200: #FDA4AF;
  --grad: linear-gradient(135deg, #9F1239 0%, #E11D48 100%);
  --grad-soft: linear-gradient(135deg, #9F1239 0%, #D97706 100%);
  --grad-deep: linear-gradient(140deg, #1A0A0A 0%, #26110F 48%, #4A2320 100%);
  --grad-line: linear-gradient(90deg, #9F1239, #E11D48, #D97706);
  --sh-blue: 0 6px 16px rgba(159, 18, 57, .24), 0 16px 38px rgba(159, 18, 57, .22);
  --sh-cyan: 0 10px 30px rgba(225, 29, 72, .26);
  --hdr-glass: rgba(26, 10, 10, .78); --hdr-glass-solid: rgba(26, 10, 10, .92);
  --hdr-line: rgba(255, 255, 255, .09); --shadow-dark: rgba(26, 10, 10, .55);
}

/* --------------------------------------------------------------------------
   3. gold — Slate Gold
   Neutral slate surfaces so the gold accent is the only colour on screen.
   -------------------------------------------------------------------------- */
html[data-theme="gold"] {
  --bg: #0E0F12; --bg-2: #1E2126; --card: #181A1F; --line: #2E3239; --line-2: #262A30;
  --ink: #F3F1EC; --ink-2: #C2BEB2; --ink-3: #96938A;
  --navy-900: #0C0D10; --navy-800: #141619; --navy-700: #1D2024; --navy-600: #2A2E33;
  --blue: #CA8A04; --blue-700: #A16207; --blue-100: #FEF9C3;
  --cyan: #FACC15; --cyan-200: #FEF08A;
  --grad: linear-gradient(135deg, #CA8A04 0%, #FACC15 100%);
  --grad-soft: linear-gradient(135deg, #CA8A04 0%, #F59E0B 100%);
  --grad-deep: linear-gradient(140deg, #0C0D10 0%, #141619 48%, #35301C 100%);
  --grad-line: linear-gradient(90deg, #CA8A04, #FACC15, #F59E0B);
  --sh-blue: 0 6px 16px rgba(202, 138, 4, .22), 0 16px 38px rgba(202, 138, 4, .20);
  --sh-cyan: 0 10px 30px rgba(250, 204, 21, .24);
  --hdr-glass: rgba(12, 13, 16, .80); --hdr-glass-solid: rgba(12, 13, 16, .94);
  --hdr-line: rgba(255, 255, 255, .09); --shadow-dark: rgba(12, 13, 16, .55);
}

/* --------------------------------------------------------------------------
   4. indigo — Admin Indigo
   Mirrors the admin panel's own palette exactly (style.css :root):
     --primary #6366f1 · --primary-2 #8b5cf6 · --violet #a855f7
     surfaces #0a0a0f / #101018 / #15151f / #1a1a28
   So the panel and the public site can be made to match.
   -------------------------------------------------------------------------- */
html[data-theme="indigo"] {
  --bg: #0B0B12; --bg-2: #12121C; --card: #14141F; --line: #26263A; --line-2: #1E1E2E;
  --ink: #EDEDF5; --ink-2: #A8A8C0; --ink-3: #74748E;
  --navy-900: #0A0A0F; --navy-800: #101018; --navy-700: #15151F; --navy-600: #1A1A28;
  --blue: #6366F1; --blue-700: #4F46E5; --blue-100: #EEF0FF;
  --cyan: #8B5CF6; --cyan-200: #E9D5FF;
  --grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --grad-deep: linear-gradient(140deg, #0A0A0F 0%, #101018 48%, #1E1B4B 100%);
  --grad-line: linear-gradient(90deg, #6366F1, #8B5CF6, #A855F7);
  --sh-blue: 0 6px 16px rgba(99, 102, 241, .22), 0 16px 38px rgba(99, 102, 241, .20);
  --sh-cyan: 0 10px 30px rgba(168, 85, 247, .26);
  --hdr-glass: rgba(10, 10, 15, .80); --hdr-glass-solid: rgba(10, 10, 15, .94);
  --hdr-line: rgba(255, 255, 255, .09); --shadow-dark: rgba(10, 10, 15, .55);
}

/* --------------------------------------------------------------------------
   7. universe — Universe (Space)
   Deep-space navy/violet surfaces, indigo → cyan accents. Starfield, drifting
   planets, moons and orbiting satellites are painted by the .cosmos rules at
   the end of this file, so the whole site reads as outer space, not just dark.
   -------------------------------------------------------------------------- */
html[data-theme="universe"] {
  --bg: #050512; --bg-2: #0B0A22; --card: #0C0B1E; --line: #262050; --line-2: #1B1740;
  --ink: #F4F1FF; --ink-2: #C7C1E8; --ink-3: #938BBF;
  --navy-900: #03030C; --navy-800: #070718; --navy-700: #12102E; --navy-600: #1D1847;
  --blue: #8B5CF6; --blue-700: #7C3AED; --blue-100: #EDE9FE;
  --cyan: #38BDF8; --cyan-200: #BAE6FD;
  --grad: linear-gradient(135deg, #6366F1 0%, #D946EF 100%);
  --grad-soft: linear-gradient(135deg, #4F46E5 0%, #A855F7 100%);
  --grad-deep: linear-gradient(140deg, #03030C 0%, #0B0A22 50%, #1B1146 100%);
  --grad-line: linear-gradient(90deg, #6366F1, #A855F7, #38BDF8);
  --sh-blue: 0 6px 16px rgba(99, 102, 241, .26), 0 16px 38px rgba(99, 102, 241, .22);
  --sh-cyan: 0 10px 30px rgba(56, 189, 248, .24);
  --hdr-glass: rgba(3, 3, 12, .84); --hdr-glass-solid: rgba(3, 3, 12, .95);
  --hdr-line: rgba(255, 255, 255, .10); --shadow-dark: rgba(3, 3, 12, .60);
}

/* --------------------------------------------------------------------------
   5. obsidian — Midnight Black  (default)
   True black, near-neutral surface ramp (#050506 → #1B1B21) with a single
   mint accent. Deliberately the darkest and least colourful theme of the set:
   the black is the identity, the accent only shows up on action + emphasis.
   -------------------------------------------------------------------------- */
html[data-theme="obsidian"] {
  --bg: #08080A; --bg-2: #0F0F12; --card: #0D0D10; --line: #212127; --line-2: #191920;
  --ink: #F1F1F5; --ink-2: #B6B6C2; --ink-3: #82828E;
  --navy-900: #050506; --navy-800: #0B0B0E; --navy-700: #121216; --navy-600: #1B1B21;
  --blue: #10B981; --blue-700: #059669; --blue-100: #E7F7EF;
  --cyan: #34D399; --cyan-200: #A7F3D0;
  --grad: linear-gradient(135deg, #10B981 0%, #34D399 100%);
  --grad-soft: linear-gradient(135deg, #10B981 0%, #5EEAD4 100%);
  --grad-deep: linear-gradient(140deg, #050506 0%, #0B0B0E 48%, #07231C 100%);
  --grad-line: linear-gradient(90deg, #10B981, #34D399, #5EEAD4);
  --sh-blue: 0 6px 16px rgba(16, 185, 129, .20), 0 16px 38px rgba(16, 185, 129, .18);
  --sh-cyan: 0 10px 30px rgba(52, 211, 153, .22);
  --hdr-glass: rgba(8, 8, 10, .84); --hdr-glass-solid: rgba(8, 8, 10, .96);
  --hdr-line: rgba(255, 255, 255, .08); --shadow-dark: rgba(5, 5, 6, .60);
}
/* site.css hardcodes a violet wash on the alt-section chip and a
   mint→violet→pink run on the hero headline; both are tuned for a purple
   theme, so the green family re-tunes them to its own accent. */

/* --------------------------------------------------------------------------
   6. forest — Deep Forest
   Green-black surfaces with a spring-green accent. Kept separate from
   `obsidian` by pushing the accent toward lime and the surfaces toward green.
   -------------------------------------------------------------------------- */
html[data-theme="forest"] {
  --bg: #04120C; --bg-2: #0A2018; --card: #071A13; --line: #123528; --line-2: #0D2A20;
  --ink: #E9F5EF; --ink-2: #AECFC0; --ink-3: #82A695;
  --navy-900: #03100B; --navy-800: #071A13; --navy-700: #0C271D; --navy-600: #123528;
  --blue: #22C55E; --blue-700: #16A34A; --blue-100: #E8F8EE;
  --cyan: #4ADE80; --cyan-200: #BBF7D0;
  --grad: linear-gradient(135deg, #16A34A 0%, #4ADE80 100%);
  --grad-soft: linear-gradient(135deg, #22C55E 0%, #A3E635 100%);
  --grad-deep: linear-gradient(140deg, #03100B 0%, #071A13 48%, #0C3524 100%);
  --grad-line: linear-gradient(90deg, #16A34A, #4ADE80, #A3E635);
  --sh-blue: 0 6px 16px rgba(34, 197, 94, .20), 0 16px 38px rgba(34, 197, 94, .18);
  --sh-cyan: 0 10px 30px rgba(74, 222, 128, .22);
  --hdr-glass: rgba(4, 18, 12, .84); --hdr-glass-solid: rgba(4, 18, 12, .96);
  --hdr-line: rgba(255, 255, 255, .08); --shadow-dark: rgba(3, 16, 11, .60);
}

/* --------------------------------------------------------------------------
   GREEN FAMILY — the glow orbs, band wash, alt-section wash and the
   empty-course placeholder are hardcoded violet in site.css. Left alone they
   paint a purple haze over a near-black page and the theme stops reading as
   black/green. Mixed from each theme's own accent so the block serves every
   green member of the set.
   -------------------------------------------------------------------------- */
html:is([data-theme="obsidian"], [data-theme="forest"]) .sec.alt .kick { background: rgba(255, 255, 255, .06); }
html:is([data-theme="obsidian"], [data-theme="forest"]) .hero h1 span {
  background: linear-gradient(96deg, var(--cyan) 0%, var(--cyan-200) 100%);
  -webkit-background-clip: text; background-clip: text;
}
html:is([data-theme="obsidian"], [data-theme="forest"]) .hero::after {
  background:
    radial-gradient(620px 420px at 78% 18%, color-mix(in srgb, var(--cyan) 14%, transparent), transparent 64%),
    radial-gradient(520px 400px at 12% 84%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 66%),
    radial-gradient(420px 340px at 62% 96%, rgba(255, 255, 255, .05), transparent 68%);
}
html:is([data-theme="obsidian"], [data-theme="forest"]) .band::before {
  background:
    radial-gradient(600px 420px at 88% 20%, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 66%),
    radial-gradient(520px 400px at 6% 84%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 66%);
}
html:is([data-theme="obsidian"], [data-theme="forest"]) .sec.alt::before {
  background: radial-gradient(720px 420px at 88% 6%, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 66%);
}
html:is([data-theme="obsidian"], [data-theme="forest"]) .card-img:not(:has(img)) {
  background:
    radial-gradient(420px 220px at 78% 18%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 70%),
    linear-gradient(135deg, #0C1512 0%, #101A18 55%, #0A1A15 100%);
}
html:is([data-theme="obsidian"], [data-theme="forest"]) .feat .ic {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 14%, transparent), color-mix(in srgb, var(--cyan) 10%, transparent));
  border-color: color-mix(in srgb, var(--blue) 22%, transparent);
}
html:is([data-theme="obsidian"], [data-theme="forest"]) .card:hover,
html:is([data-theme="obsidian"], [data-theme="forest"]) .feat:hover,
html:is([data-theme="obsidian"], [data-theme="forest"]) .step:hover {
  border-color: color-mix(in srgb, var(--cyan) 30%, transparent);
}

/* --------------------------------------------------------------------------
   7. pearl — Pearl Light  (the only light theme)
   White/near-white page with the brand indigo kept as the single accent.
   Because site.css paints header, hero, CTA band and footer as DARK surfaces
   with hard-coded white text, this theme has to invert those four areas —
   that work lives in the LIGHT block at the bottom of this file.
   -------------------------------------------------------------------------- */
html[data-theme="pearl"] {
  --bg: #F7F8FC; --bg-2: #EEF1F8; --card: #FFFFFF; --line: #E2E6F0; --line-2: #EDF0F7;
  --ink: #10162B; --ink-2: #47506B; --ink-3: #767F99;
  /* site.css reads --navy-* as "dark surface" for .tbl th and .ftr; on this
     theme they are light greys, and the two rules that assume otherwise are
     corrected in the LIGHT block. */
  --navy-900: #FFFFFF; --navy-800: #F4F6FB; --navy-700: #E9EDF6; --navy-600: #DCE2EE;
  --blue: #4F46E5; --blue-700: #4338CA; --blue-100: #EEF0FF;
  --cyan: #7C3AED; --cyan-200: #C7B8FF;
  --grad: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --grad-soft: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
  --grad-deep: linear-gradient(140deg, #FFFFFF 0%, #F4F6FC 46%, #EAE8FD 100%);
  --grad-line: linear-gradient(90deg, #4F46E5, #7C3AED, #A855F7);
  --sh-blue: 0 6px 16px rgba(79, 70, 229, .16), 0 16px 38px rgba(79, 70, 229, .14);
  --sh-cyan: 0 10px 30px rgba(124, 58, 237, .18);
  --hdr-glass: rgba(255, 255, 255, .84); --hdr-glass-solid: rgba(255, 255, 255, .96);
  --hdr-line: rgba(16, 22, 43, .10); --shadow-dark: rgba(16, 22, 43, .16);
}

/* --------------------------------------------------------------------------
   8. coffee — Coffee Gold  (light theme)
   Warm cream page with a gold → copper accent, inspired by a coffee-shop
   landing page: #FDF9F2 / #F4E9D8 surfaces, #D98A00 gold, #8A4B12 copper and
   a #2B2018 espresso ink. Light scheme, so the LIGHT correction block below
   inverts the header/hero/band/footer; the few indigo accents it hardcodes
   are re-tinted in the COFFEE block further down.
   -------------------------------------------------------------------------- */
html[data-theme="coffee"] {
  --bg: #FDF9F2; --bg-2: #F4E9D8; --card: #FFFFFF; --line: #E8D9C2; --line-2: #F1E6D4;
  --ink: #2B2018; --ink-2: #5C4A38; --ink-3: #7A6A58;
  --navy-900: #FFFFFF; --navy-800: #FBF5EA; --navy-700: #F4E9D8; --navy-600: #E8D9C2;
  --blue: #D98A00; --blue-700: #B87000; --blue-100: #FFF3DC;
  --cyan: #8A4B12; --cyan-200: #F3C98A;
  --grad: linear-gradient(135deg, #D98A00 0%, #8A4B12 100%);
  --grad-soft: linear-gradient(135deg, #E8A200 0%, #C07000 100%);
  --grad-deep: linear-gradient(140deg, #FDF9F2 0%, #F7EDDC 46%, #F0DFC4 100%);
  --grad-line: linear-gradient(90deg, #D98A00, #B87000, #8A4B12);
  --sh-blue: 0 6px 16px rgba(217, 138, 0, .18), 0 16px 38px rgba(217, 138, 0, .16);
  --sh-cyan: 0 10px 30px rgba(138, 75, 18, .18);
  --hdr-glass: rgba(253, 249, 242, .86); --hdr-glass-solid: rgba(253, 249, 242, .97);
  --hdr-line: rgba(43, 32, 24, .10); --shadow-dark: rgba(43, 32, 24, .18);
}

/* Cream radial wash + warm glow, matching the reference landing page. */
html[data-theme="coffee"] body {
  background:
    radial-gradient(900px 520px at 90% -6%, rgba(240, 165, 0, .16), transparent 60%),
    radial-gradient(820px 520px at -5% 100%, rgba(196, 107, 0, .12), transparent 55%),
    linear-gradient(160deg, #FDF9F2, #F4E9D8 55%, #FDF9F2);
  background-attachment: fixed;
}

/* ==========================================================================
   DARK SCHEME — everything site.css hardcodes as LIGHT instead of using a token.
   Without these, the content area would stay bright while the hero went dark.
   ========================================================================== */

/* The faint blueprint grid was dark-ink at 2.8% — invisible on a dark page.
   A light line at the same weight keeps the texture without adding glare. */
html[data-scheme="dark"] body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px);
}

/* header glass follows the surface */
html[data-scheme="dark"] .hdr { background: var(--hdr-glass); border-bottom-color: var(--hdr-line); }
html[data-scheme="dark"] .hdr.scrolled { background: var(--hdr-glass-solid); }
html[data-scheme="dark"] .hdr-nav .drop-menu { background: var(--hdr-glass-solid); }
html[data-scheme="dark"] .mnav { background: var(--hdr-glass-solid); }
html[data-scheme="dark"] .hero-card,
html[data-scheme="dark"] .fab a { box-shadow: 0 18px 44px var(--shadow-dark); }
html[data-scheme="dark"] .gal a::after { background: linear-gradient(to top, var(--shadow-dark), transparent 58%); }

/* surfaces and states that were hardcoded light */
html[data-scheme="dark"] .split-img,
html[data-scheme="dark"] .card-img { background: linear-gradient(135deg, var(--bg-2), var(--card)); }

/* Uploaded artwork and the stock illustrations are light, so on a dark page they
   need a frame and an accent glow to read as a deliberate light panel rather
   than a hole punched in the theme. */
html[data-scheme="dark"] .split-img {
  border: 1px solid color-mix(in srgb, var(--blue) 26%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--blue) 16%, transparent);
}
html[data-scheme="dark"] .card-img {
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 18%, transparent);
}
html[data-scheme="dark"] .tea .ph,
html[data-scheme="dark"] .mq .card img {
  border-color: color-mix(in srgb, var(--blue) 30%, transparent);
}
html[data-scheme="dark"] .empty { border-color: var(--line); }
html[data-scheme="dark"] .tbl tbody tr:hover { background: var(--bg-2); }
html[data-scheme="dark"] .tbl th { background: var(--navy-800); }
html[data-scheme="dark"] .inp::placeholder { color: var(--ink-3); }
html[data-scheme="dark"] .rev-stars .off,
html[data-scheme="dark"] .rv-pick label { color: var(--ink-3); }
/* native date pickers and scrollbars should render dark too */
html[data-scheme="dark"] .inp { color-scheme: dark; }
html[data-scheme="dark"] { scrollbar-color: var(--navy-600) var(--bg); }

/* Accent chips (.kick / .tag) sat on a light page using a pale tint with dark
   text. On dark they need a translucent tint with LIGHT text instead, so the
   tint is mixed from the theme's own accent rather than a fixed value. */
html[data-scheme="dark"] .kick {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--cyan-200);
  border-color: color-mix(in srgb, var(--blue) 32%, transparent);
}
/* table headers inside CMS prose had a pale fill — use a dark surface instead */
html[data-scheme="dark"] .prose th { background: var(--bg-2); color: var(--ink); }
/* form focus and selection should glow in the theme accent, not the old blue */
html[data-scheme="dark"] .inp:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
html[data-scheme="dark"] ::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); color: var(--ink); }

/* ==========================================================================
   LIGHT SCHEME (pearl) — invert the four dark-painted areas of site.css.
   Everything else already reads correctly on a light page.
   ========================================================================== */
html[data-scheme="light"] { scrollbar-color: var(--navy-600) var(--bg); }
html[data-scheme="light"] body::after {
  background-image:
    linear-gradient(rgba(16, 22, 43, .030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 43, .030) 1px, transparent 1px);
}
html[data-scheme="light"] .inp { color-scheme: light; }

/* ---- header ---- */
html[data-scheme="light"] .hdr { background: var(--hdr-glass); border-bottom-color: var(--hdr-line); color: var(--ink); }
html[data-scheme="light"] .hdr.scrolled { background: var(--hdr-glass-solid); box-shadow: 0 10px 30px rgba(16, 22, 43, .10); }
html[data-scheme="light"] .hdr-logo img { background: #fff; box-shadow: 0 6px 18px rgba(16, 22, 43, .14); }
html[data-scheme="light"] .hdr-logo .t1 { color: var(--ink); }
html[data-scheme="light"] .hdr-logo .t2 { color: var(--ink-3); }
html[data-scheme="light"] .hdr-nav a { color: var(--ink-2); }
/* `:not(.hdr-cta)` is required here, exactly as in site.css: this rule is far
   more specific than `.hdr-cta`, and because it uses the `background` shorthand
   it resets background-image to none — which wiped the CTA's gradient on hover
   and left white text on a white header. */
html[data-scheme="light"] .hdr-nav > ul > li > a:hover:not(.hdr-cta) { color: var(--ink); background: rgba(16, 22, 43, .05); }
html[data-scheme="light"] .hdr-nav > ul > li > a.on:not(.hdr-cta) { color: var(--blue-700); background: rgba(79, 70, 229, .10); }
html[data-scheme="light"] .nav-sep { background: var(--line); }
html[data-scheme="light"] .hdr-nav .drop-menu {
  background: var(--hdr-glass-solid);
  border-color: var(--line);
  box-shadow: 0 20px 50px rgba(16, 22, 43, .16);
}
html[data-scheme="light"] .hdr-nav .drop-menu a:hover { background: var(--bg-2); color: var(--ink); }
html[data-scheme="light"] .hdr-nav .drop-menu a.on { background: rgba(79, 70, 229, .10); color: var(--blue-700); }
html[data-scheme="light"] .burger { background: var(--bg-2); border-color: var(--line); color: var(--ink); }
html[data-scheme="light"] .burger:hover { background: var(--navy-700); }
html[data-scheme="light"] .mnav { background: var(--hdr-glass-solid); border-top-color: var(--line); }
html[data-scheme="light"] .mnav a { color: var(--ink-2); }
html[data-scheme="light"] .mnav a:hover:not(.hdr-cta),
html[data-scheme="light"] .mnav a.on:not(.hdr-cta) { background: rgba(79, 70, 229, .10); border-color: rgba(79, 70, 229, .26); color: var(--blue-700); }
html[data-scheme="light"] .mnav-lbl { color: var(--ink-3); }
html[data-scheme="light"] .mnav-sep { background: var(--line); }

/* ---- homepage hero ---- */
html[data-scheme="light"] .hero { color: var(--ink); }
html[data-scheme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(16, 22, 43, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 43, .045) 1px, transparent 1px);
}
html[data-scheme="light"] .hero::after {
  background:
    radial-gradient(620px 420px at 78% 18%, rgba(99, 102, 241, .12), transparent 64%),
    radial-gradient(520px 400px at 12% 84%, rgba(124, 58, 237, .10), transparent 66%),
    radial-gradient(420px 340px at 62% 96%, rgba(168, 85, 247, .08), transparent 68%);
}
html[data-scheme="light"] .hero-stars { --hs: rgba(79, 70, 229, .45); }
html[data-scheme="light"] .hero h1 { color: var(--ink); }
html[data-scheme="light"] .hero h1 span {
  background: linear-gradient(96deg, #4F46E5 0%, #7C3AED 46%, #A21CAF 100%);
  -webkit-background-clip: text; background-clip: text;
}
html[data-scheme="light"] .hero .lead { color: var(--ink-2); }
html[data-scheme="light"] .hero .kicker {
  background: rgba(79, 70, 229, .07);
  border-color: rgba(79, 70, 229, .18);
  color: var(--blue-700);
}
html[data-scheme="light"] .hero .kicker .pulse { box-shadow: 0 0 0 0 rgba(99, 102, 241, .45); }
html[data-scheme="light"] .hero-tag a {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}
html[data-scheme="light"] .hero-tag a:hover {
  background: #fff;
  border-color: rgba(79, 70, 229, .35);
  color: var(--blue-700);
}
html[data-scheme="light"] .hero-card {
  background: rgba(255, 255, 255, .88);
  border-color: var(--line);
  box-shadow: 0 20px 50px rgba(16, 22, 43, .14);
}
html[data-scheme="light"] .hero-card h4 { color: var(--ink-3); }
html[data-scheme="light"] .hero-card .row { border-bottom-color: var(--line); }
html[data-scheme="light"] .hero-card .lb { color: var(--ink-3); }
html[data-scheme="light"] .hero-card .vl { color: var(--ink); }
html[data-scheme="light"] .hero-card .mi { color: var(--blue); }

/* ---- inner-page hero (kept for parity; the block is currently not rendered) ---- */
html[data-scheme="light"] .phero { color: var(--ink); }
html[data-scheme="light"] .phero::before {
  background-image:
    linear-gradient(rgba(16, 22, 43, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 43, .045) 1px, transparent 1px);
}
html[data-scheme="light"] .phero::after {
  background:
    radial-gradient(560px 380px at 84% 14%, rgba(99, 102, 241, .10), transparent 66%),
    radial-gradient(460px 340px at 8% 90%, rgba(124, 58, 237, .10), transparent 68%);
}
html[data-scheme="light"] .phero h1 { color: var(--ink); }
html[data-scheme="light"] .phero .phero-sub { color: var(--ink-2); }
html[data-scheme="light"] .crumb { color: var(--ink-3); }
html[data-scheme="light"] .crumb a { color: var(--blue-700); }
html[data-scheme="light"] .crumb a:hover { color: var(--blue); }

/* ---- CTA band ---- */
html[data-scheme="light"] .band { color: var(--ink); }
html[data-scheme="light"] .band::before {
  background:
    radial-gradient(600px 420px at 88% 20%, rgba(99, 102, 241, .10), transparent 66%),
    radial-gradient(520px 400px at 6% 84%, rgba(124, 58, 237, .10), transparent 66%);
}
html[data-scheme="light"] .band::after {
  background-image:
    linear-gradient(rgba(16, 22, 43, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 22, 43, .04) 1px, transparent 1px);
}
html[data-scheme="light"] .band h2 { color: var(--ink); }
html[data-scheme="light"] .band p { color: var(--ink-2); }

/* ---- footer ---- */
html[data-scheme="light"] .ftr {
  background: var(--navy-800);
  color: var(--ink-2);
  border-top-color: var(--line);
}
html[data-scheme="light"] .ftr p { color: var(--ink-2); }
html[data-scheme="light"] .ftr h5 { color: var(--ink); }
html[data-scheme="light"] .ftr a { color: var(--ink-2); }
html[data-scheme="light"] .ftr a:hover { color: var(--blue); }
html[data-scheme="light"] .ftr .fl .mi { color: var(--blue); }
html[data-scheme="light"] .ftr .fl > span:last-child,
html[data-scheme="light"] .ftr .fl a { color: var(--ink); }
html[data-scheme="light"] .ftr .fl a:hover { color: var(--blue-700); }
html[data-scheme="light"] .ftr-bot { color: var(--ink-3); border-top-color: var(--line); }
html[data-scheme="light"] .ftr-bot a { color: var(--ink-2); }
html[data-scheme="light"] .ftr .hdr-logo .t1 { color: var(--ink); }
html[data-scheme="light"] .ftr .hdr-logo .t2 { color: var(--ink-3); }
html[data-scheme="light"] .fab .fb-top { background: var(--grad); }

/* .tbl th is painted from --navy-800 with white text, which inverts to white
   text on white once that token is light — so it gets an explicit light value. */
html[data-scheme="light"] .tbl th { background: var(--bg-2); color: var(--ink); }

/* ---- outline button: white-on-glass only works on the dark surfaces ---- */
html[data-scheme="light"] .btn-o {
  background: var(--card);
  color: var(--blue-700);
  border-color: var(--line);
  box-shadow: var(--sh-1);
}
html[data-scheme="light"] .btn-o:hover {
  background: #fff;
  color: var(--blue);
  border-color: rgba(79, 70, 229, .40);
  box-shadow: var(--sh-2);
}
/* a white ring around a photo disappears on a white card — add a hairline */
html[data-scheme="light"] .tea .ph { box-shadow: 0 0 0 1px var(--line), var(--sh-2); }

/* ==========================================================================
   COFFEE GOLD — re-tint the accents the shared LIGHT block hardcodes indigo.
   Only the coffee theme is touched; Pearl keeps its indigo values.
   ========================================================================== */
html[data-theme="coffee"] .hero::after {
  background:
    radial-gradient(620px 420px at 78% 18%, rgba(217, 138, 0, .16), transparent 64%),
    radial-gradient(520px 400px at 12% 84%, rgba(138, 75, 18, .12), transparent 66%),
    radial-gradient(420px 340px at 62% 96%, rgba(232, 162, 0, .10), transparent 68%);
}
html[data-theme="coffee"] .hero-stars { --hs: rgba(184, 112, 0, .45); }
html[data-theme="coffee"] .hero h1 span {
  background: linear-gradient(96deg, #B87000 0%, #D98A00 48%, #8A4B12 100%);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="coffee"] .hero .kicker {
  background: rgba(217, 138, 0, .10);
  border-color: rgba(196, 107, 0, .30);
  color: var(--blue-700);
}
html[data-theme="coffee"] .hero .kicker .pulse { box-shadow: 0 0 0 0 rgba(217, 138, 0, .45); }
html[data-theme="coffee"] .hero-tag a:hover { border-color: rgba(217, 138, 0, .40); }
html[data-theme="coffee"] .hdr-nav > ul > li > a:hover:not(.hdr-cta) { background: rgba(217, 138, 0, .08); }
html[data-theme="coffee"] .hdr-nav > ul > li > a.on:not(.hdr-cta) { color: var(--blue-700); background: rgba(217, 138, 0, .14); }
html[data-theme="coffee"] .hdr-nav .drop-menu a:hover { background: var(--bg-2); }
html[data-theme="coffee"] .hdr-nav .drop-menu a.on { background: rgba(217, 138, 0, .14); color: var(--blue-700); }
html[data-theme="coffee"] .mnav a:hover:not(.hdr-cta),
html[data-theme="coffee"] .mnav a.on:not(.hdr-cta) { background: rgba(217, 138, 0, .14); border-color: rgba(217, 138, 0, .30); color: var(--blue-700); }
html[data-theme="coffee"] .phero::after {
  background:
    radial-gradient(560px 380px at 84% 14%, rgba(217, 138, 0, .14), transparent 66%),
    radial-gradient(460px 340px at 8% 90%, rgba(138, 75, 18, .12), transparent 68%);
}
html[data-theme="coffee"] .band::before {
  background:
    radial-gradient(600px 420px at 88% 20%, rgba(217, 138, 0, .14), transparent 66%),
    radial-gradient(520px 400px at 6% 84%, rgba(138, 75, 18, .12), transparent 66%);
}
html[data-theme="coffee"] .btn-o:hover { border-color: rgba(217, 138, 0, .45); }

/* ==========================================================================
   UNIVERSE THEME — starfield + planets (grah) + moons/satellites (upgrah)
   Painted only when data-theme="universe"; inert on every other theme.
   ========================================================================== */

/* Stars across the whole site. `auto` means: follow the theme's own default
   (Universe is the only theme with a starfield by default). */
html { --bg-star: #fff; }
html[data-scheme="light"] { --bg-star: rgba(79,70,229,.42); }
html:is([data-bg-style="universe"], [data-bg-style="auto"][data-theme="universe"]) body::after {
  opacity: .55;
  background-image:
    radial-gradient(1.4px 1.4px at 32px 44px, var(--bg-star) 99%, transparent 100%),
    radial-gradient(1px 1px at 138px 96px, var(--bg-star) 99%, transparent 100%),
    radial-gradient(1.7px 1.7px at 218px 184px, var(--bg-star) 99%, transparent 100%);
  background-size: 300px 260px;
  -webkit-mask-image: none; mask-image: none;
  animation: cosmosBodyStars 90s linear infinite;
}
@keyframes cosmosBodyStars { to { background-position: 0 260px; } }

/* Two copies of the same scene: absolute inside the home hero, and a fixed
   full-viewport layer on every other page. Negative z-index keeps it behind
   all page content. */
.bg-scene {
  display: none; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.site-scene { position: fixed; inset: 0; z-index: -1; }
/* Mirror the space scenes: everything that sat on the left moves to the right
   and vice versa. Only Universe/Galaxy — computer & technical stay unchanged. */
html:is([data-bg-style="galaxy"], [data-bg-style="universe"], [data-bg-style="auto"][data-theme="universe"]) .bg-scene {
  transform: scaleX(-1);
}
/* Home already paints the scene inside its hero — don't draw it twice. */
body:has(.hero) .site-scene { display: none !important; }
html:is(
  [data-bg-style="universe"],
  [data-bg-style="auto"][data-theme="universe"],
  [data-bg-style="galaxy"],
  [data-bg-style="technical"],
  [data-bg-style="computer"]
) .bg-scene { display: block; }

/* orbiting satellites: the circle spins, the bright dot rides its edge */
.bg-scene .orbit {
  position: absolute; border: 1px solid rgba(167,139,250,.20);
  border-radius: 50%; animation: cosmosOrbit 20s linear infinite;
}
.bg-scene .orbit-a { width: 330px; height: 330px; right: 6%; top: 10%; }
.bg-scene .orbit-b {
  width: 230px; height: 230px; right: 24%; bottom: 8%;
  border-color: rgba(56,189,248,.20);
  animation-duration: 14s; animation-direction: reverse;
}
.bg-scene .orbit i {
  position: absolute; top: -5px; left: 50%; width: 9px; height: 9px;
  margin-left: -4.5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 12px 3px rgba(196,181,253,.85), 0 0 26px 6px rgba(99,102,241,.35);
}
.bg-scene .orbit-b i {
  background: #BAE6FD;
  box-shadow: 0 0 12px 3px rgba(56,189,248,.8);
}
@keyframes cosmosOrbit { to { transform: rotate(360deg); } }

/* planets (grah) */
.bg-scene .cplanet {
  position: absolute; border-radius: 50%;
  animation: cosmosFloat 12s ease-in-out infinite;
}
.bg-scene .planet-gas {
  width: 150px; height: 150px; right: 12%; top: 16%;
  background: radial-gradient(circle at 32% 28%, #A5B4FC 0%, #6366F1 38%, #312E81 75%, #1E1B4B 100%);
  box-shadow: inset -18px -14px 34px rgba(0,0,0,.55), 0 0 50px rgba(99,102,241,.35);
}
.bg-scene .planet-gas::after {
  content: ''; position: absolute; left: -30%; top: 36%;
  width: 160%; height: 30%; border: 8px solid rgba(196,181,253,.55);
  border-radius: 50%; transform: rotate(-20deg);
  box-shadow: 0 0 20px rgba(167,139,250,.35);
}
.bg-scene .planet-rock {
  width: 58px; height: 58px; right: 34%; bottom: 16%;
  background: radial-gradient(circle at 30% 26%, #FDBA74, #EA580C 55%, #7C2D12 100%);
  box-shadow: inset -9px -7px 18px rgba(0,0,0,.55), 0 0 28px rgba(249,115,22,.30);
  animation-delay: -4s;
}
/* moon (upgrah) */
.bg-scene .cmoon {
  position: absolute; width: 28px; height: 28px; left: 9%; top: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff, #CBD5E1 60%, #64748B 100%);
  box-shadow: inset -7px -5px 12px rgba(71,85,105,.7), 0 0 20px rgba(255,255,255,.30);
  animation: cosmosFloat 9s ease-in-out infinite -2s;
}
/* a shooting star crossing the sky */
.bg-scene .comet {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  left: 58%; top: 12%; background: #fff; box-shadow: 0 0 8px 2px #fff;
  animation: cosmosComet 14s linear infinite;
}
.bg-scene .comet::after {
  content: ''; position: absolute; right: 2px; top: 1px;
  width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75));
}
@keyframes cosmosFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes cosmosComet {
  0%   { transform: translate(-60px, 20px); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(320px, -90px); opacity: 0; }
}
/* ---- technical background style: circuit grid + moving data packets ---- */
html[data-bg-style="technical"] body::after {
  opacity: .6;
  background-image:
    linear-gradient(rgba(56,189,248,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.10) 1px, transparent 1px),
    radial-gradient(2px 2px at 48px 48px, rgba(56,189,248,.55), transparent 100%);
  background-size: 48px 48px, 48px 48px, 96px 96px;
  -webkit-mask-image: none; mask-image: none;
  animation: techGridDrift 24s linear infinite;
}
@keyframes techGridDrift { to { background-position: 0 48px, 48px 0, 0 96px; } }

/* swap the space objects for circuit objects when this style is selected */
html:is([data-bg-style="technical"], [data-bg-style="computer"], [data-bg-style="galaxy"]) .bg-scene .orbit,
html:is([data-bg-style="technical"], [data-bg-style="computer"], [data-bg-style="galaxy"]) .bg-scene .cplanet,
html:is([data-bg-style="technical"], [data-bg-style="computer"], [data-bg-style="galaxy"]) .bg-scene .cmoon,
html:is([data-bg-style="technical"], [data-bg-style="computer"], [data-bg-style="galaxy"]) .bg-scene .comet { display: none; }
.bg-scene .tech-line,
.bg-scene .tech-vline,
.bg-scene .tech-node { display: none; }
html[data-bg-style="technical"] .bg-scene .tech-line,
html[data-bg-style="technical"] .bg-scene .tech-vline,
html[data-bg-style="technical"] .bg-scene .tech-node { display: block; }

.bg-scene .tech-line {
  position: absolute; height: 1px; left: -30%; width: 55%;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.65), transparent);
  animation: techLineSlide 9s linear infinite;
}
.bg-scene .tech-line-a { top: 24%; }
.bg-scene .tech-line-b { top: 70%; width: 40%; animation-duration: 12s; animation-delay: -4s; }
.bg-scene .tech-vline {
  position: absolute; top: -20%; width: 1px; height: 70%; right: 22%;
  background: linear-gradient(180deg, transparent, rgba(167,139,250,.55), transparent);
  animation: techVLine 11s linear infinite;
}
.bg-scene .tech-node {
  position: absolute; width: 9px; height: 9px; border: 1px solid rgba(56,189,248,.9);
  border-radius: 2px; transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(56,189,248,.7);
  animation: techNodePulse 3s ease-in-out infinite;
}
.bg-scene .tech-node-a { left: 18%; top: 34%; }
.bg-scene .tech-node-b { right: 16%; top: 56%; animation-delay: -1.5s; }
@keyframes techLineSlide { to { transform: translateX(260%); } }
@keyframes techVLine { to { transform: translateY(180%); } }
@keyframes techNodePulse {
  0%, 100% { opacity: .35; box-shadow: 0 0 6px rgba(56,189,248,.4); }
  50%      { opacity: 1;   box-shadow: 0 0 18px rgba(56,189,248,.9); }
}

/* ==========================================================================
   COMPUTER EDUCATION STYLE — floating Excel / Tally / Corel / Photoshop /
   Python / Internet / Coding / Designing tiles over a faint dotted grid.
   ========================================================================== */
html[data-bg-style="computer"] body::after {
  opacity: .5;
  background-image:
    linear-gradient(rgba(56,189,248,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.08) 1px, transparent 1px),
    radial-gradient(1.5px 1.5px at 50px 50px, rgba(167,139,250,.55), transparent 100%);
  background-size: 50px 50px, 50px 50px, 100px 100px;
  -webkit-mask-image: none; mask-image: none;
  animation: techGridDrift 30s linear infinite;
}
.bg-scene .scene-set { display: none; position: absolute; inset: 0; }
html[data-bg-style="computer"] .bg-scene .scene-edu { display: block; }

.bg-scene .edu-tile {
  position: absolute; width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font: 700 14px/1 'Plus Jakarta Sans', Inter, sans-serif;
  color: #fff; letter-spacing: -.4px; opacity: .72;
  box-shadow: 0 8px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
  animation: eduFloat 10s ease-in-out infinite;
}
.bg-scene .edu-tile:nth-child(even) { animation-delay: -3s; animation-duration: 12s; }
.bg-scene .edu-tile:nth-child(3n) { animation-delay: -6s; animation-duration: 9s; }
.edu-excel    { left: 8%;  top: 18%; background: linear-gradient(145deg, #1E7B4F, #0B5633); }
.edu-tally    { left: 20%; top: 68%; background: linear-gradient(145deg, #F59E0B, #A35408); }
.edu-corel    { right: 26%; top: 12%; background: linear-gradient(145deg, #BE185D, #701A43); font-size: 11px; }
.edu-ps       { right: 8%;  top: 32%; background: linear-gradient(145deg, #0EA5E9, #075985); }
.edu-python   { left: 13%; top: 45%; background: linear-gradient(145deg, #FACC15 0 50%, #2563EB 50% 100%); color: #0B1220; }
.edu-internet { right: 15%; bottom: 14%; background: linear-gradient(145deg, #22D3EE, #0E7490); border-radius: 50%; font-size: 10px; letter-spacing: 0; }
.edu-coding   { right: 34%; bottom: 20%; background: linear-gradient(145deg, #334155, #0F172A); font-size: 11px; }
.edu-design   { left: 30%; top: 10%; background: linear-gradient(145deg, #A855F7, #6B21A8); }
@keyframes eduFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(3deg); }
}

/* ==========================================================================
   GALAXY STYLE — our Earth plus Mercury, Venus, Mars, Jupiter and Saturn
   circling a glowing sun (each orbit spins at its own speed).
   ========================================================================== */
html[data-bg-style="galaxy"] body::after {
  opacity: .68;
  background-image:
    radial-gradient(1.5px 1.5px at 40px 50px, var(--bg-star) 99%, transparent 100%),
    radial-gradient(1px 1px at 150px 120px, var(--bg-star) 99%, transparent 100%),
    radial-gradient(2px 2px at 240px 210px, rgba(253,230,138,.9) 99%, transparent 100%),
    radial-gradient(1px 1px at 90px 230px, rgba(186,230,253,.9) 99%, transparent 100%);
  background-size: 320px 300px;
  -webkit-mask-image: none; mask-image: none;
  animation: cosmosBodyStars 70s linear infinite;
}
html[data-bg-style="galaxy"] .bg-scene .scene-galaxy { display: block; }
.scene-galaxy { --sun-x: 74%; --sun-y: 52%; }
.bg-scene .gal-sun {
  position: absolute; left: var(--sun-x); top: var(--sun-y);
  width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #FEF9C3 0%, #FBBF24 45%, #EA580C 80%, #7C2D12 100%);
  animation: galSunPulse 5s ease-in-out infinite;
}
.bg-scene .gal-orbit {
  position: absolute; left: var(--sun-x); top: var(--sun-y);
  border: 1px solid rgba(167,139,250,.20); border-radius: 50%;
  animation: cosmosOrbit linear infinite;
}
.bg-scene .gal-orbit i {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  border-radius: 50%;
}
.bg-scene .gal-orbit-1 { width: 150px; height: 150px; margin: -75px 0 0 -75px;  animation-duration: 6s; }
.bg-scene .gal-orbit-2 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation-duration: 9s; }
.bg-scene .gal-orbit-3 { width: 340px; height: 340px; margin: -170px 0 0 -170px; animation-duration: 13s; }
.bg-scene .gal-orbit-4 { width: 450px; height: 450px; margin: -225px 0 0 -225px; animation-duration: 18s; }
.bg-scene .gal-orbit-5 { width: 570px; height: 570px; margin: -285px 0 0 -285px; animation-duration: 24s; }
.bg-scene .gal-orbit-6 { width: 700px; height: 700px; margin: -350px 0 0 -350px; animation-duration: 30s; }
.p-mercury { width: 10px; height: 10px; background: radial-gradient(circle at 32% 28%, #CBD5E1, #64748B); }
.p-venus   { width: 16px; height: 16px; background: radial-gradient(circle at 32% 28%, #FDE68A, #D97706); box-shadow: 0 0 12px rgba(251,191,36,.4); }
.p-earth   { width: 26px; height: 26px;
  background: radial-gradient(circle at 32% 28%, #93C5FD 0%, #2563EB 42%, #15803D 72%, #052E16 100%);
  box-shadow: 0 0 18px rgba(56,189,248,.7), inset -4px -3px 8px rgba(0,0,0,.45); }
.p-earth::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 62%, #22C55E 0 20%, transparent 22%),
    radial-gradient(ellipse at 72% 34%, #16A34A 0 16%, transparent 18%);
}
.p-mars    { width: 14px; height: 14px; background: radial-gradient(circle at 32% 28%, #FDBA74, #C2410C 70%, #7C2D12); }
.p-jupiter { width: 34px; height: 34px;
  background: repeating-linear-gradient(0deg, #F59E0B 0 5px, #FCD34D 5px 9px, #B45309 9px 13px);
  box-shadow: inset -6px -4px 10px rgba(0,0,0,.35), 0 0 14px rgba(245,158,11,.35); }
.p-saturn  { width: 26px; height: 26px; background: radial-gradient(circle at 30% 28%, #FDE68A, #CA8A04 60%, #78350F); }
.p-saturn::after {
  content: ''; position: absolute; left: -30%; top: 34%; width: 160%; height: 30%;
  border: 3px solid rgba(253,230,138,.8); border-radius: 50%; transform: rotate(-18deg);
}
@keyframes galSunPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px 12px rgba(251,191,36,.42), 0 0 100px 30px rgba(249,115,22,.22); }
  50%      { transform: scale(1.05); box-shadow: 0 0 55px 18px rgba(251,191,36,.55), 0 0 130px 40px rgba(249,115,22,.28); }
}

@media (max-width: 800px) {
  .bg-scene .planet-gas { width: 96px; height: 96px; right: 4%; top: 8%; }
  .bg-scene .orbit-a { width: 210px; height: 210px; right: -6%; top: 2%; }
  .bg-scene .orbit-b, .bg-scene .cmoon, .bg-scene .comet { display: none; }
  .bg-scene .tech-vline { display: none; }
  .scene-galaxy { --sun-x: 80%; --sun-y: 24%; }
  .gal-orbit-5, .gal-orbit-6 { display: none; }
  .edu-tile { width: 34px; height: 34px; font-size: 11px; }
  .edu-internet, .edu-corel, .edu-coding { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html:is(
    [data-bg-style="universe"],
    [data-bg-style="auto"][data-theme="universe"],
    [data-bg-style="galaxy"],
    [data-bg-style="technical"],
    [data-bg-style="computer"]
  ) body::after,
  .bg-scene .orbit, .bg-scene .cplanet, .bg-scene .cmoon, .bg-scene .comet,
  .bg-scene .tech-line, .bg-scene .tech-vline, .bg-scene .tech-node,
  .bg-scene .edu-tile, .bg-scene .gal-sun, .bg-scene .gal-orbit { animation: none; }
}

/* ==========================================================================
   NO BLUEPRINT GRID LINES
   site.css paints a faint square grid on the hero, inner-page hero and CTA
   band. Remove that texture so the background stays clean. Deliberate grid
   styles (Technical / Computer Education) keep their own grids on body::after.
   ========================================================================== */
.hero::before,
.phero::before,
.band::after { background-image: none !important; }
/* Plain base grid (no scene style selected) is removed too. */
html[data-bg-style="none"] body::after,
html[data-bg-style="auto"]:not([data-theme="universe"]) body::after {
  background-image: none !important;
}