/* Phase H3 — scoped public Book detail presentation. */
.h3-book-shell .h3-book-detail-page {
  padding: clamp(2rem, 4vw, 4rem) 0 5rem;
  background:
    radial-gradient(circle at 92% 2%, rgba(14, 116, 144, 0.1), transparent 24rem),
    linear-gradient(180deg, #f8fbfc 0, #fff 34rem);
}

.h3-book-shell .h3-book-breadcrumbs {
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

.h3-book-shell .h3-book-layout {
  align-items: start;
}

.h3-book-shell .h3-book-article,
.h3-book-shell .h3-book-rating,
.h3-book-shell .h3-book-distribution {
  border: 1px solid #dbe7ea;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(15, 53, 64, 0.07);
}

.h3-book-shell .h3-book-article {
  overflow: hidden;
}

.h3-book-shell .h3-book-hero {
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, #edf8f8 0%, #f9fcfc 52%, #eef5f2 100%);
  border-bottom: 1px solid #dbe7ea;
}

.h3-book-shell .h3-book-cover {
  position: relative;
  width: min(100%, 21rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0.8rem 1.15rem 1.15rem 0.8rem;
  background: #e4edee;
  box-shadow: -0.55rem 0.7rem 0 #c8d7d8, 0 1.3rem 2.8rem rgba(15, 53, 64, 0.22);
}

.h3-book-shell .h3-book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.45rem;
  background: rgba(15, 53, 64, 0.16);
  pointer-events: none;
}

.h3-book-shell .h3-book-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #f6faf9;
}

.h3-book-shell .h3-book-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: #315b63;
  background: linear-gradient(145deg, #e9f3f2, #d7e6e4);
}

.h3-book-shell .h3-book-cover-fallback span {
  font: 700 4rem/1 Georgia, serif;
}

.h3-book-shell .h3-book-cover-fallback p {
  margin: 0;
}

.h3-book-shell .h3-book-type {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: #075c69;
  background: #d9efef;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h3-book-shell .h3-book-header h1 {
  max-width: 18ch;
  margin: 0;
  color: #102f37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.h3-book-shell .h3-book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  margin-top: 1.35rem;
  color: #4d6970;
  font-size: 0.91rem;
}

.h3-book-shell .h3-book-meta span,
.h3-book-shell .h3-book-meta a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.h3-book-shell .h3-book-meta a {
  color: #075c69;
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.h3-book-shell .h3-book-category {
  padding: 0.3rem 0.6rem;
  border: 1px solid #bfd6d7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.h3-book-shell .h3-book-bibliography {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.5rem 0 0;
  border: 1px solid #d4e3e4;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.h3-book-shell .h3-book-bibliography div {
  min-width: 0;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid #e2ecec;
}

.h3-book-shell .h3-book-bibliography div:nth-child(odd) {
  border-right: 1px solid #e2ecec;
}

.h3-book-shell .h3-book-bibliography dt {
  color: #547078;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.h3-book-shell .h3-book-bibliography dd {
  margin: 0.2rem 0 0;
  color: #183b44;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.h3-book-shell .h3-book-header .h2-detail-tags {
  margin-top: 1.35rem;
}

.h3-book-shell .h3-book-review-intro {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem) 0;
}

.h3-book-shell .h3-book-review-intro h2 {
  margin: 0.25rem 0 0;
  color: #183b44;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.h3-book-shell .h3-book-review-body {
  max-width: 48rem;
  padding: 1.2rem clamp(1.25rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  color: #263f46;
}

.h3-book-shell .h3-book-review-body :is(p, li) {
  font-size: 1.04rem;
  line-height: 1.82;
}

.h3-book-shell .h3-book-review-body :is(h1, h2, h3, h4) {
  scroll-margin-top: 7rem;
  overflow-wrap: anywhere;
}

.h3-book-shell .h3-book-review-body img,
.h3-book-shell .h3-book-review-body iframe,
.h3-book-shell .h3-book-review-body video,
.h3-book-shell .h3-book-review-body table {
  max-width: 100%;
}

.h3-book-shell .h3-book-rating,
.h3-book-shell .h3-book-distribution {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.h3-book-shell .h3-book-rating {
  display: grid;
  grid-template-columns: minmax(11rem, 0.6fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: center;
}

.h3-book-shell .h3-book-rating h2,
.h3-book-shell .h3-book-distribution h2 {
  margin: 0.2rem 0 0;
  color: #183b44;
  font-size: 1.55rem;
}

.h3-book-shell .h3-book-rating-overall {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.6rem;
  align-items: end;
}

.h3-book-shell .h3-book-rating-overall strong {
  color: #087183;
  font-size: 2.6rem;
  line-height: 1;
}

.h3-book-shell .h3-book-rating-overall meter {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.55rem;
}

.h3-book-shell .h3-book-rating-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.h3-book-shell .h3-book-rating-grid div {
  padding: 0.8rem;
  border-radius: 0.7rem;
  background: #f1f7f7;
}

.h3-book-shell .h3-book-rating-grid dt {
  margin-bottom: 0.35rem;
  color: #315b63;
  font-weight: 700;
}

.h3-book-shell .h3-book-rating-grid dd {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
}

.h3-book-shell .h3-book-rating-grid meter {
  flex: 1;
}

.h3-book-shell .h3-book-distribution {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  border-left: 0.35rem solid #d89b24;
  background: #fffcf3;
}

.h3-book-shell .h3-book-distribution-copy {
  max-width: 44rem;
}

.h3-book-shell .h3-book-distribution p {
  margin: 0.55rem 0 0;
  color: #53676b;
  line-height: 1.65;
}

.h3-book-shell .h3-book-resource-note {
  font-size: 0.9rem;
}

.h3-book-shell .h3-book-action {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  color: #fff;
  background: #087183;
  font-weight: 800;
  text-align: center;
}

.h3-book-shell .h3-book-action:hover,
.h3-book-shell .h3-book-action:focus-visible {
  color: #fff;
  background: #075c69;
}

.h3-book-shell .h3-book-action.is-disabled {
  color: #6c5b34;
  background: #f4e6bd;
  cursor: not-allowed;
}

.h3-book-shell .h3-book-reviewer {
  margin-top: 1.5rem;
}

.h3-book-shell .h3-book-playlist {
  margin-top: 0;
}

.h3-book-shell :is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #f1b83a;
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .h3-book-shell .h3-book-hero {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 767px) {
  .h3-book-shell .h3-book-detail-page {
    padding-top: 1.25rem;
  }

  .h3-book-shell .h3-book-hero,
  .h3-book-shell .h3-book-rating {
    grid-template-columns: 1fr;
  }

  .h3-book-shell .h3-book-cover {
    width: min(78vw, 18rem);
  }

  .h3-book-shell .h3-book-header h1 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.75rem);
  }

  .h3-book-shell .h3-book-bibliography,
  .h3-book-shell .h3-book-rating-grid {
    grid-template-columns: 1fr;
  }

  .h3-book-shell .h3-book-bibliography div:nth-child(odd) {
    border-right: 0;
  }

  .h3-book-shell .h3-book-distribution {
    align-items: stretch;
    flex-direction: column;
  }

  .h3-book-shell .h3-book-action {
    width: 100%;
  }
}

@media (max-width: 389px) {
  .h3-book-shell .h3-book-hero,
  .h3-book-shell .h3-book-review-intro,
  .h3-book-shell .h3-book-review-body,
  .h3-book-shell .h3-book-rating,
  .h3-book-shell .h3-book-distribution {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .h3-book-shell .h3-book-cover {
    width: min(76vw, 15.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .h3-book-shell *,
  .h3-book-shell *::before,
  .h3-book-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .h3-book-shell .h3-book-detail-page {
    background: #fff;
  }

  .h3-book-shell .h3-book-article,
  .h3-book-shell .h3-book-rating,
  .h3-book-shell .h3-book-distribution {
    box-shadow: none;
  }
}
