.spu-library{max-width:1320px;margin:auto;padding:clamp(18px,3vw,48px);font-family:inherit}.spu-header{text-align:center;margin:0 auto 32px}.spu-header h2{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3.6rem);margin:.3em 0}.spu-kicker{letter-spacing:.2em;font-size:.75rem;color:#a67a27}.spu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:22px}.spu-card{overflow:hidden;border:1px solid #e3e0d9;border-radius:12px;background:#fff;box-shadow:0 6px 24px #0000000a}.spu-card a{color:#172332;text-decoration:none;display:block;height:100%}.spu-card a:hover{text-decoration:none}.spu-cover{display:block;width:100%;height:260px;object-fit:cover}.spu-placeholder{background:linear-gradient(135deg,#1d3246,#b18b50)}.spu-card-text{padding:20px}.spu-card h3{font:600 1.35rem Georgia,serif;margin:0 0 12px}.spu-card p{margin:8px 0;line-height:1.55}.spu-card span{display:inline-block;margin-top:12px;color:#8b661f;font-weight:600}.spu-detail{max-width:1080px;margin:30px auto;padding:0 18px}.spu-detail>a{color:inherit}@media(max-width:600px){.spu-cover{height:220px}}

.spu-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,1fr);background:#142331;color:#fff;border-radius:16px;overflow:hidden;margin:0 0 30px;min-height:300px}.spu-hero-image{width:100%;height:100%;min-height:300px;object-fit:cover}.spu-hero-copy{padding:clamp(22px,4vw,54px);align-self:center}.spu-hero-copy h3{font:600 clamp(1.6rem,3vw,2.7rem) Georgia,serif;color:#fff}.spu-hero-copy a{color:#f1cc85}.spu-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:0 0 28px}.spu-filters label{display:grid;gap:6px;flex:1;min-width:180px;font-size:.85rem}.spu-filters input,.spu-filters select{width:100%;padding:11px;border:1px solid #aab3b8;border-radius:7px;background:white;color:#172332}.spu-filters button{padding:12px 22px;border:0;border-radius:7px;background:#142331;color:white;cursor:pointer}.spu-featured{max-width:430px}@media(max-width:700px){.spu-hero{grid-template-columns:1fr}.spu-hero-image{max-height:320px}}
.spu-intro{max-width:720px;margin:16px auto;line-height:1.75}.spu-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:35px auto}.spu-pagination a,.spu-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;border:1px solid #c7c4bd;border-radius:7px;text-decoration:none;color:#172332}.spu-pagination [aria-current]{background:#172332;color:#fff}.spu-detail{max-width:1200px;margin:0 auto;padding:clamp(14px,3vw,42px)}.spu-back{margin-bottom:22px}.spu-back a{color:inherit;text-decoration:none}.spu-back a:hover{text-decoration:underline}.spu-detail img{max-width:100%;height:auto}

/* Cinematic publishing edition */
.spu-home{max-width:1480px;margin:auto;padding:clamp(18px,3vw,52px);color:#172638}.spu-home-heading{text-align:center;margin:0 auto clamp(28px,4vw,56px);max-width:820px}.spu-home-heading h1{font:500 clamp(2.3rem,5vw,4.8rem)/1.1 Georgia,serif;margin:10px 0;color:inherit}.spu-home-subtitle{font-size:1.15rem;letter-spacing:.08em}.spu-home-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);min-height:420px;background:#142331;border-radius:18px;overflow:hidden;color:#fff}.spu-home-hero-media img,.spu-hero-fallback{display:block;width:100%;height:100%;min-height:420px;object-fit:cover}.spu-hero-fallback{background:linear-gradient(140deg,#172e43,#b79559)}.spu-home-hero-text{padding:clamp(24px,4vw,60px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.spu-home-hero-text h2{font:500 clamp(2rem,3vw,3.4rem)/1.2 Georgia,serif;color:#fff;margin:15px 0}.spu-home-hero-text p{line-height:1.8}.spu-cta{display:inline-block;background:#d3b77b;color:#132434!important;text-decoration:none;padding:12px 24px;border-radius:6px;margin-top:20px;font-weight:700}.spu-themes{margin:48px 0}.spu-themes h3,.spu-latest h2{font:500 clamp(1.5rem,2.7vw,2.4rem) Georgia,serif;margin-bottom:20px}.spu-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px}.spu-theme{border:1px solid #d7d5cf;border-radius:12px;padding:24px;background:#f8f7f3;text-decoration:none!important;color:#182a3c!important;display:flex;flex-direction:column;gap:16px;min-height:115px;justify-content:space-between}.spu-theme span{font:500 1.3rem Georgia,serif}.spu-theme small{color:#846224}.spu-reading-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:22px;padding:12px;background:#f4f2ed;border-radius:10px;color:#1b2b3d}.spu-reading-toolbar span{margin-right:8px;font-size:.9rem}.spu-reading-toolbar button{border:1px solid #c6c5be;background:white;color:#1b2b3d;border-radius:7px;padding:9px 14px;cursor:pointer}.spu-reading-toolbar button[aria-pressed=true]{background:#192d40;color:#fff}.spu-detail[data-spu-language=ta] .sprb-meaning,.spu-detail[data-spu-language=ta] .sprb-commentary:not([lang=ta]),.spu-detail[data-spu-language=ta] .sprb-application>p:not([lang=ta]){display:none}.spu-detail[data-spu-language=en] .sprb-page-title h2[lang=ta],.spu-detail[data-spu-language=en] .sprb-commentary[lang=ta],.spu-detail[data-spu-language=en] .sprb-application>p[lang=ta]{display:none}.spu-detail .sprb-page{max-width:100%}@media(max-width:760px){.spu-home-hero{grid-template-columns:1fr}.spu-home-hero-media img,.spu-hero-fallback{min-height:280px;max-height:420px}.spu-home-hero-text{padding:28px}.spu-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.spu-theme-grid{grid-template-columns:1fr}.spu-reading-toolbar span{width:100%}}

/* v0.4.2: standalone cinematic reading, scoped to Pattern Philosophy only.
   Do not affect StoryPress book sheets or their print/preview constraints. */
.spu-detail{box-sizing:border-box!important;width:min(1200px,calc(100vw - 40px))!important;max-width:none!important;position:relative;left:50%;transform:translateX(-50%);margin:clamp(20px,3vw,46px) 0 70px!important;padding:0 clamp(12px,2vw,28px)!important;color:#1b2936;font-size:16px!important;line-height:1.65!important;}
.spu-detail,.spu-detail *{box-sizing:border-box;}
.spu-detail .spu-back{margin:0 0 20px;font:600 15px/1.5 system-ui,sans-serif;}
.spu-detail .spu-back a{color:#243e51;text-decoration:none;}
.spu-detail .spu-reading-toolbar{max-width:100%;display:flex;align-items:center;gap:10px;padding:14px 18px;margin-bottom:32px;font:500 15px/1.5 system-ui,sans-serif;}
.spu-detail .spu-reading-toolbar button{font:600 14px/1.4 system-ui,sans-serif;padding:11px 17px;min-height:44px;}
.spu-detail .spu-reading-content{width:100%;max-width:100%;font-size:16px!important;}
.spu-detail .spu-reading-content .sprb-page{width:100%!important;max-width:100%!important;min-height:0!important;display:flex;flex-direction:column;font-size:16px!important;line-height:1.7!important;color:#1b2936;}
.spu-detail .sprb-page-top{font:500 12px/1.5 system-ui,sans-serif!important;letter-spacing:.12em;padding-bottom:14px;}
.spu-detail .sprb-page-title{padding:28px 0 20px!important;}
.spu-detail .sprb-page-title h2{font-family:'Noto Serif Tamil',Georgia,serif!important;font-size:clamp(29px,3.3vw,48px)!important;line-height:1.55!important;font-weight:600!important;overflow-wrap:anywhere;}
.spu-detail .sprb-page-title .sprb-meaning{font:400 clamp(18px,2vw,24px)/1.6 Georgia,serif!important;margin:8px auto 0!important;}
.spu-detail .sprb-hero{margin:8px 0 32px!important;width:100%!important;order:initial;}
.spu-detail .sprb-hero img{display:block;width:100%!important;max-width:100%!important;height:auto!important;max-height:650px!important;object-fit:contain!important;margin:0 auto!important;border-radius:12px;}
.spu-detail .sprb-hero figcaption{font:italic 14px/1.6 system-ui,sans-serif!important;margin-top:8px;}
.spu-detail .sprb-prose{font-size:18px!important;line-height:1.85!important;width:min(100%,820px);margin:0 auto;}
.spu-detail .sprb-prose p{font-size:inherit!important;line-height:inherit!important;margin:0 0 1.15em!important;}
.spu-detail .sprb-prose h3{font:700 16px/1.5 system-ui,sans-serif!important;letter-spacing:.05em;margin:30px 0 12px!important;}
.spu-detail .sprb-commentary[lang=ta],.spu-detail .sprb-application [lang=ta]{font-family:'Noto Serif Tamil',serif!important;font-size:19px!important;line-height:2!important;}
.spu-detail .sprb-application{padding-top:20px;margin-top:24px;}
.spu-detail .sprb-page-footer{font:500 12px/1.7 system-ui,sans-serif!important;margin-top:32px;padding:22px 0;}
/* Editorial ordering from the source plugin is preserved, except the standalone reader
   always puts artwork ahead of commentary in its editorial layout. */
.spu-detail .sprb-layout-editorial .sprb-hero{order:2!important;}
.spu-detail .sprb-layout-editorial .sprb-prose{order:3!important;}
.spu-detail .sprb-layout-editorial .sprb-page-footer{order:4!important;}
@media(max-width:700px){.spu-detail{width:calc(100vw - 20px)!important;padding:0 10px!important;margin-top:16px!important}.spu-detail .spu-reading-toolbar{padding:12px;gap:7px}.spu-detail .spu-reading-toolbar button{padding:10px 12px}.spu-detail .sprb-page-title h2{font-size:clamp(25px,6vw,34px)!important}.spu-detail .sprb-hero img{max-height:none!important}.spu-detail .sprb-prose{font-size:17px!important}.spu-detail .sprb-commentary[lang=ta],.spu-detail .sprb-application [lang=ta]{font-size:18px!important}}

/* v0.4.3 Immersive Reading Edition: limited to public Pattern Philosophy pages. */
.spu-detail{--spu-text-scale:1;}
.spu-detail .spu-reading-toolbar{justify-content:space-between;gap:12px;position:relative;z-index:2;}
.spu-language-controls,.spu-display-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center;}
.spu-detail .spu-display-controls button{min-width:44px;}
.spu-detail .spu-reading-content .sprb-prose{font-size:calc(18px * var(--spu-text-scale))!important;}
.spu-detail .spu-reading-content .sprb-prose p{font-size:inherit!important;}
.spu-detail .spu-reading-content .sprb-commentary[lang=ta],.spu-detail .spu-reading-content .sprb-application [lang=ta]{font-size:calc(19px * var(--spu-text-scale))!important;}
.spu-detail .sprb-hero{display:flex;flex-direction:column;align-items:center;}
.spu-detail .sprb-hero img{width:auto!important;height:auto!important;max-width:100%!important;max-height:min(76vh,760px)!important;object-fit:contain!important;}
.spu-adjacent{display:flex;justify-content:space-between;gap:20px;margin:38px auto 0;padding:24px 0;border-top:1px solid #d8d4ca;}
.spu-adjacent a{display:inline-block;padding:12px 16px;border:1px solid #d4cbb9;border-radius:8px;color:#172b3c;text-decoration:none;font:600 15px/1.5 system-ui,sans-serif;}
.spu-adjacent a:hover{background:#f4f1e9;}
.spu-detail:fullscreen{width:100%!important;max-width:none!important;height:100vh!important;overflow-y:auto!important;left:auto!important;transform:none!important;margin:0!important;padding:24px clamp(20px,7vw,100px)!important;background:#fff;color:#172638;}
.spu-detail:fullscreen .spu-reading-content{max-width:1150px;margin:0 auto;}
.spu-detail:fullscreen .spu-back{display:none;}
@media(max-width:700px){.spu-detail .spu-reading-toolbar{align-items:stretch}.spu-language-controls,.spu-display-controls{width:100%}.spu-detail .sprb-hero img{max-height:75vh!important}.spu-adjacent a{font-size:13px;padding:10px}}

/* v0.4.4: reader controls remain accessible in fullscreen; artwork may be compacted without cropping. */
.spu-detail .spu-reading-toolbar{position:sticky!important;top:8px;z-index:50!important;box-shadow:0 3px 16px rgba(20,35,49,.08);border:1px solid #e5e0d6;}
.spu-detail:fullscreen .spu-reading-toolbar{top:0;margin:0 auto 24px;max-width:1150px;background:#f4f2ed;}
.spu-detail .spu-art-toggle[aria-pressed=true]{background:#192d40;color:white;}
.spu-detail.spu-compact-art .sprb-hero img{max-height:clamp(180px,35vh,360px)!important;max-width:100%!important;object-fit:contain!important;}
.spu-detail .sprb-hero{scroll-margin-top:110px;}
.spu-detail .sprb-prose{scroll-margin-top:110px;}
.spu-detail .spu-reading-toolbar button:focus-visible,.spu-adjacent a:focus-visible{outline:3px solid #b58c45;outline-offset:2px;}
@media(max-width:700px){.spu-detail .spu-reading-toolbar{top:0;}.spu-detail .spu-display-controls{gap:5px;}.spu-detail .spu-display-controls button{font-size:13px;padding:8px!important;}.spu-detail.spu-compact-art .sprb-hero img{max-height:240px!important;}}

/* v0.5.0 Page-based reader. Continuous mode remains available. */
.spu-detail .spu-page-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px auto 22px;max-width:1150px;font:600 15px system-ui,sans-serif}
.spu-detail .spu-page-nav[hidden]{display:none!important}
.spu-detail .spu-page-nav button{padding:11px 18px;border:1px solid #cfc9bd;border-radius:8px;background:#142638;color:white;cursor:pointer}
.spu-detail .spu-page-nav button:disabled{opacity:.35;cursor:default}
.spu-detail .spu-page-stack{width:100%;max-width:1150px;margin:auto}
.spu-detail .spu-slide[hidden]{display:none!important}
.spu-detail.spu-paged .spu-slide{height:clamp(360px,calc(100dvh - 220px),950px);overflow:auto;overscroll-behavior:contain;padding:clamp(14px,2vw,28px);border:1px solid #e3dfd7;border-radius:14px;background:#fff;scrollbar-width:thin}
.spu-detail.spu-paged .spu-slide:first-child{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto 1fr;gap:12px 28px;align-items:center}
.spu-detail.spu-paged .spu-slide:first-child .sprb-page-top{grid-column:1/-1;align-self:start}
.spu-detail.spu-paged .spu-slide:first-child .sprb-page-title{grid-column:2;grid-row:2;text-align:left!important}
.spu-detail.spu-paged .spu-slide:first-child .sprb-hero{grid-column:1;grid-row:2;max-height:100%;margin:0!important}
.spu-detail.spu-paged .spu-slide:first-child .sprb-hero img{max-height:calc(100dvh - 300px)!important;max-width:100%!important;object-fit:contain!important}
.spu-detail .spu-slide-prose{max-width:850px;margin:auto;font-size:calc(19px * var(--spu-text-scale));line-height:1.85}
.spu-detail .spu-slide-prose p{font-size:inherit!important;line-height:inherit!important}
.spu-detail .spu-slide-prose [lang=ta]{font-size:calc(20px * var(--spu-text-scale))!important;line-height:1.95!important}
.spu-detail.spu-continuous .spu-slide{height:auto;overflow:visible;padding:22px 0}
.spu-detail.spu-continuous .spu-slide:first-child .sprb-hero{max-width:900px;margin:auto!important}
.spu-detail.spu-continuous .spu-slide:first-child .sprb-page-title{text-align:center}
.spu-detail:fullscreen.spu-paged{overflow:hidden!important;display:flex;flex-direction:column}
.spu-detail:fullscreen.spu-paged .spu-reading-content{flex:1;min-height:0;display:flex}
.spu-detail:fullscreen.spu-paged .spu-page-stack{flex:1;min-height:0}
.spu-detail:fullscreen.spu-paged .spu-slide{height:100%}
@media(max-width:760px){.spu-detail.spu-paged .spu-slide:first-child{display:flex;flex-direction:column;justify-content:flex-start}.spu-detail.spu-paged .spu-slide:first-child .sprb-hero{order:2}.spu-detail.spu-paged .spu-slide:first-child .sprb-page-title{order:1;text-align:center!important}.spu-detail.spu-paged .spu-slide:first-child .sprb-page-top{order:0}.spu-detail.spu-paged .spu-slide:first-child .sprb-hero img{max-height:45dvh!important}.spu-detail.spu-paged .spu-slide{height:clamp(320px,calc(100dvh - 235px),800px)}.spu-detail .spu-page-nav{font-size:12px}.spu-detail .spu-page-nav button{padding:9px}}
@media(prefers-reduced-motion:reduce){.spu-detail *{scroll-behavior:auto!important}}

/* v0.5.1: fixed reader shell, footer outside content, accessible dark mode */
.spu-detail.spu-paged{--spu-bg:#fff;--spu-fg:#172638;--spu-panel:#f4f2ed;--spu-border:#dcd7cc;--spu-button:#142638;--spu-button-text:#fff;color:var(--spu-fg)!important;background:var(--spu-bg)!important;}
.spu-detail.spu-dark{--spu-bg:#101820;--spu-fg:#f0eee9;--spu-panel:#1d2b38;--spu-border:#46525c;--spu-button:#d9bc81;--spu-button-text:#142331;color:var(--spu-fg)!important;background:var(--spu-bg)!important;}
.spu-detail.spu-dark .spu-reading-toolbar,.spu-detail.spu-dark .spu-slide,.spu-detail.spu-dark .spu-page-nav{background:var(--spu-bg)!important;color:var(--spu-fg)!important;border-color:var(--spu-border)!important;}
.spu-detail.spu-dark .spu-reading-toolbar{background:var(--spu-panel)!important;}
.spu-detail.spu-dark .spu-reading-toolbar button:not([aria-pressed=true]){background:var(--spu-bg)!important;color:var(--spu-fg)!important;border-color:var(--spu-border)!important;}
.spu-detail.spu-dark .spu-reading-toolbar button[aria-pressed=true],.spu-detail.spu-dark .spu-page-nav button{background:var(--spu-button)!important;color:var(--spu-button-text)!important;}
.spu-detail.spu-dark .sprb-page-title h2,.spu-detail.spu-dark .sprb-meaning,.spu-detail.spu-dark .spu-slide-prose,.spu-detail.spu-dark .spu-slide-prose *,.spu-detail.spu-dark .sprb-page-top,.spu-detail.spu-dark .spu-back a{color:var(--spu-fg)!important;}
.spu-detail.spu-dark .spu-slide{box-shadow:none!important;}
.spu-detail.spu-paged .spu-page-nav{position:relative!important;inset:auto!important;transform:none!important;z-index:10!important;flex:0 0 auto!important;margin:0 auto!important;padding:12px 8px!important;background:var(--spu-bg)!important;min-height:64px;}
.spu-detail.spu-paged .spu-page-nav button{position:static!important;transform:none!important;}
.spu-detail.spu-paged .spu-reading-content{min-height:0!important;flex:1 1 auto!important;display:flex!important;}
.spu-detail.spu-paged .spu-page-stack{min-height:0!important;flex:1 1 auto!important;}
.spu-detail.spu-paged .spu-slide{height:100%!important;max-height:100%!important;overflow:auto!important;}
.spu-detail.spu-paged{height:min(900px,calc(100dvh - 36px))!important;min-height:420px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:12px clamp(10px,2vw,24px)!important;margin:12px auto!important;left:auto!important;transform:none!important;width:min(1200px,calc(100vw - 24px))!important;}
.spu-detail.spu-paged .spu-back{display:none!important;}
.spu-detail.spu-paged .spu-reading-toolbar{flex:0 0 auto!important;position:relative!important;top:auto!important;margin:0 0 10px!important;padding:8px 12px!important;gap:8px!important;flex-wrap:wrap!important;box-shadow:none!important;}
.spu-detail.spu-paged .spu-reading-toolbar button{min-height:36px!important;padding:7px 10px!important;font-size:12px!important;}
.spu-detail:fullscreen.spu-paged{height:100dvh!important;max-height:100dvh!important;width:100%!important;margin:0!important;padding:10px clamp(10px,3vw,40px)!important;}
.spu-detail.spu-dark.spu-continuous{background:var(--spu-bg)!important;color:var(--spu-fg)!important;}
.spu-detail.spu-dark.spu-continuous .spu-slide{background:var(--spu-bg)!important;color:var(--spu-fg)!important;}
@media(max-width:700px){.spu-detail.spu-paged{height:calc(100dvh - 12px)!important;min-height:380px!important;width:calc(100vw - 12px)!important;padding:6px!important;margin:6px auto!important}.spu-detail.spu-paged .spu-reading-toolbar{padding:5px!important}.spu-detail.spu-paged .spu-page-nav{min-height:55px!important}.spu-detail.spu-paged .spu-slide{padding:12px!important}}

/* v0.5.2 compact, single-line reader controls. Narrow screens scroll controls horizontally, never wrap. */
.spu-detail .spu-reading-toolbar,
.spu-detail.spu-paged .spu-reading-toolbar{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 justify-content:flex-start!important;align-items:center!important;
 gap:8px!important;padding:5px 8px!important;margin-bottom:8px!important;
 min-height:0!important;max-width:100%!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 scrollbar-width:thin;overscroll-behavior-x:contain;
 -webkit-overflow-scrolling:touch;
}
.spu-detail .spu-language-controls,.spu-detail .spu-display-controls,
.spu-detail.spu-paged .spu-language-controls,.spu-detail.spu-paged .spu-display-controls{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 width:auto!important;flex:0 0 auto!important;align-items:center!important;gap:5px!important;
}
.spu-detail .spu-reading-toolbar span{white-space:nowrap!important;margin:0 2px 0 0!important;font-size:11px!important;}
.spu-detail .spu-reading-toolbar button,
.spu-detail.spu-paged .spu-reading-toolbar button{
 flex:0 0 auto!important;min-width:0!important;min-height:30px!important;
 padding:5px 8px!important;font:600 11px/1.2 system-ui,sans-serif!important;
 white-space:nowrap!important;border-radius:5px!important;
}
@media(max-width:700px){
 .spu-detail .spu-reading-toolbar,.spu-detail.spu-paged .spu-reading-toolbar{gap:5px!important;padding:4px!important;}
 .spu-detail .spu-reading-toolbar button,.spu-detail.spu-paged .spu-reading-toolbar button{padding:5px 7px!important;}
}

/* v0.5.3: reserve real grid tracks for toolbar, page and navigation footer. */
.spu-detail.spu-paged{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;align-content:stretch!important;gap:8px!important;overflow:hidden!important;}
.spu-detail.spu-paged .spu-reading-toolbar{grid-row:1!important;margin:0!important;min-height:0!important;align-self:start!important;}
.spu-detail.spu-paged .spu-reading-content{grid-row:2!important;display:block!important;min-height:0!important;height:100%!important;overflow:hidden!important;}
.spu-detail.spu-paged .spu-page-stack{height:100%!important;min-height:0!important;display:block!important;}
.spu-detail.spu-paged .spu-slide{height:100%!important;max-height:100%!important;min-height:0!important;overflow:auto!important;position:relative!important;inset:auto!important;transform:none!important;}
.spu-detail.spu-paged .spu-page-nav{grid-row:3!important;position:static!important;inset:auto!important;transform:none!important;z-index:1!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:14px!important;min-height:48px!important;height:auto!important;margin:0!important;padding:4px 8px!important;border-top:1px solid var(--spu-border,#dcd7cc)!important;box-shadow:none!important;}
.spu-detail.spu-paged .spu-page-nav[hidden]{display:none!important;}
.spu-detail.spu-paged .spu-page-nav button{position:static!important;inset:auto!important;transform:none!important;margin:0!important;min-height:36px!important;padding:7px 14px!important;}
.spu-detail.spu-paged .spu-page-status{min-width:85px;text-align:center;white-space:nowrap;font-size:13px;}
.spu-detail.spu-paged .spu-slide-prose{max-width:820px;}
.spu-detail.spu-paged .spu-slide-prose p{margin-bottom:.9em!important;}
.spu-detail.spu-paged .spu-slide-prose [lang=ta]{line-height:1.75!important;}
@media(max-width:650px){.spu-detail.spu-paged .spu-page-nav{gap:6px!important;padding:3px!important}.spu-detail.spu-paged .spu-page-nav button{padding:7px 8px!important;font-size:12px!important}}

/* v0.6.0: genuine facing-page layout, retaining isolated StoryPress reflection data. */
@media(min-width:900px){
 .spu-detail.spu-paged.spu-book-view{width:min(1500px,calc(100vw - 20px))!important;}
 .spu-detail.spu-paged.spu-book-view .spu-page-stack{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important;align-items:stretch!important;}
 .spu-detail.spu-paged.spu-book-view .spu-slide{width:100%!important;min-width:0!important;max-width:none!important;border-radius:0!important;box-sizing:border-box!important;padding:clamp(14px,2.2vw,36px)!important;overflow:auto!important;}
 .spu-detail.spu-paged.spu-book-view .spu-slide:not([hidden]):first-child{border-radius:12px 0 0 12px!important;}
 .spu-detail.spu-paged.spu-book-view .spu-slide:not([hidden]) + .spu-slide:not([hidden]){border-left:1px solid var(--spu-border,#dcd7cc)!important;box-shadow:inset 8px 0 12px -12px #0006!important;}
 .spu-detail.spu-paged.spu-book-view .spu-slide[hidden]{display:none!important;}
 .spu-detail.spu-paged.spu-book-view .spu-slide .sprb-hero img{max-height:45dvh!important;width:100%!important;object-fit:contain!important;}
 .spu-detail.spu-paged.spu-book-view .spu-slide-prose{max-width:none!important;}
}
@media(max-width:899px){.spu-detail .spu-book-toggle{display:none!important;}}

.spu-card-chapter{display:block;color:#806224;font-size:.78rem;margin:0 0 10px}.spu-filters{flex-wrap:wrap}.spu-filters label{min-width:150px}
