﻿
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.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;
}

/* Compact controls retain full usability on narrow screens. */
input.form-control[type="number"] {
    max-width: 8rem;
}

input.form-control[type="date"] {
    max-width: 12rem;
}

input.form-control[type="file"] {
    max-width: 32rem;
}

select.form-select {
    max-width: 24rem;
}

textarea.form-control {
    max-width: 48rem;
}

/* Keep member names and actions together instead of stretching the table. */
.members-table {
    width: auto;
    max-width: 100%;
}

    .members-table > :not(caption) > * > * {
        padding: .5rem .85rem;
    }

    .members-table th,
    .members-table .btn {
        white-space: nowrap;
    }

.member-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.member-field {
    min-width: 0;
    max-width: 100%;
}

.member-name {
    flex: 0 1 15rem;
}

.member-ptm {
    flex: 0 1 6rem;
}

.member-category {
    flex: 0 1 13rem;
}

.member-date {
    flex: 0 1 12rem;
}

@media (max-width: 575.98px) {
    .member-name {
        flex: 1 1 12rem;
    }

    .members-table > :not(caption) > * > * {
        padding: .5rem;
    }
}


/* Long pages must place the shared footer after their content. */
body {
    margin-bottom: 0;
}

footer.footer {
    position: static;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem 0;
    line-height: 1.5;
    white-space: normal;
}

/* Visible confirmation boxes and selection circles on every GAMS page. */
input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    margin-top: 0;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid #243746;
    background-color: #fff;
    background-image: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    cursor: pointer;
    opacity: 1;
}

input[type="checkbox"] {
    border-radius: 4px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked {
    border-color: #07549a;
    background-color: #07549a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

input[type="radio"]:checked {
    border-color: #07549a;
    background-color: #fff;
    background-image: radial-gradient(circle, #07549a 0 5px, transparent 6px);
}

input[type="checkbox"]:indeterminate {
    border-color: #07549a;
    background-color: #07549a;
    background-image: linear-gradient(white, white);
    background-size: 12px 3px;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid #07549a;
    outline-offset: 3px;
    box-shadow: none;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    border-color: #65717c;
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: .75;
}

    input[type="checkbox"]:disabled:checked {
        background-color: #65717c;
    }

.form-check {
    min-height: 28px;
}

/* Consistent tournament navigation across tournament types. */
.gams-tournament-tabs { gap:5px!important; flex-wrap:wrap!important; margin-bottom:1.5rem!important; align-items:stretch; }
.gams-tournament-tabs .nav-link { background:#1b69a3!important; color:#fff!important; border:2px solid #175b8e!important; border-radius:6px 6px 0 0!important; padding:15px 18px!important; font-weight:700!important; text-decoration:none!important; font-size:1rem!important; line-height:1.5!important; min-height:54px; }
.gams-tournament-tabs .nav-link:hover { background:#155783!important; color:#fff!important; }
.gams-tournament-tabs .nav-link.active { background:#fff!important; color:#175b8e!important; border-color:#175b8e #175b8e #fff!important; }
.gams-tournament-tabs .nav-link:focus-visible { outline:3px solid #075dcc!important; outline-offset:2px; }
@media print { .gams-tournament-tabs { display:none!important; } }
