/* Additional language navigation for the scoped Hungarian homepage.
   All original source markup and editorial CSS remain unchanged. */
.sc-locale-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem 1.5rem;
  padding: .65rem 1rem;
  margin: 0 auto;
  border-bottom: 1px solid rgba(80, 88, 71, .18);
  background: #f8f5ec;
  color: #384336;
  font-size: .9rem;
  line-height: 1.55;
  text-align: center;
}
.sc-locale-languages {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.sc-locale-strip a {
  color: #245a4b;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.sc-locale-strip a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .2rem;
}
.sc-locale-strip strong {
  font-weight: 700;
}
.sc-locale-note {
  max-width: 58rem;
}
@media (prefers-contrast: more) {
  .sc-locale-strip { border-color: currentColor; }
}

/* Allow translated headings to wrap inside narrow grid tracks.
   Do not hide overflow or clip content. */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid > * {
    min-width: 0;
  }
  .hero-grid h1 {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (max-width: 560px) {
  .section-heading, .grid-3, .grid-2, .letters-home-inner,
  .footer-invitation, .footer-main, .entry-path-grid,
  .path-guide-grid, .life-path-preview, .topic-featured-grid,
  .problem-preview-grid, .related-reading-grid,
  .home-your-path-inner, .home-problem-links, .entry-compass {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading > *, .grid-3 > *, .grid-2 > *,
  .letters-home-inner > *, .footer-invitation > *,
  .footer-main > *, .card, .entry-path-card {
    min-width: 0;
  }
  .container h1, .container h2, .container h3,
  .container .button, .container .card {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}
