.reanimal-guide .layout-shell {
  max-width: 1280px;
  margin-top: 0;
}

.reanimal-guide .main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.reanimal-guide .site-intro {
  margin-top: 0;
  padding-top: 0;
}

.reanimal-guide .site-intro .subpage-title {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: left;
}

.reanimal-guide .site-intro-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 8px;
}

.reanimal-guide .site-intro-top .subpage-back-link {
  margin: 0;
}

.reanimal-guide .site-intro-top .page-updated-at {
  position: static;
  flex: 0 0 auto;
  text-align: right;
}

.guide-section {
  margin-block: 12px;
  min-width: 0;
  line-height: 1.65;
}

.guide-section :is(h2, h3, h4) {
  margin: 0 0 .4rem;
  color: var(--accent);
  line-height: 1.4;
}

.guide-section h2 { font-size: 1.2rem; }
.guide-section h3 { font-size: 1.06rem; }
.guide-section h4 { font-size: 1rem; }
.guide-section p { margin: 0 0 .7rem; }
.guide-section p:last-child { margin-bottom: 0; }

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

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

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

.guide-toc ul,
.guide-chapter-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-toc a,
.guide-chapter-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.guide-chapter-nav,
.guide-entry {
  margin-block: .8rem;
  padding: .9rem 1rem;
  background: #f4f7fa;
  border: 1px solid var(--brand-light);
  border-radius: 12px;
}

.guide-chapter-nav > div + div { margin-top: .55rem; }
.guide-chapter-nav .guide-nav-label { margin: 0; font-weight: 700; }
.guide-section .guide-group-title { margin-top: 1.35rem; }
.guide-section .guide-meta { color: var(--text-muted); font-size: .9rem; }

.guide-steps { margin: .4rem 0 0; padding-inline-start: 1.4rem; }
.guide-steps li + li { margin-top: .5rem; }
.guide-steps + p { margin-top: .7rem; }

.guide-threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: .6rem;
}

.guide-threat-grid .guide-entry { margin: 0; }
.guide-copy + .guide-copy { margin-top: 1.4rem; }
.guide-copy h3:not(:first-child) { margin-top: .85rem; }

.guide-facts { margin: .75rem 0 1rem; }
.guide-facts > div {
  display: grid;
  grid-template-columns: minmax(100px, 23%) minmax(0, 1fr);
  gap: .25rem .9rem;
  padding-block: .5rem;
  border-top: 1px solid var(--brand-light);
}
.guide-facts dt { font-weight: 700; }
.guide-facts dd { margin: 0; }

.guide-list-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .55rem;
}
.guide-list-controls .panel {
  margin: 0;
  padding: .65rem .8rem;
  box-shadow: none;
}
.guide-list-controls [data-static-reset] { margin-top: .5rem; }
.guide-list-controls .character-controls,
.guide-list-controls .character-filter-grid { grid-template-columns: minmax(0, 1fr); }
.guide-table.character-table { table-layout: fixed; }
.guide-table.character-table :is(th, td):first-child { width: 29%; }
.guide-table.character-table :is(th, td):nth-child(2) { width: 20%; }
.guide-table.character-table th:last-child { padding: 8px 10px; }
.guide-table.character-table td { white-space: normal; vertical-align: top; overflow-wrap: anywhere; }
.guide-table.character-table tbody + tbody td { border-top: 1px solid #e0e8ef; }
.guide-table.character-table .guide-table-detail { text-align: left; font-weight: 400; line-height: 1.5; }
.guide-subvalue { display: block; color: var(--text-muted); font-size: .86em; font-weight: 400; }
.guide-section .guide-card-detail { padding: 0 12px 10px; overflow-wrap: anywhere; }
.guide-section .character-card-name-cell { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.guide-section .character-card-summary--with-value { grid-template-columns: minmax(0, 1fr) minmax(0, 35%); }
.guide-section .character-card-value { flex-direction: column; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 12px; }
.guide-section .character-card-value .guide-subvalue { font-size: 1em; }

@media (max-width: 600px) {
  .reanimal-guide .main-content { padding: 6px 8px 8px; }
  .guide-list-controls { grid-template-columns: minmax(0, 1fr); }
  .guide-entry, .guide-chapter-nav { padding: .7rem; }
  .guide-facts > div { grid-template-columns: minmax(0, 1fr); }
}
