/*
 * Map & Content layout.
 * Olive band + coded Tennessee coverage map on left or right.
 * Outer-edge pad on the text side matches --fx-content-pad-x.
 * Typography tokens live in shared.css.
 */

.fx-section--map-content {
  --fx-map-content-pad-y: var(--fx-section-pad);
  --fx-map-content-pad-top: var(--fx-pad-top-collapsed, var(--fx-map-content-pad-y));
  --fx-map-content-title-size: 2.5rem;
  --fx-map-content-body-size: 1.125rem;
  /*
   * Figma Group 38372 (2058:11): map ends ~878, text starts at 993 (rel).
   * Gap 115px (7.1875rem). Desktop flex ratio map:content = 878:644.
   */
  --fx-map-content-gap: clamp(1.5rem, 6vw, 7.1875rem);
  --fx-map-content-map-min-h: 14rem;
  padding: 0;
  background-color: var(--fx-color-olive);
  color: #ffffff;
  overflow: hidden;
}

.fx-map-content__layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
}

.fx-map-content__map {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--fx-map-content-map-min-h);
  /* Outer top matches other bands; bottom stays tight toward stacked text. */
  padding: var(--fx-map-content-pad-top) var(--fx-content-pad-x) clamp(1.25rem, 4vw, 2.5rem);
  color: #ffffff;
}

.fx-map-content__map svg {
  display: block;
  width: 100%;
  max-width: 55rem;
  height: auto;
}

.fx-map-content__map .fx-map-content__labels text {
  text-transform: uppercase;
}

.fx-map-content__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: var(--fx-map-content-pad-y) var(--fx-content-pad-x);
}

.fx-map-content__body {
  color: #ffffff;
}

.fx-section--map-content .fx-map-content__body h1,
.fx-section--map-content .fx-map-content__body h2,
.fx-section--map-content .fx-map-content__body h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-family: var(--fx-font-display);
  font-size: var(--fx-map-content-title-size);
  font-style: normal;
  font-weight: 400;
  line-height: 0.89;
  letter-spacing: 0.01em;
  text-transform: none;
}

.fx-section--map-content .fx-map-content__body h3 {
  font-size: calc(var(--fx-map-content-title-size) * 0.7);
}

.fx-section--map-content .fx-map-content__body p {
  margin: 0 0 1.25rem;
  color: #ffffff;
  font-family: var(--fx-font-intro);
  font-size: var(--fx-map-content-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.01em;
  text-transform: none;
}

.fx-section--map-content .fx-map-content__body ul,
.fx-section--map-content .fx-map-content__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25em;
  color: #ffffff;
  font-family: var(--fx-font-intro);
  font-size: var(--fx-map-content-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.01em;
}

.fx-section--map-content .fx-map-content__body li {
  margin: 0 0 0.5rem;
}

.fx-section--map-content .fx-map-content__body li:last-child {
  margin-bottom: 0;
}

.fx-map-content__body > :last-child {
  margin-bottom: 0;
}

.fx-map-content__body a:not(.fx-section__button) {
  color: inherit;
  text-decoration: underline;
}

.fx-map-content__body .fx-section__button {
  margin-top: 2rem;
}

.fx-section--map-content .fx-map-content__body a.fx-section__button,
.fx-section--map-content .fx-map-content__body p a.fx-section__button {
  max-width: 100%;
}

/* Stacked: map always above content (left/right only applies on desktop). */
.fx-map-content__map {
  order: -1;
}

@media (min-width: 768px) {
  .fx-section--map-content {
    --fx-map-content-title-size: 3.75rem;
    --fx-map-content-body-size: 1.5rem;
    --fx-map-content-map-min-h: 18rem;
  }
}

/* Stacked only: pull map and text closer (desktop uses side-by-side gap). */
@media (max-width: 1023px) {
  .fx-map-content__map {
    padding-bottom: 0.5rem;
  }

  .fx-map-content__content {
    padding-top: 1rem;
  }
}

@media (min-width: 1024px) {
  .fx-section--map-content {
    --fx-map-content-title-size: 4.6875rem;
    --fx-map-content-body-size: 1.875rem;
  }

  .fx-map-content__layout {
    flex-direction: row;
    align-items: center;
    column-gap: var(--fx-map-content-gap);
    padding-right: var(--fx-content-pad-x);
    padding-left: var(--fx-content-pad-x);
  }

  .fx-map-content--map-right .fx-map-content__layout {
    flex-direction: row-reverse;
  }

  .fx-map-content__map {
    order: 0;
  }

  .fx-map-content__map {
    /* Figma map:content = 878:644 */
    flex: 878 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
    padding: var(--fx-map-content-pad-top) 0 var(--fx-map-content-pad-y);
  }

  .fx-map-content--map-right .fx-map-content__map {
    justify-content: flex-end;
  }

  .fx-map-content__map svg {
    max-width: none;
  }

  .fx-map-content__content {
    flex: 644 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: var(--fx-map-content-pad-top) 0 var(--fx-map-content-pad-y);
  }
}

@media (min-width: 1400px) {
  .fx-section--map-content {
    --fx-map-content-pad-y: 6rem;
  }
}

@media (max-width: 767px) {
  .fx-section--map-content {
    --fx-map-content-title-size: 2rem;
    --fx-map-content-body-size: 1rem;
  }

  .fx-section--map-content .fx-map-content__body p,
  .fx-section--map-content .fx-map-content__body ul,
  .fx-section--map-content .fx-map-content__body ol {
    line-height: 1.4;
  }

  .fx-map-content__map .fx-map-content__labels text {
    font-size: 16px;
    letter-spacing: 4.8px;
  }
}
