/* A real reading shelf: illustrated covers, white HTML titles, native scrolling. */
.reads-shelf { color: #17382e; -webkit-text-size-adjust: 100%; }
.reads-shelf [hidden] { display: none !important; }
.shelf-shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.shelf-skip { position: fixed; top: 8px; inset-inline-start: 8px; transform: translateY(-160%); z-index: 30; background: #194d40; color: white; padding: 12px 20px; }
.shelf-skip:focus { transform: none; }
.shelf-intro { padding-block: 44px 30px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.shelf-eyebrow { display: block; font-size: 12px; font-weight: 600; color: #53665b; margin: 0 0 10px; }
.shelf-intro h1 { font-size: clamp(34px, 4.3vw, 48px); line-height: 1.4; letter-spacing: -.5px; font-weight: 500; margin: 0; }
.shelf-intro h1 em { font-style: normal; color: #53764e; }
.shelf-intro > p { max-width: 360px; font-size: 16px; line-height: 1.85; color: #53665b; margin: 0 0 5px; }
.shelf-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.shelf-section-heading h2 { font-size: 20px; line-height: 1.6; font-weight: 500; margin: 0; }
.shelf-hint { font-size: 12px; color: #53665b; }
.shelf-track {
  display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: max(32px, calc((100% - 1120px) / 2));
  padding: 24px max(32px, calc((100% - 1120px) / 2)) 24px;
  scrollbar-width: thin; scrollbar-color: #194d4060 transparent;
}
.shelf-card { display: flex; flex: 0 0 calc((min(1120px, 100vw - 64px) - 48px) / 3); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; text-decoration: none; border-radius: 12px; touch-action: manipulation; }
.shelf-cover { width: 100%; aspect-ratio: 3 / 4.6; position: relative; isolation: isolate; overflow: hidden; border-radius: inherit; background: #17382e; color: white; display: flex; flex-direction: column; transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.shelf-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.shelf-art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.shelf-card[data-story="results"] .shelf-art img { object-position: 40% center; }
.shelf-cover::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(9,25,19,.68) 0%,rgba(9,25,19,.22) 24%,rgba(9,25,19,.55) 42%,rgba(9,25,19,.91) 72%,rgba(9,25,19,.96) 100%); }
.shelf-card-meta { padding: 24px 24px 0; font-size: 12px; line-height: 1.8; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.shelf-card-copy { padding: 56px 24px 0; margin-block-start: auto; }
.shelf-card h3 { font-family: inherit; font-size: clamp(25px, 2.3vw, 30px); font-weight: 600; line-height: 1.45; text-wrap: balance; margin: 0 0 12px; color: white; }
.shelf-card-copy p { font-size: 14px; line-height: 1.85; margin: 0; color: white; }
.shelf-card-foot { padding: 20px 24px 24px; font-size: 12px; line-height: 1.8; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shelf-card-foot .shelf-open { display: grid; place-items: center; border: 1px solid #ffffff80; border-radius: 50%; width: 36px; height: 36px; font-size: 22px; flex: none; }
.shelf-library-card .shelf-card-copy { padding-top: 48px; }
.shelf-controls { display: flex; gap: 16px; align-items: center; min-height: 44px; font-size: 12px; color: #53665b; }
.shelf-controls button { border: 1px solid #194d4040; background: transparent; border-radius: 50%; color: #17382e; width: 44px; height: 44px; font: inherit; font-size: 21px; cursor: pointer; touch-action: manipulation; }
.shelf-controls button:disabled { opacity: .35; cursor: default; }
.shelf-controls .shelf-arrows { display: flex; gap: 8px; margin-inline-start: auto; }
.shelf-library { margin-block: 44px 0; border-top: 1px solid #194d4026; padding-block: 40px 44px; }
.shelf-library-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.shelf-library-intro h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.5; font-weight: 500; margin: 0 0 10px; }
.shelf-library-intro p { font-size: 16px; line-height: 1.85; margin: 0; color: #53665b; max-width: 620px; }
.shelf-library-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.shelf-marker-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.shelf-marker { display: flex; flex-direction: column; justify-content: end; position: relative; isolation: isolate; min-height: 240px; padding: 24px; border-radius: 12px; overflow: hidden; color: white; background: #17382e; text-decoration: none; }
.shelf-marker::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(9,25,19,.60),rgba(9,25,19,.92)); }
.shelf-marker .shelf-art { z-index: -2; }
.shelf-marker-code { font-size: 12px; align-self: start; margin-block-end: auto; padding-bottom: 40px; }
.shelf-marker h3 { font-size: 21px; font-weight: 500; line-height: 1.5; color: white; margin: 0 0 8px; }
.shelf-marker > p { font-size: 14px; line-height: 1.8; color: white; margin: 0; }
.shelf-marker > span:last-child { position: absolute; inset-inline-end: 24px; top: 22px; font-size: 22px; }
.shelf-review { margin: 20px 0 0; font-size: 12px; color: #53665b; }
.reads-shelf a:focus-visible, .reads-shelf button:focus-visible, .shelf-track:focus-visible { outline: 2px solid #194d40; outline-offset: 5px; }
.shelf-track:focus-visible { outline-offset: -3px; }
.reads-shelf .reads-footer { border-top: 1px solid #194d4026; }
@media (hover:hover) and (pointer:fine) { .shelf-card:hover .shelf-cover { transform: translateY(-5px); } .shelf-marker:hover h3 { text-decoration: underline; text-underline-offset: 5px; } }
.shelf-card:active .shelf-cover, .shelf-marker:active, .shelf-controls button:active:not(:disabled) { transform: scale(.985); }
@media (max-width: 850px) {
  .shelf-intro { align-items: start; flex-direction: column; gap: 16px; }
  .shelf-intro > p { max-width: 540px; }
  .shelf-card { flex-basis: 310px; }
  .shelf-track { padding-inline-end: calc(100% - 32px - 310px); }
  .shelf-library-intro { flex-direction: column; align-items: start; gap: 12px; }
  .shelf-marker-grid { grid-template-columns: 1fr; }
  .shelf-marker { min-height: 210px; }
}
@media (min-width: 851px) { .shelf-hint { display: none; } }
@media (max-width: 600px) {
  .shelf-shell { width: calc(100% - 40px); }
  .shelf-intro { padding-block: 26px 24px; gap: 12px; }
  .shelf-intro > p { font-size: 16px; }
  .shelf-section-heading h2 { font-size: 18px; }
  .shelf-track { gap: 16px; padding: 20px 20px 22px; scroll-padding-inline: 20px; padding-inline-end: calc(100% - 20px - min(78vw,310px)); }
  .shelf-card { flex-basis: min(78vw,310px); }
  .shelf-cover { aspect-ratio: 9 / 16; }
  .shelf-card h3 { font-size: 27px; }
  .shelf-card-copy { padding-top: 48px; }
  .shelf-card-meta { padding: 22px 22px 0; }
  .shelf-card-copy { padding-inline: 22px; }
  .shelf-card-foot { padding: 18px 22px 22px; }
  .shelf-library { margin-top: 32px; padding-top: 28px; }
  .shelf-library-link { white-space: normal; }
}
@media (max-width: 359px) {
  .shelf-card h3 { font-size: 24px; }
  .shelf-card-copy p { display: none; }
  .shelf-card-foot { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .reads-shelf *, .reads-shelf *::before, .reads-shelf *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .shelf-card:hover .shelf-cover, .shelf-card:active .shelf-cover, .shelf-marker:active { transform: none; }
}
