/* Approved compact sitemap: one source-backed directory, no hero or card wall. */
.wpq-site-main:has(.wpq-sitemap-v1) {
  background: var(--wpq-color-surface);
}

.wpq-sitemap-v1 {
  width: min(1280px, calc(100% - 54px));
  max-width: 1280px;
  padding-bottom: 56px;
}

.wpq-sitemap-v1__layout {
  display: grid;
  grid-template-areas:
    "intro search"
    "directory rail";
  grid-template-columns: minmax(0, 1fr) 244px;
  gap: 30px 36px;
  align-items: start;
}

.wpq-sitemap-v1__intro {
  position: relative;
  grid-area: intro;
  display: grid;
  gap: var(--wpq-space-2);
  min-width: 0;
  padding: var(--wpq-space-2) 240px 0 0;
}

.wpq-sitemap-v1__intro .wpq-public-hub__kicker {
  margin: 0 0 var(--wpq-space-0-5);
  color: var(--wpq-color-blue);
  font-size: var(--wpq-type-meta);
  line-height: 1.4;
}

.wpq-sitemap-v1__intro h1 {
  margin: 0;
  color: var(--wpq-color-footer);
  font: var(--wpq-weight-bold) clamp(2rem, 3.2vw, 2.35rem)/1.22 var(--wpq-font-ui);
  letter-spacing: var(--wpq-tracking-default);
}

.wpq-sitemap-v1__intro > p:not(.wpq-public-hub__kicker):not(.wpq-sitemap-v1__summary) {
  margin: 0;
  color: var(--wpq-color-copy);
  font: var(--wpq-weight-bold) var(--wpq-type-small-strong)/1.75 var(--wpq-font-ui);
}

.wpq-sitemap-v1__summary {
  position: absolute;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 5px;
  margin: 0;
  color: var(--wpq-color-ink);
  font: var(--wpq-weight-bold) var(--wpq-type-small)/1.4 var(--wpq-font-ui);
  white-space: nowrap;
}

.wpq-sitemap-v1__summary span:first-child,
.wpq-sitemap-v1__summary span:last-child {
  color: var(--wpq-color-blue);
}

.wpq-sitemap-v1__search {
  grid-area: search;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-width: 0;
  height: 48px;
  margin-top: -16px;
  border: 1px solid #cbd6e8;
  background: var(--wpq-color-surface);
}

.wpq-sitemap-v1__search input {
  min-width: 0;
  height: 46px;
  padding: 0 var(--wpq-space-1) 0 var(--wpq-space-3-5);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wpq-color-footer);
  font: var(--wpq-weight-medium) var(--wpq-type-small-strong)/1.4 var(--wpq-font-ui);
  outline: 0;
}

.wpq-sitemap-v1__search input::placeholder {
  color: #60708b;
  opacity: 1;
}

.wpq-sitemap-v1__search:focus-within {
  border-color: var(--wpq-color-blue);
  box-shadow: 0 0 0 3px var(--wpq-color-blue-focus);
}

.wpq-sitemap-v1__search button {
  display: grid;
  width: 44px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wpq-color-footer);
  cursor: pointer;
}

.wpq-sitemap-v1__search svg {
  width: 20px;
  height: 20px;
}

.wpq-sitemap-v1__directory {
  grid-area: directory;
  min-width: 0;
}

.wpq-sitemap-v1__tabs {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 36px;
  min-height: 48px;
  border-bottom: 1px solid #cbd6e8;
}

.wpq-sitemap-v1__tabs a {
  position: relative;
  display: inline-grid;
  min-height: 48px;
  padding: 0 var(--wpq-space-3-5);
  place-items: center;
  color: #172a4f;
  font: var(--wpq-weight-bold) var(--wpq-type-small-strong)/1.4 var(--wpq-font-ui);
  text-decoration: none;
}

.wpq-sitemap-v1__tabs a:hover,
.wpq-sitemap-v1__tabs a:focus-visible,
.wpq-sitemap-v1__tabs a.is-current {
  color: var(--wpq-color-blue);
}

.wpq-sitemap-v1__tabs a.is-current::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--wpq-color-blue);
  content: "";
}

.wpq-sitemap-v1__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--wpq-space-8);
  margin-top: var(--wpq-space-3);
  align-items: start;
}

.wpq-sitemap-v1__group {
  min-width: 0;
  scroll-margin-top: 152px;
  --wpq-sitemap-tone: var(--wpq-color-blue);
  --wpq-sitemap-text-tone: var(--wpq-color-blue);
}

.wpq-sitemap-v1__group--learning {
  grid-row: span 2;
  --wpq-sitemap-tone: var(--wpq-color-green);
  --wpq-sitemap-text-tone: #08733f;
}

.wpq-sitemap-v1__group--trouble {
  --wpq-sitemap-tone: #f29a00;
  --wpq-sitemap-text-tone: #8a5100;
}

.wpq-sitemap-v1__group--resources {
  --wpq-sitemap-tone: #254a86;
  --wpq-sitemap-text-tone: #254a86;
}

.wpq-sitemap-v1__group--operation {
  grid-column: 1 / -1;
  --wpq-sitemap-tone: #27456e;
  --wpq-sitemap-text-tone: #27456e;
}

.wpq-sitemap-v1__group-head {
  min-height: 47px;
  padding: 1px 0 var(--wpq-space-2) var(--wpq-space-4);
  border-left: 4px solid var(--wpq-sitemap-tone);
}

.wpq-sitemap-v1__group-head h2 {
  margin: 0;
  color: var(--wpq-color-footer);
  font: var(--wpq-weight-bold) var(--wpq-type-control)/1.45 var(--wpq-font-ui);
}

.wpq-sitemap-v1__group-head p {
  margin: 1px 0 0;
  color: #435675;
  font: var(--wpq-weight-medium) var(--wpq-type-micro-floor)/1.55 var(--wpq-font-ui);
}

.wpq-sitemap-v1__items {
  border-bottom: 1px solid var(--wpq-color-line);
}

.wpq-sitemap-v1__group--operation .wpq-sitemap-v1__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--wpq-space-8);
  border-bottom: 0;
}

.wpq-sitemap-v1__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) max-content;
  gap: var(--wpq-space-2-5);
  align-items: center;
  min-height: 56px;
  padding: var(--wpq-space-1-5) var(--wpq-space-2);
  border-top: 1px solid var(--wpq-color-line);
  color: var(--wpq-color-footer);
  text-decoration: none;
}

.wpq-sitemap-v1__group--operation .wpq-sitemap-v1__item:nth-child(-n + 2) {
  border-top: 1px solid var(--wpq-color-line);
}

.wpq-sitemap-v1__item:hover,
.wpq-sitemap-v1__item:focus-visible {
  background: var(--wpq-color-surface-subtle);
  color: var(--wpq-color-blue);
}

.wpq-sitemap-v1__item-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--wpq-sitemap-tone);
}

.wpq-sitemap-v1__item-icon svg {
  width: 24px;
  height: 24px;
}

.wpq-sitemap-v1__item-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.wpq-sitemap-v1__item-copy strong {
  color: var(--wpq-color-footer);
  font: var(--wpq-weight-bold) var(--wpq-type-small)/1.35 var(--wpq-font-ui);
}

.wpq-sitemap-v1__item-copy small {
  overflow: hidden;
  color: #415575;
  font: var(--wpq-weight-medium) var(--wpq-type-micro-floor)/1.45 var(--wpq-font-ui);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wpq-sitemap-v1__item-meta {
  color: var(--wpq-sitemap-text-tone);
  font: var(--wpq-weight-bold) var(--wpq-type-micro-floor)/1.4 var(--wpq-font-ui);
  white-space: nowrap;
}

.wpq-sitemap-v1__rail {
  grid-area: rail;
  display: grid;
  gap: 28px;
  min-width: 0;
  padding-left: 0;
  border-left: 1px solid var(--wpq-color-line);
  margin-top: -98px;
}

.wpq-sitemap-v1__beginner {
  display: grid;
  gap: 0;
  padding: 0 0 var(--wpq-space-0-5) 26px;
}

.wpq-sitemap-v1__beginner h2 {
  margin: 0 0 var(--wpq-space-3);
  padding-left: var(--wpq-space-3);
  border-left: 4px solid var(--wpq-color-blue);
  color: var(--wpq-color-footer);
  font: var(--wpq-weight-bold) var(--wpq-type-copy)/1.55 var(--wpq-font-ui);
}

.wpq-sitemap-v1__beginner a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--wpq-space-2);
  align-items: start;
  min-height: 44px;
  padding: var(--wpq-space-2) 0;
  color: var(--wpq-color-blue);
  font: var(--wpq-weight-bold) var(--wpq-type-micro-floor)/1.55 var(--wpq-font-ui);
  text-decoration: none;
}

.wpq-sitemap-v1__beginner svg {
  width: 18px;
  height: 18px;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta.wpq-public-builder-cta--side {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px var(--wpq-space-2-5);
  margin-left: 26px;
  padding: var(--wpq-space-5);
  border: 1px solid #cbd6e8;
  border-radius: 2px;
  background: var(--wpq-color-surface);
  box-shadow: none;
  text-decoration: none;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta--side .wpq-public-builder-cta__brand {
  width: 36px;
  height: 36px;
  padding: 0;
  place-self: start;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta--side .wpq-public-builder-cta__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta--side .wpq-public-builder-cta__copy {
  display: contents;
  padding: 0;
  text-align: left;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta__eyebrow:empty {
  display: none;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta__title {
  align-self: center;
  color: var(--wpq-color-blue);
  font: var(--wpq-weight-bold) var(--wpq-type-copy)/1.45 var(--wpq-font-ui);
  text-decoration: none;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta__body {
  grid-column: 1 / -1;
  color: var(--wpq-color-copy);
  font: var(--wpq-weight-medium) var(--wpq-type-micro-floor)/1.85 var(--wpq-font-ui);
  text-decoration: none;
}

.wpq-sitemap-v1__rail .wpq-public-builder-cta--side .wpq-public-builder-cta__action {
  grid-column: 1 / -1;
  display: grid;
  min-height: 44px;
  margin-top: 7px;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding: var(--wpq-space-2-5);
  place-items: center;
  border: 0;
  border-radius: 2px;
  background: var(--wpq-color-blue);
  color: var(--wpq-color-surface);
  font: var(--wpq-weight-bold) var(--wpq-type-meta)/1.4 var(--wpq-font-ui);
}

@media (max-width: 1023px) {
  .wpq-sitemap-v1 {
    width: min(100% - 32px, 900px);
  }

  .wpq-sitemap-v1__layout {
    grid-template-areas:
      "intro"
      "search"
      "directory"
      "rail";
    grid-template-columns: minmax(0, 1fr);
    gap: var(--wpq-space-6);
  }

  .wpq-sitemap-v1__intro {
    padding-right: 0;
  }

  .wpq-sitemap-v1__summary {
    display: none;
  }

  .wpq-sitemap-v1__search {
    width: 100%;
    margin-top: 0;
  }

  .wpq-sitemap-v1__rail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--wpq-space-6);
    padding: var(--wpq-space-6) 0 0;
    border-top: 1px solid var(--wpq-color-line);
    border-left: 0;
    margin-top: 0;
  }

  .wpq-sitemap-v1__beginner,
  .wpq-sitemap-v1__rail .wpq-public-builder-cta.wpq-public-builder-cta--side {
    margin: 0;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .wpq-sitemap-v1 {
    width: calc(100% - 24px);
    padding-bottom: var(--wpq-space-8);
  }

  .wpq-sitemap-v1__layout {
    gap: 22px;
  }

  .wpq-sitemap-v1__intro {
    gap: 7px;
    padding-top: var(--wpq-space-3-5);
  }

  .wpq-sitemap-v1__intro h1 {
    font-size: var(--wpq-type-page-desktop);
  }

  .wpq-sitemap-v1__intro > p:not(.wpq-public-hub__kicker):not(.wpq-sitemap-v1__summary) {
    font-size: var(--wpq-type-body);
    line-height: 1.75;
  }

  .wpq-sitemap-v1__search {
    height: 48px;
  }

  .wpq-sitemap-v1__tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .wpq-sitemap-v1__tabs a {
    min-width: 0;
    padding: 0 var(--wpq-space-0-5);
    font-size: var(--wpq-type-small);
    white-space: nowrap;
  }

  .wpq-sitemap-v1__groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin-top: 28px;
  }

  .wpq-sitemap-v1__group--learning,
  .wpq-sitemap-v1__group--operation {
    grid-row: auto;
    grid-column: auto;
  }

  .wpq-sitemap-v1__group-head {
    min-height: 56px;
    padding: var(--wpq-space-0-5) 0 7px var(--wpq-space-3);
  }

  .wpq-sitemap-v1__group-head h2 {
    font-size: var(--wpq-type-subheading);
  }

  .wpq-sitemap-v1__group-head p {
    font-size: var(--wpq-type-small);
    line-height: 1.6;
  }

  .wpq-sitemap-v1__group--operation .wpq-sitemap-v1__items {
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 1px solid var(--wpq-color-line);
  }

  .wpq-sitemap-v1__item {
    grid-template-columns: 42px minmax(0, 1fr) max-content;
    gap: var(--wpq-space-2);
    min-height: 68px;
    padding: var(--wpq-space-2) var(--wpq-space-0-5);
  }

  .wpq-sitemap-v1__item-icon {
    width: 40px;
    height: 40px;
  }

  .wpq-sitemap-v1__item-icon svg {
    width: 28px;
    height: 28px;
  }

  .wpq-sitemap-v1__item-copy strong {
    font-size: var(--wpq-type-copy-strong);
  }

  .wpq-sitemap-v1__item-copy small {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--wpq-type-label);
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .wpq-sitemap-v1__item-meta {
    font-size: var(--wpq-type-meta);
  }

  .wpq-sitemap-v1__rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .wpq-sitemap-v1__rail .wpq-public-builder-cta.wpq-public-builder-cta--side {
    padding: var(--wpq-space-5);
  }
}
