/* ============================================================
   CHAPTER PAGES — detail view for each career stage
   ============================================================ */

/* ── Under Construction Banner ────────────────────────────── */
.construction-banner {
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(201, 168, 108, 0.12) 0px,
    rgba(201, 168, 108, 0.12) 10px,
    transparent 10px,
    transparent 20px
  );
  border-bottom: 1px solid rgba(201, 168, 108, 0.35);
  padding: 0.65rem 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* ── Chapter Hero ──────────────────────────────────────────── */
.chapter-hero {
  padding: 7rem 0 4rem;
}

.chapter-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.chapter-back:hover {
  color: var(--color-accent);
}

.chapter-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.chapter-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.chapter-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Chapter Body ──────────────────────────────────────────── */
.chapter-body {
  padding: 3rem 0 5rem;
  border-top: 1px solid var(--color-border);
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 700px) {
  .chapter-grid {
    grid-template-columns: 180px 1fr;
    gap: 4rem;
  }
}

/* ── Meta sidebar ──────────────────────────────────────────── */
.chapter-meta {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dim);
}

.meta-value {
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ── Content ───────────────────────────────────────────────── */
.chapter-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-text);
  margin-bottom: 0.85rem;
  margin-top: 2.5rem;
}

.chapter-content h2:first-child {
  margin-top: 0;
}

.chapter-content p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.chapter-content p:last-child {
  margin-bottom: 0;
}

/* ── Chapter list ──────────────────────────────────────────── */
.chapter-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chapter-list li {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.25rem;
  position: relative;
}

.chapter-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ── Callout / highlight block ─────────────────────────────── */
.callout {
  border-left: 2px solid var(--color-accent);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  color: var(--color-text) !important;
  font-size: 0.97rem !important;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

/* ── Prev / Next nav ───────────────────────────────────────── */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem;
}

.chapter-nav-prev,
.chapter-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.chapter-nav-prev:hover,
.chapter-nav-next:hover {
  color: var(--color-accent);
}
