/* Category directory composition, using the vivid lime, violet and ink palette of the shared shell. */
body[data-helper-page] > main {
  width: 100%;
  margin: 0;
  color: #19151e;
  background: #f7f7f5;
  font-family: "Encode Sans Expanded", Arial, sans-serif;
}

body[data-helper-page] > main section {
  position: relative;
  box-sizing: border-box;
}

body[data-helper-page] > main h1,
body[data-helper-page] > main h2,
body[data-helper-page] > main h3,
body[data-helper-page] > main p,
body[data-helper-page] > main figure {
  margin-top: 0;
}

body[data-helper-page] > main h1,
body[data-helper-page] > main h2,
body[data-helper-page] > main h3 {
  letter-spacing: -.045em;
}

body[data-helper-page] > main p {
  line-height: 1.72;
}

body[data-helper-page] > main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-helper-page] > main figure {
  margin-bottom: 0;
}

.category-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: 650px;
  padding: clamp(4rem, 8vw, 8.5rem) clamp(1.5rem, 9.3vw, 11.25rem) 5.5rem;
  overflow: hidden;
  background: #a855f7;
  color: #fff;
}

.category-intro::after {
  position: absolute;
  right: -5rem;
  bottom: -9rem;
  width: clamp(17rem, 33vw, 35rem);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.category-intro__copy,
.category-intro__image,
.category-intro__index {
  position: relative;
  z-index: 1;
}

.category-kicker {
  margin-bottom: 1.15rem;
  color: #e6ff00;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.category-intro h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.35rem, 6vw, 7rem);
  font-weight: 800;
  line-height: .98;
  text-transform: uppercase;
}

.category-intro .category-lede {
  max-width: 680px;
  margin-bottom: 2rem;
  color: #f9f2ff;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.category-lede {
  color: #f9f2ff;
}

.category-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 2.3rem;
  padding: .85rem 1.25rem;
  border: 2px solid #19151e;
  background-color: #19151e;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.category-button:hover,
.category-button:focus-visible {
  transform: translateY(-3px);
  background-color: #322440;
}

.category-button span,
.category-outline-link span,
.category-text-link span {
  font-size: 1.25rem;
}

.category-intro__image {
  z-index: 0;
  width: 100%;
  aspect-ratio: 1.03;
  border: 12px solid #e6ff00;
  background: #19151e;
  transform: rotate(2deg);
}

.category-intro__image img {
  min-height: 100%;
}

.category-intro__image figcaption,
.category-detail__media figcaption {
  padding: .8rem 1rem;
  color: #19151e;
  background: #e6ff00;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.category-intro__index {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 9.3vw, 11.25rem);
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.category-intro__index span:first-child {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #e6ff00;
  border-radius: 50%;
  color: #e6ff00;
}

.category-matrix {
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.5rem, 9.3vw, 11.25rem);
  background: #f7f7f5;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-heading .category-kicker,
.category-detail--light .category-kicker,
.category-social__copy .category-kicker,
.category-guidance .category-kicker,
.category-next .category-kicker {
  color: #7532ac;
}

.section-heading h2,
.category-guidance h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.2vw, 4.5rem);
  line-height: 1.06;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: #5a5361;
}

.category-matrix__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-top: 7px solid var(--tile-accent, #e6ff00);
  background: #fff;
  box-shadow: 0 14px 34px rgb(32 23 40 / 7%);
}

.category-tile__number {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  margin-bottom: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--tile-accent, #e6ff00);
  color: #19151e;
  font-size: .72rem;
  font-weight: 800;
}

.category-tile h3 {
  margin: 2rem 0 .5rem;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  line-height: 1.2;
}

.category-tile p {
  margin-bottom: 0;
  color: #625a69;
  font-size: .9rem;
}

.category-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
  min-height: 550px;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.5rem, 12vw, 14rem);
}

.category-detail--dark {
  background: #19151e;
  color: #fff;
}

.category-detail--dark .category-kicker {
  color: #e6ff00;
}

.category-detail--light {
  background: #e6ff00;
  color: #19151e;
}

.category-detail--light .category-kicker {
  color: #633192;
}

.category-detail--lavender {
  background: #eadcf3;
  color: #19151e;
}

.category-detail--lavender .category-kicker {
  color: #6d2ba1;
}

.category-detail--orange {
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  background: #ef7f4d;
  color: #19151e;
}

.category-detail--orange .category-detail__body {
  grid-column: 2;
  grid-row: 1;
}

.category-detail--orange .category-detail__media {
  grid-column: 1;
  grid-row: 1;
}

.category-detail__body {
  max-width: 700px;
}

.category-detail__body h2,
.category-social__copy h2,
.category-next h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  line-height: 1.02;
}

.category-detail__body p:not(.category-kicker) {
  max-width: 690px;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.category-text-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: .75rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid #e6ff00;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.category-text-link:hover,
.category-text-link:focus-visible {
  color: #e6ff00;
}

.category-detail__media {
  position: relative;
  aspect-ratio: 1.05;
  border: 10px solid #e6ff00;
  background: #777;
  box-shadow: 22px 22px 0 rgb(230 255 0 / 18%);
}

.category-detail--light .category-detail__media {
  border-color: #19151e;
  box-shadow: 22px 22px 0 rgb(25 21 30 / 14%);
}

.category-detail--lavender .category-detail__media {
  border-color: #a855f7;
  box-shadow: 22px 22px 0 rgb(168 85 247 / 18%);
}

.category-detail--orange .category-detail__media {
  border-color: #19151e;
  box-shadow: 22px 22px 0 rgb(25 21 30 / 18%);
}

.category-detail__stamp {
  position: absolute;
  right: clamp(1.5rem, 6vw, 7rem);
  bottom: 2.5rem;
  color: rgb(255 255 255 / 33%);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .2em;
  text-align: right;
}

.category-detail__index {
  position: absolute;
  right: clamp(1.5rem, 9vw, 10rem);
  top: 2.25rem;
  padding: .45rem .75rem;
  border: 1px solid #19151e;
  color: #19151e;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.category-social {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 9rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 9.3vw, 11.25rem);
  background: #fff;
}

.category-social__visual {
  position: relative;
  min-height: 430px;
  background: #19151e;
}

.category-social__visual::after {
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: 0;
  border: 2px solid #a855f7;
  content: "";
  pointer-events: none;
}

.category-social__visual img {
  position: relative;
  z-index: 1;
}

.category-social__visual span {
  position: absolute;
  z-index: 2;
  right: -1rem;
  bottom: 1.25rem;
  padding: .85rem 1.1rem;
  background: #e6ff00;
  color: #19151e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.category-social__copy h2 {
  max-width: 650px;
}

.category-social__copy p:not(.category-kicker) {
  color: #5a5361;
}

.category-guidance {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 9.3vw, 11.25rem);
  background: #f1eaf7;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center > p:last-child {
  margin-inline: auto;
}

.category-guidance__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-guidance__steps article {
  min-height: 210px;
  padding: 1.5rem;
  border-bottom: 5px solid #a855f7;
  background: #fff;
}

.category-guidance__steps article > span {
  display: inline-grid;
  width: 2.2rem;
  aspect-ratio: 1;
  margin-bottom: 1.4rem;
  place-items: center;
  border-radius: 50%;
  background: #e6ff00;
  color: #19151e;
  font-size: .72rem;
  font-weight: 800;
}

.category-guidance__steps h3 {
  margin-bottom: .6rem;
  font-size: 1.3rem;
}

.category-guidance__steps p {
  margin-bottom: 0;
  color: #5a5361;
  font-size: .9rem;
}

.category-next {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 9.3vw, 11.25rem);
  overflow: hidden;
  background: #e6ff00;
  color: #19151e;
}

.category-next__copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.category-next__copy > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.category-next__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
}

.category-button--light {
  border-color: #19151e;
  background-color: #19151e;
  color: #fff;
}

.category-button--light:hover,
.category-button--light:focus-visible {
  background-color: #4a345a;
}

.category-outline-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: #19151e;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.category-next__orbit {
  position: absolute;
  right: 15%;
  bottom: -9rem;
  display: grid;
  width: 24rem;
  aspect-ratio: 1;
  place-items: start center;
  border: 1px solid rgb(25 21 30 / 18%);
  border-radius: 50%;
  color: rgb(25 21 30 / 22%);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .4em;
  padding-top: 3rem;
  pointer-events: none;
}

.category-button:focus-visible,
.category-text-link:focus-visible,
.category-outline-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .category-intro {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    padding-inline: clamp(2rem, 6vw, 4rem);
  }

  .category-matrix,
  .category-guidance,
  .category-social,
  .category-next {
    padding-inline: clamp(2rem, 6vw, 4rem);
  }

  .category-intro h1 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .category-matrix__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-detail {
    gap: 3rem;
    padding-inline: clamp(2rem, 7vw, 5rem);
  }

  .category-detail__media {
    aspect-ratio: .9;
  }

  .category-social {
    gap: 3rem;
  }

  .category-social__visual {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  body[data-helper-page] > main p {
    line-height: 1.68;
  }

  .category-intro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding: 3.5rem 1.25rem 5.5rem;
  }

  .category-intro h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .category-intro__image {
    width: calc(100% - 1.25rem);
    aspect-ratio: 1.15;
    margin: .5rem auto 1rem;
    border-width: 7px;
  }

  .category-intro__index {
    bottom: 1.3rem;
    left: 1.25rem;
  }

  .category-matrix,
  .category-guidance {
    padding: 3.75rem 1.25rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2,
  .category-guidance h2 {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .category-matrix__grid,
  .category-guidance__steps {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 190px;
  }

  .category-detail,
  .category-detail--orange {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 0;
    padding: 4rem 1.25rem;
  }

  .category-detail--orange .category-detail__body,
  .category-detail--orange .category-detail__media {
    grid-column: auto;
    grid-row: auto;
  }

  .category-detail__body h2,
  .category-social__copy h2,
  .category-next h2 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .category-detail__media {
    width: calc(100% - 1rem);
    aspect-ratio: 1.15;
    border-width: 7px;
    box-shadow: 10px 10px 0 rgb(25 21 30 / 15%);
  }

  .category-detail__stamp {
    right: 1.25rem;
    bottom: 1.25rem;
    font-size: .8rem;
  }

  .category-detail__index {
    top: 1rem;
    right: 1.25rem;
  }

  .category-social {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.75rem 1.25rem;
  }

  .category-social__visual {
    min-height: 280px;
  }

  .category-social__visual span {
    right: -.5rem;
  }

  .category-guidance__steps article {
    min-height: 0;
  }

  .category-next {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding: 4rem 1.25rem;
  }

  .category-next__actions {
    width: 100%;
  }

  .category-button {
    max-width: 100%;
  }

  .category-next__orbit {
    right: -9rem;
    bottom: -10rem;
    width: 19rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-button {
    transition: none;
  }
}

/* Keep the accepted navigation opaque and in flow above the category hero. */
body[data-helper-page] > header[data-homepage-region] {
  position: relative;
  z-index: 2;
  min-height: 162px;
  background-color: #e6ff00;
}

body[data-helper-page] > header[data-homepage-region] + main {
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  body[data-helper-page] > header[data-homepage-region] {
    min-height: 112px;
  }
}

@media (max-width: 600px) {
  body[data-helper-page] > header[data-homepage-region] {
    min-height: 82px;
  }
}
