/* Corrections made against the supplied 11 Nov deployed site. */

/* The Grape at upper-right; The Roof at lower-left, with original sizes. */
@media (min-width: 1400px) {
  .magazine:not(.narrow) .slide.venues .venue-photos figure:first-child {
    translate: clamp(38px, 5vw, 92px) 0 !important;
  }
  .magazine:not(.narrow) .slide.venues .venue-photos figure:nth-child(2) {
    translate: calc(-1 * clamp(38px, 5vw, 92px)) 0 !important;
  }

  /* Align the top of the assumptions with the first model paragraph.
     The extra height from the wider screenshot extends its bottom downward. */
  .magazine:not(.narrow) .slide.model .model-art-column > .model-economics {
    align-self: start !important;
    align-items: flex-start !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .magazine:not(.narrow) .slide.model .model-economics-frame {
    width: min(89%, 74vh, 810px) !important;
    max-width: 96% !important;
    height: auto !important;
    max-height: none !important;
  }
}

/* More of the available horizontal space on tablet/medium desktop. */
@media (min-width: 768px) and (max-width: 1399px) {
  .magazine:not(.narrow) .slide.model .model-economics-frame {
    width: min(100%, 810px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
  }
}

/* Six-page phone reader. The existing left indent was making the questions
   wrap needlessly; reserve full available width and fit all three to one line. */
@media (max-width: 767px) {
  .mobile-page .feature-mobile-page .feature-questions {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0 !important;
    margin-inline: 0 !important;
    max-width: none !important;
  }
  .mobile-page .feature-mobile-page .feature-questions p {
    display: block !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-size: var(--feature-question-fit, clamp(11px, 3.7vw, 17px)) !important;
    line-height: 1.85 !important;
    letter-spacing: -.012em !important;
    width: 100% !important;
  }

  /* Only the original survey links exist, immediately after image/table. */
  .mobile-page .feature-mobile-page .feature-photo + .survey-cta,
  .mobile-page .model-text-page .model-economics + .survey-cta {
    box-sizing: border-box !important;
    width: 100% !important;
    padding-inline: var(--inset) !important;
    margin: clamp(36px, 7vw, 50px) 0 0 !important;
    font-size: clamp(17px, 4.6vw, 23px) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  .mobile-page .feature-mobile-page .feature-photo + .survey-cta strong,
  .mobile-page .model-text-page .model-economics + .survey-cta strong {
    font-size: inherit !important;
    line-height: inherit !important;
  }

  /* Equal baseline rhythm: survey -> email -> phone. */
  .mobile-page .feature-mobile-page .feature-contact {
    margin: 0 !important;
    padding: clamp(12px, 2.6vw, 15px) var(--inset) clamp(64px, 9vh, 94px) !important;
  }
  .mobile-page .feature-mobile-page .feature-contact .model-contact,
  .mobile-page .model-text-page .model-art-column > .model-contact {
    gap: clamp(12px, 2.6vw, 15px) !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  .mobile-page .feature-mobile-page .feature-contact .model-contact span,
  .mobile-page .model-text-page .model-art-column > .model-contact span {
    line-height: 1.2 !important;
  }
  .mobile-page .model-text-page .model-art-column > .model-contact {
    padding-top: clamp(12px, 2.6vw, 15px) !important;
    padding-bottom: clamp(64px, 9vh, 94px) !important;
  }
}

/* 1080–1399px desktop only: smaller center gutter and a genuinely even
   survey / email / phone stack. No other viewport band is changed. */
@media (min-width: 1080px) and (max-width: 1399px) {
  .magazine:not(.narrow) .slide.feature .feature-photo,
  .magazine:not(.narrow) .slide.model .model-art-column .model-economics {
    translate: clamp(28px, 3.2vw, 48px) 0 !important;
  }

  .magazine:not(.narrow) .slide.feature .feature-contact,
  .magazine:not(.narrow) .slide.model .model-art-column > .model-contact {
    grid-area: 2 / 2 / 4 / 3 !important;
    align-self: center !important;
    justify-self: stretch !important;
    justify-content: center !important;
    margin: 0 !important;
    /* Shift is measured from the actual image edge, not a fixed viewport offset. */
    width: max-content !important;
    max-width: none !important;
    justify-self: start !important;
    translate: var(--midband-contact-shift, 0px) 0 !important;
  }

  .magazine:not(.narrow) .slide.feature .feature-contact .model-contact,
  .magazine:not(.narrow) .slide.model .model-art-column > .model-contact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(14px, 1.8vh, 19px) !important;
    line-height: 1.15 !important;
  }

  .magazine:not(.narrow) :is(.feature, .model) .model-contact > .survey-cta {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  .magazine:not(.narrow) :is(.feature, .model) .model-contact > span {
    flex: 0 0 auto !important;
    line-height: 1.15 !important;
  }
}
