.guides-page {
  overflow: hidden;
}

.guides-page p,
.guides-page h1,
.guides-page h2,
.guides-page h3 {
  overflow-wrap: anywhere;
}

.guides-hero {
  position: relative;
  min-height: 34rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--color-ash-canvas);
}

.guides-hero__image,
.guides-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guides-hero__image {
  object-fit: cover;
  object-position: right center;
}

.guides-hero::after {
  background: linear-gradient(90deg, rgba(11, 12, 16, .96) 0%, rgba(11, 12, 16, .86) 39%, rgba(11, 12, 16, .42) 66%, rgba(11, 12, 16, .18) 100%);
  content: "";
}

.guides-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.guides-hero__content {
  display: flex;
  width: min(100%, 45rem);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.guides-hero__content .eyebrow,
.guides-hero__content h1,
.guides-hero__content p {
  margin: 0;
}

.guides-hero__content h1 {
  max-width: 19ch;
}

.guides-hero__content .lead {
  max-width: 60ch;
}

.guides-hero__actions,
.guides-cta__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.guides-hero__actions > *,
.guides-cta__actions > * {
  min-width: 0;
}

.guides-section-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.guides-section-intro > * {
  min-width: 0;
  margin: 0;
}

.guides-start__intro {
  max-width: 68ch;
}

.guides-start__grid,
.guides-map__grid,
.guides-index__grid,
.guides-crosslinks__grid {
  display: grid;
  min-width: 0;
  gap: var(--space-5);
}

.guides-start__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guides-start__grid > *,
.guides-map__grid > *,
.guides-index__grid > *,
.guides-crosslinks__grid > * {
  min-width: 0;
}

.guides-path-card,
.guides-topic-card,
.guides-index-card,
.guides-cross-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  gap: var(--space-3);
  border: var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  background: var(--color-basalt-panel);
  box-shadow: inset 0 1px 0 rgba(226, 217, 243, .045);
}

.guides-path-card::before,
.guides-topic-card::before,
.guides-index-card::before,
.guides-cross-card::before {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--color-rune-outline);
  content: "";
}

.guides-path-card > *,
.guides-topic-card > *,
.guides-index-card > *,
.guides-cross-card > * {
  min-width: 0;
  margin: 0;
}

.guides-path-card a,
.guides-topic-card a,
.guides-index-card a,
.guides-cross-card a {
  margin-top: auto;
  min-height: 2.75rem;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
}

.guides-path-card:hover,
.guides-topic-card:hover,
.guides-index-card:hover,
.guides-cross-card:hover {
  border-color: rgba(0, 240, 255, .58);
}

.guides-path-card__number,
.guides-topic-card > span:first-child {
  color: var(--color-relic-gold);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.guides-featured {
  background: rgba(17, 14, 21, .74);
}

.guides-featured__intro {
  max-width: 66ch;
}

.guides-featured__layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
  gap: var(--space-5);
}

.guides-featured__layout > * {
  min-width: 0;
}

.guides-featured__articles {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-5);
}

.guides-featured__articles > * {
  min-width: 0;
}

.guides-editorial-card {
  overflow: hidden;
  border: var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--color-basalt-panel);
  box-shadow: inset 0 1px 0 rgba(226, 217, 243, .045);
}

.guides-editorial-card img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.guides-editorial-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.guides-editorial-card__content > * {
  min-width: 0;
  margin: 0;
}

.guides-editorial-card__content p {
  max-width: 60ch;
}

.guides-editorial-card__content a {
  width: fit-content;
  max-width: 100%;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.guides-quick-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.guides-quick-rail > * {
  min-width: 0;
}

.guides-quick-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  border: var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  background: var(--color-basalt-panel);
  text-decoration: none;
}

.guides-quick-link strong {
  color: var(--color-arcane-text);
  font-family: var(--font-heading);
  line-height: 1.3;
}

.guides-quick-link > span:last-child {
  color: var(--color-muted-text);
  font-size: var(--text-small);
  line-height: 1.5;
}

.guides-quick-link:hover {
  border-color: var(--color-spell-cyan);
}

.guides-quick-rail__notice {
  margin: 0;
}

.guides-map__intro {
  max-width: 65ch;
}

.guides-map__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guides-topic-card--cyan::before {
  background: var(--color-spell-cyan);
}

.guides-topic-card--gold::before {
  background: var(--color-relic-gold);
}

.guides-topic-card--boss::before {
  background: var(--color-boss-red);
}

.guides-topic-card--cyan > span:first-child {
  color: var(--color-spell-cyan);
}

.guides-topic-card--gold > span:first-child {
  color: var(--color-relic-gold);
}

.guides-topic-card--boss > span:first-child {
  color: var(--color-boss-red);
}

.guides-index {
  background: rgba(17, 14, 21, .74);
}

.guides-index__heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 68ch;
  margin-bottom: var(--space-5);
}

.guides-index__heading > * {
  min-width: 0;
  margin: 0;
}

.guides-index__count {
  color: var(--color-relic-gold);
  font-size: var(--text-small);
  font-weight: 700;
}

.guides-filter-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  border-top: var(--border-default);
  border-bottom: var(--border-default);
  padding-block: var(--space-4);
}

.guides-filter-panel__label {
  color: var(--color-muted-text);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guides-filter-panel__buttons {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.guides-filter-panel__buttons > * {
  min-width: 0;
}

.guides-filter {
  min-height: 2.75rem;
  border: var(--border-default);
  border-radius: var(--radius-pill);
  padding: .5rem .75rem;
  background: var(--color-basalt-panel);
  color: var(--color-muted-text);
  font-size: var(--text-small);
  font-weight: 700;
}

.guides-filter:hover,
.guides-filter.is-active {
  border-color: var(--color-spell-cyan);
  background: rgba(0, 240, 255, .08);
  color: var(--color-arcane-text);
}

.guides-index__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guides-index__more {
  display: flex;
  min-width: 0;
  justify-content: center;
  margin-top: var(--space-5);
}

.guides-index__more > * {
  min-width: 0;
}

.guides-index__empty {
  margin: var(--space-5) 0 0;
  color: var(--color-muted-text);
}

.guides-reset-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-spell-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, .42);
  text-underline-offset: .18em;
}

.guides-format__intro {
  max-width: 64ch;
}

.guides-format__panel {
  width: min(100%, 65rem);
  margin-inline: auto;
  border: var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--color-basalt-panel);
  overflow: hidden;
}

.guides-format__head,
.guides-format-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: var(--space-3);
  padding: var(--space-4);
}

.guides-format__head > *,
.guides-format-row > * {
  min-width: 0;
}

.guides-format__head {
  border-bottom: var(--border-default);
  color: var(--color-muted-text);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guides-format-row + .guides-format-row {
  border-top: 1px solid rgba(61, 50, 72, .85);
}

.guides-format-row h3,
.guides-format-row p {
  margin: 0;
}

.guides-format-row > div {
  min-width: 0;
}

.guides-format__label {
  display: none;
}

.guides-faq {
  background: rgba(17, 14, 21, .82);
}

.guides-faq__intro {
  max-width: 62ch;
}

.guides-accordion {
  display: flex;
  width: min(100%, 50rem);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-inline: auto;
}

.guides-accordion > * {
  min-width: 0;
}

.guides-accordion__item {
  border: var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--color-basalt-panel);
}

.guides-accordion__item h3 {
  margin: 0;
}

.guides-accordion__item button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 0;
  padding: var(--space-4);
  background: transparent;
  color: var(--color-arcane-text);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.guides-accordion__item button > span {
  flex: 0 0 auto;
  color: var(--color-spell-cyan);
  font-family: var(--font-body);
  transition: transform var(--transition-base);
}

.guides-accordion__item button[aria-expanded="true"] {
  border-bottom: 1px solid var(--color-spell-cyan);
}

.guides-accordion__item button[aria-expanded="true"] > span {
  transform: rotate(45deg);
}

.guides-accordion__panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
}

.guides-accordion__panel > * {
  min-width: 0;
  margin: 0;
}

.guides-crosslinks__intro {
  max-width: 62ch;
}

.guides-crosslinks__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guides-cross-card > .tag {
  width: fit-content;
}

.guides-cross-card--cyan::before {
  background: var(--color-spell-cyan);
}

.guides-cross-card--gold::before {
  background: var(--color-relic-gold);
}

.guides-cross-card--boss::before {
  background: var(--color-boss-red);
}

.guides-cta__panel {
  display: flex;
  width: min(100%, 47.5rem);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-inline: auto;
  border: var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-7);
  background: var(--color-basalt-raised);
  box-shadow: inset 0 1px 0 rgba(226, 217, 243, .06), var(--shadow-raised), inset 0 -2px 0 rgba(255, 42, 75, .35);
  text-align: center;
}

.guides-cta__panel > * {
  min-width: 0;
  margin: 0;
}

.guides-cta__panel p {
  max-width: 54ch;
}

.guides-cta__actions {
  justify-content: center;
}

@media (max-width: 61.25rem) {
  .guides-index__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 56.25rem) {
  .guides-hero {
    min-height: 28.75rem;
  }

  .guides-hero::after {
    background: linear-gradient(180deg, rgba(11, 12, 16, .9) 0%, rgba(11, 12, 16, .74) 58%, rgba(11, 12, 16, .78) 100%);
  }

  .guides-hero__content {
    width: 100%;
    max-width: none;
  }

  .guides-start__grid,
  .guides-map__grid,
  .guides-crosslinks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guides-featured__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guides-format__panel {
    width: 100%;
  }
}

@media (max-width: 51.25rem) {
  .guides-format__head {
    display: none;
  }

  .guides-format-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-5);
  }

  .guides-format__label {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--color-muted-text);
    font-size: var(--text-meta);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

@media (max-width: 45rem) {
  .guides-hero {
    min-height: 28.75rem;
  }

  .guides-hero__image {
    object-position: 70% center;
  }

  .guides-hero__actions,
  .guides-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .guides-hero__actions > *,
  .guides-cta__actions > * {
    width: 100%;
  }

  .guides-start__grid,
  .guides-map__grid,
  .guides-index__grid,
  .guides-crosslinks__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guides-path-card,
  .guides-topic-card,
  .guides-index-card,
  .guides-cross-card,
  .guides-editorial-card__content {
    padding: var(--space-4);
  }

  .guides-filter-panel__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guides-filter {
    width: 100%;
  }

  .guides-index__more,
  .guides-index__more > * {
    width: 100%;
  }

  .guides-accordion {
    width: 100%;
  }

  .guides-accordion__item button {
    min-height: 3.25rem;
    padding: var(--space-4);
    font-size: 1.2rem;
  }

  .guides-cta__panel {
    width: 100%;
    padding: var(--space-5);
  }
}

@media (max-width: 24.375rem) {
  .guides-filter-panel__buttons {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guides-accordion__item button > span {
    transition: none;
  }
}
