/* edgarselectronics — replica-style layout with custom color palette
   Strategy: rely on shared/chapter-unified.css for layout and effects,
   and only override color variables and small visual tweaks so the
   chapter matches #REPLICA structure but uses a red/blue palette.
*/

body[data-chapter="EDGARSELECTRONICS"] {
  /* Primary palette */
  --chapter-primary: #ff2d55;    /* vivid red for title/borders */
  --chapter-secondary: #003b8f;  /* deep blue for chromatic split */
  --chapter-tertiary: #00a4e6;   /* cyan accent */
  --chapter-text: #e8f7ff;       /* page text */
  --chapter-accent: #ff6a88;     /* hover accent for corp links */

  /* Edgar color */
  --edgar-color: #b8c93a;       /* dying fluorescent */

  /* Background & neutrals */
  --bg-dark: #041225;            /* deep navy */
  --border-dim: rgba(255,45,85,0.12);
  --regular-color: #d7f0fb;
  --drunk-color: #ffb38a;

  /* small character nudges (optional) */
  --melissa-color: #3dda5e;
  --slug-color: #e8944e;

  /* ensure readable default text */
  color: var(--chapter-text);
}

/* Apply a faint red wash to scene border */
.scene {
  background: rgba(255,45,85,0.01); /* very subtle red tint */
  border-left: 3px solid var(--chapter-primary);
}

/* Nav arrows & chapter-nav should keep replica proportions, but colored */
.glitch-arrow,
.chapter-nav a {
  color: var(--chapter-secondary);
  text-shadow: 0 0 10px rgba(0,59,143,0.12);
}

.glitch-arrow:hover,
.chapter-nav a:hover {
  color: var(--chapter-primary);
  text-shadow: 0 0 18px rgba(255,45,85,0.18);
}

/* Corp links hover accent */
a.corp-link:hover {
  color: var(--chapter-accent);
  text-shadow: 0 0 8px rgba(255,106,136,0.14);
}

/* Selection highlight tuned to the chapter red */
body[data-chapter="EDGARSELECTRONICS"] ::selection {
  background: rgba(255,45,85,0.09);
  color: #fff;
}

/* header-left uses chapter-primary for consistent branding */
.header-left { color: var(--chapter-primary); }

/* Image tone: nudge away from gold/yellow bias */
figure img {
  filter: contrast(1.02) saturate(1.02) hue-rotate(190deg);
}

/* Edgar color override for this chapter */
body[data-chapter="EDGARSELECTRONICS"] .char-edgar {
  color: var(--edgar-color);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(184,201,58,0.22);
}

/* small utility: strong inside scene reads as chapter-primary */
.scene strong, .scene b { color: var(--chapter-primary); }

/* End of overrides — rely on shared/chapter-unified.css for layout and motion */
