/* Story library: the existing science night sky, with warm bookshop light. */
.story-library{padding:clamp(24px,5vw,64px);border:1px solid var(--line);border-radius:22px;background:radial-gradient(ellipse at 100% 0,#51354355,transparent 60%),#0b192cf5}.story-library h1{font-family:Georgia,serif;font-size:clamp(34px,5vw,64px);font-weight:400;line-height:1.12;letter-spacing:-.025em;margin:16px 0 22px;max-width:850px;text-wrap:balance}.story-intro{color:var(--muted);font-size:20px;max-width:650px}.story-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:40px 0}.story-category{display:flex;flex-direction:column;position:relative;text-decoration:none;color:var(--ink);padding:28px;border:1px solid #456074;border-radius:15px;background:linear-gradient(135deg,#17334499,#142034);min-height:260px}.story-category:nth-child(2){background:linear-gradient(135deg,#1d274c,#111c2b)}.story-category:nth-child(3){background:linear-gradient(135deg,#3e283d,#1d2031)}.story-category:nth-child(4){background:linear-gradient(135deg,#24413e,#172731)}.story-number{color:var(--gold);font-size:12px;letter-spacing:.14em}.story-category h2{font-family:Georgia,serif;font-weight:400;font-size:28px;line-height:1.2;margin:22px 0 12px}.story-category p{font-size:16px;line-height:1.6;color:var(--muted);margin:0 0 22px}.story-arrow{margin-top:auto;font-size:14px;color:var(--gold)}.story-category:hover{border-color:var(--gold);color:var(--ink)}.story-coming{display:flex;align-items:center;gap:24px;padding:26px 0;border-block:1px solid #44536b}.story-coming>span{font-size:40px;color:var(--gold)}.story-coming h2{font-size:17px;letter-spacing:.14em;font-weight:500;margin:0}.story-coming p{font-size:16px;color:var(--muted);margin:8px 0 0}.story-prayer{margin-top:32px}.story-prayer h2{font-family:Georgia,serif;font-weight:400;font-size:27px;margin:10px 0}.story-prayer p{color:var(--muted);font-size:16px}.story-shelf{margin-top:36px}.story-book{display:grid;grid-template-columns:minmax(150px,240px) 1fr;align-items:center;gap:40px;padding:28px;border:1px solid var(--line);border-radius:16px;background:#0a1525}.story-book h2{font-family:Georgia,serif;font-size:34px;font-weight:400;line-height:1.2;margin:12px 0}.story-book h2 a{color:var(--ink);text-decoration:none}.story-book p{color:var(--muted);font-size:17px}.story-cover{display:block;line-height:0;border-radius:7px;box-shadow:0 18px 35px #0007;overflow:hidden;background:#182a3a}.story-cover img{display:block;width:100%;height:auto}.story-cover:hover{outline:1px solid var(--gold);outline-offset:5px}.story-feature{display:grid;grid-template-columns:minmax(220px,.85fr) 1.15fr;align-items:center;gap:clamp(26px,5vw,64px)}.story-feature h1{font-size:clamp(38px,5vw,64px)}.story-info{margin:28px 0;border-block:1px solid #526077}.story-info summary{padding:17px 0;cursor:pointer;color:var(--gold);font-size:18px}.story-info summary span{font-size:14px;color:var(--muted);margin-left:14px}.story-info>div{padding:0 0 12px}.story-info p{font-size:17px;color:var(--muted);line-height:1.8}.story-cover-hint{font-size:13px;color:var(--muted);margin-top:16px}.story-empty{padding:50px 24px;margin:36px 0;text-align:center;border:1px dashed #4a6376;border-radius:16px;background:#0a152566}.story-empty>span{font-size:48px;color:var(--gold)}.story-empty h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:12px 0}.story-empty p,.story-fan-note{color:var(--muted);font-size:15px}.story-main .breadcrumb{display:flex;gap:9px;flex-wrap:wrap}.nav a[href="stories.html"]{white-space:normal;max-width:180px;line-height:1.4}.header-inner{flex-wrap:wrap;padding-block:14px;gap:16px 24px}.nav{gap:12px 24px;flex:1;min-width:280px}@media(max-width:700px){.story-categories,.story-feature,.story-book{grid-template-columns:1fr}.story-category{min-height:235px}.story-book{padding:22px;gap:24px}.story-cover{max-width:330px;margin-inline:auto;width:100%}.story-library{padding:26px 20px}.story-coming{gap:14px}.story-coming h2{font-size:14px;letter-spacing:.1em}.story-feature-copy{text-align:left}.story-category h2{font-size:26px}.nav{min-width:0}.nav a[href="stories.html"]{max-width:160px}.story-main .breadcrumb{font-size:12px}}@media print{.story-library{background:white;color:#111;border:0}.story-info{display:block}.story-cover{box-shadow:none}}

/* Equal choices: neither reading style is preferred. */
.story-read-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}.story-read-options .button{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;min-height:64px;height:100%;padding:12px;font-size:15px;line-height:1.4;white-space:normal}

/* Separate approved books on the Wonderland shelf. */
.story-book+.story-book{margin-top:24px}.story-credits{font-size:15px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere}

/* The library welcome opens in its own readable, scrollable prayer window. */
.story-prayer h2 a{text-decoration:none;color:var(--gold)}
.abuela-prayer-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-height:88vh;max-height:88dvh;margin:auto;padding:24px;border:1px solid #bda77b;border-radius:18px;background:#10242c;color:#f9ecd8;box-shadow:0 20px 70px #0009;overflow:auto}
.abuela-prayer-dialog::backdrop{background:#031016c9;backdrop-filter:blur(5px)}
.abuela-prayer-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.abuela-prayer-dialog .abuela-prayer-top h2{font:normal 30px/1.2 Georgia,serif;margin:0;color:#f1d6a1}
.abuela-prayer-top button{flex:none;min-height:44px;padding:8px 12px;border:1px solid #baa879;border-radius:8px;background:#18333d;color:#fff0d1;cursor:pointer}
.abuela-prayer-dialog .abuela-prayer-text p{font:18px/1.75 Georgia,serif;margin:0 0 1.15em;color:#f9ecd8}
.abuela-prayer-dialog .abuela-prayer-text p:last-child{margin-bottom:0}
@media(max-width:480px){.abuela-prayer-dialog{padding:18px}.abuela-prayer-dialog .abuela-prayer-top h2{font-size:26px}.abuela-prayer-dialog .abuela-prayer-text p{font-size:17px}}

.imagination-library-link{align-self:start;flex:none;display:inline-flex;align-items:center;min-height:44px;margin:0 0 .3rem;color:#f2d39b;font:1.05rem/1.25 Georgia,serif;text-underline-offset:.24em}
.imagination-library-link:focus-visible{outline:2px solid #f2d39b;outline-offset:3px}

/* Books keep their cover art; the shelf around them stays black, white and gold. */
@media screen{
 .story-library,.story-book,.story-empty,.abuela-prayer-dialog{background:#050505;color:#fff;border-color:#d8b46a80}
 .story-category,.story-category:nth-child(2),.story-category:nth-child(3),.story-category:nth-child(4){background:#050505;color:#fff;border:3px double #d8b46a80;min-height:44px}
 .story-category p,.story-book p,.story-info p,.story-intro,.story-credits,.story-empty p,.story-fan-note,.abuela-prayer-dialog .abuela-prayer-text p{color:#fff}
 .story-number,.story-arrow,.story-info summary,.story-prayer h2 a,.imagination-library-link{color:#d8b46a}
 .story-number,.story-arrow,.story-cover-hint,.story-empty p,.story-fan-note,.story-credits{font-size:14px}
 .story-category,.story-info summary,.story-read-options .button,.story-prayer h2 a,.imagination-library-link,.abuela-prayer-top button{min-height:44px}
 .story-info,.story-coming,.story-prayer{border-color:#d8b46a66}
 .abuela-prayer-top button{background:#050505;color:#fff;border-color:#d8b46a}
}
@media screen and (max-width:700px){
 .story-main .breadcrumb,.story-number,.story-arrow,.story-cover-hint,.story-empty p,.story-fan-note{font-size:14px}
}
