/* Responsive fit only. Existing desktop design, content and assets are unchanged.
   All additions are screen-only and stop below the approved 1280px desktop layout. */
@media screen and (max-width: 1279px) {
  body[data-design="edition-5"] .wrap > *,
  .split > *, .newsletter > *, .newsletter-form > label:not(.trap),
  .publisher-feature > *, .footer-top > *, .native-calendar-layout > *,
  .home-pickup .find-home-heading > *, .season-preview > *,
  .filterbar .field, .rc9-ratecard .rc9-block {
    min-width: 0;
  }
  .page-intro h1, .split h2, .section-head h2, .newsletter h2,
  .publisher-name, .home-pickup-card strong, .location-card h3,
  .cover-card h3, .editorial-card h3, .footer a {
    overflow-wrap: anywhere;
  }
  .split .copy a, .publisher-feature a, .event-detail-meta dd {
    overflow-wrap: anywhere;
  }
  .newsletter-form, .event-submission-form, .event-submission-form fieldset {
    min-width: 0;
    max-width: 100%;
  }
  .rc9-ratecard .rc9-table-scroll {
    min-width: 0;
  }
  body[data-design="edition-5"] .navigation.open {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
/* Retain the existing compact menu until the full navigation fits comfortably. */
@media screen and (min-width: 1201px) and (max-width: 1279px) {
  body[data-design="edition-5"] .navshell > .wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    max-width: 1420px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3.3vw, 40px);
  }
  body[data-design="edition-5"] .mobile-home-link {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 48px;
    padding: 0 4px;
    color: #fff;
    font: 800 12px/1.4 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
    border-bottom: 2px solid transparent;
  }
  body[data-design="edition-5"] .mobile-home-link:hover,
  body[data-design="edition-5"] .mobile-home-link[aria-current="page"] {
    color: #8ae0f3;
    border-bottom-color: #8ae0f3;
  }
  body[data-design="edition-5"] .mobile-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 52px;
    padding: 0 4px;
    color: #fff;
    font: 700 12px/1.4 Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
    border: 0;
    background: transparent;
  }
  body[data-design="edition-5"] .mobile-find-link {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
    min-height: 48px;
    padding: 0;
    color: #8ae0f3;
    font: 700 11px/1.4 Arial, Helvetica, sans-serif;
    white-space: nowrap;
  }
  body[data-design="edition-5"] .navigation {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    gap: 0;
    padding: 8px 0 18px;
  }
  body[data-design="edition-5"] .navigation.open {
    display: flex;
  }
  body[data-design="edition-5"] .navigation > a {
    padding: 13px 0;
    min-height: 48px;
    font-size: 13px;
    white-space: normal;
  }
  body[data-design="edition-5"] .navigation .nav-tcf {
    border-left: 0;
    border-top: 1px solid #66757b;
    padding: 15px 0;
    margin-top: 10px;
  }
}
@media screen and (max-width: 1023px) {
  .newsletter {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="subscribe.html"] .split,
  body[data-page="latest-issue.html"] .split {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="subscribe.html"] .split .large-cover,
  body[data-page="latest-issue.html"] .split .large-cover {
    max-width: min(100%, 350px);
  }
  .home-pickup .find-home-heading {
    flex-wrap: wrap;
  }
}
/* Continue the approved phone hero through the full sub-tablet width range. */
@media screen and (min-width: 761px) and (max-width: 767px) {
  body[data-page="index.html"] .issue-first-hero.hero-v7 {
    display: flex;
    flex-direction: column;
  }
  .hero-v7 .hero-v7-panel { display: contents; }
  .hero-v7 .issue-first-visual { order: 1; height: auto; padding: 0; width: 100%; }
  .hero-v7 .issue-first-cover { height: auto; }
  .hero-v7 .issue-first-cover img { width: 100%; height: auto; aspect-ratio: 1585 / 2048; }
  .hero-v7 .issue-first-actions { order: 2; display: block; width: 100%; padding: 0; margin: 0; }
  .hero-v7 .issue-first-actions .button {
    display: flex; width: 100%; min-height: 56px; padding: 18px 26px;
    border: 0; background: #101416; color: #fff; font-size: 11px;
  }
  .hero-v7 .issue-first-actions .button:hover { background: #007a9f; color: #fff; }
  .hero-v7 .issue-first-copy {
    order: 3; padding: 34px 26px 40px; background: #101416; border-top: 1px solid #445961;
  }
  .hero-v7 .issue-first-kicker { font-size: 10px; gap: 12px; margin-bottom: 21px; }
  .hero-v7 .issue-first-copy h1 { font-size: clamp(35px, 7.8vw, 57px); max-width: 21ch; }
  .hero-v7 .issue-first-copy .hero-statement { margin-top: 23px; font-size: 16px; }
}
@media screen and (max-width: 767px) {
  .split, body[data-page="interviews.html"] .interview-intro,
  .publisher-feature, body[data-page="index.html"] .inside-trends-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .newsletter form { grid-template-columns: minmax(0, 1fr); }
  .newsletter .consent, .newsletter .form-status { grid-column: 1; }
  .newsletter .consent { min-height: 48px; }
  .newsletter-form input:not([type="checkbox"]):not([type="hidden"]),
  .event-form-grid input, .event-form-grid select, .event-form-grid textarea,
  .calendar-filterbar input, .calendar-filterbar select,
  .filterbar input, .filterbar select, #location-search,
  #gallery-v8 input, #gallery-v8 select {
    font-size: 16px;
    min-height: 48px;
  }
  .filterbar .field.search { flex-basis: 100%; }
  .calendar-navigation { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .calendar-navigation .cal-arrow { width: 48px; height: 48px; min-width: 48px; }
  .native-calendar-grid {
    grid-template-columns: repeat(7, minmax(48px, 1fr));
    max-width: 100%;
    overflow-x: auto;
  }
  .button, .home-pickup-filters button, .city-filters button,
  .calendar-view button, .cal-today, .cal-all, .cal-reset,
  .event-quick-save, .copy-address, .ad-rail-controls button,
  .search-toggle, .close-search,
  body[data-design="edition-5"] .navigation > a,
  #gallery-v8 .g8-tabs button, #gallery-v8 .g8-utility-button,
  #gallery-viewer-v8 button {
    min-height: 48px;
    min-width: 48px;
  }
  body[data-page="index.html"] main > .ad-wrap .ad-controls { height: auto; min-height: 48px; }
  body[data-page="index.html"] main > .ad-wrap .ad-controls button { min-width: 48px; min-height: 48px; }
  .lightbox button { width: 48px; height: 48px; }
  #gallery-viewer-v8 .g8-viewer-stage { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  #gallery-viewer-v8 #g8-prev, #gallery-viewer-v8 #g8-next { width: 48px; min-height: 48px; }
  #gallery-viewer-v8 .g8-viewer-toolbar, #gallery-viewer-v8 .g8-viewer-caption { min-width: 0; }
  #gallery-viewer-v8 #g8-viewer-album { overflow-wrap: anywhere; }
  .rc9-ratecard .rc9-jump a { display: inline-flex; align-items: center; min-height: 48px; }
  #chatter-archive .campaign { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #chatter-archive .campaign a { flex-direction: column; gap: 8px; }
}
@media screen and (max-width: 480px) {
  .event-form-grid { grid-template-columns: minmax(0, 1fr); }
  .event-form-grid label.span-two { grid-column: 1; }
  body[data-page="subscribe.html"] .split .large-cover,
  body[data-page="latest-issue.html"] .split .large-cover { max-width: min(100%, 280px); }
  .subscription-plans .spec-box { min-width: 0; }
  .subscription-plans .eyebrow { white-space: normal; }
  .subscription-plans h3 { font-size: clamp(28px, 8vw, 38px); }
  #gallery-v8 .g8-filter-grid { grid-template-columns: minmax(0, 1fr); }
  #gallery-v8 .g8-filter-grid > label { grid-column: 1; }
}
