/* Home Problems Guide — visible one-page section navigation pilot */
.guide-contents {
  margin: 0 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border: 1px solid #bfd2c8;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 9rem;
}
.guide-contents h2 {
  margin: 0 0 .25rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}
.guide-contents > p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.guide-contents-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 0;
  padding: 0;
}
.guide-contents-list li { margin: 0; }
.guide-contents-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .72rem .82rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--navy-2);
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.guide-contents-list a:hover,
.guide-contents-list a:focus-visible {
  border-color: #9fbeae;
  background: #fff;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.guide-contents-list a::before {
  content: '›';
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
}
.guide-contents-list .guide-contents-featured a {
  background: #eaf4ef;
  border-color: #acd0bd;
  color: var(--green-2);
}
.guide-section-anchor,
.article-content > h2[id],
.article-content > section[id] {
  scroll-margin-top: 9rem;
}
.section-back {
  margin: 1.15rem 0 2rem;
  padding-top: .2rem;
  border-top: 1px solid rgba(216, 224, 220, .7);
}
.section-back a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-2);
  font-weight: 800;
  text-decoration: none;
}
.section-back a:hover,
.section-back a:focus-visible {
  border-color: #9fbeae;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.guide-featured-first { margin-bottom: 0; }
@media (max-width: 720px) {
  .guide-contents-list { grid-template-columns: 1fr; }
  .guide-contents { scroll-margin-top: 8rem; }
  .guide-section-anchor,
  .article-content > h2[id],
  .article-content > section[id] { scroll-margin-top: 8rem; }
  .section-back a { width: 100%; }
}
