/* Shared AAC shell: supplied Goku video and Tenkai wordmark. */
body.yoopage {
    background: #080a10;
}

.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #080a10 url('../images/goku-background-poster.jpg') center / cover no-repeat;
}

.site-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.site-backdrop video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

div#page-body {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

div#page-body,
div#page-body div.page-body-m,
div#page-body div.page-body-t,
div#page-body div.page-body-b,
div#page-body div.page-body-h {
    background: none;
}

body.yoopage div.wrapper {
    max-width: calc(100% - 32px);
}

.site-brand {
    padding: 8px 0;
    text-align: center;
}

.site-brand-link {
    display: inline-block;
    width: 440px;
    max-width: 90%;
    vertical-align: middle;
}

.site-brand img {
    display: block;
    width: 100%;
    height: auto;
}

/* Keep the existing navigation links in normal flow below the wordmark. */
div#header,
div#header div.header-l,
div#header div.header-r {
    height: auto;
    background: none;
}

div#header #toolbar,
div#header #menubar,
div#header #logo,
div#header #menu li.fancy {
    display: none;
}

div#header #menu {
    position: static;
    height: auto;
    padding: 0;
    background: none;
}

div#header #menu ul.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    float: none;
    padding: 0;
    background: none;
}

div#header #menu li.level1 {
    float: none;
    background: none;
}

div#header #menu a.level1 {
    float: none;
    height: auto;
    padding: 8px 16px;
    color: #f2f4f8;
    background: #10131b;
    border: 1px solid #858b99;
    border-radius: 8px;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
}

div#header #menu a.level1 span {
    padding: 0;
}

div#header #menu a.level1:hover {
    border-color: #ffcc00;
    text-decoration: none;
}

div#middle {
    background: rgba(8, 10, 16, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

div#middle div.middle-t,
div#middle div.middle-tl,
div#middle div.middle-tr,
div#middle div.middle-l,
div#middle div.middle-r,
div#middle div.middle-m,
div#middle div.middle-b,
div#middle div.middle-bl,
div#middle div.middle-br {
    background: none;
}

div#footer {
    padding: 8px;
    background: rgba(8, 10, 16, 0.90);
    border-radius: 8px;
}

.background-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    padding: 8px 12px;
    color: #f2f4f8;
    background: #10131b;
    border: 1px solid #858b99;
    border-radius: 8px;
    font: 12px/1.5 Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.background-toggle[hidden] {
    display: none;
}

.background-toggle:focus-visible,
.site-brand-link:focus-visible,
div#header #menu a.level1:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    div#mainmiddle {
        display: flex;
        flex-direction: column;
    }

    .showright div#content {
        order: 0;
        margin-right: 0;
        min-width: 0;
    }

    div#right {
        order: 1;
        float: none;
        width: 100%;
        margin-top: 16px;
    }

    div#content_container {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .site-brand-link {
        width: 320px;
    }

    div#middle > .middle-l > .middle-r > .middle-m > .background {
        display: flex;
        flex-direction: column;
    }

    .left div#main {
        order: 0;
        min-width: 0;
        margin-left: 0;
    }

    .left div#middle div#left {
        order: 1;
        float: none;
        width: 100%;
        margin-top: 16px;
    }

    .background-toggle {
        right: 8px;
        bottom: 8px;
    }
}
