/* Chapter-end "Also in print" note (filters/book-note.lua). A quiet box under
   the support line: small cover, kicker, title, one sentence, text links.
   Accent from --handbook-accent; no script, no motion. Left out of print.
   Selectors carry two classes so they outrank `main.content p`.
   Identical in all four handbooks. */
.book-note {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid #dfe3e8;
  border-left: 4px solid var(--handbook-accent, #2761e3);
  border-radius: 6px;
  background: #f7f8fa;
  color: #1f2a37;
}

.book-note .book-note-cover {
  flex: 0 0 78px;
  width: 78px;
  height: 125px;
  margin: 0;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}

.book-note .book-note-text {
  min-width: 0;
}

.book-note .book-note-text p {
  margin: 0;
}

.book-note .book-note-kicker {
  color: #5b6b7f;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.book-note .book-note-title {
  margin-top: 0.25rem;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.book-note .book-note-body {
  margin-top: 0.35rem;
  color: #3d4a5a;
  font-size: 0.925rem;
  line-height: 1.55;
}

.book-note .book-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.925rem;
  line-height: 1.5;
}

.book-note .book-note-links a {
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.quarto-dark .book-note,
[data-bs-theme="dark"] .book-note {
  border-color: #3a3f47;
  border-left-color: var(--handbook-accent, #2761e3);
  background: #1d2127;
  color: #e6e9ee;
}

.quarto-dark .book-note .book-note-kicker,
[data-bs-theme="dark"] .book-note .book-note-kicker {
  color: #9aa7b6;
}

.quarto-dark .book-note .book-note-body,
[data-bs-theme="dark"] .book-note .book-note-body {
  color: #c3ccd6;
}

.quarto-dark .book-note .book-note-cover,
[data-bs-theme="dark"] .book-note .book-note-cover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Phones: the text wraps around a smaller cover instead of sitting in a
   narrow column beside it. */
@media (max-width: 575.98px) {
  .book-note {
    display: block;
    padding: 1rem;
  }

  .book-note::after {
    content: "";
    display: table;
    clear: both;
  }

  .book-note .book-note-cover {
    float: left;
    width: 56px;
    height: 90px;
    margin: 0.15rem 0.9rem 0.4rem 0;
  }

  .book-note .book-note-title {
    font-size: 1rem;
  }

  .book-note .book-note-links {
    clear: both;
    padding-top: 0.1rem;
  }
}

@media print {
  .book-note {
    display: none;
  }
}
