/* Mobile reader only. Keep the original desktop edition untouched. */
.guide-mobile-picture { display: contents; }

@media screen and (max-width: 900px) {
  html { scroll-padding-top: 62px; }
  body { font-size: 16px; line-height: 1.65; }
  .layout { padding-inline: 16px; }

  /* Photo-led editorial cover: the title, entire photograph and supporting
     content flow naturally instead of filling a fixed-height viewport. */
  .hero2 { display: flex; flex-direction: column; min-height: 0; padding: 18px 0 24px; background: #1f2430; }
  .hero2-text { display: contents; }
  .hero2-text .kicker { order: 1; margin: 0 18px 9px; font-size: 10px; letter-spacing: .095em; line-height: 1.5; color: #e8b4a8; }
  .hero2-text h1 { order: 2; margin: 0 18px 17px; font-size: clamp(29px, 8vw, 43px); line-height: 1.08; font-weight: 800; letter-spacing: -.6px; }
  .hero2-text h1 br { display: none; }
  .hero2-photo { flex: none; order: 3; position: relative; overflow: visible; width: 100%; background: #1f2430; padding: 0; }
  .hero2-photo img { position: static; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: auto; max-height: none; object-fit: contain; object-position: center; margin: 0 auto; }
  .hero2-text .guide-pitch { order: 4; font-size: clamp(17px, 4.9vw, 21px); line-height: 1.35; margin: 17px 18px 8px; padding: 0 0 0 11px; border-left: 2px solid #c9a667; text-wrap: initial; }
  .hero2-text .guide-pitch-detail { order: 5; font-size: 15px; line-height: 1.5; margin: 0 18px; color: #d8dce5; }
  .hero-cta { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 18px 16px; }
  .hero-cta .btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 9px; border-radius: 5px; line-height: 1.3; font-size: 13px; text-align: center; }
  .hero2-text .hero2-rule { order: 7; margin: 0 18px 15px; width: 39px; height: 2px; }
  .hero2-text .lede { order: 8; max-width: none; margin: 0 18px; font-size: 15px; line-height: 1.55; color: #c9cdd6; }
  .hero2-text .meta { order: 9; margin: 14px 18px 0; max-width: none; padding-top: 12px; color: #a8adba; font-size: 11px; line-height: 1.5; }

  /* A usable sticky contents button and scrollable search panel. */
  .menu-btn { top: 4px; width: calc(100% - 32px); margin: 10px 16px 5px; padding: 11px 13px; min-height: 44px; border-radius: 5px; font-size: 14px; }
  nav.toc.open { top: 53px; max-height: min(70dvh, calc(100dvh - 66px)); }
  nav.toc input { font-size: 16px; }
  main { min-width: 0; padding-top: 19px; }
  section.part { margin-top: 34px; }
  main > section.part:first-child { margin-top: 0; }
  .part-head { padding-bottom: 8px; margin-bottom: 8px; }
  .part-head h2 { font-size: clamp(23px, 6.7vw, 31px); line-height: 1.15; }
  .part-intro { font-size: 15.5px; line-height: 1.55; margin: 9px 0 18px; }
  article.chapter { margin: 29px 0 8px; }
  .chapter-head { gap: 9px; margin-bottom: 9px; align-items: center; }
  .chapter-head h3 { font-size: 21px; line-height: 1.25; }
  h4 { margin-top: 20px; }
  .cards { gap: 9px; margin: 12px 0; }
  .card { padding: 13px 14px; }
  .card p { line-height: 1.55; }

  /* Never cut any edge of a photograph on phones. Captions and open-photo
     actions are below the images, rather than painted over their subject. */
  main figure img, .jj-gallery img, #city-atlas .photo-open img, .duo .photo-open img {
    display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto;
    object-fit: contain; object-position: center; border-radius: 0; box-shadow: none;
  }
  #city-atlas .atlas-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #city-atlas .atlas-card { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: start; border: 1px solid var(--line); background: #fff; overflow: hidden; }
  #city-atlas .atlas-card figure, .duo figure { display: block; width: 100%; min-width: 0; min-height: 0; height: auto; aspect-ratio: auto; margin: 0; background: #f3f0e9; overflow: visible; border-radius: 0; }
  #city-atlas .photo-open, .duo .photo-open { display: block; position: static; inset: auto; width: 100%; height: auto; background: transparent; }
  .photo-open span { position: static; display: block; padding: 6px 7px 5px; color: #5d655e; background: #f3f0e9; text-align: left; font-size: 10.5px; line-height: 1.35; opacity: 1; }
  #city-atlas .atlas-card figcaption, .duo figcaption { position: static; background: transparent; color: var(--ink-soft); margin: 0; padding: 4px 8px 9px; font-size: 11.5px; line-height: 1.4; text-align: left; }
  #city-atlas .atlas-copy { padding: 11px 11px 12px; min-width: 0; }
  .atlas-copy small { font-size: 10px; letter-spacing: .05em; line-height: 1.4; }
  .atlas-copy h3 { margin: 4px 0; font-size: clamp(20px, 5.2vw, 26px); line-height: 1.13; overflow-wrap: break-word; word-break: normal; }
  .atlas-copy>b { font-size: 13px; line-height: 1.35; }
  .atlas-copy p { font-size: 14px; line-height: 1.48; margin: 6px 0; }
  .atlas-copy .atlas-tip { margin: 8px 0 0; padding-top: 7px; font-size: 12px; line-height: 1.42; }
  .atlas-intro { align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
  .atlas-intro>a { font-size: 12px; }

  /* Food photography and city-by-city paired images keep the natural
     proportions, with two small editorial columns instead of large crops. */
  .jj-gallery, .duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; margin: 17px 0; }
  .jj-gallery>* { margin: 0; min-width: 0; padding: 8px; border-radius: 4px; }
  .jj-gallery figcaption { font-size: 12px; line-height: 1.4; margin-top: 6px; }
  .duo figure { overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 4px; }
  .duo figcaption { font-size: 12px; padding: 6px 9px 9px; }
  .photo-dialog img { width: auto; height: auto; max-width: 88vw; max-height: 78dvh; object-fit: contain; }
}

@media screen and (min-width: 701px) and (max-width: 900px) {
  .hero2-photo { align-self: center; width: min(100%, 520px); }
  .hero2-text .kicker, .hero2-text h1, .hero2-text .guide-pitch, .hero2-text .guide-pitch-detail, .hero-cta, .hero2-text .hero2-rule, .hero2-text .lede, .hero2-text .meta { margin-inline: 28px; }
  .hero2-text h1 { font-size: 44px; }
  #city-atlas .atlas-card { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
  #city-atlas .atlas-copy { padding: 17px; }
  .atlas-copy p { font-size: 16px; }
}

@media screen and (max-width: 360px) {
  .layout { padding-inline: 12px; }
  .hero2-text .kicker, .hero2-text h1, .hero2-text .guide-pitch, .hero2-text .guide-pitch-detail, .hero-cta, .hero2-text .hero2-rule, .hero2-text .lede, .hero2-text .meta { margin-inline: 14px; }
  .atlas-copy h3 { font-size: 19px; }
  #city-atlas .atlas-card { grid-template-columns: minmax(0, 39%) minmax(0, 1fr); }
  #city-atlas .atlas-copy { padding: 9px; }
  .atlas-copy p { font-size: 13.5px; }
}
