.ai-chat-guide main [id] {
  scroll-margin-top: 140px;
}

.ai-chat-guide .guide-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.ai-chat-guide .guide-measure-label {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.15em 0.65em;
  border-radius: 6px;
  background: var(--accent-strong);
  color: #0b1422;
  line-height: 1.6;
  white-space: nowrap;
}

.ai-chat-guide .guide-note,
.ai-chat-guide .guide-toc,
.ai-chat-guide .table-wrap {
  margin-top: 24px;
}

.ai-chat-guide .guide-toc ol {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  padding-left: 1.5em;
}

.ai-chat-guide .guide-toc a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ai-chat-guide .compare-table caption {
  padding-bottom: 14px;
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.ai-chat-guide .guide-figure {
  margin: 0;
}

.ai-chat-guide .guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.ai-chat-guide .guide-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.ai-chat-guide .footer__brand {
  grid-template-columns: minmax(0, 1fr);
}

.ai-chat-guide a:focus-visible,
.ai-chat-guide button:focus-visible,
.ai-chat-guide .table-wrap:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .ai-chat-guide .compare-table caption {
    display: block;
  }
}
