/**
 * Sitemap page (/en/sitemap) — responsive layout for site tree.
 */
body.page-sitemap .layout-content,
body.page-sitemap main,
body.page-sitemap .main-content__container {
  max-width: 100%;
  overflow-x: hidden;
}

body.page-sitemap .main-content__container {
  padding-left: 0;
  padding-right: 0;
}

.sitemap-page {
  --sitemap-teal: #008080;
  --sitemap-bg: #2a2f34;
  --sitemap-panel: #30353b;
  --sitemap-panel-head: #3d444b;
  --sitemap-border: #333;
  --sitemap-text: #dde3e9;
  --sitemap-muted: #aeb6bf;
  background: var(--sitemap-bg);
  color: var(--sitemap-text);
  overflow-x: hidden;
  max-width: 100%;
}

.sitemap-page__header {
  background: #0d0d0d;
  border-bottom: 3px solid var(--sitemap-teal);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sitemap-page__header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #f0f2f4;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.sitemap-page__header-meta {
  font-size: 11px;
  color: var(--sitemap-muted);
}

.sitemap-page__content {
  max-width: 1100px;
  width: 100%;
  margin: 32px auto;
  padding: 0 24px 60px;
  box-sizing: border-box;
}

.sitemap-page__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 28px;
}

.sitemap-page__section {
  background: var(--sitemap-panel);
  border: 1px solid var(--sitemap-border);
  margin-bottom: 4px;
  overflow: hidden;
}

.sitemap-page__section-head {
  background: var(--sitemap-panel-head);
  border-bottom: 1px solid #1e1e1e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sitemap-page__section-head > span:last-child {
  margin-left: auto;
}

.sitemap-page__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3d444b;
}

.sitemap-page__tree {
  width: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 13px;
  border-right: 1px solid #2a2f34;
  align-self: stretch;
}

.sitemap-page__link {
  flex: 1;
  /* min-width: 0; */
  padding: 10px 16px;
  display: flex;
  align-items:center;
  gap: 6px 10px;
  text-decoration: none;
  cursor: pointer;
}

.sitemap-page__link:hover .sitemap-page__title,
.sitemap-page__link:focus .sitemap-page__title {
  color: #fff;
}

.sitemap-page__title {
  font-weight: 700;
  color: var(--sitemap-text);
  font-size: 13.5px;
  /* flex: 0 1 auto; */
}

.sitemap-page__path {
  font-size: 11px;
  color: var(--sitemap-teal);
  font-family: monospace;
}

.sitemap-page__desc {
  font-size: 11.5px;
  color: var(--sitemap-muted);
  text-align: left;
  margin-left: auto;
  max-width: 300px;
}

.sitemap-page__ext {
  padding: 10px 14px;
  color: var(--sitemap-teal);
  font-size: 13px;
  text-decoration: none;
  border-left: 1px solid #3d444b;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}

.sitemap-page__ext:hover,
.sitemap-page__ext:focus {
  background: rgba(0, 128, 128, 0.12);
}

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

  .sitemap-page__header {
    padding: 16px 20px;
  }

  .sitemap-page__content {
    padding: 0 16px 48px;
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .sitemap-page__header-title {
    font-size: 18px;
  }

  .sitemap-page__header-meta {
    width: 100%;
  }

  .sitemap-page__section-head {
    padding: 10px 14px;
  }

  .sitemap-page__section-head > span:last-child {
    margin-left: 0;
    width: 100%;
  }

  .sitemap-page__row {
    flex-wrap: wrap;
  }

  .sitemap-page__tree {
    width: 28px;
    font-size: 12px;
  }

  .sitemap-page__link {
    padding: 10px 12px;
    flex: 1 1 calc(100% - 28px);
  }

  .sitemap-page__ext {
    width: 100%;
    justify-content: center;
    border-left: none;
    border-top: 1px solid #3d444b;
    padding: 8px 12px;
  }
}

@media (max-width: 479px) {
  .sitemap-page__stats {
    grid-template-columns: 1fr;
  }

  .sitemap-page__header {
    padding: 14px 16px;
  }

  .sitemap-page__content {
    padding: 0 12px 40px;
  }
}
