/* ==========================================================================
   MOVEMENT MAP — prototype page
   A thin layer over the shared Blue Athletic shell and the Method template.
   Every rule is scoped to body.movement-map-shell so nothing leaks onto other
   routes. Colour and type tokens come from shared/tokens.css and method.css.
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
body.movement-map-shell .mm-hero {
  padding-bottom: 0;
}

body.movement-map-shell .mm-hero h1 {
  margin-bottom: 0.85rem;
}

body.movement-map-shell .mm-hero .hero-sub-lead {
  max-width: 42rem;
  margin-bottom: 0;
}

/* Section grounds -------------------------------------------------------- */
body.movement-map-shell .mm-problem,
body.movement-map-shell .mm-example,
body.movement-map-shell .mm-status {
  background: #ffffff;
  border-top: 1px solid rgba(11, 19, 48, 0.06);
  border-bottom: 1px solid rgba(11, 19, 48, 0.06);
}

body.movement-map-shell .mm-steps,
body.movement-map-shell .mm-built,
body.movement-map-shell .mm-principles {
  background: var(--ba-ground);
}

/* Planned steps ---------------------------------------------------------- */
body.movement-map-shell .mm-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  body.movement-map-shell .mm-steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.movement-map-shell .mm-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--ba-border);
  border-radius: 1.25rem;
  padding: var(--ba-card-pad);
}

body.movement-map-shell .mm-step__num {
  flex: 0 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ba-blue-deep);
  padding-top: 0.15rem;
}

body.movement-map-shell .mm-step__body h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

body.movement-map-shell .mm-step__body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ba-text-body);
}

/* Illustrative figure ---------------------------------------------------- */
body.movement-map-shell .mm-figure {
  margin: 0;
}

body.movement-map-shell .mm-figure__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--lt-surface-soft, #eef3f9);
  border: 1px solid var(--ba-border);
  border-radius: 1.25rem;
  padding: clamp(0.5rem, 1.4vw, 1rem);
  box-shadow: 0 10px 30px -14px rgba(11, 19, 48, 0.12);
}

body.movement-map-shell .mm-figure__scroll:focus-visible {
  outline: 3px solid var(--ba-focus-ring, #0061fd);
  outline-offset: 2px;
}

/* The diagram stays legible by holding a minimum width and scrolling
   sideways on narrow screens. body.method-shell sets max-width:100% on
   images; min-width wins, so the scroll container carries the overflow. */
body.movement-map-shell .mm-figure__img {
  display: block;
  width: 100%;
  min-width: 1200px;
  height: auto;
  border-radius: 0.6rem;
}

body.movement-map-shell .mm-figure__hint {
  display: none;
  margin: 0.6rem 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ba-blue-deep);
}

body.movement-map-shell .mm-figure__caption {
  margin: 0.7rem 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--lt-ink-muted, #4c5567);
}

/* Text equivalent of the figure ----------------------------------------- */
body.movement-map-shell .mm-equivalent {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  background: var(--ba-ground);
  border: 1px solid var(--ba-border);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

body.movement-map-shell .mm-equivalent__title {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

body.movement-map-shell .mm-equivalent__note {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lt-ink-muted);
  margin-bottom: 1.2rem;
}

body.movement-map-shell .mm-equivalent__grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  body.movement-map-shell .mm-equivalent__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.movement-map-shell .mm-equivalent h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ba-blue-deep);
  margin-bottom: 0.75rem;
}

body.movement-map-shell .mm-findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

body.movement-map-shell .mm-findings li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #ffffff;
  border: 1px solid var(--ba-border);
  border-left: 3px solid var(--ba-blue);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
}

body.movement-map-shell .mm-findings__region {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ba-navy);
}

body.movement-map-shell .mm-findings__text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ba-text-body);
}

body.movement-map-shell .mm-plan {
  list-style: none;
  counter-reset: mm-plan;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

body.movement-map-shell .mm-plan li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: #ffffff;
  border: 1px solid var(--ba-border);
  border-left: 3px solid var(--ba-mint-deep);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem 0.7rem 2.6rem;
}

body.movement-map-shell .mm-plan li::before {
  counter-increment: mm-plan;
  content: counter(mm-plan);
  position: absolute;
  left: 0.85rem;
  top: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ba-blue-deep);
}

body.movement-map-shell .mm-plan__step {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ba-navy);
}

body.movement-map-shell .mm-plan__why {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ba-text-body);
}

body.movement-map-shell .mm-equivalent__fineprint {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--lt-ink-muted);
}

/* Built with Claude ------------------------------------------------------ */
body.movement-map-shell .mm-built-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  body.movement-map-shell .mm-built-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.movement-map-shell .mm-built-card {
  background: #ffffff;
  border: 1px solid var(--ba-border);
  border-radius: 1.25rem;
  padding: var(--ba-card-pad);
}

body.movement-map-shell .mm-built-card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

body.movement-map-shell .mm-built-card p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ba-text-body);
}

/* Status ---------------------------------------------------------------- */
body.movement-map-shell .mm-status__panel {
  max-width: 46rem;
}

body.movement-map-shell .mm-status__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ba-text-body);
  margin: 0.5rem 0 1.1rem;
}

body.movement-map-shell .mm-status__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

body.movement-map-shell .mm-status__list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ba-text-body);
}

body.movement-map-shell .mm-status__list li::before {
  content: "•";
  color: var(--ba-blue);
  font-weight: 700;
  flex: 0 0 auto;
}

/* Principles ------------------------------------------------------------ */
body.movement-map-shell .mm-principles-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  body.movement-map-shell .mm-principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.movement-map-shell .mm-principle {
  background: #ffffff;
  border: 1px solid var(--ba-border);
  border-radius: 1.25rem;
  padding: var(--ba-card-pad);
}

body.movement-map-shell .mm-principle__num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ba-blue-deep);
  margin-bottom: 0.5rem;
}

body.movement-map-shell .mm-principle h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

body.movement-map-shell .mm-principle p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ba-text-body);
}

/* Preserve sentence readability and the SVG's authored 18px body text. */
body.movement-map-shell .mm-step__body p,
body.movement-map-shell .mm-built-card p,
body.movement-map-shell .mm-principle p,
body.movement-map-shell .mm-status__list li,
body.movement-map-shell .mm-findings__region,
body.movement-map-shell .mm-findings__text,
body.movement-map-shell .mm-plan__step,
body.movement-map-shell .mm-plan__why {
  font-size: 1.125rem;
}

body.movement-map-shell .mm-figure__hint {
  display: block;
}

@media (min-width: 1340px) {
  body.movement-map-shell .mm-example > .shell-container {
    max-width: calc(var(--ba-container-max) + 10rem);
    width: min(calc(var(--ba-container-max) + 10rem), calc(100% - 3rem));
  }

  body.movement-map-shell .mm-figure__hint {
    display: none;
  }

  body.movement-map-shell .mm-figure__scroll {
    padding: 0.75rem;
  }
}

