#home-example .demo-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:40px;align-items:start}
#home-example .reader{min-width:0;border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}
#home-example .reader-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line);background:#fff}
#home-example .tabs{display:flex;gap:4px;border-radius:7px;padding:4px;background:var(--paper)}
#home-example button,#home-example select{font:inherit;cursor:pointer}
#home-example button{min-height:42px;padding:8px 14px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:14px;font-weight:600}
#home-example .tabs [aria-selected=true]{background:var(--blue);color:white}
#home-example .tabs button:hover:not([aria-selected=true]){background:var(--soft);color:var(--ink)}
#home-example .size-control{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
#home-example select{font-size:13px;color:var(--ink);background:white;border:1px solid var(--line);border-radius:5px;padding:8px;min-height:42px}
#home-example button:focus-visible,#home-example select:focus-visible,#home-example a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
#home-example button:disabled{opacity:.35;cursor:default}
#home-example .document-heading{display:flex;justify-content:space-between;gap:12px;padding:16px 32px;font-size:12px;color:var(--muted)}
#home-example #demo-format-note{white-space:nowrap}
#home-example #demo-epub-view{padding:20px 40px 32px;min-height:465px}
#home-example #demo-reading-content{max-width:58ch;margin:auto;color:#252c38;font:18px/1.7 Georgia,serif}
#home-example #demo-reading-content h3{font-size:1.6em;line-height:1.25;margin:0 0 20px}
#home-example #demo-reading-content p{margin:0}
#home-example #demo-reading-content figure{margin:24px 0 0;text-align:center}
#home-example #demo-reading-content img{display:inline-block;max-width:100%;width:auto;height:auto;max-height:205px;object-fit:contain}
#home-example #demo-pdf-view{padding:8px 32px 28px;background:#f9fafc}
#home-example #demo-pdf-image{display:block;width:auto;max-width:100%;height:auto;max-height:660px;margin:auto}
#home-example .reader-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:12px 20px}
#home-example .reader-footer p{font-size:12px;color:var(--muted);margin:0;text-align:center;font-variant-numeric:tabular-nums}
#home-example .reader-footer button:not(:disabled){color:var(--blue)}
#home-example .reader-footer button:hover:not(:disabled){background:var(--soft)}
#home-example aside{padding-top:20px}
#home-example aside h2{font-size:26px;line-height:1.25;letter-spacing:-.025em;margin:0 0 16px}
#home-example aside p{font-size:15px;color:var(--muted);margin:0 0 20px}
#home-example .try-note{display:flex;gap:12px;align-items:start;color:var(--blue);margin:28px 0}
#home-example .try-note svg{flex-shrink:0}
#home-example .try-note p{color:var(--blue);font-size:14px;margin:0}
#home-example .sample-about{border-top:1px solid var(--line);padding-top:24px;margin-top:32px}
#home-example .sample-about h3{font-size:14px;margin:0 0 12px}
#home-example .sample-about p{font-size:13px;line-height:1.7;margin-bottom:12px}
#home-example ::selection{background:#dce6ff}
#home-example [hidden]{display:none!important}
@media(max-width:1000px){#home-example .demo-layout{grid-template-columns:1fr;gap:24px}
#home-example aside{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;padding:0}
#home-example aside h2,#home-example aside>p{grid-column:1}
#home-example .try-note{grid-column:1;margin:0}
#home-example .sample-about{grid-column:2;grid-row:1/4;margin:0;border-top:0;border-left:1px solid var(--line);padding:0 0 0 24px}
#home-example .reader-toolbar{flex-wrap:wrap}
}
@media(max-width:600px){#home-example .reader-toolbar{padding:12px;gap:12px}
#home-example .tabs{width:100%}
#home-example .tabs button{flex:1;padding:8px}
#home-example .size-control{width:100%;justify-content:space-between}
#home-example .document-heading{padding:16px;font-size:11px}
#home-example #demo-epub-view{padding:12px 20px 24px;min-height:0}
#home-example #demo-pdf-view{padding:8px 12px 24px}
#home-example #demo-reading-content{font-size:18px}
#home-example .reader-footer{padding:10px 8px;gap:4px}
#home-example .reader-footer button{padding:8px}
#home-example aside{display:block}
#home-example .sample-about{border-left:0;border-top:1px solid var(--line);padding:20px 0 0;margin-top:24px}
#home-example aside h2{font-size:24px}
#home-example .try-note svg{transform:rotate(90deg)}
}
#home-example .reader-switch-cue{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;margin:0;padding:16px 20px;background:var(--blue);color:white;border:0;border-radius:0;font-size:15px;font-weight:650;line-height:1.5;cursor:pointer}
#home-example .reader-switch-cue:hover{background:#193a9f}
#home-example .reader-switch-cue:focus-visible{outline:3px solid var(--ink);outline-offset:-4px}
#home-example .switch-cue-arrow{display:block;width:32px;height:32px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#home-example .reader-show-cue #demo-epub-tab{color:var(--blue);background:#fff;border:2px solid var(--blue)}
#home-example .reader-show-cue .switch-cue-arrow{animation:reader-nudge 1.6s cubic-bezier(.16,1,.3,1) 3;animation-play-state:paused}
#home-example .reader-show-cue.cue-visible .switch-cue-arrow{animation-play-state:running}
@keyframes reader-nudge{0%,65%,100%{transform:translateY(5px)}20%{transform:translateY(-10px)}38%{transform:translateY(3px)}50%{transform:translateY(-5px)}}
#home-example .reader-show-cue #demo-epub-tab{animation:epub-invitation 1.6s cubic-bezier(.16,1,.3,1) 3;animation-play-state:paused;transform-origin:center}
#home-example .reader-show-cue.cue-visible #demo-epub-tab{animation-play-state:running}
@keyframes epub-invitation{0%,65%,100%{transform:translateY(0) scale(1)}20%{transform:translateY(-4px) scale(1.045)}38%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.025)}}
#home-example #demo-reading-content p+p{margin-top:1.2em}
#home-example #demo-reading-content figure+p{margin-top:1.2em}
#home-example #demo-reading-content figure{margin-bottom:1.2em}
@media(max-width:600px){#home-example .tabs button{font-size:12px;padding-inline:6px}
#home-example .reader-switch-cue{padding:14px 12px;font-size:14px;gap:10px}
}
@media(prefers-reduced-motion:reduce){#home-example .reader-show-cue .switch-cue-arrow,#home-example .reader-show-cue #demo-epub-tab{animation:none}
}
#home-example #demo-epub-view,#home-example #demo-pdf-view{height:700px;min-height:0;padding:20px 32px 28px}
#home-example #demo-pdf-image{width:100%;height:100%;max-height:100%;object-fit:contain}
#home-example .size-control[hidden]{display:flex!important;visibility:hidden}
#home-example .reader-switch-cue{height:56px}
#home-example .reader-switch-cue.cue-complete{background:var(--soft);color:var(--muted);opacity:1;cursor:default;font-weight:400}
#home-example .cue-complete .switch-cue-arrow{display:none}
#home-example #demo-reading-content{display:flow-root}
#home-example #demo-reading-content p{orphans:2;widows:2}
@media(max-width:600px){#home-example #demo-epub-view,#home-example #demo-pdf-view{height:540px;padding:16px 20px 24px}
}
#home-example .tabs button{border:2px solid transparent}
#home-example .reader-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
#home-example .reader-toolbar .tabs{grid-column:2;justify-self:center}
#home-example .reader-toolbar .size-control{grid-column:3;justify-self:end}
@media(max-width:1100px){#home-example .reader-toolbar{grid-template-columns:1fr;gap:12px}
#home-example .reader-toolbar .tabs{grid-column:1;width:auto;max-width:100%;justify-self:center}
#home-example .reader-toolbar .size-control{grid-column:1;justify-self:end;width:auto}
}

#guest-landing>#home-example{max-width:none;margin:56px 0 0;padding-top:36px;border-top:1px solid var(--line);--blue:var(--accent);--soft:#edf2ff;--paper:#f5f7fb}
#home-example .sample-heading{display:flex;justify-content:space-between;gap:32px;align-items:end;margin-bottom:28px}
#home-example .sample-heading h2{font-size:32px;line-height:1.2;letter-spacing:-.03em;margin:0;max-width:23ch}
#home-example .sample-heading>p{font-size:15px;color:var(--muted);margin:0}
#home-example .demo-layout{grid-template-columns:minmax(0,1fr) 240px;gap:36px}
#home-example button{font-family:var(--ui-font);letter-spacing:0;text-transform:none;box-shadow:none;transition:none}
#home-example select{width:auto;margin:0}
#home-example .size-control{margin:0;flex-direction:row}
#home-example #demo-reading-content{font-size:18px;line-height:1.65}
#home-example #demo-reading-content img{max-height:175px}
.home-sample-link{display:inline-block;margin:0 0 20px;font-size:14px;font-weight:600;text-decoration:none}
@media(max-width:1000px){#home-example .demo-layout{grid-template-columns:1fr}#home-example .sample-heading{align-items:start;flex-direction:column;gap:16px}}
@media(max-width:600px){#home-example .sample-heading h2{font-size:28px}#home-example .sample-heading br{display:none}#home-example #demo-reading-content img{max-height:205px}}

@media(max-width:600px){#home-example .reader-toolbar .tabs{width:100%;max-width:320px}#home-example .tabs button{white-space:nowrap;min-height:44px;font-size:12px}}
