.envd-library-hero { padding: clamp(5rem, 10vh, 7rem) 1rem 1.25rem; }
.envd-library-hero > div { padding: clamp(1.25rem, 4vw, 2.25rem); background: #211a20cd; backdrop-filter: blur(10px); border: 1px solid #ffffff40; }
.envd-library-hero h1 { font-size: clamp(2.6rem, 7.5vw, 6rem); }
.envd-library-hero h1 + div { margin-bottom: 1rem; }
.envd-library-hero h1 ~ p { font-size: 1rem; }
.story-finder { max-width: 72rem; margin: 0 auto 4rem; padding: 0 clamp(1rem, 3vw, 2rem); scroll-margin-top: 5.5rem; }
.story-finder__controls { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.story-finder__switch, .story-finder input, .story-finder__count, .story-finder__empty, .story-finder__message, .story-finder__results > p, .story-finder__pages, .story-slideshow__controls, .story-card, .story-neighbours {
  background: #fffaf1dd;
  backdrop-filter: blur(16px);
  border: 1px solid #ffffff8c;
  box-shadow: 0 6px 24px #160d162b;
}
.story-finder input { width: min(100%, 18rem); min-width: 0; min-height: 44px; padding: .5rem .85rem; border-radius: 1.5rem; color: #211a20; font-size: 1rem; }
.story-finder input::placeholder { color: #574a54; opacity: 1; }
.story-finder button { padding: .5rem .7rem; border: 1px solid transparent; border-radius: .65rem; background: #ffffff7c; color: #211a20; font-weight: 650; cursor: pointer; }
.story-finder button:hover:not(:disabled) { background: #ffffffc4; }
.story-finder button[aria-pressed='true'], .story-finder button.story-arrow { background: #30232bf0; color: #fff7e6; border-color: #ffffff55; }
.story-finder button[aria-pressed='true']:hover, .story-finder button.story-arrow:hover { background: #513543f2; }
.story-finder :focus-visible, .story-neighbours :focus-visible { outline: 3px solid #965600; outline-offset: 3px; }
.story-finder button:disabled { opacity: .55; cursor: default; }
.story-finder__switch { display: flex; align-items: center; gap: .2rem; padding: .2rem; border-radius: 1.5rem; }
.story-finder__switch button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 1.25rem; }
.story-finder__switch svg { display: block; }
.story-finder__results { margin-top: 1rem; scroll-margin-top: 5.5rem; }
.story-finder__count, .story-finder__empty, .story-finder__message, .story-finder__results > p { width: fit-content; border-radius: .8rem; padding: .4rem .7rem; color: #30232b; font-size: .9rem; }
.story-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: .8rem 0 0; padding: 0; }
.story-card { display: flex; flex-direction: column; height: 100%; min-width: 0; overflow: hidden; border-radius: .8rem; color: #30232b; text-decoration: none; }
.story-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story-card img[hidden] { display: none; }
.story-card__text { display: flex; flex: 1; flex-direction: column; gap: .45rem; padding: 1rem; }
.story-card__text h3 { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.3; font-weight: 650; }
.story-card__meta, .story-card__read { font-size: .8rem; }
.story-card__meta { color: #60515a; }
.story-card__read { margin-top: auto; padding-top: .2rem; font-weight: 650; }
.story-card:hover .story-card__read { text-decoration: underline; }
.story-card__excerpt { color: #494047; line-height: 1.5; }
.story-finder__pages, .story-slideshow__controls { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .5rem; border-radius: .8rem; color: #30232b; text-align: center; }
.story-finder__pages { margin: .85rem auto 0; width: fit-content; max-width: 100%; }
.story-slideshow { max-width: 52rem; margin: .8rem auto 0; }
.story-slideshow .story-card img { max-height: 24rem; }
.story-slideshow .story-card__text h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
.story-slideshow__controls { justify-content: center; gap: 1.25rem; margin: .8rem auto 0; width: fit-content; }
.story-finder button.story-arrow { display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; font-size: 1.6rem; line-height: 1; border-radius: 50%; }
.story-neighbours { max-width: 56rem; margin: 2rem auto 0; padding: 1.5rem 2rem; border-radius: 1.25rem; }
.story-neighbours a { color: #30232b; text-decoration: none; }
.story-neighbours a:hover { text-decoration: underline; }
.story-neighbours__all { display: inline-block; font-size: .9rem; font-weight: 600; }
.story-neighbours__links { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1.25rem; }
.story-neighbours__links a { display: grid; gap: .3rem; max-width: 48%; }
.story-neighbours__links a:last-child { text-align: right; margin-left: auto; }
.story-neighbours__links small { color: #66595f; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.story-neighbours__links a > span { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .story-neighbours { margin: 2rem 1rem 0; padding: 1.25rem; } .story-card__text { padding: .65rem; } .story-finder__pages button { font-size: .8rem; padding-inline: .45rem; } }
