/* ==========================================================================
   Blue Athletic — Dedicated Pillar Hubs (Visually Rich & Athletic Depth)
   ========================================================================== */

body.pillar-shell {
  background: var(--ba-ground, #f7f8fc);
  color: var(--ba-text-body, #38406a);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}

.shell-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ba-border, rgba(11, 19, 48, 0.08));
}

/* ==========================================================================
   Pillar Specific Theme Variables
   ========================================================================== */
body.pillar--move {
  --pillar-accent: #2a5cff;
  --pillar-accent-glow: rgba(42, 92, 255, 0.2);
  --pillar-bg-gradient: radial-gradient(circle at 10% 10%, rgba(42, 92, 255, 0.08) 0%, transparent 60%);
}

body.pillar--eat {
  --pillar-accent: #0284c7;
  --pillar-accent-glow: rgba(2, 132, 199, 0.2);
  --pillar-bg-gradient: radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.08) 0%, transparent 60%);
}

body.pillar--recover {
  --pillar-accent: #10b981;
  --pillar-accent-glow: rgba(16, 185, 129, 0.2);
  --pillar-bg-gradient: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

/* ==========================================================================
   Pillar Hero Section
   ========================================================================== */
.rich-pillar-hero {
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
  background: var(--pillar-bg-gradient), var(--ba-ground, #f7f8fc);
  border-bottom: 1px solid var(--ba-border, rgba(11, 19, 48, 0.08));
}

.rich-pillar-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .rich-pillar-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.back-link {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ba-text-muted, #6c7398);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--pillar-accent);
}

.pillar-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pillar-accent);
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  color: var(--ba-navy, #0b1330);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.pillar-subtitle {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--ba-text-body, #38406a);
  margin: 0 0 1.2rem;
}

.pillar-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ba-text-body, #38406a);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.pillar-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-pill {
  background: #ffffff;
  border: 1px solid var(--ba-border, rgba(11, 19, 48, 0.12));
  border-radius: 0.85rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(11, 19, 48, 0.04);
}

.stat-pill strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ba-navy, #0b1330);
  line-height: 1;
}

.stat-pill span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--ba-text-muted, #6c7398);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Pillar Photo Card */
.pillar-photo-card {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 48px -12px rgba(11, 19, 48, 0.25);
  border: 1px solid rgba(11, 19, 48, 0.12);
  background: var(--ba-navy, #0b1330);
}

.pillar-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center 20%;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(11, 19, 48, 0.92) 0%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.photo-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ba-mint, #8fe3c4);
}

.photo-overlay strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================================================
   Biological Framework Banner
   ========================================================================== */
.framework-section {
  padding: 2.5rem 0 1.5rem;
}

.framework-banner {
  background: linear-gradient(135deg, #0b1330 0%, #152458 100%);
  border: 1px solid rgba(42, 92, 255, 0.3);
  border-radius: 1.25rem;
  padding: 2.25rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 16px 40px -12px rgba(11, 19, 48, 0.3);
}

@media (max-width: 860px) {
  .framework-banner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.framework-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ba-mint, #8fe3c4);
  background: rgba(143, 227, 196, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 0.35rem;
  margin-bottom: 0.75rem;
}

.framework-banner h2 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.framework-banner p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.framework-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
}

.framework-node {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.65rem;
  padding: 0.75rem 0.6rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.node-idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ba-mint, #8fe3c4);
}

.framework-node strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.framework-node span:last-child {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.node-arr {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
}

/* ==========================================================================
   Curriculum Track List
   ========================================================================== */
.curriculum-track-section {
  padding: 3rem 0 4.5rem;
}

.curriculum-track-head {
  margin-bottom: 2.5rem;
}

.track-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pillar-accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
}

.curriculum-track-head h2 {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--ba-navy, #0b1330);
  margin: 0 0 0.5rem;
}

.curriculum-track-head p {
  font-size: 1.02rem;
  color: var(--ba-text-body, #38406a);
  margin: 0;
  max-width: 42rem;
}

/* Guide Cards */
.rich-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rich-guide-card {
  background: #ffffff;
  border: 1px solid var(--ba-border, rgba(11, 19, 48, 0.12));
  border-radius: 1.15rem;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  box-shadow: 0 4px 14px rgba(11, 19, 48, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.rich-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(11, 19, 48, 0.08);
  border-color: var(--pillar-accent);
}

.rich-guide-card.is-begin-here {
  border-left: 5px solid var(--pillar-accent);
  background: linear-gradient(90deg, rgba(42, 92, 255, 0.02) 0%, #ffffff 100%);
}

.rich-guide-card.is-keystone {
  border-left: 5px solid #0284c7;
}

.rich-guide-card.is-capstone {
  border-left: 5px solid #10b981;
}

.rich-guide-card__index {
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-num {
  font-family: "Big Shoulders Display", monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ba-navy, #0b1330);
  opacity: 0.3;
  line-height: 1;
}

.rich-guide-card:hover .index-num {
  color: var(--pillar-accent);
  opacity: 1;
}

.rich-guide-card__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.topic-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ba-text-muted, #6c7398);
  background: var(--ba-ground, #f7f8fc);
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
}

.milestone-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
}

.milestone-pill--begin {
  background: #dbeafe;
  color: #1d4ed8;
}

.milestone-pill--keystone {
  background: #e0f2fe;
  color: #0369a1;
}

.milestone-pill--capstone {
  background: #dcfce7;
  color: #15803d;
}

.rich-guide-card__title {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.rich-guide-card__title a {
  color: var(--ba-navy, #0b1330);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rich-guide-card__title a:hover {
  color: var(--pillar-accent);
}

.rich-guide-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ba-text-body, #38406a);
  margin: 0 0 0.75rem;
}

.read-link {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pillar-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.read-link:hover {
  gap: 0.55rem;
}

/* ==========================================================================
   Cross Pillar Navigation
   ========================================================================== */
.cross-pillar-section {
  padding: 2rem 0 4rem;
}

.cross-pillar-card {
  background: var(--ba-navy, #0b1330);
  border-radius: 1.25rem;
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 16px 40px -12px rgba(11, 19, 48, 0.3);
}

.cross-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ba-mint, #8fe3c4);
}

.cross-pillar-copy h3 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0 0.5rem;
}

.cross-pillar-copy p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cross-pillar-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cross-pillar-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.65rem 1.2rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cross-pillar-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}


/* Biomechanical Schematic Card for Move Pillar */
.pillar-schematic-card {
  background: linear-gradient(135deg, #0b1330 0%, #152458 100%);
  border: 1px solid rgba(42, 92, 255, 0.35);
  border-radius: 1.25rem;
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 20px 48px -12px rgba(11, 19, 48, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schematic-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.schematic-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ba-mint, #8fe3c4);
}

.schematic-header strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.schematic-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.curve-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.curve-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.curve-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.curve-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.curve-item--stress .curve-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 999px;
}

.curve-item--capacity .curve-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
}

.curve-val {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.schematic-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

.schematic-footer .formula {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--ba-mint, #8fe3c4);
  font-weight: 700;
}


body.pillar-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.4rem;
  border: 0;
  border-radius: 0.7rem;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

body.pillar-shell .btn-primary {
  background: var(--ba-blue, #2a5cff);
  color: #fff;
}

body.pillar-shell .btn-primary:hover {
  background: var(--ba-blue-deep, #1e4adf);
}

body.pillar-shell .path-outcome,
body.pillar-shell .path-sequence,
body.pillar-shell .path-commitment {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ba-text-body, #38406a);
  margin: 0.35rem 0 0;
  max-width: 46rem;
}

@media (prefers-reduced-motion: reduce) {
  .rich-guide-card,
  .read-link,
  .back-link {
    transition: none !important;
  }
  .rich-guide-card:hover {
    transform: none;
  }
}
