.efootball-guide .guide-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0;
}

.efootball-guide .guide-contents a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.efootball-guide .site-intro-copy,
.efootball-guide .guide-directory .guide-alias {
  color: var(--text-main);
}

.efootball-guide .panel h2,
.efootball-guide .guide-chapter .guide-section h3,
.efootball-guide .guide-directory-heading h2,
.efootball-guide .guide-directory .guide-section h3,
.efootball-guide .guide-directory .guide-search-label,
.efootball-guide .guide-directory .character-filter-control span,
.efootball-guide .guide-directory .character-sort-button,
.efootball-guide .guide-directory .character-mobile-sort-button,
.efootball-guide .guide-directory .character-card-value,
.efootball-guide .guide-section a,
.efootball-guide #overview dd a {
  color: var(--accent);
}

.efootball-guide .guide-section a,
.efootball-guide #overview dd a { text-underline-offset: 2px; }

.efootball-guide .guide-release-platform {
  display: inline-block;
}

.efootball-guide .guide-directory .guide-search-label {
  margin-block-end: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.efootball-guide .guide-section h3 {
  margin: 1.15em 0 .5em;
}

.efootball-guide .guide-chapter .guide-section h3,
.efootball-guide .guide-directory .guide-section h3 {
  margin: 0 0 .5em;
}

.efootball-guide .guide-directory-heading h2 {
  margin: 1rem 0 .65rem;
}

.efootball-guide .guide-pairs {
  margin: .75rem 0;
}

.efootball-guide .guide-pairs > div {
  display: grid;
  grid-template-columns: minmax(9.5rem, 30%) minmax(0, 1fr);
  gap: .1rem .9rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule-line);
}

.efootball-guide .guide-pairs dt { font-weight: 700; }
.efootball-guide .guide-pairs dd { margin: 0; }

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

.efootball-guide .guide-steps li + li { margin-top: .5rem; }

.efootball-guide .guide-table {
  overflow-x: auto;
  margin: .75rem 0;
}

.efootball-guide .guide-table .character-table {
  min-width: 0;
}

.efootball-guide .guide-table .character-table th,
.efootball-guide .guide-table .character-table td {
  width: 32%;
  overflow-wrap: anywhere;
}

.efootball-guide .guide-table .character-table th:first-child { width: 36%; }

.efootball-guide .guide-table thead th { padding: 7px 10px; }

.efootball-guide .guide-table tbody th {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--rule-line);
}

.efootball-guide .guide-directory .character-table th:first-child,
.efootball-guide .guide-directory .character-table td:first-child { width: 37%; }

.efootball-guide .guide-directory .guide-directory--effect th:nth-child(2),
.efootball-guide .guide-directory .guide-directory--effect td:nth-child(2) { width: 23%; }

.efootball-guide .guide-directory .guide-directory--effect th:first-child,
.efootball-guide .guide-directory .guide-directory--effect td:first-child { width: 30%; }

.efootball-guide .guide-directory .guide-directory--effect th:nth-child(3),
.efootball-guide .guide-directory .guide-directory--effect td:nth-child(3) { width: 47%; }

.efootball-guide .guide-directory .guide-alias {
  display: block;
  margin-top: .15rem;
  font-size: .8rem;
  font-weight: 400;
}

.efootball-guide .guide-directory .character-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  padding: 9px 10px;
  gap: .25rem .65rem;
}

.efootball-guide .guide-directory .character-card-summary::after { content: none; }
.efootball-guide .guide-directory .character-card-name-cell,
.efootball-guide .guide-directory .character-card-value { overflow-wrap: anywhere; }
.efootball-guide .guide-directory .character-card-name-cell { min-width: 0; }

.efootball-guide .guide-directory .guide-card-detail {
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}

.efootball-guide .guide-directory .character-card-value {
  display: block;
  text-align: start;
}
.efootball-guide .guide-directory .character-mobile-sort-button { min-height: 44px; }
.efootball-guide .guide-directory .character-filter-select { min-height: 44px; }

.efootball-guide .guide-directory [data-static-empty] { color: var(--text-main); }

@media (max-width: 600px) {
  .efootball-guide .guide-pairs > div { grid-template-columns: minmax(0, 1fr); }
  .efootball-guide #overview .character-detail-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .efootball-guide .guide-table .character-table th,
  .efootball-guide .guide-table .character-table td { padding-inline: 6px; }
}
