/* Starter shelves on My Library (starter-shelves.js). White page, dark shelf band, coral actions with dark text. */
#starter-shelves {
  margin: 0 0 28px;
  background: #fff;
  color: #1f2a33;
}
#starter-shelves[hidden] {
  display: none;
}
.starter-intro {
  margin-bottom: 18px;
}
.starter-intro .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 6px;
}
.starter-intro h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0;
}
.starter-intro .starter-lead {
  font-size: clamp(19px, 2.6vw, 23px);
  margin: 4px 0 10px;
  color: #285345;
}
.starter-status {
  padding: 18px;
  border: 1px solid #d9dee2;
  border-radius: 8px;
}
.starter-shelf {
  background: #233540;
  color: #fff;
  border-radius: 12px;
  padding: 16px 18px 18px;
  margin-bottom: 14px;
}
.starter-shelf h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #fff;
}
.starter-row {
  position: relative;
}
.starter-stream {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.starter-book {
  position: relative;
  flex: 0 0 150px;
  aspect-ratio: 2/3;
  scroll-snap-align: start;
  background: #2f4652;
  border-radius: 4px;
  overflow: hidden;
}
.starter-book img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.starter-save {
  position: absolute;
  top: 0;
  right: 8px;
  min-width: 36px;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 0 0 6px 6px;
  background: #ff715b;
  color: #1b1b1b;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.starter-save:disabled {
  background: #285345;
  color: #fff;
  cursor: default;
}
.starter-save:focus-visible,
.starter-arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.starter-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 40px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #ff715b;
  color: #1b1b1b;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.starter-prev {
  left: -6px;
}
.starter-next {
  right: -6px;
}
.starter-arrow[hidden] {
  display: none;
}
#first-book {
  max-width: 440px;
  border: 0;
  border-radius: 14px;
  padding: 22px;
}
#first-book .modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
#first-book h2 {
  margin: 0;
  font-size: 24px;
}
.first-book-count {
  background: #285345;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}
.first-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.first-book-actions > * {
  min-height: 44px;
}
@media (max-width: 600px) {
  .starter-shelf {
    padding: 12px;
  }
  .starter-book {
    flex-basis: 120px;
  }
  .starter-arrow {
    width: 34px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .starter-stream {
    scroll-behavior: auto;
  }
}
/* accessibility.css (loaded last) forces headings blue and disabled buttons grey; on the dark band that fails contrast. */
:root body :is(#starter-shelves, #browse-shelves) .starter-shelf h3 {
  color: #fff !important;
}
:root body :is(#starter-shelves, #browse-shelves) .starter-save,
:root body :is(#starter-shelves, #browse-shelves) .starter-arrow {
  background-color: #ff715b !important;
  color: #1b1b1b !important;
  border: 0 !important;
}
:root body :is(#starter-shelves, #browse-shelves) .starter-save:disabled {
  background-color: #285345 !important;
  color: #fff !important;
  border: 0 !important;
}
:root body :is(#starter-shelves, #browse-shelves) .starter-save:focus-visible,
:root body :is(#starter-shelves, #browse-shelves) .starter-arrow:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
}
/* Add books → Browse shows the same shelves inside the Add books panel. */
#browse-shelves[hidden] {
  display: none;
}
