/* ARAIYU_BOOK_SIDEBAR_20261104 | scoped to the blog and posts sidebar */
.ayu-books-section { min-width: 0; }
.ayu-books-section .ayu-books-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ayu-books-pr { font-size: 11px; font-weight: 650; border: 1px solid rgba(255,255,255,.65); border-radius: 3px; padding: 0 6px; line-height: 1.7; }
.ayu-books-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ayu-books-link { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 174px; padding: 8px; border-radius: 12px; border: 1px solid #e2e7f0; background: #fff; box-sizing: border-box; transition: transform .18s ease, border-color .18s ease; }
.ayu-books-link:hover { border-color: #8ba6d6; transform: translateY(-2px); }
.ayu-books-link:focus-visible { outline: 3px solid #3272d7; outline-offset: 3px; }
.ayu-books-cover { display: block; max-width: 100%; width: auto; height: auto; max-height: 205px; object-fit: contain; }
.ayu-books-disclosure { max-width: 1200px; padding: 0 20px 20px; margin: 0 auto; text-align: center; color: #66758d; font-size: 12px; line-height: 1.7; }
/* Standalone fallback, used only if the earlier sidebar script is missing */
.ayu-books-standalone { min-width: 0; width: 100%; }
.ayu-books-standalone .ayu-side-heading { padding: 11px 14px; font-size: 15px; color: #fff; background: #203f86; margin: 0 0 14px; }
.ayu-books-article-grid { width: min(1250px,calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 38px; align-items: start; }
.ayu-books-article-grid > .article-wrap { min-width: 0; width: 100%; max-width: none; margin: 0; }
@media (max-width: 950px) {
  .ayu-books-article-grid { display: block; }
  .ayu-books-standalone { width: min(100%, 650px); margin: 32px auto 0; }
}
@media (max-width: 600px) {
  .ayu-books-article-grid { width: calc(100% - 32px); }
  .ayu-books-gallery { gap: 12px; }
  .ayu-books-link { min-height: 156px; padding: 6px; }
  .ayu-books-cover { max-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .ayu-books-link { transition: none; }
}

/* ARAIYU_BOOKS_SINGLE_COVER_CENTER_20261104 */
.ayu-books-gallery > .ayu-books-link:only-child { max-width: 210px; width: 100%; justify-self: center; }

/* ARAIYU_BOOKS_LAST_CSS_V3: visually keep books below all other sidebar widgets. */
.ayu-side-widgets > .ayu-books-section { order: 9999; }

/* ARAIYU_BOOKS_STRICT_V5: no fake jacket; section remains while loading. */
.ayu-books-section .ayu-books-cover-message { color: #66758d; font-size: 12px; line-height: 1.7; margin: 10px 0 4px; }
.ayu-books-section .ayu-books-cover-message[hidden] { display: none !important; }
.ayu-side-widgets > .ayu-books-section { order: 9999; }
