body:is([data-page="guide"], [data-page="soundtrack"]) .site-intro-copy {
  line-height: 1.65;
  text-align: left;
  overflow-wrap: anywhere;
}

@media (min-width: 851px) {
  body:is([data-page="guide"], [data-page="soundtrack"]) .page-affiliate-note {
    display: none;
  }
}

.guide-content {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.guide-content h2,
.guide-content h3 {
  color: var(--accent);
  line-height: 1.35;
}

.guide-content h3 {
  margin: 1.35rem 0 .45rem;
  font-size: 1.1rem;
}

.guide-content p,
.guide-content ul,
.guide-content ol {
  margin-block: .55rem 1rem;
}

.guide-content > :last-child {
  margin-bottom: 0;
}

.guide-content[id],
.guide-content [id] {
  scroll-margin-top: 1rem;
}

.guide-content a {
  color: var(--accent);
  text-underline-offset: .18em;
}

.guide-content a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.guide-toc ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: .25rem .9rem;
  padding: 0;
  list-style: none;
}

.guide-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.guide-content .character-control .character-search-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 4px;
  clip: auto;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
}

.guide-steps {
  padding-inline-start: 1.55rem;
}

.guide-steps li {
  padding-inline-start: .25rem;
  margin-block: .65rem;
}

.guide-entries,
.guide-facts {
  margin: .5rem 0 0;
}

.guide-entries > div,
.guide-facts > div {
  padding-block: .65rem;
  border-bottom: 1px solid var(--rule-line);
}

.guide-entries > :last-child,
.guide-facts > :last-child {
  border-bottom: 0;
}

.guide-entries dt,
.guide-facts dt {
  color: var(--accent);
  font-weight: 700;
}

.guide-entries dd,
.guide-facts dd {
  margin: 0;
}

.guide-facts > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: .125rem .75rem;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: .6rem .65rem;
  border-bottom: 1px solid var(--rule-line);
  text-align: start;
  vertical-align: top;
}

.guide-table thead th {
  background: var(--bg-color);
  color: var(--accent);
}

.guide-table tbody tr:last-child > * {
  border-bottom: 0;
}

.guide-table .guide-number {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .guide-facts > div {
    grid-template-columns: 1fr;
  }

  .guide-table th,
  .guide-table td {
    padding-inline: .4rem;
  }
}
