/* Az aktuális verseny kártyája; a két hasáb kizárólag asztalon él. */
.homepage .current-section {
  display: block;
  margin-bottom: 48px;
  min-width: 0;
}
.homepage .current-section > .eyebrow { margin-bottom: 12px; }
.homepage .current-year { margin-bottom: 10px; color: var(--muted); font-size: .9rem; }
.homepage .current-section h2 { max-width: 24ch; overflow-wrap: anywhere; }
.homepage .current-excerpt { max-width: 70ch; margin-bottom: 24px; overflow-wrap: anywhere; }
.homepage .current-details { margin: 20px 0 0; }
.homepage .current-details > a { display: inline-flex; align-items: center; min-height: 44px; }
.homepage #about, .homepage #current { scroll-margin-top: 24px; }
.homepage .current-overview,
.homepage .current-description,
.homepage .current-participation { min-width: 0; }
/* The new left wrapper must not make the existing p:last-child rule remove
   the excerpt's original 24px spacing in the stacked layout. */
.homepage .current-description .current-excerpt { margin-bottom: 24px; }
@media (min-width: 1001px) {
  .homepage .current-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
}
/* Csak az általános bemutatkozás: cím balra, bemutatás és szervező jobbra. */
.homepage #about > .about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 5vw, 65px);
}
.homepage #about .about-copy { min-width: 0; }
.homepage #about .about-introduction { color: var(--muted); margin: 0 0 12px; }
.homepage #about .about-organizer { margin: 0; }
@media (max-width: 700px) {
  .homepage #about > .about-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* A kezdőoldal záró gombja és nyílt napjai, normál dokumentumfolyamban. */
.homepage-entry {
  display: flex;
  justify-content: center;
  padding: 8px 20px 48px;
}
.homepage-open-days {
  width: calc(100% - 96px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.homepage-open-days h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}
.homepage-open-days p {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--muted);
}
.homepage-open-days-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}
.homepage-open-days-dates li {
  min-width: 0;
}
.homepage-open-days-dates time {
  display: block;
}
.homepage-entry .button,
.homepage-open-days .button {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}
.homepage-entry .button:focus-visible,
.homepage-open-days .button:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 4px;
}
@media (max-width: 700px) {
  /* A dekoráció kisebb helyet foglal; a főcím és a bevezető betűmérete megmarad. */
  .homepage .hero {
    padding: 32px 20px;
    gap: 18px;
  }
  .homepage .hero-copy { min-width: 0; }
  .homepage .hero-art {
    max-width: 360px;
    height: 250px;
  }
  .homepage .hero-art .photo { padding: 8px; }
  .homepage .hero-art .photo > span {
    margin: 6px 2px 0;
    font-size: 9px;
    letter-spacing: .6px;
  }
  .homepage .hero-art .photo-back { top: 12px; max-width: 200px; }
  .homepage .hero-art .landscape { height: 150px; }
  .homepage .hero-art .photo-front { top: 62px; max-width: 180px; }
  .homepage .hero-art .poetry { height: 140px; padding: 14px 10px; }
  .homepage .hero-art .poetry > span { font-size: clamp(18px, 4.7vw, 22px); }
  .homepage .hero-art .poetry small { font-size: 8px; margin-top: 12px; }
  .homepage .hero-art .round-note { width: 72px; height: 72px; font-size: 8px; }
  .homepage .hero-art .art-label { right: 0; top: 10px; font-size: 8px; letter-spacing: 2px; }
  /* Csak a kezdőoldal hivatkozásai: a szöveges bevezető igazítása változatlan. */
  .homepage .hero-copy .actions {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 0;
  }
  .homepage .hero-copy .actions > a,
  .homepage footer .footer-links > a {
    min-width: 0;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .homepage footer .footer-links {
    align-items: center;
    min-width: 0;
  }
  .homepage-entry {
    padding-bottom: 36px;
  }
  .homepage-open-days {
    width: calc(100% - 40px);
    padding: 28px 12px 36px;
  }
  .homepage-open-days-dates {
    flex-direction: column;
    gap: 12px;
  }
}
