/* Service and knowledge catalogues: category headings and open editorial lists. */
.catalog-page--homepage-system .guide-hero {
  padding-block: var(--section-space);
  background: var(--brand-900);
  border-bottom: 1px solid var(--ui-border);
  text-align: center;
}

.catalog-page--homepage-system .guide-hero h1 {
  color: var(--ui-text);
  max-width: 58rem;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.catalog-page--homepage-system .guide-hero p:not(.section-label) {
  max-width: var(--reading-max);
  margin: 0 auto;
  color: var(--ui-muted);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.75;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.guide-catalog {
  padding-block: var(--section-space);
}

.guide-intro {
  max-width: var(--reading-max);
  margin: 0 auto 3.5rem;
  text-align: center;
}

.guide-intro h2 {
  color: var(--ui-text);
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.guide-intro > p:not(.section-label) {
  margin: 0;
  color: var(--ui-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.guide-topic {
  padding-block: 3.5rem;
  border-top: 1px solid var(--ui-border);
  scroll-margin-top: 7rem;
}

.guide-topic:last-child {
  padding-bottom: 0;
}

.guide-topic__heading {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  max-width: var(--reading-max);
  margin: 0 auto 2rem;
  text-align: center;
}

.guide-topic__heading > div {
  min-width: 0;
}

.guide-topic__label {
  margin: 0 0 0.5rem;
  color: var(--ui-muted);
  font-size: 1rem;
}

.guide-topic__heading h2 {
  color: var(--ui-accent);
  margin: 0;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.guide-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 2rem;
}

.guide-article {
  display: flex;
  gap: 1rem;
  min-width: 0;
  min-height: 5.5rem;
  padding: 1.25rem;
  border-radius: 0.625rem;
  color: var(--ui-text);
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.guide-article > span:not(.guide-article__icon) {
  flex: 1;
  min-width: 0;
}

.guide-article__icon {
  flex: 0 0 1.25rem;
  color: var(--ui-muted);
  font-size: 1.25rem;
  line-height: 1.4;
}

.guide-article::after {
  content: "";
  flex: 0 0 1.25rem;
}

.guide-article strong {
  color: var(--ui-text);
  display: block;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.guide-article small {
  display: block;
  margin-top: 0.375rem;
  color: var(--ui-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-article:hover {
  background: var(--ui-surface);
  color: var(--ui-accent);
}

.guide-article:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 5px;
  border-color: var(--ui-accent);
}

.guide-subcategories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.guide-subcategory {
  min-width: 0;
}

.guide-subcategory h3 {
  margin: 0 0 0.5rem;
  color: var(--ui-accent);
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.guide-subcategory .guide-articles {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-page--homepage-system .home-final-cta {
  padding-block: var(--section-space);
  border-top: 1px solid var(--ui-border);
  background: var(--brand-900);
  text-align: center;
}

.catalog-page--homepage-system .home-final-cta__inner {
  max-width: var(--reading-max);
  margin-inline: auto;
}

.catalog-page--homepage-system .home-final-cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.catalog-page--homepage-system .home-final-cta p {
  margin: 0 0 1.75rem;
  color: var(--ui-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

@media (max-width: 48rem) {
  .guide-articles,
  .guide-subcategories {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-subcategories {
    gap: 2.5rem;
  }

  .guide-topic {
    padding-block: 2.5rem;
  }
}

@media (max-width: 30rem) {
  .guide-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-topic__heading {
    gap: 0.625rem;
  }

  .guide-article {
    gap: 0.75rem;
  }

  .guide-article__icon,
  .guide-article::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-article {
    transition: none;
  }
}

.guide-article:hover strong { color: var(--ui-accent); }
