[data-view="guide"] {
  animation: none;
}

.user-guide {
  width: min(100%, 660px);
  margin: 0 auto;
  color: #25393c;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.user-guide .page-heading {
  margin-bottom: 24px;
}

.guide-index ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-index button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b6c9d0;
  border-radius: 10px;
  background: #f5faff;
  color: #19485d;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}

@media (hover: hover) {
  .guide-index button:hover {
    border-color: #7fa1b2;
    background: #e9f4fa;
  }
}

.guide-index button:active {
  background: #dfeef7;
}

.guide-section {
  margin-top: 20px;
  padding: clamp(16px, 3.5vw, 26px);
  border: 1px solid #cbd8db;
  border-radius: 16px;
  background: #fff;
}

.guide-section h2 {
  margin: 0 0 12px;
  color: #183137;
  font-size: clamp(21px, 4vw, 25px);
  line-height: 1.3;
  scroll-margin-top: 96px;
}

.guide-section h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.guide-section p {
  margin: 0;
}

.guide-section ol,
.guide-section ul {
  margin: 0;
  padding-inline-start: 1.35em;
}

.guide-section li + li,
.guide-resources > div + div {
  margin-top: 12px;
}

.guide-section a {
  color: #1a5873;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.guide-section .guide-note {
  margin-top: 16px;
  padding: 10px 12px;
  border-inline-start: 3px solid #9bbfd0;
  border-radius: 6px;
  background: #edf5f9;
}

.user-guide :focus-visible {
  outline: 2px solid #2b6380;
  outline-offset: 3px;
}

.home-study-links .home-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #143d7b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .24em;
}

@media (max-width: 520px) {
  .guide-index ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-index button { transition: none; }
}
