.guide-stages {
  position: relative;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 6px 0 2px;
}

.guide-stages a {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 6px clamp(12px, 3vw, 21px);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #f3dfce;
  font: 700 13px/1.2 system-ui, sans-serif;
  text-decoration: none;
}

.guide-stages a:hover { background: #5a4235; }
.guide-stages a[aria-current="page"] {
  border-color: #a37c65;
  background: #714332;
  color: #fff7e9;
}
.guide-stages a:focus-visible { outline: 2px solid #ffd396; outline-offset: 2px; }

.map-home > .guide-stages {
  padding: calc(4px + env(safe-area-inset-top)) 12px 2px;
  background: #292b29;
}
.map-home > .guide-stages + .map-header { padding-top: 6px; }

.before-guide > section { max-width: 900px; }
.before-guide > section > p { color: var(--muted); margin-block: 6px 18px; }
.before-guide .lead-title > p:last-child { color: var(--muted); margin-top: 8px; }
.before-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.before-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  min-height: 102px;
  padding: 15px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
}
.before-card > span { grid-row: span 2; color: var(--pop); font-size: 24px; }
.before-card > small { color: var(--muted); font-size: 13px; }
.before-card:hover { border-color: #e5a387; }

@media (max-width: 570px) {
  .before-actions { grid-template-columns: 1fr; }
  .before-card { min-height: 79px; }
}
