/* Final responsive corrections. Kept separate so production browsers fetch
   these rules without retaining an older cached art-direction stylesheet. */

/* Homepage location map */
.location-map-section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 10rem);
  overflow: hidden;
  background: var(--color-paper);
  color: var(--color-ink);
}

.location-map-section .location-map__layout {
  display: block;
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.location-map-section .location-map__copy {
  display: grid;
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
  gap: var(--space-5) clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.location-map-section .location-map__copy .eyebrow { grid-column: 1 / -1; }

.location-map-section .location-map__copy h2 {
  max-width: 9ch;
  margin: 0;
  grid-column: 1;
  grid-row: 2 / span 3;
  font-family: var(--font-logo-marq);
  font-size: clamp(3.8rem, 7vw, 8rem);
  font-weight: 400;
  line-height: .9;
}

.location-map-section .location-map__copy > p:not(.eyebrow, .location-map__note) {
  max-width: 38rem;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.65;
}

.location-map-section .location-map__facts {
  display: grid;
  margin: var(--space-4) 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(17 17 19 / 26%);
  border-left: 1px solid rgb(17 17 19 / 26%);
}

.location-map-section .location-map__facts div {
  min-height: 7rem;
  padding: var(--space-4);
  border-right: 1px solid rgb(17 17 19 / 26%);
  border-bottom: 1px solid rgb(17 17 19 / 26%);
}

.location-map-section .location-map__facts dt {
  font-family: var(--font-logo-marq);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.location-map-section .location-map__facts dd {
  margin: var(--space-2) 0 0;
  color: var(--color-muted);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.location-map-section .location-map__note {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-small);
}

.location-map-section .location-map__media {
  display: block;
  min-width: 0;
  margin: clamp(3rem, 7vw, 7rem) 0 0;
}

.location-map-section .location-map__media picture {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(17 17 19 / 28%);
  background: #fff;
}

.location-map-section .location-map__media img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 64rem) {
  .location-map-section .location-map__copy { grid-template-columns: 1fr; }
  .location-map-section .location-map__copy .eyebrow { grid-column: auto; }
  .location-map-section .location-map__copy h2 {
    max-width: 12ch;
    grid-column: auto;
    grid-row: auto;
    font-size: clamp(3.25rem, 10vw, 5.6rem);
  }
  .location-map-section .location-map__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  /* Long editorial words must remain inside the viewport on every route. */
  .inner-page main h1,
  .inner-page main h2 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .inner-page .chapter-hero h1,
  .inner-page .brand-hero h1,
  .inner-page .editorial-hero h1,
  .inner-page .journal-hero h1,
  .inner-page .portfolio-hero h1 {
    font-size: clamp(3.15rem, 13.5vw, 4.8rem);
    line-height: .9;
  }

  .inner-page .contact-stage h1 {
    max-width: 100%;
    font-size: clamp(3.1rem, 12.5vw, 4.5rem);
    line-height: .88;
  }

  /* Journal cards should follow their content instead of holding large,
     fixed-height blank fields. */
  .page-updates .journal-card,
  .page-updates .journal-card--lead {
    min-height: 0;
  }

  .page-updates .journal-card figure,
  .page-updates .journal-card--lead figure {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .page-updates .journal-card > div {
    min-height: 0;
    padding: var(--space-6) var(--space-5);
    justify-content: flex-start;
  }

  .page-updates .journal-card time {
    margin: 0 0 var(--space-8);
  }

  .page-updates .journal-card h2 {
    margin-top: 0;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .page-updates .journal-card--maroon > div {
    min-height: 20rem;
    justify-content: flex-end;
  }

  /* Keep the full map visible rather than forcing an oversized horizontal crop. */
  .location-map-section .location-map__media { overflow: visible; }
  .location-map-section .location-map__media picture,
  .location-map-section .location-map__media .media-caption {
    width: 100%;
    max-width: 100%;
  }

  /* The source portraits contain differently styled printed name strips.
     Crop those strips and show the semantic names consistently beside them. */
  .consultants-preview .consultant-preview {
    grid-template-columns: minmax(8.25rem, 36vw) minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .consultants-preview .consultant-preview figure {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .consultants-preview .consultant-preview figure img {
    width: 100%;
    height: 112%;
    object-fit: cover;
    object-position: center top;
  }

  .consultants-preview .consultant-preview__copy {
    min-width: 0;
    min-height: 0;
    padding: var(--space-4);
  }

  .consultants-preview .consultant-preview__copy h3 {
    display: block;
    margin-bottom: var(--space-3);
    font-size: clamp(1.45rem, 6.6vw, 2.15rem);
    line-height: .96;
    text-transform: none;
  }

  .consultants-preview .consultant-preview__copy p {
    font-size: clamp(.78rem, 3.4vw, .95rem);
    line-height: 1.55;
  }

  /* Every navigation label stays on one line and within the viewport. */
  .menu-dialog .menu-dialog__nav {
    width: calc(100% - 2.5rem);
    overflow-x: hidden;
  }

  .menu-dialog .menu-dialog__nav li {
    min-width: 0;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .45rem;
  }

  .menu-dialog .menu-dialog__nav a {
    min-width: 0;
    padding-block: .72rem;
    overflow: hidden;
    font-size: clamp(1.15rem, 6vw, 1.7rem);
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
  }
}
