/* ============================================================
   2b · Her Ecosystem — mobile-only flow diagram (trial)
   ============================================================ */
/* mobile-only section — swaps with the desktop ecosystem section (.eco) */
.emap { display: none; }

@media (max-width: 600px) {
  /* collapsed, not display:none — #ecosystem anchor links still land here */
  .eco { height: 0; min-height: 0; padding-block: 0; overflow: hidden; visibility: hidden; }
}

@media (max-width: 600px) {
  .emap {
    display: block;
    padding: 64px 0 56px;
    color: #f2ebdd;
    background:
      radial-gradient(120% 80% at 20% 0%, #55341c 0%, rgba(85, 52, 28, 0) 55%),
      radial-gradient(110% 70% at 90% 30%, #4c2d17 0%, rgba(76, 45, 23, 0) 60%),
      linear-gradient(160deg, #4a2c17 0%, #3a2210 60%, #331d0d 100%);
    --emap-soft: #e6dccb;
    --emap-line: rgba(233, 220, 198, .38);
  }

  .emap__head { text-align: center; margin-bottom: 26px; }
  .emap__kicker {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 19px;
    color: var(--emap-soft);
    margin-bottom: 2px;
  }
  .emap__heading {
    font-family: var(--f-serif);
    font-weight: 700;
    font-size: clamp(42px, 12vw, 50px);
    line-height: 1.05;
    letter-spacing: .5px;
    margin-bottom: 12px;
  }
  .emap__sub {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    color: var(--emap-soft);
    max-width: 300px;
    margin: 0 auto;
  }

  /* flow grid: cards 01/03 top, arrows between, 02 centre with diagonals */
  .emap__flow {
    display: grid;
    grid-template-columns: 1fr 0.92fr 1fr;
    column-gap: 6px;
    align-items: stretch;
  }
  .emap__card--c1 { grid-column: 1; grid-row: 1; }
  .emap__mid      { grid-column: 2; grid-row: 1; }
  .emap__card--c3 { grid-column: 3; grid-row: 1; }
  .emap__side--left  { grid-column: 1; grid-row: 2; padding: 10px 2px 0 0; }
  .emap__card--c2 { grid-column: 2; grid-row: 2; align-self: start; margin-top: 14px; }
  .emap__side--right { grid-column: 3; grid-row: 2; padding: 10px 0 0 2px; }
  .emap__bottom   { grid-column: 1 / -1; grid-row: 3; }

  .emap__card {
    border: 1px solid var(--emap-line);
    border-radius: 16px;
    padding: 18px 14px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .012);
  }
  .emap__icon { height: 44px; margin-bottom: 8px; color: #f2ebdd; }
  .emap__icon svg, .emap__icon img { height: 40px; width: auto; }
  .emap__num {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .emap__title { font-weight: 600; font-size: 17px; margin-bottom: 8px; }
  .emap__rule { width: 34px; height: 1px; background: var(--emap-line); margin-bottom: 10px; }
  .emap__desc { font-weight: 300; font-size: 12.5px; line-height: 1.5; color: var(--emap-soft); }

  /* horizontal funding arrows */
  .emap__mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 34px;
    gap: 6px;
  }
  .emap__lbl { font-weight: 300; font-size: 11.5px; line-height: 1.35; text-align: center; color: var(--emap-soft); }
  .emap__harrow { width: 100%; display: flex; align-items: center; }
  .emap__harrow--left { margin-bottom: 0; }
  .emap__bar { flex: 1; height: 1px; background: #f2ebdd; }
  .emap__tip { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
  .emap__harrow--right .emap__tip { border-left: 8px solid #f2ebdd; }
  .emap__harrow--left .emap__tip { border-right: 8px solid #f2ebdd; }

  /* diagonal side flows */
  .emap__diag { height: 70px; width: 100%; display: block; color: #f2ebdd; }
  .emap__sidetext { font-weight: 300; font-size: 11.5px; line-height: 1.5; color: var(--emap-soft); }
  .emap__sidetext p { margin-bottom: 12px; }
  .emap__sidetext p:last-child { margin-bottom: 0; }

  /* bottom down-arrow + note */
  .emap__bottom { text-align: center; margin-top: 6px; }
  .emap__varrow { display: inline-flex; flex-direction: column; align-items: center; margin: 8px 0 6px; }
  .emap__stem { width: 1px; height: 26px; background: #f2ebdd; }
  .emap__vtip {
    width: 0;
    height: 0;
    margin-top: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid #f2ebdd;
  }
  .emap__mentee { font-weight: 300; font-size: 13px; line-height: 1.55; color: var(--emap-soft); max-width: 360px; margin: 0 auto; }

  /* venn */
  .emap__venn { position: relative; width: 290px; height: 250px; margin: 26px auto 4px; }
  .emap__circle {
    position: absolute;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    mix-blend-mode: screen;
  }
  /* labels wrap inside their own lobe of the venn */
  .emap__circle span { display: block; max-width: 96px; }
  .emap__circle--1 { top: 0; left: 8px; }
  .emap__circle--1 span { transform: translateX(-22px); }
  .emap__circle--2 { top: 0; right: 8px; }
  .emap__circle--2 span { transform: translateX(22px); }
  .emap__circle--3 { bottom: 0; left: 50%; transform: translateX(-50%); align-items: flex-end; padding-bottom: 20px; }

  /* impact */
  .emap__impact { text-align: center; margin-top: 14px; }
  .emap__tag { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--emap-soft); margin-bottom: 6px; }
  .emap__note-title { font-family: var(--f-serif); font-weight: 700; font-size: 27px; line-height: 1.15; }
  .emap__rule--center { display: block; margin: 14px auto 16px; }
  .emap__foot { font-weight: 300; font-size: 14px; line-height: 1.7; color: var(--emap-soft); }
}

@media (max-width: 360px) {
  .emap__heading { font-size: 42px; }
  .emap__desc, .emap__sidetext, .emap__lbl { font-size: 11px; }
}
