/* Home page: maximum aerobic function (Maffetone and Laursen 2020) */
.maf { background: #f6f4ef; padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.maf-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.maf-eyebrow { margin: 0 0 .9rem; color: var(--pink-ink); font-size: .82rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.maf-title { margin: 0 0 1.25rem; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.02em; }
.maf-title span { color: var(--pink-ink); }
.maf-lead { max-width: 38rem; margin: 0 0 1.1rem; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.maf-by { margin: 0 0 1.4rem; font-size: .98rem; }
.maf-by cite, .maf-credit cite { font-style: italic; }
.maf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.maf-card { margin: 0; padding: clamp(1.3rem, 3vw, 2rem); border-radius: 16px; background: #080808; color: #faf8f2; }
.maf-card-label { margin: 0 0 .3rem; color: #f0ca62; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; }
.maf-formula { margin: 0 0 .4rem; color: #d8a92e; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 700; line-height: 1; }
.maf-card-sub { margin: 0 0 1rem; color: #b8b5ae; font-size: .92rem; }
.maf-age { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; font-weight: 600; }
.maf-age input { width: 5.5rem; padding: .55rem .7rem; border: 1px solid #343434; border-radius: 8px; background: #111111; color: #faf8f2; font: inherit; }
.maf-age input:focus { outline: 0; border-color: #d8a92e; box-shadow: 0 0 0 3px rgba(216, 169, 46, .25); }
.maf-cats { display: grid; gap: .45rem; margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.maf-cats legend { margin: 0 0 .45rem; padding: 0; font-weight: 600; }
.maf-cats label { display: grid; grid-template-columns: auto 2.4rem 1fr; gap: .55rem; align-items: start; padding: .55rem .7rem; border: 1px solid #343434; border-radius: 10px; color: #b8b5ae; font-size: .88rem; line-height: 1.4; cursor: pointer; }
.maf-cats label:has(input:checked) { border-color: #d8a92e; background: rgba(216, 169, 46, .08); color: #faf8f2; }
.maf-cats input { margin: .2rem 0 0; accent-color: #d8a92e; }
.maf-cats b { color: #f0ca62; }
.maf-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin: 0; padding-top: .9rem; border-top: 1px solid #343434; font-weight: 600; }
.maf-result output { color: #d8a92e; font-size: 1.9rem; font-weight: 700; white-space: nowrap; }
.maf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: clamp(2.2rem, 5vw, 3.2rem) 0 0; padding: 0; list-style: none; counter-reset: maf; }
.maf-grid li { padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; counter-increment: maf; }
.maf-grid h3 { margin: 0 0 .45rem; font-size: 1.08rem; line-height: 1.25; }
.maf-grid h3::before { content: counter(maf, decimal-leading-zero); margin-right: .55rem; color: var(--pink-ink); font-size: .85rem; letter-spacing: .08em; }
.maf-grid p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.maf-fig { margin: 1.4rem 0 0; }
.maf-fig summary { display: inline-block; padding: .55rem 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: .2em; }
.maf-credit { max-width: 60rem; margin: 1.2rem 0 0; padding-left: .75rem; border-left: 3px solid #d8a92e; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.maf-credit a { color: inherit; }
@media (max-width: 900px) {
  .maf-top { grid-template-columns: minmax(0, 1fr); }
  .maf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .maf-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Knowledge Hub: Morton et al. (2026) section */
.maf-note { margin: .7rem 0 0; color: #b8b5ae; font-size: .86rem; line-height: 1.5; }
.maf-note:empty { display: none; }
.maf-result + .maf-result { padding-top: .5rem; border-top: 0; }
.maf-grid li.maf-wide { grid-column: 1 / -1; }
/* Home: the evidence points open on request */
.maf-more { margin: clamp(2rem, 4vw, 2.8rem) 0 0; }
.maf-more > summary { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.25rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.maf-more > summary::-webkit-details-marker { display: none; }
.maf-more > summary::after { content: "+"; color: var(--pink-ink); font-weight: 700; }
.maf-more[open] > summary::after { content: "−"; }
.maf-more > summary:hover, .maf-more > summary:focus-visible { border-color: #d8a92e; }
.maf-more .maf-grid { margin-top: 1.4rem; }
/* Home: the course grid shows two rows and the rest open on request; the all-courses offer stays in view */
#courses.is-clipped #group-all .cc-grid > :nth-child(n+8):not(.cc-bundle) { display: none; }
@media (max-width: 719px) {
  #courses.is-clipped #group-all .cc-grid > :nth-child(n+4):not(.cc-bundle) { display: none; }
}
