.guide-toc,
.guide-related,
.guide-section {
  margin-block: 1rem;
}

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

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

:is(.guide-toc, .guide-related, .guide-section) a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

.guide-section :is(p, li, dd) {
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.guide-section :is(ol, ul) {
  padding-inline-start: 1.45em;
}

.guide-section li + li {
  margin-top: 0.35rem;
}

.guide-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem 1.2rem;
}

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

.guide-comparison dd {
  margin: 0.3rem 0 0;
}

.guide-facts div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 0.5em;
}

.guide-facts dt {
  font-weight: 700;
}

.guide-facts dd {
  margin: 0;
}

.character-control--search {
  gap: 4px;
}

.character-control--search > label {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-section :is(h2, h3)[id],
.guide-section[id],
.guide-list[id] {
  scroll-margin-top: 1rem;
}

.guide-list .character-table th:nth-child(1) { width: 28%; }
.guide-list .character-table th:nth-child(2) { width: 22%; }
.guide-list .character-table th:nth-child(3) { width: 50%; }

.guide-list .character-table :is(th, td),
.guide-list .character-card {
  overflow-wrap: anywhere;
}

.guide-list .character-card-summary,
.guide-list .character-mobile-list-head {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0.4rem;
}

.guide-list .character-card-summary {
  cursor: default;
}

.guide-list .character-card-summary::after {
  content: none;
}

.guide-list .character-card :is(.character-name-text, .character-name-static) {
  word-break: normal;
  line-break: strict;
}

.guide-list .guide-value,
.guide-list .guide-detail {
  line-height: 1.5;
}

.guide-list .guide-detail {
  grid-template-columns: minmax(0, 1fr);
}

.guide-list .guide-value {
  margin: 0.15rem 0 0.5rem;
  padding-inline: 0.6rem;
}

.guide-list .guide-value .field-label {
  margin-right: 0.25em;
  font-size: 0.82em;
  font-weight: 600;
}

.guide-list .guide-detail > p {
  margin: 0;
}

.guide-list :is(button, select, input) {
  min-height: 44px;
}

.guide-list [data-static-reset] {
  align-self: end;
  justify-self: start;
  padding-inline: 0.75rem;
}

.guide-list :is(button, select, input):focus-visible,
:is(.guide-toc, .guide-section, .guide-related) a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
