/* Local AI Referrals related-book integration — 2026-07-11 */
.book-module,
.book-callout {
  --book-ink: #10223d;
  --book-muted: #46556b;
  --book-border: #cbd7e7;
  min-width: 0;
  color: var(--book-ink);
}

.book-module {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--book-border);
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 70%);
  box-shadow: 0 16px 40px rgba(16, 34, 61, 0.08);
}

.book-module__grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.book-module__cover {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.book-module__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(16, 34, 61, 0.18);
}

.book-module__body { min-width: 0; }
.book-module__eyebrow,
.book-callout__eyebrow {
  margin: 0 0 0.45rem;
  color: #174d8f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-module h2,
.book-callout h2 {
  margin: 0 0 0.35rem;
  color: var(--book-ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.book-module h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
.book-callout h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.book-module__subtitle { margin: 0 0 0.25rem; color: #27496f; font-weight: 700; }
.book-module__author { margin: 0 0 0.9rem; color: var(--book-muted); font-weight: 700; }
.book-module p,
.book-callout p { overflow-wrap: anywhere; }

.book-module__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.book-module__actions .btn { max-width: 100%; white-space: normal; text-align: center; }
.book-module .book-module__actions .btn-outline {
  color: #00338d;
  border-color: #00338d;
  background: #ffffff;
}
.book-module .book-module__actions .btn-outline:hover,
.book-module .book-module__actions .btn-outline:focus-visible {
  color: #00338d;
  background: #eef4ff;
}
.book-module__boundary {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid #a14318;
  border-radius: 0 10px 10px 0;
  background: #fff9f4;
  color: #56301d;
  font-size: 0.92rem;
  line-height: 1.55;
}

.book-module--resources {
  margin: 0;
}

.book-module--resources .book-module__cover { max-width: 145px; }

.book-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--book-border);
  border-left: 4px solid #174d8f;
  border-radius: 0 14px 14px 0;
  background: #f8fbff;
}

.book-callout p:last-child { margin-bottom: 0; }
.book-callout a:not(.btn) { font-weight: 750; text-underline-offset: 0.18em; }
.book-module a:focus-visible,
.book-callout a:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

@media (max-width: 640px) {
  .book-module__grid { grid-template-columns: minmax(0, 1fr); }
  .book-module__cover,
  .book-module--resources .book-module__cover { max-width: 140px; }
  .book-module__actions { align-items: stretch; flex-direction: column; }
  .book-module__actions .btn { width: 100%; }
}

/* Five-book author catalog and lower-page authority strips — 2026-07-18 */
.books-authority-section {
  scroll-margin-top: 6rem;
}

.books-authority-intro {
  max-width: 760px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

.books-authority-intro h2 {
  margin-bottom: 0.65rem;
}

.books-authority-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.book-authority-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid #cbd7e7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 34, 61, 0.09);
}

.book-authority-card__cover {
  display: flex;
  min-height: 280px;
  margin: 0 0 1.25rem;
  align-items: flex-end;
  justify-content: center;
}

.book-authority-card__cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 12px 26px rgba(16, 34, 61, 0.2);
}

.book-authority-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.book-authority-card h3 {
  margin: 0 0 0.55rem;
  color: #10223d;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.book-authority-card__subtitle {
  margin: 0 0 0.65rem;
  color: #27496f;
  font-weight: 700;
  line-height: 1.5;
}

.book-authority-card__byline {
  margin: 0 0 1rem;
  color: #46556b;
  font-weight: 700;
}

.book-authority-card__link {
  max-width: 100%;
  margin-top: auto;
  align-self: flex-start;
  white-space: normal;
}

.books-authority-catalog-link {
  margin: 1.35rem 0 0;
  text-align: center;
  font-weight: 750;
}

.author-books-strip__card {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #cbd7e7;
  border-left: 5px solid #174d8f;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 75%);
  color: #10223d;
  box-shadow: 0 14px 34px rgba(16, 34, 61, 0.08);
}

.author-books-strip__eyebrow {
  margin: 0 0 0.45rem;
  color: #174d8f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-books-strip__card h2 {
  margin: 0 0 0.55rem;
  color: #10223d;
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
  line-height: 1.25;
}

.author-books-strip__card p:not(.author-books-strip__eyebrow) {
  margin: 0 0 0.8rem;
  color: #33445d;
  line-height: 1.65;
}

.author-books-strip__card cite {
  font-style: italic;
}

.author-books-strip__link,
.books-authority-catalog-link a {
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.books-authority-section a:focus-visible,
.author-books-strip a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .books-authority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .books-authority-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-authority-card__cover {
    min-height: 240px;
  }

  .book-authority-card__cover img {
    height: 240px;
  }

  .book-authority-card__link {
    width: 100%;
    text-align: center;
  }

  .author-books-strip__card {
    border-left-width: 4px;
  }
}

