/* Activity pages reuse the food-reference and calculator component systems. */

.activity-table-section,
.activity-calculator-section {
    width: min(980px, calc(100% - 32px));
}

.activity-table-section > .section-heading,
.activity-calculator-section > .section-heading {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.activity-table-component {
    display: grid;
    justify-items: stretch;
    gap: 14px;
    width: min(100%, 760px);
    margin-inline: auto;
}

.activity-table-selector {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.activity-table-selector select {
    width: auto;
    min-height: 48px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--surface-strong);
    color: var(--text);
    font: inherit;
    field-sizing: content;
}

.activity-reference-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.activity-reference-table thead th span,
.activity-reference-table thead th small,
.activity-reference-table tbody th span,
.activity-reference-table tbody th small {
    display: block;
}

.activity-reference-table thead th small {
    margin-top: 3px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
}

.activity-reference-table tbody th[scope="row"] {
    font-weight: 700;
    white-space: nowrap;
}

.activity-reference-table tbody th small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.activity-reference-table tbody td {
    white-space: nowrap;
}

.activity-reference-table .is-highlighted,
.activity-reference-table tr.is-highlighted > * {
    background: color-mix(in srgb, var(--accent-strong) 7%, transparent);
}

.activity-calculator.calorie-calculator {
    position: static;
    width: min(100%, 880px);
    margin-inline: auto;
}

.activity-calculator-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-grid);
    align-items: stretch;
}

.activity-calculator-inputs {
    display: grid;
    align-content: start;
    gap: 14px;
}

.activity-select-control {
    width: 100%;
    padding: 0;
}

.activity-select-control select {
    width: 100%;
    min-height: 48px;
    padding: 0 42px 0 14px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.activity-calculator-submit {
    width: 100%;
    margin-top: 30px;
}

.activity-calculator-result {
    align-self: stretch;
    padding-bottom: 0;
}

.activity-calculator-result > p {
    margin: 0;
    padding: 14px 20px 18px;
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
}

.activity-calculator-error {
    margin: 0;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 700;
}

.activity-factors-section .calorie-goal-output-card {
    min-height: 0;
    padding: 22px;
}

.activity-kibora-cta {
    margin-top: var(--space-section-tight);
}

.activity-methodology-section .calorie-paper-abstract {
    margin-bottom: 22px;
}

.activity-full-calculator-cta.closing-cta {
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: none;
}

.activity-full-calculator-cta.closing-cta p {
    color: var(--muted);
}

@media (max-width: 760px) {
    .activity-calculator-layout {
        grid-template-columns: 1fr;
    }

    .activity-reference-table {
        min-width: 540px;
    }

    .activity-table-selector {
        justify-self: start;
    }
}
