/*! Roleplay//Lives (https://new.roleplaylives.net) | (c) 2025-2026 Roleplay//Lives. All rights reserved. Not licensed for copying or reuse. | rpl-src:8a05f9 */
:root { --rpl-src-8a05f9: 1; }

/* Light mode: the site's default colours for members who pick Light (or "Match my device" on a light device)
   in Settings. See includes/themeLaunch.cfm for how the choice is saved and when it launches.

   Every rule here starts with html.theme-light (on a page with no custom colours), so this file only ever
   changes anything for those members, and beats the dark stylesheets whatever order they load in.

   Brand rules: the RPL wordmark is white, so the header and footer keep the night-sky colours, and so does
   the space banner on the front page. Everything between them goes light. Each text colour below passes
   WCAG AA (4.5:1) on the surfaces it sits on. */

/* ===== palette ===== */
html.theme-light:not(:has(#rplCustomTheme)) {
  color-scheme: light;
  --bg-color: #f7f3fb;          /* lavender-tinted paper */
  --surface-color: #ffffff;     /* cards */
  --surface-color2: #efe7f8;    /* inputs, nested boxes */
  --surface-color3: #e3d8f1;    /* hover, dividers */
  --surface-color4: #d6c8ea;
  --text-light: #2b2340;        /* body text: 14.8:1 on cards */
  --text-muted: #665c7d;        /* 6.2:1 on cards, 5.2:1 on inputs */
  --accent-pink: #b8236f;       /* headings: hot pink is only 2.4:1 on white */
  --accent-purple: #793096;     /* links, 8.1:1 */
  --accent-gold: #7d5a00;       /* gold as text: 6.3:1 on cards, 5.3:1 on inputs */
  --lavender-mist: #6a4ba8;     /* chips and soft links */
  --pale-lilac: #4a3b66;
  --twilight-purple: #d6c8ea;
  --royal-night: #efe7f8;
  --shadow-violet: #f3edf9;
  --midnight-plum: #e3d8f1;
  --meta-color: var(--text-muted);   /* feed.css comment fallbacks */
  --text-color: var(--text-light);
  --rpl-line: rgba(43, 35, 64, 0.12);
  --rpl-wash: rgba(43, 35, 64, 0.04);
  --rpl-shadow: 0 2px 10px rgba(73, 40, 110, 0.10);
}

/* ===== night-sky islands: header (with its menu and character switcher), footer, front-page banner =====
   They get the dark defaults back, so they look exactly as they do in dark mode. */
html.theme-light:not(:has(#rplCustomTheme)) .site-header,
html.theme-light:not(:has(#rplCustomTheme)) .site-footer,
html.theme-light:not(:has(#rplCustomTheme)) .lp-hero {
  color-scheme: dark;
  --bg-color: #1a1a2e;
  --surface-color: #2f2f4f;
  --surface-color2: #3F3F5F;
  --surface-color3: #4A4A6A;
  --surface-color4: #555577;
  --text-light: #e0e0e0;
  --text-muted: #a3a3b2;
  --accent-pink: #ff69b4;
  --accent-purple: #a87ffb;
  --accent-gold: #ffd513;
  --lavender-mist: #c9b0ff;
  --pale-lilac: #ece0ff;
  --twilight-purple: #4a3b66;
  --royal-night: #2d2240;
  --shadow-violet: #21192b;
  --midnight-plum: #352947;
  --rpl-line: rgba(255, 255, 255, 0.1);
  --rpl-wash: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
}

/* ===== base ===== */
html.theme-light:not(:has(#rplCustomTheme)) h1, html.theme-light:not(:has(#rplCustomTheme)) h2, html.theme-light:not(:has(#rplCustomTheme)) h3 { text-shadow: none; }
html.theme-light:not(:has(#rplCustomTheme)) .lp-hero h1, html.theme-light:not(:has(#rplCustomTheme)) .lp-hero h2, html.theme-light:not(:has(#rplCustomTheme)) .lp-hero h3 { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
html.theme-light:not(:has(#rplCustomTheme)) ::selection { background: #e3d8f1; color: #2b2340; }

/* softer shadows: the dark theme's black shadows look like smudges on a light page */
html.theme-light:not(:has(#rplCustomTheme)) .content-container-box,
html.theme-light:not(:has(#rplCustomTheme)) .post-item,
html.theme-light:not(:has(#rplCustomTheme)) .story-item,
html.theme-light:not(:has(#rplCustomTheme)) .profile-item,
html.theme-light:not(:has(#rplCustomTheme)) .ex-card,
html.theme-light:not(:has(#rplCustomTheme)) .fm-card,
html.theme-light:not(:has(#rplCustomTheme)) .notification-item { box-shadow: var(--rpl-shadow); }

/* ===== hard-coded dark colours in main.css ===== */
html.theme-light:not(:has(#rplCustomTheme)) input[type="text"],
html.theme-light:not(:has(#rplCustomTheme)) input[type="email"],
html.theme-light:not(:has(#rplCustomTheme)) input[type="password"],
html.theme-light:not(:has(#rplCustomTheme)) input[type="file"],
html.theme-light:not(:has(#rplCustomTheme)) input[type="number"],
html.theme-light:not(:has(#rplCustomTheme)) input[type="search"],
html.theme-light:not(:has(#rplCustomTheme)) input[type="url"],
html.theme-light:not(:has(#rplCustomTheme)) textarea,
html.theme-light:not(:has(#rplCustomTheme)) select,
html.theme-light:not(:has(#rplCustomTheme)) .checkbox-button-group label,
html.theme-light:not(:has(#rplCustomTheme)) .search-dropdown input[type="text"] { background-color: var(--surface-color2); color: var(--text-light); }
html.theme-light:not(:has(#rplCustomTheme)) .site-header input[type="text"],
html.theme-light:not(:has(#rplCustomTheme)) .site-header input[type="search"],
html.theme-light:not(:has(#rplCustomTheme)) .switch-search input { background-color: #1f1f38; color: var(--text-light); }
html.theme-light:not(:has(#rplCustomTheme)) input::placeholder, html.theme-light:not(:has(#rplCustomTheme)) textarea::placeholder { color: var(--text-muted); }
html.theme-light:not(:has(#rplCustomTheme)) .checkbox-button-group input[type="checkbox"]:checked + label,
html.theme-light:not(:has(#rplCustomTheme)) .checkbox-button-group label.selected { background-color: var(--accent-purple); color: #fff; }

html.theme-light:not(:has(#rplCustomTheme)) .rounded-corners { background-color: var(--shadow-violet); }

/* notification type icons: the dark theme's pastels are too faint on white */
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-comment .notif-badge { --notif-kind: #6a4ba8; }
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-post .notif-badge { --notif-kind: #b8236f; }
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-story .notif-badge { --notif-kind: #7d5a00; }
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-share .notif-badge { --notif-kind: #1d6f80; }
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-tag .notif-badge { --notif-kind: #5f4d84; }
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-reaction .notif-badge { --notif-kind: #c2185b; }
html.theme-light:not(:has(#rplCustomTheme)) .notif-kind-follow .notif-badge { --notif-kind: #2e7d4f; }

/* ===== profile.css ===== */
html.theme-light:not(:has(#rplCustomTheme)) .character-bio,
html.theme-light:not(:has(#rplCustomTheme)) .author-bio-box tr,
html.theme-light:not(:has(#rplCustomTheme)) .author-bio-box h3 { border-color: var(--rpl-line); }
html.theme-light:not(:has(#rplCustomTheme)) .character-bio-condensed,
html.theme-light:not(:has(#rplCustomTheme)) .character-stats > div,
html.theme-light:not(:has(#rplCustomTheme)) .dashboard-stats > div { background-color: var(--rpl-wash); }
html.theme-light:not(:has(#rplCustomTheme)) .profile-action-btn { background-color: rgba(121, 48, 150, 0.08); border-color: rgba(121, 48, 150, 0.25); }
html.theme-light:not(:has(#rplCustomTheme)) .profile-action-btn.danger { border-color: rgba(184, 35, 111, 0.4); }
html.theme-light:not(:has(#rplCustomTheme)) .icon-badge-profile { background-color: rgba(121, 48, 150, 0.06); border-color: rgba(121, 48, 150, 0.2); }
html.theme-light:not(:has(#rplCustomTheme)) .modal { background-color: rgba(43, 35, 64, 0.55); }
html.theme-light:not(:has(#rplCustomTheme)) .modal-content { border-color: var(--surface-color3); }

/* ===== content.css ===== */
html.theme-light:not(:has(#rplCustomTheme)) .tab-buttons,
html.theme-light:not(:has(#rplCustomTheme)) .mc-actions,
html.theme-light:not(:has(#rplCustomTheme)) .post-item,
html.theme-light:not(:has(#rplCustomTheme)) .story-item,
html.theme-light:not(:has(#rplCustomTheme)) .profile-item { border-color: var(--rpl-line); }
html.theme-light:not(:has(#rplCustomTheme)) .mc-count { background-color: rgba(43, 35, 64, 0.1); }

/* ===== feed.css ===== */
html.theme-light:not(:has(#rplCustomTheme)) .top-inline-form.minimalist-form { border-bottom-color: var(--rpl-line); }

/* ===== reacts.css ===== */
html.theme-light:not(:has(#rplCustomTheme)) .reaction-btn.selected { background-color: rgba(138, 100, 0, 0.12); }

/* ===== discover.css, help.css, info.css: white text that sat on dark cards, dark text that sat on bright pink ===== */
html.theme-light:not(:has(#rplCustomTheme)) .dc-article .dc-body b,
html.theme-light:not(:has(#rplCustomTheme)) .dc-article .dc-body strong,
html.theme-light:not(:has(#rplCustomTheme)) .dc-guide b,
html.theme-light:not(:has(#rplCustomTheme)) .dc-guide strong { color: var(--text-light); }
html.theme-light:not(:has(#rplCustomTheme)) .dc-sortlinks a:hover,
html.theme-light:not(:has(#rplCustomTheme)) .dc-switch a:hover,
html.theme-light:not(:has(#rplCustomTheme)) .dc-sorts a:hover { color: var(--accent-purple); }
html.theme-light:not(:has(#rplCustomTheme)) .dc-switch a[aria-current="page"],
html.theme-light:not(:has(#rplCustomTheme)) .dc-switch a[aria-current="page"]:hover { color: #fff; }
html.theme-light:not(:has(#rplCustomTheme)) .dc-btn.is-primary,
html.theme-light:not(:has(#rplCustomTheme)) .dc-btn.is-primary:hover,
html.theme-light:not(:has(#rplCustomTheme)) .dc-guide form input[type="submit"],
html.theme-light:not(:has(#rplCustomTheme)) .in-steps li::before,
html.theme-light:not(:has(#rplCustomTheme)) .in-team .in-face { color: #fff; }

/* ===== explore.css, read.css ===== */
html.theme-light:not(:has(#rplCustomTheme)) .ex-card { border-color: var(--rpl-line); }
html.theme-light:not(:has(#rplCustomTheme)) a.ex-chip:hover,
html.theme-light:not(:has(#rplCustomTheme)) .ex-expand-btn:hover,
html.theme-light:not(:has(#rplCustomTheme)) .rd-chip:hover { color: var(--accent-pink); }

/* gold words on a gold tint (Supporter labels, status pills): a shade darker than --accent-gold, 5.7:1 on the tint */
html.theme-light:not(:has(#rplCustomTheme)) .dc-guide .sg-supporter,
html.theme-light:not(:has(#rplCustomTheme)) .dc-guide .faq-supporter,
html.theme-light:not(:has(#rplCustomTheme)) .dc-pill,
html.theme-light:not(:has(#rplCustomTheme)) .ex-pill.is-status,
html.theme-light:not(:has(#rplCustomTheme)) .rd-pill.is-status,
html.theme-light:not(:has(#rplCustomTheme)) .in-checks li > i { color: #6b4e00; }

/* readability guard (the script at the top of header.cfm adds this class): member content whose own colours
   were picked for the dark site, and would be unreadable here, keeps a dark background behind it */
html.theme-light:not(:has(#rplCustomTheme)) .rpl-dark-content {
  color-scheme: dark;
  --text-light: #e0e0e0;
  --text-muted: #a3a3b2;
  --accent-pink: #ff69b4;
  --accent-purple: #a87ffb;
  --accent-gold: #ffd513;
  background-color: #2f2f4f;
  color: #e0e0e0;
  border-radius: var(--border-radius);
  padding: 0.6em 0.8em;
}
html.theme-light:not(:has(#rplCustomTheme)) .rpl-dark-content:is(span, a, b, i, em, strong, font, u, s, small, mark, code) { padding: 0 0.25em; border-radius: 4px; }

/* ===== colours set inside page files ===== */
/* search.cfm filter pills, admin.cfm text boxes */
html.theme-light:not(:has(#rplCustomTheme)) .sr-pill,
html.theme-light:not(:has(#rplCustomTheme)) .admin-page textarea { background-color: var(--surface-color2); }
/* htmlGuide.cfm code boxes, customSettingsGuide.cfm font previews */
html.theme-light:not(:has(#rplCustomTheme)) .sg-code,
html.theme-light:not(:has(#rplCustomTheme)) .csg-fontprev { background: var(--surface-color2); border-color: var(--rpl-line); }

/* header and footer when scrolled: main.css makes them see-through (footer 50%, header 80%), which over a light
   page turns them grey and loses the pale text. Nearly solid here, so the footer text keeps about 5:1. */
html.theme-light:not(:has(#rplCustomTheme)) .site-header.scrolled { background-color: rgba(47, 47, 79, 0.94); }
html.theme-light:not(:has(#rplCustomTheme)) .site-footer.scrolled { background-color: rgba(47, 47, 79, 0.94); }

/* the dark shadows profile.css puts behind button, tab and stat labels so they stand out on dark: on a light page
   they only make the text look fuzzy. Members' own glow and shadow effects in their writing are not touched. */
html.theme-light:not(:has(#rplCustomTheme)) .tab-button,
html.theme-light:not(:has(#rplCustomTheme)) .icon-badge-profile,
html.theme-light:not(:has(#rplCustomTheme)) .profile-action-btn,
html.theme-light:not(:has(#rplCustomTheme)) .profile-action-btn a,
html.theme-light:not(:has(#rplCustomTheme)) .profileButtonText,
html.theme-light:not(:has(#rplCustomTheme)) .cute-button,
html.theme-light:not(:has(#rplCustomTheme)) .cute-button a,
html.theme-light:not(:has(#rplCustomTheme)) .character-stats > div { text-shadow: none; }
/* the profile name and mini bio can overlap the bottom of the banner picture: a soft white halo instead of the black
   glow, invisible on the white card but keeping them readable over the picture */
html.theme-light:not(:has(#rplCustomTheme)) .character-name h1,
html.theme-light:not(:has(#rplCustomTheme)) .author-name h1 { text-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 14px rgba(255, 255, 255, 0.7); }
html.theme-light:not(:has(#rplCustomTheme)) .minibio { text-shadow: 0 0 4px rgba(255, 255, 255, 0.9); }

/* outline buttons (Follow in the Explore feed, the buttons on Help, About and the public pages): the dark theme turns
   their text white on hover with no fill behind it. Here the text turns pink to match the pink hover border. */
html.theme-light:not(:has(#rplCustomTheme)) .ex-btn:not(.is-primary):hover,
html.theme-light:not(:has(#rplCustomTheme)) .dc-btn:not(.is-primary):hover { color: var(--accent-pink); }
