/* Pitch Boston: phone layout (screens 700px wide and under).
   Linked from every page right after pb-top.js. Desktop is unchanged.
   The page templates use inline styles, so rules here need !important.
   Hook classes (pb-*) are added in the page markup; keep the names in sync. */

.pb-phone-only { display: none !important; }

@media (max-width: 700px) {
  .pb-phone-only { display: block !important; }

  /* Header: the top bar's links live in the menu on phones */
  .pb-topbar { display: none !important; }
  .pb-menu-search { width: 100% !important; max-width: 100% !important; }

  /* Footer: two columns, placeholder ("SOON") links hidden */
  .pb-foot-inner { padding: 36px 32px 28px !important; gap: 28px !important; }
  .pb-foot-brand { flex: 1 1 100% !important; min-width: 0 !important; }
  .pb-foot-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 20px !important; }
  .pb-foot-grid a { font-size: 14px !important; }
  .pb-soon { display: none !important; }
  .pb-foot-group:not(:has(a)) { display: none !important; }
  .pb-foot-bar { padding: 20px 32px 26px !important; }
  .pb-foot-legal { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px 20px !important; }
  .pb-foot-legal > * { font-size: 14px; }
  .pb-foot-legal > span:first-child { order: 99; color: #8a8883; }

  /* Homepage hero: No. 1 hotel, then the trip search, then Just reviewed, then the newsletter */
  .pb-top-wrap { display: flex; flex-direction: column; gap: 24px; padding: 0 32px 32px; }
  .pb-top-wrap .pb-h1 { padding: 18px 0 0 !important; order: 0; font-size: 11px !important; letter-spacing: 0.1em !important; }
  .pb-hero { display: contents !important; }
  .pb-hero-lead { order: 1 !important; flex: none !important; width: 100%; min-height: 0 !important; display: flex !important; flex-direction: column; background: #ffffff !important; }
  .pb-hero-lead image-slot { position: relative !important; height: 240px !important; }
  .pb-lead-info { position: static !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 14px !important; padding: 16px 0 18px !important; border-bottom: 3px solid #0d0d0d; }
  .pb-lead-card { padding: 0 !important; flex: 1 1 auto !important; }
  .pb-lead-card > div:nth-child(2) { font-size: 30px !important; }
  .pb-lead-card > div:nth-child(3) { font-size: 20px !important; }
  .pb-lead-score { width: 76px !important; height: 76px !important; }
  .pb-lead-score > span:first-child { font-size: 40px !important; }
  .pb-lead-score > span:last-child { font-size: 8px !important; margin-top: 4px !important; }
  .pb-plan { order: 2; padding: 0 !important; width: 100%; }
  .pb-hero-latest { order: 3 !important; flex: none !important; }
  .pb-hero-latest > a:nth-of-type(n+4):not(.pb-phone-only) { display: none !important; }
  .pb-hero-mail { order: 4 !important; flex: none !important; }

  /* Homepage guide strip: swipe row */
  .pb-strip { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px !important; padding: 22px 32px !important; }
  .pb-strip > * { flex: 0 0 80%; scroll-snap-align: start; }

  /* Neighborhood bands: hotel cards two across */
  .pb-band-row { grid-template-columns: 1fr 1fr !important; gap: 20px 16px !important; }
  .pb-band-row a > div:last-child > div:first-child { font-size: 16px !important; }
  .pb-band-row a > div:last-child > div:last-child { font-size: 11px !important; }

  /* Meet the critic: small photo beside the name */
  .pb-critic { display: grid !important; grid-template-columns: 84px 1fr; gap: 20px 16px !important; align-items: center; }
  .pb-critic-text { display: contents !important; }
  .pb-critic-text > * { grid-column: 1 / -1; }
  .pb-critic-photo { grid-column: 1; grid-row: 2; min-width: 0 !important; width: 84px; aspect-ratio: 1 / 1 !important; }
  .pb-critic-text > .pb-critic-kicker { grid-row: 1; }
  .pb-critic-text > .pb-critic-name { grid-column: 2; grid-row: 2; }
  .pb-mostread { grid-column: 1 / -1; max-width: none !important; }

  /* Best of Boston: small badge beside the tagline */
  .pb-bob-col { position: static !important; flex: 1 1 100% !important; flex-direction: row !important; align-items: center !important; gap: 16px !important; }
  .pb-bob-badge { transform: scale(0.4); transform-origin: top left; margin: 0 -132px -150px 0; flex: none; }
  .pb-bob-cap { width: auto !important; text-align: left !important; font-size: 17px !important; }
}
