/* NautiApp: mobile-first. Big tap targets, readable type, little chrome. */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #f6f7f9;
    padding-bottom: env(safe-area-inset-bottom);
}

.app-navbar {
    background: #0b3a5b;
}

.app-navbar .btn-link.nav-link {
    border: 0;
    padding-left: var(--bs-navbar-nav-link-padding-x, 0.5rem);
}

main.container {
    max-width: 720px;
}

h1 {
    font-size: 1.6rem;
    font-weight: 650;
}

.btn {
    min-height: 44px; /* comfortable tap target on phones */
}

.btn-sm {
    min-height: 36px;
}

.card-link-row {
    color: inherit;
    text-decoration: none;
}

.card-link-row:hover .card {
    border-color: #9ab7cf;
}

.muted-small {
    font-size: 0.875rem;
    color: #6c757d;
}

.month-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #51606e;
    margin: 1.25rem 0 0.5rem;
}

.race-card.race-off .race-title {
    text-decoration: line-through;
    color: #6c757d;
}

.race-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.race-actions form {
    display: inline;
}

.btn-link.btn-inline {
    min-height: 0;
    padding: 0 0.25rem;
    vertical-align: baseline;
}

.rsvp-form .btn {
    font-weight: 600;
}

.race-card.needs-reply {
    border-left: 4px solid #0d6efd;
}

.roster-group + .roster-group {
    margin-top: 0.75rem;
}

.roster-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.roster li {
    padding: 0.15rem 0;
}

.link-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    word-break: break-all;
    background: #f1f3f5;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.external-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #fff;
    font-weight: 500;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #dee2e6;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
}

.admin-stat {
    padding: 0.75rem;
}

.admin-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.admin-stat-label {
    font-weight: 600;
}

.admin-facts dt {
    font-weight: 600;
    color: #51606e;
}
