/**
 * theme-sun.css — Sunlight mode (custom_293)
 *
 * NOT a theme family. An OVERRIDE toggled by .cp-sun on the chart container,
 * for reading the pad in bright direct sun. It wins over whatever family +
 * dark/light variant is underneath by redefining the SAME palette custom
 * properties those themes read (--ground / --lyric / --chord / ...), plus a
 * few structural bumps (weight, size) that raw contrast alone can't buy.
 *
 * WHY THIS SHAPE: the theme system already keys every element off these vars.
 * Redefining the vars flips the whole chart at once — no per-selector
 * overrides, no coupling to any one family. Delete this file + the .cp-sun
 * class and every theme behaves exactly as before.
 *
 * DESIGN: max luminance contrast. Pure white ground, near-black ink. The gold
 * accents (#b8a84a / #ffcc66) that read beautifully indoors vanish in sun, so
 * chords go to a dark saturated blue-black that holds against glare. Heavier
 * weight and a small size bump because thin strokes wash out first outdoors.
 */

/* Variable override — highest-contrast palette. !important so it beats the
   variant classes' own var declarations regardless of source order. */
.cp-sun {
  --ground:        #ffffff !important;  /* pure white — max reflectance headroom */
  --ground-2:      #ffffff !important;
  --lyric:         #000000 !important;  /* pure black lyrics */
  --ink:           #000000 !important;
  --chord:         #0a1a4a !important;  /* deep navy — reads dark, not washed */
  --chord-text:    #0a1a4a !important;
  --chord-plain:   #0a1a4a !important;
  --chord-plain-bg:#ffffff !important;
  --chord-plain-border:#0a1a4a !important;
  --songmsg:       #1a1a1a !important;  /* near-black, still distinct from lyric */
  --harmony:       #6a1a00 !important;  /* dark rust — distinct + high contrast */
  --section:       #000000 !important;
  --accent:        #0a1a4a !important;
}

/* Structural bumps that raw contrast can't provide. Scoped to the container. */
.cp-sun.lyric-sheet-container,
.cp-sun .lyrics {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 600 !important;   /* thin strokes wash out in sun */
}
.cp-sun .chords,
.cp-sun .style-chords,
.cp-sun span.chord span.chord-text,
.cp-sun span.style-chords {
  color: #0a1a4a !important;
  font-weight: 800 !important;
}
/* Chord-only pills: solid dark border + white fill, no low-contrast tint. */
.cp-sun span.style-chords {
  background: #ffffff !important;
  border: 2px solid #0a1a4a !important;
}
/* Section markers: solid black bar, unmissable when scanning for your place. */
.cp-sun .section-marker,
.cp-sun .style-section,
.cp-sun .songmsg,
.cp-sun .style-songmsg {
  color: #000000 !important;
}
/* Kill any semi-transparent overlays/shadows that muddy contrast outdoors. */
.cp-sun .lyric-sheet-container,
.cp-sun * {
  text-shadow: none !important;
}

/* The Sun toolbar button, lit when active (single chart + setlist). */
.toggle-sun.is-on,
.setlist-toggle-sun.is-on {
  background: #ffd23f !important;
  border-color: #ffd23f !important;
  color: #14110a !important;
  font-weight: 700 !important;
}
