/*
 * Page-owned foundation for .site-map-page.
 * These selectors preserve their current presentation in the first stylesheet
 * response without imposing page design on a new standalone HTML document.
 */
:where(body.site-map-page),
:where(body.site-map-page) *,
:where(body.site-map-page) *::before,
:where(body.site-map-page) *::after {
  box-sizing: border-box;
}

html:has(> :where(body.site-map-page)) {
  scroll-behavior: smooth;
  background: var(--ink);
  scrollbar-color: #FA080D #000000;
  scrollbar-width: thin;
}

:where(body.site-map-page) {
  margin: 0;
  background: var(--ink);
  color: #F4F4F5;
  font-family: var(--body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

:where(body.site-map-page) :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--display);
}

:where(body.site-map-page) a {
  color: inherit;
  text-decoration: none;
}

:where(body.site-map-page) button {
  color: inherit;
  font: inherit;
}

:where(body.site-map-page) img {
  display: block;
  max-width: 100%;
}

:where(body.site-map-page) .eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 clamp(1.2rem, 2.8vh, 2rem);
  color: #BC13FE;
  font: 500 clamp(10px, .75vw, .72rem)/1 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
}

:where(body.site-map-page) .eyebrow::before {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--signal-hot);
}

:where(body.site-map-page) .pulse {
  width: 6px;
  aspect-ratio: 1;
  margin-left: -.2rem;
  border-radius: 50%;
  background: var(--signal-hot);
  box-shadow: 0 0 0 0 rgba(250,8,13,.55);
  animation: pulse 2.2s infinite;
}

:where(body.site-map-page) .section-kicker {
  margin: 0 0 1.4rem;
  color: var(--signal-hot);
  font: 600 .65rem/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

:where(body.site-map-page) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

:where(body.site-map-page) .reveal.is-visible {
  opacity: 1;
  transform: none;
}

:where(body.site-map-page) .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

:where(body.site-map-page) .button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-width: 165px;
  min-height: 48px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  background: #000000;
  color: #FFFFFF;
  font: 600 .65rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), color .25s ease, background .25s ease, border-color .25s ease;
}

:where(body.site-map-page) .button::after {
  content: "↗";
  font-size: 1rem;
}

:where(body.site-map-page) .button:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  background: #000000;
  color: #FFFFFF;
  box-shadow: 0 0 0 1px var(--signal);
}

:where(body.site-map-page) .button-primary {
  border-color: var(--signal);
  background: var(--signal);
  color: #FFFFFF;
}

:where(body.site-map-page) .button-primary:hover {
  border-color: var(--signal-hot);
  background: #000000;
  color: #FFFFFF;
}

:where(body.site-map-page) input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1px solid #BC13FE;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
  cursor: pointer;
}

:where(body.site-map-page) input[type="checkbox"]:checked {
  border-color: #FA080D;
  background: #FA080D;
  box-shadow: inset 0 0 0 3px #000000, 0 0 8px rgba(250,8,13,.45);
}

:where(body.site-map-page) input[type="checkbox"]:focus-visible {
  border-color: #FA080D;
  outline: 0;
  box-shadow: 0 0 0 1px #FA080D, 0 0 8px rgba(250,8,13,.28);
}

:where(body.site-map-page) select {
  color-scheme: dark;
}

:where(body.site-map-page) select option {
  background: #000000;
  color: #FFFFFF;
}

:where(body.site-map-page) select option:checked {
  background: #BC13FE;
  color: #FFFFFF;
}

:where(body.site-map-page) select:focus-visible {
  border-color: #FA080D;
  outline: 0;
  box-shadow: 0 0 0 1px #FA080D, 0 0 8px rgba(250,8,13,.28);
}

:where(body.site-map-page) main .button {
  min-height: 52px;
  font-family: var(--mono);
  font-size: clamp(.8rem, .9vw, .92rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .055em;
}

@media (min-width: 721px) {
  html:has(> :where(body.site-map-page))::-webkit-scrollbar {
    width: 10px;
  }

  html:has(> :where(body.site-map-page))::-webkit-scrollbar-track {
    background: #000000;
  }

  html:has(> :where(body.site-map-page))::-webkit-scrollbar-thumb {
    border: 2px solid #000000;
    background: #FA080D;
  }
}

@media (max-width: 700px) {
  :where(body.site-map-page) .button {
    min-width: 0;
    flex: 1 1 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(> :where(body.site-map-page)) {
    scroll-behavior: auto;
  }

  :where(body.site-map-page),
  :where(body.site-map-page) *,
  :where(body.site-map-page) *::before,
  :where(body.site-map-page) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  :where(body.site-map-page) .reveal {
    opacity: 1;
    transform: none;
  }
}


.site-map-main {
  min-height: 100vh;
  background: #000000;
  color: #FFFFFF;
}

.site-map-directory {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) var(--gutter) clamp(4rem, 7vw, 7rem);
}

.site-map-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  scroll-margin-top: 12rem;
}

.site-map-column {
  min-width: 0;
}

.site-map-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.site-map-shortcuts a {
  display: inline-block;
  padding: .4rem 0;
  color: #FA080D;
  font: 500 .9rem/1.4 "IBM Plex Mono", monospace;
}

.site-map-columns {
  columns: 4 240px;
  column-gap: clamp(2rem, 4vw, 4.5rem);
}

.site-map-section {
  display: inline-block;
  width: 100%;
  margin: 0 0 2.25rem;
  break-inside: avoid;
  vertical-align: top;
}

.site-map-directory h2,
.site-map-directory h3 {
  margin: 0 0 .8rem;
  color: #FFFFFF;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.site-map-directory h2 {
  font-size: clamp(1.7rem, 2.1vw, 2.15rem);
}

.site-map-directory h3 {
  font-size: 1.45rem;
}

.site-map-directory a {
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .16s ease;
}

.site-map-directory a:hover {
  color: #FA080D;
  text-decoration-line: underline;
}

.site-map-directory a:focus-visible {
  color: #FFFFFF;
  outline: 1px solid #BC13FE;
  outline-offset: 4px;
  box-shadow: 0 0 12px rgba(188, 19, 254, .25);
}

.site-map-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-map-links li {
  margin: 0;
  padding: 0;
  break-inside: avoid;
}

.site-map-links a {
  display: inline-block;
  max-width: 100%;
  padding: .32rem 0;
  color: #F4F4F5;
  font: 400 1.05rem/1.45 "Barlow", Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}

.site-map-links .site-map-links {
  margin: .15rem 0 .55rem 1rem;
}

.site-map-collection {
  margin-top: clamp(2rem, 4vw, 4rem);
  scroll-margin-top: 12rem;
}

.site-map-collection > h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.site-map-category-columns {
  column-count: 3;
}

.site-map-category-columns .site-map-section {
  margin-bottom: 1.7rem;
}

.site-map-page .hero-title .accent {
  font-size: .48em;
  line-height: 1;
}

@media (max-width: 1000px) {
  .site-map-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .site-map-overview {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-map-shortcuts {
    gap: .5rem 1.25rem;
  }

  .site-map-columns {
    columns: 1;
  }

  .site-map-directory {
    padding-top: 2.25rem;
  }

  .site-map-section {
    margin-bottom: 2rem;
  }

  .site-map-links a {
    padding: .5rem 0;
    font-size: 1.0625rem;
  }

  .site-map-collection {
    margin-top: 1.5rem;
  }
}
