/*
 * The site map (M2-NAV, prototype route sitemap): the menu tree as nested lists of links. One column under 768 px,
 * two from 768, four from 1024; a group stays whole in its column. Values come from tokens.css.
 */

.sitemap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-40) var(--spacing-32);
  align-items: start;
  margin: var(--spacing-32) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sitemap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sitemap-group {
  min-width: 0;
}

.sitemap-group__title {
  margin-bottom: var(--spacing-16);
  font-size: var(--font-size-20);
  line-height: var(--line-height-28);
  letter-spacing: var(--letter-spacing-h4);
}

.sitemap-sections {
  display: grid;
  gap: var(--spacing-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-section__title {
  margin-bottom: var(--spacing-8);
  font-size: var(--font-size-16);
  line-height: var(--line-height-24);
  font-weight: var(--font-weight-semibold);
}

/* A filled bullet at every depth of the tree, a hollow one for a page with a home below an item */
.sitemap-links {
  display: grid;
  gap: var(--spacing-8);
  margin: 0;
  padding-left: var(--spacing-20);
  list-style-type: disc;
}

/* A page with a home below an item (the region map under Regiuni viticole): one step in, a hollow bullet */
.sitemap-links .sitemap-links {
  margin-top: var(--spacing-8);
  list-style-type: circle;
}

/* Long labels wrap; a target of a line is at least 24 px high (WCAG 2.5.8) */
.sitemap-links a {
  display: inline-block;
  min-height: var(--spacing-24);
  overflow-wrap: break-word;
}
