/* Poprawki motywu ciemnego i tabel (kurs Optyka)
 *
 * Wyciagniete z 8 modulow narzedziem tools/styl-wyciagnij.py.
 * Edytuj tutaj — zmiana dziala we wszystkich modulach korzystajacych
 * z tego arkusza (wpis "css" w meta.json).
 */

/* Panele z ciemnym tlem sa oznaczone przez autora modulu w atrybutach style,
   a arkusz kursu ustawia ciemny kolor czcionki (pod jasne strony). Bez tej
   reguly tekst w panelach byl ciemny na ciemnym — kontrast ok. 1,1, czyli
   praktycznie niewidoczny (dotyczylo to tez naglowkow tabeli).
   Regula nie rusza jasnej strony ani przyciskow z gradientem. */
[style*="background:#0"], [style*="background: #0"],
[style*="background:#1"], [style*="background: #1"] { color: #e8eefc; }

/* Naglowki tabeli w ciemnym wierszu: arkusz kursu daje im szary kolor
   (#6c7088), co na ciemnym tle daje slaby kontrast. */
[style*="background:#0"] th, [style*="background:#1"] th,
[style*="background: #0"] th, [style*="background: #1"] th { color: #e8eefc; }

/* Akcenty sa dobrane pod ciemne panele i na jasnej stronie wypadaja zbyt
   blado. Sa zapisane w stylach inline, dlatego reguly maja !important;
   w ciemnych panelach zostaja jasne (selektor z przodkiem wygrywa). */
main [style*="color:#74c0fc"] { color: #1971c2 !important; }
main [style*="color:#ff8787"] { color: #c92a2a !important; }
main [style*="color:#ffd43b"] { color: #a15c00 !important; }
main [style*="color:#ff6b6b"] { color: #c92a2a !important; }
main [style*="color:#69db7c"] { color: #1e7a35 !important; }
main [style*="color:#ff922b"] { color: #b35c00 !important; }

[style*="background:#0"] [style*="color:#74c0fc"], [style*="background:#1"] [style*="color:#74c0fc"],
[style*="background: #0"] [style*="color:#74c0fc"], [style*="background: #1"] [style*="color:#74c0fc"],
[style*="background:#0"][style*="color:#74c0fc"], [style*="background:#1"][style*="color:#74c0fc"],
[style*="background: #0"][style*="color:#74c0fc"], [style*="background: #1"][style*="color:#74c0fc"] { color: #74c0fc !important; }
[style*="background:#0"] [style*="color:#ff8787"], [style*="background:#1"] [style*="color:#ff8787"],
[style*="background: #0"] [style*="color:#ff8787"], [style*="background: #1"] [style*="color:#ff8787"],
[style*="background:#0"][style*="color:#ff8787"], [style*="background:#1"][style*="color:#ff8787"],
[style*="background: #0"][style*="color:#ff8787"], [style*="background: #1"][style*="color:#ff8787"] { color: #ff8787 !important; }
[style*="background:#0"] [style*="color:#ffd43b"], [style*="background:#1"] [style*="color:#ffd43b"],
[style*="background: #0"] [style*="color:#ffd43b"], [style*="background: #1"] [style*="color:#ffd43b"],
[style*="background:#0"][style*="color:#ffd43b"], [style*="background:#1"][style*="color:#ffd43b"],
[style*="background: #0"][style*="color:#ffd43b"], [style*="background: #1"][style*="color:#ffd43b"] { color: #ffd43b !important; }
[style*="background:#0"] [style*="color:#ff6b6b"], [style*="background:#1"] [style*="color:#ff6b6b"],
[style*="background: #0"] [style*="color:#ff6b6b"], [style*="background: #1"] [style*="color:#ff6b6b"],
[style*="background:#0"][style*="color:#ff6b6b"], [style*="background:#1"][style*="color:#ff6b6b"],
[style*="background: #0"][style*="color:#ff6b6b"], [style*="background: #1"][style*="color:#ff6b6b"] { color: #ff6b6b !important; }
[style*="background:#0"] [style*="color:#69db7c"], [style*="background:#1"] [style*="color:#69db7c"],
[style*="background: #0"] [style*="color:#69db7c"], [style*="background: #1"] [style*="color:#69db7c"],
[style*="background:#0"][style*="color:#69db7c"], [style*="background:#1"][style*="color:#69db7c"],
[style*="background: #0"][style*="color:#69db7c"], [style*="background: #1"][style*="color:#69db7c"] { color: #69db7c !important; }
[style*="background:#0"] [style*="color:#ff922b"], [style*="background:#1"] [style*="color:#ff922b"],
[style*="background: #0"] [style*="color:#ff922b"], [style*="background: #1"] [style*="color:#ff922b"],
[style*="background:#0"][style*="color:#ff922b"], [style*="background:#1"][style*="color:#ff922b"],
[style*="background: #0"][style*="color:#ff922b"], [style*="background: #1"][style*="color:#ff922b"] { color: #ff922b !important; }

/* Akcenty uzywane w modulach 09-16 — te same reguly, co dla palety 01-08:
   na jasnym tle przyciemnione (kontrast >= 4,6), w ciemnych panelach jasne. */
main [style*="color:#fcc419"] { color: #8d6e0e !important; }
main [style*="color:#34d399"] { color: #20835f !important; }
main [style*="color:#60a5fa"] { color: #4577b4 !important; }
main [style*="color:#ffe066"] { color: #857435 !important; }
main [style*="color:#d0bfff"] { color: #796f94 !important; }
main [style*="color:#ffa94d"] { color: #9e6930 !important; }
main [style*="color:#da77f2"] { color: #a158b3 !important; }
main [style*="color:#51cf66"] { color: #348441 !important; }
main [style*="color:#38bdf8"] { color: #257da4 !important; }
main [style*="color:#67e8f9"] { color: #387d86 !important; }
main [style*="color:var(--muted)"] { color: #6b7584 !important; }
main [style*="color:#c084fc"] { color: #8a5fb5 !important; }
main [style*="color:#f87171"] { color: #b85454 !important; }
main [style*="color:#4ade80"] { color: #2b814a !important; }

[style*="background:#0"] [style*="color:#fcc419"], [style*="background:#1"] [style*="color:#fcc419"],
[style*="background: #0"] [style*="color:#fcc419"], [style*="background: #1"] [style*="color:#fcc419"],
[style*="background:#0"][style*="color:#fcc419"], [style*="background:#1"][style*="color:#fcc419"],
[style*="background: #0"][style*="color:#fcc419"], [style*="background: #1"][style*="color:#fcc419"] { color: #fcc419 !important; }
[style*="background:#0"] [style*="color:#34d399"], [style*="background:#1"] [style*="color:#34d399"],
[style*="background: #0"] [style*="color:#34d399"], [style*="background: #1"] [style*="color:#34d399"],
[style*="background:#0"][style*="color:#34d399"], [style*="background:#1"][style*="color:#34d399"],
[style*="background: #0"][style*="color:#34d399"], [style*="background: #1"][style*="color:#34d399"] { color: #34d399 !important; }
[style*="background:#0"] [style*="color:#60a5fa"], [style*="background:#1"] [style*="color:#60a5fa"],
[style*="background: #0"] [style*="color:#60a5fa"], [style*="background: #1"] [style*="color:#60a5fa"],
[style*="background:#0"][style*="color:#60a5fa"], [style*="background:#1"][style*="color:#60a5fa"],
[style*="background: #0"][style*="color:#60a5fa"], [style*="background: #1"][style*="color:#60a5fa"] { color: #60a5fa !important; }
[style*="background:#0"] [style*="color:#ffe066"], [style*="background:#1"] [style*="color:#ffe066"],
[style*="background: #0"] [style*="color:#ffe066"], [style*="background: #1"] [style*="color:#ffe066"],
[style*="background:#0"][style*="color:#ffe066"], [style*="background:#1"][style*="color:#ffe066"],
[style*="background: #0"][style*="color:#ffe066"], [style*="background: #1"][style*="color:#ffe066"] { color: #ffe066 !important; }
[style*="background:#0"] [style*="color:#d0bfff"], [style*="background:#1"] [style*="color:#d0bfff"],
[style*="background: #0"] [style*="color:#d0bfff"], [style*="background: #1"] [style*="color:#d0bfff"],
[style*="background:#0"][style*="color:#d0bfff"], [style*="background:#1"][style*="color:#d0bfff"],
[style*="background: #0"][style*="color:#d0bfff"], [style*="background: #1"][style*="color:#d0bfff"] { color: #d0bfff !important; }
[style*="background:#0"] [style*="color:#ffa94d"], [style*="background:#1"] [style*="color:#ffa94d"],
[style*="background: #0"] [style*="color:#ffa94d"], [style*="background: #1"] [style*="color:#ffa94d"],
[style*="background:#0"][style*="color:#ffa94d"], [style*="background:#1"][style*="color:#ffa94d"],
[style*="background: #0"][style*="color:#ffa94d"], [style*="background: #1"][style*="color:#ffa94d"] { color: #ffa94d !important; }
[style*="background:#0"] [style*="color:#da77f2"], [style*="background:#1"] [style*="color:#da77f2"],
[style*="background: #0"] [style*="color:#da77f2"], [style*="background: #1"] [style*="color:#da77f2"],
[style*="background:#0"][style*="color:#da77f2"], [style*="background:#1"][style*="color:#da77f2"],
[style*="background: #0"][style*="color:#da77f2"], [style*="background: #1"][style*="color:#da77f2"] { color: #da77f2 !important; }
[style*="background:#0"] [style*="color:#51cf66"], [style*="background:#1"] [style*="color:#51cf66"],
[style*="background: #0"] [style*="color:#51cf66"], [style*="background: #1"] [style*="color:#51cf66"],
[style*="background:#0"][style*="color:#51cf66"], [style*="background:#1"][style*="color:#51cf66"],
[style*="background: #0"][style*="color:#51cf66"], [style*="background: #1"][style*="color:#51cf66"] { color: #51cf66 !important; }
[style*="background:#0"] [style*="color:#38bdf8"], [style*="background:#1"] [style*="color:#38bdf8"],
[style*="background: #0"] [style*="color:#38bdf8"], [style*="background: #1"] [style*="color:#38bdf8"],
[style*="background:#0"][style*="color:#38bdf8"], [style*="background:#1"][style*="color:#38bdf8"],
[style*="background: #0"][style*="color:#38bdf8"], [style*="background: #1"][style*="color:#38bdf8"] { color: #38bdf8 !important; }
[style*="background:#0"] [style*="color:#67e8f9"], [style*="background:#1"] [style*="color:#67e8f9"],
[style*="background: #0"] [style*="color:#67e8f9"], [style*="background: #1"] [style*="color:#67e8f9"],
[style*="background:#0"][style*="color:#67e8f9"], [style*="background:#1"][style*="color:#67e8f9"],
[style*="background: #0"][style*="color:#67e8f9"], [style*="background: #1"][style*="color:#67e8f9"] { color: #67e8f9 !important; }
[style*="background:#0"] [style*="color:var(--muted)"], [style*="background:#1"] [style*="color:var(--muted)"],
[style*="background: #0"] [style*="color:var(--muted)"], [style*="background: #1"] [style*="color:var(--muted)"],
[style*="background:#0"][style*="color:var(--muted)"], [style*="background:#1"][style*="color:var(--muted)"],
[style*="background: #0"][style*="color:var(--muted)"], [style*="background: #1"][style*="color:var(--muted)"] { color:var(--muted) !important; }
[style*="background:#0"] [style*="color:#c084fc"], [style*="background:#1"] [style*="color:#c084fc"],
[style*="background: #0"] [style*="color:#c084fc"], [style*="background: #1"] [style*="color:#c084fc"],
[style*="background:#0"][style*="color:#c084fc"], [style*="background:#1"][style*="color:#c084fc"],
[style*="background: #0"][style*="color:#c084fc"], [style*="background: #1"][style*="color:#c084fc"] { color: #c084fc !important; }
[style*="background:#0"] [style*="color:#f87171"], [style*="background:#1"] [style*="color:#f87171"],
[style*="background: #0"] [style*="color:#f87171"], [style*="background: #1"] [style*="color:#f87171"],
[style*="background:#0"][style*="color:#f87171"], [style*="background:#1"][style*="color:#f87171"],
[style*="background: #0"][style*="color:#f87171"], [style*="background: #1"][style*="color:#f87171"] { color: #f87171 !important; }
[style*="background:#0"] [style*="color:#4ade80"], [style*="background:#1"] [style*="color:#4ade80"],
[style*="background: #0"] [style*="color:#4ade80"], [style*="background: #1"] [style*="color:#4ade80"],
[style*="background:#0"][style*="color:#4ade80"], [style*="background:#1"][style*="color:#4ade80"],
[style*="background: #0"][style*="color:#4ade80"], [style*="background: #1"][style*="color:#4ade80"] { color: #4ade80 !important; }

/* Niebieski akcent #339af0 na jasnej stronie ma kontrast 2,79. */
main [style*="color:#339af0"] { color: #1b6ec2 !important; }
[style*="background:#0"] [style*="color:#339af0"], [style*="background:#1"] [style*="color:#339af0"],
[style*="background: #0"] [style*="color:#339af0"], [style*="background: #1"] [style*="color:#339af0"],
[style*="background:#0"][style*="color:#339af0"], [style*="background:#1"][style*="color:#339af0"],
[style*="background: #0"][style*="color:#339af0"], [style*="background: #1"][style*="color:#339af0"] { color: #339af0 !important; }
