/* Tag pages (custom-tag-page.hbs): a short overview of the person, idea or thing, then every post with the tag.
   Uses the site's narrow column and its usual post list (.article-link). */

.tp {
  --tp-ink: #111;
  --tp-blue: #356EE9;
  --tp-grey: #666;
  --tp-rule: #E3E3E3;
}
.tp-wrap { padding: 56px 0 72px; }

.tp-eyebrow {
  font: 700 11px/1.4 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tp-blue); margin: 0 0 10px;
}
.tp .tp-title {
  font: 800 44px/1.1 'Inter', sans-serif; letter-spacing: -0.025em; color: var(--tp-ink);
  margin: 0 0 18px; text-wrap: balance;
}

/* The overview: the page's own text, set in the serif like the book-notes verdict */
.tp .tp-overview { max-width: none; margin: 0 0 36px; padding-bottom: 30px; border-bottom: 1px solid var(--tp-rule); }
.tp .tp-overview p { font: 19px/1.65 Georgia, 'Times New Roman', serif; color: var(--tp-ink); }
.tp .tp-overview > :first-child { margin-top: 0; }
.tp .tp-overview > :last-child { margin-bottom: 0; }

.tp .tp-count {
  font: 700 12px/1.3 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tp-grey); margin: 0 0 4px;
}
.tp-row { gap: 14px; }
.tp .tp-date { flex: 0 0 72px; font: 13px/1.4 'Inter', sans-serif; color: var(--tp-grey); white-space: nowrap; }
.tp .tp-link { flex: 1 1 auto; min-width: 0; color: var(--tp-ink); font-weight: 500; }
.tp .tp-link:hover { color: var(--tp-blue); }
.tp-kind {
  flex: 0 0 auto; font: 700 10.5px/1.2 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tp-blue); white-space: nowrap;
}

@media (max-width: 700px) {
  .tp-wrap { padding: 28px 0 48px; }
  .tp .tp-title { font-size: 32px; }
  .tp .tp-overview p { font-size: 17px; }
  .tp-row { flex-wrap: wrap; row-gap: 2px; }
  .tp .tp-date { flex-basis: 64px; }
  .tp .tp-link { flex-basis: calc(100% - 80px); }
  .tp-kind { margin-left: 78px; }
}

/* People pages: their books that have a book note, above the post list */
.tp-books { margin: 0 0 40px; }
.tp-books .tp-count { margin-bottom: 14px; }
.tp .tp-book {
  display: flex; gap: 18px; align-items: flex-start; padding: 14px 0;
  border-top: 1px solid var(--tp-rule); color: var(--tp-ink); text-decoration: none;
}
.tp .tp-book:last-child { border-bottom: 1px solid var(--tp-rule); }
.tp-book-cover {
  flex: 0 0 64px; width: 64px; height: auto; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
}
.tp-book-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-book-title { font: 700 17px/1.3 'Inter', sans-serif; color: var(--tp-ink); }
.tp-book-verdict { font: 16px/1.5 Georgia, 'Times New Roman', serif; color: #333; }
.tp-book-more {
  font: 700 10.5px/1.2 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tp-blue); margin-top: 4px;
}
.tp .tp-book:hover .tp-book-title { color: var(--tp-blue); }

@media (max-width: 700px) {
  .tp-book-cover { flex-basis: 52px; width: 52px; }
  .tp-book-title { font-size: 16px; }
  .tp-book-verdict { font-size: 15px; }
}
