/*
  Design tokens for the topic-hub block.
  Palette leans into ink/paper/jade rather than the generic warm-cream +
  terracotta combination — jade nods at the subject (character/brush
  associations) without being literal or decorative for its own sake.
  No border-radius or drop shadows anywhere: hairline rules do the
  structural work instead of rounded cards.
*/

:root {
  --rt-ink: #1c1b19;
  --rt-paper: #f5f6f3;
  --rt-jade: #B80220;
  --rt-jade-deep: #B80220;
  --rt-rule: #d8d6ce;
  --rt-muted: #6b6a63;
}

.topic-hub {
  margin-bottom: 0.5rem;
}

.topic-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rt-rule);
  font-family: -apple-system, "Inter", system-ui, sans-serif;
}

.topic-hub .topic-nav:last-of-type {
  margin-bottom: 2rem;
}

.topic-nav__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rt-ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.topic-nav__label:hover,
.topic-nav__label:focus-visible {
  border-bottom-color: var(--rt-jade);
}

.topic-nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.topic-nav__item {
  display: flex;
  align-items: center;
}

.topic-nav__item + .topic-nav__item::before {
  content: "·";
  color: var(--rt-rule);
  margin: 0 0.85rem;
  font-size: 1rem;
}

.topic-nav__item a {
  color: var(--rt-muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topic-nav__item a:hover,
.topic-nav__item a:focus-visible {
  color: var(--rt-jade-deep);
  border-bottom-color: var(--rt-jade);
}

.featured-guide {
  background: var(--rt-paper);
  border-top: 1px solid var(--rt-ink);
  border-bottom: 1px solid var(--rt-rule);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
}

.featured-guide__kicker {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rt-jade-deep);
  margin: 0 0 0.5rem;
}

.featured-guide__title {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  max-width: 34ch;
}

.featured-guide__title a {
  color: var(--rt-ink);
  text-decoration: none;
}

.featured-guide__title a:hover {
  color: var(--rt-jade-deep);
}

.featured-guide__desc {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  color: var(--rt-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.featured-guide__link {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rt-jade-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--rt-jade);
}

.featured-guide__link:hover {
  color: var(--rt-ink);
  border-bottom-color: var(--rt-ink);
}

.pillar-posts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rt-rule);
}

.pillar-posts__item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rt-rule);
}

.pillar-posts__item a {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--rt-ink);
  text-decoration: none;
}

.pillar-posts__item a:hover {
  color: var(--rt-jade-deep);
}

.pillar-posts__item p {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  color: var(--rt-muted);
  font-size: 0.92rem;
  margin: 0.35rem 0 0;
  max-width: 60ch;
}

.pillar-posts__empty {
  color: var(--rt-muted);
  font-family: -apple-system, "Inter", system-ui, sans-serif;
}

.compare-pair--post {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.compare-pair--post img {
  max-width: 100%;
}
.compare-pair {
  display: flex;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.compare-pair figure {
  flex: 1 1 0;
  margin: 0;
}
.compare-pair img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rt-rule);
}
.compare-pair figcaption {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--rt-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.cta {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--rt-paper);
  border: 1px solid var(--rt-rule);
}
.cta p {
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  color: var(--rt-ink);
  margin: 0 0 1rem;
  line-height: 1.6;
}
.btn {
  display: inline-block;
  background: var(--rt-jade);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  font-family: -apple-system, "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--rt-jade);
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: var(--rt-jade-deep);
  border-color: var(--rt-jade-deep);
}


@media (max-width: 560px) {
  .compare-pair {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .topic-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .topic-nav__list {
    gap: 0.4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-nav__item a,
  .featured-guide__link {
    transition: none;
  }
}
