body {
  margin-top: 2px;
}

h3 {
  margin-top: 0.17em;
}

.site-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 1100px;
}

.site-main {
  flex: 1 1 0;
  min-width: 0;
}

.site-reviews {
  flex: 1 1 320px;
  max-width: 480px;
  min-width: 240px;
  margin-top: 0.17em;
}

.site-reviews h4 {
  margin: 0 0 0.75em;
  font-size: 1em;
  font-weight: 600;
}

.book-month + .book-month {
  margin-top: 1em;
}

.book-month h5 {
  margin: 0 0 0.5em;
  font-size: 0.85em;
  font-weight: 500;
  color: #555;
}

.book-month-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 120px));
  gap: 12px;
}

.book-entry {
  position: relative;
  width: 120px;
  cursor: default;
  outline: none;
}

.book-cover {
  display: block;
  width: 120px;
  height: auto;
  border: 1px solid #ddd;
}

.book-meta {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25em;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ddd;
  font-size: 0.75em;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.book-entry:hover .book-meta,
.book-entry:focus-within .book-meta {
  opacity: 1;
  pointer-events: auto;
}

.book-title,
.book-author,
.book-review {
  margin: 0;
}

.book-author {
  color: #555;
}

.book-review {
  margin-top: 0.35em;
}

.site-flags {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-flag-wrap {
  width: 72px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-flag-wrap img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  transform: rotate(90deg);
}

.site-logo-wrap {
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo-wrap img {
  height: 120px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 720px) {
  .site-layout {
    flex-direction: column;
    gap: 32px;
  }

  .site-reviews {
    flex: none;
    width: 100%;
  }
}

@media (hover: none) {
  .book-meta {
    opacity: 1;
    pointer-events: auto;
  }
}
