/* ═══════════════════════════════════════════════════════════
   SUMMIT TRIATHLON COACHING — Intelligence Surface System
   styles/intelligence.css

   Governed CSS for all Summit Intelligence pages.
   Extends core tokens (tokens.css), components (components.css),
   and image treatments (image-treatments.css).

   Components:
   1.  Hero Intelligence Variant  (.hero--intelligence)
   2.  Stat Strip                 (.stat-strip)
   3.  Intel Section              (.intel-section)
   4.  Editorial Pause            (.editorial-pause)
   5.  Editorial Callout          (.editorial-callout)
   6.  Graph Theatre              (.graph-theatre)
   7.  Interpreter Card           (.interpreter-card)
   8.  Intel Layer Grid           (.intel-layer-grid)
   9.  Founder Attribution        (.founder-attribution)
   10. Publication Block          (.intel-publication)
   ═══════════════════════════════════════════════════════════ */


/* ═══ PAGE BASELINE ═══
   Intelligence surfaces use full navy body with inverse text.
   font-smoothing ensures crisp text on dark backgrounds. */
.page--intelligence {
  background-color: var(--summit-neoprene-navy);
  color: var(--summit-alpine-white);
  font-family: var(--font-sans);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}


/* ═══════════════════════════════════════════════════════════
   1. HERO — INTELLIGENCE VARIANT
   Extends .hero from components.css.
   Differences: column layout, editorial pacing, stat strip,
   radial overlay instead of standard navy wash.
   ═══════════════════════════════════════════════════════════ */

.hero--intelligence {
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) 0;
  background: linear-gradient(180deg, rgba(8, 43, 69, 0) 0%, var(--summit-neoprene-navy) 100%);
}

.hero--intelligence .hero__background {
  z-index: -2;
}

.hero--intelligence .hero__background img {
  filter: var(--media-treatment-grit);
  opacity: 1; /* Opacity handled by overlay, not image */
}

/* Radial vignette overlay — intelligence-specific depth effect */
.hero--intelligence .hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, transparent 0%, var(--summit-neoprene-navy) 100%);
  opacity: 0.6;
  pointer-events: none;
}

/* Intelligence hero content gets wider than standard hero */
.hero--intelligence .hero__content {
  max-width: 800px;
}

.hero--intelligence .hero__title {
  margin-top: var(--space-4);
}

.hero--intelligence .hero__subtitle {
  max-width: 700px;
  margin-top: var(--space-5);
}


/* ═══════════════════════════════════════════════════════════
   2. STAT STRIP
   Horizontal authority badges — compact, uppercase, orange.
   Used below intelligence hero to signal dataset scope.
   ═══════════════════════════════════════════════════════════ */

.stat-strip {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--os-border-subtle);
  border-bottom: 1px solid var(--os-border-subtle);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--summit-peak-orange);
}


/* ═══════════════════════════════════════════════════════════
   3. INTEL SECTION
   Standard section rhythm for intelligence pages.
   Consistent vertical padding across all content blocks.
   ═══════════════════════════════════════════════════════════ */

.intel-section {
  padding: var(--space-7) 0;
}

.intel-section--alt {
  background: var(--os-bg-secondary);
}

.intel-section--deep {
  background: color-mix(in srgb, var(--summit-neoprene-navy), black 40%);
}

.intel-section--bordered {
  border-top: 1px solid var(--os-border-subtle);
}

/* Narrow reading column — optimal 720px for editorial prose */
.narrow-container {
  max-width: var(--reading-width-optimal);
  margin: 0 auto;
}

/* Centred section header — used for tool introductions */
.intel-section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Section title — large, bright, tight tracking */
.intel-section__title {
  font-size: var(--text-3xl);
  color: var(--summit-alpine-white);
  margin-top: var(--space-2);
}

/* Body text — standard reading prose on dark */
.intel-section__body {
  font-size: var(--text-base);
  margin-top: var(--space-4);
  color: var(--summit-alpine-white);
  line-height: var(--leading-relaxed);
}

.intel-section__body--muted {
  font-size: var(--text-base);
  margin-top: var(--space-5);
  line-height: var(--leading-relaxed);
  color: var(--summit-alpine-white);
  opacity: 0.8;
}


/* ═══════════════════════════════════════════════════════════
   EYEBROW — Intelligence Variant
   Normalised weight to --weight-semibold per component library.
   Reused across all intelligence sections.
   ═══════════════════════════════════════════════════════════ */

.eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  color: var(--summit-peak-orange);
  margin-bottom: var(--space-2);
}

.eyebrow--muted {
  color: var(--summit-mist-grey);
  opacity: 0.7;
}

.eyebrow--success {
  color: var(--summit-success-green);
}


/* Editorial lead — serif, large, relaxed reading on dark */
.editorial-lead {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--summit-alpine-white);
  margin-top: var(--space-3);
}


/* ═══════════════════════════════════════════════════════════
   4. EDITORIAL PAUSE
   Full-width cinematic breathing room.
   Serif italic, centred, bordered — the emotional counterweight
   to data density. "Most athletes don't need more load."
   ═══════════════════════════════════════════════════════════ */

.editorial-pause {
  background-color: var(--os-bg-secondary);
  padding: var(--space-8) 0;
  text-align: center;
  border-top: 1px solid var(--os-border-subtle);
  border-bottom: 1px solid var(--os-border-subtle);
}

.editorial-pause__text {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  font-style: italic;
  color: var(--summit-alpine-white);
  letter-spacing: var(--tracking-tight);
  max-width: 800px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   5. EDITORIAL CALLOUT
   Orange left-border callout for coaching interpretation.
   "Data says X → Coaching meaning is Y"
   ═══════════════════════════════════════════════════════════ */

.editorial-callout {
  margin-top: var(--space-7);
  padding-left: var(--space-5);
  border-left: 2px solid var(--summit-peak-orange);
}

.editorial-callout__title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  color: var(--summit-alpine-white);
  margin-bottom: var(--space-1);
}

.editorial-callout__body {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--summit-alpine-white);
  font-size: var(--text-sm);
}

/* Large variant — full-width quote-style with attribution */
.editorial-callout--large {
  padding-left: var(--space-6);
}

.editorial-callout--large .editorial-callout__quote {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-style: italic;
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
  line-height: var(--leading-relaxed);
  color: var(--summit-alpine-white);
}

.editorial-callout--large .editorial-callout__body {
  font-style: normal;
  font-size: var(--text-md);
  margin-top: var(--space-5);
  opacity: 0.9;
}


/* ═══════════════════════════════════════════════════════════
   6. GRAPH THEATRE
   Evidence + insight side-by-side layout.
   Left: data visualisation. Right: textual interpretation.
   Genuinely novel — no existing component covers this.
   ═══════════════════════════════════════════════════════════ */

.graph-theatre {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-7);
}

.graph-visual {
  background: var(--os-bg-secondary);
  border: 1px solid var(--os-border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.graph-visual svg {
  width: 100%;
  height: 100%;
}

.insight-block h3 {
  font-size: var(--text-2xl);
  color: var(--summit-alpine-white);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--space-2);
}

.insight-block p {
  margin-top: var(--space-4);
  color: var(--summit-alpine-white);
  opacity: 0.85;
  line-height: var(--leading-relaxed);
}


/* ═══════════════════════════════════════════════════════════
   7. INTERPRETER CARD
   Interactive comparison tool — inputs left, output right.
   Genuinely novel — no existing component covers this.
   ═══════════════════════════════════════════════════════════ */

.interpreter-card {
  background: var(--os-bg-secondary);
  border: 1px solid var(--os-border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.interpreter-inputs {
  padding: var(--space-7);
  background: color-mix(in srgb, black 20%, transparent);
}

.interpreter-output {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-left: 1px solid var(--os-border-subtle);
}

.interpreter-output__placeholder {
  text-align: center;
  padding: var(--space-10) 0;
  opacity: 0.6;
  color: var(--summit-alpine-white);
}

.interpreter-output__scanning {
  text-align: center;
  padding: var(--space-10) 0;
  color: var(--summit-peak-orange);
}

.input-field {
  margin-bottom: var(--space-5);
}

.input-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  margin-bottom: var(--space-2);
  color: var(--os-text-secondary);
}

.input-field select,
.input-field input {
  width: 100%;
  background: var(--summit-neoprene-navy);
  border: 1px solid var(--os-border-subtle);
  color: var(--summit-alpine-white);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: inherit;
}

.input-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.output-section-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro);
  color: var(--summit-peak-orange);
  margin-bottom: var(--space-2);
}

.output-value {
  color: var(--summit-alpine-white);
  font-size: var(--text-base);
}


/* ═══════════════════════════════════════════════════════════
   8. INTEL LAYER GRID
   3-column card layout for IP Bridge / Layer navigation.
   Transparent frosted cards on deep dark. Mobile: stacks.
   ═══════════════════════════════════════════════════════════ */

.intel-layer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.intel-layer-card {
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.intel-layer-card h3 {
  color: var(--summit-alpine-white);
}

.intel-layer-card p {
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  color: var(--summit-alpine-white);
  opacity: 0.8;
}


/* ═══════════════════════════════════════════════════════════
   9. FOUNDER ATTRIBUTION
   Authored identity block — avatar + name + title.
   Used at the end of editorial/philosophical sections.
   ═══════════════════════════════════════════════════════════ */

.founder-attribution {
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.founder-attribution__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--summit-steel-grey);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 10px;
  flex-shrink: 0;
}

.founder-attribution__name {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  margin: 0;
  color: white;
}

.founder-attribution__role {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  margin: 0;
  opacity: 0.6;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ═══════════════════════════════════════════════════════════
   10. PUBLICATION BLOCK
   Academic citation with action buttons.
   Clean, centred, research-authority positioning.
   ═══════════════════════════════════════════════════════════ */

.intel-publication {
  text-align: center;
}

.intel-publication__title {
  font-size: var(--text-2xl);
  color: var(--summit-alpine-white);
  margin-top: var(--space-3);
}

.intel-publication__meta {
  margin-top: var(--space-4);
  color: var(--summit-alpine-white);
  opacity: 0.6;
}

.intel-publication__actions {
  margin-top: var(--space-7);
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   UTILITIES — Intelligence Surface
   ═══════════════════════════════════════════════════════════ */

.text-bright {
  color: var(--summit-alpine-white);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Intelligence Surface
   Design Standard §3: "Spacing holds at every breakpoint"
   Design Standard §4: "The brand does not become cheaper on mobile"
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .graph-theatre {
    grid-template-columns: 1fr;
  }

  .interpreter-card {
    grid-template-columns: 1fr;
  }

  .interpreter-output {
    border-left: none;
    border-top: 1px solid var(--os-border-subtle);
  }
}

@media (max-width: 768px) {
  .intel-layer-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    gap: var(--space-4);
  }

  .editorial-pause__text {
    font-size: var(--text-2xl);
    padding: 0 var(--space-4);
  }

  .hero--intelligence .hero__title {
    font-size: var(--text-3xl);
  }

  .hero--intelligence .hero__subtitle {
    font-size: var(--text-lg);
  }

  .intel-publication__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero--intelligence {
    min-height: 70vh;
    padding: var(--space-8) 0;
  }

  .intel-section {
    padding: var(--space-7) 0;
  }

  .stat-strip {
    gap: var(--space-3);
    font-size: 0.625rem; /* Slightly smaller to prevent wrap overflow */
  }

  .graph-visual {
    aspect-ratio: 4/3;
    padding: var(--space-4);
  }

  .input-field__row {
    grid-template-columns: 1fr;
  }

  .editorial-callout--large .editorial-callout__quote {
    font-size: var(--text-xl);
  }
}
