/* Revision v14 — five mobile-only acceptance corrections. */

@media (max-width: 760px) {
  /* Country-like badge: same 4:3 geometry and radius as every local flag. */
  .future-directions-more-icon {
    width: 56px;
    height: 42px;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    box-shadow: 0 7px 18px rgba(33,54,76,.11);
  }

  /* Portrait touches both section edges; only the copy stays on the content grid. */
  #organizer .premium-organizer-portrait {
    width: calc(100% + 2 * var(--space));
    max-width: none;
    margin: 30px calc(-1 * var(--space)) 0;
  }

  /* Preserve the accepted bridge. Give the local scene enough canvas, then keep
     its story in normal flow below both banks and all route markers. */
  #geography .premium-atlas-stage {
    grid-template-rows: 430px auto;
  }
  #geography .premium-atlas-stage canvas {
    height: 430px;
  }
  #geography .premium-atlas-story {
    margin: 12px var(--space) 0;
  }

  /* The photograph is a full-section background layer, never a lower card. */
  #clinics.premium-clinics,
  #clinics .premium-clinics-content { min-height: 760px; }
  #clinics .premium-clinics-art {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #142c45;
  }
  #clinics .premium-clinics-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 83% 50%;
    transform: none;
  }
  #clinics .premium-clinics-art::after {
    background:
      linear-gradient(180deg, rgba(20,44,69,.98) 0%, rgba(20,44,69,.94) 44%, rgba(20,44,69,.68) 66%, rgba(20,44,69,.16) 100%),
      linear-gradient(90deg, #142c45 0%, rgba(20,44,69,.93) 24%, rgba(20,44,69,.42) 64%, rgba(20,44,69,.12) 100%);
  }
  #clinics .premium-clinics-wash {
    display: block;
    background: linear-gradient(180deg, rgba(20,44,69,.38), rgba(20,44,69,.12) 58%, rgba(20,44,69,0));
  }

  /* Compact, touch-safe footer. */
  .footer--complete .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px var(--space) 22px;
  }
  .footer-brand { gap: 10px; }
  .footer-brand p { margin: 0; }
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
  }
  .footer-nav a,
  .footer-contact a,
  .footer--complete .back-top {
    min-height: 44px;
    margin: 0;
    padding: 4px 0;
  }
  .footer-contact { gap: 0; }
  .footer-contact > span { margin-bottom: 2px; }
  .footer--complete .footer-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin-top: 2px;
    padding-top: 15px;
    font-size: 10.5px;
    line-height: 1.4;
  }
}

@media (max-width: 340px) {
  #clinics.premium-clinics,
  #clinics .premium-clinics-content { min-height: 820px; }
  .footer--complete .footer-notes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px 10px;
    font-size: 9.5px;
  }
  .footer--complete .footer-notes span:last-child { grid-column: 1 / -1; }
}
