@media (min-width: 1280px) {
  .chgew-desktop-nav {
    display: flex;
  }

  .chgew-desktop-contact {
    display: inline-flex;
  }

  .chgew-mobile-menu-btn,
  .chgew-mobile-menu {
    display: none !important;
  }
}

#pro-koho,
#jak-postupujeme {
  scroll-margin-top: 5rem;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.chgew-program-link {
  scroll-margin-top: 5rem;
}

.chgew-program-link:focus-visible {
  outline: 3px solid var(--foreground);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--background);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Shared information pages retain the theme's colors and typography. */
.chgew-information-header {
  min-height: 4rem;
  padding-block: 0.75rem;
  flex-wrap: wrap;
}
.chgew-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.chgew-guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem;
  overflow-wrap: anywhere;
}
.chgew-guide-read-link {
  display: inline-flex;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.5rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.chgew-guide-content {
  max-width: 70ch;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.chgew-guide-content h2 {
  margin-block: 2rem 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}
.chgew-guide-content p {
  margin-block: 1rem;
}
.chgew-guide-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.chgew-guide-title {
  overflow-wrap: anywhere;
}
@media (max-width: 1023px) {
  .chgew-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .chgew-guides-grid { grid-template-columns: minmax(0, 1fr); }
}

.chgew-guide-illustration { display: block; width: 100%; height: auto; margin-bottom: 1.25rem; }
