/* Dark mode and text size (switched by the visitor; see layouts/main.php). Colours come from tokens so the theme still applies. */
html[data-tl-text="2"]{font-size:112.5%}
html[data-tl-text="3"]{font-size:125%}
html[data-tl-theme="dark"]{
  color-scheme:dark;
  --tl-page-bg:#0E1424;--tl-surface:#161E31;--tl-card:#161E31;--tl-hover-border:#7A869F;--tl-bg:#121A2B;--tl-blue-soft:#1B2640;--tl-border:#2A3550;
  --tl-text:#E4E8F2;--tl-heading:#F3F5FA;--tl-muted:#A3AEC7;--tl-ink:#DCE3F2;--tl-link:#FF9AA1;
  --tl-header-bg:#111829;--tl-green:#6FDBA4;--tl-chip:#252F45;--tl-header-text:#E4E8F2;--tl-green-soft:#163024;--tl-red-soft:rgba(255,107,115,.16);
  --tl-shadow:0 18px 40px rgba(0,0,0,.5);
  --bs-body-color:#E4E8F2;--bs-body-bg:#0E1424;--bs-link-color:#FF9AA1;--bs-link-color-rgb:255,154,161;--bs-link-hover-color:#ffc2c6;--bs-link-hover-color-rgb:255,194,198;
  --bs-border-color:#2A3550;--bs-secondary-color:#A3AEC7;--bs-tertiary-bg:#1B2640;
}
html[data-tl-theme="dark"] body{background:var(--tl-page-bg);color:var(--tl-text)}
html[data-tl-theme="dark"] .text-reset{color:inherit!important}
html[data-tl-theme="dark"] .btn-outline-navy:hover{background:var(--tl-ink);color:#0E1424}
html[data-tl-theme="dark"] .btn-light-tl{background:var(--tl-surface);color:var(--tl-ink);border-color:var(--tl-border)}
html[data-tl-theme="dark"] .form-control,html[data-tl-theme="dark"] .form-select{background-color:#0F1626;color:var(--tl-text);border-color:var(--tl-border)}
html[data-tl-theme="dark"] .form-control::placeholder{color:#7D89A6}
html[data-tl-theme="dark"] .dropdown-menu,html[data-tl-theme="dark"] .modal-content,html[data-tl-theme="dark"] .offcanvas{background:var(--tl-surface);color:var(--tl-text);border-color:var(--tl-border)}
html[data-tl-theme="dark"] .dropdown-item{color:var(--tl-text)}
html[data-tl-theme="dark"] .dropdown-item:hover,html[data-tl-theme="dark"] .dropdown-item:focus{background:var(--tl-blue-soft);color:#fff}
html[data-tl-theme="dark"] .navbar-toggler{filter:invert(1)}
html[data-tl-theme="dark"] .tl-header .navbar-brand img{background:#fff;border-radius:8px;padding:2px 6px}
html[data-tl-theme="dark"] .alert-info{background:#14304a;color:#cfe6ff;border-color:#1f4a70}
html[data-tl-theme="dark"] .alert-warning{background:#3a2e10;color:#ffe6a8;border-color:#5c4917}
html[data-tl-theme="dark"] .alert-success{background:#123322;color:#c9f2dc;border-color:#1d5236}
html[data-tl-theme="dark"] .alert-danger{background:#3a1418;color:#ffd0d4;border-color:#5e2127}
html[data-tl-theme="dark"] .bg-white,html[data-tl-theme="dark"] .bg-light{background:var(--tl-surface)!important}
html[data-tl-theme="dark"] .border{border-color:var(--tl-border)!important}
html[data-tl-theme="dark"] .table{--bs-table-bg:transparent;--bs-table-color:var(--tl-text);color:var(--tl-text)}
html[data-tl-theme="dark"] img:not([src$=".svg"]){filter:brightness(.92)}
html[data-tl-theme="dark"] .tl-stars .text-muted-tl,html[data-tl-theme="dark"] .text-muted{color:var(--tl-muted)!important}
html[data-tl-theme="dark"] .progress{background:#24304a}
html[data-tl-theme="dark"] .tlmap{background:#1a2234}
html[data-tl-theme="dark"] .tlmap-tile{filter:brightness(.75) contrast(1.1)}
html[data-tl-theme="dark"] [style*="background:#fff"],html[data-tl-theme="dark"] [style*="background: #fff"]{background:var(--tl-surface)!important}
html[data-tl-theme="dark"] [style*="background:var(--tl-bg)"]{background:var(--tl-bg)!important}
/* the footer bar with text size, dark mode, app and notifications */
.tl-a11ybar button{background:transparent;border:1px solid rgba(255,255,255,.25);color:inherit;border-radius:8px;padding:3px 10px;line-height:1.4}
.tl-a11ybar button[aria-pressed="true"]{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5)}
.tl-a11ybar button:hover{border-color:#fff}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html[data-tl-theme="dark"] .tl-closed{background:#252F45;color:#B7C1D8}
html[data-tl-theme="dark"] [style*="background:#EEF0F5"],html[data-tl-theme="dark"] [style*="background:#F0F2F5"]{background:#252F45!important}
html[data-tl-theme="dark"] .tl-hnote{color:var(--tl-text)}
html[data-tl-theme="dark"] .tl-sp-item .rt{color:#5a3b00}

/* ---- dark mode: pastel badges, notes and panels that were written with light colours ---- */
html[data-tl-theme="dark"]{--tl-red-dark:#FF9AA1}
html[data-tl-theme="dark"] .tl-acc-alert,html[data-tl-theme="dark"] .tl-st.pending,html[data-tl-theme="dark"] .tl-sp-item .rt,html[data-tl-theme="dark"] .tl-badge.gold,html[data-tl-theme="dark"] .tl-vtag,html[data-tl-theme="dark"] .tl-tk-st.open,html[data-tl-theme="dark"] .tl-tk-st.pending,html[data-tl-theme="dark"] .tl-lnote,html[data-tl-theme="dark"] .tl-mycard-next,html[data-tl-theme="dark"] .tl-book-ico.pending,html[data-tl-theme="dark"] .tl-vstrip-label i,html[data-tl-theme="dark"] .tl-trading-opt.temporarily_closed input:checked+span,html[data-tl-theme="dark"] .tl-closedbar.temporarily_closed,html[data-tl-theme="dark"] .tl-vhl.con,html[data-tl-theme="dark"] .tl-sp-card.main .ic,html[data-tl-theme="dark"] .tl-post mark,html[data-tl-theme="dark"] .tl-artlist mark{background:rgba(245,165,36,.16)!important;color:#F6CF7A!important;border-color:rgba(245,165,36,.35)!important}
html[data-tl-theme="dark"] .tl-acc-alert *,html[data-tl-theme="dark"] .tl-st.pending *,html[data-tl-theme="dark"] .tl-sp-item .rt *,html[data-tl-theme="dark"] .tl-badge.gold *,html[data-tl-theme="dark"] .tl-vtag *,html[data-tl-theme="dark"] .tl-tk-st.open *,html[data-tl-theme="dark"] .tl-tk-st.pending *,html[data-tl-theme="dark"] .tl-lnote *,html[data-tl-theme="dark"] .tl-mycard-next *,html[data-tl-theme="dark"] .tl-book-ico.pending *,html[data-tl-theme="dark"] .tl-vstrip-label i *,html[data-tl-theme="dark"] .tl-trading-opt.temporarily_closed input:checked+span *,html[data-tl-theme="dark"] .tl-closedbar.temporarily_closed *,html[data-tl-theme="dark"] .tl-vhl.con *,html[data-tl-theme="dark"] .tl-sp-card.main .ic *,html[data-tl-theme="dark"] .tl-post mark *,html[data-tl-theme="dark"] .tl-artlist mark *{color:inherit}
html[data-tl-theme="dark"] .tl-badge-off,html[data-tl-theme="dark"] .tl-jobcard .c.pay,html[data-tl-theme="dark"] .tl-qitem .save,html[data-tl-theme="dark"] .tl-book-ico.confirmed,html[data-tl-theme="dark"] .tl-book-ico.completed,html[data-tl-theme="dark"] .tl-done-ic,html[data-tl-theme="dark"] .tl-vpc.pro,html[data-tl-theme="dark"] .tl-vpill.green,html[data-tl-theme="dark"] .tl-trading-opt.open input:checked+span,html[data-tl-theme="dark"] .tl-vglance .yes .ic,html[data-tl-theme="dark"] .tl-vhl.pro,html[data-tl-theme="dark"] .tl-sp-month .dots em,html[data-tl-theme="dark"] .tl-inbox-chips a.on,html[data-tl-theme="dark"] .tl-bub.me{background:var(--tl-green-soft)!important;color:var(--tl-green)!important}
html[data-tl-theme="dark"] .tl-bub.failed,html[data-tl-theme="dark"] .tl-book-ico.declined,html[data-tl-theme="dark"] .tl-book-ico.cancelled,html[data-tl-theme="dark"] .tl-book-ico.no_show,html[data-tl-theme="dark"] .tl-vpc.con,html[data-tl-theme="dark"] .tl-act.danger>i,html[data-tl-theme="dark"] .tl-act.danger:hover,html[data-tl-theme="dark"] .tl-trading-opt.permanently_closed input:checked+span,html[data-tl-theme="dark"] .tl-closedbar.permanently_closed,html[data-tl-theme="dark"] .tl-vglance .no .ic,html[data-tl-theme="dark"] .tl-delmodal .ic,html[data-tl-theme="dark"] .tl-jobcard .c.tr,html[data-tl-theme="dark"] .tl-adpos input:checked+.box{background:var(--tl-red-soft)!important;color:#FFA3AA!important}
html[data-tl-theme="dark"] .tl-bchip,html[data-tl-theme="dark"] .tl-inbox-none,html[data-tl-theme="dark"] .tl-catcard,html[data-tl-theme="dark"] .tl-gaitools,html[data-tl-theme="dark"] .tl-bars2 i,html[data-tl-theme="dark"] .tl-legend i,html[data-tl-theme="dark"] .tl-gaibar,html[data-tl-theme="dark"] .tl-fsw,html[data-tl-theme="dark"] .tl-vstrip-nav .dots button,html[data-tl-theme="dark"] .tl-qa-blur .sk.sm,html[data-tl-theme="dark"] .tl-chat-act:hover,html[data-tl-theme="dark"] .tl-bchip:hover{background:var(--tl-blue-soft)!important;color:var(--tl-text)!important}
html[data-tl-theme="dark"] .tl-mycard-next:hover{background:rgba(245,165,36,.26)!important;color:#FFE3A1!important}
html[data-tl-theme="dark"] .tl-mycard-next i:first-child{color:#F6C453}
html[data-tl-theme="dark"] .tl-bub{color:var(--tl-text)}html[data-tl-theme="dark"] .tl-chat-body{background:#10192C}html[data-tl-theme="dark"] .tl-bub:not(.me){background:var(--tl-surface)}
html[data-tl-theme="dark"] .tl-bub.failed .meta,html[data-tl-theme="dark"] .tl-vpc.con .t,html[data-tl-theme="dark"] .tl-act.danger b,html[data-tl-theme="dark"] .tl-promores-grid .chg.down,html[data-tl-theme="dark"] .tl-vhl.con .t{color:#FF9AA1}
html[data-tl-theme="dark"] .tl-vhl.pro .t{color:var(--tl-green)}
html[data-tl-theme="dark"] .tl-badge.blue,html[data-tl-theme="dark"] .tl-feed .ic,html[data-tl-theme="dark"] .tl-pick>span>i,html[data-tl-theme="dark"] .tl-adpos .ic,html[data-tl-theme="dark"] .tl-spbar .what i,html[data-tl-theme="dark"] .tl-upd .lg,html[data-tl-theme="dark"] .tl-jobcard .lg,html[data-tl-theme="dark"] .tl-jobbiz .lg,html[data-tl-theme="dark"] .tl-jobs-ic{color:#A9BEF5}
html[data-tl-theme="dark"] .tl-prose,html[data-tl-theme="dark"] .tl-lhead .summary{color:var(--tl-text)}
html[data-tl-theme="dark"] .tl-gaitools-lab{color:var(--tl-muted)}html[data-tl-theme="dark"] .tl-gaitools-lab i,html[data-tl-theme="dark"] .tl-gailink{color:#8FB0FF}
html[data-tl-theme="dark"] .tl-szchip{color:var(--tl-ink)}
html[data-tl-theme="dark"] .tl-savebar{background:rgba(22,30,49,.96)}
html[data-tl-theme="dark"] .tl-grow-card{background:linear-gradient(135deg,var(--tl-surface) 0%,var(--tl-bg) 100%)}
html[data-tl-theme="dark"] .tl-step .num{color:#1D2740}
html[data-tl-theme="dark"] .tl-st.hidden,html[data-tl-theme="dark"] .tl-st.draft{background:var(--tl-chip);color:var(--tl-muted)}
html[data-tl-theme="dark"] .tl-st.active{background:var(--tl-green-soft);color:var(--tl-green)}
html[data-tl-theme="dark"] .tl-tile .d.up{background:var(--tl-green-soft)}
html[data-tl-theme="dark"] .tl-tile .d.down{background:var(--tl-red-soft);color:#FF9AA1}
html[data-tl-theme="dark"] .tl-cta .btn-white{background:#fff;color:#B3141F}
html[data-tl-theme="dark"] .tl-week .trk{background:#2A3550}
html[data-tl-theme="dark"] .tl-week .trk i{background:#7FA2F0;opacity:.9}
html[data-tl-theme="dark"] .tl-week li.today .trk{background:#33405F}
html[data-tl-theme="dark"] .tl-week li.today .trk i{background:#FF6B73;opacity:1}
html[data-tl-theme="dark"] .tl-deleted .hd .ic,html[data-tl-theme="dark"] .tl-deleted .row-d .left{background:rgba(245,165,36,.16);color:#F6CF7A}
html[data-tl-theme="dark"] .tl-deleted .row-d .left.soon{background:rgba(240,90,90,.18);color:#FFB4B4}
html[data-tl-theme="dark"] .tl-acc-groups .tl-acc-top.on,html[data-tl-theme="dark"] .tl-acc-groups .tl-acc-gb a.on{background:rgba(240,90,90,.16);color:#FFB4B4}
