/* Guides hub "Průvodce" (eletur.cz/pruvodce, information page 33), 19. 10. 2026.
   Loaded by information/information.twig only when the page text contains the class "et-guides".
   The page text (editable in Catalog > Information) carries only classes; all styling lives here. */
.et-page--info .et-panel:has(> .et-guides) {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.et-guides {
  --g-accent: #b51e18;
  --g-accent-dark: #8c1612;
  --g-ink: #231f20;
  --g-text: #3d3839;
  --g-muted: #6d6a6b;
  --g-line: #e7e2dd;
  --g-radius: 18px;
  --g-shadow: 0 10px 24px rgba(17, 23, 43, 0.05);
  display: grid;
  gap: 20px;
  min-width: 0;
  color: var(--g-text);
}

.et-guides > * {
  margin: 0;
  min-width: 0;
}

#information-information .et-richtext .et-guides p {
  text-align: left;
  text-align-last: auto;
  hyphens: manual;
}

/* Introduction with logo */
.et-guides .et-guides-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius);
  background: #fff;
  box-shadow: var(--g-shadow);
}

.et-guides .et-guides-hero__logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0;
}

.et-guides .et-guides-hero__text {
  min-width: 0;
  max-width: 760px;
}

.et-page--info .et-richtext .et-guides .et-guides-hero p {
  margin: 0 0 10px;
}

.et-page--info .et-richtext .et-guides .et-guides-hero p:last-child {
  margin-bottom: 0;
}

.et-page--info .et-richtext .et-guides p.et-guides-hero__lead {
  margin: 0 0 10px;
  color: var(--g-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
}

/* Guide cards: the heading link covers the whole card */
.et-guides .et-guides-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.et-guides .et-guides-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius);
  background: #fff;
  box-shadow: var(--g-shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.et-page--info .et-richtext .et-guides .et-guides-card h2 {
  margin: 0 0 10px;
  color: var(--g-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.et-page--info .et-richtext .et-guides .et-guides-card h2 a,
.et-page--info .et-richtext .et-guides .et-guides-card h2 a:visited {
  color: var(--g-ink);
  text-decoration: none;
}

.et-page--info .et-richtext .et-guides .et-guides-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--g-radius);
}

.et-page--info .et-richtext .et-guides .et-guides-card h2 a:focus-visible {
  outline: none;
}

.et-page--info .et-richtext .et-guides .et-guides-card p {
  margin: 0 0 18px;
  color: var(--g-text);
}

.et-page--info .et-richtext .et-guides .et-guides-card p strong {
  white-space: nowrap;
}

.et-page--info .et-richtext .et-guides .et-guides-card p.et-guides-card__sub {
  margin: -4px 0 10px;
  color: var(--g-muted);
  font-size: 15px;
  font-weight: 600;
}

.et-page--info .et-richtext .et-guides .et-guides-card p.et-guides-card__meta {
  margin: auto 0 14px;
  color: var(--g-muted);
  font-size: 13px;
}

.et-page--info .et-richtext .et-guides .et-guides-card p.et-guides-card__meta + p.et-guides-card__more {
  margin-top: 0;
}

.et-page--info .et-richtext .et-guides .et-guides-card p.et-guides-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin: auto 0 0;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--g-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 160ms ease;
}

.et-guides .et-guides-card:hover {
  border-color: var(--g-accent);
  box-shadow: 0 14px 30px rgba(17, 23, 43, 0.09);
}

.et-page--info .et-richtext .et-guides .et-guides-card:hover h2 a {
  color: var(--g-accent);
}

.et-page--info .et-richtext .et-guides .et-guides-card:hover p.et-guides-card__more {
  background: var(--g-accent-dark);
}

.et-guides .et-guides-card:focus-within {
  border-color: var(--g-accent);
  outline: 3px solid var(--g-accent);
  outline-offset: 3px;
}

.et-page--info .et-richtext .et-guides p.et-guides-sign {
  color: var(--g-muted);
}

@media (prefers-reduced-motion: reduce) {
  .et-guides .et-guides-card,
  .et-page--info .et-richtext .et-guides .et-guides-card p.et-guides-card__more {
    transition: none;
  }
}

@media (max-width: 767px) {
  .et-guides {
    gap: 16px;
  }

  .et-guides .et-guides-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .et-guides .et-guides-hero__logo {
    max-width: 140px;
  }

  .et-page--info .et-richtext .et-guides p.et-guides-hero__lead {
    font-size: 18px;
  }

  .et-guides .et-guides-list {
    gap: 16px;
  }

  .et-guides .et-guides-card {
    padding: 20px;
  }

  .et-page--info .et-richtext .et-guides .et-guides-card h2 {
    font-size: 17px;
  }
}
