/* ==========================================================================
   Bootstrap 5 under the theme's Bootstrap 3 design: the sizes, colours and
   helpers the templates were made with. Breakpoints: 768 / 992 / 1200 px.
   ========================================================================== */

/* Type and spacing as Bootstrap 3 had them (the page's base size is 14px) */
a { text-decoration: none; }
p { margin: 0 0 10px; }
ul, ol { margin-bottom: 10px; }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.1; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 2.5714rem; } h2 { font-size: 2.1429rem; } h3 { font-size: 1.7143rem; }
h4 { font-size: 1.2857rem; } h5 { font-size: 1rem; } h6 { font-size: .8571rem; }
legend { float: none; }
img { max-width: 100%; }
img[height]:not([src*="task.php"]) { height: auto; }

/* The grid: 1170px wide at most, 30px gutters */
.row { --bs-gutter-x: 20px; }
@media (min-width: 576px) { .container { max-width: none; } }
@media (min-width: 768px) { .container { max-width: 750px; } }
@media (min-width: 992px) { .container { max-width: 970px; } }
@media (min-width: 1200px) { .container { max-width: 1170px; } }

/* hidden-* / visible-* on Bootstrap 3's widths */
@media (max-width: 767.98px) { .hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991.98px) { .hidden-sm { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hidden-md { display: none !important; } }
@media (min-width: 1200px) { .hidden-lg { display: none !important; } }
.visible-xs, .visible-sm, .visible-md, .visible-lg,
.visible-xs-block, .visible-sm-block, .visible-md-block, .visible-lg-block { display: none !important; }
@media (max-width: 767.98px) {
	.visible-xs, .visible-xs-block { display: block !important; }
	tr.visible-xs { display: table-row !important; }
	td.visible-xs, th.visible-xs { display: table-cell !important; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.visible-sm, .visible-sm-block { display: block !important; }
	tr.visible-sm { display: table-row !important; }
	td.visible-sm, th.visible-sm { display: table-cell !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
	.visible-md, .visible-md-block { display: block !important; }
	tr.visible-md { display: table-row !important; }
	td.visible-md, th.visible-md { display: table-cell !important; }
}
@media (min-width: 1200px) {
	.visible-lg, .visible-lg-block { display: block !important; }
	tr.visible-lg { display: table-row !important; }
	td.visible-lg, th.visible-lg { display: table-cell !important; }
}

/* Buttons in Bootstrap 3's colours */
.btn { --bs-btn-font-size: 1rem; --bs-btn-border-radius: 4px; }
.btn-sm { --bs-btn-padding-y: 5px; --bs-btn-padding-x: 10px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; }
.btn-xs { --bs-btn-padding-y: 1px; --bs-btn-padding-x: 5px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 3px; line-height: 1.5; }
.btn-default { --bs-btn-color: var(--tk-gray-790); --bs-btn-bg: var(--bs-white); --bs-btn-border-color: var(--tk-gray-180); --bs-btn-hover-color: var(--tk-gray-790); --bs-btn-hover-bg: var(--tk-gray-90); --bs-btn-hover-border-color: var(--tk-gray-300); --bs-btn-active-color: var(--tk-gray-790); --bs-btn-active-bg: var(--tk-gray-90); --bs-btn-active-border-color: var(--tk-gray-300); }
.btn-primary { --bs-btn-bg: var(--tk-blue-500); --bs-btn-border-color: var(--tk-blue-500); --bs-btn-hover-bg: var(--tk-blue-610); --bs-btn-hover-border-color: var(--tk-blue-680); --bs-btn-active-bg: var(--tk-blue-680); --bs-btn-active-border-color: var(--tk-blue-830); }
.btn-success { --bs-btn-bg: var(--tk-green-320); --bs-btn-border-color: var(--tk-green-320); --bs-btn-hover-bg: var(--tk-green-420); --bs-btn-hover-border-color: var(--tk-green-510); --bs-btn-active-bg: var(--tk-green-510); --bs-btn-active-border-color: var(--tk-green-680); }
.btn-info { --bs-btn-color: var(--bs-white); --bs-btn-bg: var(--tk-cyan-280); --bs-btn-border-color: var(--tk-cyan-280); --bs-btn-hover-color: var(--bs-white); --bs-btn-hover-bg: var(--tk-cyan-330); --bs-btn-hover-border-color: var(--tk-cyan-410); --bs-btn-active-color: var(--bs-white); --bs-btn-active-bg: var(--tk-cyan-410); --bs-btn-active-border-color: var(--tk-cyan-570); }
.btn-warning { --bs-btn-color: var(--bs-white); --bs-btn-bg: var(--tk-orange-250); --bs-btn-border-color: var(--tk-orange-280); --bs-btn-hover-color: var(--bs-white); --bs-btn-hover-bg: var(--tk-orange-300); --bs-btn-hover-border-color: var(--tk-orange-380); --bs-btn-active-color: var(--bs-white); --bs-btn-active-bg: var(--tk-orange-380); --bs-btn-active-border-color: var(--tk-orange-550); }
.btn-danger { --bs-btn-bg: var(--tk-red-470); --bs-btn-border-color: var(--tk-red-510); --bs-btn-hover-bg: var(--tk-red-510); --bs-btn-hover-border-color: var(--tk-red-650); --bs-btn-active-bg: var(--tk-red-650); --bs-btn-active-border-color: var(--tk-red-740); }

/* Labels (Bootstrap 3) */
.label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: var(--bs-white); text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; }
.label:empty { display: none; }
.label-default { background-color: var(--tk-gray-500); } .label-primary { background-color: var(--tk-blue-500); } .label-success { background-color: var(--tk-green-320); }
.label-info { background-color: var(--tk-cyan-280); } .label-warning { background-color: var(--tk-orange-250); } .label-danger { background-color: var(--tk-red-470); }

img.mycode_img.img-fluid { display: inline-block; }

/* MyBB's own dialogs (jQuery Modal) share Bootstrap's .modal class: keep them MyBB's */
.blocker .modal, .modal[style*="inline-block"] {
	position: relative; top: auto; left: auto; z-index: auto;
	width: 400px; max-width: calc(100vw - 30px); height: auto; overflow: visible;
}

/* The board statistics: four counters over the gradient */
.stat-card-row .card { background: transparent; border: 0; border-radius: 0; color: var(--bs-white); }

/* ── The header ── */
.site-navbar { background: var(--tk-gray-870); border-bottom: 1px solid var(--tk-gray-980); padding: 20px 0; }
.site-navbar .navbar-brand { padding: 0; margin-right: 0; }
.site-navbar .navbar-brand img { height: 50px; width: auto; }
.site-navbar .nav-link { color: var(--tk-gray-370); padding: 10px 15px; }
.site-navbar .nav-link:hover, .site-navbar .nav-link:focus, .site-navbar .nav-link.show { color: var(--bs-white); }
.site-navbar .navbar-toggler { border-color: var(--tk-gray-790); padding: 6px 10px; }
.site-navbar .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(var(--bs-white-rgb), 0.25); }
.site-navbar .dropdown-menu { --bs-dropdown-link-active-bg: var(--primary, var(--tk-blue-500)); }
@media (max-width: 767.98px) {
	.site-navbar { padding: 12px 0; }
	.site-navbar .navbar-nav { padding-top: 10px; }
	.site-navbar .nav-link { padding: 10px 5px; }
}

/* The light/dark switch */
.theme-mode-toggle { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; padding: 10px 12px; color: var(--tk-gray-370); }
.theme-mode-toggle:hover, .theme-mode-toggle:focus-visible { color: var(--bs-white); }
[data-bs-theme="dark"] .mode-when-light, [data-bs-theme="light"] .mode-when-dark { display: none; }

/* The User CP / Mod CP / portal side menus: beside the page from 768px, a drawer below */
.side-menu-open i { margin-right: 4px; }
@media (max-width: 767.98px) {
	.side-offcanvas { --bs-offcanvas-width: min(300px, 85vw); }
	.side-offcanvas .offcanvas-body { padding: 0 15px 15px; }
}

/* Bootstrap 3 cleared floats inside containers */
main.container::after, #panel .container::after, #footer .container::after, #copyright .container::after { content: ""; display: table; clear: both; }

/* The theme's flex rows keep their columns on one line, as they did */
@media (min-width: 768px) {
	.rowbit.row { flex-wrap: nowrap; }
	.rowbit.row > * { flex-shrink: 1; }
}

/* Text colours as Bootstrap 3 had them */
.text-primary { color: var(--tk-blue-500) !important; } .text-success { color: var(--tk-green-550) !important; } .text-info { color: var(--tk-cyan-550) !important; }
.text-warning { color: var(--tk-yellow-520) !important; } .text-danger { color: var(--tk-red-530) !important; } .text-muted { color: var(--tk-gray-500) !important; }
[data-bs-theme="dark"] .text-primary { color: var(--tk-blue-330) !important; } [data-bs-theme="dark"] .text-success { color: var(--tk-green-290) !important; }
[data-bs-theme="dark"] .text-info { color: var(--tk-cyan-280) !important; } [data-bs-theme="dark"] .text-warning { color: var(--tk-yellow-260) !important; }
[data-bs-theme="dark"] .text-danger { color: var(--tk-red-380) !important; } [data-bs-theme="dark"] .text-muted { color: var(--tk-slate-360) !important; }

/* MyBB's scheduled-task image (1x1 in the footer): takes no room, also inside a grid row */
.task-image { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
img[src*="task.php"] { width: 1px !important; height: 1px !important; }


/* A forum's heading: its links with separators drawn between them (none left over when one is missing) */
.threadlist_thread_option { align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.forumhead_links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.forumhead_links > a + a::before { content: "|"; margin: 0 10px; opacity: .6; }

/* Bootstrap Icons: the sizes the templates use */
.bi-lg { font-size: 1.33em; } .bi-2x { font-size: 2em; } .bi-3x { font-size: 3em; } .bi-4x { font-size: 4em; line-height: 1; display: inline-block; }
.bi-fw { width: 1.25em; text-align: center; display: inline-block; }

/* The editor's toolbar in Bootstrap Icons: glyphs in the text colour, so they follow light and dark by themselves */
/* (the editor's own sheet loads later and hides the button text: these outrank it; built-in SVG icons give way) */
.sceditor-container .sceditor-button { color: var(--bs-body-color); }
.sceditor-container .sceditor-button > svg { display: none !important; }
.sceditor-container .sceditor-button > div { display: flex !important; align-items: center; justify-content: center; width: 16px; height: 16px; margin: 0; padding: 0; background: none !important; filter: none !important; font-size: 0 !important; color: inherit !important; text-indent: 0 !important; overflow: visible; }
.sceditor-container .sceditor-button > div::before { font-family: bootstrap-icons !important; font-size: 16px; line-height: 1; font-style: normal; font-weight: normal; color: inherit; -webkit-font-smoothing: antialiased; }
.sceditor-container .sceditor-button.disabled > div { opacity: .35; }
.sceditor-container .sceditor-button-bold > div::before { content: "\f5f0"; }
.sceditor-container .sceditor-button-italic > div::before { content: "\f5f4"; }
.sceditor-container .sceditor-button-underline > div::before { content: "\f5f6"; }
.sceditor-container .sceditor-button-strike > div::before { content: "\f5f5"; }
.sceditor-container .sceditor-button-subscript > div::before { content: "\f848"; }
.sceditor-container .sceditor-button-superscript > div::before { content: "\f849"; }
.sceditor-container .sceditor-button-left > div::before { content: "\f5c7"; }
.sceditor-container .sceditor-button-center > div::before { content: "\f5c4"; }
.sceditor-container .sceditor-button-right > div::before { content: "\f5c9"; }
.sceditor-container .sceditor-button-justify > div::before { content: "\f44b"; }
.sceditor-container .sceditor-button-font > div::before { content: "\f3da"; }
.sceditor-container .sceditor-button-size > div::before { content: "\f5f7"; }
.sceditor-container .sceditor-button-color > div::before { content: "\f4b0"; }
.sceditor-container .sceditor-button-removeformat > div::before { content: "\f330"; }
.sceditor-container .sceditor-button-cut > div::before { content: "\f528"; }
.sceditor-container .sceditor-button-copy > div::before { content: "\f759"; }
.sceditor-container .sceditor-button-paste > div::before { content: "\f290"; }
.sceditor-container .sceditor-button-pastetext > div::before { content: "\f28b"; }
.sceditor-container .sceditor-button-bulletlist > div::before { content: "\f478"; }
.sceditor-container .sceditor-button-orderedlist > div::before { content: "\f475"; }
.sceditor-container .sceditor-button-indent > div::before { content: "\f5c5"; }
.sceditor-container .sceditor-button-outdent > div::before { content: "\f5c6"; }
.sceditor-container .sceditor-button-table > div::before { content: "\f5aa"; }
.sceditor-container .sceditor-button-code > div::before { content: "\f2c6"; }
.sceditor-container .sceditor-button-php > div::before { content: "\f757"; }
.sceditor-container .sceditor-button-quote > div::before { content: "\f6b0"; }
.sceditor-container .sceditor-button-horizontalrule > div::before { content: "\f426"; }
.sceditor-container .sceditor-button-image > div::before { content: "\f42a"; }
.sceditor-container .sceditor-button-email > div::before { content: "\f32f"; }
.sceditor-container .sceditor-button-link > div::before { content: "\f470"; }
.sceditor-container .sceditor-button-unlink > div::before { content: "\f567"; }
.sceditor-container .sceditor-button-emoticon > div::before { content: "\f327"; }
.sceditor-container .sceditor-button-youtube > div::before { content: "\f62b"; }
.sceditor-container .sceditor-button-video > div::before { content: "\f4f1"; }
.sceditor-container .sceditor-button-date > div::before { content: "\f1e4"; }
.sceditor-container .sceditor-button-time > div::before { content: "\f293"; }
.sceditor-container .sceditor-button-ltr > div::before { content: "\f5c7"; }
.sceditor-container .sceditor-button-rtl > div::before { content: "\f5c9"; }
.sceditor-container .sceditor-button-print > div::before { content: "\f501"; }
.sceditor-container .sceditor-button-maximize > div::before { content: "\f14d"; }
.sceditor-container .sceditor-button-source > div::before { content: "\f2c7"; }

/* Pagination: the "Pages (n):" label repeats what the page buttons show; kept for screen readers only */
.pagination .pages { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
