/* Other Projects: text title panels in place of artwork, using the site accent. */
.otherProjectPanel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    aspect-ratio: 16 / 9;
    padding: 1em;
    border: 1px solid rgba(101, 206, 253, 0.25);
    border-radius: 9px;
    background: radial-gradient(circle at center, rgba(101, 206, 253, 0.14), transparent 65%), #111318;
    text-align: center;
}

.otherProjectPanelTitle {
    max-width: 100%;
    color: #ffffff;
    font-family: "MagicCards", serif;
    font-size: clamp(1.8rem, 7vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: 1.5px;
    word-spacing: 8px;
    overflow-wrap: anywhere;
}

.otherProjectPanelGame {
    color: #cdd6e5;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.hubTileActionButtonKosmokrator,
.hubTileActionButtonOtherProjects {
    background-color: var(--hub-accent);
    border-color: var(--hub-accent);
    color: #0d1117;
}

.hubTileActionButtonKosmokrator:hover,
.hubTileActionButtonKosmokrator:focus-visible,
.hubTileActionButtonOtherProjects:hover,
.hubTileActionButtonOtherProjects:focus-visible {
    background-color: #a6e2fe;
    border-color: #a6e2fe;
    color: #0d1117;
}

.hubTileActionButtonKosmokrator:focus-visible,
.hubTileActionButtonOtherProjects:focus-visible {
    outline: 2px solid #a6e2fe;
    outline-offset: 3px;
}

/* Other Projects guide pages: shared guide layout with the site accent. */
.other-projects-progress {
    background: var(--hub-accent);
}

.other-projects-theme .content a:hover {
    color: #a6e2fe;
}

.other-projects-theme .content a:focus-visible,
.other-projects-theme .sidebar a:focus-visible,
.other-projects-theme #navButton:focus-visible {
    outline: 2px solid #a6e2fe;
    outline-offset: 2px;
}

.other-projects-theme .headerTitle #logo {
    width: 56px;
    height: 56px;
    padding: 0;
    margin-right: 0.75em;
    object-fit: contain;
}

.other-projects-theme .headerTitle {
    min-width: 0;
}

.other-projects-theme #headerTitle {
    white-space: nowrap;
}

/* Extra room on top of the global scroll-padding so the fixed header never covers anchored titles. */
.other-projects-theme .content .card[id] {
    scroll-margin-top: 1.5rem;
}

.other-projects-theme .sidebar .active::before {
    background-color: var(--hub-accent);
}

.other-projects-theme .guide-copy-button {
    border-color: rgba(101, 206, 253, 0.45);
    color: var(--hub-accent);
}

.other-projects-theme .guide-copy-button:hover {
    border-color: rgba(101, 206, 253, 0.8);
    color: #a6e2fe;
}

.other-projects-theme .content li {
    margin-top: 0.45em;
    margin-bottom: 0.45em;
}

.other-projects-theme .project-tag {
    margin-top: -0.2em;
    color: #cdd6e5;
    letter-spacing: 0.5px;
}

.other-projects-theme .project-heading-link {
    color: inherit;
}

.other-projects-theme .project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    margin: 1em 0;
}

.other-projects-theme .content .project-action-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.5em;
    padding: 0.45em 1em;
    border: 1px solid var(--hub-accent);
    border-radius: 6px;
    background-color: var(--hub-accent);
    color: #0d1117;
    font-weight: 700;
}

.other-projects-theme .content .project-action-button:hover,
.other-projects-theme .content .project-action-button:focus-visible {
    background-color: #a6e2fe;
    border-color: #a6e2fe;
    color: #0d1117;
}

.other-projects-theme .content .project-action-secondary {
    background-color: transparent;
    color: var(--hub-accent);
}

.other-projects-theme .content .project-action-secondary:hover,
.other-projects-theme .content .project-action-secondary:focus-visible {
    background-color: rgba(101, 206, 253, 0.12);
    color: #a6e2fe;
}

/* Kosmokrator page: one large screenshot with labelled thumbnails to switch between them. */
.other-projects-theme .kosmokrator-gallery {
    max-width: 860px;
    margin-bottom: 1em;
}

.other-projects-theme .kosmokrator-gallery .kosmokrator-gallery-preview {
    margin: 0.5em 0 0.9em;
}

.other-projects-theme .kosmokrator-gallery-preview a {
    display: block;
    border-radius: 8px;
}

.other-projects-theme .kosmokrator-gallery img {
    height: auto;
}

.other-projects-theme .kosmokrator-gallery-preview a:hover img {
    border-color: rgba(101, 206, 253, 0.6);
}

.other-projects-theme .kosmokrator-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 0.5em;
    margin: 0;
    padding: 0;
    list-style: none;
}

.other-projects-theme .content .kosmokrator-gallery-thumbs li {
    margin: 0;
}

.other-projects-theme .content .kosmokrator-gallery-thumb {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    width: 100%;
    height: 100%;
    padding: 0.3em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: #111318;
    color: #cdd6e5;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.other-projects-theme .kosmokrator-gallery-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.other-projects-theme .content .kosmokrator-gallery-thumb:hover {
    border-color: rgba(101, 206, 253, 0.6);
    color: #ffffff;
}

.other-projects-theme .content .kosmokrator-gallery-thumb:focus-visible {
    outline: 2px solid #a6e2fe;
    outline-offset: 2px;
}

.other-projects-theme .content .kosmokrator-gallery-thumb[aria-pressed="true"] {
    border-color: var(--hub-accent);
    background: rgba(101, 206, 253, 0.12);
    color: #ffffff;
    font-weight: 700;
}

@media only screen and (max-width: 900px) {
    /* Keep the closed off-canvas menu out of the tab order; visibility flips after the slide-out. */
    .other-projects-theme .left-sidebar:not(.expanded) {
        visibility: hidden;
    }
}

@media only screen and (max-width: 420px) {
    .other-projects-theme #headerTitle {
        font-size: 1.6em;
    }

    .other-projects-theme .project-action-button {
        flex: 1 1 100%;
        justify-content: center;
    }
}
