/* ============================================================
   fitness/train.html — Layer-3 page-specific styles
   Inherits dark palette from data-palette="midnight" + sub-page chrome.
   ============================================================ */

[data-page="fitness-train"],
[data-page="fitness-move"],
[data-page="fitness-fuel"],
[data-page="fitness-diet"],
[data-page="fitness-build"],
[data-page="fitness-recover"] {
  --bg: #0c0d10;
  --bg-elev: #14161a;
  --bg-elev-2: #1c1f24;
  --ink: #ece7dc;
  --ink-dim: #b9b6ad;
  --ink-mute: #7a766c;
  --rule: rgba(236, 231, 220, 0.14);
  --rule-strong: rgba(236, 231, 220, 0.30);
  --accent: #ff7a3a;
  --accent-soft: #c43818;
  --accent-ink: #0c0d10;
}

/* ---------- breadcrumb (3 levels) ---------- */
.tcrumb {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.tcrumb-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tcrumb-trail { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tcrumb-trail a { color: var(--ink-mute); transition: color 0.15s; }
.tcrumb-trail a:hover { color: var(--ink); }
.tcrumb-trail .sep { opacity: 0.55; }
.tcrumb-trail .here { color: var(--accent); }

/* ============================================================
   HERO — smaller than landing/fitness; image side, not full-bleed
   ============================================================ */
.thero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  overflow: hidden;
}
.thero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) var(--gutter) clamp(48px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: end;
  position: relative;
  z-index: 1;
}
.thero-bg {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  opacity: 0.4;
}
.thero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 60%, transparent) 30%, transparent 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 40%, transparent), transparent 40%, color-mix(in oklab, var(--bg) 70%, transparent));
}
.thero-eye {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.thero-eye .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.thero h1 {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 14ch;
}
.thero h1 .it { font-style: italic; color: var(--accent); }
.thero .lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 0 28px;
}
.thero .meta-row {
  display: flex; gap: 20px; align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.thero .meta-row strong { color: var(--ink); font-weight: 400; }
.thero .meta-row .sep { opacity: 0.4; }

.thero-aside {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  align-self: end;
  padding-bottom: 6px;
}
.thero-aside .a-eye {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.thero-aside p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: 32ch;
}
.thero-aside .by {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 12px;
}
.thero-aside .by .ava {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--rule-strong);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.thero-aside .by strong { color: var(--ink); font-weight: 400; }

/* ============================================================
   THE FOUR — sub-categories menu (workouts, programming, strength, cardio)
   ============================================================ */
.tfour {
  padding: clamp(64px, 7vw, 112px) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.tfour-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.tfour-list {
  border-top: 1px solid var(--rule-strong);
}
.tfour-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: clamp(20px, 2.5vw, 40px);
  padding: clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: padding-left 0.25s ease;
}
.tfour-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.tfour-row:hover::before { opacity: 1; }
.tfour-row:hover { padding-left: 12px; }
.tfour-row .num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.tfour-row .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tfour-row .name {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}
.tfour-row .name .it { font-style: italic; color: var(--accent); }
.tfour-row .dek {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-dim);
  margin: 0;
  max-width: 52ch;
}
.tfour-row .tags {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.tfour-row .meta {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
  white-space: nowrap;
}
.tfour-row .meta .arr {
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  transition: transform 0.25s;
}
.tfour-row:hover .meta .arr { transform: translateX(8px); }
.tfour-row .meta .ct strong { color: var(--ink); font-weight: 400; }

.tfour-rail {
  position: sticky;
  top: 96px;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.tfour-rail .r-eye {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.tfour-rail .r-eye .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.tfour-rail .r-img {
  aspect-ratio: 4/3;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.tfour-rail .r-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tfour-rail h4 {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}
.tfour-rail h4 .it { font-style: italic; color: var(--accent); }
.tfour-rail p {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0;
}
.tfour-rail .r-foot {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.tfour-rail .r-foot .arr { color: var(--accent); }

/* ============================================================
   WIDE TRAIN INDEX - grouped L3 shelves, not a square blob
   ============================================================ */
.twide .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.twide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.twide-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(22px, 2.4vw, 34px);
}
.twide-copy p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--ink-dim);
  margin: 0;
}
.twide-rail { position: sticky; top: 96px; }
.twide-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 72px);
}
.twide-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  border-top: 1px solid var(--rule-strong);
  padding-top: clamp(24px, 3vw, 42px);
}
.twide-group-head {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.twide-group-head span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.twide-group-head h3 {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  max-width: 8ch;
}
.twide-group-head p {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
  margin: 0;
  max-width: 32ch;
}
.twide-list { border-top: 1px solid var(--rule); }
.twide-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(120px, auto);
  gap: clamp(16px, 2.5vw, 34px);
  padding: clamp(22px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  align-items: baseline;
  position: relative;
}
.twide-row.live {
  cursor: pointer;
  transition: padding-left 0.25s ease, background 0.25s ease;
}
.twide-row.live::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.twide-row.live:hover { padding-left: 12px; }
.twide-row.live:hover::before { opacity: 1; }
.twide-row.planned { opacity: 0.56; }
.twide-row .num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.twide-row h4 {
  font-family: var(--f-display);
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 9px;
}
.twide-row h4 .it { font-style: italic; color: var(--accent); }
.twide-row p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 56ch;
  margin: 0 0 10px;
}
.twide-row .tags {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.twide-row .meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.twide-row .meta strong {
  color: var(--accent);
  font-weight: 400;
}
.twide-row.planned .meta strong { color: var(--ink-mute); }

/* ============================================================
   EDITORIAL — long-form SEO body, mag-style
   Drop-cap + alternating section-header / paragraph rhythm.
   ============================================================ */
.tedit {
  padding: clamp(72px, 8vw, 128px) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.tedit::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, color-mix(in oklab, var(--accent) 16%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.tedit-inner { position: relative; }
.tedit-body {
  max-width: 880px;
  margin: 48px auto 0;
  font-family: var(--f-display);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.65;
  color: var(--ink);
}
.tedit-body p { margin: 0 0 24px; }
.tedit-body em, .tedit-body i {
  font-style: italic; color: var(--accent);
}
.tedit-body p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 5em;
  float: left;
  line-height: 0.85;
  padding: 0.05em 0.12em 0 0;
  color: var(--accent);
}
.tedit-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 40px 0 14px;
  display: flex; align-items: center; gap: 14px;
}
.tedit-h::before {
  content: ""; width: 24px; height: 1px;
  background: var(--accent);
}
.tedit-h.first { margin-top: 0; }

.tedit-pull {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  color: var(--accent);
  margin: 36px auto;
  max-width: 28ch;
  text-align: center;
  text-wrap: balance;
}

/* ============================================================
   FEATURED + START + PULL + FOOTER reuse fitness chrome
   nothing more needed — they live in fitness-styles.css
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .thero-inner { grid-template-columns: 1fr; align-items: start; }
  .thero-bg { width: 100%; opacity: 0.18; }
  .thero-aside { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .tfour-grid { grid-template-columns: 1fr; }
  .tfour-rail { position: static; }
  .twide-layout,
  .twide-copy,
  .twide-group { grid-template-columns: 1fr; }
  .twide-group-head { position: static; }
}
@media (max-width: 700px) {
  .tfour-row { grid-template-columns: 40px 1fr; }
  .tfour-row .meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 8px; }
  .tfour-row .name { font-size: clamp(28px, 8vw, 40px); }
  .twide-row { grid-template-columns: 34px 1fr; }
  .twide-row .meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .twide-copy p { font-size: 18px; }
}
