.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

body {
  overflow-x: clip;
}

.sitemap-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(221, 223, 232, 0.76);
  padding: 82px 24px 72px;
}

.sitemap-hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(rgba(93, 96, 116, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 96, 116, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 94%);
}

.sitemap-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 680px;
  height: 680px;
  top: -410px;
  left: calc(50% - 340px);
  border: 1px solid rgba(255, 90, 79, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(255, 90, 79, 0.035),
    0 0 0 220px rgba(255, 90, 79, 0.02);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.48;
}

.glow-one {
  top: 50px;
  left: -190px;
  background: rgba(255, 175, 147, 0.28);
}

.glow-two {
  right: -150px;
  bottom: -190px;
  background: rgba(115, 137, 238, 0.18);
}

.sitemap-hero-inner {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 72px;
  margin: 0 auto;
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 44px;
  color: #777a89;
  font-size: 12px;
  font-weight: 750;
}

.breadcrumbs a {
  color: #494c5c;
}

.breadcrumbs a:hover {
  color: var(--brand-dark);
}

.sitemap-intro h1 {
  max-width: 680px;
  margin: 0;
  color: #292b38;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.068em;
}

.sitemap-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.site-search {
  position: relative;
  width: 100%;
  max-width: 620px;
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.site-search input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(207, 209, 220, 0.95);
  border-radius: 17px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(41, 44, 61, 0.09);
  color: #292c39;
  font: 650 14px/1 var(--font);
  padding: 0 56px 0 52px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-search input::placeholder {
  color: #8a8d9b;
}

.site-search input:focus {
  border-color: rgba(255, 90, 79, 0.64);
  box-shadow: 0 20px 54px rgba(41, 44, 61, 0.12), 0 0 0 4px rgba(255, 90, 79, 0.09);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  z-index: 1;
  left: 20px;
  width: 16px;
  height: 16px;
  border: 2px solid #656979;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 99px;
  background: #656979;
  transform: rotate(45deg);
}

.site-search kbd {
  position: absolute;
  right: 16px;
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dae3;
  border-radius: 7px;
  background: #f7f7fa;
  box-shadow: 0 2px 0 #dfe1e8;
  color: #717484;
  font: 800 12px/1 var(--font);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 22px;
  margin-top: 20px;
  color: #737686;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  position: relative;
}

.hero-meta span + span::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  top: 50%;
  left: -13px;
  border-radius: 50%;
  background: #bbbcc7;
}

.hero-meta strong {
  color: #363947;
}

.hero-meta a {
  color: var(--brand-dark);
  font-weight: 850;
}

.site-constellation {
  position: relative;
  width: 100%;
  min-height: 450px;
}

.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px dashed rgba(116, 119, 137, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
}

.orbit-one {
  width: 355px;
  height: 270px;
}

.orbit-two {
  width: 480px;
  height: 390px;
  border-color: rgba(255, 90, 79, 0.16);
  transform: translate(-50%, -50%) rotate(16deg);
}

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: center;
  border: 1px solid rgba(211, 213, 223, 0.92);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px rgba(41, 44, 61, 0.12);
  color: #303341;
  padding: 18px;
  animation: node-float 6s ease-in-out infinite;
}

.map-node strong {
  margin-top: 9px;
  font-size: 14px;
  letter-spacing: -0.025em;
}

.map-node small {
  margin-top: 3px;
  color: #7b7e8d;
  font-size: 10px;
}

.node-center {
  width: 190px;
  height: 148px;
  top: 50%;
  left: 50%;
  align-content: center;
  border-color: rgba(255, 90, 79, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 238, 0.96));
  box-shadow: 0 26px 60px rgba(255, 90, 79, 0.17);
  transform: translate(-50%, -50%) rotate(-2deg);
  animation-name: node-center-float;
}

.node-center strong {
  font-size: 20px;
}

.mini-brand {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #ff8b63);
  box-shadow: 0 9px 20px rgba(255, 90, 79, 0.23);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
}

.node-cite,
.node-pdf,
.node-check,
.node-export {
  width: 126px;
  height: 104px;
}

.node-cite {
  top: 16px;
  left: 44px;
  animation-delay: -1s;
}

.node-pdf {
  top: 68px;
  right: -4px;
  animation-delay: -2.4s;
}

.node-check {
  right: 40px;
  bottom: 22px;
  animation-delay: -4.2s;
}

.node-export {
  left: 10px;
  bottom: 44px;
  animation-delay: -3.1s;
}

.node-code {
  width: fit-content;
  min-width: 35px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  padding: 0 8px;
}

.coral { background: #ff6b55; }
.blue { background: #5f8bdc; }
.green { background: #4aa776; }
.violet { background: #716de8; }

.connector {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 90, 79, 0.25), rgba(104, 107, 127, 0.38));
  transform-origin: left center;
}

.connector::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: -2.5px;
  right: 0;
  border-radius: 50%;
  background: #ff7565;
  box-shadow: 0 0 0 5px rgba(255, 90, 79, 0.1);
}

.connector-a {
  width: 145px;
  top: 120px;
  left: 135px;
  transform: rotate(35deg);
}

.connector-b {
  width: 130px;
  top: 166px;
  left: 285px;
  transform: rotate(-26deg);
}

.connector-c {
  width: 139px;
  top: 286px;
  left: 287px;
  transform: rotate(28deg);
}

.connector-d {
  width: 135px;
  top: 296px;
  left: 125px;
  transform: rotate(-28deg);
}

.spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 90, 79, 0.55);
  transform: rotate(45deg);
}

.spark-one {
  top: 23px;
  right: 110px;
}

.spark-two {
  bottom: 12px;
  left: 170px;
  border-color: rgba(95, 139, 220, 0.55);
}

.spark-three {
  top: 222px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-color: rgba(74, 167, 118, 0.58);
}

@keyframes node-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes node-center-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50% { transform: translate(-50%, calc(-50% - 7px)) rotate(-1deg); }
}

.directory-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 92px;
}

.directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.directory-heading h2,
.quick-paths h2 {
  margin: 0;
  color: #2f3240;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.052em;
}

.directory-heading > p {
  margin: 0 0 7px;
  color: #777a89;
  font-size: 12px;
  font-weight: 750;
}

.directory-grid {
  display: grid;
  gap: 18px;
}

.directory-group {
  overflow: hidden;
  border: 1px solid rgba(216, 218, 227, 0.96);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.87);
  box-shadow: 0 18px 45px rgba(41, 44, 61, 0.065);
}

.group-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e7e8ee;
  background:
    linear-gradient(90deg, rgba(255, 247, 245, 0.92), rgba(255, 255, 255, 0.92));
  padding: 23px 25px;
}

.directory-group:nth-child(2) .group-header {
  background: linear-gradient(90deg, rgba(245, 248, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.directory-group:nth-child(3) .group-header {
  background: linear-gradient(90deg, rgba(248, 246, 255, 0.94), rgba(255, 255, 255, 0.92));
}

.group-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffede8;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 950;
}

.directory-group:nth-child(2) .group-number {
  background: #eaf0ff;
  color: #4777cc;
}

.directory-group:nth-child(3) .group-number {
  background: #f0ebff;
  color: #6d5fd1;
}

.group-header h2 {
  margin: 0;
  color: #303341;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.group-header p {
  margin: 4px 0 0;
  color: #777a89;
  font-size: 12px;
}

.group-count {
  border: 1px solid #e0e2e9;
  border-radius: 999px;
  background: #ffffff;
  color: #777a89;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 10px;
}

.page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  padding: 7px 18px 18px;
}

.page-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  border-bottom: 1px solid #ececf1;
  border-radius: 13px;
  padding: 16px 12px;
  transition: background 150ms ease, transform 150ms ease;
}

.page-link:hover,
.page-link:focus-visible {
  z-index: 1;
  outline: none;
  background: #fff8f6;
  transform: translateX(3px);
}

.directory-group:nth-child(2) .page-link:hover,
.directory-group:nth-child(2) .page-link:focus-visible {
  background: #f6f8ff;
}

.directory-group:nth-child(3) .page-link:hover,
.directory-group:nth-child(3) .page-link:focus-visible {
  background: #faf8ff;
}

.page-link[hidden],
.directory-group[hidden] {
  display: none;
}

.page-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 20px rgba(42, 45, 61, 0.12);
}

.icon-coral { background: linear-gradient(135deg, #ff5a4f, #ff8b63); }
.icon-orange { background: linear-gradient(135deg, #f17545, #f6a553); }
.icon-violet { background: linear-gradient(135deg, #736de8, #a66fd5); }
.icon-blue { background: linear-gradient(135deg, #4f82db, #73a8ed); }
.icon-green { background: linear-gradient(135deg, #3d9d72, #70c38c); }
.icon-indigo { background: linear-gradient(135deg, #5f63cf, #8789eb); }
.icon-yellow { background: linear-gradient(135deg, #e2ae2c, #f1ca59); color: #4b3903; }
.icon-slate { background: linear-gradient(135deg, #3f4a62, #69758d); }

.page-copy {
  display: grid;
  gap: 6px;
}

.page-copy strong {
  color: #303341;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-copy small {
  color: #777a89;
  font-size: 11px;
  line-height: 1.5;
}

.page-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e2e9;
  border-radius: 50%;
  background: #ffffff;
  color: #787b89;
  font-size: 12px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.page-link:hover .page-arrow {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.empty-state {
  border: 1px dashed #d5d7e0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 58px 24px;
}

.empty-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 14px;
  background: #ffede8;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 950;
}

.empty-state h2 {
  margin: 0;
  color: #303341;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.empty-state p {
  margin: 10px 0 0;
  color: #747786;
  font-size: 13px;
}

.empty-state button {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font: 850 13px/1 var(--font);
  cursor: pointer;
  padding: 0;
}

.quick-paths {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(221, 223, 232, 0.88);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 187, 164, 0.25), transparent 30%),
    radial-gradient(circle at 90% 74%, rgba(110, 124, 225, 0.16), transparent 30%),
    #f8f7fa;
  padding: 84px 24px 92px;
}

.quick-paths-heading,
.path-grid {
  max-width: 1132px;
  margin-inline: auto;
}

.quick-paths-heading {
  margin-bottom: 30px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(214, 216, 226, 0.94);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(41, 44, 61, 0.075);
  padding: 25px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.path-card::before,
.path-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.path-card::before {
  width: 150px;
  height: 150px;
  top: -72px;
  right: -40px;
  background: rgba(255, 90, 79, 0.11);
}

.path-card::after {
  width: 72px;
  height: 72px;
  top: 16px;
  right: 38px;
  border: 1px dashed rgba(255, 90, 79, 0.34);
}

.path-blue::before { background: rgba(95, 139, 220, 0.12); }
.path-blue::after { border-color: rgba(95, 139, 220, 0.36); }
.path-violet::before { background: rgba(113, 109, 232, 0.12); }
.path-violet::after { border-color: rgba(113, 109, 232, 0.36); }

.path-card:hover {
  box-shadow: 0 24px 55px rgba(41, 44, 61, 0.12);
  transform: translateY(-4px);
}

.path-step {
  position: absolute;
  top: 23px;
  left: 25px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 950;
}

.path-blue .path-step { color: #4777cc; }
.path-violet .path-step { color: #675ccc; }

.path-card strong {
  color: #303341;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.path-card small {
  margin-top: 7px;
  color: #777a89;
  font-size: 12px;
}

.path-action {
  margin-top: 24px;
  color: #3e4150;
  font-size: 12px;
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .map-node {
    animation: none;
  }

  .page-link,
  .path-card,
  .site-search input {
    transition: none;
  }
}

@media (max-width: 1020px) {
  .sitemap-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sitemap-intro {
    max-width: 760px;
  }

  .site-constellation {
    max-width: 520px;
    min-height: 420px;
    margin: 0 auto;
  }

  .page-list {
    grid-template-columns: 1fr;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 200px;
  }
}

@media (max-width: 720px) {
  .sitemap-hero {
    padding: 48px 16px 52px;
  }

  .breadcrumbs {
    margin-bottom: 30px;
  }

  .sitemap-intro h1 {
    font-size: clamp(43px, 14vw, 62px);
  }

  .sitemap-lede {
    font-size: 15px;
  }

  .site-search input {
    height: 54px;
    padding-right: 18px;
  }

  .site-search kbd {
    display: none;
  }

  .hero-meta {
    gap: 9px 18px;
  }

  .site-constellation {
    min-height: 335px;
    transform: scale(0.78);
    transform-origin: top center;
    margin-bottom: -72px;
  }

  .directory-section {
    padding: 62px 14px 68px;
  }

  .directory-heading {
    display: grid;
    align-items: start;
    gap: 16px;
  }

  .directory-heading > p {
    margin: 0;
  }

  .group-header {
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 19px 16px;
  }

  .group-count {
    display: none;
  }

  .page-list {
    padding: 5px 8px 12px;
  }

  .page-link {
    grid-template-columns: auto 1fr;
    min-height: 88px;
    padding-inline: 9px;
  }

  .page-arrow {
    display: none;
  }

  .page-copy small {
    font-size: 10.5px;
  }

  .quick-paths {
    padding: 62px 14px 70px;
  }
}
