/* Book section pages (/books/, /book-authors/, /publishers/ ...): menu between the lists and the author / publisher grids. */
.bp-nav { margin: 0 0 22px; }
.bp-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bp-nav a { display: inline-block; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.bp-nav a:hover,
.bp-nav a:focus-visible { border-color: var(--green); color: var(--green); }
.bp-nav a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

.bp-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.bp-terms a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.bp-terms a:hover,
.bp-terms a:focus-visible { border-color: var(--green); }
.bp-term-name { font-family: var(--serif); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bp-terms small { color: var(--muted); }

@media (max-width: 960px) { .bp-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bp-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .bp-terms { grid-template-columns: minmax(0, 1fr); } }
