/* Site map hero — 01 Site Map */

.cw-sitemap-hero {
  background:
    radial-gradient(760px 520px at 85% 30%, rgba(183, 166, 245, 0.18), transparent 70%),
    #141210;
  color: #f3efe7;
  padding: clamp(56px, 6.5vw, 96px) clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

.cw-sitemap-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.cw-sitemap-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.cw-sitemap-hero__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #ff7a50;
}

.cw-sitemap-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(60px, 8.5vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.cw-sitemap-hero__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #d4f53c;
}

.cw-sitemap-hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: #cfc9be;
  text-wrap: pretty;
}

.cw-sitemap-hero__search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: #1c1a17;
  border: 1px solid rgba(243, 239, 231, 0.12);
  max-width: 560px;
  transition: border-color 0.2s ease;
}

.cw-sitemap-hero__search-icon {
  flex: none;
  color: #8e877c;
}

.cw-sitemap-hero__search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #f3efe7;
  font-size: 16px;
  outline: none;
}

.cw-sitemap-hero__search-input::placeholder {
  color: #8e877c;
}

.cw-sitemap-hero__search-clear {
  flex: none;
  cursor: pointer;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: #a39c90;
}

.cw-sitemap-hero__search-clear:hover,
.cw-sitemap-hero__search-clear:focus-visible {
  color: #f3efe7;
}

.cw-sitemap-hero__search-count {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: #141210;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #d4f53c;
}

.cw-sitemap-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cw-sitemap-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

.cw-sitemap-hero__btn--primary {
  background: #e0431c;
  color: #fff;
}

.cw-sitemap-hero__btn--primary:hover,
.cw-sitemap-hero__btn--primary:focus-visible {
  background: #ff5527;
  color: #fff;
}

.cw-sitemap-hero__btn--ghost {
  background: transparent;
  color: #f3efe7;
  border: 1px solid rgba(243, 239, 231, 0.2);
  font-weight: 600;
}

.cw-sitemap-hero__btn--ghost:hover,
.cw-sitemap-hero__btn--ghost:focus-visible {
  border-color: #d4f53c;
  color: #d4f53c;
}

.cw-sitemap-hero__lucky {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #b7a6f5;
  text-decoration: none;
  max-width: 100%;
  min-width: 0;
}

.cw-sitemap-hero__lucky:hover,
.cw-sitemap-hero__lucky:focus-visible {
  color: #d4f53c;
}

.cw-sitemap-hero__lucky-kicker {
  flex: none;
}

.cw-sitemap-hero__lucky-label {
  min-width: 0;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cw-sitemap-hero__map-card {
  background: #1c1a17;
  border: 1px solid rgba(243, 239, 231, 0.08);
  border-radius: 28px;
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.cw-sitemap-hero__map-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #8e877c;
}

.cw-sitemap-hero__tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cw-sitemap-hero__tree-root {
  padding: 12px 22px;
  border-radius: 999px;
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.cw-sitemap-hero__tree-root:hover,
.cw-sitemap-hero__tree-root:focus-visible {
  background: #d4f53c;
  color: #141210;
}

.cw-sitemap-hero__tree-v {
  width: 1px;
  height: 22px;
  background: rgba(243, 239, 231, 0.25);
}

.cw-sitemap-hero__tree-h {
  width: 76%;
  height: 1px;
  background: rgba(243, 239, 231, 0.25);
}

.cw-sitemap-hero__branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cw-sitemap-hero__branch {
  cursor: pointer;
  border: 0;
  border-radius: 20px;
  padding: 18px;
  background: var(--cw-sitemap-branch-bg, #f3efe7);
  color: var(--cw-sitemap-branch-fg, #141210);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
  justify-content: space-between;
  text-align: left;
  font-family: inherit;
  transition: transform 0.2s ease, outline-color 0.3s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.cw-sitemap-hero__branch:hover,
.cw-sitemap-hero__branch:focus-visible {
  transform: translateY(-3px);
}

.cw-sitemap-hero__branch.is-flash {
  outline-color: #e0431c;
}

.cw-sitemap-hero__branch-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-sitemap-hero__branch-index {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.cw-sitemap-hero__branch-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.12);
}

.cw-sitemap-hero__branch-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cw-sitemap-hero__branch-desc {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.4;
}
