/* MyStudio Free: what MyStudio's PHP did on the full version, done with plain CSS */

/* Sidebar: the account links (User CP, messages, Mod CP, Admin CP) under the main menu, for members */
.ms-free-nav { display: flex; flex-direction: column; gap: .15rem; }
/* Desktop: start the menu level with the breadcrumb (.pex-main-header has .85rem on top), not against the header */
@media (min-width: 992px) { .ms-page-sidebar .offcanvas-body { padding-top: .85rem; } }
.ms-free-account { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--glass-border, rgba(255,255,255,.08)); }
.ms-free-account:not(:has(a)) { display: none; } /* guests: no account links */
.ms-sidebar-link.active { background: var(--tekbb-accent-subtle, rgba(45,212,191,.12)); color: var(--tekbb-accent-text, var(--tekbb-accent)); font-weight: 700; }

/* Logo: the theme's logo image (Templates & Style → Themes → MyStudio Free → logo), or the text logo in the header template */
/* (more specific than the full theme's "max-height: none", whatever order the stylesheets load in) */
.ms-header .ms-header-logo img.ms-logo-image { max-height: 40px; width: auto; }
@media (max-width: 575.98px) { .ms-header .ms-header-logo img.ms-logo-image { max-height: 32px; } }
.ms-header-logo .ms-logo-text { font-weight: 700; font-size: 1.35rem; color: var(--tekbb-accent); }

/* Light / dark switch in the header */
.ms-mode-btn { display: inline-flex; }
:root[data-bs-theme="light"] .ms-mode-btn .bi-moon-stars::before { content: "\f5a2"; } /* sun */

.ms-free-credit a { white-space: nowrap; }

/* Post editor: Bootstrap Icons instead of the old sprite (the "ee-bi-icons" class on <html>, set by the theme's head
   script, also tells the theme's editor styles not to invert the sprite in dark mode) */
.ee-bi-icons .sceditor-button div {
    background-image: none !important;
    width: 18px !important; height: 18px !important;
    font-size: 0 !important; overflow: hidden;
    color: var(--bs-secondary-color, #6c757d);
}
.ee-bi-icons .sceditor-button div::before {
    font-family: 'bootstrap-icons' !important;
    font-size: 15px; line-height: 18px; display: block; text-align: center; color: inherit;
}
.ee-bi-icons .sceditor-button { width: 18px; height: 22px; padding: 4px 5px; }
.ee-bi-icons .sceditor-button:hover div, .ee-bi-icons .sceditor-button.active div { color: var(--tekbb-accent, #2dd4bf); }
.ee-bi-icons .sceditor-button-bold div::before         { content: "\f5f0"; }
.ee-bi-icons .sceditor-button-italic div::before       { content: "\f5f4"; }
.ee-bi-icons .sceditor-button-underline div::before    { content: "\f5f6"; }
.ee-bi-icons .sceditor-button-strike div::before       { content: "\f5f5"; }
.ee-bi-icons .sceditor-button-left div::before         { content: "\f5c7"; }
.ee-bi-icons .sceditor-button-center div::before       { content: "\f5c4"; }
.ee-bi-icons .sceditor-button-right div::before        { content: "\f5c9"; }
.ee-bi-icons .sceditor-button-justify div::before      { content: "\f44b"; }
.ee-bi-icons .sceditor-button-font div::before         { content: "\f3da"; }
.ee-bi-icons .sceditor-button-size div::before         { content: "\f5f7"; }
.ee-bi-icons .sceditor-button-color div::before        { content: "\f4b1"; }
.ee-bi-icons .sceditor-button-removeformat div::before { content: "\f331"; }
.ee-bi-icons .sceditor-button-horizontalrule div::before { content: "\f63b"; }
.ee-bi-icons .sceditor-button-image div::before        { content: "\f42a"; }
.ee-bi-icons .sceditor-button-email div::before        { content: "\f32f"; }
.ee-bi-icons .sceditor-button-link div::before         { content: "\f470"; }
.ee-bi-icons .sceditor-button-unlink div::before       { content: "\f470"; text-decoration: line-through; }
.ee-bi-icons .sceditor-button-video div::before        { content: "\f21f"; }
.ee-bi-icons .sceditor-button-emoticon div::before     { content: "\f327"; }
.ee-bi-icons .sceditor-button-bulletlist div::before   { content: "\f478"; }
.ee-bi-icons .sceditor-button-orderedlist div::before  { content: "\f475"; }
.ee-bi-icons .sceditor-button-code div::before         { content: "\f2c6"; }
.ee-bi-icons .sceditor-button-php div::before          { content: "\f757"; }
.ee-bi-icons .sceditor-button-quote div::before        { content: "\f255"; }
.ee-bi-icons .sceditor-button-maximize div::before     { content: "\f14d"; }
.ee-bi-icons .sceditor-button-source div::before       { content: "\f1c9"; }
.ee-bi-icons .sceditor-button-subscript div::before    { content: "\2082"; font-family: inherit !important; font-weight: 700; }
.ee-bi-icons .sceditor-button-superscript div::before  { content: "\00b2"; font-family: inherit !important; font-weight: 700; }
.ee-bi-icons div.sceditor-grip { background-image: none !important; }
.ee-bi-icons div.sceditor-grip::before { content: "\f3fd"; font-family: 'bootstrap-icons' !important; font-size: 10px; color: var(--bs-secondary-color, #888); }
