/* The complete desktop composition is unchanged. */
.mj-viewport { display: contents; }
.mj-route-tabs { display: none; }
@media (max-width:820px) {
  .mj-viewport { display: block; position: relative; min-width: 0; touch-action: pan-y pinch-zoom; overflow-anchor: none; }
  .mj-viewport > * { touch-action: pan-y pinch-zoom; }
  .mj-active { overflow: clip; isolation: isolate; }
  .mj-active > :not(.mj-film) { visibility: hidden; }
  .mj-film { position: absolute; inset: 0; z-index: 12; visibility: visible; pointer-events: none; will-change: transform; }
  .mj-slide { position: absolute; top: 0; min-height: 100%; }
  .mj-replica { visibility: visible; pointer-events: none; }
  .mj-replica img { opacity: 1 !important; visibility: visible !important; }
  .mj-replica .gb-blades { display: none; }
  .mj-tab-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; overflow: visible; padding: 7px 5px 14px; }
  .mj-tab-strip > button { width: 100%; min-width: 0; margin: 0; white-space: normal; }
  .mj-tab-strip > button > span:nth-child(2) { font-size: 19px; line-height: 1.2; }
  .mj-tab-strip small { font-size: 11px; line-height: 1.3; }
  .before-section { display: block; }
  .before-main { padding-right: 0; }
  .before-reading > .before-photo-wrap { width: 100%; margin: 0; padding: 16px 6px 40px; }
  .before-reading .before-photo { height: auto; aspect-ratio: 3/2; }
  .before-answer { max-width: none; font-size: 15px; line-height: 1.65; }
  .before-accordion summary { font-size: 14px; line-height: 1.45; }
  .before-accordion summary > span { font-size: 11px; }
  #inside-views { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #inside-views:has(button:nth-child(3)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #inside-views button { min-height: 44px; font-size: 12px; padding: 9px 6px; }
  .mj-route-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0 0 22px; }
  .mj-route-tabs button { min-height: 44px; padding: 10px 6px; background: transparent; color: var(--navy); border: 1px solid #11283b60; border-radius: 3px; font: 13px/1.3 var(--body); }
  .mj-route-tabs button[aria-current=true] { background: var(--navy); color: var(--cream); }
  .mj-routes .detour-options { display: block; padding: 10px 8px 16px; }
  .mj-routes .detour-card { width: 100%; min-height: 385px; transform: none; }
  .mj-routes .coast-card { background: #c1d8e1; }
  .mj-routes .forest-card { background: #b8c399; }
  .mj-routes .no-plan-card { background: #ffc295; }
  .mj-routes .detour-card[aria-pressed=true] { transform: none; }
  .mj-routes .detour-action { margin-top: auto; }
  .mj-routes .detour-card > strong { font-size: 25px; }
  .mj-routes .detour-card > span:nth-last-child(2) { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
  .mj-routes .detour-action { font-size: 13px; }
}
@media (max-width:760px) {
  .gb-concept-note { grid-row: 4; margin: 0 0 22px; }
  .gb-station { grid-row: 5; }
  .gb-pocket-area { grid-row: 6; }
  .gb-film button { flex-direction: column; align-items: stretch; gap: 6px; padding: 5px; }
  .gb-film img { width: 100%; max-width: none; height: 52px; }
  .gb-film strong { font-size: 12px; line-height: 1.2; }
}
