/* Pixel font for Minecraft text (SIL Open Font License, see fonts/PixelifySans-OFL.txt). */
@font-face {
    font-family: "Pixelify Sans";
    src: url("../fonts/pixelify-sans-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Pixelify Sans";
    src: url("../fonts/pixelify-sans-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

/*
 * Loading screen, shown until Blazor starts. MudBlazor's palette variables do not exist yet, so the
 * colours repeat Layout/SiteTheme.cs; index.html sets data-theme before first paint.
 * Blazor sets --blazor-load-percentage(-text) on <html> while it downloads the app.
 */
.app-loading {
    --loading-bg: #f4f5fb;
    --loading-text: #151a2e;
    --loading-muted: #5d6683;
    --loading-track: #dfe2f0;
    --loading-primary: #3b49d1;
    --loading-tile: rgba(59, 73, 209, .10);

    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--loading-bg);
    color: var(--loading-text);
    font-family: Inter, Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] .app-loading {
    --loading-bg: #0b0e17;
    --loading-text: #e4e8f5;
    --loading-muted: #8791ad;
    --loading-track: #222a40;
    --loading-primary: #7c8cff;
    --loading-tile: rgba(124, 140, 255, .14);
}

.app-loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    color: var(--loading-primary);
    background: var(--loading-tile);
}

.app-loading-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.app-loading-bar {
    width: 200px;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: var(--loading-track);
}

.app-loading-bar-fill {
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    border-radius: 2px;
    background: var(--loading-primary);
    transition: width .2s ease-out;
}

.app-loading-text {
    min-height: 1.2em;
    font-size: .75rem;
    font-variant-numeric: tabular-nums;
    color: var(--loading-muted);
}

/* Shows "Loading 42%" once Blazor reports progress. */
.app-loading-text::after {
    content: " " var(--blazor-load-percentage-text, "");
}

@media (prefers-reduced-motion: reduce) {
    .app-loading-bar-fill {
        transition: none;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: 8px;
    top: -100px;
    z-index: 2000;
    padding: 8px 12px;
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-primary);
    box-shadow: var(--mud-elevation-4);
}

.skip-link:focus {
    top: 8px;
}

main:focus {
    outline: none;
}

.forum-header .mud-breadcrumb-item,
.forum-header .mud-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    color: var(--mud-palette-text-secondary);
}

/* Links inside running text are underlined, not told apart by colour alone. */
.mud-typography-caption .mud-link,
.mud-secondary-text .mud-link,
.mud-alert-message .mud-link,
.post-body a {
    text-decoration: underline;
    text-decoration-color: rgba(var(--mud-palette-primary-rgb), .45);
    text-underline-offset: 2px;
}

/* Page rhythm */
.site-content {
    padding-top: 12px;
    padding-bottom: 8px;
}

.site-content .mud-breadcrumbs {
    padding: 0;
    font-size: .8125rem;
}

/* Breadcrumbs with the search button on the right */
.forum-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
}

/* Section headers above tables */
.section-header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
}

/* Numeric table columns */
.col-num {
    width: 7rem;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.col-last {
    width: 15rem;
}

/* Fixed layout so long forum and topic titles wrap or truncate instead of widening the table. */
.fixed-table table {
    table-layout: fixed;
}

.fixed-table td {
    overflow-wrap: anywhere;
}

.fixed-table .col-num {
    width: 5.5rem;
}

.fixed-table .col-last {
    width: 30%;
}

/* Posts */
.post-author {
    border-right: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
}

@media (max-width: 599.98px) {
    .post-author {
        border-right: none;
        border-bottom: 1px solid var(--mud-palette-lines-default);
    }
}

.post-header {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

/* Imported post bodies and signatures */
.post-body {
    overflow-wrap: anywhere;
}

.post-body img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.post-body ul,
.post-body ol {
    padding-left: 1.5rem;
    margin: .5rem 0;
}

.post-body pre,
.post-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8125rem;
    background: var(--mud-palette-background-gray);
    border-radius: 4px;
}

.post-body code {
    padding: 1px 4px;
}

.post-body pre {
    padding: 8px 12px;
    overflow-x: auto;
}

.post-body pre code {
    padding: 0;
    background: none;
}

/* Quotes and links are stored as plain tags (see HtmlCleaner); this is their look. */
.post-body a {
    color: var(--mud-palette-primary);
}

.post-body a:hover {
    text-decoration-thickness: 2px;
}

.post-body blockquote {
    margin: 8px 0;
    padding: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 3px solid var(--mud-palette-primary);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-background-gray);
}

.post-body blockquote > cite {
    display: block;
    font-style: normal;
    font-size: .75rem;
    line-height: 1.66;
    letter-spacing: .033em;
}

.post-body .code-block {
    margin: 8px 0;
    max-height: 24rem;
    overflow: auto;
}

.post-body details.spoiler {
    margin: 8px 0;
    padding: 6px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-background-gray);
}

.post-body details.spoiler > summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.post-body details.spoiler[open] > summary {
    margin-bottom: 6px;
}

.post-body .video-link {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
    max-width: 320px;
}

.post-body .video-link img {
    width: 320px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
}

.post-body img.missing-image {
    width: 180px;
    height: 110px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
}

.post-signature {
    max-height: 12rem;
    overflow: hidden;
    color: var(--mud-palette-text-secondary);
}

/* Profile field table */
.profile-fields th {
    width: 10rem;
    color: var(--mud-palette-text-secondary);
    font-weight: 500 !important;
}

/* Home */
.home-hero {
    padding: 20px 24px;
    background:
        linear-gradient(120deg, rgba(var(--mud-palette-primary-rgb), .10), rgba(var(--mud-palette-primary-rgb), 0) 55%),
        var(--mud-palette-surface);
}

.home-hero h1 {
    margin: 0;
}

.home-hero-text {
    flex: 1 1 320px;
    max-width: 560px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}

.stat-tile {
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, background-color .15s;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
}

.stat-tile:hover,
.stat-tile:focus-visible {
    border-color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), .06);
}

.stat-value {
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

h2.section-header {
    margin: 0;
}

.forum-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--mud-default-borderradius);
    color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), .10);
}

/* Sidebar lists */
.side-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.side-row:last-child {
    border-bottom: none;
}

.side-row-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.side-year {
    flex: none;
    width: 2.25rem;
    font-variant-numeric: tabular-nums;
}

.side-rank {
    width: 1rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Search match highlighting */
mark {
    color: inherit;
    background: rgba(var(--mud-palette-warning-rgb), .2);
    border-radius: 2px;
    padding: 0 1px;
}

/* App bar: the site name, then its sections. On phones the sections move into a side menu. */
.mud-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.site-section {
    opacity: .85;
}

.site-menu-button {
    display: none !important;
}

/* Just above phone width, six sections fit only as words. */
@media (min-width: 600px) and (max-width: 759.98px) {
    .site-section .mud-button-icon-start {
        display: none;
    }
}

/* On phones the sections move into the menu. */
@media (max-width: 599.98px) {
    .site-sections {
        display: none !important;
    }

    .site-menu-button {
        display: inline-flex !important;
    }
}

.site-menu-header {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.site-menu .site-menu-section {
    font-weight: 600;
}

/* The section being viewed, even on a page deeper than its own link. */
.site-menu .site-menu-section.current .mud-nav-link {
    color: var(--mud-palette-primary);
}

.site-menu .site-menu-link .mud-nav-link {
    padding-left: 40px;
}

.site-section.active {
    opacity: 1;
    color: var(--mud-palette-primary);
    background: rgba(var(--mud-palette-primary-rgb), .10);
}

/* Search */
/* One line with an ellipsis; the full text is in the title attribute. */
.truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Timeline */
.timeline-year {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

.timeline-year:last-child {
    border-bottom: none;
}

.timeline-label {
    flex: none;
    width: 5.5rem;
}

.timeline-months {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
}

.timeline-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    border-radius: 4px;
    font-size: .75rem;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
    background: rgba(var(--mud-palette-primary-rgb), calc(.08 + .4 * var(--level, 0)));
}

a.timeline-month:hover,
a.timeline-month:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: -2px;
}

.timeline-month.empty {
    background: none;
    color: var(--mud-palette-text-secondary);
}

.timeline-month.empty .timeline-month-name {
    color: var(--mud-palette-text-secondary);
}

.timeline-month-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 599.98px) {
    .timeline-year {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .timeline-months {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Previous / next topic */
.topic-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.topic-nav-link {
    display: block;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    color: inherit;
    text-decoration: none;
}

.topic-nav-link.next {
    text-align: right;
}

.topic-nav-link:hover,
.topic-nav-link:focus-visible {
    border-color: var(--mud-palette-primary);
}

.topic-nav-icon {
    vertical-align: middle;
    font-size: 1rem !important;
}

/* Pager */
.page-jump {
    width: 5.5rem;
}

.page-jump .mud-input-control {
    margin: 0;
}

/* The bar above a list (Components/ListToolbar.razor; the map's toolbar uses the same classes): search first, then filters, then the
   count on the right. On a phone the further filters fold behind a "Filters" button. */
.list-toolbar {
    position: relative;
    overflow: hidden;
}

.list-toolbar .list-search {
    flex: 1 1 220px;
    max-width: 340px;
    min-width: 200px;
}

/* A select or autocomplete in the bar: MudBlazor puts the field's class inside a growing .mud-select, so that is what is sized. */
.list-toolbar .mud-select {
    flex: 0 1 170px;
    min-width: 140px;
}

.list-toolbar .mud-select .mud-input-control {
    min-width: 0;
}

.list-toolbar .mud-select:has(.search-narrow) {
    flex: 0 0 116px;
    min-width: 0;
}

/* A page's name at the start of its toolbar (a forum's). */
.list-toolbar .list-title {
    margin: 0;
    white-space: nowrap;
}

.list-toolbar .list-counts {
    white-space: nowrap;
}

.list-toolbar-filters {
    display: contents;
}

.list-filters-button {
    display: none;
}

.list-toolbar-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-background-gray);
}

.list-toolbar-busy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

@media (max-width: 599.98px) {
    .list-toolbar .list-search {
        flex-basis: 100%;
        max-width: none;
    }

    .list-filters-button {
        display: inline-flex;
    }

    .list-toolbar-filters {
        display: none;
    }

    .list-toolbar-filters.open {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        padding-top: 4px;
    }

    .list-toolbar-filters.open > * {
        flex: 1 1 100%;
        max-width: none;
    }
}

/* One row per item in a bordered list (books, places, players, signs): a picture, the name and details, a number on the right. */
.item-rows {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    overflow: hidden;
    transition: opacity .15s;
}

/* The list is reloading: the old rows stay, dimmed, until the new ones arrive. */
.item-rows.busy {
    opacity: .55;
}

.item-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 16px;
    color: inherit;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.item-row:last-child {
    border-bottom: 0;
}

a.item-row:hover,
a.item-row:focus-visible {
    background: var(--mud-palette-action-default-hover);
}

.item-row-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
}

.item-row-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
}

.item-row-title {
    margin: 0;
    color: var(--mud-palette-primary);
}

/* The start of a book's text or a post: two lines at most. */
.item-row-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
    color: var(--mud-palette-text-secondary);
}

/* Highlighted matches use the main text colour for contrast, in the grey text and in the coloured titles. */
.item-row-title mark,
.item-row-text mark {
    color: var(--mud-palette-text-primary);
}

.item-row-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.item-row-size {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

/* A player's counts: the one the list is sorted by first, in the primary colour; on a phone only that one. */
.player-row {
    align-items: center;
}

.player-row .player-row-head {
    flex: none;
    width: 44px;
    height: 44px;
}

.player-row-stats {
    flex: none;
    display: flex;
    gap: 20px;
}

.player-row-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 48px;
    line-height: 1.2;
}

.player-row-stat.lead .mud-typography-subtitle1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
}

@media (max-width: 599.98px) {
    .player-row-stat:not(.lead) {
        display: none;
    }

    .item-row-sign {
        width: calc(90 * 0.9px);
    }

    .item-row-sign .mc-sign {
        --px: 0.9px;
    }
}

/* Two lists side by side (Search's groups, a detail page's related lists); one above the other on a narrow screen. */
.item-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 16px 20px;
}

/* Grey shapes standing in for rows while a list's first page loads. */
.skeleton {
    display: block;
    border-radius: 4px;
    background: var(--mud-palette-background-gray);
}

.skeleton-slot {
    flex: none;
    width: 44px;
    height: 44px;
}

/* A list with nothing to show (Components/EmptyState.razor). */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 40px 24px;
    text-align: center;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
}

.empty-state .mud-typography-body2 {
    max-width: 420px;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--mud-palette-primary);
    background: var(--mud-palette-background-gray);
}

/* A detail page's header (a place's): the picture, name, details and actions, then a strip of facts. */
.detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.detail-header-text {
    flex: 1 1 360px;
    min-width: 0;
}

.detail-description {
    max-width: 720px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 24px;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--mud-palette-table-lines);
}

.detail-facts dt {
    font-size: .75rem;
    color: var(--mud-palette-text-secondary);
}

.detail-facts dd {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 0;
    font-weight: 500;
}

.detail-tabs .mud-tabs-tabbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* A section heading with its count and a link to all of them (detail pages, Search). */
.section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.section-title .section-count {
    font-size: .75rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
    color: var(--mud-palette-primary);
    background: var(--mud-palette-background-gray);
}

.section-title .section-all {
    margin-left: auto;
}

/* Rows in a list of posts, separated by a rule (in place of a divider between items). */
.list-row + .list-row {
    border-top: 1px solid var(--mud-palette-divider);
}

/* Gallery: square tiles cropped to fill, the date along the bottom; the viewer shows the whole image. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.gallery-skeleton {
    aspect-ratio: 1;
}

.gallery-months.busy {
    opacity: .55;
}

@media (max-width: 599.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-background-gray);
    cursor: zoom-in;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease-out;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
    transform: scale(1.04);
}

.gallery-tile:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.gallery-tile-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 8px 6px;
    font-size: .75rem;
    color: #fff;
    text-align: left;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
}

.gallery-years {
    flex-wrap: wrap;
}

.gallery-viewer-image {
    display: flex;
    justify-content: center;
    background: var(--mud-palette-background-gray);
    border-radius: var(--mud-default-borderradius);
}

.gallery-viewer-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    image-rendering: auto;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-tile img {
        transition: none;
    }
}

/* Search the archive: one group per kind of thing, each with its count. */
.find-group {
    min-width: 0;
}

/* Search: results dim while a new search runs. */
.search-results.busy,
.search-groups.busy {
    opacity: .55;
    transition: opacity .15s;
}

/* Blazor's last-resort error bar (errors outside a page's error boundary). Blazor shows it by setting an inline
   display, so it is hidden here rather than with the hidden attribute (MudBlazor's [hidden] rule is !important). */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2000;
    padding: 12px 16px;
    background: #b3261e;
    color: #fff;
    font: 500 14px/1.4 Inter, system-ui, sans-serif;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .25);
}

#blazor-error-ui .reload { color: #fff; margin-left: 8px; text-decoration: underline; }

/* Heads are pixel art, stored at 16 pixels per face pixel: scale them without blurring. */
.user-avatar img {
    image-rendering: pixelated;
}

/* Tabs keep their case; the nested tabs (a player's Forum sub tabs, their forum accounts) are smaller than the main ones. */
.mud-tabs .mud-tab {
    text-transform: none;
}

/* The nested tabs sit straight under the main ones on a slightly tinted, shorter strip. */
.player-subtabs .mud-tabs-toolbar,
.player-subtabs .mud-tabs-tabbar,
.player-subtabs .mud-tabs-tabbar-inner,
.player-subtabs .mud-tabs-tabbar-content,
.player-subtabs .mud-tabs-tabbar-wrapper,
.account-tabs .mud-tabs-toolbar,
.account-tabs .mud-tabs-tabbar,
.account-tabs .mud-tabs-tabbar-inner,
.account-tabs .mud-tabs-tabbar-content,
.account-tabs .mud-tabs-tabbar-wrapper {
    min-height: 34px;
    height: auto;
}

/* Every layer of the tab bar is tinted, as the library gives some of them a background of their own. */
.player-subtabs .mud-tabs-toolbar,
.player-subtabs .mud-tabs-tabbar,
.player-subtabs .mud-tabs-tabbar-inner,
.player-subtabs .mud-tabs-tabbar-content,
.player-subtabs .mud-tabs-tabbar-wrapper,
.account-tabs .mud-tabs-toolbar,
.account-tabs .mud-tabs-tabbar,
.account-tabs .mud-tabs-tabbar-inner,
.account-tabs .mud-tabs-tabbar-content,
.account-tabs .mud-tabs-tabbar-wrapper {
    background-color: var(--mud-palette-background-gray) !important;
}

.player-subtabs .mud-tabs-toolbar,
.account-tabs .mud-tabs-toolbar {
    border-radius: var(--mud-default-borderradius);
}

.player-subtabs .mud-tab,
.account-tabs .mud-tab {
    min-width: 0;
    min-height: 34px;
    padding: 4px 12px;
    font-size: .8125rem;
}

/* A player's forum accounts: a bordered strip with the chosen account in the accent colour, so the switch is easy to see. */
.account-tabs .mud-tabs-toolbar {
    border-top: 1px solid var(--mud-palette-lines-default);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
}

.account-tabs .mud-tab {
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

.account-tabs .mud-tab.mud-tab-active {
    font-weight: 600;
    color: var(--mud-palette-primary-text);
    background: var(--mud-palette-primary);
}

.account-tabs .mud-tab-slider {
    height: 3px;
}

/* The footer: every section again, for whoever scrolled to the end of a page. */
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Read by screen readers, not shown. */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
