/* Custom TypeDoc styles for BimCT logo and branding */

/* Add padding to the header toolbar for better spacing */
.tsd-page-toolbar {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Add logo before the title in the header toolbar only */
.tsd-page-toolbar .title::before {
    content: '';
    display: inline-block;
    width: 120px;
    height: 40px;
    background-image: url('https://www.bimct.io/assets/images/BimCTsdk_bynomitech_logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center left;
    vertical-align: middle;
    margin-right: 12px;
}

/* Adjust logo for dark mode - only invert black text to white, preserve red */
html[data-theme="dark"] .tsd-page-toolbar .title::before {
    filter: brightness(0) invert(1);
    mix-blend-mode: screen;
}

/* Hide the original title text in the header and replace with simpler text */
.tsd-page-toolbar .title {
    font-size: 0;
    text-decoration: none;
}

.tsd-page-toolbar .title::after {
    content: 'WebGL2 Viewer';
    font-size: 1.25rem;
    vertical-align: middle;
    text-decoration: none;
}

/* Fix underline position on hover */
.tsd-page-toolbar .title:hover::after {
    text-decoration: underline;
}

.tsd-page-toolbar .title:hover {
    text-decoration: none;
}

/* Make navigation links open in new tabs */
#tsd-toolbar-links a {
    target-new: tab;
}

#tsd-toolbar-links a::after {
    content: '';
}

.tsd-navigation a[href^="http"]::after {
    content: '';
}
