/* Mobile navigation and overflow correction, 2026-09-01. */
@media (max-width: 720px) {
  .journey-header {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }
  .journey-header > * { min-width: 0; }
  .journey-wordmark {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    color: #f8f6ef !important;
  }
  .journey-languages {
    grid-column: 1;
    grid-row: 2;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px !important;
    width: 100%;
    max-width: none !important;
    overflow: visible !important;
  }
  .journey-languages a {
    width: 100%;
    min-width: 0 !important;
    min-height: 44px;
    padding: 6px 2px !important;
  }
  .journey-nav {
    grid-column: 1;
    grid-row: 3;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px !important;
    width: 100%;
    padding: 0 !important;
    overflow: visible !important;
  }
  .journey-nav a {
    width: 100%;
    min-width: 0;
    min-height: 48px !important;
    justify-content: center;
    padding: 7px 4px !important;
    text-align: center;
    white-space: normal !important;
    line-height: 1.2;
  }
  .journey-hero-copy { padding-top: 190px !important; }

  .site-header {
    height: auto !important;
    min-height: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 14px 10px !important;
  }
  .site-header > * { min-width: 0; }
  .site-header .wordmark { justify-self: start; }
  .site-header .language-nav {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    overflow: visible;
  }
  .site-header .language-nav a {
    width: 100%;
    min-width: 0 !important;
    min-height: 44px;
    padding: 6px 2px !important;
  }

  .knowledge-detail-lead h1,
  .page-lead h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .side-nav {
    position: relative !important;
    top: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 340px) {
  .journey-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-hero-copy { padding-top: 245px !important; }
}