/* Preserve the official SVG artwork; size the surrounding layout only. */
#qodef-page-spinner {
    display: none !important;
    pointer-events: none !important;
}
.tsq-loading-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: #fff;
    color: #1e1e1e;
    place-items: center;
    padding: 24px;
    pointer-events: none;
}
html.tsq-is-loading .tsq-loading-screen:not([hidden]) { display: grid; }
.tsq-loading-screen-content { text-align: center; }
.tsq-loading-screen img {
    display: block;
    width: 200px;
    max-width: 70vw;
    height: 139px;
    object-fit: contain;
    margin: 0 auto;
}
.tsq-loading-screen p {
    margin: 16px 0 0;
    font-family: Montserrat, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.tsq-identity-header { background: #fff; width: 100%; }
.tsq-identity-header-inner {
    box-sizing: border-box;
    max-width: 1300px;
    min-height: 148px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tsq-identity-logo-link { display: inline-block; line-height: 0; flex-shrink: 0; }
.tsq-identity-logo-link:focus-visible {
    outline: 3px solid #1e8bdd;
    outline-offset: 5px;
}
.tsq-identity-logo { display: block; width: 196px; max-width: 100%; height: auto; }

.tsq-identity-footer-logo {
    box-sizing: border-box;
    width: 220px;
    max-width: 100%;
    background: #fff;
    padding: 12px;
    margin: 0 0 24px;
    border-radius: 4px;
}
.tsq-identity-footer-logo.tsq-identity-footer-logo-white {
    width: 300px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.tsq-identity-footer-logo-white .tsq-identity-logo {
    width: 100%;
    height: auto;
}
.tsq-identity-footer {
    background: #1e1e1e;
    padding: 32px 24px 8px;
}
.tsq-identity-footer > div { max-width: 1300px; margin: 0 auto; }
/* Existing DoGood menus remain usable alongside the complete TSQ logo. */
#qodef-page-header { height: 148px !important; }
#qodef-page-header-inner { height: 100%; }
.qodef-header-logo-link {
    box-sizing: border-box;
    width: 204px;
    height: 138px !important;
    max-width: 25vw;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}
.qodef-header-logo-link .qodef--tsq,
.qodef-mobile-header-logo-link .qodef--tsq {
    display: block !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}
.qodef-header-sticky .qodef-header-logo-link {
    width: 124px;
    height: 80px !important;
    padding: 2px;
}
#qodef-page-mobile-header { height: 108px !important; }
#qodef-page-mobile-header-inner { height: 108px !important; }
.qodef-mobile-header-logo-link {
    box-sizing: border-box;
    width: 150px;
    max-width: calc(100% - 72px);
    height: 100px !important;
    padding: 4px;
    background: #fff;
    flex-shrink: 0;
}
.qodef-mobile-header-opener { flex-shrink: 0; }
@media (max-width: 680px) {
    /* Leave the first row free for the existing fixed quick-exit button. */
    .tsq-identity-header-inner { min-height: 184px; padding: 8px 16px; gap: 16px; align-items: flex-end; }
    .tsq-identity-header-logo .tsq-identity-logo { width: 144px; }

    .tsq-identity-footer-logo { width: 204px; }
}
@media (prefers-reduced-motion: reduce) {
    .tsq-loading-screen, .tsq-identity-logo { animation: none !important; transition: none !important; }
}
