.book-shelf-card {
  background: linear-gradient(145deg, #f4eee2 0%, #fffaf1 55%, #e7f0ed 100%);
  overflow: hidden;
}

.book-shelf-intro {
  max-width: 760px;
}

.affiliate-disclosure {
  display: inline-flex;
  margin: 18px 0 4px;
  padding: 9px 13px;
  border: 1px solid rgba(16, 45, 59, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #415968;
  font-size: .76rem;
  font-weight: 700;
}

.book-shelf {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 15px;
  margin: 28px -4px 8px;
  padding: 4px 4px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #b9a67c transparent;
}

.book-pick {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  scroll-snap-align: start;
}

.book-jacket {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 17px 17px 23px;
  border-radius: 4px 10px 10px 4px;
  color: #fff;
  box-shadow: 0 13px 24px rgba(16, 37, 64, .18), inset 7px 0 0 rgba(0, 0, 0, .13);
  transform: translateY(0) rotate(-.35deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.book-cover {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #fff;
}

.book-cover-credit {
  display: block;
  margin: 7px 2px -4px;
  color: #6b7b82;
  font-size: .62rem;
}

.book-pick:nth-child(even) .book-jacket { transform: translateY(4px) rotate(.45deg); }
.book-pick:hover .book-jacket,
.book-pick:focus-within .book-jacket { transform: translateY(-5px) rotate(0); box-shadow: 0 18px 28px rgba(16, 37, 64, .24), inset 7px 0 0 rgba(0, 0, 0, .13); }

.book-jacket::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px 7px 7px 2px;
  pointer-events: none;
}

.book-jacket .book-mark {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .82;
}

.book-jacket strong {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  font: 800 1.28rem/1.04 Fraunces, serif;
}

.book-jacket small {
  position: relative;
  z-index: 1;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: .9;
}

.book-pick p {
  margin: 14px 2px 12px;
  color: #405866;
  font-size: .82rem;
  line-height: 1.45;
}

.book-pick a {
  align-self: flex-start;
  margin-top: auto;
  color: #102540;
  font-size: .79rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jacket-history { background: #933d32; }
.jacket-language { background: #214e46; }
.jacket-travel { background: #176c88; }
.jacket-food { background: #c66730; }
.jacket-dog { background: #6a517f; }
.jacket-cat { background: #2d5d75; }

.book-pick.featured-book .book-jacket {
  outline: 3px solid #e7b23f;
  outline-offset: 3px;
}

.book-pick.featured-book .book-jacket::before {
  content: "Galway pick";
  position: absolute;
  z-index: 2;
  top: 12px;
  right: -7px;
  padding: 5px 9px;
  border-radius: 999px 3px 3px 999px;
  background: #f5ca67;
  color: #102540;
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-shelf-note {
  margin-top: 10px !important;
  color: #536a76 !important;
  font-size: .78rem;
}

@media (max-width: 760px) {
  .book-shelf { grid-template-columns: repeat(6, 64vw); margin-right: -22px; }
  .book-pick { min-width: 0; }
  .book-jacket { min-height: 245px; }
  .book-jacket strong { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .book-jacket { transition: none; }
}

.irish-pet-books{margin-top:1.4rem;padding-top:1rem;border-top:1px solid #819bad55}.irish-pet-books h4{font-size:1rem;margin:0 0 .5rem}.irish-pet-books>p{font-size:.88rem;line-height:1.5}.irish-pet-book{display:flex!important;align-items:center;gap:.85rem;margin:1rem 0;text-decoration:none!important;padding:.65rem;border:1px solid #819bad55;border-radius:10px}.irish-pet-book img{flex:none;width:58px;height:80px;object-fit:contain;border-radius:3px}.irish-pet-book span{display:flex;flex-direction:column;gap:.25rem}.irish-pet-book strong{font-size:.95rem}.irish-pet-book small{font-size:.78rem;font-weight:400}.irish-pet-book b{font-size:.78rem;text-decoration:underline;text-underline-offset:3px}.irish-pet-book:hover{border-color:currentColor}.irish-pet-book:focus-visible{outline:3px solid #efbb65;outline-offset:3px}.irish-pet-disclosure{font-size:.72rem!important;line-height:1.4}

.irish-learning-apps{margin-top:1.4rem;padding-top:1rem;border-top:1px solid #819bad55}.irish-learning-apps h4{font-size:1rem;margin:0 0 .8rem}.irish-learning-apps a{display:block;margin:.75rem 0;padding:.8rem;border:1px solid #819bad55;border-radius:10px;text-decoration:none}.irish-learning-apps strong{display:block;font-size:.95rem;text-decoration:underline;text-underline-offset:3px}.irish-learning-apps span{display:block;margin-top:.4rem;font-size:.85rem;line-height:1.5;font-weight:400}.irish-learning-apps a:hover{border-color:currentColor}.irish-learning-apps a:focus-visible{outline:3px solid #efbb65;outline-offset:3px}
