/* ==========================================
   MINDFUL BODY - Exact Match to Design
   ========================================== */

/* CSS Variables */
:root {
    /* Colors from design */
    --krystal-orange: #D4854A;
    --krystal-orange-light: #E8A86B;
    --pump-navy: #1E2D4D;
    --pump-navy-light: #2A3F66;
    --nug-teal: #2B5959;
    --nug-teal-light: #3A7474;
    --commons-green: #4A7A52;
    --commons-green-light: #6B9B6B;

    --sky-top: #E8F4FA;
    --sky-mid: #D4E8F2;
    --forest-green: #3D5A3D;

    --btn-teal: #3D6B6B;
    --btn-dark: #2A3D52;
    --btn-green: #5A8A5A;

    --white: #FFFFFF;
    --cream: #FDF8F3;
    --charcoal: #2C3E3E;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   HOMEPAGE LAYOUT
   ========================================== */
.homepage {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sky Background */
.sky-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('images/background-beach.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.sky-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(232, 244, 252, 0.3) 0%,
        rgba(200, 226, 240, 0.2) 50%,
        transparent 100%
    );
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-2xl) var(--space-sm);
    flex-shrink: 0;
}

.header-left {
    text-align: left;
}

.header-left a {
    display: inline-block;
}

.site-logo-img {
    height: 50px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header-nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

/* Text shadow only on homepage header (over background image) */
.site-header .header-nav a {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.header-nav a:hover,
.header-nav a.active {
    color: #2D6A6A;
}

/* Page Header (sub-pages) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-2xl);
    background: white;
    border-bottom: 1px solid #E8F0F0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header .header-nav a {
    text-shadow: none;
}

.page-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.page-logo img {
    height: 36px;
    width: auto;
}

.page-nav {
    position: static;
}

/* ==========================================
   CARDS CONTAINER
   ========================================== */
.cards-container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-2xl);
    min-height: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 950px;
    width: 100%;
    aspect-ratio: 5 / 3;
    max-height: 100%;
    position: relative;
}

/* ==========================================
   SECTION CARDS WITH IMAGES
   ========================================== */
.card {
    position: relative;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: white;
    min-height: 0;
    display: flex;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.card-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.krystal-overlay {
    background: linear-gradient(135deg, rgba(212, 133, 74, 0.85) 0%, rgba(232, 168, 107, 0.6) 50%, transparent 100%);
}

.pump-overlay {
    background: linear-gradient(135deg, rgba(30, 45, 77, 0.7) 0%, rgba(42, 63, 102, 0.45) 50%, transparent 100%);
}

.nug-overlay {
    background: linear-gradient(to top, rgba(43, 89, 89, 0.95) 0%, rgba(43, 89, 89, 0.8) 45%, rgba(58, 116, 116, 0.2) 70%, transparent 100%);
}

.nug-content {
    justify-content: flex-end;
    max-width: 100%;
}

.commons-overlay {
    background: linear-gradient(135deg, rgba(74, 122, 82, 0.85) 0%, rgba(107, 155, 107, 0.6) 50%, transparent 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg);
    max-width: 55%;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.75rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    opacity: 0.95;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.card-btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    width: fit-content;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-btn:hover {
    transform: scale(1.05);
}

.teal-btn {
    background: var(--btn-teal);
    color: white;
}

.dark-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.green-btn {
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: white;
}

.checkmark {
    display: inline-block;
    font-size: 0.8em;
    vertical-align: top;
}

/* Home Commons Card (avoid collision with commons page .commons-card) */

/* ==========================================
   CENTER GENERATOR CIRCLE
   ========================================== */
.generator-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(110px, 15vw, 170px);
    height: clamp(110px, 15vw, 170px);
    z-index: 20;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.generator-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: white;
    border: 6px solid #4A9B9B;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.6),
        0 10px 40px rgba(0, 0, 0, 0.2);
}

.generator-inner {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #F8FAF8 0%, #E8F0E8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    transition: transform 0.3s ease;
}

.generator-inner:hover {
    transform: scale(1.05);
}

.dumbbell-icon {
    width: clamp(40px, 9vw, 90px);
    height: clamp(30px, 7vw, 70px);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.generator-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.generator-title {
    font-family: var(--font-display);
    font-size: clamp(0.7rem, 1.1vw, 1rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.generator-btn {
    background: var(--btn-teal);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: clamp(0.6rem, 0.9vw, 0.8rem);
    font-weight: 600;
}

/* ==========================================
   FULL SECTIONS (Rest of the site)
   ========================================== */
.full-section {
    padding: var(--space-4xl) var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-block;
    background: #E8F0F0;
    color: #2D6A6A;
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.1rem;
    color: #5A6A6A;
    max-width: 600px;
    margin: 0 auto;
}

/* Pump Dump Section */
.pump-dump-section {
    background: linear-gradient(180deg, #F8FAFA 0%, white 100%);
}

.find-workout-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-align: center;
}

.filters-container {
    background: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.8rem;
    min-width: 85px;
    flex-shrink: 0;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    background: #E8F0F0;
    border: 1px solid transparent;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: #5A6A6A;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #D8E8E8;
    color: var(--charcoal);
}

.chip.active {
    background: #2D6A6A;
    color: white;
}

.workout-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full, 50px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #2D6A6A;
    background: #2D6A6A;
    color: white;
}

.category-card.active .category-title {
    color: white;
}

.category-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.category-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0;
}

.category-desc {
    display: none;
}


.workouts-preview {
    background: var(--pump-navy);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    color: white;
    margin-bottom: 0;
}

.preview-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-xl);
}

.workout-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.workout-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.workout-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.workout-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-amrap { background: #FF7B54; }
.badge-emom { background: #F4A259; color: #333; }
.badge-heavy { background: #9B89B3; }
.badge-hero { background: #E74C3C; }
.badge-grind { background: #2ECC71; color: #333; }
.badge-cardio { background: #3498DB; }
.badge-team { background: #E67E22; }
.badge-time { background: rgba(255, 255, 255, 0.2); }

.workout-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.workout-preview {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: var(--space-md);
}

.workout-tags {
    display: flex;
    gap: var(--space-sm);
}

.tag {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

/* Workout Detail Sections */
.workout-detail-section {
    margin-bottom: var(--space-lg);
}

.workout-detail-section:last-child {
    margin-bottom: 0;
}

.workout-detail-section h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: #F4A259;
}

.workout-detail-section p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.workout-detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-sm) 0;
}

.workout-detail-section ul li {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

.workout-detail-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #F4A259;
}

.workout-card {
    cursor: pointer;
}

.workout-card.hidden {
    display: none;
}

/* Workout Detail Screen Body */
.workout-detail-body {
    max-width: 700px;
    margin: 0 auto;
}

.workout-detail-body .workout-detail-section {
    margin-bottom: var(--space-xl);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.workout-detail-body .workout-detail-section:last-child {
    margin-bottom: 0;
}

/* ==========================================
   THE LIST - Exercise Browser
   ========================================== */

/* Entry Card */
.the-list-entry {
    margin-top: 60px;
    margin-bottom: var(--space-2xl);
}

.the-list-card {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: var(--pump-navy);
    color: white;
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(30, 45, 77, 0.2);
}

.the-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 45, 77, 0.3);
}

.the-list-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.the-list-info {
    flex: 1;
}

.the-list-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.the-list-subtitle {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: var(--space-sm);
}

.the-list-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

.the-list-arrow {
    font-size: 2rem;
    opacity: 0.6;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.the-list-card:hover .the-list-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* Screens */
.the-list-screen {
    animation: fadeIn 0.4s ease;
}

.the-list-back {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 2px solid #D8E8E8;
    color: var(--charcoal);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: var(--space-xl);
}

.the-list-back:hover {
    background: #2D6A6A;
    border-color: #2D6A6A;
    color: white;
}

.the-list-screen-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.the-list-screen-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.the-list-screen-desc {
    font-size: 1rem;
    color: #5A6A6A;
}

/* Body Part Grid */
.body-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.body-part-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.body-part-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--pump-navy);
}

.body-part-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.body-part-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.body-part-count {
    font-size: 0.85rem;
    color: #2D6A6A;
    font-weight: 600;
}

/* Flexibility Filter Tabs */
.flex-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-xl);
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.flex-tab {
    background: #F0F5F5;
    border: 2px solid #D0DEDE;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: #4A5A5A;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.flex-tab:hover {
    background: #D8EDED;
    border-color: #2D6A6A;
    color: #2D6A6A;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 106, 106, 0.15);
}

.flex-tab.active {
    background: #2D6A6A;
    border-color: #2D6A6A;
    color: white;
    box-shadow: 0 3px 10px rgba(45, 106, 106, 0.3);
}

/* Exercise List */
.exercises-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.exercise-item-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeSlideIn 0.3s ease both;
}

.exercise-item-card:hover {
    background: #F0F7F7;
    border-color: #2D6A6A;
    transform: translateX(4px);
}

.exercise-number {
    width: 32px;
    height: 32px;
    background: var(--pump-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.exercise-name-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.exercise-arrow {
    font-size: 1.5rem;
    color: #AAA;
    flex-shrink: 0;
    transition: color 0.2s;
}

.exercise-item-card:hover .exercise-arrow {
    color: var(--pump-navy);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Exercise Modal */
.exercise-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
    transition: background 0.3s;
}

.exercise-modal-overlay.active {
    background: rgba(0, 0, 0, 0.6);
}

.exercise-modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exercise-modal-overlay.active .exercise-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.exercise-modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: #F0F0F0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--charcoal);
}

.exercise-modal-close:hover {
    background: var(--pump-navy);
    color: white;
}

.exercise-modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    padding-right: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.exercise-modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.exercise-modal-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2D6A6A;
    margin-bottom: var(--space-sm);
}

.exercise-modal-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* Video Button in Exercise Modal */
.exercise-modal-video {
    text-align: center;
    padding-top: var(--space-sm);
}

.exercise-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pump-navy);
    color: white;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exercise-video-btn:hover {
    background: #1a2d5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 45, 90, 0.3);
}

.exercise-video-btn svg {
    flex-shrink: 0;
}

/* Exercise Links in Workout Details */
.exercise-link {
    color: var(--pump-navy);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s ease;
}

.exercise-link:hover {
    color: #1a2d5a;
    text-decoration-style: solid;
}

/* Responsive adjustments for The List */
@media (max-width: 768px) {
    .the-list-card {
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .the-list-icon {
        font-size: 2rem;
    }

    .the-list-title {
        font-size: 1.35rem;
    }

    .the-list-arrow {
        display: none;
    }

    .body-parts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .body-part-card {
        padding: var(--space-lg);
    }

    .exercise-item-card {
        padding: var(--space-md);
    }

    .exercise-modal {
        padding: var(--space-lg);
        margin: var(--space-md);
        max-height: 90vh;
    }

    .exercise-modal-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .body-parts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .body-part-card {
        padding: var(--space-md);
    }

    .body-part-icon {
        font-size: 2rem;
    }

    .body-part-name {
        font-size: 1rem;
    }
}

/* Nug Section */
.nug-section {
    background: linear-gradient(180deg, white 0%, #FDF8F3 100%);
}

.topic-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.topic-chip {
    background: white;
    border: 1px solid #D8E0E0;
    padding: var(--space-sm) var(--space-md);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.topic-chip:hover {
    border-color: #D4854A;
    color: #D4854A;
}

.topic-chip.active {
    background: #D4854A;
    border-color: #D4854A;
    color: white;
}

.newsletter-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.newsletter-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-xl);
    align-items: center;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.newsletter-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.newsletter-date {
    text-align: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, #D4854A, #E8A86B);
    border-radius: var(--radius-md);
    color: white;
    min-width: 70px;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.newsletter-tags {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.ntag {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    background: #E8F0F0;
    border-radius: var(--radius-sm);
    color: #5A6A6A;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.newsletter-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.newsletter-title a:hover {
    color: #2D6A6A;
}

.newsletter-excerpt {
    font-size: 0.95rem;
    color: #5A6A6A;
}

.newsletter-link {
    color: #D4854A;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-link:hover {
    color: #C4754A;
}

.newsletter-signup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    background: linear-gradient(135deg, #2D6A6A, #1E4D4D);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    color: white;
}

.signup-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.signup-form {
    display: flex;
    gap: var(--space-sm);
}

.signup-input {
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    min-width: 280px;
    outline: none;
}

.signup-btn {
    background: #D4854A;
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.signup-btn:hover {
    background: #C4754A;
    transform: translateY(-2px);
}

/* ==========================================
   BLOG POST PAGE
   ========================================== */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-2xl) var(--space-4xl);
}

.blog-hero-image {
    width: 100%;
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.blog-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-header {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid #E8F0F0;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.blog-date {
    font-size: 0.85rem;
    color: #5A6A6A;
    margin-left: var(--space-sm);
}

.blog-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.blog-subtitle {
    font-size: 1.15rem;
    color: #5A6A6A;
    line-height: 1.6;
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3A4A4A;
}

.blog-section {
    margin-bottom: var(--space-3xl);
}

.blog-section h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid #2D6A6A;
    display: inline-block;
}

.blog-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.benefit-block,
.risk-block {
    background: #F8FAFA;
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-md);
    border-left: 4px solid #2D6A6A;
}

.risk-block {
    border-left-color: #D4854A;
}

.blog-section ul {
    list-style: none;
    padding: 0;
}

.blog-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}

.benefit-block ul li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #2D6A6A;
    font-weight: 700;
}

.risk-block ul li::before {
    content: '!';
    position: absolute;
    left: 0;
    color: #D4854A;
    font-weight: 700;
}

.blog-section > ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #2D6A6A;
    font-weight: 700;
}

.blog-section p {
    margin-bottom: var(--space-sm);
}

/* Dosing Cards */
.dosing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.dosing-card {
    background: linear-gradient(135deg, #2D6A6A, #1E4D4D);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
}

.dosing-card h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.dosing-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.dosing-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Mindset Card */
.mindset-card {
    background: linear-gradient(135deg, #FDF8F3, #F5EDE4);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.mindset-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-md);
}

.mindset-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #D4854A;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mindset-quote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.5;
}

/* Next Edition */
.next-edition {
    text-align: center;
    color: #5A6A6A;
    font-size: 1rem;
}

/* Krystal Section */
.krystal-section {
    background: linear-gradient(180deg, #FDF8F3 0%, white 100%);
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.lifestyle-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.lifestyle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.lifestyle-card.home-card { border-top-color: #D4854A; }
.lifestyle-card.yard-card { border-top-color: #4A7A52; }
.lifestyle-card.beauty-card { border-top-color: #9B89B3; }
.lifestyle-card.sun-card { border-top-color: #F4A259; }
.lifestyle-card.supps-card { border-top-color: #FF7B54; }
.lifestyle-card.diet-card { border-top-color: #6EC89B; }
.lifestyle-card.exercise-card { border-top-color: #2D6A6A; }

.lifestyle-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.lifestyle-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.lifestyle-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.lifestyle-list li {
    padding: var(--space-sm) 0;
    color: #5A6A6A;
    font-size: 0.95rem;
    border-bottom: 1px solid #E8F0F0;
}

.lifestyle-list li:last-child {
    border-bottom: none;
}

.lifestyle-link {
    color: #D4854A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Commons Section */
.commons-section {
    background: linear-gradient(180deg, white 0%, #F8FAF8 100%);
}

.commons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.commons-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.commons-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #F8FAFA;
    border-radius: var(--radius-md);
}

.event-date {
    text-align: center;
    min-width: 50px;
}

.event-day {
    display: block;
    font-size: 0.75rem;
    color: #5A6A6A;
    text-transform: uppercase;
}

.event-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.event-info p {
    font-size: 0.8rem;
    color: #5A6A6A;
}

.event-spots {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4854A;
}

.commons-link {
    color: #2D6A6A;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.8rem;
}

.challenge-item {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.active-challenge {
    background: linear-gradient(135deg, rgba(212, 133, 74, 0.1), rgba(232, 168, 107, 0.1));
    border: 1px solid rgba(212, 133, 74, 0.2);
}

.upcoming-challenge {
    background: #F8FAFA;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.challenge-name {
    font-weight: 600;
}

.challenge-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.challenge-status.live {
    background: #FF7B54;
    color: white;
}

.challenge-status.upcoming {
    background: #D8E0E0;
    color: #5A6A6A;
}

.challenge-dates {
    font-size: 0.85rem;
    color: #5A6A6A;
    margin-bottom: var(--space-xs);
}

.challenge-fasting-ref {
    font-size: 0.85rem;
    color: #5A6A6A;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.challenge-fasting-ref a {
    color: var(--accent-teal);
    text-decoration: underline;
}

.challenge-progress {
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 8px;
    background: rgba(212, 133, 74, 0.2);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--progress);
    background: linear-gradient(90deg, #D4854A, #FF7B54);
    border-radius: 999px;
}

.progress-text {
    font-size: 0.8rem;
    color: #5A6A6A;
}

.challenge-supplements {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.supp-label {
    font-size: 0.8rem;
    color: #5A6A6A;
}

.supp-item {
    font-size: 0.75rem;
    background: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: #2D6A6A;
    font-weight: 500;
}

.join-btn, .submit-score-btn, .reserve-btn {
    width: 100%;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.join-btn {
    background: #2D6A6A;
    color: white;
}

.join-btn:hover {
    background: #1E4D4D;
}

.submit-score-btn {
    background: transparent;
    color: #2D6A6A;
    border: 2px dashed #2D6A6A;
}

.submit-score-btn:hover {
    background: #2D6A6A;
    color: white;
    border-style: solid;
}

.records-intro {
    font-size: 0.9rem;
    color: #5A6A6A;
    margin-bottom: var(--space-md);
}

.records-summary {
    margin-bottom: var(--space-md);
}

.records-summary .record-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #E8F0F0;
}

.records-summary .record-item:last-child {
    border-bottom: none;
}

.records-summary .record-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.records-summary .record-best {
    font-size: 0.85rem;
    color: #2D6A6A;
    font-weight: 600;
}

/* ==========================================
   RECORDS PAGE
   ========================================== */
.records-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px var(--space-xl) var(--space-2xl);
}

.records-page-header {
    margin-bottom: var(--space-2xl);
}

.records-back-link {
    display: inline-block;
    color: #2D6A6A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.records-back-link:hover {
    text-decoration: underline;
}

.records-page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.records-page-desc {
    font-size: 1.1rem;
    color: #5A6A6A;
}

/* Search Bar */
.records-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: var(--space-lg);
}

.records-search-input {
    flex: 1;
    padding: 14px 22px;
    border: 2px solid #D0E0E0;
    border-radius: 30px;
    background: white;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
}

.records-search-input::placeholder {
    color: #9BAFAF;
}

.records-search-input:focus {
    border-color: #2D6A6A;
}

.records-search-btn {
    padding: 14px 32px;
    background: #2D6A6A;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.records-search-btn:hover {
    background: #245555;
}

/* Search Results Overview */
.records-search-results {
    margin-bottom: var(--space-xl);
}

.records-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.records-search-results-header h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--charcoal);
}

.records-search-clear {
    padding: 8px 20px;
    background: none;
    border: 2px solid #D0E0E0;
    border-radius: 20px;
    color: #5A6A6A;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.records-search-clear:hover {
    border-color: #2D6A6A;
    color: #2D6A6A;
}

.records-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.records-result-card {
    background: white;
    border: 2px solid #E8F0F0;
    border-radius: 16px;
    padding: var(--space-lg);
    transition: border-color 0.2s;
}

.records-result-card:hover {
    border-color: #2D6A6A;
}

.records-result-card h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5A6A6A;
    margin-bottom: 8px;
}

.records-result-score {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.records-result-meta {
    font-size: 0.85rem;
    color: #7A8F8F;
}

.records-search-no-results {
    text-align: center;
    padding: var(--space-xl) 0;
    color: #5A6A6A;
    font-size: 1.1rem;
    display: none;
}

/* Filter Bar */
.records-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #E8F0F0;
}

.records-filter {
    padding: 8px 18px;
    border: 2px solid #D0E0E0;
    border-radius: 25px;
    background: white;
    color: #5A6A6A;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.records-filter:hover {
    border-color: #2D6A6A;
    color: #2D6A6A;
}

.records-filter.active {
    background: #2D6A6A;
    color: white;
    border-color: #2D6A6A;
}

/* Table Sections */
.records-table-section {
    margin-bottom: var(--space-2xl);
}

.records-table-header {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 3px solid #2D6A6A;
}

.records-table-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.records-table-meta {
    font-size: 0.85rem;
    color: #7A8A8A;
    line-height: 1.4;
}

/* Spreadsheet Table */
.records-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.records-table thead th {
    background: #F0F5F5;
    color: #3A5A5A;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #D0E0E0;
    white-space: nowrap;
}

.records-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #E8F0F0;
    color: #333;
}

.records-table tbody tr:hover {
    background: #F8FBFB;
}

.records-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank column */
.col-rank {
    width: 60px;
    text-align: center;
}

.records-table tbody td:first-child {
    text-align: center;
    font-weight: 700;
    color: #5A6A6A;
}

/* Name column */
.col-name {
    min-width: 180px;
}

.records-table tbody td:nth-child(2) {
    font-weight: 600;
}

/* Score column */
.col-score {
    width: 100px;
}

.best-score {
    font-weight: 700;
    color: #2D6A6A;
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
}

/* Attempt columns */
.col-attempt {
    width: 110px;
    color: #7A8A8A;
}

/* Date columns */
.col-date {
    width: 100px;
    color: #7A8A8A;
}

/* Podium rows */
.rank-gold td:first-child {
    color: #B8860B;
}

.rank-gold {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
}

.rank-silver td:first-child {
    color: #808080;
}

.rank-silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 40%);
}

.rank-bronze td:first-child {
    color: #CD7F32;
}

.rank-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, transparent 40%);
}

@media (max-width: 600px) {
    .records-page {
        padding: 100px var(--space-md) var(--space-xl);
    }

    .records-table {
        font-size: 0.85rem;
    }

    .records-table thead th,
    .records-table tbody td {
        padding: 10px 10px;
    }

    .col-attempt {
        display: none;
    }

    .records-table thead th.col-attempt {
        display: none;
    }
}

/* Injuries & Recovery Card */
.recovery-intro {
    font-size: 0.9rem;
    color: #5A6A6A;
    margin-bottom: var(--space-lg);
}

.recovery-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.recovery-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #FDF8F5;
    border-radius: var(--radius-md);
    border-left: 3px solid #D4854A;
}

.recovery-icon {
    font-size: 1.25rem;
    min-width: 32px;
    text-align: center;
    padding-top: 2px;
}

.recovery-details {
    flex: 1;
}

.recovery-details h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
    color: var(--charcoal);
}

.recovery-details p {
    font-size: 0.8rem;
    color: #5A6A6A;
    line-height: 1.5;
    margin-bottom: var(--space-xs);
}

.recovery-timeline {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4854A;
}

.recovery-tips {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.recovery-tips-label {
    font-size: 0.8rem;
    color: #5A6A6A;
    font-weight: 600;
}

.recovery-tip-tag {
    font-size: 0.75rem;
    background: rgba(74, 122, 82, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: #4A7A52;
    font-weight: 500;
}

.signup-event-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: #2D6A6A;
    margin-bottom: var(--space-md);
}

.signup-event-info h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.signup-event-info p {
    font-size: 0.9rem;
    color: #5A6A6A;
    margin-bottom: var(--space-md);
}

.spots-indicator {
    margin-bottom: var(--space-lg);
}

.spots-visual {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.spot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E8F0F0;
    border: 2px solid #D8E0E0;
    transition: background 0.3s, border-color 0.3s;
}

.spot.filled {
    background: #2D6A6A;
    border-color: #2D6A6A;
}

.spots-text {
    font-size: 0.85rem;
    color: #5A6A6A;
}

.reserve-btn {
    background: linear-gradient(135deg, #D4854A, #FF7B54);
    color: white;
}

.reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 133, 74, 0.3);
}

.reserve-btn.cancel-mode {
    background: #E8F0F0;
    color: #5A6A6A;
}

.reserve-btn.cancel-mode:hover {
    background: #D8E0E0;
    box-shadow: none;
}

.attendee-list {
    margin-top: var(--space-md);
}

.attendee-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.attendee-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: #5A6A6A;
    border-bottom: 1px solid #F0F4F4;
}

.attendee-item:last-child {
    border-bottom: none;
}

.attendee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2D6A6A;
    flex-shrink: 0;
}

/* Generator Section */
.generator-section {
    background: linear-gradient(180deg, var(--pump-navy) 0%, #1E4D4D 100%);
    border-radius: 0;
    color: white;
    max-width: none;
    margin: 0;
    padding: var(--space-4xl);
}

.generator-section .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.generator-section .section-title {
    color: white;
}

.generator-section .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
}

.generator-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gen-group {
    margin-bottom: var(--space-xl);
}

.gen-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.gen-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.gen-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.gen-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gen-option.active {
    background: #D4854A;
    border-color: #D4854A;
}

.generate-btn {
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(135deg, #D4854A, #FF7B54);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all 0.2s;
    margin-top: var(--space-lg);
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 133, 74, 0.4);
}

.generated-workout {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.workout-placeholder {
    text-align: center;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.workout-placeholder h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.workout-placeholder p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
}

/* Footer */
.main-footer {
    background: var(--charcoal);
    color: white;
    padding: var(--space-4xl) var(--space-2xl) var(--space-xl);
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #8A9A9A;
}

.footer-links {
    display: flex;
    gap: var(--space-4xl);
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    color: #B8C8C8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    color: #8A9A9A;
    text-decoration: none;
    padding: var(--space-xs) 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #8A9A9A;
}

/* ==========================================
   AUTH - Navigation & Pages
   ========================================== */

/* Nav divider between main nav and auth */
.nav-divider {
    width: 1px;
    height: 20px;
    background: #D0DEDE;
    flex-shrink: 0;
}

/* Auth nav container */
.auth-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Auth links (logged-out state) */
.auth-link {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #2D6A6A;
}

/* Sign Up gets a teal pill button */
.auth-link-primary {
    background: #2D6A6A;
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    font-size: 0.85rem;
}

.auth-link-primary:hover {
    background: #1E4D4D;
    color: white;
}

/* Logged-in state */
.auth-user {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2D6A6A;
}

.auth-logout-btn {
    background: transparent;
    border: 1px solid #D0DEDE;
    color: var(--charcoal);
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-logout-btn:hover {
    border-color: var(--charcoal);
    background: var(--charcoal);
    color: white;
}

/* Homepage header overrides (text-shadow for readability on background) */
.site-header .auth-link {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.site-header .auth-link-primary {
    text-shadow: none;
}

.site-header .auth-user {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.site-header .nav-divider {
    background: rgba(0, 0, 0, 0.15);
}

/* Auth page layout */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-lg);
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: var(--space-3xl);
    width: 100%;
    max-width: 440px;
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.auth-card p {
    color: #5A6A6A;
    margin-bottom: var(--space-xl);
}

/* Form fields */
.auth-field {
    margin-bottom: var(--space-lg);
}

.auth-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.auth-field input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid #D0DEDE;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    border-color: #2D6A6A;
}

/* Error and success messages */
.auth-error {
    color: #D44A4A;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    min-height: 1.4em;
}

.auth-success {
    color: #2D6A6A;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    min-height: 1.4em;
}

/* Submit button */
.auth-submit-btn {
    width: 100%;
    padding: var(--space-md);
    background: #2D6A6A;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.auth-submit-btn:hover {
    background: #1E4D4D;
    transform: translateY(-2px);
}

/* Toggle link ("Don't have an account?") */
.auth-switch {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9rem;
    color: #5A6A6A;
}

.auth-switch a {
    color: #2D6A6A;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Profile page */
.profile-avatar {
    width: 72px;
    height: 72px;
    background: #2D6A6A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
    text-transform: uppercase;
}

.profile-email {
    text-align: center;
    color: #5A6A6A;
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
}

.profile-divider {
    border: none;
    border-top: 1px solid #E0EAEA;
    margin: var(--space-xl) 0;
}

.auth-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
}

.auth-user {
    text-decoration: none;
}

.auth-user:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .cards-grid {
        max-width: 700px;
    }

    .generator-circle {
        width: clamp(120px, 18vw, 170px);
        height: clamp(120px, 18vw, 170px);
    }

    .commons-grid {
        grid-template-columns: 1fr;
    }

    .generator-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   MOBILE NAVIGATION
   ========================================== */

/* Hamburger button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 201;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Homepage hamburger needs darker lines for sky bg */
.site-header .mobile-menu-btn span {
    background: var(--charcoal);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: white;
    z-index: 200;
    padding: 5rem var(--space-xl) var(--space-xl);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav a {
    display: block;
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--space-md) 0;
    border-bottom: 1px solid #E8F0F0;
    transition: color 0.2s;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: #2D6A6A;
}

.mobile-nav .mobile-nav-divider {
    height: 1px;
    background: #D0DEDE;
    margin: var(--space-sm) 0;
}

.mobile-nav .mobile-auth-nav {
    padding-top: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-nav .mobile-auth-nav .auth-link {
    display: block;
    padding: var(--space-sm) 0;
    font-size: 1rem;
}

.mobile-nav .mobile-auth-nav .auth-link-primary {
    display: inline-block;
    text-align: center;
    padding: var(--space-sm) var(--space-lg);
    margin-top: var(--space-xs);
}

.mobile-nav .mobile-auth-nav .auth-user {
    display: block;
    padding: var(--space-sm) 0;
    font-size: 1rem;
}

.mobile-nav .mobile-auth-nav .auth-logout-btn {
    margin-top: var(--space-xs);
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
}

/* Prevent body scroll when mobile nav open */
body.mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav,
    .mobile-nav-overlay {
        display: block;
    }

    .homepage {
        height: auto;
        min-height: 100vh;
    }

    .header-nav {
        display: none;
    }

    .site-header {
        flex-direction: row;
        align-items: center;
        padding: var(--space-md) var(--space-lg);
    }

    .page-header {
        flex-direction: row;
        padding: var(--space-md) var(--space-lg);
    }

    .auth-card {
        padding: var(--space-xl);
    }

    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .generator-circle {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: var(--space-lg) auto;
        order: -1;
    }

    .card {
        min-height: 200px;
    }

    .card-content {
        max-width: 60%;
    }

    .full-section {
        padding: var(--space-2xl) var(--space-lg);
    }

    .newsletter-item {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .newsletter-date {
        justify-self: start;
    }

    .newsletter-signup {
        flex-direction: column;
        text-align: center;
    }

    .signup-form {
        flex-direction: column;
        width: 100%;
    }

    .signup-input {
        min-width: auto;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }

    .generator-circle {
        width: 140px;
        height: 140px;
    }

    .dosing-cards {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: var(--space-xl) var(--space-lg) var(--space-3xl);
    }
}
