/* AI — A Working Journey: chapter navigation and series refinements */
.ai-chapter-nav {
  margin: 4rem 0 1.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr .8fr 1fr;
  gap: 12px;
}
.ai-chapter-nav a,
.ai-chapter-nav .ai-nav-placeholder {
  min-height: 132px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.ai-chapter-nav a:hover {
  border-color: var(--accent);
  background: rgba(66,95,82,.045);
  transform: translateY(-2px);
}
.ai-nav-label {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.ai-nav-title {
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 500;
}
.ai-nav-series {
  text-align: center;
  align-items: center;
}
.ai-nav-next {
  text-align: right;
  align-items: flex-end;
}
.ai-nav-placeholder {
  color: var(--muted);
  border-style: dashed !important;
}
.ai-nav-placeholder .ai-nav-title { color: var(--muted); }

.ai-series-chapter-status {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 650;
  color: var(--accent);
}

@media (max-width: 720px) {
  .ai-chapter-nav { grid-template-columns: 1fr; }
  .ai-chapter-nav a,
  .ai-chapter-nav .ai-nav-placeholder { min-height: 105px; }
  .ai-nav-series,
  .ai-nav-next { text-align: left; align-items: flex-start; }
  .ai-nav-title { margin-top: 15px; }
}
