/* ==========================================================================
   HiResCovers dark theme - forum (phpBB prosilver_se + Board3 Portal + mChat)
   Only applies when <html> has the class "hrc-dark" (set from the hrc_theme cookie).
   Without that class this file does nothing.

   To change a colour everywhere, edit it in the variables block below.
   ========================================================================== */

html.hrc-dark {
  color-scheme: dark;                 /* dark scrollbars and native form controls */
  --hrc-page:        #11161d;         /* page background */
  --hrc-wrap:        #272a30;         /* main site wrapper */
  --hrc-panel:       #141414;         /* panels, inputs, dropdowns */
  --hrc-border:      #383838;         /* most borders and dividers */
  --hrc-text:        #d4d4d4;         /* body text */
  --hrc-text-strong: #e0e0e0;         /* headings, bold, usernames in lists */
  --hrc-text-soft:   #b9c2d2;         /* secondary text */
  --hrc-muted:       #c7c7c7;         /* small print, stats */
  --hrc-caption:     #9aa4b2;         /* grey captions under thumbnails */
  --hrc-link:        #9cc8f2;
  --hrc-link-hover:  #c4e0fb;
  --hrc-row-hover:   #1b232b;         /* topic row hover */
  --hrc-input-bg:    #2a3036;         /* search boxes */
  --hrc-header-top:  #4a555e;         /* header gradient */
  --hrc-header-mid:  #2b343b;
  --hrc-header-bot:  #161c21;
  --hrc-frame-top:   #3a434b;         /* box surround / title strip gradient */
  --hrc-frame-mid:   #2a3138;
  --hrc-frame-bot:   #22282e;
}

/* ===== Generated from the forum's own stylesheets (light colours -> dark) ===== */

/* ===== from prosilver/theme/base.css ===== */
html.hrc-dark body { color: var(--hrc-text); background-color: var(--hrc-panel); }
html.hrc-dark hr { border-top-color: var(--hrc-border); }
html.hrc-dark a { color: var(--hrc-link); }
html.hrc-dark a:hover, html.hrc-dark a:focus, html.hrc-dark a:active { color: var(--hrc-link-hover); }

/* ===== from prosilver/theme/common.css ===== */
html.hrc-dark .dropdown-extended .header { text-shadow: #000000 1px 1px 1px; }

/* ===== from prosilver/theme/colours.css ===== */
html.hrc-dark, html.hrc-dark body { color: var(--hrc-text-soft); background-color: var(--hrc-page); }
html.hrc-dark h2 { color: #cad1dd; }
html.hrc-dark h3 { border-bottom-color: var(--hrc-border); color: #a4caf5; }
html.hrc-dark hr { border-color: var(--hrc-border); }
html.hrc-dark a { color: var(--hrc-link); }
html.hrc-dark a:hover { color: var(--hrc-link-hover); }
html.hrc-dark .dropdown-extended a.mark_read { background-color: var(--hrc-panel); }
html.hrc-dark .postlink { border-bottom-color: #2d3943; color: #82b6e3; }
html.hrc-dark .postlink:visited { border-bottom-color: #2d3943; color: #92b4d3; }
html.hrc-dark .postlink:hover { background-color: #171f26; color: #badbf7; }
html.hrc-dark .arrow-left:hover, html.hrc-dark .arrow-right:hover { color: #82b6e3; }
html.hrc-dark .wrap { background-color: var(--hrc-wrap); border-color: #2f3741; }
html.hrc-dark .navbar { background-color: #192229; }
html.hrc-dark .panel { background-color: #141c20; color: #cad1dd; }
html.hrc-dark .post:target .content { color: var(--hrc-text-strong); }
html.hrc-dark .post h3 a.first-unread, html.hrc-dark .post:target h3 a { color: var(--hrc-text-strong); }
html.hrc-dark .bg1 { background-color: #131b1f; }
html.hrc-dark table.zebra-list tr:nth-child(2n+1) td, html.hrc-dark ul.zebra-list li:nth-child(2n+1) { background-color: #131b1f; }
html.hrc-dark .bg2 { background-color: #151d23; }
html.hrc-dark table.zebra-list tr:nth-child(2n) td, html.hrc-dark ul.zebra-list li:nth-child(2n) { background-color: #151d23; }
html.hrc-dark .bg3 { background-color: #192229; }
html.hrc-dark .ucprowbg { background-color: #1d1f23; }
html.hrc-dark .fieldsbg { background-color: #1a1c1e; }
html.hrc-dark ul.navlinks { border-top-color: var(--hrc-border); }
html.hrc-dark table.table1 tbody tr { border-color: #303240; }
html.hrc-dark table.table1 tbody tr:hover, html.hrc-dark table.table1 tbody tr.hover { background-color: #171e26; color: var(--hrc-text-strong); }
html.hrc-dark table.table1 td { color: var(--hrc-text-soft); }
html.hrc-dark table.table1 tbody td { border-top-color: var(--hrc-border); }
html.hrc-dark table.table1 tbody th { color: var(--hrc-text); background-color: var(--hrc-panel); }
html.hrc-dark table.info tbody th { color: var(--hrc-text-strong); }
html.hrc-dark dl.details dt { color: var(--hrc-text-strong); }
html.hrc-dark dl.details dd { color: var(--hrc-text-soft); }
html.hrc-dark .sep { color: #7dcef5; }
html.hrc-dark .icon.icon-blue, html.hrc-dark a:hover .icon.icon-blue { color: #92c5f0; }
html.hrc-dark .icon.icon-green, html.hrc-dark a:hover .icon.icon-green { color: #a3efa3; }
html.hrc-dark .icon.icon-red, html.hrc-dark a:hover .icon.icon-red { color: #e68ea3; }
html.hrc-dark .icon.icon-orange, html.hrc-dark a:hover .icon.icon-orange { color: #ffa366; }
html.hrc-dark .icon.icon-bluegray, html.hrc-dark a:hover .icon.icon-bluegray { color: var(--hrc-text-soft); }
html.hrc-dark .icon.icon-gray, html.hrc-dark a:hover .icon.icon-gray { color: #c3c3c3; }
html.hrc-dark .icon.icon-black, html.hrc-dark a:hover .icon.icon-black { color: var(--hrc-text); }
html.hrc-dark .alert_close .icon::before { background-color: var(--hrc-panel); }
html.hrc-dark .jumpbox .dropdown li { border-top-color: var(--hrc-border); }
html.hrc-dark .jumpbox-forum-link { background-color: #151d23; }
html.hrc-dark .jumpbox-forum-link:hover { background-color: var(--hrc-row-hover); }
html.hrc-dark .jumpbox .dropdown .pointer-inner { border-top-color: #2d3a43; border-bottom-color: #2d3a43; }
html.hrc-dark .jumpbox-sub-link { background-color: #151d23; }
html.hrc-dark .jumpbox-sub-link:hover { background-color: #11171d; }
html.hrc-dark .copyright { color: #cbcbcb; }
html.hrc-dark .error { color: #e68ea3; }
html.hrc-dark .reported { background-color: #1f1316; }
html.hrc-dark li.reported:hover { background-color: #271719 !important; }
html.hrc-dark div.rules { background-color: #271719; color: #e68ea3; }
html.hrc-dark p.post-notice { background-color: #271719; }
html.hrc-dark ul.forums { background-color: #121a1f; background-image: linear-gradient(#182128 0%, #121a1f 100%); }
html.hrc-dark ul.topiclist li { color: #bcc5d4; }
html.hrc-dark ul.topiclist dd { border-left-color: var(--hrc-border); }
html.hrc-dark .rtl ul.topiclist dd { border-right-color: var(--hrc-border); }
html.hrc-dark li.row { border-top-color: var(--hrc-border); }
html.hrc-dark li.row strong { color: var(--hrc-text-strong); }
html.hrc-dark li.row:hover { background-color: var(--hrc-row-hover); }
html.hrc-dark li.row:hover dd { border-left-color: var(--hrc-border); }
html.hrc-dark .rtl li.row:hover dd { border-right-color: var(--hrc-border); }
html.hrc-dark .postbody { color: var(--hrc-text); }
html.hrc-dark .content { color: var(--hrc-text); }
html.hrc-dark .content h2, html.hrc-dark .panel h2 { color: #a4caf5; border-bottom-color: var(--hrc-border); }
html.hrc-dark dl.faq dt { color: var(--hrc-text); }
html.hrc-dark .posthilit { background-color: #2a191d; color: #e68ea3; }
html.hrc-dark .signature { border-top-color: var(--hrc-border); }
html.hrc-dark .notice { border-top-color: var(--hrc-border); }
html.hrc-dark blockquote { background-color: #252416; border-color: #414130; }
html.hrc-dark blockquote blockquote { background-color: #252516; }
html.hrc-dark blockquote blockquote blockquote { background-color: #252416; }
html.hrc-dark .codebox { background-color: var(--hrc-panel); border-color: #2f3a41; }
html.hrc-dark .codebox p { border-bottom-color: var(--hrc-border); }
html.hrc-dark .codebox code { color: #ace3c4; }
html.hrc-dark .attachbox { background-color: var(--hrc-panel); border-color: #2f3a41; }
html.hrc-dark .pm-message .attachbox { background-color: #181a1a; }
html.hrc-dark .attachbox dd { border-top-color: #2f3a41; }
html.hrc-dark .attachbox p, html.hrc-dark .attachbox p.stats { color: var(--hrc-muted); }
html.hrc-dark .attach-image img { border-color: var(--hrc-border); }
html.hrc-dark dl.file dd { color: var(--hrc-muted); }
html.hrc-dark dl.thumbnail img { background-color: var(--hrc-panel); }
html.hrc-dark dl.thumbnail dd { color: var(--hrc-muted); }
html.hrc-dark dl.thumbnail dt a:hover { background-color: #1a1a1a; }
html.hrc-dark dl.thumbnail dt a:hover img { border-color: #2d3943; }
html.hrc-dark fieldset.polls dl { border-top-color: #33363d; color: var(--hrc-muted); }
html.hrc-dark fieldset.polls dl.voted { color: var(--hrc-text-strong); }
html.hrc-dark .postprofile { color: var(--hrc-muted); border-color: var(--hrc-border); }
html.hrc-dark .pm .postprofile { border-color: var(--hrc-border); }
html.hrc-dark .postprofile strong { color: var(--hrc-text-strong); }
html.hrc-dark dd.profile-warnings { color: #e68ea3; }
html.hrc-dark .button .icon, html.hrc-dark .button-secondary { color: #bdbdbd; }
html.hrc-dark .button-secondary:focus, html.hrc-dark .button-secondary:hover,
html.hrc-dark .button:focus .icon, html.hrc-dark .button:hover .icon { color: #82d1f9; }
html.hrc-dark .button-search:hover, html.hrc-dark .button-search-end:hover { border-color: #3c3834; }
html.hrc-dark .caret { border-color: #3c3834; }
html.hrc-dark .contact-icons a { border-color: var(--hrc-border); }
html.hrc-dark .contact-icons a:hover { background-color: #12191e; }
html.hrc-dark .pagination li a { background-color: #191b1c; border-color: #33383d; color: #b7c4d0; }
html.hrc-dark .pagination li.ellipsis span { color: var(--hrc-text-strong); }
html.hrc-dark .pagination li.active span { background-color: #304450; border-color: #2d3b43; }
html.hrc-dark .pagination li a:hover, html.hrc-dark .pagination li a:hover .icon,
html.hrc-dark .pagination .dropdown-visible a.dropdown-trigger,
html.hrc-dark .nojs .pagination .dropdown-container:hover a.dropdown-trigger { border-color: #2d3943; }
html.hrc-dark .search-box .inputbox:hover, html.hrc-dark .search-box .inputbox:focus { border-color: #3c3834; }
html.hrc-dark .search-results li:hover, html.hrc-dark .search-results li.active { background-color: #171e26; }
html.hrc-dark .panel-container h3, html.hrc-dark .panel-container hr, html.hrc-dark .cp-menu hr { border-color: #2e3942; }
html.hrc-dark .panel-container .panel li.row { border-bottom-color: #2e3942; border-top-color: var(--hrc-border); }
html.hrc-dark ul.cplist { border-top-color: #2e3942; }
html.hrc-dark .panel-container .panel li.header dd, html.hrc-dark .panel-container .panel li.header dt { color: var(--hrc-text-strong); }
html.hrc-dark .panel-container table.table1 thead th { color: var(--hrc-text); }
html.hrc-dark .cp-main .pm-message { border-color: #32373e; background-color: var(--hrc-panel); }
html.hrc-dark .tabs .tab > a { background-color: #1d2931; color: var(--hrc-text-soft); }
html.hrc-dark .tabs .tab > a:hover { background-color: #141c22; color: var(--hrc-link-hover); }
html.hrc-dark .tabs .activetab > a, html.hrc-dark .tabs .activetab > a:hover {
  background-color: #192229; background-image: linear-gradient(#131a20 0%, #192229 100%);
  border-color: #2d3943; box-shadow: rgba(0,0,0,0.5) 0px 1px 1px inset; color: var(--hrc-text);
}
html.hrc-dark .tabs .activetab > a:hover { color: var(--hrc-text-strong); }
html.hrc-dark .minitabs .tab > a { background-color: #151d23; }
html.hrc-dark .minitabs .activetab > a, html.hrc-dark .minitabs .activetab > a:hover { background-color: #171717; color: var(--hrc-text); }
html.hrc-dark .navigation a { color: var(--hrc-text); background-image: linear-gradient(to right, #202b34 50%, #192229 100%); }
html.hrc-dark .rtl .navigation a { background-image: linear-gradient(to right, #192229 50%, #202b34 100%); }
html.hrc-dark .navigation a:hover { background-color: #242f36; color: var(--hrc-link-hover); }
html.hrc-dark .navigation .active-subsection a { background-color: #171717; color: var(--hrc-link-hover); }
html.hrc-dark .navigation .active-subsection a:hover { color: var(--hrc-link-hover); }
@media only screen and (max-width: 900px), only screen and (max-device-width: 900px) {
  html.hrc-dark #navigation a, html.hrc-dark .rtl #navigation a { background-color: #202b34; }
}
html.hrc-dark .panel-container h2 { color: var(--hrc-text); }
html.hrc-dark .panel-container .panel { background-color: #171717; }
html.hrc-dark .cp-main .pm { background-color: var(--hrc-panel); }
html.hrc-dark .cp-mini { background-color: #121a1f; }
html.hrc-dark dl.mini dt { color: #c0c9d7; }
html.hrc-dark .current { color: var(--hrc-text-strong) !important; }
html.hrc-dark .pmlist li.pm_replied_colour, html.hrc-dark .pm_replied_colour { border-color: #2f3a42; }
html.hrc-dark .pmlist li.pm_friend_colour, html.hrc-dark .pm_friend_colour { border-color: #2d3943; }
html.hrc-dark .gallery label { background-color: var(--hrc-panel); border-color: var(--hrc-border); }
html.hrc-dark .gallery label:hover { background-color: #1a1a1a; }
html.hrc-dark select { background-color: #161616; color: var(--hrc-text-strong); }
html.hrc-dark label { color: #c0c9d7; }
html.hrc-dark dd label { color: var(--hrc-text); }
html.hrc-dark fieldset dl:hover dt label { color: var(--hrc-text-strong); }
html.hrc-dark fieldset.quick-login input.inputbox { background-color: #181a1a; }
html.hrc-dark .message-box textarea { color: var(--hrc-text); }
html.hrc-dark .inputbox::placeholder { color: #8b95a3; }
html.hrc-dark input.button1:focus, html.hrc-dark input.button2:focus, html.hrc-dark input.button3:focus { color: #aed1f6; }
html.hrc-dark input.disabled { color: var(--hrc-muted); }
html.hrc-dark .phpbb_alert { background-color: var(--hrc-panel); border-color: var(--hrc-border); }
html.hrc-dark .dropdown-extended ul li { border-top-color: var(--hrc-border); }
html.hrc-dark .dropdown-extended ul li:hover { background-color: #171e26; color: var(--hrc-text-strong); }
html.hrc-dark .dropdown-extended .header, html.hrc-dark .dropdown-extended .footer { border-color: var(--hrc-border); color: var(--hrc-text-strong); }
html.hrc-dark .dropdown-extended .header { background-color: #11171d; background-image: linear-gradient(#11171d 0%, #192229 100%); }
html.hrc-dark .dropdown .pointer, html.hrc-dark .dropdown .pointer-inner { border-top-color: var(--hrc-border); border-bottom-color: var(--hrc-border); }
html.hrc-dark .dropdown-extended .pointer-inner { border-top-color: #2d3843; border-bottom-color: #2d3843; }
html.hrc-dark .dropdown .dropdown-contents { background-color: var(--hrc-panel); border-color: var(--hrc-border); }
html.hrc-dark .dropdown li, html.hrc-dark .dropdown li li, html.hrc-dark .dropdown li.separator { border-color: var(--hrc-border); }
html.hrc-dark .notification_list p.notification-time { color: #bcc5d4; }
html.hrc-dark li.notification-reported strong, html.hrc-dark li.notification-disapproved strong { color: #f5809d; }

/* ===== from prosilver_se/theme/stylesheet.css ===== */
html.hrc-dark .wrap { border-color: var(--hrc-border); }
html.hrc-dark .navbar { background-color: #1d1f23; }
html.hrc-dark .copyright a { color: var(--hrc-text-strong) !important; }
html.hrc-dark li.row { background-color: #171d20; }
html.hrc-dark li.row:hover { background-color: var(--hrc-row-hover); }
html.hrc-dark li.row.bg3 { background-color: #121b1f; }
html.hrc-dark li.row.bg3:hover { background-color: #11191d; }
html.hrc-dark .jumpbox-sub-link { background-color: #171d20; }
@media only screen and (max-width: 920px), only screen and (max-device-width: 920px) {
  html.hrc-dark, html.hrc-dark body { background-color: var(--hrc-panel); }
}
html.hrc-dark .hrc-submenu { background-color: #141a1e; border-color: var(--hrc-border); }
html.hrc-dark #site-description .dropdown-contents a,
html.hrc-dark #site-description .dropdown-contents span { color: var(--hrc-text-soft) !important; }
html.hrc-dark #site-description .dropdown-contents a:hover { color: var(--hrc-text) !important; }
html.hrc-dark h1.topic-title, html.hrc-dark h1.forum-title { color: #cad1dd; }
html.hrc-dark .hrc-gallery-menu .dropdown .dropdown-contents,
html.hrc-dark .hrc-gallery-menu .hrc-submenu { background-color: #393f44; }
html.hrc-dark .hrc-gallery-menu .dropdown-contents a:hover { background-color: rgba(20,20,20,0.15); }
html.hrc-dark .hrc-gallery-menu .dropdown .pointer,
html.hrc-dark .hrc-gallery-menu .dropdown .pointer-inner { border-top-color: #33393d; border-bottom-color: #33393d; }

/* ===== from simplespoiler colors.min.css ===== */
html.hrc-dark details.spoiler { background-color: var(--hrc-panel); }
html.hrc-dark details.spoiler, html.hrc-dark .spoiler-header { border-color: var(--hrc-border); }
html.hrc-dark .spoiler-header { background-color: #191919; color: var(--hrc-text); }
html.hrc-dark details.spoiler[open] > .spoiler-header > .spoiler-status { background-color: #2e4d2e; }

/* ===== from mchat.css ===== */
html.hrc-dark .mchat-input-control button:hover .icon { color: #7dcef5; }
html.hrc-dark #mchat-exceed-character-count { color: #ff6666; }

/* ===== from the portal covers grid and gallery categories blocks ===== */
html.hrc-dark .hrc-lc-grid { background-color: #1f2328; border-top-color: #32383f; }
html.hrc-dark .hrc-lc-item { background-color: #17191b; }
html.hrc-dark .hrc-lc-thumb img { border-color: #31383f; }
html.hrc-dark .hrc-lc-disc::after { background-color: #17191b; box-shadow: rgba(0,0,0,0.45) 0px 0px 0px 4px; }
html.hrc-dark .hrc-lc-title { color: var(--hrc-text-strong); }
html.hrc-dark.hrc-nocases .hrc-lc-thumb .hrc-lc-case img { border-color: #31383f; }
html.hrc-dark .hrc-gc-quick { border-bottom-color: #32383f; }
html.hrc-dark .hrc-gc-group > .hrc-gc-label { color: var(--hrc-link); }
html.hrc-dark .hrc-gc-group > .hrc-gc-label .hrc-gc-arrow { color: #b3bac3; }
html.hrc-dark .hrc-gc-group:hover > .hrc-gc-label,
html.hrc-dark .hrc-gc-group:focus-within > .hrc-gc-label { background-color: #181e23; }
html.hrc-dark .hrc-gc-sub { background-color: #17191b; border-color: #31383f; }
html.hrc-dark .hrc-gc-sub li a:hover { background-color: #181e23; }


/* ===== HRC adjustments (hand-picked) ===== */
html.hrc-dark .headerbar {
  background-color: var(--hrc-header-bot);
  background-image: linear-gradient(var(--hrc-header-top) 0%, var(--hrc-header-mid) 50%, var(--hrc-header-bot) 100%);
}
html.hrc-dark .forabg,
html.hrc-dark .forumbg,
html.hrc-dark .jumpbox-cat-link {
  background-color: var(--hrc-frame-bot);
  background-image: linear-gradient(var(--hrc-frame-top) 0%, var(--hrc-frame-mid) 40px, var(--hrc-frame-bot) 100%);
}
html.hrc-dark ul.topiclist.forums {
  background-color: #151a20;
  background-image: linear-gradient(#1b2229 0%, #151a20 100%);
}
html.hrc-dark .hrc-lc-type,
html.hrc-dark .hrc-lc-date {
  color: var(--hrc-caption);
}
html.hrc-dark .inputbox,
html.hrc-dark .search-box .inputbox,
html.hrc-dark #site-description input[type="search"],
html.hrc-dark #site-description input[type="text"] {
  background-color: var(--hrc-input-bg) !important;
  color: var(--hrc-text) !important;
  border-color: #3f4850 !important;
}
html.hrc-dark .button,
html.hrc-dark a.button1, html.hrc-dark input.button1,
html.hrc-dark a.button2, html.hrc-dark input.button2, html.hrc-dark input.button3 {
  background-color: #20272e;
  background-image: linear-gradient(#2a323b 0%, #20272e 100%);
  border-color: #3a434d;
  box-shadow: none;
  color: var(--hrc-text-strong);
}
html.hrc-dark .button:hover,
html.hrc-dark .button:focus {
  background-image: linear-gradient(#323b45 0%, #262e36 100%);
  text-shadow: none;
}
html.hrc-dark .button:hover, html.hrc-dark a.button1:hover, html.hrc-dark input.button1:hover,
html.hrc-dark a.button2:hover, html.hrc-dark input.button2:hover, html.hrc-dark input.button3:hover {
  color: var(--hrc-link-hover);
}

/* Dark text colours written inline in Board3 custom blocks (e.g. Donator) */
html.hrc-dark .portal-module-content [style*="#2C2C30" i],
html.hrc-dark .portal-module-content [style*="color:#333" i],
html.hrc-dark .portal-module-content [style*="color: #333" i] {
  color: var(--hrc-text) !important;
}

/* Group colours that are too dark to read on the dark background.
   The light theme keeps the original colours. */
html.hrc-dark [style*="color: #800080" i], html.hrc-dark [style*="color:#800080" i] { color: #d58ff0 !important; }
html.hrc-dark [style*="color: #8b0000" i], html.hrc-dark [style*="color:#8b0000" i] { color: #ff7b7b !important; }
html.hrc-dark [style*="color: #4a89b1" i], html.hrc-dark [style*="color:#4a89b1" i] { color: #82bce3 !important; }

/* Bright colours used for alerts and groups that need lifting on dark */
html.hrc-dark [style*="color: #0000ff" i], html.hrc-dark [style*="color:#0000ff" i] { color: #8fa8ff !important; }
html.hrc-dark [style*="color:#c00" i], html.hrc-dark [style*="color: #c00" i],
html.hrc-dark [style*="color:#cc0000" i], html.hrc-dark [style*="color: #cc0000" i] { color: #ff6b6b !important; }

/* Framed blocks (chatbox, competition winners, cover of the week, search) stay see-through */
html.hrc-dark iframe { color-scheme: dark; }

/* Light "alert" boxes written inline (error / success / warning / info) */
html.hrc-dark [style*="#f8d7da" i] { background-color: #3a1d21 !important; border-color: #5c2a31 !important; }
html.hrc-dark [style*="#721c24" i] { color: #ffb3ba !important; }
html.hrc-dark [style*="#d4edda" i] { background-color: #183022 !important; border-color: #24482f !important; }
html.hrc-dark [style*="#155724" i] { color: #a8e6b8 !important; }
html.hrc-dark [style*="#fff3cd" i] { background-color: #352c14 !important; border-color: #54451c !important; }
html.hrc-dark [style*="#856404" i] { color: #f3d27a !important; }
html.hrc-dark [style*="#d1ecf1" i] { background-color: #15303a !important; border-color: #1f4855 !important; }
html.hrc-dark [style*="#0c5460" i] { color: #9fd8e6 !important; }
html.hrc-dark [style*="color:#666" i], html.hrc-dark [style*="color: #666" i] { color: #9aa4b2 !important; }

/* ===== Light backgrounds and dark text written inline in custom pages
   (competition admin, Hall of Fame, etc). Matches exact values only. ===== */
html.hrc-dark [style*="background:#fff;" i],
html.hrc-dark [style$="background:#fff" i],
html.hrc-dark [style*="background: #fff;" i],
html.hrc-dark [style$="background: #fff" i],
html.hrc-dark [style*="background-color:#fff;" i],
html.hrc-dark [style$="background-color:#fff" i],
html.hrc-dark [style*="background-color: #fff;" i],
html.hrc-dark [style$="background-color: #fff" i] { background: #171c21 !important; }
html.hrc-dark [style*="background:#ffffff;" i],
html.hrc-dark [style$="background:#ffffff" i],
html.hrc-dark [style*="background: #ffffff;" i],
html.hrc-dark [style$="background: #ffffff" i],
html.hrc-dark [style*="background-color:#ffffff;" i],
html.hrc-dark [style$="background-color:#ffffff" i],
html.hrc-dark [style*="background-color: #ffffff;" i],
html.hrc-dark [style$="background-color: #ffffff" i] { background: #171c21 !important; }
html.hrc-dark [style*="background:#fafafa;" i],
html.hrc-dark [style$="background:#fafafa" i],
html.hrc-dark [style*="background: #fafafa;" i],
html.hrc-dark [style$="background: #fafafa" i],
html.hrc-dark [style*="background-color:#fafafa;" i],
html.hrc-dark [style$="background-color:#fafafa" i],
html.hrc-dark [style*="background-color: #fafafa;" i],
html.hrc-dark [style$="background-color: #fafafa" i] { background: #191e23 !important; }
html.hrc-dark [style*="background:#f9f9f9;" i],
html.hrc-dark [style$="background:#f9f9f9" i],
html.hrc-dark [style*="background: #f9f9f9;" i],
html.hrc-dark [style$="background: #f9f9f9" i],
html.hrc-dark [style*="background-color:#f9f9f9;" i],
html.hrc-dark [style$="background-color:#f9f9f9" i],
html.hrc-dark [style*="background-color: #f9f9f9;" i],
html.hrc-dark [style$="background-color: #f9f9f9" i] { background: #191e23 !important; }
html.hrc-dark [style*="background:#f8f9fa;" i],
html.hrc-dark [style$="background:#f8f9fa" i],
html.hrc-dark [style*="background: #f8f9fa;" i],
html.hrc-dark [style$="background: #f8f9fa" i],
html.hrc-dark [style*="background-color:#f8f9fa;" i],
html.hrc-dark [style$="background-color:#f8f9fa" i],
html.hrc-dark [style*="background-color: #f8f9fa;" i],
html.hrc-dark [style$="background-color: #f8f9fa" i] { background: #1a1f25 !important; }
html.hrc-dark [style*="background:#f5f5f5;" i],
html.hrc-dark [style$="background:#f5f5f5" i],
html.hrc-dark [style*="background: #f5f5f5;" i],
html.hrc-dark [style$="background: #f5f5f5" i],
html.hrc-dark [style*="background-color:#f5f5f5;" i],
html.hrc-dark [style$="background-color:#f5f5f5" i],
html.hrc-dark [style*="background-color: #f5f5f5;" i],
html.hrc-dark [style$="background-color: #f5f5f5" i] { background: #1b2026 !important; }
html.hrc-dark [style*="background:#f4f4f4;" i],
html.hrc-dark [style$="background:#f4f4f4" i],
html.hrc-dark [style*="background: #f4f4f4;" i],
html.hrc-dark [style$="background: #f4f4f4" i],
html.hrc-dark [style*="background-color:#f4f4f4;" i],
html.hrc-dark [style$="background-color:#f4f4f4" i],
html.hrc-dark [style*="background-color: #f4f4f4;" i],
html.hrc-dark [style$="background-color: #f4f4f4" i] { background: #1b2026 !important; }
html.hrc-dark [style*="background:#f0f4f8;" i],
html.hrc-dark [style$="background:#f0f4f8" i],
html.hrc-dark [style*="background: #f0f4f8;" i],
html.hrc-dark [style$="background: #f0f4f8" i],
html.hrc-dark [style*="background-color:#f0f4f8;" i],
html.hrc-dark [style$="background-color:#f0f4f8" i],
html.hrc-dark [style*="background-color: #f0f4f8;" i],
html.hrc-dark [style$="background-color: #f0f4f8" i] { background: #1c232b !important; }
html.hrc-dark [style*="background:#f0f0f0;" i],
html.hrc-dark [style$="background:#f0f0f0" i],
html.hrc-dark [style*="background: #f0f0f0;" i],
html.hrc-dark [style$="background: #f0f0f0" i],
html.hrc-dark [style*="background-color:#f0f0f0;" i],
html.hrc-dark [style$="background-color:#f0f0f0" i],
html.hrc-dark [style*="background-color: #f0f0f0;" i],
html.hrc-dark [style$="background-color: #f0f0f0" i] { background: #1d2227 !important; }
html.hrc-dark [style*="background:#eee;" i],
html.hrc-dark [style$="background:#eee" i],
html.hrc-dark [style*="background: #eee;" i],
html.hrc-dark [style$="background: #eee" i],
html.hrc-dark [style*="background-color:#eee;" i],
html.hrc-dark [style$="background-color:#eee" i],
html.hrc-dark [style*="background-color: #eee;" i],
html.hrc-dark [style$="background-color: #eee" i] { background: #20262c !important; }
html.hrc-dark [style*="background:#eeeeee;" i],
html.hrc-dark [style$="background:#eeeeee" i],
html.hrc-dark [style*="background: #eeeeee;" i],
html.hrc-dark [style$="background: #eeeeee" i],
html.hrc-dark [style*="background-color:#eeeeee;" i],
html.hrc-dark [style$="background-color:#eeeeee" i],
html.hrc-dark [style*="background-color: #eeeeee;" i],
html.hrc-dark [style$="background-color: #eeeeee" i] { background: #20262c !important; }
html.hrc-dark [style*="background:#eef2f6;" i],
html.hrc-dark [style$="background:#eef2f6" i],
html.hrc-dark [style*="background: #eef2f6;" i],
html.hrc-dark [style$="background: #eef2f6" i],
html.hrc-dark [style*="background-color:#eef2f6;" i],
html.hrc-dark [style$="background-color:#eef2f6" i],
html.hrc-dark [style*="background-color: #eef2f6;" i],
html.hrc-dark [style$="background-color: #eef2f6" i] { background: #1e252c !important; }
html.hrc-dark [style*="background:#e8e8e8;" i],
html.hrc-dark [style$="background:#e8e8e8" i],
html.hrc-dark [style*="background: #e8e8e8;" i],
html.hrc-dark [style$="background: #e8e8e8" i],
html.hrc-dark [style*="background-color:#e8e8e8;" i],
html.hrc-dark [style$="background-color:#e8e8e8" i],
html.hrc-dark [style*="background-color: #e8e8e8;" i],
html.hrc-dark [style$="background-color: #e8e8e8" i] { background: #22282e !important; }
html.hrc-dark [style*="background:#e9ecef;" i],
html.hrc-dark [style$="background:#e9ecef" i],
html.hrc-dark [style*="background: #e9ecef;" i],
html.hrc-dark [style$="background: #e9ecef" i],
html.hrc-dark [style*="background-color:#e9ecef;" i],
html.hrc-dark [style$="background-color:#e9ecef" i],
html.hrc-dark [style*="background-color: #e9ecef;" i],
html.hrc-dark [style$="background-color: #e9ecef" i] { background: #22282e !important; }
html.hrc-dark [style*="background:#e5e5e5;" i],
html.hrc-dark [style$="background:#e5e5e5" i],
html.hrc-dark [style*="background: #e5e5e5;" i],
html.hrc-dark [style$="background: #e5e5e5" i],
html.hrc-dark [style*="background-color:#e5e5e5;" i],
html.hrc-dark [style$="background-color:#e5e5e5" i],
html.hrc-dark [style*="background-color: #e5e5e5;" i],
html.hrc-dark [style$="background-color: #e5e5e5" i] { background: #242a30 !important; }
html.hrc-dark [style*="background:#ddd;" i],
html.hrc-dark [style$="background:#ddd" i],
html.hrc-dark [style*="background: #ddd;" i],
html.hrc-dark [style$="background: #ddd" i],
html.hrc-dark [style*="background-color:#ddd;" i],
html.hrc-dark [style$="background-color:#ddd" i],
html.hrc-dark [style*="background-color: #ddd;" i],
html.hrc-dark [style$="background-color: #ddd" i] { background: #272d33 !important; }
html.hrc-dark [style*="color:#1a3a5c;" i],
html.hrc-dark [style$="color:#1a3a5c" i],
html.hrc-dark [style*="color: #1a3a5c;" i],
html.hrc-dark [style$="color: #1a3a5c" i] { color: #c8dbef !important; }
html.hrc-dark [style*="color:#2a5a8a;" i],
html.hrc-dark [style$="color:#2a5a8a" i],
html.hrc-dark [style*="color: #2a5a8a;" i],
html.hrc-dark [style$="color: #2a5a8a" i] { color: #82bce3 !important; }
html.hrc-dark [style*="color:#5c7082;" i],
html.hrc-dark [style$="color:#5c7082" i],
html.hrc-dark [style*="color: #5c7082;" i],
html.hrc-dark [style$="color: #5c7082" i] { color: #9aa4b2 !important; }
html.hrc-dark [style*="color:#42576a;" i],
html.hrc-dark [style$="color:#42576a" i],
html.hrc-dark [style*="color: #42576a;" i],
html.hrc-dark [style$="color: #42576a" i] { color: #9aa4b2 !important; }
html.hrc-dark [style*="color:#333;" i],
html.hrc-dark [style$="color:#333" i],
html.hrc-dark [style*="color: #333;" i],
html.hrc-dark [style$="color: #333" i] { color: #e0e0e0 !important; }
html.hrc-dark [style*="color:#333333;" i],
html.hrc-dark [style$="color:#333333" i],
html.hrc-dark [style*="color: #333333;" i],
html.hrc-dark [style$="color: #333333" i] { color: #e0e0e0 !important; }
html.hrc-dark [style*="color:#222;" i],
html.hrc-dark [style$="color:#222" i],
html.hrc-dark [style*="color: #222;" i],
html.hrc-dark [style$="color: #222" i] { color: #e0e0e0 !important; }
html.hrc-dark [style*="color:#000;" i],
html.hrc-dark [style$="color:#000" i],
html.hrc-dark [style*="color: #000;" i],
html.hrc-dark [style$="color: #000" i] { color: #e0e0e0 !important; }
html.hrc-dark [style*="color:#000000;" i],
html.hrc-dark [style$="color:#000000" i],
html.hrc-dark [style*="color: #000000;" i],
html.hrc-dark [style$="color: #000000" i] { color: #e0e0e0 !important; }
html.hrc-dark [style*="color:#444;" i],
html.hrc-dark [style$="color:#444" i],
html.hrc-dark [style*="color: #444;" i],
html.hrc-dark [style$="color: #444" i] { color: #c3c9d0 !important; }
html.hrc-dark [style*="color:#555;" i],
html.hrc-dark [style$="color:#555" i],
html.hrc-dark [style*="color: #555;" i],
html.hrc-dark [style$="color: #555" i] { color: #b4bcc5 !important; }
html.hrc-dark [style*="color:#666;" i],
html.hrc-dark [style$="color:#666" i],
html.hrc-dark [style*="color: #666;" i],
html.hrc-dark [style$="color: #666" i] { color: #9aa4b2 !important; }
html.hrc-dark [style*="solid #ddd" i], html.hrc-dark [style*="solid #e0e0e0" i], html.hrc-dark [style*="solid #eee" i], html.hrc-dark [style*="solid #ccc" i] { border-color: #2e3842 !important; }

/* more near-white backgrounds written inline */
html.hrc-dark [style*="background:#f7f7f7;" i],
html.hrc-dark [style*="background: #f7f7f7;" i],
html.hrc-dark [style$="background:#f7f7f7" i],
html.hrc-dark [style$="background: #f7f7f7" i],
html.hrc-dark [style*="background-color:#f7f7f7;" i],
html.hrc-dark [style*="background-color: #f7f7f7;" i],
html.hrc-dark [style$="background-color:#f7f7f7" i],
html.hrc-dark [style$="background-color: #f7f7f7" i] { background: #1a1f24 !important; }
html.hrc-dark [style*="background:#f8f8f8;" i],
html.hrc-dark [style*="background: #f8f8f8;" i],
html.hrc-dark [style$="background:#f8f8f8" i],
html.hrc-dark [style$="background: #f8f8f8" i],
html.hrc-dark [style*="background-color:#f8f8f8;" i],
html.hrc-dark [style*="background-color: #f8f8f8;" i],
html.hrc-dark [style$="background-color:#f8f8f8" i],
html.hrc-dark [style$="background-color: #f8f8f8" i] { background: #1a1f24 !important; }
html.hrc-dark [style*="background:#f6f6f6;" i],
html.hrc-dark [style*="background: #f6f6f6;" i],
html.hrc-dark [style$="background:#f6f6f6" i],
html.hrc-dark [style$="background: #f6f6f6" i],
html.hrc-dark [style*="background-color:#f6f6f6;" i],
html.hrc-dark [style*="background-color: #f6f6f6;" i],
html.hrc-dark [style$="background-color:#f6f6f6" i],
html.hrc-dark [style$="background-color: #f6f6f6" i] { background: #1a1f24 !important; }
html.hrc-dark [style*="background:#f2f2f2;" i],
html.hrc-dark [style*="background: #f2f2f2;" i],
html.hrc-dark [style$="background:#f2f2f2" i],
html.hrc-dark [style$="background: #f2f2f2" i],
html.hrc-dark [style*="background-color:#f2f2f2;" i],
html.hrc-dark [style*="background-color: #f2f2f2;" i],
html.hrc-dark [style$="background-color:#f2f2f2" i],
html.hrc-dark [style$="background-color: #f2f2f2" i] { background: #1c2126 !important; }
html.hrc-dark [style*="background:#fcfcfc;" i],
html.hrc-dark [style*="background: #fcfcfc;" i],
html.hrc-dark [style$="background:#fcfcfc" i],
html.hrc-dark [style$="background: #fcfcfc" i],
html.hrc-dark [style*="background-color:#fcfcfc;" i],
html.hrc-dark [style*="background-color: #fcfcfc;" i],
html.hrc-dark [style$="background-color:#fcfcfc" i],
html.hrc-dark [style$="background-color: #fcfcfc" i] { background: #181d22 !important; }
html.hrc-dark [style*="background:#fdfdfd;" i],
html.hrc-dark [style*="background: #fdfdfd;" i],
html.hrc-dark [style$="background:#fdfdfd" i],
html.hrc-dark [style$="background: #fdfdfd" i],
html.hrc-dark [style*="background-color:#fdfdfd;" i],
html.hrc-dark [style*="background-color: #fdfdfd;" i],
html.hrc-dark [style$="background-color:#fdfdfd" i],
html.hrc-dark [style$="background-color: #fdfdfd" i] { background: #181d22 !important; }
html.hrc-dark [style*="background:#f0f4f7;" i],
html.hrc-dark [style*="background: #f0f4f7;" i],
html.hrc-dark [style$="background:#f0f4f7" i],
html.hrc-dark [style$="background: #f0f4f7" i],
html.hrc-dark [style*="background-color:#f0f4f7;" i],
html.hrc-dark [style*="background-color: #f0f4f7;" i],
html.hrc-dark [style$="background-color:#f0f4f7" i],
html.hrc-dark [style$="background-color: #f0f4f7" i] { background: #1c232b !important; }
html.hrc-dark [style*="background:#ecf3f7;" i],
html.hrc-dark [style*="background: #ecf3f7;" i],
html.hrc-dark [style$="background:#ecf3f7" i],
html.hrc-dark [style$="background: #ecf3f7" i],
html.hrc-dark [style*="background-color:#ecf3f7;" i],
html.hrc-dark [style*="background-color: #ecf3f7;" i],
html.hrc-dark [style$="background-color:#ecf3f7" i],
html.hrc-dark [style$="background-color: #ecf3f7" i] { background: #1c232b !important; }
html.hrc-dark [style*="background:#f3f3f3;" i],
html.hrc-dark [style*="background: #f3f3f3;" i],
html.hrc-dark [style$="background:#f3f3f3" i],
html.hrc-dark [style$="background: #f3f3f3" i],
html.hrc-dark [style*="background-color:#f3f3f3;" i],
html.hrc-dark [style*="background-color: #f3f3f3;" i],
html.hrc-dark [style$="background-color:#f3f3f3" i],
html.hrc-dark [style$="background-color: #f3f3f3" i] { background: #1c2126 !important; }
html.hrc-dark [style*="background:#efefef;" i],
html.hrc-dark [style*="background: #efefef;" i],
html.hrc-dark [style$="background:#efefef" i],
html.hrc-dark [style$="background: #efefef" i],
html.hrc-dark [style*="background-color:#efefef;" i],
html.hrc-dark [style*="background-color: #efefef;" i],
html.hrc-dark [style$="background-color:#efefef" i],
html.hrc-dark [style$="background-color: #efefef" i] { background: #1d2227 !important; }
