/*
 * SportEntry mobile utilities
 *
 * Shared mobile-first helpers for EYRA/SportEntry public and registration views.
 * These classes are intentionally generic and page-agnostic.
 */

.playdaz-mobile-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.playdaz-public-page,
body.playdaz-public-page #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.playdaz-mobile-shell *,
.playdaz-public-footer * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.playdaz-stack-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.playdaz-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.playdaz-actions .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
    overflow-y: visible;
}

.org-public-hero-layout {
    gap: 1rem;
}

.org-public-card-row {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.org-public-card-row > [class*="col-"],
.org-public-birthday-row > [class*="col-"],
.results-summary-row > [class*="col-"] {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.org-public-birthday-row {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
}

.org-public-birthday-row > [class*="col-"] {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

.results-summary-row {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.results-summary-row > [class*="col-"] {
    margin-bottom: 1rem;
}

.registration-entry-header-row {
    gap: 0.5rem;
}

.registration-entry-badge-row,
.registration-entry-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
}

.registration-action-stack > * + * {
    margin-top: 0.5rem;
}

.home-org-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-org-next-card {
    border-left: .35rem solid #0d6efd;
    border-radius: .5rem;
}

.home-org-next-label {
    color: #0d6efd;
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home-org-toolbox-link:hover,
.home-org-toolbox-link:focus {
    color: #0a58ca;
    text-decoration: underline;
}

.home-org-toolbox-link-secondary {
    display: inline-block;
    font-size: .85rem;
    font-weight: 600;
    margin-left: .35rem;
    white-space: normal;
}

.home-org-toolbox-link-secondary:hover,
.home-org-toolbox-link-secondary:focus {
    text-decoration: underline;
}

.home-org-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.home-org-card-series {
    font-weight: 600;
}

.home-org-card-actions {
    align-items: center;
}

.home-org-toolbox-groups,
.toolbox-family-groups,
.public-org-card-groups {
    display: grid;
    gap: .85rem;
}

.home-org-toolbox-group-label,
.toolbox-family-group-label,
.public-org-card-group-label {
    color: #6c757d;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.toolbox-next-card {
    border-left: .35rem solid var(--org-accent-color, #0d6efd);
    border-radius: .5rem;
}

.toolbox-next-label {
    color: var(--org-accent-color, #0d6efd);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.toolbox-next-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.toolbox-next-series {
    font-weight: 600;
}

.toolbox-next-status {
    font-weight: 600;
}

.toolbox-next-actions {
    align-items: center;
}

.toolbox-family-card {
    border-left: .35rem solid var(--org-accent-color, #0d6efd);
    border-radius: .5rem;
}

.toolbox-family-label {
    color: var(--org-accent-color, #0d6efd);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.toolbox-family-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.toolbox-family-series {
    font-weight: 600;
}

.toolbox-family-actions {
    align-items: center;
}

.playdaz-mobile-shell .list-group,
.playdaz-mobile-shell .list-group-item {
    max-width: 100%;
    min-width: 0;
}

.playdaz-mobile-shell .list-group-item {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.playdaz-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.playdaz-scroll-x {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.playdaz-card-table {
    width: 100%;
}

.playdaz-safe-bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.playdaz-fixed-bottom-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 -0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.playdaz-text-sm {
    font-size: 0.875rem;
    line-height: 1.35;
}

.playdaz-text-xs {
    font-size: 0.75rem;
    line-height: 1.3;
}

.sportentry-brand-icon {
    display: inline-block;
    height: 30px;
    width: auto;
    max-width: 34px;
    max-height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}

.sportentry-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex-wrap: nowrap;
}

.sportentry-navbar-brand-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sportentry-navbar-mobile-home-link {
    color: #0d6efd;
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: .1rem;
    max-width: min(72vw, 26rem);
    overflow-wrap: anywhere;
    text-decoration: none;
}

.sportentry-navbar-mobile-home-link:hover,
.sportentry-navbar-mobile-home-link:focus {
    color: #0a58ca;
    text-decoration: underline;
}

.sportentry-wordmark {
    --sportentry-navy: #17233f;
    --sportentry-green: #62a744;
    display: inline;
    font-weight: inherit;
}

.sportentry-wordmark-sport {
    color: var(--sportentry-navy);
}

.sportentry-wordmark-entry {
    color: var(--sportentry-green);
}

.sportentry-welcome-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin: 0;
    object-fit: contain;
}

.sportentry-welcome-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.sportentry-welcome-hero-copy {
    flex: 1 1 55%;
    min-width: 0;
}

.sportentry-welcome-hero-logo {
    flex: 0 1 420px;
    display: flex;
    justify-content: flex-end;
}

/*
 * Help and auth pages
 *
 * Shared new-look card treatment for public help, staff help, login, and
 * account creation without changing form behavior.
 */
.sportentry-help-page {
    max-width: 960px;
}

.sportentry-help-page-staff {
    max-width: 1040px;
}

.help-card,
.sportentry-auth-card,
.sportentry-auth-hero {
    background: #fff;
    border: 1px solid #d8dee5;
    border-left: 6px solid #2f80d0;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.sportentry-help-hero,
.sportentry-auth-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.help-card h2 {
    font-size: 1.15rem;
}

.sportentry-help-label {
    color: #2f80d0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.help-warning {
    background: #fff5f5;
    border: 1px solid #f1b0b7;
    border-left: 6px solid #dc3545;
    border-radius: 10px;
}

.help-page li {
    margin-bottom: .35rem;
}

.help-updated {
    font-size: .85rem;
}

.sportentry-auth-page {
    max-width: 100%;
}

.sportentry-auth-hero {
    padding: 1.25rem;
}

.sportentry-auth-card .card-header {
    border-bottom-color: #e3e8ef;
}

.sportentry-auth-card .card-footer {
    border-top-color: #e3e8ef;
}

.sportentry-auth-card .btn {
    white-space: normal;
}

@media (max-width: 576px) {
    .sportentry-brand-icon {
        height: 26px;
        max-width: 30px;
        max-height: 26px;
    }

    .sportentry-welcome-hero-top {
        align-items: flex-start;
        flex-direction: column-reverse;
        justify-content: flex-start;
        gap: .25rem;
    }

    .sportentry-welcome-hero-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
        width: 100%;
        line-height: 0;
    }

    .sportentry-welcome-hero-copy {
        flex: 0 0 auto;
        width: 100%;
    }

    .sportentry-welcome-logo {
        width: auto;
        max-width: 260px;
        max-height: 220px;
    }

    .sportentry-welcome-hero-copy .display-3 {
        margin-top: 0;
    }

    .sportentry-help-hero,
    .sportentry-auth-hero,
    .sportentry-auth-card .card-body,
    .sportentry-auth-card .card-footer {
        padding: 1rem;
    }

    .sportentry-auth-card .btn {
        width: 100%;
        margin-bottom: .5rem;
    }

    .sportentry-auth-card .btn-link {
        text-align: center;
    }
}

.playdaz-public-footer {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 2rem;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    font-size: 0.875rem;
    line-height: 1.4;
    border-top: 1px solid rgba(0, 0, 0, 0.075);
    overflow-x: hidden;
    box-sizing: border-box;
}

.playdaz-public-footer .container,
.playdaz-public-footer .container-fluid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 1rem;
    padding-left: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.playdaz-public-footer a {
    color: inherit;
    text-decoration: underline;
}

/*
 * Shared status badges
 *
 * One compact pill language for registration/status labels. Yellow is reserved
 * for warnings, issues, and mismatches.
 */

.status-badge,
.registration-status-badge,
.pill-badge-paid,
.pill-badge-checked-in,
.badge-paid,
.badge-checked-in,
.member-badge,
.pending-member-badge,
.non-member-badge,
.member-name::after,
.pending-member-name::after,
.non-member-name::after {
    display: inline-block !important;
    padding: 0.25em 0.6em !important;
    margin-left: 3px;
    font-size: 0.78rem !important;
    font-weight: normal !important;
    line-height: 1.15 !important;
    text-align: center;
    vertical-align: baseline;
    border-radius: 10rem !important;
    white-space: normal;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.status-badge-paid,
.registration-status-badge-paid,
.pill-badge-paid,
.badge-paid {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

.status-badge-package-paid {
    background-color: #d8f3dc !important;
    border-color: #95d5b2 !important;
    color: #1b4332 !important;
}

.status-badge-unpaid,
.registration-status-badge-muted {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.status-badge-entered,
.registration-status-badge-entered {
    background-color: #e66b27 !important;
    border-color: #e66b27 !important;
    color: #fff !important;
}

.status-badge-checked-in,
.pill-badge-checked-in,
.badge-checked-in {
    background-color: #2f9e44 !important;
    border-color: #2f9e44 !important;
    color: #fff !important;
}

.status-badge-slack {
    background-color: #e7f1ff !important;
    border-color: #9ec5fe !important;
    color: #084298 !important;
}

.results-status-badge.results-status-no-record,
.results-table-card .results-status-badge.results-status-no-record {
    display: inline-block !important;
    padding: 0.25em 0.55em !important;
    border-radius: 10rem !important;
    background-color: #212529 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    vertical-align: baseline;
}

.status-badge-member,
.member-badge,
.member-name::after {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

.status-badge-member-gold {
    background-color: #d4af37 !important;
    border-color: #9a7412 !important;
    color: #2b2100 !important;
}

.status-badge-member-pending,
.pending-member-badge,
.pending-member-name::after {
    background-color: #fff7e5 !important;
    border-color: #f59f00 !important;
    color: #7a4f00 !important;
}

.status-badge-non-member,
.non-member-badge,
.non-member-name::after {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.status-badge-no-membership-status {
    background-color: #212529 !important;
    border-color: #212529 !important;
    color: #fff !important;
}

.status-badge-warning,
.registration-status-badge-warning {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.status-badge-caution,
.registration-status-badge-caution {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.registration-status-badge-wrap {
    line-height: 1.4;
    white-space: normal;
}

/*
 * Build Series: All Around event checklist alignment.
 * Scoped so Bootstrap form-check rows elsewhere keep their existing behavior.
 */
.all-around-event-checklist .all-around-event-option {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    margin-bottom: 0.35rem;
}

.all-around-event-checklist .all-around-event-option .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 0.22rem;
}

.all-around-event-checklist .all-around-event-option .form-check-label {
    display: block;
    min-width: 0;
    margin-left: 0.45rem;
    line-height: 1.25;
}

/*
 * Registration membership fee radio alignment.
 * Scoped to the checkout decision rows so Bootstrap form-check spacing elsewhere
 * keeps its existing behavior.
 */
.registration-membership-decision-list .registration-membership-decision-option {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
    margin-bottom: 0.35rem;
}

.registration-membership-decision-list .registration-membership-decision-option .form-check-input {
    position: static;
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 0.18rem;
}

.registration-membership-decision-list .registration-membership-decision-option .form-check-label {
    display: block;
    min-width: 0;
    margin-left: 0.45rem;
    line-height: 1.25;
}

/*
 * Mobile header safety
 *
 * Keeps public navigation below phone safe areas, above page content, and
 * tappable even when Bootstrap's collapse plugin is unavailable.
 */

#navbar-top {
    z-index: 1035;
}

.playdaz-mobile-nav-fallback {
    display: none;
}

/*
 * App Center
 *
 * Scoped to the /apps page wrapper so card and image rules do not affect
 * other SportEntry pages that share this stylesheet.
 */

.app-center .app-center-hero {
    background: #edebe8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.app-center .app-center-subtitle {
    max-width: 42rem;
    font-size: 1.1rem;
}

.app-center .app-card {
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}

.app-center .app-card-column {
    min-width: 0;
}

.app-center .app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-center .app-card-note {
    color: #6c757d;
    font-size: 0.875rem;
}

.app-center .app-card-image-frame {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: 150px;
    max-height: 150px;
    overflow: hidden;
    box-sizing: border-box;
}

.app-center .app-card img.app-card-image,
.app-center .app-card-image {
    display: block;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
}

.app-center .app-card-title,
.app-center .app-card-description,
.app-center .app-card-note {
    overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
    .playdaz-stack-sm {
        flex-direction: column;
        align-items: stretch;
    }

    .playdaz-actions-full-sm > .btn,
    .playdaz-actions-full-sm > button,
    .playdaz-actions-full-sm > a,
    .playdaz-actions-full-sm > input[type="button"],
    .playdaz-actions-full-sm > input[type="submit"] {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .playdaz-card-table,
    .playdaz-card-table thead,
    .playdaz-card-table tbody,
    .playdaz-card-table tr,
    .playdaz-card-table th,
    .playdaz-card-table td {
        display: block;
        width: 100%;
    }

    .playdaz-card-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .playdaz-card-table tbody tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.125);
        border-radius: 0.375rem;
    }

    .playdaz-card-table tbody td,
    .playdaz-card-table tbody th {
        padding: 0.35rem 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .app-center .app-center-hero h1 {
        font-size: 2rem;
    }

    .app-center {
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-center .container {
        width: 100%;
        max-width: 100%;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .app-center .row {
        margin-right: 0;
        margin-left: 0;
    }

    .app-center .app-card-column {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .app-center .app-card {
        width: 100%;
        max-width: 100%;
    }

    .app-center .app-card-description,
    .app-center .app-card-note {
        overflow-wrap: anywhere;
    }

    .app-center .app-center-subtitle {
        font-size: 1rem;
    }

    .app-center .app-card-image-frame {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        max-height: none;
        overflow: hidden;
        text-align: center;
    }

    .app-center .app-card img.app-card-image,
    .app-center .app-card-image {
        display: block;
        width: 12rem !important;
        min-width: 0;
        max-width: 100% !important;
        height: auto !important;
        max-height: 120px;
        object-fit: contain;
        object-position: center center;
        margin: 0 auto !important;
    }
}

/* SportEntry public phone-width guard */
@media screen and (max-width: 767.98px) {
    body.playdaz-public-page #navbar-top,
    #navbar-top {
        position: sticky;
        top: 0;
        z-index: 1035;
        min-height: calc(56px + env(safe-area-inset-top, 0px));
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    }

    body.playdaz-public-page #navbar-top .container-fluid,
    #navbar-top .container-fluid {
        min-width: 0;
        max-width: 100%;
    }

    body.playdaz-public-page #navbar-top .sportentry-navbar-brand-wrap,
    #navbar-top .sportentry-navbar-brand-wrap {
        flex: 1 1 auto;
        max-width: calc(100% - 56px);
        min-width: 0;
    }

    body.playdaz-public-page #navbar-top .navbar-brand,
    #navbar-top .navbar-brand {
        max-width: 100%;
        overflow: visible;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.playdaz-public-page #navbar-top .navbar-toggler,
    #navbar-top .navbar-toggler {
        position: relative;
        z-index: 1040;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0.5rem;
        touch-action: manipulation;
    }

    body.playdaz-public-page #navbar-top .navbar-collapse,
    #navbar-top .navbar-collapse {
        position: relative;
        z-index: 1038;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .playdaz-mobile-nav-fallback {
        display: none;
    }

    .playdaz-mobile-nav-fallback a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0.55rem 0.65rem;
        color: #495057;
        text-decoration: none;
        border-radius: 0.25rem;
        touch-action: manipulation;
    }

    .playdaz-mobile-nav-fallback a:focus,
    .playdaz-mobile-nav-fallback a:hover {
        color: #212529;
        background: rgba(0, 0, 0, 0.05);
    }

    @supports (padding-top: env(safe-area-inset-top)) {
        body.playdaz-public-page #navbar-top,
        #navbar-top {
            top: env(safe-area-inset-top, 0px);
            min-height: 56px;
            margin-top: env(safe-area-inset-top, 0px);
            padding-top: 0.5rem;
        }

        .playdaz-mobile-nav-fallback {
            display: none;
        }
    }

    @media (display-mode: standalone), (display-mode: fullscreen) {
        @supports (padding-top: env(safe-area-inset-top)) {
            body.playdaz-public-page #navbar-top,
            #navbar-top {
                top: max(12px, calc(env(safe-area-inset-top, 0px) - 10px));
                margin-top: max(12px, calc(env(safe-area-inset-top, 0px) - 10px));
            }

            .playdaz-mobile-nav-fallback {
                display: none;
            }
        }
    }

    body.playdaz-public-page,
    body.playdaz-public-page #app,
    body.playdaz-public-page .container,
    body.playdaz-public-page .container-fluid {
        min-width: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body.playdaz-public-page .sportentry-welcome-hero-shell,
    body.playdaz-public-page .row,
    body.playdaz-public-page [class*="col-"] {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.playdaz-public-page p,
    body.playdaz-public-page a,
    body.playdaz-public-page h1,
    body.playdaz-public-page h2 {
        overflow-wrap: anywhere;
    }
}

/* Public welcome/mobile polish */
@media screen and (max-width: 767.98px) {
    body.playdaz-public-page .sportentry-welcome-hero-shell {
        padding: 2rem 1rem;
    }

    body.playdaz-public-page .sportentry-welcome-hero-shell .display-3 {
        font-size: clamp(2.25rem, 14vw, 3.25rem);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    body.playdaz-public-page table,
    body.playdaz-public-page img {
        max-width: 100%;
        height: auto;
    }

    body.playdaz-public-page .sportentry-brand-icon,
    .sportentry-brand-icon {
        width: auto;
        max-width: 30px;
        height: 26px;
        max-height: 26px;
        object-fit: contain;
    }

    .sportentry-navbar-brand .sportentry-wordmark {
        white-space: nowrap;
    }
}

@media screen and (max-width: 375px) {
    .sportentry-navbar-brand .sportentry-wordmark {
        display: none;
    }
}

/* Keep org footer and default footer together when both render */
.playdaz-org-footer + .playdaz-default-footer {
    margin-top: 0;
}

/* Rodeo public results list */
.rodeo-results-action {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.rodeo-results-btn {
    min-width: 145px;
    white-space: nowrap;
}

/* Logged-in family registration pages */
.registration-page-hero,
.registration-event-card,
.registration-entry-card {
    background: #fff;
    border: 1px solid #d8dee5;
    border-left: 6px solid var(--org-accent-color, #6c757d);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.registration-page-hero {
    padding: 1.25rem;
}

.registration-event-card {
    overflow: hidden;
}

.registration-event-card-current {
    border-width: 1px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.registration-event-main {
    color: inherit;
    display: block;
    padding: 1rem;
    text-decoration: none;
}

.registration-event-main:hover,
.registration-event-main:focus {
    background: #f8fbff;
    color: inherit;
    text-decoration: none;
}

.registration-event-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.registration-event-date,
.registration-event-meta {
    color: #495057;
}

.registration-event-notes {
    background: #f8f9fa;
    border-radius: 8px;
    padding: .75rem .875rem;
}

.registration-event-notes ul {
    margin-bottom: 0;
    padding-left: 1.15rem;
}

.registration-event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.registration-summary-label {
    color: var(--org-accent-color, #6c757d);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.registration-summary-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: .35rem;
}

.registration-summary-event-card,
.registration-summary-contestants-card {
    background: #fff;
    border: 1px solid #d8dee5;
    border-left: 6px solid var(--org-accent-color, #6c757d);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.registration-summary-card-header {
    background: #f8fbff;
    border-bottom: 1px solid #d8dee5;
}

.registration-summary-event-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.registration-summary-payment-note {
    background: #fff8db;
    color: #6b5600;
}

.registration-payment-totals-panel {
    max-width: 28rem;
}

@media (min-width: 992px) {
    .registration-payment-totals-panel {
        margin-left: auto;
    }
}

.registration-confirmation-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .registration-confirmation-grid {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
    }
}

.registration-confirmation-card {
    background: #fff;
    border: 1px solid #d8dee5;
    border-left: 6px solid #0d6efd;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.registration-confirmation-contestant {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    justify-content: space-between;
}

.registration-confirmation-contestant-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.registration-confirmation-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.registration-confirmation-address,
.registration-confirmation-entry-date,
.registration-confirmation-entry-detail {
    color: #495057;
}

.registration-confirmation-entry {
    border-bottom: 1px solid #e9ecef;
    padding: .85rem 0;
}

.registration-confirmation-entry:first-child {
    padding-top: 0;
}

.registration-confirmation-entry:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.registration-confirmation-entry-main {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .55rem;
}

.registration-confirmation-total-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.registration-confirmation-total-row + .registration-confirmation-total-row {
    border-top: 1px solid #e9ecef;
    margin-top: .6rem;
    padding-top: .6rem;
}

.registration-confirmation-total-row-final {
    font-size: 1.05rem;
}

.wizard-page-header .btn.btn-sm.d-inline-flex,
.wizard-form-actions .btn.btn-sm.d-inline-flex {
    line-height: 1.25;
}

.wizard-page-label {
    color: var(--org-accent-color, #6c757d);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wizard-page-title {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: .35rem;
}

.wizard-notes-box {
    background: #fff8db;
    border: 1px solid #eadca0;
    border-left: 6px solid #d6a600;
    border-radius: 10px;
    color: #6b5600;
    padding-left: 1rem;
    padding-right: 1rem;
}

.wizard-group-card {
    border: 1px solid #d6dbe1;
    border-left: 6px solid var(--org-accent-color, #6c757d);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.wizard-group-card .card-header {
    background: #f8fbff;
}

.wizard-group-card .card-header a {
    text-decoration: none;
}

.wizard-comp-item {
    border-top: 1px solid #e9ecef;
}

.wizard-comp-item:first-child {
    border-top: 0;
}

.wizard-entry-block {
    background: #ffffff;
}

.wizard-entry-row+.wizard-entry-row {
    border-top: 1px dashed #d6dbe1;
    margin-top: 12px;
    padding-top: 12px;
}

.wizard-event-title {
    line-height: 1.2;
}

.wizard-helper-strip {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.contestant-page-label {
    color: var(--org-accent-color, #6c757d);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.contestant-page-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: .35rem;
}

.contestant-page-actions,
.contestant-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.contestant-card .card-body,
.contestant-empty-card .card-body {
    padding: 1rem;
}

.contestant-card-layout {
    gap: 1rem;
}

.contestant-photo-frame {
    align-items: center;
    background: #f8f9fa;
    border-color: #d6dbe1;
    color: #6c757d;
    display: inline-flex;
    height: 180px;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    width: 180px;
}

.contestant-photo-frame-sm {
    height: 120px;
    width: 120px;
}

.contestant-photo-frame-md {
    height: 180px;
    width: 180px;
}

.contestant-photo-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.contestant-photo-fallback {
    font-size: .875rem;
    font-weight: 600;
    text-align: center;
}

.contestant-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.contestant-detail-list {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.contestant-detail-list div {
    min-width: 0;
}

.contestant-detail-list dt {
    color: #6c757d;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .1rem;
    text-transform: uppercase;
}

.contestant-detail-list dd {
    margin-bottom: 0;
}

.contestant-gender-icon {
    height: 1.15rem;
    width: auto;
    margin-left: .25rem;
    vertical-align: text-bottom;
}

.contestant-card-settings {
    flex: 0 0 auto;
    max-width: 12rem;
    min-width: 0;
}

.contestant-settings-button {
    min-width: 2.25rem;
}

.contestant-settings-menu {
    min-width: 9rem;
    text-align: left;
}

.contestant-settings-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.contestant-settings-menu form {
    margin-bottom: 0;
}

.contestant-settings-help {
    max-width: 11rem;
    margin-top: .35rem;
    margin-left: auto;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
}

.contestant-form-card .card-body {
    padding: 1.25rem;
}

.contestant-form-card label {
    font-weight: 700;
}

.contestant-required-note {
    color: #dc3545;
    font-size: .85rem;
    font-weight: 700;
}

.contestant-form-divider {
    border-top: 1px solid #d8dee5;
    margin: 1.25rem 0;
}

@media (max-width: 575.98px) {
    .rodeo-results-table td {
        padding-left: .35rem;
        padding-right: .35rem;
        vertical-align: middle;
    }

    .rodeo-results-group,
    .rodeo-results-event {
        white-space: nowrap;
    }

    .rodeo-results-team-note {
        display: none;
    }

    .registration-page-hero,
    .registration-event-main,
    .registration-event-actions {
        padding: 1rem;
    }

    .registration-event-actions .btn {
        width: 100%;
    }

    .wizard-page-header {
        display: block !important;
    }

    .wizard-page-header .wizard-header-left {
        margin-bottom: 10px;
    }

    .wizard-page-header .wizard-header-right .btn {
        width: 100%;
        justify-content: center;
    }

    .wizard-group-card {
        margin-bottom: 14px !important;
    }

    .wizard-group-card .card-header a {
        padding: 12px 14px !important;
    }

    .wizard-group-card .card-header .fw-bold {
        line-height: 1.2;
    }

    .wizard-helper-strip {
        padding: 10px 14px !important;
    }

    .wizard-comp-item {
        padding: 12px !important;
    }

    .wizard-entry-row {
        background: #fff;
        border: 1px solid #e3e7eb;
        border-radius: 10px;
        padding: 10px;
    }

    .wizard-entry-row+.wizard-entry-row {
        margin-top: 10px;
        padding-top: 10px;
    }

    .wizard-entry-top {
        display: block !important;
    }

    .wizard-entry-fields {
        padding-right: 0 !important;
        width: 100%;
    }

    .wizard-entry-actions {
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
    }

    .wizard-entry-actions .btn {
        width: 100%;
    }

    .wizard-form-actions {
        display: block !important;
    }

    .wizard-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .wizard-form-actions .btn+.btn {
        margin-top: 10px;
        margin-left: 0 !important;
    }

    .wizard-entry-row .form-check {
        margin-bottom: .5rem;
    }

    .contestant-page-actions .btn,
    .contestant-card-actions .btn {
        width: 100%;
    }

    .contestant-card-settings {
        width: 100%;
        text-align: left;
    }
}
