/* One navigation surface for the illustrated Turkish course editions. */
body.has-deck-navigation{--deck-ink:#0b1420;--deck-paper:#f3e9cf;--deck-gold:#eac887;--deck-mint:#a0decb;--deck-footer-height:76px}
body.has-deck-navigation :is(.nav-arrow,#counter,.counter,#progress,.progress,#viewer-count){display:none!important}
body.has-deck-navigation .deck-controls{position:fixed;bottom:0;left:0;right:0;z-index:210;display:flex;justify-content:center;align-items:center;gap:20px;padding:10px 20px;height:76px;box-sizing:border-box;background:#0b1420fa;border-top:1px solid #f3e9cf33;color:var(--deck-paper)}
body.has-deck-navigation .deck-controls button{font:550 18px/1.4 Inter,system-ui,sans-serif;min-width:44px;min-height:44px;padding:0;background:none;color:var(--deck-paper);border:1px solid #f3e9cf44;border-radius:8px;cursor:pointer;box-sizing:border-box;transition:background .18s,border-color .18s,color .18s}
body.has-deck-navigation .deck-controls button:hover{background:#f3e9cf0d;border-color:#eac88788}
body.has-deck-navigation .deck-controls [data-step]{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0}
body.has-deck-navigation .deck-controls svg{display:block;width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.has-deck-navigation .deck-controls button:disabled{opacity:.25;cursor:default}
body.has-deck-navigation .deck-controls output{font:550 23px/1.4 Inter,system-ui,sans-serif;min-width:96px;text-align:center;font-variant-numeric:tabular-nums;color:var(--deck-paper)}
body.has-deck-navigation .deck-chapter-picker{position:relative;width:350px;min-width:0}
body.has-deck-navigation .deck-controls .deck-chapter-trigger{position:relative;display:flex;align-items:center;gap:16px;width:100%;height:54px;padding:6px 14px;text-align:left;background:linear-gradient(110deg,#eac8870c,#a0decb08);border-color:#eac88766;overflow:hidden}
body.has-deck-navigation .deck-chapter-trigger::after{content:'';position:absolute;bottom:0;left:0;height:2px;width:var(--deck-section-progress,0%);background:linear-gradient(90deg,var(--deck-gold),var(--deck-mint));transition:width .24s ease}
body.has-deck-navigation .deck-chapter-label{min-width:0;flex:1}
body.has-deck-navigation .deck-chapter-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:var(--deck-gold)}
body.has-deck-navigation .deck-chapter-position{font-variant-numeric:tabular-nums;letter-spacing:.02em;color:#bacac8}
body.has-deck-navigation .deck-chapter-title{display:block;font-size:18px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.has-deck-navigation .deck-chapter-trigger>svg{color:var(--deck-gold);transition:transform .18s}
body.has-deck-navigation .deck-chapter-trigger[aria-expanded="true"]{border-color:var(--deck-gold);background:#eac88716}
body.has-deck-navigation .deck-chapter-trigger[aria-expanded="true"]>svg{transform:rotate(180deg)}
body.has-deck-navigation .deck-chapter-menu{position:absolute;bottom:calc(100% + 16px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 158px);box-sizing:border-box;padding:8px;background:linear-gradient(145deg,#182835,#0b1420 80%);border:1px solid #eac88766;border-radius:14px;box-shadow:0 16px 64px #0009,0 0 0 5px #0b142044;animation:deck-menu-enter .16s ease-out}
body.has-deck-navigation .deck-chapter-menu[hidden]{display:none}
body.has-deck-navigation .deck-chapter-heading{display:flex;flex-shrink:0;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 12px 18px;border-bottom:1px solid #f3e9cf22;margin-bottom:6px}
body.has-deck-navigation .deck-chapter-heading strong{font:550 22px/1.2 Georgia,serif;color:var(--deck-paper)}
body.has-deck-navigation .deck-chapter-heading>span{font:450 12px/1.4 Inter,system-ui,sans-serif;color:#bacac8}
body.has-deck-navigation .deck-chapter-list{position:relative;min-height:0;max-height:620px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#eac88766 transparent;padding:4px}
body.has-deck-navigation .deck-controls .deck-chapter-list button{position:relative;display:flex;align-items:center;gap:14px;width:100%;min-height:58px;padding:9px 10px;margin:3px 0;text-align:left;border:1px solid transparent;background:none;overflow:hidden}
body.has-deck-navigation .deck-controls .deck-chapter-list button:hover{background:#f3e9cf0a;border-color:#f3e9cf33}
body.has-deck-navigation .deck-controls .deck-chapter-list button:focus-visible{outline-offset:-3px}
body.has-deck-navigation .deck-controls .deck-chapter-list button[aria-checked="true"]{border-color:#eac88788;background:#eac88710}
body.has-deck-navigation .deck-chapter-list button[aria-checked="true"]::after{content:'';position:absolute;bottom:0;left:0;width:var(--deck-section-progress);height:2px;background:var(--deck-gold)}
body.has-deck-navigation .deck-section-number{display:grid;place-items:center;width:42px;flex-shrink:0;font:italic 26px/1 Georgia,serif;color:#b8c7c6}
body.has-deck-navigation .deck-chapter-list .deck-section-label{font:500 10px/1.3 Inter,system-ui,sans-serif;color:#b8c7c6}
body.has-deck-navigation .deck-chapter-list button:first-child{margin-bottom:9px}
body.has-deck-navigation .deck-chapter-list button[aria-checked="true"] .deck-section-number{color:var(--deck-gold)}
body.has-deck-navigation .deck-section-copy{min-width:0;flex:1}
body.has-deck-navigation .deck-section-title{display:block;font-size:17px;line-height:1.35}
body.has-deck-navigation .deck-section-range{display:block;margin-top:3px;font-size:12px;line-height:1.3;color:#bacac8;font-variant-numeric:tabular-nums}
body.has-deck-navigation .deck-section-current{font-size:12px;color:var(--deck-gold);font-variant-numeric:tabular-nums;flex-shrink:0}
@keyframes deck-menu-enter{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
body.has-deck-navigation .deck-controls :is(button,a):focus-visible{outline:3px solid #f7b889;outline-offset:4px}
body.has-deck-navigation .lecture-chat-toggle{bottom:94px!important}
body.has-deck-navigation.problem-edition.lecture-studio .slide.ps-slide .ps-stage{padding-bottom:calc(var(--deck-footer-height) + 16px)!important}
body.has-deck-navigation .ps-slide{scroll-padding-bottom:calc(var(--deck-footer-height) + 24px)}
@media(max-width:820px){
 body.has-deck-navigation{--deck-footer-height:68px}
 body.has-deck-navigation .deck-controls{gap:6px;padding:7px 8px;height:68px}
 body.has-deck-navigation .deck-chapter-picker{flex:1;max-width:350px}
 body.has-deck-navigation .deck-controls .deck-chapter-trigger{padding:6px 9px;gap:7px}
 body.has-deck-navigation .deck-chapter-meta{font-size:10px;letter-spacing:.03em;gap:4px}
 body.has-deck-navigation .deck-chapter-title{font-size:16px}
 body.has-deck-navigation .deck-chapter-trigger>svg{width:14px;height:14px}
 body.has-deck-navigation .deck-controls output{font-size:17px;min-width:64px}
 body.has-deck-navigation .deck-chapter-menu{position:fixed;left:12px;right:12px;bottom:80px;transform:none;width:auto;max-width:none}
 body.has-deck-navigation .lecture-chat-toggle{bottom:84px!important;right:14px!important}
 body.has-deck-navigation .lecture-chat-toggle>span:last-child{display:none}
}
@media(max-width:360px){body.has-deck-navigation .deck-chapter-position{display:none}body.has-deck-navigation .deck-section-range>span{display:none}}
/* Recover spacing on short teaching canvases without reducing text sizes. */
@media(min-width:821px) and (max-height:780px){
 body.has-deck-navigation.problem-edition.lecture-studio .slide.ps-slide .ps-stage{padding-top:88px!important;row-gap:11px}
 body.has-deck-navigation.problem-edition:not(.coding-edition):not(.genai-edition) .ps-slide[data-ps-layout=closing] .ps-lead{margin-top:16px!important}
 body.has-deck-navigation.genai-edition.lecture-studio .slide.ps-slide .ps-stage{padding-top:86px!important;row-gap:14px}
 body.has-deck-navigation.genai-edition .ga-project img{max-height:300px}
 body.has-deck-navigation.coding-edition.lecture-studio .slide.ps-slide[data-ps-layout=setup] .ps-stage{padding-top:80px!important;row-gap:8px}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .bc-setup-cards{gap:8px}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .bc-setup-cards section{padding:8px 14px}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .bc-setup-cards h2{margin-bottom:12px!important}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .bc-platforms{margin-top:10px;margin-bottom:12px}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .ps-board>.bc-resource{padding:10px 14px;margin:8px 0}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .ps-board{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .ps-board>.bc-resource{margin:0}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .bc-platforms{margin:0;flex-wrap:nowrap}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] :is(.bc-setup-cards,.ps-fine,.bc-inline-links){grid-column:1/-1}
 body.has-deck-navigation.coding-edition .ps-slide[data-ps-layout=setup] .bc-setup-cards{margin-top:14px}
}
@media(prefers-reduced-motion:reduce){body.has-deck-navigation .deck-controls,body.has-deck-navigation .deck-controls *{transition:none!important;animation:none!important}}
@media print{body.has-deck-navigation .deck-controls{display:none!important}}
