.book-page {
  --book-brand: #246f7c;
  --book-deep: #174f59;
  --book-gold: #ae8449;
  --book-ink: #25383a;
  --book-muted: #627477;
  --book-soft: #f1f7f5;
  --book-warm: #fbf7ef;
  --book-line: #d7e4e3;
  color: var(--book-ink);
}

.book-page h1,
.book-page h2,
.book-page h3,
.book-page p {
  margin-top: 0;
}

.book-page h1,
.book-page h2,
.book-page h3 {
  color: var(--book-deep);
  font-family: Georgia, "Times New Roman", serif;
}

.book-hero {
  background: linear-gradient(120deg, #f1f7f6 0%, #f7faf9 64%, #fbf5e9 100%);
  border-bottom: 1px solid var(--book-line);
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.4rem) 0;
}

.book-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr);
}

.book-hero__inner--text-only {
  grid-template-columns: minmax(0, 1fr);
}

.book-kicker {
  color: var(--book-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.book-hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin-bottom: 1rem;
  max-width: 800px;
}

.book-hero__lead {
  color: var(--book-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 720px;
}

.book-hero__back {
  color: var(--book-brand);
  display: inline-flex;
  font-size: .84rem;
  font-weight: 800;
  margin-top: 1.2rem;
  text-decoration: none;
}

.book-hero__visual {
  align-items: center;
  display: flex;
  justify-self: center;
  min-height: 240px;
  justify-content: center;
  margin: 0;
  position: relative;
  width: min(100%, 390px);
}

.book-hero__visual::before {
  background: rgba(216, 184, 125, .2);
  border-radius: 50%;
  content: "";
  height: 210px;
  position: absolute;
  width: 340px;
}

.book-hero__books {
  align-items: flex-end;
  display: flex;
  gap: 1.35rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.book-hero__book {
  align-items: center;
  color: var(--book-brand);
  display: flex;
  flex-direction: column;
  font-size: .78rem;
  font-weight: 800;
  gap: .75rem;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.book-hero__book:hover,
.book-hero__book:focus-visible {
  color: var(--book-deep);
}

.book-hero__cover {
  box-shadow: 0 18px 38px rgba(23, 79, 89, .2);
  display: block;
  height: auto;
  max-height: 210px;
  max-width: 150px;
  position: relative;
  transform: rotate(2deg);
  width: auto;
  z-index: 1;
}

.book-hero__book:hover .book-hero__cover,
.book-hero__book:focus-visible .book-hero__cover {
  transform: rotate(0deg) translateY(-3px);
}

.book-content {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.book-landing {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr);
}

.book-section-heading {
  margin-bottom: 1.5rem;
}

.book-section-heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  line-height: 1.1;
  margin-bottom: .65rem;
}

.book-section-heading p {
  color: var(--book-muted);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 720px;
}

.book-category-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-category-grid a {
  align-items: center;
  border: 1px solid var(--book-line);
  border-radius: 14px;
  color: var(--book-deep);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
  gap: 1rem;
  justify-content: space-between;
  min-height: 70px;
  padding: 1rem 1.1rem;
  text-decoration: none;
}

.book-category-grid a:hover,
.book-category-grid a:focus-visible {
  background: var(--book-soft);
  border-color: #b7d0cd;
}

.book-category-grid span {
  color: var(--book-brand);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.book-info-card {
  background: var(--book-warm);
  border: 1px solid #eadfc9;
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.book-info-card h2 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.book-info-card p {
  color: var(--book-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.book-info-card p:last-child {
  margin-bottom: 0;
}

.book-mobile-select {
  display: none;
  margin-bottom: 1.5rem;
}

.book-mobile-select label {
  color: var(--book-deep);
  display: block;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.book-mobile-select select {
  background: #fff;
  border: 1px solid #b9ccca;
  border-radius: 10px;
  color: var(--book-ink);
  min-height: 48px;
  padding: .65rem .8rem;
  width: 100%;
}

.book-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr) 275px;
}

.book-list-head {
  align-items: end;
  border-bottom: 1px solid var(--book-line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.book-list-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0;
}

.book-admin-link {
  color: var(--book-brand);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
}

.book-category-intro {
  color: var(--book-muted);
  line-height: 1.68;
  margin-bottom: 1.8rem;
}

.book-category-intro > :last-child {
  margin-bottom: 0;
}

.book-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card {
  background: #fff;
  border: 1px solid var(--book-line);
  border-radius: 17px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 245px;
  overflow: hidden;
  padding: 1.15rem;
}

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

.book-card__type {
  color: var(--book-gold);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.book-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: .55rem;
}

.book-card__meta {
  color: var(--book-muted);
  font-size: .78rem;
  line-height: 1.5;
  margin-bottom: .7rem;
}

.book-card__meta span {
  display: block;
}

.book-card__description {
  color: #506265;
  font-size: .84rem;
  line-height: 1.55;
  margin-bottom: .9rem;
}

.book-card__description > :last-child {
  margin-bottom: 0;
}

.book-card__note {
  background: var(--book-soft);
  border-radius: 8px;
  color: var(--book-deep);
  font-size: .78rem;
  line-height: 1.45;
  margin-bottom: .8rem;
  padding: .55rem .65rem;
}

.book-card__link {
  color: var(--book-brand);
  font-size: .8rem;
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}

.book-card__cover {
  align-self: start;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.book-card__cover img {
  box-shadow: 0 9px 22px rgba(29, 62, 67, .14);
  display: block;
  height: auto;
  max-height: 170px;
  max-width: 108px;
  object-fit: contain;
  width: auto;
}

.book-card__placeholder {
  align-items: center;
  background: linear-gradient(145deg, #dcebe7, #f1e3c8);
  border-radius: 5px 10px 10px 5px;
  box-shadow: 0 9px 22px rgba(29, 62, 67, .12);
  color: var(--book-deep);
  display: flex;
  height: 150px;
  justify-content: center;
  width: 100px;
}

.book-card__placeholder svg {
  fill: none;
  height: 40px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 40px;
}

.book-total {
  background: var(--book-warm);
  border: 1px solid #eadfc9;
  border-radius: 12px;
  color: var(--book-deep);
  display: flex;
  font-size: .83rem;
  gap: .8rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: .8rem 1rem;
}

.book-total strong {
  white-space: nowrap;
}

.book-recommended {
  border-top: 1px solid var(--book-line);
  margin-top: 3rem;
  padding-top: 2.5rem;
}

.book-recommended .book-card__type {
  color: var(--book-brand);
}

.book-sidebar {
  position: sticky;
  top: 1.25rem;
}

.book-sidebar__panel {
  border: 1px solid var(--book-line);
  border-radius: 15px;
  overflow: hidden;
}

.book-sidebar h2 {
  background: var(--book-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0;
  padding: .9rem 1rem;
  text-transform: uppercase;
}

.book-sidebar a {
  border-top: 1px solid var(--book-line);
  color: var(--book-ink);
  display: block;
  font-size: .84rem;
  line-height: 1.35;
  padding: .75rem 1rem;
  text-decoration: none;
}

.book-sidebar a:hover,
.book-sidebar a:focus-visible {
  background: var(--book-soft);
}

.book-sidebar a[aria-current="page"] {
  background: var(--book-deep);
  color: #fff;
  font-weight: 800;
}

.book-empty {
  background: var(--book-soft);
  border: 1px solid var(--book-line);
  border-radius: 14px;
  color: var(--book-muted);
  padding: 1.2rem;
}

@media (max-width: 1199.98px) {
  .book-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .book-hero__inner,
  .book-landing,
  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-hero__visual {
    display: none;
  }

  .book-mobile-select {
    display: block;
  }

  .book-sidebar {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .book-category-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    min-height: 0;
    padding: 1rem;
  }

  .book-card__cover img {
    max-height: 130px;
    max-width: 78px;
  }

  .book-card__placeholder {
    height: 118px;
    width: 76px;
  }

  .book-list-head,
  .book-total {
    align-items: flex-start;
    flex-direction: column;
  }
}
