/* Choose a book, meet its story, then explicitly open its original pages. */
.library-featured {
  --desk-edge: #bdd0d7;
  --desk-mark: #477081;
  --desk-slip: #edf5f8;
  --book-cover-accent: var(--desk-mark);
}
.library-featured[data-selected-book="li-guojing-my-travel"] {
  --book-cover-accent: #ae5876;
}
.library-featured[data-selected-book="xu-yiqiu-bd-studio"] {
  --desk-edge: #a5c8d8;
  --desk-mark: #3d697d;
  --desk-slip: #ecf4f6;
  --book-cover-accent: #347a99;
}
.library-featured[data-selected-book="poison-apple-case"] {
  --desk-edge: #aabbd6;
  --desk-mark: #415680;
  --desk-slip: #eef1f7;
  --book-cover-accent: #967021;
}
body[data-library-view="featured"] #featured-details {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  padding: 15px 0 12px;
  border-top: 0;
}
.library-introduction-visual { min-width: 0; }
.library-selected-model { width: 100%; padding: 9px 14px 7px; }
.library-selected-model .library-book-rotator { width: 100%; }
.library-selected-model .library-book-face > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.library-selected-fallback { display: block; width: 100%; height: auto; }
.library-model-hint { position: relative; display: flex; justify-content: center; margin: 3px 0 0; color: var(--desk-mark); }
.library-model-hint svg { width: 17px; height: 17px; stroke-width: 1.35; }
.library-introduction-copy { min-width: 0; }
#featured-details .library-introduction-copy h2 {
  margin: 0 0 6px;
  font-family: "Songti SC", "STSong", serif;
  color: #253d4b;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .4px;
  overflow-wrap: anywhere;
}
#featured-details:not([data-pending="true"]) #featured-title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--book-cover-accent);
}
#featured-details .library-featured-meta { display: block; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--desk-mark); }
#featured-details .library-featured-description { margin: 10px 0 3px; font-size: 14px; line-height: 1.7; color: #4e655c; }
#featured-details .library-read-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 7px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #284f60;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
}
#featured-details .library-read-entry svg { width: 17px; height: 17px; stroke-width: 1.45; color: var(--book-cover-accent); }
#featured-details .library-read-entry:hover:not(:disabled) { color: #16394a; text-decoration: underline; text-underline-offset: .2em; }
#featured-details .library-read-entry:focus-visible { outline: 2px solid var(--desk-mark); outline-offset: 1px; border-radius: 5px; }
#featured-details .library-read-entry:disabled { opacity: .4; cursor: default; }
body[data-library-view="featured"] #featured-details[data-pending="true"] { display: block; padding: 18px 0; }
#featured-details[data-pending="true"] .library-introduction-copy h2 { font-family: inherit; font-size: 14px; font-weight: 500; color: #87988f; }
#inline-reader { scroll-margin-top: 16px; margin-bottom: 12px; }
#inline-reader:focus { outline: none; }
#inline-reader:focus-visible { outline: 1px solid #b5c8cd; outline-offset: 5px; }
.library-reader-topline { display: flex; justify-content: flex-start; padding: 2px 0 5px; }
#inline-reader .library-reader-topline button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: auto;
  gap: 6px;
  min-height: 44px;
  padding: 4px 6px 4px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #3e6258;
}
#inline-reader .library-reader-topline .library-return-arrow { width: 14px; height: 14px; }
#inline-reader .library-reader-topline .library-control-whale { width: 13px; height: 15px; overflow: hidden; stroke: none; }
#inline-reader .library-reader-topline button:is(:hover, :focus-visible) span {
  text-decoration: underline;
  text-underline-offset: .22em;
}
#inline-reader .library-reader-topline button:focus-visible {
  outline: none;
  color: #204c60;
}
#inline-reader .library-reader-topline button:focus-visible span { text-decoration-thickness: 2px; }
@media (min-width: 701px) {
  body[data-library-view="featured"] #featured-details { max-width: 700px; margin-inline: auto; }
}
@media (max-width: 700px) {
  body[data-library-view="featured"] #featured-details { grid-template-columns: 131px minmax(0, 1fr); gap: 19px; margin-top: 8px; padding: 16px 0 10px; }
  .library-selected-model { padding: 8px 10px 5px; }
  #featured-details .library-introduction-copy h2 { font-size: 22px; margin-bottom: 5px; }
  #featured-details .library-featured-meta { font-size: 12px; }
  #featured-details .library-featured-description { margin-top: 8px; font-size: 13px; }
  #featured-details .library-read-entry { font-size: 12px; margin-top: 4px; }
}
@media (max-width: 350px) {
  body[data-library-view="featured"] #featured-details { grid-template-columns: 104px minmax(0, 1fr); gap: 13px; padding-top: 14px; }
  .library-selected-model { padding: 7px 8px 5px; }
  #featured-details .library-introduction-copy h2 { font-size: 19px; }
  #featured-details .library-featured-description { font-size: 12px; }
}
