/*
 * Frame of the club site on the public pages (start page, form page, waiting room, the pages for
 * an unknown form, a status code and an error). The body carries the classes tsv tsv-public
 * tsv-club, the login and the internal area do not load this file.
 *
 * The values are those of the club site: its global styles, the navigation bar, the footer, the
 * header image and the container. Loaded after tsv.css, so that the colors and forms here
 * replace those of the portal.
 */

body.tsv-club {
    --tsv-primary: #6C64B0;
    --tsv-primary-box: #665DAD;
    --tsv-color2: #5D78A0;
    --tsv-color3: #E3E7EE;
    --tsv-color4: #465573;
    --tsv-primary-light: #A39ECD;
    --tsv-text: #b2b2b2;
    --tsv-error: #b02a37;
    --bs-primary: #6C64B0;
    --bs-primary-rgb: 108, 100, 176;
    --bs-link-color: #6C64B0;
    --bs-link-color-rgb: 108, 100, 176;
    --bs-link-hover-color: #5B53A2;
    --bs-link-hover-color-rgb: 91, 83, 162;
    --bs-focus-ring-color: rgba(108, 100, 176, 0.25);

    /* The club site sets the font in the style attribute of its body */
    font-family: sans-serif;

    /* Colors of text, darker than the colors of areas, bars and buttons, so that every text reads
       well on white: running text black, links in the club color 7.1 to 1, every heading and the
       labels of the form in the club color 9.2 to 1, the titles of the tiles in the blue gray
       11.4 to 1 */
    --tsv-text-body: #000000;
    --tsv-heading: #564E99;
    --tsv-heading-strong: #463F80;
    --tsv-heading-dark: #2E3A52;

    /* Borders of fields, check boxes, lists, areas and lines: 2.1 to 1 against white, the middle
       between the 1.3 to 1 of Bootstrap and a strong border of 3.7 to 1 */
    --tsv-border-strong: #AEB4BD;
}

/* Running text in the content and in the dialog is black, also the texts that Bootstrap greys out
   (text-muted, form-text) */
body.tsv-club main,
body.tsv-club .tsv-dialog {
    color: var(--tsv-text-body);
    --bs-body-color: var(--tsv-text-body);
    --bs-secondary-color: var(--tsv-text-body);
}

/* Borders with a higher contrast: every border of Bootstrap in the content and in the dialog
   (fields, selections, check boxes, radio buttons, input groups, lists) and the lines */
body.tsv-club main,
body.tsv-club .tsv-dialog {
    --bs-border-color: var(--tsv-border-strong);
    --bs-border-color-translucent: var(--tsv-border-strong);
}

body.tsv-club main hr {
    border-top-color: var(--tsv-border-strong);
    opacity: 1;
}

/* Messages keep their tint, the border in a darker tone of it */
.tsv-club .alert-success { border-color: #8FBEA4; }
.tsv-club .alert-danger { border-color: #DB8E93; }
.tsv-club .alert-warning { border-color: #D0B37B; }
.tsv-club .alert-info,
.tsv-club .alert-primary { border-color: #928CC5; }

/* Placeholders in fields stay grey, they are no text of the page */
body.tsv-club main .form-control::placeholder,
body.tsv-club .tsv-dialog .form-control::placeholder {
    color: #6c757d;
}

/* Links in the content in the darker club color */
body.tsv-club main a:not(.btn),
body.tsv-club main a:not(.btn):link,
body.tsv-club main a:not(.btn):visited,
body.tsv-club main a:not(.btn):hover,
body.tsv-club main a:not(.btn):active,
body.tsv-club main .message :is(p, li, td) a,
body.tsv-club main .message :is(p, li, td) a:visited {
    color: var(--tsv-heading);
}

/* Everything the browser scrolls into view stops below the fixed menu */
html:has(body.tsv-club) {
    scroll-padding-top: 90px;
}

/* Skip link with focus above the header bar, text in the color of the club on white */
.tsv-skip-link:focus {
    position: absolute !important;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: var(--tsv-primary);
    outline: 2px solid var(--tsv-primary);
}

/* Navigation bar: fixed at the top, logo 220 pixels wide, after 90 pixels of scrolling 120 pixels
   (class shrinked from wwwroot/js/club.js) */
.tsv-club-blocker {
    height: 90px;
    background-color: #ffffff !important;
}

.tsv-club-nav {
    background-color: #ffffff !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.tsv-club-nav .navbar-brand {
    height: 74px;
    transition: all .25s ease-out;
}

.tsv-club-nav .navbar-brand.shrinked {
    height: 44px;
}

.tsv-club-nav img {
    width: 220px;
    height: auto;
    transition: all .25s ease-out;
}

.tsv-club-nav .navbar-brand.shrinked img {
    width: 120px;
}

.tsv-club-nav .nav-link {
    color: rgba(0, 0, 0, .65) !important;
    padding-right: .8rem !important;
    padding-left: .8rem !important;
    text-underline-offset: 0.4rem;
    transition: background-color 0.4s ease;
}

.tsv-club-nav .nav-link:hover,
.tsv-club-nav .nav-item.show > .nav-link {
    color: var(--tsv-text);
    text-decoration: underline;
}

/* The current page and its parent entries: underlined in the color of the club */
.tsv-club-nav .nav-link.tsv-active,
.tsv-club-nav .nav-link.tsv-active:hover {
    color: var(--tsv-primary) !important;
    text-decoration: underline;
}

.tsv-club-nav #navbarToggler {
    background-color: white;
}

/* Bootstrap sets a fixed blue for the focus of the menu entries */
.tsv-club-nav .nav-link:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(108, 100, 176, 0.25);
}

/* A menu entry shows the light color of the club on click instead of the blue of Bootstrap */
.tsv-club-nav .dropdown-menu {
    border-radius: 0;
    min-width: 12rem;
    --bs-dropdown-link-active-bg: var(--tsv-color3);
    --bs-dropdown-link-active-color: var(--tsv-color4);
}

@media (prefers-reduced-motion: reduce) {
    .tsv-club-nav .navbar-brand, .tsv-club-nav img {
        transition: none;
    }
}

/* Header image per screen width. Browsers without WebP or without image-set with type keep the
   JPEG of the first declaration */
.tsv-header-image {
    height: 200px;
    background-size: cover;
    background-position: center 60%;
    background-image: url('/img/club/header.jpg');
    background-image: image-set(url('/img/club/header.webp') type('image/webp'), url('/img/club/header.jpg') type('image/jpeg'));
}

@media (max-width: 767.98px) {
    .tsv-header-image {
        background-image: image-set(url('/img/club/header-1280.webp') type('image/webp'), url('/img/club/header.jpg') type('image/jpeg'));
    }
}

@media (min-width: 768px) and (max-width: 1919.98px) {
    .tsv-header-image {
        background-image: image-set(url('/img/club/header-1920.webp') type('image/webp'), url('/img/club/header.jpg') type('image/jpeg'));
    }
}

/* Content: white container below the header image, at least as high as the window */
.tsv-container {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.tsv-club-main {
    min-height: max(300px, calc(100vh - 200px));
    outline: none;
}

/* Form page and waiting room: the title row (title, logo, note, description) over the full width of
   the container in tsv-club-page, below it the form in a column for reading and filling in,
   centered. The whole content of the page has square corners like the club site: the corner
   variables of Bootstrap are 0, fields, buttons, lists, input groups, alerts and progress bars
   follow them. Round stay radio buttons and spinners, they set their corners themselves. */
.tsv-club-column {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

body.tsv-club main {
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-xxl: 0;
}

/* tsv.css gives the alerts their own corners, also the messages at the bottom right outside main */
.tsv-club .alert {
    border-radius: 0;
}

/* Logo of the form on the right next to the title (form page and waiting room). tsv-club-page is a
   block formatting context, so the margin of the title stays inside it. The logo reaches from the top
   edge of the title over the note on required fields and ends just above the description: 100 pixels
   on a wide screen, 88 pixels on a phone, measured in the browser. The description starts below the
   logo (clear), so that it never flows around it when the text is set a little lower. A wide logo
   stops at 40 percent of the window and at most 360 pixels and is scaled down inside its box
   (object-fit of tsv-logo-right). */
.tsv-club-page {
    display: flow-root;
}
.tsv-club-page > .tsv-logo-row-end {
    float: right;
    margin: 0.5rem 0 0.75rem 1.5rem;
}
.tsv .tsv-club-page > .tsv-logo-row-end .tsv-logo-right {
    height: 100px;
    max-width: min(40vw, 360px);
}
.tsv-club-page .tsv-form-description {
    clear: right;
}

/* Box of the preview of a closed form (FormPreview) between the breadcrumb and the title: the
   same distance above and below. Below its margin collapses with the margin of tsv-title (2rem). */
.tsv-club-page > .tsv-preview-notice {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 575.98px) {
    .tsv-club-page > .tsv-logo-row-end {
        margin-left: 1rem;
    }
    .tsv .tsv-club-page > .tsv-logo-row-end .tsv-logo-right {
        height: 88px;
    }
}


/* Page after the submit and the states without a form (booked out, not yet or no longer
   available): heading with the bar on the left and text, as a content page of the club site */
.tsv-club .tsv-form-state .lead {
    font-size: 1rem;
    font-weight: 400;
}

/* Breadcrumb */
.tsv-fa-glyph {
    height: 1em;
    width: auto;
    vertical-align: -0.125em;
    fill: currentColor;
    overflow: visible;
}

.tsv-breadcrumb-home .tsv-fa-glyph {
    margin-right: 0.25rem;
}

/* Angle after the text of a link ("Zur Anmeldung"), like fa-angle-right ms-1 on the club site */
main a:not(.tsv-breadcrumb-home) > .tsv-fa-glyph {
    margin-left: 0.25rem;
}

/* Headings in the look of the club site. tsv-title (h1) has the same values in tsv.css */
.tsv-club .tsv-subtitle {
    font-size: 1.2rem;
    color: var(--tsv-heading-strong);
    margin-top: 3rem;
    margin-bottom: 1rem;
    border: none;
    padding-left: 0;
}

.tsv-club .tsv-title + .tsv-subtitle {
    margin-top: 1rem;
}

.tsv-club .tsv-as-h3,
.tsv-club .tsv-as-h4 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);
    border: none;
    padding-left: 0;
}

.tsv-club .tsv-as-h3 {
    font-size: 1.2rem;
    color: var(--tsv-heading-strong);
    margin-top: 2rem;
    margin-bottom: 1.8rem;
}

.tsv-club .tsv-as-h4 {
    font-size: calc(1.275rem + .3vw);
}

@media (min-width: 1200px) {
    .tsv-club .tsv-as-h4 {
        font-size: 1.5rem;
    }
}

/* Tiles of the start page in the look of the important notices of the club site (class message
   there), with the colored bar on the left. In the box the club color is used in the same hue
   but dark enough for 4.5 to 1 on --tsv-color3, links in body text are underlined */
.tsv-club .message {
    --tsv-primary: var(--tsv-primary-box);
    border-left: 4px var(--tsv-color2) solid;
    padding: 15px 25px;
    background-color: var(--tsv-color3);
}

.tsv-club .message > .tsv-as-h4 {
    font-size: 1.2rem;
    margin: 5px 0px;
    color: var(--tsv-heading-dark);
}

.tsv-club .message > p,
.tsv-club .message > .tsv-paragraph {
    margin: 5px 0px;
    color: var(--tsv-text-body);
}

.tsv-club .tsv-paragraph > :last-child {
    margin-bottom: 0;
}

body.tsv-club main .message :is(p, li, td) a,
body.tsv-club main .message :is(p, li, td) a:link,
body.tsv-club main .message :is(p, li, td) a:visited,
body.tsv-club main .message :is(p, li, td) a:hover,
body.tsv-club main .message :is(p, li, td) a:active {
    text-decoration: underline;
}

/* The sentence below the heading of the start page pulls up into the spacing of the heading */
.tsv-club .tsv-intro {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* Group path of a form at the top right of its tile, like the department of a notice. The
   separators between the parts are dark like the text. */
.tsv-club .message .tsv-form-group .tsv-group-path {
    color: var(--bs-body-color);
}

/* Lists in texts from the editor: squares instead of dots, as in main on the club site */
.tsv-club :is(.message, .tsv-form-description) ul {
    list-style-type: none;
    padding: 0px 0px 0px 32px;
}

.tsv-club :is(.message, .tsv-form-description) ul li:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: -27px;
    margin-right: 15px;
    background-color: var(--tsv-text);
}

.tsv-club :is(.message, .tsv-form-description) ul li:hover:before {
    background-color: var(--tsv-primary) !important;
}

/* Buttons are square, the filled one in the color of the club (tsv-button on the club site) */
.tsv-club .btn {
    --bs-btn-border-radius: 0;
    --bs-btn-border-radius-sm: 0;
    --bs-btn-border-radius-lg: 0;
    border-radius: 0;
}

.tsv-club .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--tsv-primary);
    --bs-btn-border-color: var(--tsv-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5B53A2;
    --bs-btn-hover-border-color: #5B53A2;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #50498F;
    --bs-btn-active-border-color: #50498F;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--tsv-primary);
    --bs-btn-disabled-border-color: var(--tsv-primary);
    --bs-btn-focus-shadow-rgb: 108, 100, 176;
}

.tsv-club .btn-outline-primary {
    --bs-btn-color: var(--tsv-primary);
    --bs-btn-border-color: var(--tsv-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tsv-primary);
    --bs-btn-hover-border-color: var(--tsv-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tsv-primary);
    --bs-btn-active-border-color: var(--tsv-primary);
    --bs-btn-focus-shadow-rgb: 108, 100, 176;
}

/* Focus of the input fields and set checkmarks in the color of the club */
.tsv-club .form-control:focus,
.tsv-club .form-select:focus,
.tsv-club .form-check-input:focus,
.tsv-club .was-validated .form-control:valid:focus,
.tsv-club .was-validated .form-select:valid:focus {
    border-color: var(--tsv-primary);
    box-shadow: 0 0 0 0.25rem rgba(108, 100, 176, 0.25);
}

/* Footer with the strip of the sponsors */
.tsv-sponsors {
    height: 100px;
    background-image: url('/img/club/sponsors.jpg');
    background-image: image-set(url('/img/club/sponsors.webp') type('image/webp'), url('/img/club/sponsors.jpg') type('image/jpeg'));
    background-size: contain;
    background-repeat: repeat-x;
    box-shadow: 0px 0px 15px -4px rgba(0, 0, 0, 0.5);
}

.tsv-club-footer footer {
    color: #ffffff;
}

.tsv-club-footer footer a,
.tsv-club-footer footer a:hover,
.tsv-club-footer footer a:visited {
    color: var(--tsv-text);
}

/* The fax number has the color of the links, but without underline, because it is not a link */
.tsv-club-footer .tsv-fax {
    color: var(--tsv-text);
}

/* Line height of 24 pixels, so every link has a click area 24 pixels high */
.tsv-club-footer footer .small {
    line-height: 1.75;
}

.tsv-club-footer footer a {
    padding: 4px 0;
}

.tsv-club-footer footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 2px;
}

.tsv-club-footer address {
    font-style: normal;
}

/* Link list styled as lines, followed by an empty line */
.tsv-club-footer .tsv-footer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75em 0;
}

/* Characters in front of the details, like fa-fw me-1 of the club site */
.tsv-club-footer .tsv-fa {
    height: 1em;
    width: 1.25em;
    vertical-align: -0.125em;
    fill: currentColor;
    margin-right: 0.25rem;
}

/*
 * Login dialog (Views/Shared/_ClubLogin.cshtml) with the values of the dialog frame and the login
 * dialog of the club site: a white, square area with shadow on a native <dialog> above a semi
 * transparent backdrop, header with heading and close, the subtitle below the heading.
 */
.tsv-dialog {
    --tsv-dialog-width: 34rem;
    --tsv-dialog-margin: 1rem;
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    width: min(var(--tsv-dialog-width), calc(100vw - 2 * var(--tsv-dialog-margin)));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tsv-text-body);
    overflow: visible;
}
.tsv-dialog-medium { --tsv-dialog-width: 34rem; }
.tsv-dialog:focus {
    outline: none;
}
.tsv-dialog::backdrop {
    background-color: rgba(24, 24, 27, 0.6);
}
.tsv-dialog[open] {
    animation: tsv-dialog-in 180ms ease-out;
}
.tsv-dialog[open]::backdrop {
    animation: tsv-backdrop-in 180ms ease-out;
}
.tsv-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 2 * var(--tsv-dialog-margin));
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(24, 24, 27, 0.35);
}
.tsv-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.75rem 0.75rem 1.75rem;
    flex-shrink: 0;
}
/* Heading with subtitle: the close button stays on the line of the heading, as without a subtitle
   (heading of 26 pixels centered on the 40 pixels of the button) */
.tsv-modal-header:has(.tsv-modal-titles) {
    align-items: flex-start;
}
.tsv-modal-titles {
    flex: 1;
    min-width: 0;
    padding-top: calc((2.5rem - 1.3 * 1.25rem) / 2);
}
.tsv-modal .tsv-modal-heading {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--tsv-heading-strong);
    overflow-wrap: anywhere;
}
/* Subtitle below the heading of the login: which internal area the dialog leads to */
.tsv-modal .tsv-modal-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    line-height: 1.3;
    color: var(--tsv-text-body);
}
.tsv-modal-close {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.6rem;
    border: 0;
    background: transparent;
    color: var(--tsv-color4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 120ms ease, color 120ms ease;
}
.tsv-modal-close svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
}
.tsv-modal-close:hover {
    background: var(--tsv-color3);
    color: var(--tsv-primary);
}
.tsv-modal-close:focus-visible {
    outline: 2px solid var(--tsv-primary);
    outline-offset: -2px;
}
.tsv-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.25rem 1.75rem 1.5rem;
    overflow: auto;
    overscroll-behavior: contain;
}
.tsv-dialog .form-control,
.tsv-dialog .form-select,
.tsv-dialog .input-group-text {
    border-radius: 0;
}
.tsv-dialog .form-label {
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.tsv-login-error {
    color: var(--tsv-error);
}
.tsv-login-submit {
    width: 100%;
    margin-top: 0.5rem;
}
.tsv-login-more {
    margin: 1.25rem 0 0;
    text-align: center;
}
.tsv-dialog a.tsv-login-link,
.tsv-dialog a.tsv-login-link:visited {
    color: var(--tsv-heading);
    text-decoration: none;
}
.tsv-dialog a.tsv-login-link:hover {
    text-decoration: underline;
}
.tsv-login-eye {
    min-width: 2.75rem;
}
/* The eye shows the password, the crossed out eye hides it again */
.tsv-login-eye .tsv-login-eye-hide,
.tsv-login-eye.is-visible .tsv-login-eye-show {
    display: none;
}
.tsv-login-eye.is-visible .tsv-login-eye-hide {
    display: inline-block;
}
/* Thin line below the button, then the link to the other internal area */
.tsv-login-divider {
    margin: 1.25rem 0 0;
    border: 0;
    border-top: 1px solid var(--tsv-border-strong);
    opacity: 1;
}
.tsv-login-divider + .tsv-login-more {
    margin-top: 1rem;
}
/* Buttons in the color of the club, filled and outlined, as tsv-button on the club site */
.tsv-button {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--tsv-primary);
    --bs-btn-border-color: var(--tsv-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5B53A2;
    --bs-btn-hover-border-color: #5B53A2;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #50498F;
    --bs-btn-active-border-color: #50498F;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--tsv-primary);
    --bs-btn-disabled-border-color: var(--tsv-primary);
    --bs-btn-focus-shadow-rgb: 108, 100, 176;
}
.tsv-button-outline {
    --bs-btn-color: var(--tsv-primary);
    --bs-btn-border-color: var(--tsv-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--tsv-primary);
    --bs-btn-hover-border-color: var(--tsv-primary);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--tsv-primary);
    --bs-btn-active-border-color: var(--tsv-primary);
    --bs-btn-disabled-color: var(--tsv-primary);
    --bs-btn-disabled-border-color: var(--tsv-primary);
    --bs-btn-focus-shadow-rgb: 108, 100, 176;
}
@media (max-width: 575.98px) {
    .tsv-dialog {
        width: calc(100vw - 1rem);
        --tsv-dialog-margin: 0.5rem;
    }
    .tsv-modal-header {
        padding: 0.75rem 0.5rem 0.5rem 1.25rem;
    }
    .tsv-modal-body {
        padding: 0.25rem 1.25rem 1.25rem;
    }
}
@keyframes tsv-dialog-in {
    from { opacity: 0; transform: translateY(0.5rem); }
}
@keyframes tsv-backdrop-in {
    from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tsv-dialog[open], .tsv-dialog[open]::backdrop {
        animation: none;
    }
}

/*
 * Text vertically centered in every box with a border or an area of its own. The line box of a
 * font has more room above the capitals than below the baseline, the text therefore sat 1 to 3
 * pixels too high (measured from cap height to baseline). text-box trims the first and the last
 * line to cap height and baseline, then equal padding means equal distance. Where the box should
 * keep its size, the padding or margin grows by the trimmed part, (1lh - 1cap) / 2 on each side.
 * Browsers without text-box keep the former look.
 */
@supports (text-box: trim-both cap alphabetic) {
    /* Boxes with several lines: the distance is padding plus the margin of the first and the last
       element, the same at the top and at the bottom */
    .tsv-club .message,
    .tsv-club .message > .float-end,
    .tsv-club .alert {
        text-box: trim-both cap alphabetic;
    }

    /* The group path at the top right of a tile on the line of the title (its margin of 5 pixels) */
    .tsv-club .message > .float-end {
        margin-top: 5px;
    }

    /* Boxes with one line, same height as before */
    .tsv-club .cost-section-header {
        text-box: trim-both cap alphabetic;
        padding-top: calc(0.4rem + (1lh - 1cap) / 2);
        padding-bottom: calc(0.4rem + (1lh - 1cap) / 2);
    }
    .tsv-club .cost-section-empty {
        text-box: trim-both cap alphabetic;
        padding-top: calc(0.35rem + (1lh - 1cap) / 2);
        padding-bottom: calc(0.35rem + (1lh - 1cap) / 2);
    }

    /* Texts in rows of a flex container, which centers them: the cost list, the answers of a
       multiple text question, the total, the header of a sub-form entry */
    .tsv-club #additional-costs-list .list-group-item > span,
    .tsv-club .multi-short-text-wrapper .list-group-item > .multi-text-answer,
    .tsv-club #total-price-container > strong,
    .tsv-club .subform-instance-header > .subform-instance-title {
        text-box: trim-both cap alphabetic;
        margin-top: calc((1lh - 1cap) / 2);
        margin-bottom: calc((1lh - 1cap) / 2);
    }

    /* Buttons with text, same height as before. Buttons with an icon of Material Symbols keep the
       line box, the icon font has no capitals to trim to */
    .tsv-club .btn:not(:has(.material-symbols-outlined)) {
        text-box: trim-both cap alphabetic;
        padding-top: calc(var(--bs-btn-padding-y) + (1lh - 1cap) / 2);
        padding-bottom: calc(var(--bs-btn-padding-y) + (1lh - 1cap) / 2);
    }
}

/* Printing a ticket: only the content */
@media print {
    body.tsv-club {
        background-color: #ffffff !important;
    }

    .tsv-club-nav,
    .tsv-club-blocker,
    .tsv-header-image,
    .tsv-breadcrumb,
    .tsv-club-footer,
    .tsv-skip-link {
        display: none !important;
    }

    .tsv-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .tsv-club-main {
        min-height: 0;
    }
}

/* Confirmation text of a sub-form beside its box (ShowForm.cshtml): a block instead of a label, a
 * click on it toggles the box (show-form.js). Its paragraphs sit tight like a label text. */
.tsv .tsv-confirm-text {
    cursor: pointer;
}

.tsv .tsv-confirm-text > :last-child {
    margin-bottom: 0;
}

/* Multiple text question: the list of answers only takes room when it has answers */
.tsv-club .multi-short-text-wrapper > ul:not(:has(li)) {
    margin-bottom: 0 !important;
}

