/* Shared visual foundations for member, studio and check-in screens. */
:root {
    --gym-font-body: 'DM Sans', system-ui, sans-serif;
    --gym-font-heading: 'Barlow Condensed', system-ui, sans-serif;
    --gym-radius-card: 18px;
    --gym-radius-control: 10px;
    --gym-space-card: 24px;
    --gym-space-gap: 18px;
    --gym-motion: 160ms ease;
    --mud-typography-default-family: var(--gym-font-body);
    --mud-typography-button-family: var(--gym-font-body);
}
body, .mud-typography, .mud-input, .mud-button { font-family: var(--gym-font-body); }
.content :is(h1, .mud-typography-h3, .mud-typography-h4) {
    font-family: var(--gym-font-heading);
    font-weight: 700;
    line-height: 1.15;
}
.content :is(.mud-card, .card) {
    border-radius: var(--gym-radius-card);
    border: 1px solid var(--gym-border);
    box-shadow: 0 4px 16px rgb(0 0 0 / 4%);
}
.content :is(.mud-card-content, .card-body) { padding: var(--gym-space-card); }
.content :is(.mud-button-root, .btn, .form-control, .form-select) {
    border-radius: var(--gym-radius-control);
}
.content :is(.mud-button-root, .btn) {
    text-transform: none;
    letter-spacing: normal;
    transition: background-color var(--gym-motion), border-color var(--gym-motion), box-shadow var(--gym-motion);
}
.content :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--mud-palette-primary);
    outline-offset: 3px;
}
.gym-loading { margin-block: 18px; }
.gym-save-feedback { color: var(--mud-palette-success); font-size: .9rem; }
.gym-save-feedback:empty { margin: 0; }
.gym-loading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gym-space-gap); }
.gym-loading-card {
    display: grid; gap: 18px; min-height: 160px;
    padding: var(--gym-space-card);
    border: 1px solid var(--gym-border);
    border-radius: var(--gym-radius-card);
    background: var(--gym-bg-surface);
}
.gym-skeleton {
    display: block; border-radius: 6px;
    background: color-mix(in srgb, var(--gym-text-secondary) 15%, var(--gym-bg-surface));
    animation: gym-breathe 1.6s ease-in-out infinite alternate;
}
.gym-skeleton-label { width: 35%; height: 12px; }
.gym-skeleton-title { width: 65%; height: 30px; }
.gym-skeleton-line { width: 85%; height: 14px; }
.gym-loading-home .gym-loading-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gym-loading-home .gym-loading-card { grid-column: span 2; }
.gym-loading-home .gym-loading-card:nth-child(-n+2) { grid-column: span 3; min-height: 220px; }
.nc-root .gym-loading-grid { grid-template-columns: 1fr; }
.nc-root .nc-cta, .nc-root .nc-btn--primary, .cs-success .cs-btn--primary {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border-color: transparent;
    box-shadow: none;
    min-height: 44px;
}
.nc-root .nc-cta:hover, .nc-root .nc-btn--primary:hover, .cs-success .cs-btn--primary:hover {
    background: var(--mud-palette-primary-darken);
    color: var(--mud-palette-primary-text);
    box-shadow: none;
}
.nc-root .nc-cta:disabled { opacity: .55; cursor: wait; }
.nc-root .nc-hero { color: #fff; --color-section: #102d40; --color-section-glow: #145778; }
.nc-root .nc-hero-word-accent { color: var(--gym-primary-light); }
.nc-root :is(.nc-sub, .nc-course-meta, .nc-course-desc, .nc-cta-sub, .nc-link-muted),
.cs-success :is(.cs-stamp-line, .cs-message, .cs-section-label, .cs-course-meta, .cs-stat-label) {
    color: var(--gym-text-secondary);
}
.nc-root .nc-title, .cs-success .cs-title { font-family: var(--gym-font-heading); }
.cs-success { animation: gym-arrive 220ms ease-out; }
@keyframes gym-breathe { from { opacity: .55; } to { opacity: 1; } }
@keyframes gym-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
    .gym-loading-home .gym-loading-grid { grid-template-columns: 1fr; }
    .gym-loading-home .gym-loading-card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 600px) {
    :root { --gym-space-card: 18px; }
    .gym-loading-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .gym-skeleton, .cs-success { animation: none; }
    .content :is(.mud-button-root, .btn) { transition: none; }
}
