/* Branding and useful app behaviour, with a compact phone homepage. */
.ui-icon{display:inline-block;width:24px;height:24px;flex-shrink:0;vertical-align:middle}.app-nav>a>.ui-icon{width:25px;height:25px}.app-header{height:92px;position:sticky;top:0}.app-brand img{width:200px;height:80px;max-width:none;object-fit:contain}.app-brand{gap:0}.app-nav{top:92px}.reader-chip{max-width:240px;min-width:106px;gap:8px;padding:8px 13px}.reader-chip .ui-icon{width:20px;height:20px}.reader-chip [data-reader-name]{font-size:.9rem}.app-layout .app-welcome{padding:22px 28px;margin-bottom:24px}.app-welcome h1{font-size:clamp(2rem,3.6vw,3rem)}.book-banner img{height:230px}.app-welcome p:not(.eyebrow){margin-bottom:16px}.discovery-choices{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px}.discovery-choices a{padding:9px 13px;min-height:44px;border:1px solid var(--app-line);border-radius:24px;font-size:.88rem;background:var(--app-card);text-decoration:none;color:var(--app-ink)}.discovery-choices a:hover{border-color:var(--app-accent)}.app-tile .tile-kind{color:var(--app-accent);text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:650;margin:0 0 7px}.app-tile img{height:118px}.app-tile>span{border-top:3px solid var(--section-accent,#a4432d)}.section-stories{--section-accent:#994127}.section-info{--section-accent:#335d4c}.section-celebrate{--section-accent:#79541e}.section-crafts{--section-accent:#70527c}.section-visit{--section-accent:#356472}.section-words{--section-accent:#8a4f49}[data-section=info]{--app-accent:#335d4c}[data-section=celebrate]{--app-accent:#79541e}[data-section=crafts]{--app-accent:#70527c}[data-section=visit]{--app-accent:#356472}[data-section=words]{--app-accent:#8a4f49}.app-layout.night{--app-accent:#ffc5a1}.content-kind{display:inline-block;padding:5px 11px;background:#e2eddf;color:#31523b;font-size:.82rem;border-radius:9px}.install-invitation{padding:26px;border:1px solid var(--app-line);border-radius:20px;background:var(--app-card);display:flex;align-items:center;gap:24px;margin:28px 0}.install-invitation>div{flex:1}.install-invitation h2{margin:10px 0}.install-invitation p{margin-bottom:0}.install-invitation>a{flex-shrink:0}.install-preview{display:flex;align-items:center;gap:20px;margin:24px 0}.install-preview img{border-radius:22px;width:96px;height:96px}.install-preview strong{font-size:1.3rem}.file-label{display:block;margin:20px 0;font-weight:600}.file-label input{display:block;width:100%;max-width:100%;margin-top:8px;font-size:.88rem}.backup-panel p,.offline-panel>p{max-width:800px}.backup-panel button{padding:10px 16px}.reader-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;margin-right:8px;background:#efe1cb;color:#653f27;font-size:.74rem;font-weight:750;flex-shrink:0}.reader-switches button{display:inline-flex;align-items:center;text-align:left;overflow-wrap:anywhere}.reader-switches button[aria-pressed=true] .reader-avatar{background:#fff7e7}.reading-progress{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;font-size:.8rem;color:var(--app-muted);margin:18px 0 24px}.reading-progress progress{appearance:none;width:100%;height:7px;border:0;border-radius:20px;overflow:hidden;background:var(--app-line);accent-color:var(--app-accent)}.reading-progress progress::-webkit-progress-bar{background:var(--app-line)}.reading-progress progress::-webkit-progress-value{background:var(--app-accent)}.reading-progress progress::-moz-progress-bar{background:var(--app-accent)}.reader-tools [data-focus-reader]{display:flex;align-items:center;gap:7px}.reader-tools .ui-icon{width:17px;height:17px}.floating-reader{position:fixed;z-index:6;bottom:18px;left:calc(50% + 97px);transform:translateX(-50%);max-width:calc(100vw - 230px);display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:var(--app-card);color:var(--app-ink);border:1px solid var(--app-line);border-radius:18px;padding:8px 12px;box-shadow:0 5px 28px #302b2420}.floating-reader button{padding:7px 12px;min-height:40px;font-size:.85rem}.floating-reader a{padding:7px;font-size:.85rem}.floating-reader [data-floating-settings]{display:flex;flex-wrap:wrap;gap:7px;width:100%}.focus-reading .app-header,.focus-reading .app-nav,.focus-reading .app-footer,.focus-reading .reader-cover,.focus-reading .caption,.focus-reading .breadcrumb,.focus-reading .reader-tools,.focus-reading .reading-resume{display:none!important}.focus-reading .app-content{margin-left:0;padding-bottom:100px}.focus-reading .narrow{max-width:830px}.focus-reading .floating-reader{left:50%;max-width:calc(100vw - 32px)}.focus-reading .reading-progress{position:sticky;top:0;z-index:3;background:var(--app-paper);padding:12px 0}.focus-reading .reading-text p{scroll-margin-top:65px}.app-update{position:fixed;z-index:30;bottom:20px;right:20px;width:350px;max-width:calc(100vw - 32px);padding:20px;background:var(--app-card);color:var(--app-ink);border:1px solid var(--app-line);border-radius:18px;box-shadow:0 5px 30px #302b2430}.app-update p{margin-top:0;font-size:.9rem}.app-update button{padding:9px 12px;margin:0 5px 4px 0;font-size:.85rem}.app-layout .card-body>p:not(.eyebrow){font-size:.9rem}.app-layout .filters label{font-size:.9rem}.app-layout .filters .check{font-size:.9rem}.app-layout .filters .unread-check{flex:1 1 180px}.app-layout select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23675d51' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:18px;padding-right:34px}.reader-switches button:focus-visible{outline:3px solid #357986}.backup-panel [data-import-preview]{border-top:1px solid var(--app-line);margin-top:16px;padding-top:10px}.app-layout [tabindex="-1"]:focus:not(:focus-visible){outline:0}
@media(min-width:701px) and (max-width:1099px){.app-header{height:86px}.app-nav{top:86px}.app-brand img{width:185px;height:74px}.floating-reader{left:calc(50% + 42px);max-width:calc(100vw - 116px)}.book-banner img{height:200px}}
@media(max-width:700px){.app-header{height:76px;padding:5px 16px;gap:8px}.app-brand img{width:160px;height:64px}.reader-chip{min-width:106px;max-width:145px;padding:8px 10px;gap:7px}.reader-chip [data-reader-name]{font-size:.85rem}.app-nav{top:auto}.app-nav>a{font-size:.78rem;min-height:52px}.app-nav>a>.ui-icon{width:23px;height:23px}.app-layout .app-welcome{grid-template-columns:1fr 108px;padding:18px 16px;gap:8px;margin-bottom:20px}.app-welcome>div:first-child{display:contents}.app-welcome .eyebrow{grid-column:1/-1;font-size:.72rem;margin:0}.app-welcome h1{grid-column:1;grid-row:2;font-size:1.65rem;line-height:1.15;margin:5px 0 8px}.app-welcome .book-banner{grid-column:2;grid-row:2/4;align-self:center}.book-banner img{height:130px}.app-welcome p:not(.eyebrow){grid-column:1;grid-row:3;font-size:.9rem;line-height:1.5;margin:0 0 8px}.app-welcome .button{grid-column:1/-1;grid-row:4;justify-self:start;font-size:.9rem;padding:10px 14px}.app-layout .section-title h2{font-size:1.45rem}.app-layout .app-home.wrap{padding-top:16px}.discovery-choices{gap:8px;margin-bottom:16px}.discovery-choices a{font-size:.83rem;padding:9px 11px}.app-tile img{height:82px}.app-tile .tile-kind{font-size:.68rem}.app-tile small{font-size:.85rem}.app-tile strong{font-size:1.02rem}.app-layout .app-tile>span{padding:12px}.app-layout .collection-tiles .eyebrow{font-size:.75rem}.app-layout .collection-tiles p{font-size:.9rem}.app-layout .card .eyebrow{font-size:.75rem}.app-layout .card-body>a{font-size:.9rem}.install-invitation{display:block;padding:20px}.install-invitation>a{margin-top:16px}.reading-progress{grid-template-columns:auto 1fr;gap:8px;font-size:.8rem}.reading-progress>span{grid-column:1/-1}.floating-reader{bottom:calc(82px + env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100vw - 24px);padding:7px 9px;gap:5px}.floating-reader button{font-size:.8rem;padding:7px 9px;min-height:44px}.floating-reader a{font-size:.8rem;padding:7px}.focus-reading .floating-reader{bottom:calc(12px + env(safe-area-inset-bottom))}.app-update{bottom:calc(82px + env(safe-area-inset-bottom));right:16px}.file-label input{padding:8px}.app-layout .reader-tools button{font-size:.85rem}.install-preview{gap:14px}.install-preview img{width:76px;height:76px}.install-preview strong{font-size:1.1rem}.install-preview p{font-size:.9rem}}
@media(max-width:360px){.app-brand img{width:146px;height:59px}.app-header{padding-inline:12px;gap:5px}.reader-chip{min-width:102px;max-width:106px;padding-inline:8px}.reader-chip .ui-icon{width:17px}.app-layout .app-welcome{grid-template-columns:1fr 84px;padding:16px 14px}.app-welcome h1{font-size:1.45rem}.book-banner img{height:112px}.app-welcome p:not(.eyebrow){font-size:.86rem}.floating-reader{width:calc(100vw - 24px);justify-content:center}.app-layout .cards{grid-template-columns:minmax(0,1fr)}.app-layout .card h2{font-size:1.25rem}.app-layout .card-body>p:not(.eyebrow){font-size:.95rem}.app-layout .app-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
[data-home-reading] .reading-card{display:grid;grid-template-columns:90px minmax(0,1fr)}.app-layout [data-home-reading] .reading-card img{height:100%;min-height:120px;aspect-ratio:auto;object-fit:cover}.app-layout [data-home-reading] .card-body{padding:13px}.app-layout [data-home-reading] h2{font-size:1.08rem;margin:4px 0}.app-layout [data-home-reading] .eyebrow{display:none}.app-layout [data-home-reading] .text-button{display:none}[data-home-continue]{margin-bottom:22px}
@media(max-width:700px){.app-layout [data-home-reading]{grid-template-columns:minmax(0,1fr)}[data-home-reading]>.card:nth-child(n+2){display:none}.app-layout [data-home-reading] .reading-card img{min-height:110px}.app-layout [data-home-reading] .card-body>p:not(.eyebrow){margin:4px 0!important}.app-layout [data-home-continue] .section-title{margin-top:0}}
.app-layout .card-body>a{min-height:44px;display:inline-flex;align-items:center}.offline-panel .text-button{display:block;margin-left:0}
@media(max-width:700px){.app-nav>a{font-size:.875rem}.discovery-choices a,.app-tile small,.app-layout .reader-tools button,.floating-reader button,.floating-reader a{font-size:.875rem}.app-tile .tile-kind{font-size:.75rem}}
.home-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;margin:0 0 18px}.home-search label{grid-column:1/-1;font-size:.9rem;font-weight:650}.home-search input{width:100%;min-width:0;font-size:1rem}.home-search button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px}.home-search .ui-icon{width:19px;height:19px}.rail-links a[aria-current]{background:var(--app-soft);border-radius:9px;padding:8px;font-weight:700;color:var(--app-accent)}
@media(max-width:360px){.home-search button{padding:9px 12px}.home-search button .ui-icon{display:none}}
