.chdl-page,.chdl-library,.chdl-materials-profile{--chdl-paper:#f0cda7;--chdl-ink:#7a4c4c;--chdl-line:#b9947b;--chdl-light:#f4d6b4;color:var(--chdl-ink)}.chdl-page{font-family:Tahoma,Arial,sans-serif;background:var(--chdl-paper);min-height:75vh}.chdl-page .container{max-width:1320px;width:100%;padding-inline:12px;margin-inline:auto}.chdl-page-title{background:var(--chdl-ink);color:var(--chdl-paper);padding:36px 0 40px}.chdl-page-title h1{font-size:36px;line-height:1.25;margin:0;font-weight:700}.chdl-content{padding-block:30px 60px}.chdl-library{font-size:16px}.chdl-library *,.chdl-materials-profile *{box-sizing:border-box}.chdl-library button,.chdl-library input,.chdl-library select{font:inherit;color:inherit}.chdl-library button{cursor:pointer;border-radius:0}.chdl-library a,.chdl-materials-profile a{color:inherit}.chdl-library [hidden],.chdl-materials-profile [hidden]{display:none!important}.chdl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chdl-tabs{display:flex;flex-wrap:wrap;gap:2px;padding:2px;background:var(--chdl-ink);margin-bottom:24px}.chdl-tabs button{display:flex;align-items:center;gap:12px;min-height:56px;border:0;background:none;color:var(--chdl-paper);padding:13px 22px;font-size:19px;font-weight:700}.chdl-tabs button[aria-selected=true]{background:var(--chdl-paper);color:var(--chdl-ink)}.chdl-tabs button span{font-size:13px;font-weight:400}.chdl-filters{display:grid;grid-template-columns:minmax(220px,1fr) 180px 215px;gap:12px;margin-bottom:20px;align-items:center}.chdl-search input,.chdl-select select{background:var(--chdl-light);border:1px solid var(--chdl-line);width:100%;height:47px;border-radius:0;padding:10px 13px}.chdl-search input::placeholder{color:inherit;opacity:.8}.chdl-select{position:relative}.chdl-select select{appearance:none;padding-right:34px}.chdl-select:after{content:"";position:absolute;right:15px;top:18px;width:7px;height:7px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg);pointer-events:none}.chdl-range{display:flex;gap:16px;grid-column:1/-1}.chdl-range label{display:flex;align-items:center;gap:9px}.chdl-range input{width:110px;max-width:100%;height:42px;border:1px solid var(--chdl-line);background:var(--chdl-light);padding:8px 10px;border-radius:0}.chdl-range input[aria-invalid=true]{outline:2px solid #9a3535}.chdl-reset{border:0;text-decoration:underline;text-underline-offset:3px;padding:6px 0;background:none;justify-self:start;font-size:14px!important}.chdl-medium{grid-column:1/2;max-width:350px}.chdl-viewbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.chdl-switch{display:flex}.chdl-switch button{border:1px solid var(--chdl-ink);padding:10px 20px;min-height:42px;background:none;font-size:17px}.chdl-switch button+button{border-left:0}.chdl-switch button[aria-pressed=true]{background:var(--chdl-ink);color:var(--chdl-paper)}.chdl-switch span{font-size:13px;margin-left:6px}.chdl-count{font-size:14px;line-height:1.4}.chdl-grid+.chdl-count,.chdl-grid{margin-top:16px}.chdl-entity{padding:16px 0;border-bottom:1px solid var(--chdl-line)}.chdl-entity:first-child{padding-top:0}.chdl-entity-head{display:flex;gap:16px;align-items:center;position:relative}.chdl-entity-image{flex:0 0 auto;display:flex;align-items:flex-start;width:58px;min-height:87px}.chdl-entity-image img{display:block;border:1px solid var(--chdl-ink)}.chdl-cover img{width:58px;height:87px;aspect-ratio:2/3;object-fit:cover}.chdl-portrait{width:67px}.chdl-portrait img{max-width:67px;max-height:87px;width:auto;height:auto;object-fit:contain}.chdl-entity-name{flex:1;min-width:0}.chdl-entity-name h2{font-size:19px;font-weight:700;line-height:1.4;margin:0 0 8px}.chdl-entity-name h2 a{text-decoration:none}.chdl-entity-name h2 a:hover{text-decoration:underline}.chdl-entity-meta{font-size:14px;margin:0;line-height:1.45}.chdl-expand{min-width:147px;min-height:42px;border:1px solid var(--chdl-line);background:none;padding:9px 13px;display:flex;gap:16px;justify-content:space-between;align-items:center;font-size:15px!important}.chdl-expand:after{content:"";width:7px;height:7px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg);margin-top:-4px}.chdl-expand[aria-expanded=true]:after{transform:rotate(225deg);margin-top:4px}.chdl-tracks{border-top:1px solid var(--chdl-line);margin:12px 0 0 74px;padding-top:6px}.chdl-actor .chdl-tracks{margin-left:83px}.chdl-track-text{display:flex;gap:12px;align-items:baseline;flex:1;min-width:0}.chdl-track-context{font-size:14px;line-height:1.4}.chdl-library .chda-audio-choice{min-height:42px}.chdl-more{margin:8px 8px 2px;padding:6px 0;font-size:14px!important;border:0;text-decoration:underline;text-underline-offset:3px;background:none}.chdl-pages{display:flex;justify-content:center;gap:8px;padding-top:25px}.chdl-pages button{width:38px;min-height:38px;border:1px solid var(--chdl-line);background:none}.chdl-pages [aria-current=page]{color:var(--chdl-paper);background:var(--chdl-ink)}.chdl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 24px}.chdl-card{min-width:0;border-bottom:1px solid var(--chdl-line);padding-bottom:18px}.chdl-card h2{font-size:18px;line-height:1.4;margin:12px 0 8px}.chdl-card p{font-size:14px;line-height:1.5;margin:6px 0}.chdl-video-thumb{position:relative;display:grid;place-items:center;aspect-ratio:16/9;width:100%;background:var(--chdl-ink);border:1px solid var(--chdl-ink);padding:0;overflow:hidden;color:var(--chdl-paper)!important}.chdl-video-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.9}.chdl-video-thumb:before{content:"";position:relative;z-index:1;width:60px;height:60px;background:var(--chdl-ink)}.chdl-video-thumb:after{content:"";position:absolute;z-index:2;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:17px solid var(--chdl-paper);margin-left:4px}.chdl-provider{position:absolute;right:9px;bottom:8px;background:var(--chdl-ink);color:var(--chdl-paper);padding:4px 7px;font-size:12px}.chdl-document-thumb{width:100%;height:250px;display:grid;place-items:center;background:var(--chdl-light);border:1px solid var(--chdl-line);padding:14px;cursor:zoom-in!important}.chdl-document-thumb img{max-width:100%;max-height:220px;width:auto;height:auto;object-fit:contain}.chdl-articles,.chdl-quotes{grid-template-columns:repeat(2,minmax(0,1fr))}.chdl-article-card,.chdl-quote-card{background:var(--chdl-light);padding:22px 24px;border-top:3px solid var(--chdl-ink);border-bottom:1px solid var(--chdl-line)}.chdl-article-card h2{margin-top:0}.chdl-card blockquote{font-size:20px;line-height:1.55;margin:20px 0}.chdl-card blockquote p{font:inherit}.chdl-card blockquote:before{content:'„'}.chdl-card blockquote:after{content:'“'}.chdl-reference{display:flex;align-items:center;gap:13px;text-decoration:none;font-weight:700}.chdl-reference img{width:38px;height:57px;object-fit:contain;border:1px solid var(--chdl-ink)}.chdl-quote-source{padding-top:14px;border-top:1px solid var(--chdl-line);font-size:14px;line-height:1.5}.chdl-quote-source strong{display:block}.chdl-links{display:flex;flex-wrap:wrap;gap:10px 20px;font-size:14px;margin-top:16px}.chdl-links a{text-decoration:underline;text-underline-offset:3px}.chdl-related{display:flex;gap:10px 18px;flex-wrap:wrap;font-size:14px;margin:12px 0 0}.chdl-empty{padding:28px 0;border-block:1px solid var(--chdl-line)}.chdl-dialog{width:min(1000px,calc(100vw - 30px));max-width:100%;max-height:calc(100dvh - 28px);padding:0;border:1px solid var(--chdl-ink);background:var(--chdl-paper);color:var(--chdl-ink)}.chdl-dialog::backdrop{background:#251a1ad1}.chdl-dialog-head{background:var(--chdl-ink);color:var(--chdl-paper);display:flex;justify-content:space-between;gap:20px;padding:12px 16px;align-items:center}.chdl-dialog-head h2{margin:0;font-size:19px;line-height:1.4}.chdl-dialog-head button{border:0;color:inherit;background:none;width:40px;height:40px;font-size:28px}.chdl-dialog-content{display:grid;place-items:center;background:#302327;min-height:170px}.chdl-dialog-content img{display:block;max-width:100%;max-height:calc(100dvh - 195px);width:auto;height:auto;object-fit:contain}.chdl-dialog-content iframe,.chdl-dialog-content video{display:block;width:100%;aspect-ratio:16/9;border:0;max-height:75vh}.chdl-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 16px;font-size:14px;flex-wrap:wrap}.chdl-gallery-controls{display:flex;gap:12px;align-items:center}.chdl-gallery-controls button{min-width:38px;min-height:38px;border:1px solid var(--chdl-ink);background:none;font-size:23px}.chdl-article{max-width:1000px;margin:auto}.chdl-article h1{font-size:34px;line-height:1.25;margin:0 0 22px;color:inherit}.chdl-article-meta{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:16px;line-height:1.5}.chdl-article-content{font-size:18px;line-height:1.7;margin-top:30px}.chdl-article-content h2{font-size:26px;line-height:1.4;margin:32px 0 18px}.chdl-article figure{margin:30px 0}.chdl-article img{max-width:100%;height:auto}.chdl-article>.chdl-related{border-top:1px solid var(--chdl-line);padding-top:20px;margin-top:35px}.chdl-game-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.chdl-game-sections>a{display:block;padding:28px 20px;border-block:2px solid var(--chdl-ink);background:var(--chdl-light);font-size:22px;font-weight:700;text-align:center;color:var(--chdl-ink)}.chdl-materials-profile{padding-top:10px}.chdl-materials-profile .chdl-grid{margin-top:0}
@media(max-width:1000px){.chdl-tabs button{font-size:17px;padding-inline:14px;gap:9px}.chdl-filters{grid-template-columns:minmax(180px,1fr) 150px 190px}.chdl-track-text{display:block}.chdl-track-context{display:block;margin-top:3px}.chdl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.chdl-page-title{padding:27px 0 29px}.chdl-page-title h1{font-size:27px;line-height:1.3}.chdl-content{padding-block:22px 38px}.chdl-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}.chdl-tabs button{min-height:49px;font-size:16px;padding:10px;justify-content:space-between;gap:5px}.chdl-tabs button span{font-size:12px}.chdl-filters{grid-template-columns:1fr 1.1fr;gap:10px;margin-bottom:17px}.chdl-search{grid-column:1/-1}.chdl-search input{height:44px;font-size:16px}.chdl-select select{height:44px;font-size:14px;padding-left:10px}.chdl-select:after{top:16px;right:12px}.chdl-range{gap:14px;grid-column:1/-1}.chdl-range label{flex:1;gap:9px;font-size:14px}.chdl-range input{min-width:0;width:100%;font-size:16px}.chdl-medium{grid-column:1/-1;max-width:none}.chdl-viewbar{margin-bottom:18px;gap:8px}.chdl-switch button{font-size:15px;padding:9px 14px;min-height:40px}.chdl-switch span{font-size:12px}.chdl-count{font-size:13px}.chdl-entity{padding:14px 0}.chdl-entity-head{gap:12px;align-items:flex-start}.chdl-entity-image{width:48px;min-height:72px}.chdl-cover img{width:48px;height:72px}.chdl-portrait{width:54px}.chdl-portrait img{max-width:54px;max-height:72px}.chdl-entity-name{min-height:72px}.chdl-entity-name h2{font-size:17px;margin-bottom:6px}.chdl-entity-meta{font-size:13px;padding-right:29px}.chdl-expand{min-width:30px;width:30px;min-height:30px;height:30px;position:absolute;right:0;bottom:0;padding:5px;justify-content:center;border:0}.chdl-expand span{display:none}.chdl-tracks{margin-left:60px;margin-top:10px}.chdl-actor .chdl-tracks{margin-left:66px}.chdl-track-context{font-size:13px}.chdl-library .chda-audio-choice{padding-inline:7px;min-height:52px}.chdl-library .chda-choice-duration{font-size:13px}.chdl-more{font-size:13px!important;text-align:left}.chdl-grid{grid-template-columns:minmax(0,1fr);gap:24px}.chdl-card h2{font-size:17px}.chdl-article-card,.chdl-quote-card{padding:20px}.chdl-card blockquote{font-size:19px}.chdl-document-thumb{height:270px}.chdl-document-thumb img{max-height:240px}.chdl-dialog{width:calc(100vw - 20px)}.chdl-dialog-head{padding:8px 10px;gap:10px}.chdl-dialog-head h2{font-size:16px}.chdl-dialog-footer{padding:10px;font-size:13px;gap:12px}.chdl-article h1{font-size:27px}.chdl-article-content{font-size:17px;line-height:1.65}.chdl-game-sections{grid-template-columns:minmax(0,1fr);gap:16px}.chdl-game-sections>a{font-size:20px;padding:22px 16px}}
/* Keep the shared profile controls' glyph color despite library form defaults. */
.chdl-library .chda-library-play{color:#f6d4a9}
.chdl-library .chda-audio-choice{font-size:calc(16px + 1pt);line-height:calc(22px + 1pt);min-height:44px}
.chdl-track-text{display:block;flex:1;min-width:0;font:inherit;overflow-wrap:anywhere}
.chdl-tracks{overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#7a4c4c #e9c7a4;scrollbar-gutter:stable}
.chdl-tracks:focus-visible{outline:2px solid #7a4c4c;outline-offset:3px}
.chdl-entity-head{position:relative}
.chdl-entity-head a{position:relative;z-index:2}
.chdl-entity-meta{pointer-events:none}
.chdl-library .chdl-expand{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end;width:100%;height:100%;padding:0;min-width:0;min-height:0;border:0;background:none;z-index:1}
.chdl-expand::after{display:none!important;content:none!important}
.chdl-expand-badge{display:flex;align-items:center;gap:16px;padding:9px 13px;min-height:42px;min-width:147px;border:1px solid #b9947b;font-size:15px}
.chdl-expand-badge svg{display:block;flex:0 0 12px;margin-left:auto}
.chdl-expand[aria-expanded=true] svg{transform:rotate(180deg)}
.chdl-expand:hover{background:#7a4c4c06!important}
.chdl-expand:focus-visible{outline:2px solid #7a4c4c;outline-offset:3px}
.chdl-entity-name{padding-right:165px}
.chdl-track-sort{max-width:245px;margin-left:auto}
.chdl-track-sort select{height:40px;font-size:14px}
.chdl-track-sort::after{top:14px}
.chdl-video-title{font:inherit!important;text-align:left;border:0;background:none;padding:0;text-decoration:none}
.chdl-video-title:hover{text-decoration:underline}
@media(max-width:767px){.chdl-entity-name{padding-right:24px}.chdl-library .chdl-expand-badge{display:flex;position:absolute;right:0;bottom:0;min-width:30px;min-height:30px;padding:5px;border:0}.chdl-expand-badge .chdl-expand-label{display:none}.chdl-expand-badge svg{display:block}.chdl-viewbar{flex-wrap:wrap}.chdl-track-sort{order:3;max-width:none;width:100%}.chdl-library .chda-audio-choice{min-height:52px}.chdl-track-sort select{font-size:14px}}
/* Let content shrink inside the viewport; pagination must not set page width. */
.chdl-page,.chdl-page .container{box-sizing:border-box;min-width:0}
.chdl-page-title.chdl-page-title--empty{padding:0;min-height:76px;width:100%}
.chdl-library,.chdl-library [role=tabpanel],.chdl-filters>*,.chdl-viewbar>*{min-width:0;max-width:100%}
.chdl-filters{grid-template-columns:minmax(0,1fr) minmax(0,180px) minmax(0,245px)}
.chdl-library label{margin-bottom:0}
.chdl-pages{max-width:100%;flex-wrap:wrap;align-items:center}
.chdl-pages button{flex:0 0 38px;padding:0}
.chdl-page-gap{display:grid;place-items:center;flex:0 0 16px}
.chdl-entity,.chdl-tracks{overflow-anchor:none}
.chdl-single .chdl-entity-name{padding-right:0}
.chdl-library .chdl-video-title{font-weight:600!important}
.chdl-video-profile,[data-chdl-dialog-profile]{display:inline-flex;align-items:baseline;gap:7px;max-width:100%;text-decoration:none}
.chdl-video-profile{font-size:14px;line-height:1.5}
.chdl-video-profile span,[data-chdl-dialog-profile] span{min-width:0;overflow-wrap:anywhere}
.chdl-profile-icon{flex:0 0 16px;align-self:flex-start;margin-top:2px}
.chdl-library a[href]{cursor:pointer;text-underline-offset:3px}
.chdl-library a[href]:hover,.chdl-library a[href]:focus-visible{ text-decoration:underline }
.chdl-library a[href]:focus-visible{outline:2px solid var(--chdl-ink);outline-offset:3px}
@media(max-width:1000px){.chdl-filters{grid-template-columns:minmax(0,1fr) minmax(0,150px) minmax(0,230px)}}
@media(max-width:767px){
 .chdl-page-title.chdl-page-title--empty{min-height:56px}
 .chdl-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
 .chdl-library .chda-audio-choice{font-size:15px;line-height:21px;min-height:44px;padding-block:9px;gap:10px}
 .chdl-library .chda-choice-duration{font-size:12px}
 .chdl-pages{gap:4px}
 .chdl-pages button{flex-basis:34px;width:34px;min-height:40px;font-size:14px}
 .chdl-page-gap{flex-basis:12px}
 .chdl-video-profile{font-size:14px}
}
