/* Fixed dark presentation for LammerOnline.
 * All primary colours live here so contrast corrections do not require
 * editing dozens of selectors. !important is reserved for phpBB rules that
 * already use gradients or direct colours in the base style. */
html.itportal-theme-dark { --it-bg:#081426; --it-surface:#10263a; --it-nav:#0b172a; --it-panel:#183852; --it-panel-hover:#204965; --it-border:#284964; --it-text:#e8f1f8; --it-muted:#b9d9ee; --it-accent:#32d4c4; --it-button:#f8fbfd; --it-button-text:#145a78; background:var(--it-bg); }
html.itportal-theme-dark body { background:var(--it-bg) !important; color:var(--it-text); }
html.itportal-theme-dark #wrap, html.itportal-theme-dark .forabg, html.itportal-theme-dark .forumbg, html.itportal-theme-dark .panel, html.itportal-theme-dark .post, html.itportal-theme-dark .row, html.itportal-theme-dark .bg1, html.itportal-theme-dark .bg2, html.itportal-theme-dark .bg3, html.itportal-theme-dark .topiclist li, html.itportal-theme-dark .postbody, html.itportal-theme-dark .content, html.itportal-theme-dark .fieldsbg { background:var(--it-surface) !important; border-color:var(--it-border) !important; color:var(--it-text) !important; }
html.itportal-theme-dark .headerbar, html.itportal-theme-dark #page-header .navbar #nav-main, html.itportal-theme-dark .forabg .header, html.itportal-theme-dark .forumbg .header { background:var(--it-nav) !important; }
html.itportal-theme-dark #page-header .navbar, html.itportal-theme-dark #page-header #nav-breadcrumbs, html.itportal-theme-dark #page-header .breadcrumbs { background:var(--it-nav) !important; color:var(--it-muted) !important; } html.itportal-theme-dark #page-header .breadcrumbs a { color:var(--it-accent) !important; }
html.itportal-theme-dark #page-footer .navbar { background:#0b172a !important; border-color:#284964 !important; } html.itportal-theme-dark #page-footer .navbar a, html.itportal-theme-dark #page-footer .copyright, html.itportal-theme-dark #page-footer .copyright a { color:#b9d9ee !important; }
html.itportal-theme-dark .navbar #nav-main .dropdown .dropdown-contents, html.itportal-theme-dark .dropdown .dropdown-contents { background:#10263a !important; border-color:#284964 !important; box-shadow:0 12px 30px rgba(0,0,0,.35); }
html.itportal-theme-dark .dropdown .pointer { border-color:#284964 transparent !important; } html.itportal-theme-dark .dropdown .pointer-inner { border-color:#10263a transparent !important; }
html.itportal-theme-dark .dropdown li, html.itportal-theme-dark .dropdown li li, html.itportal-theme-dark .dropdown li.separator { border-color:#284964 !important; }
html.itportal-theme-dark .navbar #nav-main .dropdown .dropdown-contents a:not(.username-coloured), html.itportal-theme-dark .dropdown-contents a:not(.username-coloured) { color:#dcecf8 !important; } html.itportal-theme-dark .navbar #nav-main .dropdown .dropdown-contents a:not(.username-coloured):hover, html.itportal-theme-dark .dropdown-contents a:not(.username-coloured):hover { background:#183852 !important; color:#32d4c4 !important; }
/* Do not let the general dropdown rule erase the semantic colours of
   privileged account actions. */
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-admin > a,
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-admin > a .icon { color:#ff8188 !important; }
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-admin > a:hover { color:#ffb1b5 !important; background:#3a202a !important; }
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-admin > a:hover .icon { color:#ffb1b5 !important; }
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-moderator > a,
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-moderator > a .icon { color:#78dca4 !important; }
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-moderator > a:hover { color:#a1efc3 !important; background:#17382c !important; }
html.itportal-theme-dark .navbar #nav-main .header-profile .dropdown-contents > li.itportal-profile-moderator > a:hover .icon { color:#a1efc3 !important; }
/* phpBB renders the online-group legend with an inline group colour rather
   than the username-coloured class. Do not replace those meaningful colours. */
html.itportal-theme-dark a:not(.username-coloured):not([style*="color"]), html.itportal-theme-dark .forumtitle, html.itportal-theme-dark .topictitle, html.itportal-theme-dark .postlink { color:var(--it-accent) !important; }
/* Group-coloured usernames use phpBB's own inline/group colour. Never force
   them into the general link colour in either presentation mode. */
html.itportal-theme-dark .username-coloured { text-shadow:0 1px 1px rgba(0,0,0,.35); }
html.itportal-theme-dark .button, html.itportal-theme-dark .button1, html.itportal-theme-dark .button2, html.itportal-theme-dark input.button1, html.itportal-theme-dark input.button2 { background:var(--it-button) !important; border-color:#c7d8e5 !important; color:var(--it-button-text) !important; }
html.itportal-theme-dark .button .icon, html.itportal-theme-dark .button1 .icon, html.itportal-theme-dark .button2 .icon { color:var(--it-button-text) !important; }
html.itportal-theme-dark .button:hover, html.itportal-theme-dark .button:focus, html.itportal-theme-dark .button1:hover, html.itportal-theme-dark .button1:focus, html.itportal-theme-dark .button2:hover, html.itportal-theme-dark .button2:focus, html.itportal-theme-dark input.button1:hover, html.itportal-theme-dark input.button2:hover { background:#eafaf8 !important; border-color:#2dbcae !important; color:#087c75 !important; }
html.itportal-theme-dark h1, html.itportal-theme-dark h2, html.itportal-theme-dark h3, html.itportal-theme-dark h3 a, html.itportal-theme-dark h4, html.itportal-theme-dark h5, html.itportal-theme-dark h6, html.itportal-theme-dark .postprofile, html.itportal-theme-dark .postprofile dt, html.itportal-theme-dark .postprofile dd, html.itportal-theme-dark .postprofile strong { color:var(--it-text) !important; }
html.itportal-theme-dark .time, html.itportal-theme-dark .lastpost, html.itportal-theme-dark .statistics { color:#a8bdcc !important; }
/* Base prosilver rules set these pieces of ordinary interface text to black
   or dark grey. Keep this list explicit: it fixes contrast without touching
   inline group colours on usernames or the deliberately light form fields. */
html.itportal-theme-dark table.table1 td,
html.itportal-theme-dark table.table1 tbody th,
html.itportal-theme-dark table.info tbody th,
html.itportal-theme-dark dl.details dt,
html.itportal-theme-dark dl.details dd,
html.itportal-theme-dark ul.topiclist li,
html.itportal-theme-dark li.row strong,
html.itportal-theme-dark .post:target .content,
html.itportal-theme-dark fieldset.polls dl.voted,
html.itportal-theme-dark .pagination li.ellipsis span,
html.itportal-theme-dark .panel-container h2,
html.itportal-theme-dark dl.mini dt,
html.itportal-theme-dark .current { color:#e8f1f8 !important; }
html.itportal-theme-dark .panel p,
html.itportal-theme-dark .panel li,
html.itportal-theme-dark .panel dd,
html.itportal-theme-dark .panel dt,
html.itportal-theme-dark .postbody,
html.itportal-theme-dark .content { color:#e8f1f8; }
html.itportal-theme-dark label,
html.itportal-theme-dark fieldset dl:hover dt label { color:#b9d9ee !important; }
html.itportal-theme-dark .dropdown-extended .header,
html.itportal-theme-dark .dropdown-extended .footer { color:#e8f1f8 !important; border-color:#284964 !important; }
html.itportal-theme-dark .dropdown-extended ul li:hover { background:#183852 !important; color:#e8f1f8 !important; }
/* phpBB's base palette assigns FAQ headings a dark grey intended for a white
   surface. Keep the section headings and answer text readable on dark cards. */
html.itportal-theme-dark #faqlinks dl.faq dt, html.itportal-theme-dark #faqlinks dl.faq dt strong, html.itportal-theme-dark .faq-title, html.itportal-theme-dark .content dl.faq dt, html.itportal-theme-dark .content dl.faq dt strong { color:#e8f1f8 !important; }
html.itportal-theme-dark #faqlinks dl.faq dd, html.itportal-theme-dark .content dl.faq dd { color:#cfe0eb !important; }
html.itportal-theme-dark #faqlinks dl.faq dd a, html.itportal-theme-dark .content dl.faq dd a { color:#48ded0 !important; }
html.itportal-theme-dark #faqlinks dl.faq dd a:hover, html.itportal-theme-dark .content dl.faq dd a:hover { color:#b0fff5 !important; }
html.itportal-theme-dark ul.topiclist li.row dd { border-left-color:#284964 !important; }
html.itportal-theme-dark .tabs .tab > a, html.itportal-theme-dark .minitabs .tab > a { background:#183852 !important; border-color:#284964 !important; color:#b9d9ee !important; box-shadow:none !important; }
html.itportal-theme-dark .tabs .tab > a:hover, html.itportal-theme-dark .minitabs .tab > a:hover { background:#204965 !important; color:#32d4c4 !important; }
html.itportal-theme-dark .tabs .activetab > a, html.itportal-theme-dark .tabs .activetab > a:hover, html.itportal-theme-dark .minitabs .activetab > a, html.itportal-theme-dark .minitabs .activetab > a:hover { background:#10263a !important; border-color:#284964 !important; color:#e8f1f8 !important; }
html.itportal-theme-dark #tabs .tab > a { background:#183852 !important; border-color:#284964 !important; color:#b9d9ee !important; box-shadow:none !important; }
html.itportal-theme-dark #tabs .tab > a:hover { background:#204965 !important; color:#32d4c4 !important; }
html.itportal-theme-dark #tabs .activetab > a, html.itportal-theme-dark #tabs .activetab > a:hover { background:#10263a !important; border-color:#284964 !important; color:#e8f1f8 !important; }
html.itportal-theme-dark .navigation a, html.itportal-theme-dark .rtl .navigation a { background:#183852 !important; color:#b9d9ee !important; filter:none !important; }
html.itportal-theme-dark .navigation a:hover, html.itportal-theme-dark .navigation .active-subsection a, html.itportal-theme-dark .navigation .active-subsection a:hover { background:#10263a !important; color:#32d4c4 !important; }
html.itportal-theme-dark .panel-container .panel, html.itportal-theme-dark .cp-main .pm, html.itportal-theme-dark .cp-main .pm-message { background:#10263a !important; border-color:#284964 !important; }
/* Personal-message list: the base phpBB palette uses black column captions
   and a pale legend card, both intended for the light scheme. */
html.itportal-theme-dark .panel-container .panel li.header dt,
html.itportal-theme-dark .panel-container .panel li.header dd,
html.itportal-theme-dark .panel-container table.table1 thead th { color:#e8f1f8 !important; border-color:#52728b !important; }
html.itportal-theme-dark .cp-mini { background:#10263a !important; border-color:#284964 !important; }
html.itportal-theme-dark .cp-mini .inner { background:transparent !important; }
html.itportal-theme-dark .cp-mini .mini dt { color:#e8f1f8 !important; }
html.itportal-theme-dark .cp-mini .mini dd { color:#cfe0eb !important; }
html.itportal-theme-dark .cp-main label, html.itportal-theme-dark .panel-container label, html.itportal-theme-dark fieldset dl dt label, html.itportal-theme-dark dd label { color:#b9d9ee !important; }
html.itportal-theme-dark fieldset dl:hover dt label { color:#e8f1f8 !important; }
html.itportal-theme-dark #options-panel, html.itportal-theme-dark #poll-panel, html.itportal-theme-dark #attach-panel { color:#b9d9ee !important; }
html.itportal-theme-dark #options-panel label, html.itportal-theme-dark #poll-panel label, html.itportal-theme-dark #attach-panel label, html.itportal-theme-dark #options-panel dt, html.itportal-theme-dark #poll-panel dt, html.itportal-theme-dark #attach-panel dt { color:#b9d9ee !important; }
/* Public member profile: phpBB assigns black/grey colours directly to the
   definition list, so it needs a separate dark-mode treatment. */
html.itportal-theme-dark #viewprofile dl.details dt, html.itportal-theme-dark .profile-details dt { color:#b9d9ee !important; }
html.itportal-theme-dark #viewprofile dl.details dd, html.itportal-theme-dark .profile-details dd { color:#e8f1f8 !important; }
html.itportal-theme-dark #viewprofile .column1, html.itportal-theme-dark #viewprofile .column2, html.itportal-theme-dark #viewprofile .details { color:#e8f1f8 !important; }
/* Search-result author card retains a light phpBB gradient unless it is
   explicitly overridden. */
html.itportal-theme-dark .postprofile, html.itportal-theme-dark .search .postprofile { background:#10263a !important; border-color:#284964 !important; color:#e8f1f8 !important; }
html.itportal-theme-dark .search .postprofile dt, html.itportal-theme-dark .search .postprofile dd, html.itportal-theme-dark .search .postprofile .search-result-date { color:#b9d9ee !important; }
html.itportal-theme-dark .postprofile .icon, html.itportal-theme-dark .postprofile .icon:before, html.itportal-theme-dark .postprofile .profile-contact a { color:#32d4c4 !important; }
html.itportal-theme-dark blockquote, html.itportal-theme-dark .codebox, html.itportal-theme-dark .codebox code, html.itportal-theme-dark .notice, html.itportal-theme-dark .attachbox { background:#091a2a !important; border-color:#284964 !important; color:#e8f1f8 !important; }
html.itportal-theme-dark .codebox p { background:#11273e !important; border-color:#26435f !important; color:#b9d9ee !important; }
html.itportal-theme-dark .codebox .itportal-code-copy { color:#32d4c4 !important; } html.itportal-theme-dark .codebox .itportal-code-copy:hover, html.itportal-theme-dark .codebox .itportal-code-copy:focus { background:#183852 !important; color:#b0fff5 !important; }
html.itportal-theme-dark .itportal-syntax .itportal-syntax-command, html.itportal-theme-dark .itportal-syntax .itportal-syntax-path, html.itportal-theme-dark .itportal-syntax .itportal-syntax-keyword, html.itportal-theme-dark .itportal-syntax .itportal-syntax-tag { color:#62d5ff !important; }
html.itportal-theme-dark .itportal-syntax .itportal-syntax-property, html.itportal-theme-dark .itportal-syntax .itportal-syntax-key { color:#ffd479 !important; } html.itportal-theme-dark .itportal-syntax .itportal-syntax-string { color:#a6e3a1 !important; } html.itportal-theme-dark .itportal-syntax .itportal-syntax-comment { color:#8497aa !important; } html.itportal-theme-dark .itportal-syntax .itportal-syntax-number { color:#d9a8ff !important; } html.itportal-theme-dark .itportal-syntax .itportal-syntax-boolean { color:#ffac92 !important; } html.itportal-theme-dark .itportal-syntax .itportal-syntax-variable { color:#ffb86c !important; }
