:root {
    /* House style: see HUISSTIJL.md in the repository root before adding or changing anything visual.
       House style: the three brand colours (ivory = dice, wood = the game table, turquoise = the deaf community; this
       turquoise is the logo's own) plus the logo's outline grey. Darker shades of the same colours are only used where
       text needs the contrast: links (turquoise ink) and buttons (dark wood). */
    --dmp-ivory: #fffff0;
    --dmp-ivory-dark: #f7f3e3;
    --dmp-turquoise: #66c1bf;
    --dmp-turquoise-tint: #e0f3f2;
    --dmp-turquoise-ink: #1d7470;
    --dmp-wood: #aa845a;
    --dmp-wood-dark: #7a5c3a;
    --dmp-wood-darker: #5a4329;
    --dmp-charcoal: #585854;
    --dmp-ink: #2b2b28;
    --dmp-display-font: 'Fredoka', 'Quicksand', 'Arial Rounded MT Bold', sans-serif;

    /* Accent surfaces (selected dropdown items, colour badges): turquoise with dark text (contrast about 6:1). */
    --dmp-sidebar-bg: var(--dmp-turquoise);
    --dmp-sidebar-fg: var(--dmp-ink);
}

/* Typography matches the Deaf Meeples website: Quicksand throughout, dark grey text. */
:root {
    --dmp-font-family: 'Quicksand', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --dmp-text-color: var(--dmp-ink);
    --bs-body-font-family: var(--dmp-font-family);
    --bs-body-color: var(--dmp-text-color);
    --bs-body-color-rgb: 43, 43, 40;
    /* Ivory base background instead of white. */
    --dmp-body-bg: #fffff0;
    --bs-body-bg: var(--dmp-body-bg);
    --bs-body-bg-rgb: 255, 255, 240;
    /* Form fields: halfway between white and the ivory page, so they stand out from it. */
    --dmp-input-bg: #fffff8;
    /* Cards (board games, events, other games, …): a little lighter than the ivory page, so they lift off it. */
    --dmp-card-bg: #fbf8ec;
    --bs-border-color: #e6dfc7;
}

.card {
    --bs-card-bg: var(--dmp-card-bg);
    --bs-card-border-color: #e6dfc7;
    --bs-card-border-radius: 1rem;
    --bs-card-inner-border-radius: calc(1rem - 1px);
}

html, body {
    /* Full-width colour bands (home page) reach the screen edges without a sideways scrollbar. */
    overflow-x: clip;
    font-family: var(--dmp-font-family);
    color: var(--dmp-text-color);
    background-color: var(--dmp-body-bg);
}

/* Text fields, text areas and dropdowns (Bootstrap gives them the page background). Disabled and read-only fields keep
   Bootstrap's grey (:disabled / [readonly] rules are more specific). */
.form-control,
.form-select {
    background-color: var(--dmp-input-bg);
}

/* The standard dropdown (SearchableSelect, SuggestInput, LookupSelect; wwwroot/searchable-select.js): a text field
   (looks like a dropdown) with a filtered list below it; the real select stays hidden. */
.searchable-select {
    position: relative;
}

/* Next to a button (input-group): takes the remaining width, like a direct .form-select. */
.input-group > .searchable-select {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.searchable-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.searchable-select__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1070;
    min-width: 14rem;
    max-height: 18rem;
    margin: 0.125rem 0 0;
    padding: 0.25rem 0;
    overflow-y: auto;
    background: var(--dmp-input-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.searchable-select__option {
    padding: 0.3rem 0.75rem;
    cursor: pointer;
}

.searchable-select__option:hover,
.searchable-select__option.active {
    background: var(--dmp-turquoise);
    color: var(--dmp-ink);
}

.searchable-select__group {
    padding: 0.4rem 0.75rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color);
}

.searchable-select__empty {
    padding: 0.3rem 0.75rem;
    color: var(--bs-secondary-color);
}

/* Inside an input-group (field + button): square the corners that touch the button, like a direct .form-select. */
.input-group > .searchable-select:not(:last-child) .searchable-select__input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .searchable-select:not(:first-child) .searchable-select__input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* A short fixed list ("pick"): chosen by clicking, not typed in. */
.searchable-select__input--pick {
    cursor: pointer;
    caret-color: transparent;
}

.searchable-select__input:focus {
    position: relative;
    z-index: 5;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--dmp-display-font);
    font-weight: 600;
    color: var(--dmp-charcoal);
    text-wrap: balance;
}

/* Page titles: the rounded display face, like the lettering in the logo. */
h1, .h1 {
    font-size: 42px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* Introduction text. */
.lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--dmp-text-color);
}

/* Links: turquoise ink (the logo turquoise is too light for text on ivory), dark wood on hover/focus/active; never underlined. */
:root {
    --bs-link-color: var(--dmp-turquoise-ink);
    --bs-link-color-rgb: 29, 116, 112;
    --bs-link-hover-color: var(--dmp-wood-darker);
    --bs-link-hover-color-rgb: 90, 67, 41;
}

a, .btn-link {
    color: var(--dmp-turquoise-ink);
    text-decoration: none;
}

a:not(.btn):not(.nav-link):hover,
a:not(.btn):not(.nav-link):focus-visible,
a:not(.btn):not(.nav-link):active,
.btn-link:hover,
.btn-link:active {
    color: var(--dmp-wood-darker);
    text-decoration: none;
}

/*
    Links in running text are underlined: the link colour alone differs too little from the text colour (2.6:1) for
    visitors who see colours less well (WCAG 1.4.1). Menus, buttons, cards and lists keep their own look.
*/
main :is(p, dd, td, figcaption, .form-text, .alert) a:not(.btn):not(.stretched-link):not(.alert-link):not(.badge) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

main :is(p, dd, td, figcaption, .form-text, .alert) a:not(.btn):not(.stretched-link):not(.badge):hover {
    text-decoration-thickness: 2px;
}

/* Buttons: rounded, in the display face. */
.btn {
    font-family: var(--dmp-display-font);
    font-weight: 600;
    --bs-btn-border-radius: 50rem;
    --bs-btn-padding-x: 1.1rem;
}

.btn-sm {
    --bs-btn-padding-x: 0.75rem;
}

.btn-lg {
    --bs-btn-padding-x: 1.5rem;
}

/* Primary buttons: dark wood (the game table) with ivory text (contrast about 6:1); darker on hover/press. */
.btn-primary {
    --bs-btn-color: var(--dmp-ivory);
    --bs-btn-bg: var(--dmp-wood-dark);
    --bs-btn-border-color: var(--dmp-wood-dark);
    --bs-btn-hover-color: var(--dmp-ivory);
    --bs-btn-hover-bg: #6a4f31;
    --bs-btn-hover-border-color: #6a4f31;
    --bs-btn-active-color: var(--dmp-ivory);
    --bs-btn-active-bg: var(--dmp-wood-darker);
    --bs-btn-active-border-color: var(--dmp-wood-darker);
    --bs-btn-disabled-color: var(--dmp-ivory);
    --bs-btn-disabled-bg: var(--dmp-wood-dark);
    --bs-btn-disabled-border-color: var(--dmp-wood-dark);
    --bs-btn-focus-shadow-rgb: 122, 92, 58;
}

/* Secondary actions (e.g. Report, Clear search): outlined in dark wood; filled like .btn-primary on hover/press. */
.btn-outline-primary {
    --bs-btn-color: var(--dmp-wood-dark);
    --bs-btn-border-color: var(--dmp-wood-dark);
    --bs-btn-hover-color: var(--dmp-ivory);
    --bs-btn-hover-bg: var(--dmp-wood-dark);
    --bs-btn-hover-border-color: var(--dmp-wood-dark);
    --bs-btn-active-color: var(--dmp-ivory);
    --bs-btn-active-bg: var(--dmp-wood-darker);
    --bs-btn-active-border-color: var(--dmp-wood-darker);
    --bs-btn-disabled-color: var(--dmp-wood-dark);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--dmp-wood-dark);
    --bs-btn-focus-shadow-rgb: 122, 92, 58;
}

/* Toggle groups (e.g. the board games view): the selected button is filled like .btn-primary. Square-ish, as a group. */
.btn-toggle-group .btn-outline-primary {
    --bs-btn-active-bg: var(--dmp-wood-dark);
    --bs-btn-active-border-color: var(--dmp-wood-dark);
    --bs-btn-border-radius: var(--bs-border-radius);
}

/* Pagination (Pager) in the same style: outlined in dark wood, current page filled like .btn-primary. */
.pagination {
    --bs-pagination-color: var(--dmp-wood-dark);
    --bs-pagination-border-color: var(--dmp-wood-dark);
    --bs-pagination-hover-color: var(--dmp-ivory);
    --bs-pagination-hover-bg: var(--dmp-wood-dark);
    --bs-pagination-hover-border-color: var(--dmp-wood-dark);
    --bs-pagination-focus-color: var(--dmp-wood-dark);
    --bs-pagination-active-color: var(--dmp-ivory);
    --bs-pagination-active-bg: var(--dmp-wood-dark);
    --bs-pagination-active-border-color: var(--dmp-wood-dark);
    --bs-pagination-disabled-border-color: var(--dmp-wood-dark);
    font-weight: 700;
}

/* Focus ring (keyboard and fields): turquoise ink around a thin ivory edge, instead of Bootstrap blue. */
:root {
    --bs-focus-ring-color: rgba(29, 116, 112, 0.35);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--dmp-ivory), 0 0 0 0.25rem var(--dmp-turquoise-ink);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--dmp-turquoise-ink);
}

/* Ticked checkboxes, radio buttons and switches: dark wood like the buttons. */
.form-check-input:checked {
    background-color: var(--dmp-wood-dark);
    border-color: var(--dmp-wood-dark);
}

/*
    Bootstrap labels and messages in the house style, so pages can keep using the standard classes:
    - "Nu bezig" (text-bg-success) and info labels: turquoise with dark text.
    - "Concept" and game names under photos (text-bg-secondary, text-bg-light): ivory with a thin edge.
    - Search matches (text-bg-warning) and text-bg-primary: dark wood with ivory text.
    - Messages: info and success like .dmp-notice (light turquoise, wooden edge), warnings light wood, secondary ivory.
      Errors (danger) stay red: that is the colour everyone knows for "something went wrong".
*/
.text-bg-success,
.text-bg-info {
    color: var(--dmp-ink) !important;
    background-color: var(--dmp-turquoise) !important;
}

.text-bg-secondary,
.text-bg-light {
    color: var(--dmp-ink) !important;
    background-color: var(--dmp-ivory-dark) !important;
    border: 1px solid var(--bs-border-color);
}

.text-bg-warning,
.text-bg-primary {
    color: var(--dmp-ivory) !important;
    background-color: var(--dmp-wood-dark) !important;
}

.alert-info,
.alert-success {
    --bs-alert-color: var(--dmp-ink);
    --bs-alert-bg: var(--dmp-turquoise-tint);
    --bs-alert-border-color: var(--dmp-turquoise-tint);
    --bs-alert-link-color: var(--dmp-turquoise-ink);
    border-left: 5px solid var(--dmp-wood);
}

.alert-warning {
    --bs-alert-color: var(--dmp-ink);
    --bs-alert-bg: color-mix(in srgb, var(--dmp-wood) 18%, var(--dmp-ivory));
    --bs-alert-border-color: color-mix(in srgb, var(--dmp-wood) 30%, var(--dmp-ivory));
    --bs-alert-link-color: var(--dmp-wood-darker);
    border-left: 5px solid var(--dmp-wood-dark);
}

.alert-secondary {
    --bs-alert-color: var(--dmp-ink);
    --bs-alert-bg: var(--dmp-ivory-dark);
    --bs-alert-border-color: var(--bs-border-color);
    --bs-alert-link-color: var(--dmp-turquoise-ink);
}

/* Quiet extra buttons (Cancel, Back, …): outlined in the logo grey, ivory-dark when hovered. */
.btn-outline-secondary {
    --bs-btn-color: var(--dmp-charcoal);
    --bs-btn-border-color: var(--dmp-charcoal);
    --bs-btn-hover-color: var(--dmp-ink);
    --bs-btn-hover-bg: var(--dmp-ivory-dark);
    --bs-btn-hover-border-color: var(--dmp-charcoal);
    --bs-btn-active-color: var(--dmp-ink);
    --bs-btn-active-bg: var(--bs-border-color);
    --bs-btn-active-border-color: var(--dmp-charcoal);
    --bs-btn-disabled-color: var(--dmp-charcoal);
    --bs-btn-disabled-border-color: var(--dmp-charcoal);
    --bs-btn-focus-shadow-rgb: 88, 88, 84;
}

/* 404 and error page (NotFound.razor, Error.razor): the meeple, a short message and the way back, centred. */
.status-page {
    max-width: 36rem;
    margin: 2rem auto 0;
    text-align: center;
}

.status-page__mark {
    width: 10rem;
    height: auto;
    margin-bottom: 1.5rem;
}

.status-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

h1:focus {
    outline: none;
}

/* "Skip to content" (MainLayout): off screen until it has keyboard focus. The main area itself shows no focus ring. */
.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    font-weight: 700;
    color: var(--dmp-ivory);
    background: var(--dmp-wood-dark);
    border-radius: 50rem;
    transform: translateY(-200%);
}

.skip-link:focus {
    color: var(--dmp-ivory);
    transform: none;
}

main:focus {
    outline: none;
}

/* Jumping to a part of a page (#section): keep its heading below the sticky site header. */
main [id] {
    scroll-margin-top: 6rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Grid of board game cards (overview and event details). */
.boardgame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
}

/* "List" view of the game chest: one game per row (BoardGameListItem); two columns on wide screens. */
.boardgame-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
}

@media (min-width: 1200px) {
    .boardgame-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Cover of an other game (not from our game chest; event details and edit page): same look as a board game card's image. */
.other-game-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: #eef8f7;
    color: #8fb9b4;
}

.other-game-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

/* "Compact" view: up to 6 cards per row. */
.boardgame-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

/* Automatic (--auto; board games overview without a chosen view, event details): compact on phones, cards on larger
   screens. The overview's view toggle marks the button of the view actually shown (.view-auto-mobile / .view-auto-wide),
   filled like .active. */
@media (max-width: 767.98px) {
    .boardgame-grid--auto {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .btn-toggle-group .btn.view-auto-mobile {
        color: var(--bs-btn-active-color);
        background-color: var(--bs-btn-active-bg);
        border-color: var(--bs-btn-active-border-color);
    }
}

@media (min-width: 768px) {
    .btn-toggle-group .btn.view-auto-wide {
        color: var(--bs-btn-active-color);
        background-color: var(--bs-btn-active-bg);
        border-color: var(--bs-btn-active-border-color);
    }
}

@media (min-width: 768px) {
    .boardgame-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .boardgame-grid--compact {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* An open photo modal must not be dimmed along with its non-matching event photo
   (global, because scoped CSS can't reach into :has() across components). */
.event-details__figure--other:has(.photo-lightbox) {
    opacity: 1;
}

/* Dropdown menus (Over ons, Beheer, language): an ivory card with rounded items in the display face; hover in the
   turquoise tint, the current page or language in full turquoise with the wooden bar that underlines the current menu item. */
.dropdown-menu {
    --bs-dropdown-bg: var(--dmp-ivory);
    --bs-dropdown-border-color: #e6dfc7;
    --bs-dropdown-border-radius: 1rem;
    --bs-dropdown-padding-x: 0.45rem;
    --bs-dropdown-padding-y: 0.45rem;
    --bs-dropdown-spacer: 0.5rem;
    --bs-dropdown-item-padding-x: 0.85rem;
    --bs-dropdown-item-padding-y: 0.5rem;
    --bs-dropdown-item-border-radius: 0.6rem;
    --bs-dropdown-link-color: var(--dmp-ink);
    --bs-dropdown-link-hover-color: var(--dmp-ink);
    --bs-dropdown-link-hover-bg: var(--dmp-turquoise-tint);
    --bs-dropdown-link-active-color: var(--dmp-ink);
    --bs-dropdown-link-active-bg: var(--dmp-turquoise);
    box-shadow: 0 14px 30px rgba(60, 45, 25, 0.16);
    font-family: var(--dmp-display-font);
    font-weight: 500;
}

.dropdown-menu li + li {
    margin-top: 0.15rem;
}

.dropdown-item.active {
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--dmp-wood);
}

/* Section title with a short wooden bar under it (about pages). */
.dmp-section-title {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

.dmp-section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 5px;
    margin-top: 0.6rem;
    border-radius: 3px;
    background: var(--dmp-wood);
}

/* Financial view of the game chest (data-table.js): sortable column headers with an arrow for the direction, a row of
   filter fields under them, and a status line with the number of visible copies and "clear filters". */
.boardgame-finance thead th {
    white-space: nowrap;
}

.boardgame-finance__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.boardgame-finance__sort::after {
    content: "↕";
    font-size: 0.8em;
    opacity: 0.35;
}

.boardgame-finance th[aria-sort="ascending"] .boardgame-finance__sort::after {
    content: "↑";
    opacity: 1;
}

.boardgame-finance th[aria-sort="descending"] .boardgame-finance__sort::after {
    content: "↓";
    opacity: 1;
}

.boardgame-finance__sort:hover,
.boardgame-finance__sort:focus-visible {
    color: var(--dmp-turquoise-ink);
}

.boardgame-finance__filters td {
    padding-top: 0;
    background: var(--dmp-ivory-dark);
}

.boardgame-finance__filters .form-control,
.boardgame-finance__filters .form-select {
    min-width: 9rem;
}

/* Color and language take no more room than they need: the name column gets the rest. */
.boardgame-finance .boardgame-finance__narrow {
    width: 1%;
}

.boardgame-finance__filters .boardgame-finance__narrow .form-select,
.boardgame-finance__filters .boardgame-finance__narrow .searchable-select {
    min-width: 6.5rem;
    max-width: 8rem;
}

/* New price and value % are edited in the table (data-table-edit.js): small fields that look like the cell until
   focused; a saved value briefly gets a turquoise edge. */
.boardgame-finance__edit {
    flex-wrap: nowrap;
    width: 8.5rem;
    margin-left: auto;
}

.boardgame-finance__edit--percentage {
    width: 5.5rem;
}

.boardgame-finance__edit .input-group-text {
    padding-inline: 0.4rem;
    background: var(--dmp-ivory-dark);
    color: var(--dmp-charcoal);
}

.boardgame-finance__edit .form-control.is-saved {
    border-color: var(--dmp-turquoise);
    box-shadow: 0 0 0 0.15rem var(--dmp-turquoise-tint);
}

.boardgame-finance__saved {
    color: var(--dmp-turquoise-ink);
}

.boardgame-finance__saved.is-error {
    color: var(--bs-form-invalid-color);
}

.boardgame-finance__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    min-height: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Printing (e.g. the report for publishers): page content only, without the navigation bar. */
@media print {
    .site-header,
    .site-footer,
    #blazor-error-ui {
        display: none !important;
    }
}

/* DateTextInput / DateTimeTextInput (shared, so not scoped). The native date input only provides the picker popup:
   invisible, but rendered (showPicker needs that) and placed under the button so the popup opens there. */
.date-text-input {
    position: relative;
}

.date-text-input__picker {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/*
    Tabs above admin pages that belong together (BoardTabs, ListTabs): stay just below the sticky site header while
    scrolling, and scroll sideways on a narrow screen. 5rem + 4px is the height of the site header (NavMenu).
    House style: pills in the display face, outlined in dark wood; the current one filled dark wood with ivory text,
    like .btn-primary and the pagination.
*/
.admin-tabs {
    position: sticky;
    top: calc(5rem + 4px);
    z-index: 1010;
    margin: -0.5rem 0 1.5rem;
    padding: 0.6rem 0;
    overflow-x: auto;
    background: var(--dmp-ivory);
    border-bottom: 1px solid var(--bs-border-color);
}

.admin-tabs .nav-link {
    padding: 0.35rem 1rem;
    font-family: var(--dmp-display-font);
    font-weight: 600;
    white-space: nowrap;
    color: var(--dmp-wood-dark);
    border: 1px solid var(--dmp-wood-dark);
    border-radius: 50rem;
}

.admin-tabs .nav-link:hover,
.admin-tabs .nav-link:focus-visible {
    color: var(--dmp-ivory);
    background: var(--dmp-wood-dark);
}

.admin-tabs .nav-link.active {
    color: var(--dmp-ivory);
    background: var(--dmp-wood-darker);
    border-color: var(--dmp-wood-darker);
}

/* Small count in the admin menu (open tasks): dark wood with ivory text, like the counts on the Tasks page. */
.nav-count {
    font-size: 0.75rem;
    color: var(--dmp-ivory);
    background: var(--dmp-wood-dark);
}

/* Notice that links to a page with more (e.g. open tasks on the board overview): light turquoise with a wooden edge. */
.dmp-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 56rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    color: var(--dmp-ink);
    text-decoration: none;
    background: var(--dmp-turquoise-tint);
    border-left: 5px solid var(--dmp-wood);
    border-radius: var(--bs-border-radius-lg);
}

.dmp-notice:hover {
    color: var(--dmp-ink);
    background: #d2edeb;
}

/* Filter bar of the game chest (BoardGameFilterBar): groups side by side, each a label above a segmented control.
   Wraps to one group per row on small screens. */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--dmp-card-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
}

.filter-bar__group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.filter-bar__label,
.filter-sort__label {
    font-family: var(--dmp-display-font);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dmp-charcoal);
}

/* Segmented control: choices joined in one white pill; the chosen ones turquoise. Wraps when it doesn't fit. */
.filter-segment {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 2px;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
}

.filter-segment__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 2rem;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    color: var(--dmp-ink);
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
}

.filter-segment__item:hover,
.filter-segment__item:focus-visible {
    background: var(--dmp-turquoise-tint);
    color: var(--dmp-ink);
}

.filter-segment__item.is-active,
.filter-segment__item.is-active:hover {
    background: var(--dmp-turquoise);
    color: var(--dmp-ink);
    font-weight: 600;
}

.filter-segment--small .filter-segment__item {
    min-height: 1.75rem;
    padding: 0.1rem 0.65rem;
    font-size: 0.8rem;
}

/* Order of the game chest, next to the result count (BoardGameSortToggle). */
.filter-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* The search box as the filter bar's last group: takes the remaining width, same height and pill shape as the
   segmented controls. The hint under it is left out here (the placeholder says what to type). */
.filter-bar .filter-bar__search {
    flex: 1 1 20rem;
}

.filter-bar .filter-bar__search .tag-search__box {
    min-height: 2.3rem;
    padding: 0.15rem 0.85rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
}

.filter-bar .filter-bar__search .btn {
    min-height: 2.3rem;
    padding: 0.2rem 1rem;
    font-size: 0.875rem;
}

.filter-bar .filter-bar__search .form-text,
.filter-bar .filter-bar__search a.btn-outline-primary {
    display: none;
}

/* Search tags in the filter bar in turquoise instead of Bootstrap's grey/blue badges. */
.filter-bar .tag-search__tag {
    background-color: var(--dmp-turquoise-tint) !important;
    color: var(--dmp-ink) !important;
    border: 1px solid var(--dmp-turquoise);
}

/* "Clear" next to the result count. */
.filter-clear {
    color: var(--dmp-turquoise-ink);
    font-weight: 600;
}

/* Photo slideshow on the event page (photo-slideshow.js): dark backdrop, photo with its caption, round light buttons. */
.photo-slideshow__link {
    display: block;
    cursor: zoom-in;
}

body.photo-slideshow-open {
    overflow: hidden;
}

.photo-slideshow {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 4rem;
    background: rgba(43, 43, 40, 0.92);
}

.photo-slideshow__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.photo-slideshow__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    border-radius: var(--bs-border-radius);
    object-fit: contain;
}

.photo-slideshow__caption {
    max-width: 48rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: var(--dmp-ivory);
    color: var(--dmp-ink);
    font-size: 1.05rem;
    text-align: center;
    white-space: pre-line;
}

.photo-slideshow__counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.15rem 0.75rem;
    border-radius: 1rem;
    background: var(--dmp-turquoise);
    color: var(--dmp-ink);
    font-family: var(--dmp-display-font);
    font-weight: 600;
}

.photo-slideshow__button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dmp-ivory);
    color: var(--dmp-ink);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.35);
}

.photo-slideshow__button:hover {
    background: var(--dmp-turquoise);
}

.photo-slideshow__button:focus-visible {
    outline: 3px solid var(--dmp-turquoise);
    outline-offset: 3px;
}

.photo-slideshow__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
}

.photo-slideshow__previous,
.photo-slideshow__next {
    top: 50%;
    transform: translateY(-50%);
}

.photo-slideshow__previous {
    left: 0.75rem;
}

.photo-slideshow__next {
    right: 0.75rem;
}

/* Phone: the arrows sit at the bottom, under the photo (swiping also works). */
@media (max-width: 575.98px) {
    .photo-slideshow {
        padding: 3.5rem 0.75rem 5rem;
    }

    .photo-slideshow__previous,
    .photo-slideshow__next {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .photo-slideshow__previous {
        left: calc(50% - 3.5rem);
    }

    .photo-slideshow__next {
        right: calc(50% - 3.5rem);
    }
}

/* Logo of an organization (samenwerkingspartner): shown whole on white, whatever its shape. */
.organization-logo {
    display: block;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.2rem;
}

.organization-logo--small {
    width: 4.5rem;
    height: 2.75rem;
    flex: none;
}

.organization-logo--preview {
    width: 10rem;
    height: 6rem;
}
