.tlmb-sitemap-page .tlmb-sitemap-info-btn,
.tlmb-sitemap-page .tlmb-sitemap-info-btn:hover,
.tlmb-sitemap-page .tlmb-sitemap-info-btn:focus,
.tlmb-sitemap-page .tlmb-sitemap-info-btn:active,
.tlmb-sitemap-page .tlmb-sitemap-info-btn:visited {
  text-decoration: none !important;
  font-size: 10px !important;
  font-family: 'Onest', sans-serif !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tlmb-sitemap-page .tlmb-sitemap-info-btn {
  position: absolute !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  background: var(--tlmb-sm-red) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.tlmb-sitemap-page .tlmb-sitemap-info-btn > * {
  font-size: inherit !important;
  line-height: inherit !important;
}

.tlmb-sitemap-page {
  --tlmb-sm-dark: #0A0D31;
  --tlmb-sm-red: #E53F3E;
  --tlmb-sm-muted: #5F6567;
  --tlmb-sm-bg: #E7ECF2;
  --tlmb-sm-line: rgba(10, 13, 49, 0.16);
  --tlmb-sm-line-soft: rgba(10, 13, 49, 0.1);
  --tlmb-sm-card: #ffffff;
  --tlmb-sm-board: #f7f9fc;
  --tlmb-sm-shadow: 0 26px 60px rgba(10, 13, 49, 0.16);
  position: relative;
  padding: 84px 0 72px;
  background: var(--tlmb-sm-bg);
}

.tlmb-sitemap-page,
.tlmb-sitemap-page *,
.tlmb-sitemap-page *::before,
.tlmb-sitemap-page *::after {
  box-sizing: border-box;
}

.tlmb-sitemap-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.tlmb-sitemap-header {
  text-align: center;
  margin-bottom: 38px;
}

.tlmb-sitemap-kicker {
  margin: 0;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 13, 49, 0.9);
}

.tlmb-sitemap-title {
  margin: 4px 0 0;
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.97;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--tlmb-sm-dark);
  text-transform: uppercase;
}

.tlmb-sitemap-subtitle {
  margin: 15px auto 0;
  max-width: 760px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--tlmb-sm-muted);
}

.tlmb-sitemap-board {
  background: linear-gradient(180deg, #fcfdff 0%, #f6f8fc 100%);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  box-shadow: var(--tlmb-sm-shadow);
  padding: 30px 24px 26px;
}

.tlmb-sitemap-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tlmb-sitemap-root {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--tlmb-sm-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tlmb-sitemap-root:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 13, 49, 0.28);
}

.tlmb-sitemap-root-icon {
  width: 14px;
  height: 14px;
  opacity: 0.66;
}

.tlmb-sitemap-trunk {
  width: 1.5px;
  height: 26px;
  background: var(--tlmb-sm-line);
}

.tlmb-sitemap-branches {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  position: relative;
}

.tlmb-sitemap-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1.5px;
  background: var(--tlmb-sm-line);
}

.tlmb-sitemap-branch {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tlmb-sitemap-stem {
  width: 1.5px;
  height: 16px;
  background: var(--tlmb-sm-line);
}

.tlmb-sitemap-node {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tlmb-sitemap-node-card,
.tlmb-sitemap-child-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--tlmb-sm-line-soft);
  border-radius: 8px;
  background: var(--tlmb-sm-card);
  color: var(--tlmb-sm-dark);
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.tlmb-sitemap-node-card {
  padding: 8px 14px;
}

.tlmb-sitemap-child-card {
  padding: 5px 10px;
  font-size: 11px;
  border-style: dashed;
  color: rgba(10, 13, 49, 0.82);
}

.tlmb-sitemap-node-card:hover,
.tlmb-sitemap-child-card:hover {
  border-color: rgba(229, 63, 62, 0.52);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 13, 49, 0.08);
}

.tlmb-sitemap-node-icon {
  width: 13px;
  height: 13px;
  opacity: 0.55;
}

.tlmb-sitemap-child-icon {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}

.tlmb-sitemap-info-btn {
  position: absolute;
  top: -6px;
  right: max(-2px, calc(50% - 72px));
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--tlmb-sm-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Onest', sans-serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 6;
}

.tlmb-sitemap-info-btn:hover {
  transform: scale(1.13);
  background: #c83333;
}

.tlmb-sitemap-info-btn.is-active {
  background: var(--tlmb-sm-dark);
}

.tlmb-sitemap-info-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 220px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(10, 13, 49, 0.12);
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 13, 49, 0.16);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  color: var(--tlmb-sm-muted);
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tlmb-sitemap-info-popup::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  border-top: 1px solid rgba(10, 13, 49, 0.12);
  border-left: 1px solid rgba(10, 13, 49, 0.12);
  background: #fff;
}

.tlmb-sitemap-info-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.tlmb-sitemap-info-title {
  margin-bottom: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tlmb-sm-dark);
}

.tlmb-sitemap-info-link {
  display: inline-flex;
  margin-top: 7px;
  text-decoration: none;
  color: var(--tlmb-sm-red);
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.tlmb-sitemap-children {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}

.tlmb-sitemap-child-stem {
  width: 1.5px;
  height: 12px;
  background: var(--tlmb-sm-line);
}

.tlmb-sitemap-child-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tlmb-sitemap-child-node + .tlmb-sitemap-child-node {
  margin-top: 7px;
}

.tlmb-sitemap-child-node .tlmb-sitemap-info-btn {
  top: -6px;
  right: -6px;
}

@media (max-width: 1200px) {
  .tlmb-sitemap-shell {
    width: min(1080px, calc(100% - 32px));
  }
}

@media (max-width: 980px) {
  .tlmb-sitemap-page {
    padding: 70px 0 56px;
  }

  .tlmb-sitemap-board {
    padding: 24px 14px 20px;
  }

  .tlmb-sitemap-branches {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tlmb-sitemap-branches::before {
    display: none;
  }

  .tlmb-sitemap-stem {
    height: 10px;
  }

  .tlmb-sitemap-info-btn {
    right: -6px;
  }

  .tlmb-sitemap-info-popup {
    width: 230px;
  }

  .tlmb-sitemap-children {
    margin-top: 3px;
  }
}

@media (max-width: 640px) {
  .tlmb-sitemap-shell {
    width: calc(100% - 18px);
  }

  .tlmb-sitemap-kicker {
    font-size: 16px;
  }

  .tlmb-sitemap-title {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .tlmb-sitemap-subtitle {
    font-size: 13px;
  }

  .tlmb-sitemap-board {
    border-radius: 14px;
    padding: 18px 8px 16px;
  }

  .tlmb-sitemap-info-popup {
    width: 194px;
  }
}
