/* Supplied Trziste_dobra system, adapted to live semantic controls. */
:root{--display:Manrope,Arial,sans-serif;--body:Manrope,"Segoe UI",sans-serif;--paper:#f7f3ea;--ink:#242722}
body{font-size:16px;line-height:1.6}.hero h1 em,.registration-story h1 em,.workspace-heading>p{font-family:Lora,Georgia,serif}
.button,button,input,select{min-height:48px}textarea,input,select{font-size:16px}h1{line-height:1.15}h2{line-height:1.2}
.book-item{flex:1 1 0;min-width:0;max-width:264px;position:relative}.book-item>.book{width:100%;max-width:none;display:block;margin:0}.book-item .book__title{font-size:clamp(20px,2vw,26px);line-height:1.16;letter-spacing:-.035em;overflow-wrap:normal;hyphens:auto}.book-item .book__cover{padding:22px 18px 18px 27px}.book-item .book__description{display:none}.book-item .book__category{font-size:12px;line-height:1.35;letter-spacing:.04em}.book-item .book__open{font-size:14px;line-height:1.4;opacity:1}.book-item .book__icon,.td-page-knihovna .book-item .book__icon{width:88px;height:88px;flex-shrink:0;margin-top:auto}
.book-caption{margin:18px 0 0;font-size:15px;line-height:1.5;color:#53594e}.book-caption strong{display:block;color:var(--ink);font-size:16px;line-height:1.4;margin-bottom:6px}.book-caption span{display:block}.shelf-books{align-items:flex-start;padding-bottom:22px}.shelf-books::after{bottom:auto;top:calc(100% - 18px);opacity:.65}.catalog-section .shelf-books{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}.catalog-section .book-item{max-width:264px}.catalog-section .book-item>.book{height:330px}.saved-books .book-item{flex:0 0 calc(33.333% - 14px)}
.turning-book__cover>.book__cover{width:100%;height:100%;color:var(--ink)}.turning-book__cover .book__description{display:none}.turning-book__cover .book__icon{width:88px;height:88px}.turning-book__cover .book__title{font-size:26px}.turning-book__cover .book__open{display:none}
.td-form label,.tdm label{line-height:1.45}.td-panel h2,.tdm h2{overflow-wrap:anywhere}.td-panel p,.tdm p{max-width:75ch}
@media(max-width:980px){.catalog-section .shelf-books{grid-template-columns:repeat(3,minmax(0,1fr))}.shelf-books .book-item>.book{height:280px}.book-item .book__icon{width:64px;height:64px}.book-item .book__cover{padding:18px 12px 14px 21px}}
@media(max-width:700px){
 .wrap{width:calc(100% - 32px)}.header__inner{min-height:72px}.page-main h1{font-size:32px;line-height:1.15}.hero h1{font-size:clamp(32px,8.3vw,44px);line-height:1.14}.hero__lead{font-size:18px;line-height:1.55}.hero .eyebrow{font-size:12px}h2,.shelf-intro h2{font-size:24px;line-height:1.2}.lead{font-size:18px;line-height:1.55}.breadcrumbs,.chapter-nav{font-size:14px}
 .shelf-row .shelf-books,.catalog-section .shelf-books,.saved-books{display:flex;flex-wrap:nowrap;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-left:4px;padding:10px 4px 24px;margin-inline:-4px;max-width:calc(100% + 8px);scrollbar-width:thin;scrollbar-color:#a8742a #e6decd}.shelf-books::after{display:none}
 .shelf-books .book-item,.saved-books .book-item{flex:0 0 156px;width:156px;min-width:156px;scroll-snap-align:start}.shelf-books .book-item>.book{height:232px;min-width:0;max-width:156px}.book-item .book__cover{padding:18px 10px 14px 20px}.book-item .book__title,.td-page-knihovna .book-item .book__title{font-size:20px;line-height:1.15}.book-item .book__category{font-size:11px;line-height:1.25}.book-item .book__icon,.td-page-knihovna .book-item .book__icon{width:56px;height:56px;margin-bottom:12px}.book-item .book__open{font-size:14px}.book-caption{font-size:14px;line-height:1.45;margin-top:16px}.book-caption strong{font-size:16px}.catalog-section{margin-block:32px}.catalog-section h2{margin-bottom:14px}
 .open-book{display:block}.open-book__spine,.open-book__page{padding:24px 20px}.open-book__spine h1{font-size:28px;line-height:1.18}.chapter-section h2{font-size:24px}.chapter-section p,.chapter-section li{font-size:16px;line-height:1.6}.chapter-nav a{display:inline-flex;align-items:center;min-height:48px}.workspace-book h2{font-size:28px}.workspace-heading h1{font-size:32px}.workspace-main{padding:24px 16px}.workspace-nav nav a{min-height:48px}
}
@media(prefers-reduced-motion:reduce){.book{transform:none!important}.shelf-books{scroll-behavior:auto;scroll-snap-type:none}}

.saved-books .book-item>.book{min-width:0;max-width:none;width:100%}.shelf-books{position:relative}.book__cover{height:100%}

.book-item .book__title{overflow-wrap:anywhere}.book-item .book__category{font-size:12px}.book-item .book__cover{gap:6px}
