/* Guides spine: carry the homepage field-guide palette into the archive. */
.ss-guides-hub {
  --ss-coral: #6559aa;
  --ss-coral-pale: #eeecf8;
  background: #f4f6fb;
}

.ss-guides-hub .hero {
  padding: 42px 0 38px;
  border-bottom: 1px solid #d9deee;
  background: #f9faff;
}

.ss-guides-hub .hero-grid {
  align-items: center;
}

.ss-guides-hub .hero h1 {
  max-width: 650px;
  margin: 0 0 14px;
  font-size: clamp(2.75rem, 4.65vw, 4.7rem);
  line-height: .99;
  letter-spacing: -.065em;
}

.ss-guides-hub .hero .eyebrow {
  margin: 0 0 14px;
}

.ss-guides-hub .hero-card,
.ss-guides-hub .panel {
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(23 35 33 / 5%);
}

.ss-guides-hub .hero-card {
  border-top-color: #6559aa;
}

.ss-guides-hub .hero-card h2,
.ss-guides-hub .panel h2,
.ss-guides-hub .panel h3 {
  letter-spacing: -.045em;
}

.ss-guides-hub .section {
  padding: 42px 0;
}

.ss-guides-hub .section h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.ss-guides-hub #problem-routes {
  background: #fff;
}

.ss-guides-hub #problem-routes > .shell > p {
  max-width: 800px;
  margin: 0;
  color: #586864;
  font-size: 1.05rem;
}

.ss-guides-hub #problem-routes > .card-grid,
.ss-guides-hub .guide-list {
  width: min(calc(100% - 64px), var(--ss-max));
  margin: 22px auto 0;
}

.ss-guides-hub .card,
.ss-guides-hub .guide-card {
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(23 35 33 / 5%);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ss-guides-hub #problem-routes .decision-route {
  min-height: 210px;
  border-top-color: #6559aa;
}

.ss-guides-hub .card:hover,
.ss-guides-hub .card:focus-visible,
.ss-guides-hub .guide-card:hover,
.ss-guides-hub .guide-card:focus-visible {
  border-color: #6559aa;
  background: #eeecf8;
  box-shadow: 0 9px 22px rgb(23 35 33 / 11%);
  transform: translateY(-2px);
}

.ss-guides-hub .decision-route-link,
.ss-guides-hub .checklist a,
.ss-guides-hub .source-list a {
  color: #51458f;
}

.ss-guides-hub #osrs-tablet-guides,
.ss-guides-hub main > .section:last-of-type {
  background: #f5f7fc;
}

.ss-guides-hub #osrs-tablet-guides .guide-list {
  gap: 8px;
}

.ss-guides-hub #osrs-tablet-guides .guide-card,
.ss-guides-hub main > .section:last-of-type .guide-card {
  min-height: 0;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d7dfdc;
  border-left: 4px solid #6559aa;
}

.ss-guides-hub .guide-card:first-child,
.ss-guides-hub .guide-card:last-child {
  border-radius: 6px;
}

.ss-guides-hub .guide-card .tag {
  border-radius: 3px;
  background: #eeecf8;
  color: #6559aa;
}

.ss-guides-hub .button {
  border-radius: 5px;
}

.ss-guides-hub .guide-method {
  border-top: 1px solid #d9deee;
  background: #e9edfa;
}

.ss-guides-hub #game-guide-groups {
  background: #fff;
}

.ss-guides-hub #game-guide-groups .card {
  border-top-color: #6559aa;
}

@media (max-width: 980px) {
  .ss-guides-hub #problem-routes > .card-grid,
  .ss-guides-hub .guide-list {
    width: min(calc(100% - 44px), var(--ss-max));
  }
}

@media (max-width: 800px) {
  .ss-guides-hub .hero {
    padding: 30px 0 26px;
  }

  .ss-guides-hub .hero h1 {
    font-size: clamp(2.55rem, 10.5vw, 3.5rem);
  }

  .ss-guides-hub .section {
    padding: 34px 0;
  }

  .ss-guides-hub #problem-routes > .card-grid,
  .ss-guides-hub .guide-list {
    width: min(calc(100% - 34px), var(--ss-max));
  }

  .ss-guides-hub #osrs-tablet-guides .guide-card,
  .ss-guides-hub main > .section:last-of-type .guide-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-guides-hub .card,
  .ss-guides-hub .guide-card {
    transition: none;
  }

  .ss-guides-hub .card:hover,
  .ss-guides-hub .card:focus-visible,
  .ss-guides-hub .guide-card:hover,
  .ss-guides-hub .guide-card:focus-visible {
    transform: none;
  }
}
