/* Acteve Lift — small overrides on top of Pico CSS. */

/* Acteve brand palette (from acteve.fit). */
:root {
  --acteve-1: #ad90ff; /* light purple — links, accents, hovers */
  --acteve-2: #503c81; /* dark purple — primary buttons, fills */
  --acteve-cool-500: #556987;
  --acteve-cool-900: #1c232d;

  /* Override Pico's primary with Acteve dark purple. */
  --pico-primary: var(--acteve-2);
  --pico-primary-hover: #3d2e64;
  --pico-primary-background: var(--acteve-1);
  --pico-primary-border: var(--acteve-2);
  --pico-primary-inverse: #fff;
}

/* Use the lighter Acteve purple for inline links inside body text. */
a {
  color: var(--acteve-2);
  text-decoration-color: var(--acteve-1);
}
a:hover {
  color: var(--acteve-1);
  text-decoration-color: var(--acteve-1);
}

/* Tighter nav + footer. */
.nav nav {
  padding-block: 0.4rem;
  align-items: center;
}
.brand-logo {
  height: 2.2rem;
  width: auto;
  display: block;
  vertical-align: middle;
}
.nav .brand {
  display: inline-flex;
  align-items: center;
  color: var(--acteve-cool-900);
  text-decoration: none;
}
@media (max-width: 540px) {
  .brand-logo {
    height: 1.8rem;
  }
}
.nav nav a[aria-current="page"] {
  color: var(--acteve-2);
  font-weight: 600;
}
footer.container {
  padding-block: 2rem 3rem;
  text-align: center;
  opacity: 0.85;
}
footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 1rem;
}
footer .footer-links a {
  font-size: 0.85rem;
}

/* Weekly signal bar chart (rendered by the Alpine component on /workout-plan). */
.signal-row {
  display: grid;
  grid-template-columns: 9rem 1fr 5.5rem;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0;
}
.signal-bar-track {
  display: block;
  height: 0.85rem;
  border-radius: 99px;
  background: var(--pico-secondary-background, #e9ecef);
  overflow: hidden;
}
.signal-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--acteve-2);
  transition: width 0.25s ease;
}
.signal-value {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* The generator form controls. */
.gen-controls-panel {
  background: var(--pico-card-background-color, #f8f9fa);
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
form.gen-controls-panel {
  margin: 0;
}
.home-gen h2 {
  margin-top: 0;
}
.gen-controls fieldset,
.gen-controls-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}
.gen-controls legend,
.gen-controls-panel legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.4rem;
}
.gen-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 2rem;
}
.gen-form-row fieldset {
  flex: 1 1 auto;
  margin-bottom: 0;
  width: auto;
  min-width: 0;
}
.gen-actions {
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  margin: 0;
}
.gen-actions button {
  margin-bottom: 0;
}
.equipment-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.equipment-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  width: auto;
  font-weight: 400;
  cursor: pointer;
}
.equipment-options input[type="checkbox"] {
  width: 1.25em;
  height: 1.25em;
  margin: 0;
  flex: none;
}
@media (max-width: 540px) {
  .gen-form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .gen-form-row fieldset {
    width: 100%;
  }
  .gen-actions {
    align-items: stretch;
  }
  .gen-actions button {
    width: 100%;
  }
  .equipment-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.freq-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
label.freq-card,
button.freq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin: 0;
  width: 100%;
  min-width: 0;
  height: auto;
  font: inherit;
  font-weight: 400;
  line-height: 1.3;
  color: inherit;
  box-shadow: none;
}
label.freq-card:hover,
button.freq-card:hover {
  border-color: var(--acteve-1, #ad90ff);
  background: #fff;
  color: inherit;
}
label.freq-card.selected,
button.freq-card.selected,
label.freq-card:has(input:checked) {
  border-color: var(--acteve-2, #503c81);
  box-shadow: 0 0 0 1px var(--acteve-2, #503c81);
}
label.freq-card input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
}
.freq-card-title,
.freq-card-desc,
.freq-card-metrics,
.freq-card-metric,
.freq-card-bar-track {
  display: block;
}
.freq-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--acteve-2, #503c81);
}
.freq-card-desc {
  font-size: 0.82rem;
  color: var(--pico-muted-color, #6c757d);
  line-height: 1.3;
  min-height: 1.6em;
}
.freq-card-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.freq-card-metric-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}
.freq-card-metric-label {
  font-size: 0.75rem;
  color: var(--pico-muted-color, #6c757d);
}
.freq-card-metric-val {
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--acteve-2, #503c81);
}
.freq-card-bar-track {
  width: 100%;
  height: 0.4rem;
  border-radius: 99px;
  background: var(--pico-secondary-background, #c8cdd3);
  overflow: hidden;
}
.freq-card-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.freq-card-bar-fill.time,
.freq-card-bar-fill.signal {
  background: var(--acteve-1, #ad90ff);
}
@media (max-width: 720px) {
  .freq-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .freq-cards {
    grid-template-columns: 1fr;
  }
}

/* Exercise list. */
.session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.session-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color, #eee);
}
.session-list .idx {
  color: var(--pico-muted-color, #888);
  text-align: right;
}
.session-list .muscles {
  color: var(--pico-muted-color, #888);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

/* About page — Evelyn photo and certification badges. */
.portrait {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.5rem;
  display: block;
  margin: 1.5rem auto;
}
.portrait-small {
  width: 100%;
  max-width: 14rem;
  border-radius: 0.5rem;
  display: block;
}
.portrait-caption {
  display: block;
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
  margin-top: 0.4rem;
  text-align: center;
  line-height: 1.4;
}
.portrait-caption strong {
  color: var(--acteve-2);
}
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.cert-badges img {
  height: 4rem;
  width: auto;
  border-radius: 0.25rem;
}

/* ============================================================
   Layout toolkit — composes pleasing arrangements on top of Pico.
   ============================================================ */

/* Hero — top of a page. Generous spacing, optional centered text. */
.hero {
  padding-block: 2.5rem 2rem;
}
.hero--center {
  text-align: center;
}
.hero .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 52rem;
  margin-inline: auto;
  color: var(--acteve-cool-500);
}
.hero--center .lead {
  margin-inline: auto;
}

/* Two-column hero: text + media. Collapses on narrow screens. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-grid .hero-media img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-grid .hero-media {
    max-width: 24rem;
    margin-inline: auto;
    width: 100%;
  }
  .hero-grid .hero-media img {
    aspect-ratio: auto;
  }
}

/* Link cards — the home-page nav grid. */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
}
.link-cards > li {
  margin: 0;
}
.link-card {
  display: block;
  height: 100%;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: var(--pico-card-background-color, #f8f9fa);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}
.link-card:hover {
  border-color: var(--acteve-1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(80, 60, 129, 0.08);
  text-decoration: none;
}
.link-card .card-title {
  color: var(--acteve-2);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}
.link-card .card-desc {
  color: var(--acteve-cool-500);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Generic card grid. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 0;
}
.card {
  padding: 1.4rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: var(--pico-card-background-color, #f8f9fa);
}
.card > h3,
.card > h4 {
  margin-top: 0;
  color: var(--acteve-2);
}
.card > :last-child {
  margin-bottom: 0;
}

/* Callout — highlighted info box. */
.callout {
  border: 1px solid var(--acteve-1);
  border-left: 4px solid var(--acteve-1);
  border-radius: 0.5rem;
  background: rgba(173, 144, 255, 0.08);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout > :first-child {
  margin-top: 0;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout--warn {
  border-color: #d4a017;
  border-left-color: #d4a017;
  background: rgba(212, 160, 23, 0.08);
}
.callout--warn .callout-title {
  color: #8a6a00;
}
.callout-title {
  font-weight: 600;
  color: var(--acteve-2);
  margin: 0 0 0.35rem;
}

/* Figure — images with captions (used in science + about). */
.figure {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 40rem;
}
.figure img {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  display: block;
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
  margin-top: 0.5rem;
  line-height: 1.45;
  text-align: left;
  max-width: 40rem;
  margin-inline: auto;
}

/* Style bare images inside main prose (science page markdown) as figures. */
main img:not(.portrait):not(.page-hero-photo):not([alt=""]) {
  display: block;
  max-width: 40rem;
  margin: 1.75rem auto;
  border-radius: 0.5rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
}

/* Key-value grid — imprint / contact blocks. */
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.kv-block {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: var(--pico-card-background-color, #f8f9fa);
}
.kv-block h3,
.kv-block h4 {
  margin: 0 0 0.6rem;
  color: var(--acteve-2);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kv-block p {
  margin: 0 0 0.3rem;
  line-height: 1.5;
}
.kv-block p:last-child {
  margin-bottom: 0;
}

/* Check list — the privacy "what we don't do" grid. */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0;
}
.check-grid > .check-item {
  padding: 1rem 1.15rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.5rem;
  background: var(--pico-card-background-color, #f8f9fa);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.45;
}
.check-grid .tick {
  flex: 0 0 auto;
  color: var(--acteve-2);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}
.check-grid strong {
  color: var(--acteve-2);
}

/* Split — two-column prose on wide screens. */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}
.split > :last-child {
  margin-bottom: 0;
}

/* Science — two-column prose with sidebar refs. */
.science-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
}
.science-refs {
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
  border-left: 1px solid var(--pico-muted-border-color, #e9ecef);
  padding-left: 1.25rem;
}
.science-refs h4 {
  font-size: 0.9rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--acteve-2);
  font-weight: 600;
}
.science-refs h4:first-child {
  margin-top: 0.15rem;
}
.science-ref {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.science-ref-title {
  font-weight: 600;
  color: var(--acteve-cool-700);
}
.science-ref-cite {
  font-style: italic;
}
.science-ref a {
  font-size: 0.8rem;
}
.science-ref-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.signal-chart {
  margin: 1.35rem 0 0.4rem;
}
.signal-chart-title {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--acteve-cool-900);
}
.signal-chart-frame {
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.35rem 0.35rem 0.15rem;
}
.signal-chart canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  max-height: 440px;
}
.signal-chart figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--acteve-cool-500);
  text-align: left;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .science-layout {
    grid-template-columns: 1fr;
  }
  .science-refs {
    border-left: none;
    border-top: 1px solid var(--pico-muted-border-color, #e9ecef);
    padding-left: 0;
    padding-top: 1rem;
  }
}

/* Constants strip — key numbers highlighted. */
.constants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.constant {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.5rem;
  background: var(--pico-card-background-color, #f8f9fa);
}
.constant .value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acteve-2);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.constant .label {
  display: block;
  font-size: 0.8rem;
  color: var(--acteve-cool-500);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Example grid — weighting page. */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 0;
}
.example-grid > .ex-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.5rem;
  background: var(--pico-card-background-color, #f8f9fa);
}
.example-grid .ex-name {
  display: block;
  font-weight: 600;
  color: var(--acteve-2);
  margin-bottom: 0.3rem;
}
.example-grid code {
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
  word-break: break-word;
}

/* Section spacing — give headed sections a little breathing room. */
main > section,
main article {
  margin-block: 1.75rem;
}

/* Page-title h1 — brand color, large, consistent across all pages. */
main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--acteve-2);
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

main h2 {
  margin-top: 2rem;
  color: var(--acteve-2);
}
main h3 {
  margin-top: 1.75rem;
}

/* Tighten the very first heading after a hero. */
.hero + h2,
.hero-grid + h2 {
  margin-top: 1.5rem;
}

/* Pico table refinements — border, rounded, header tint. */
main table {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
}
main table thead th {
  background: rgba(80, 60, 129, 0.08);
  color: var(--acteve-2);
}

.hero-type {
  padding-block: 0.75rem 0.5rem;
  container-type: inline-size;
}
/* First line is ~17.3em at bold. Scale off the hero, not the viewport,
   so it shrinks before the Pico container width forces a wrap. */
.hero-type h1.hero-line {
  font-size: clamp(1.15rem, 5.4cqi, 3rem);
  text-wrap: wrap;
}
.hero-type .lead {
  margin-inline: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0 0;
}
.cta-row [role="button"] {
  margin: 0;
}

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.5rem 1.25rem;
  padding: 0;
  margin: 1rem 0;
}
.scenes p {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.5rem;
  background: var(--pico-card-background-color, #f8f9fa);
}

.paper {
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  margin: 1rem 0;
}
.paper h3,
.paper h4 {
  margin-top: 0;
}
.paper-cite {
  font-size: 0.95rem;
  color: var(--acteve-cool-500);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

#claims,
#generate,
#healthspan,
#dose,
#signal,
#consensus {
  scroll-margin-top: 4rem;
}

.btn-generate {
  font-weight: 600;
  padding: 0.7rem 1.25rem;
}

.section-lead {
  color: var(--acteve-cool-500);
  max-width: 40rem;
}

.photo-ph {
  margin: 0;
}
.photo-ph img {
  width: 100%;
  border-radius: 0.75rem;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--acteve-2);
}
.photo-ph figcaption {
  font-size: 0.8rem;
  color: var(--acteve-cool-500);
  margin-top: 0.45rem;
}

.beats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  align-items: stretch;
}
article.beat {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: var(--pico-card-background-color, #f8f9fa);
  min-width: 0;
}
article.beat h3 {
  margin: 0 0 0.5rem;
  color: var(--acteve-2);
  font-size: 1.1rem;
  line-height: 1.3;
}
article.beat p {
  margin: 0;
  color: var(--acteve-cool-500);
  line-height: 1.5;
}
article.beat a {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
}

.week-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}
.session-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: #fff;
}
.session-card h3 {
  margin: 0 0 0.6rem;
  color: var(--acteve-2);
  font-size: 1rem;
}
.session-card .session-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.45rem;
  font-size: 0.92rem;
  padding: 0.4rem 0;
}
.session-card .session-list li .idx {
  grid-column: 1;
  grid-row: 1;
}
.session-card .session-list li .muscles {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.78rem;
}
.session-card .session-list li > span:last-child {
  grid-column: 3;
  grid-row: 1;
  color: var(--acteve-cool-500);
  font-size: 0.8rem;
}

.sample-signal {
  max-width: 36rem;
  margin: 1.5rem 0 0;
}
.sample-signal h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.contrast {
  margin: 2.5rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--acteve-1);
  background: rgba(173, 144, 255, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
}
.contrast p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--acteve-2);
}

.science-cards {
  grid-template-columns: repeat(3, 1fr);
}
.science-cards .card p {
  color: var(--acteve-cool-500);
}
.science-cards .card p:last-child {
  margin-bottom: 0;
}

.group-lead {
  color: var(--acteve-cool-500);
  max-width: 42rem;
}

.signed {
  font-style: italic;
  color: var(--acteve-2);
}

.certs-heading {
  font-size: 1.15rem;
  color: var(--acteve-cool-500);
}
.certs-list {
  color: var(--acteve-cool-500);
  font-size: 0.95rem;
}
.cert-badges {
  opacity: 0.85;
}

.faq details {
  border: 1px solid var(--pico-muted-border-color, #e9ecef);
  border-radius: 0.6rem;
  background: var(--pico-card-background-color, #f8f9fa);
  padding: 0.85rem 1.15rem;
  margin: 0.65rem 0;
}
.faq summary {
  font-weight: 600;
  color: var(--acteve-2);
  cursor: pointer;
  list-style-position: outside;
}
.faq details[open] summary {
  margin-bottom: 0.55rem;
}
.faq details p {
  margin: 0;
  margin-bottom: 0.5rem;
  color: var(--acteve-cool-500);
}
.faq details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 840px) {
  .beats,
  .week-preview,
  .science-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Home page
   ============================================================ */
body {
  overflow-x: clip;
}

/* Full-width band inside the Pico container. */
.bleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acteve-1);
}
.eyebrow-dark {
  color: var(--acteve-2);
}

main:has(> .home-hero) {
  padding-top: 0;
}
main > section.home-hero {
  margin-top: 0;
}
.home-hero {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(173, 144, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #3d2e64 0%, var(--acteve-2) 55%, #2a2045 100%);
  color: #fff;
  padding-block: 4rem 4.5rem;
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.home-hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
}
.home-hero .cta-row {
  margin-top: 2rem;
}
[role="button"].btn-hero {
  background: #fff;
  border-color: #fff;
  color: var(--acteve-2);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
}
[role="button"].btn-hero:hover {
  background: var(--acteve-1);
  border-color: var(--acteve-1);
  color: #fff;
}
.link-light {
  color: #fff;
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.link-light:hover {
  color: var(--acteve-1);
}

/* Example-session card standing in for the hero photo. */
.home-hero-media {
  justify-self: center;
  width: 100%;
  max-width: 24rem;
}
.mock-card {
  background: #fff;
  color: var(--acteve-cool-900);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 24px 60px rgba(20, 12, 45, 0.45);
  transform: rotate(1.5deg);
}
.mock-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.mock-card-day {
  font-weight: 700;
  color: var(--acteve-2);
}
.mock-card-time {
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
}
.mock-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: mock;
}
.mock-list li {
  counter-increment: mock;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  list-style: none;
  margin: 0;
}
.mock-list li::before {
  content: counter(mock);
  flex: 0 0 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(173, 144, 255, 0.18);
  color: var(--acteve-2);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mock-list li span:first-child {
  flex: 1;
}
.mock-sets {
  font-weight: 600;
  color: var(--acteve-cool-500);
  font-variant-numeric: tabular-nums;
}
.mock-card-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: #2f7d4f;
  font-weight: 600;
}
.mock-caption {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Key facts under the hero. */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: -2rem auto 0;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgba(28, 35, 45, 0.1);
  position: relative;
}
.proof-strip > div {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.proof-strip > div + div {
  border-left: 1px solid #eee;
}
.proof-strip strong {
  font-size: 1.3rem;
  color: var(--acteve-2);
}
.proof-strip span {
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
}

.home-section {
  padding-block: 2.5rem 1rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 2rem;
}
main h2.section-title {
  margin-top: 0;
}

.home-section article.beat {
  background: #fff;
  border-color: #ece8f7;
  padding: 1.6rem;
  border-radius: 0.9rem;
}
.beat-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(173, 144, 255, 0.16);
  color: var(--acteve-2);
}

/* Simplified generator. */
.gen-panel {
  background: #f7f5fc;
  border-radius: 1rem;
  padding: 1.75rem;
  margin: 0;
}
.gen-panel .gen-step {
  border: 0;
  padding: 0;
  margin: 0 0 1.75rem;
}
.gen-panel legend,
.gen-step-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--acteve-cool-900);
  margin: 0 0 0.9rem;
  padding: 0;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--acteve-2);
  color: #fff;
  font-size: 0.9rem;
}
.gen-panel .freq-cards {
  margin-bottom: 0;
}
.gen-panel label.freq-card {
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 0.8rem;
  gap: 0.25rem;
}
.freq-card-time,
.freq-card-week,
.freq-card-badge {
  display: block;
}
.freq-card-time {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}
.freq-card-time strong {
  color: var(--acteve-2);
  font-size: 1.15rem;
}
.freq-card-week {
  font-size: 0.8rem;
  color: var(--acteve-cool-500);
}
.freq-card-badge {
  position: absolute;
  top: -0.65rem;
  right: 0.8rem;
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  background: var(--acteve-2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}
.gen-panel label.freq-card:has(input:focus-visible),
.chip:has(input:focus-visible) {
  outline: 2px solid var(--acteve-1);
  outline-offset: 2px;
}

.equip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.equip-chips label.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  width: auto;
  padding: 0.55rem 1rem;
  border: 1px solid #ddd6f3;
  border-radius: 99px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}
.equip-chips label.chip:has(input:checked) {
  border-color: var(--acteve-2);
  background: rgba(173, 144, 255, 0.14);
  color: var(--acteve-2);
}
.equip-chips label.chip.is-fixed {
  cursor: default;
}
.equip-chips input[type="checkbox"] {
  margin: 0;
  width: 1.1em;
  height: 1.1em;
}
.gen-step-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid #e4def5 !important;
}
.gen-step-go .gen-step-label {
  margin: 0;
}
.gen-panel .btn-generate {
  margin: 0;
  width: auto;
  padding: 0.8rem 2rem;
  border-radius: 99px;
}
.gen-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--acteve-cool-500);
  text-align: center;
}

/* Coach block. */
.coach {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
}
.coach-photo {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(173, 144, 255, 0.25);
}
.coach blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--acteve-cool-900);
}
.coach-meta {
  color: var(--acteve-cool-500);
  margin-bottom: 0.5rem;
}

.final-cta {
  margin-top: 3rem;
  padding-block: 3.5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--acteve-2), #2a2045);
  color: rgba(255, 255, 255, 0.85);
}
.final-cta h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}
.final-cta p {
  margin-bottom: 1.5rem;
}
main > .final-cta + @media (max-width: 840px) {
  .home-hero {
    padding-block: 2.5rem 4rem;
  }
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .mock-card {
    transform: none;
  }
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.25rem;
  }
  .proof-strip > div:nth-child(3) {
    border-left: 0;
  }
  .coach {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.5rem;
  }
}
@media (max-width: 540px) {
  .gen-panel {
    padding: 1.25rem;
  }
  .gen-step-go,
  .gen-panel .btn-generate {
    width: 100%;
  }
}
.gen-panel button.btn-generate {
  background: var(--acteve-2);
  border-color: var(--acteve-2);
  color: #fff;
}
.gen-panel button.btn-generate:hover {
  background: #3d2e64;
  border-color: #3d2e64;
}
.equip-chips label.chip.is-fixed {
  white-space: nowrap;
  opacity: 1;
  color: var(--acteve-2);
}
.equip-chips label.chip small {
  color: var(--acteve-cool-500);
  font-size: 0.75rem;
}
.final-cta p {
  color: rgba(255, 255, 255, 0.85);
}

/* Fixed header: stays on top while scrolling; background spans full width. */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 100vmax rgba(255, 255, 255, 0.92);
  clip-path: inset(0 -100vmax -1px);
  border-bottom: 1px solid rgba(28, 35, 45, 0.08);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
#claims,
#generate,
#healthspan,
#dose,
#signal,
#consensus {
  scroll-margin-top: 5rem;
}

/* Superset in the example-session card. */
.mock-list li.mock-superset {
  flex-wrap: wrap;
  row-gap: 0.15rem;
}
.mock-ss-label {
  flex: 1;
  font-weight: 600;
  color: var(--acteve-2);
}
.mock-ss-label small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--acteve-cool-500);
  margin-left: 0.3rem;
}
.mock-ss-list {
  list-style: none;
  width: 100%;
  margin: 0.2rem 0 0 0.8rem;
  padding: 0 0 0 1.4rem;
  border-left: 3px solid var(--acteve-1);
}
.mock-ss-list li {
  border-bottom: 0;
  padding: 0.3rem 0;
}
.mock-ss-list li::before {
  content: none;
}
.mock-ss-letter {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--acteve-1);
}
.mock-ss-list li {
  counter-increment: none;
}
.mock-ss-list li span:first-child {
  flex: 0 0 auto;
}
.mock-ss-list li span:nth-child(2) {
  flex: 1;
}

/* ============================================================
   Inner pages (Workout plan, Science, About, FAQ)
   ============================================================ */
main:has(> .page-hero),
main:has(> div > .page-hero:first-child) {
  padding-top: 0;
}
.page-hero {
  background:
    radial-gradient(50rem 22rem at 90% 0%, rgba(173, 144, 255, 0.3), transparent 60%),
    linear-gradient(160deg, #3d2e64 0%, var(--acteve-2) 60%, #2a2045 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem 3.25rem;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  max-width: 40rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.85);
}
.page-hero p.eyebrow {
  color: var(--acteve-1);
}
.page-hero-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 38rem;
  margin: 0;
}
.page-hero a:not([role="button"]) {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.page-hero a:not([role="button"]):hover {
  color: var(--acteve-1);
}
.page-hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.page-hero-photo {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(173, 144, 255, 0.35), 0 20px 50px rgba(20, 12, 45, 0.45);
}
main img.page-hero-photo {
  margin: 0;
  max-width: none;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(173, 144, 255, 0.35), 0 20px 50px rgba(20, 12, 45, 0.45);
}
main > .page-hero,
main > div > .page-hero:first-child {
  margin-top: 0;
}

.page-section {
  padding-block: 2.5rem 0.5rem;
}
.narrow {
  max-width: 44rem;
  margin-inline: auto;
}
.narrow > h2:first-child {
  margin-top: 0;
}
.pull-quote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border: 0;
  border-left: 4px solid var(--acteve-1);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--acteve-cool-900);
}

/* Jump cards at the top of Science / FAQ group nav. */
.jump-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: -2rem 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.jump-cards li {
  list-style: none;
  margin: 0;
}
.jump-cards a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgba(28, 35, 45, 0.1);
  text-decoration: none;
  color: var(--acteve-cool-900);
  transition: box-shadow 0.15s, transform 0.15s;
}
.jump-cards a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(28, 35, 45, 0.16);
  color: var(--acteve-cool-900);
}
.jump-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acteve-1);
  margin-bottom: 0.35rem;
}
.jump-title {
  display: block;
  font-weight: 700;
  color: var(--acteve-2);
  margin-bottom: 0.3rem;
}
.jump-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--acteve-cool-500);
  line-height: 1.45;
}

.home-consensus {
  max-width: 40rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--acteve-cool-500);
}

/* Science summary: the ACSM position stand in brief. */
.consensus {
  margin: 2.5rem 0 1rem;
  padding: 1.75rem 1.75rem 1.4rem;
  border: 1px solid #ece8f7;
  border-radius: 1rem;
  background: #f7f5fc;
}
.consensus h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.consensus .eyebrow {
  margin-bottom: 0.4rem;
}
.consensus-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--acteve-cool-900);
}
.consensus-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 0;
}
.consensus-list li {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--acteve-cool-500);
}
.consensus-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--acteve-2);
  font-size: 1rem;
}
.consensus-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--acteve-cool-500);
}
.science-ref-key {
  padding: 0.75rem 0.85rem;
  border-radius: 0.6rem;
  background: #f7f5fc;
}
.science-ref-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acteve-2);
  margin-bottom: 0.2rem;
}
.science-ref-meta {
  font-size: 0.8rem;
}

/* Science sections. */
.science-section {
  padding-top: 1rem;
}
.science-section + .science-section {
  border-top: 1px solid #ece8f7;
}
.science-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.01em;
  margin-top: 0;
}
.science-section .eyebrow {
  margin-bottom: 0.4rem;
}
.in-short {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  background: #f7f5fc;
  color: var(--acteve-cool-900);
  font-size: 1.02rem;
  line-height: 1.55;
}
.in-short strong:first-child {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acteve-2);
  margin-bottom: 0.25rem;
}
.science-refs {
  align-self: start;
}
.model-note {
  font-size: 0.9rem;
  color: var(--acteve-cool-500);
}

/* FAQ groups. */
.faq-group {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: 2rem;
}
.faq-group h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}
.faq-group details {
  background: #fff;
  border: 1px solid #ece8f7;
  border-radius: 0.8rem;
  padding: 0;
  margin: 0 0 0.6rem;
  transition: box-shadow 0.15s;
}
.faq-group details[open] {
  box-shadow: 0 8px 24px rgba(28, 35, 45, 0.07);
}
.faq-group summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--acteve-cool-900);
  cursor: pointer;
}
.faq-group summary::after {
  float: right;
}
.faq-group details[open] summary {
  margin-bottom: 0;
  color: var(--acteve-2);
}
.faq-group details > :not(summary) {
  margin: 0;
  padding: 0 1.25rem 0.75rem;
  color: var(--acteve-cool-500);
}
.faq-group details > :last-child {
  padding-bottom: 1.15rem;
}

/* Certifications. */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.cert-grid li {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #ece8f7;
  border-radius: 0.75rem;
  background: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--acteve-cool-500);
}
.cert-grid strong {
  display: block;
  color: var(--acteve-cool-900);
}

/* Workout plan page. */
.plan-panel {
  margin-top: -2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(28, 35, 45, 0.1);
  background: #fff;
}
.plan-panel button.freq-card {
  border-radius: 0.8rem;
  padding: 1.1rem 1.1rem 1rem;
  gap: 0.25rem;
}
.plan-panel button.freq-card:focus-visible {
  outline: 2px solid var(--acteve-1);
  outline-offset: 2px;
}
.plan-panel .freq-card-bar-track {
  background: #ece8f7;
}
.plan-panel .freq-card-metrics {
  margin-top: 0.6rem;
}
.plan-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 2.5rem 0 1rem;
}
.plan-results-head h2 {
  margin: 0;
}
.plan-results-head p {
  margin: 0.2rem 0 0;
  color: var(--acteve-cool-500);
  font-size: 0.92rem;
}
.plan-actions {
  display: flex;
  gap: 0.6rem;
}
.plan-actions button {
  color: var(--acteve-2);
  border-color: #ddd6f3;
  margin: 0;
  width: auto;
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  font-size: 0.9rem;
}
.plan-empty {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  border: 2px dashed #e4def5;
  border-radius: 1rem;
  text-align: center;
  color: var(--acteve-cool-500);
}
.plan-empty p {
  margin: 0;
}

@media (max-width: 840px) {
  .page-hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-hero-photo {
    width: 11rem;
    height: 11rem;
    order: -1;
  }
  .jump-cards {
    grid-template-columns: 1fr;
  }
  .consensus-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 540px) {
  .consensus {
    padding: 1.25rem 1rem 1rem;
  }
}
@media (max-width: 540px) {
  .page-hero {
    padding-block: 2rem 3rem;
  }
  .plan-actions {
    width: 100%;
  }
  .plan-actions button {
    flex: 1;
  }
}

/* ============================================================
   Session cards: the generated week on /workout-plan/ and the
   build-time example weeks on the plan landing pages.
   ============================================================ */

.gen-sessions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gen-session {
  margin: 0;
  border: 1px solid #ece8f7;
  border-radius: 0.9rem;
  box-shadow: 0 6px 20px rgba(28, 35, 45, 0.05);
  background: var(--pico-card-background-color, #fff);
  padding: 1.1rem 1.15rem 1.2rem;
}
.gen-session-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.6rem;
  padding: 0 0 0.6rem;
  border-bottom: 1px solid #ece8f7;
  background: none;
}
.gen-session h3 {
  margin: 0;
  color: var(--acteve-2);
  font-size: 1.05rem;
}
.gen-session-time {
  font-size: 0.85rem;
  color: var(--acteve-cool-500);
}
.gen-num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(173, 144, 255, 0.18);
  color: var(--acteve-2) !important;
  font-size: 0.8rem;
  text-align: center !important;
  line-height: 1 !important;
}
.gen-letter {
  flex: 0 0 auto;
  min-width: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.85;
  color: var(--acteve-1, #ad90ff);
}

/* Block list — reset all Pico list defaults */
.gen-blocks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gen-blocks > li {
  display: block;
  padding: 0.2rem 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #eee;
}
.gen-blocks > li:last-child {
  border-bottom: 0;
}

/* Exercise row — flexbox, full width, name takes remaining space.
   Same structure for singles and superset exercises so they align. */
.gen-ex-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0;
}
.gen-num {
  flex: 0 0 1.6rem;
  font-weight: 700;
}
.gen-num-spacer {
  flex: 0 0 1.4rem;
}
.gen-ex-body {
  flex: 1 1 auto;
  min-width: 0;
}
.gen-ex-name {
  display: block;
  font-weight: 500;
  line-height: 1.4;
}
.gen-ex-groups {
  display: block;
  color: var(--pico-muted-color, #888);
  font-size: 0.8rem;
  line-height: 1.3;
}
.gen-sets {
  flex: 0 0 auto;
  color: var(--pico-muted-color, #888);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
  margin-top: 0.05rem;
}

/* Superset — same look as the home-page example card:
   numbered label row, then an indented A/B list with an accent rule. */
.gen-ss-label {
  flex: 1 1 auto;
  font-weight: 600;
  color: var(--acteve-2);
  line-height: 1.4;
}
.gen-ss-label small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--acteve-cool-500);
}
.gen-superset-exs {
  list-style: none;
  margin: 0.1rem 0 0.2rem 0.8rem;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--acteve-1, #ad90ff);
}
.gen-superset-exs > li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
  margin: 0;
  list-style: none;
}

/* ============================================================
   Plan landing pages (_includes/plan-landing.njk) + footer plans row
   ============================================================ */
.plan-example-intro {
  max-width: 44rem;
  margin: -1rem auto 1.75rem;
  text-align: center;
  color: var(--acteve-cool-500);
}
.plan-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.9rem;
  background: rgba(173, 144, 255, 0.14);
}
.plan-cta-band p {
  margin: 0;
  max-width: 40rem;
}
.plan-cta-band strong {
  color: var(--acteve-2);
}
[role="button"].btn-plan {
  flex: none;
  margin: 0;
  background: var(--acteve-2);
  border-color: var(--acteve-2);
  color: #fff;
  font-weight: 700;
  border-radius: 99px;
  padding: 0.7rem 1.4rem;
}
[role="button"].btn-plan:hover {
  background: #3d2e64;
  border-color: #3d2e64;
}
.plan-copy h2 {
  margin-top: 2rem;
}
main table.plan-signal {
  max-width: 24rem;
}
.plan-signal td:last-child,
.plan-signal th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plan-signal-note {
  font-size: 0.9rem;
  color: var(--acteve-cool-500);
}
.plan-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.plan-links li {
  list-style: none;
  margin: 0;
}
.plan-links a {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid #ece8f7;
  border-radius: 0.9rem;
  background: #fff;
  text-decoration: none;
}
.plan-links a:hover {
  border-color: var(--acteve-1);
}
.plan-links strong {
  display: block;
  color: var(--acteve-2);
}
.plan-links span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--acteve-cool-500);
}
footer .footer-plans {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid #ece8f7;
}
footer .footer-plans a,
footer .footer-plans-label {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
footer .footer-plans-label {
  font-weight: 600;
  color: var(--acteve-cool-900);
}
footer .footer-plans a[aria-current="page"] {
  font-weight: 600;
}
footer .footer-plans-generator {
  font-weight: 600;
}
@media (max-width: 720px) {
  .plan-cta-band {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  footer .footer-plans-label {
    flex-basis: 100%;
  }
}

/* /workout-plan/: the static example session under the form. */
.plan-sample {
  display: grid;
  grid-template-columns: 1fr minmax(17rem, 22rem);
  gap: 2rem;
  align-items: start;
  margin-top: 2.5rem;
}
.plan-sample h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}
.plan-sample .gen-sessions {
  grid-template-columns: 1fr;
}
@media (max-width: 720px) {
  .plan-sample {
    grid-template-columns: 1fr;
  }
}
