.guide-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: var(--color-text);
}

.guide-page__header {
  max-width: 720px;
  margin: 0 auto;
}

.guide-page__hero-image {
  display: block;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1717 / 916;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.guide-page__toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.guide-page__toc a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.guide-page__toc a:hover {
  color: var(--color-text-on-primary);
}

.guide-page__section {
  width: 100%;
}

.guide-page__section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
}

.guide-page__section h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.guide-page__section p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.guide-page__section a:not(.btn):not(.memory-games-index__card) {
  color: var(--color-text);
  font-weight: 650;
  text-decoration: none;
  background-image: linear-gradient(#f5d78e, #f5d78e);
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
}

.guide-page__section a:not(.btn):not(.memory-games-index__card):hover {
  background-size: 100% 0.55em;
}

.guide-page__section a:not(.btn):not(.memory-games-index__card):focus-visible {
  border-radius: 0.2rem;
  outline: 2px solid var(--color-primary-hover);
  outline-offset: 0.12rem;
}

.guide-page__section-image {
  display: block;
  width: 100%;
  aspect-ratio: 1774 / 887;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.guide-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.guide-page__item,
.guide-page__callout {
  border: 1px solid #eadbc8;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.25rem rgba(45, 32, 6, 0.06);
  padding: 1rem;
}

.guide-page__item {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.guide-page__item::before {
  content: "";
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: #f7e6b8;
  color: var(--color-text);
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(45, 32, 6, 0.08);
}

.guide-page__grid--benefits .guide-page__item:nth-child(1) {
  --guide-item-accent: #f0c95e;
}

.guide-page__grid--benefits .guide-page__item:nth-child(1)::before {
  content: "🧠";
}

.guide-page__grid--benefits .guide-page__item:nth-child(2) {
  --guide-item-accent: #75b8b2;
}

.guide-page__grid--benefits .guide-page__item:nth-child(2)::before {
  content: "👀";
}

.guide-page__grid--benefits .guide-page__item:nth-child(3) {
  --guide-item-accent: #ef9c72;
}

.guide-page__grid--benefits .guide-page__item:nth-child(3)::before {
  content: "🧩";
}

.guide-page__grid--benefits .guide-page__item:nth-child(4) {
  --guide-item-accent: #98bd6e;
}

.guide-page__grid--benefits .guide-page__item:nth-child(4)::before {
  content: "★";
}

.guide-page__grid--ways .guide-page__item:nth-child(1) {
  --guide-item-accent: #75b8b2;
}

.guide-page__grid--ways .guide-page__item:nth-child(1)::before {
  content: "1";
}

.guide-page__grid--ways .guide-page__item:nth-child(2) {
  --guide-item-accent: #f0c95e;
}

.guide-page__grid--ways .guide-page__item:nth-child(2)::before {
  content: "2";
}

.guide-page__grid--ways .guide-page__item:nth-child(3) {
  --guide-item-accent: #98bd6e;
}

.guide-page__grid--ways .guide-page__item:nth-child(3)::before {
  content: "3";
}

.guide-page__grid--ways .guide-page__item:nth-child(4) {
  --guide-item-accent: #ef9c72;
}

.guide-page__grid--ways .guide-page__item:nth-child(4)::before {
  content: "4";
}

.guide-page__item p,
.guide-page__callout p {
  margin-bottom: 0;
}

.guide-page__item h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.guide-page__item p {
  color: #4d3b18;
  font-size: 0.98rem;
  line-height: 1.55;
}

.guide-page__list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.guide-page__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.guide-page__callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.guide-page__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .guide-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-page__split {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.75fr);
    align-items: start;
  }
}
