/* The Whale Books wordmark is slightly narrower than the English caption. */
body[data-library-view="featured"] .library-imprint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 164px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 42px 0 22px;
}
.library-imprint-title {
  --imprint-title-size: 36px;
  --imprint-title-tracking: 3px;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}
.library-imprint-kicker {
  display: grid;
  width: max-content;
  max-width: 100%;
  row-gap: 5px;
}
.library-imprint h1#library-title {
  display: block;
  margin: 0;
  padding: 0;
  color: #203e51;
  font-family: "Songti SC", "STSong", "PingFang SC", serif;
  font-size: var(--imprint-title-size);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: var(--imprint-title-tracking);
  white-space: nowrap;
}
.library-imprint-english {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 3px;
  color: #5d7280;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2.2px;
  line-height: 1.35;
  white-space: nowrap;
}
.library-imprint-english::before {
  content: "";
  flex: 0 0 24px;
  height: 4px;
  background: #86aebc;
}
.library-imprint-illustration {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100px;
}
.library-imprint-mascot {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 94px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.library-collection-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  margin: 12px 0 0;
  padding: 8px 1px;
  border-top: 1px solid #d7dfd5;
}
.library-imprint-logo {
  display: block;
  /* Let the caption and its blue rule set the intrinsic width, not the SVG. */
  width: 0;
  min-width: 94%;
  height: auto;
  overflow: hidden;
}
.library-collection-entry .library-browse-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 44px;
  padding: 7px 0 7px 8px;
  border: 0;
  background: transparent;
  color: #2e5364;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .25px;
  line-height: 1.5;
  white-space: nowrap;
}
.library-collection-entry .library-browse-arrow { width: 15px; height: 15px; color: #557785; stroke-width: 1.35; }
.library-collection-entry .library-browse-all:hover { color: #254f5d; text-decoration: underline; text-underline-offset: .22em; }
.library-collection-entry .library-browse-all:focus-visible { outline: 2px solid #8fb3bc; outline-offset: 4px; }
@media (max-width: 700px) {
  body[data-library-view="featured"] .library-imprint { height: 136px; gap: 14px; padding: 0 32px 0 16px; }
  .library-imprint-title { --imprint-title-size: 30px; --imprint-title-tracking: 1px; }
  .library-imprint-english { gap: 10px; margin-bottom: 2px; font-size: 8px; letter-spacing: 2px; }
  .library-imprint-english::before { flex-basis: 19px; height: 3px; }
  .library-imprint-illustration { width: 88px; }
  .library-imprint-mascot { height: 75px; }
  .library-collection-entry { margin-top: 10px; }
}
@media (max-width: 370px) {
  body[data-library-view="featured"] .library-imprint { height: 116px; gap: 10px; padding-right: 26px; }
  .library-imprint-title { --imprint-title-size: clamp(22px, 8.125vw, 26px); }
  .library-imprint-english { gap: 7px; letter-spacing: 1.5px; }
  .library-imprint-english::before { flex-basis: 17px; }
  .library-imprint-mascot { height: 67px; }
}
@media (max-width: 350px) {
  body[data-library-view="featured"] .library-imprint { padding-left: 19px; }
}
@media (max-height: 700px) and (max-width: 700px) {
  body[data-library-view="featured"] .library-imprint { height: 100px; }
  .library-imprint-mascot { height: 60px; }
  .library-collection-entry { min-height: 52px; margin-top: 4px; padding-top: 4px; padding-bottom: 4px; }
  .library-imprint-kicker { row-gap: 3px; }
}
/* Catalogue navigation stays above the current book's variable-length discussion. */
.library-shelf-meta > .library-collection-entry {
  justify-content: flex-end;
  max-width: 700px;
  min-height: 44px;
  margin: 0 auto 5px;
  padding: 0;
  border: 0;
}
