/* Phone fixes shared by every page. Loaded after each page's own styles, so these win. */
@media (max-width:900px){
  /* Thumb-sized tap areas (about 44px tall) without moving or restyling anything:
     an invisible layer around each small link catches the tap */
  .nav-r a,.secnav a,.links a,a.mark,.quiet,.back,.ov-close,.icon-btn,footer a,dd>a{position:relative}
  .nav-r a::after,.secnav a::after,.links a::after,a.mark::after,.quiet::after,.back::after,
  .ov-close::after,.icon-btn::after,footer a::after,dd>a::after{content:"";position:absolute;inset:-13px -6px}

  /* Section and place pages: keep the side margin on the top bar; the section links
     scroll edge to edge so the last ones read as "more this way" */
  .top-in{padding-left:var(--gutter)!important;padding-right:var(--gutter)!important}
  .top-in .secnav{width:calc(100% + 2*var(--gutter));margin:0 calc(-1*var(--gutter));padding-left:var(--gutter);padding-right:var(--gutter)}

  /* Arrow links stay on one line */
  .quiet{white-space:nowrap}

  /* Section headings: a label beside the heading drops underneath it instead of squeezing it */
  .head{flex-wrap:wrap;row-gap:8px}
  .head>.eyebrow{flex-basis:100%}

  /* Partner contact buttons: one even row */
  .direct{display:flex!important;gap:8px}
  .direct a{flex:1 1 0;text-align:center;border:1px solid var(--ink)!important;padding:15px 8px!important;justify-self:auto}

  /* Article photo strips: a swipe row at one height, instead of three thumbnails */
  .trio{overflow-x:auto;scroll-snap-type:x mandatory;gap:10px!important;margin:0 -16px;padding:0 16px;scrollbar-width:none}
  .trio::-webkit-scrollbar{display:none}
  .trio img{flex:0 0 auto!important;height:240px!important;width:auto!important;scroll-snap-align:start;scroll-margin-left:16px}

  /* Readership numbers sized for a phone */
  .stats div{padding:14px 0}
  .stats dd{font-size:26px}
  .stats dt{font-size:12px}
  .est dt,dl dt{font-size:12px}
}

/* ---------- Phones: one straight scroll down. Nothing swipes sideways. ---------- */
@media (max-width:900px){
  /* Homepage: This Season, Along the Coast and the issue covers stack, full width */
  .sel,.places,.iss-grid{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:visible!important;scroll-snap-type:none!important;margin:0!important;padding:0!important;gap:32px!important}
  .sel .card,.places>.place,.iss-grid>.iss{flex:none!important;width:100%!important;max-width:none!important;min-width:0}
  .sel .card .img,.places>.place .img{width:100%!important;height:auto!important}
  .iss-grid>.iss{grid-template-columns:1fr 1.1fr!important}
  /* The quick-link chips scrolled sideways; the menu button already lists every section */
  .chips{display:none!important}
  /* Inquiry form tabs wrap instead of scrolling */
  .tabs{flex-wrap:wrap!important;overflow:visible!important;row-gap:8px}
  /* Section, town and page bars: links wrap onto two lines and the bar scrolls away with the page */
  .top{position:static!important}
  .top-in .secnav{width:100%!important;margin:0!important;padding:12px 0 14px!important;flex-wrap:wrap!important;overflow:visible!important;row-gap:12px;column-gap:20px}
  /* Article: the "More from OC Lifestyle" cards stack, and photo rows run down the page */
  .more .grid{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:visible!important;scroll-snap-type:none!important;margin:0!important;padding:0!important;gap:28px!important}
  .more .grid>a{flex:none!important;width:100%!important;max-width:none!important}
  .more .grid>a .img{width:100%!important;height:auto!important}
  .trio{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:visible!important;scroll-snap-type:none!important;margin:0!important;padding:0!important;gap:12px!important}
  .trio img{flex:none!important;width:100%!important;height:auto!important}
}
