/* Weight Room — one column: the 5-rep inputs, three day panels, the weekly
   rules. Each exercise is a single row: picture, name, sets, weight.
   Loaded after style-creative.css and before night-theme.css, with
   <html data-theme="night">. */

.gym-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 110px var(--spacing-md) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.gym-title {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

/* ------------------------------------------------------------------ */
/* Panels                                                              */
/* ------------------------------------------------------------------ */
.gym-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* ------------------------------------------------------------------ */
/* The 5-rep inputs                                                    */
/* ------------------------------------------------------------------ */
.fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.field label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.field-input {
    display: flex;
    align-items: baseline;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    padding-right: 0.75rem;
    transition: border-color var(--transition-fast);
}

.field-input:focus-within { border-color: var(--color-accent); }

.field-input input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    padding: 0.5rem 0.75rem;
    color: var(--color-accent);
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.field-input input:focus { outline: none; }

.field-input .unit {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ------------------------------------------------------------------ */
/* Day panels                                                          */
/* ------------------------------------------------------------------ */
.day-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--color-border);
}

.day-head h2 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.2;
}

.day-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

/* ------------------------------------------------------------------ */
/* One exercise: picture · name + sets · weight                        */
/* ------------------------------------------------------------------ */
.ex {
    display: grid;
    grid-template-columns: 124px 1fr auto;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.ex:last-child { border-bottom: none; padding-bottom: 0; }

/* Line art on a transparent background — mount it on white so it reads
   against the night theme. */
.ex-img {
    width: 100%;
    height: 124px;
    object-fit: contain;
    background: #fff;
    border-radius: 2px;
    padding: 0.3rem;
}

.ex-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ex-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ex-sets {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.ex-load {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.ex-load.unset { color: var(--color-text-muted); }

/* ------------------------------------------------------------------ */
/* Weekly rules                                                        */
/* ------------------------------------------------------------------ */
.rules ul {
    list-style: none;
    margin: var(--spacing-sm) 0 0;
    padding: 0;
}

.rules li {
    margin-bottom: 0.3rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.rules li:last-child { margin-bottom: 0; }
.rules li strong { color: var(--color-text); font-weight: 600; }

.credit {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

.credit a { color: var(--color-secondary); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 600px) {
    .gym-page { padding: 90px var(--spacing-sm) var(--spacing-md); }
    .gym-panel { padding: var(--spacing-sm); }

    .ex {
        grid-template-columns: 92px 1fr auto;
        gap: var(--spacing-xs);
    }

    .ex-img { height: 92px; }
    .ex-name { font-size: 1rem; }
    .ex-sets { font-size: 0.9375rem; }
    .ex-load { font-size: 1.25rem; }
}
