/* Fork (Dreikor17): the Tropo link colours on the live map
 * (fork-live-tropo.js). Tokens only: nothing here draws anything.
 *
 * One colour per class of link (fork-live-tropo.js linkClass):
 *   open    an opening: heard again after 48 h or more of quiet, or for
 *           the first time;
 *   back    heard again, neither an opening nor steady;
 *   steady  heard on 18 or more of 30 days (also drawn thin and faint);
 *   unconf  the Unconfirmed tier: 2-byte IDs only, or an end that moves or
 *           whose position is probably wrong (also drawn dashed).
 * The crossing flash stays upstream's amber (--link-medium).
 *
 * Measured as the lines are drawn: blended at the code's brightness (1
 * under 1 h, .75 for 1-6 h, .5 older; steady .45) over the basemaps' own
 * land and water pixels (OpenFreeMap Bright and Dark over the Great Lakes),
 * for normal vision and simulated protanopia, deuteranopia and tritanopia
 * (Machado 2009), CIEDE2000:
 *   - open and back, the only pair told apart by colour alone (same width,
 *     both solid), differ by 15 or more on the light map and 12.9 or more
 *     on the dark one, at every brightness, for all four;
 *   - every other pair by 9.6 or more, except a faint opening and the
 *     amber flash under tritanopia on the light map (7.6): the flash is
 *     twice as wide and fades;
 *   - no class turns grey when faint (chroma 30 or more over land, steady
 *     22), and open is the most salient solid class: on the light map back
 *     is lighter (L* 51 against 39), on the dark one a little darker.
 * Contrast at full strength against land / water: light open 6.1 / 4.1,
 * back 3.9 / 2.6, unconf 6.5 / 4.3, steady (at .45) 2.3 / 2.1; dark open
 * 5.6 / 4.9, back 5.2 / 4.6, unconf 10.4 / 9.3, steady 2.8 / 2.8. Faint
 * lines are faint by design (about 1.6-3.3). Never grey, which the light
 * map uses for its borders.
 */
:root {
  --fork-tropo-open: #b60254;
  --fork-tropo-back: #3c74ec;
  --fork-tropo-steady: #155003;
  --fork-tropo-unconf: #6405fc;
}

/* Dark: bright hues (KEEP IN SYNC with the block below). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fork-tropo-open: #fc328c;
    --fork-tropo-back: #0080ff;
    --fork-tropo-steady: #3cd473;
    --fork-tropo-unconf: #e6a5ff;
  }
}
[data-theme="dark"] {
  --fork-tropo-open: #fc328c;
  --fork-tropo-back: #0080ff;
  --fork-tropo-steady: #3cd473;
  --fork-tropo-unconf: #e6a5ff;
}
