/* Poof Books "Look inside" viewer (13 Nov 2026). Uses the site theme variables, with fallbacks so it also works on its own. */
.li { border: 1px solid var(--line-subtle, #3A2F57); border-radius: 12px; background: var(--surface, #231B3B); color: var(--cream, #F4EFE6); padding: 12px; max-width: 760px; }
.li-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.li-bar .li-status { flex: 1 1 8rem; text-align: center; font: 600 15px/1.2 var(--sans, 'Inter', system-ui, sans-serif); color: var(--muted, #CFC6E8); }
.li-btn { min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--lilac, #B9A3FF); background: transparent; color: inherit; font: 600 15px/1 var(--sans, 'Inter', system-ui, sans-serif); cursor: pointer; }
.li-btn:hover:not(:disabled) { background: var(--lilac, #B9A3FF); color: var(--on-pink, #18122B); }
.li-btn:disabled { opacity: .4; cursor: default; }
.li :focus-visible { outline: 3px solid var(--pink, #FF5FA2); outline-offset: 2px; }
.li-stage { overflow: auto; max-height: 80vh; background: #fff; border-radius: 6px; text-align: center; }
.li-stage canvas { display: block; margin: 0 auto; max-width: none; }
.li-note { margin: 10px 0 0; font: 14px/1.5 var(--sans, 'Inter', system-ui, sans-serif); color: var(--muted, #CFC6E8); }
.li-text { margin-top: 12px; }
.li-text summary { cursor: pointer; font: 600 16px/1.4 var(--sans, 'Inter', system-ui, sans-serif); min-height: 44px; display: flex; align-items: center; }
.li-text .li-prose { font-family: 'Literata', Georgia, serif; font-size: 18px; line-height: 1.8; }
.li-gate { padding: 18px 8px; text-align: center; }
.li-gate p { margin: 0 0 14px; font: 16px/1.6 var(--sans, 'Inter', system-ui, sans-serif); }
.li-err { color: var(--pink, #FF5FA2); font: 600 15px/1.5 var(--sans, 'Inter', system-ui, sans-serif); }
.li:fullscreen { max-width: none; border-radius: 0; overflow: auto; }
.li:fullscreen .li-stage { max-height: calc(100vh - 140px); }
.li-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The fold (13 Nov 2026): closed by default, arrow turns when open. */
.li-fold { border: 1px solid var(--line-subtle, #3A2F57); border-radius: 12px; background: var(--surface, #231B3B); color: var(--cream, #F4EFE6); max-width: 760px; }
.li-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; font: 700 18px/1.3 var(--sans, 'Inter', system-ui, sans-serif); }
.li-fold > summary::-webkit-details-marker { display: none; }
.li-fold > summary::after { content: ''; margin-left: auto; width: 10px; height: 10px; border-right: 3px solid var(--lilac, #B9A3FF); border-bottom: 3px solid var(--lilac, #B9A3FF); transform: rotate(45deg); transition: transform .15s; }
.li-fold[open] > summary::after { transform: rotate(-135deg); }
.li-fold .li-count { font-weight: 500; font-size: 15px; color: var(--muted, #CFC6E8); }
.li-fold > summary:hover .li-title { text-decoration: underline; }
.li-fold .li { border: 0; border-top: 1px solid var(--line-subtle, #3A2F57); border-radius: 0 0 12px 12px; background: transparent; max-width: none; padding: 12px 16px 16px; }
@media (prefers-reduced-motion: reduce) { .li-fold > summary::after { transition: none; } }
.look-inside { margin-top: 1.25rem; }
.li-stage.li-fit, .li:fullscreen .li-stage.li-fit { max-height: none; overflow: hidden; }
.li-text-wrap { position: relative; margin-top: 12px; }
.li-text-wrap .li-text { margin-top: 0; }
.li-text-wrap .li-text > summary { padding-right: 120px; }
.li-listen { position: absolute; top: 0; right: 0; }
.li-listen[aria-pressed="true"] { background: var(--lilac, #B9A3FF); color: var(--on-pink, #18122B); }
