/* PNW PASSPORT: mobile screenshot QA / editorial fit.
   Keeps the stories, sources, Case Files and every reader tool intact. */
.pnw-mobile-swipe-note {
  display: none;
  margin: 0 0 9px;
  color: #52665b;
  font: 800 .74rem/1.35 var(--sans);
  letter-spacing: .01em;
}
.pnw-mobile-swipe-note span { color: #aa4a31; padding-left: 3px; }
@media (max-width: 720px) {
  .quest-v2 { padding-top: 27px !important; padding-bottom: 38px !important; }
  .quest-v2 .quest-intro-inner { gap: 20px !important; }
  .quest-v2 .quest-headline {
    font-size: clamp(2.52rem, 10.8vw, 3.25rem) !important;
    line-height: .96 !important;
    letter-spacing: -.066em !important;
    max-width: 100% !important;
    margin: 15px 0 15px !important;
  }
  .quest-v2 .quest-headline .story-line { font-size: .50em !important; }
  .quest-v2 .quest-deck {
    font-size: .93rem !important;
    line-height: 1.49 !important;
    margin: 0 0 16px !important;
  }
  .quest-v2 .quest-actions { gap: 8px 15px !important; }
  .quest-v2 .quest-actions .button {
    padding: 10px 13px !important;
    min-height: 42px !important;
    font-size: .7rem !important;
  }
  .quest-v2 .quest-actions .quest-secondary { font-size: .76rem; }
  .quest-v2 .quest-v2-promise { margin: 13px 0 5px !important; font-size: .7rem !important; }
  .quest-v2 .pnw-editorial-proof { margin: 7px 0 4px !important; font-size: .69rem !important; }
  .quest-v2 .quest-v2-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    gap: 8px !important;
    padding: 6px 0 9px;
    margin-top: 6px;
    scroll-snap-type: x proximity;
  }
  .quest-v2 .quest-v2-links a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: .64rem !important;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
    text-decoration: none !important;
    padding: 7px 9px;
    border: 1px solid #6c968b;
    border-radius: 4px;
    background: rgba(255,255,255,.045);
  }
  .quest-v2 .quest-case-top span { display: none; }
  .quest-v2 .quest-casefile { box-shadow: 5px 6px 0 #071f20; }
  .quest-v2 .quest-case-photo { aspect-ratio: 1.96; }
  .quest-v2 .quest-case-stamp { width: 54px; height: 54px; font-size: 1rem; }
  /* Three actual stories in a horizontal, magazine-style rail.
     The cards remain crawlable, visible and accessible by touch/keyboard. */
  .home-fresh-section { padding: 29px 0 32px !important; }
  .home-fresh-section .pnw-fresh-reports__top h3 {
    font-size: clamp(1.62rem, 7vw, 2.1rem) !important;
    line-height: 1.12 !important;
    max-width: 18ch;
  }
  .home-fresh-section .pnw-fresh-reports__top p {
    font-size: .85rem !important;
    line-height: 1.52 !important;
  }
  .pnw-mobile-swipe-note { display: block; }
  .home-fresh-section #home-fresh-grid.story-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 13px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 2px 8px 16px 2px;
    margin: 0;
  }
  .home-fresh-section #home-fresh-grid > .story-card {
    display: block;
    flex: 0 0 min(80vw, 306px) !important;
    width: min(80vw, 306px) !important;
    max-width: min(80vw, 306px) !important;
    min-width: 0;
    grid-column: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    padding: 9px !important;
  }
  .home-fresh-section #home-fresh-grid .card-image {
    aspect-ratio: 1.52 !important;
    height: auto !important;
    max-height: 190px !important;
    object-fit: cover;
  }
  .home-fresh-section #home-fresh-grid h3 {
    font-size: 1.26rem !important;
    line-height: 1.19 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 8px 2px !important;
  }
  .home-fresh-section #home-fresh-grid p {
    font-size: .82rem !important;
    line-height: 1.45 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    overflow: hidden;
    margin: 8px 2px 10px;
  }
  .home-fresh-section #home-fresh-grid .eyebrow {
    font-size: .63rem !important;
    margin: 8px 2px !important;
  }
  /* From the Archive becomes an editorial sidebar on a phone, not an
     entire extra magazine cover. Original photography and article remain. */
  #hero.hero { padding: 31px 0 37px !important; }
  #hero .hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.42fr) minmax(105px, .78fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
    padding: 16px !important;
  }
  #hero .hero-copy { min-width: 0; }
  #hero .hero-copy .eyebrow {
    font-size: .61rem !important;
    line-height: 1.32 !important;
    margin-bottom: 7px !important;
  }
  #hero .hero-title {
    font-size: clamp(1.27rem, 5.45vw, 1.65rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -.034em !important;
    margin: 7px 0 8px !important;
    max-width: 100%;
  }
  #hero .hero-copy .deck {
    font-size: .78rem !important;
    line-height: 1.43 !important;
    margin: 7px 0 9px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  #hero .hero-actions {
    display: flex !important;
    flex-direction: column;
    gap: 7px !important;
    align-items: flex-start !important;
  }
  #hero .hero-actions .button {
    padding: 8px 9px !important;
    min-height: 35px !important;
    font-size: .62rem !important;
    box-shadow: 2px 2px 0 #22463c !important;
    text-align: center;
  }
  #hero .hero-meta { margin: 0 !important; font-size: .65rem !important; }
  #hero .hero-media,
  #hero .hero-media a { display: flex; width: 100%; min-width: 0; height: 100%; }
  #hero .hero-media .hero-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 165px;
    max-height: 230px !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
    transform: none !important;
    border: 4px solid #fffaf0 !important;
    box-shadow: 3px 4px 0 #bcab91 !important;
  }
  /* Handpicked evergreens remain accessible without a three-card
     vertical wall on phones. Keep the expand control and all nine stories. */
  #latest.story-grid.pnw-editor-picks-compact {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 13px !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 4px 8px 16px 2px;
    scrollbar-width: thin;
  }
  #latest.story-grid.pnw-editor-picks-compact > .story-card {
    display: block;
    flex: 0 0 min(80vw, 310px) !important;
    width: min(80vw, 310px) !important;
    max-width: min(80vw, 310px) !important;
    grid-column: auto !important;
    scroll-snap-align: start;
  }
  #latest.story-grid.pnw-editor-picks-compact:not(.is-expanded) > .story-card:nth-child(n+4) {
    display: none !important;
  }
  .home-editorial-shelf .section-head h2 { font-size: clamp(1.9rem, 7.2vw, 2.5rem) !important; }
  .home-editorial-shelf .section-head p { font-size: .88rem; }
}
@media (max-width: 375px) {
  #hero .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(92px, .77fr) !important; }
  #hero .hero-title { font-size: 1.17rem !important; }
}
