/* ===== Aa on a collection page (colllook.js): the reader's text and page settings, applied to the notebook ===== */
/* the text */
html.cl-on body #app .nbk .nbk-text :is(.nbk-w,.nbk-hl,.nbk-nt p,.nbk-qt blockquote,.nbk-cm p){font-family:var(--cl-font)!important;font-weight:var(--cl-weight,400)!important;
  letter-spacing:var(--cl-ls,0)!important;word-spacing:var(--cl-ws,0)!important}
html.cl-on body #app#app .nbk .nbk-text :is(.nbk-w,.nbk-hl){font-size:calc(24px * var(--cl-scale,1))!important;line-height:calc(40px * var(--cl-scale,1) * var(--cl-lh,1))!important}
html.cl-on body #app#app .nbk .nbk-text .nbk-p{line-height:calc(40px * var(--cl-scale,1) * var(--cl-lh,1))!important}
html.cl-on body #app .nbk .nbk-text{background-size:100% calc(40px * var(--cl-scale,1) * var(--cl-lh,1))!important;
  background-image:repeating-linear-gradient(transparent 0 calc(40px * var(--cl-scale,1) * var(--cl-lh,1) - 1px),rgba(110,130,150,.12) calc(40px * var(--cl-scale,1) * var(--cl-lh,1) - 1px) calc(40px * var(--cl-scale,1) * var(--cl-lh,1)))!important}
/* paper texture: the sheet's grain, from none to strong */
html.cl-on body #app .nbk .nbk-sheet{position:relative}
html.cl-on body #app .nbk .nbk-sheet::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:url("img/paper-ground.svg?v=2") 0 0/700px 700px;
  opacity:calc((var(--cl-tex,1) - 1) * .5);mix-blend-mode:multiply}
/* the Aa button in the bar */
html:root body > .nbk-dock .dk .nbk-aa{all:unset;cursor:pointer;display:inline-flex;align-items:baseline;gap:0;padding:6px 10px;margin-left:auto;margin-right:14px;font-family:"EB Garamond Pkg","EB Garamond",serif;color:#1C1B19;line-height:1}
html:root body > .nbk-dock .dk .nbk-aa span:first-child{font-size:22px}html:root body > .nbk-dock .dk .nbk-aa span:last-child{font-size:16px}
@media (hover:hover){html:root body > .nbk-dock .dk .nbk-aa:hover{color:#C4000C}}
html:root body.cl-open > .nbk-dock .dk .nbk-aa{color:#C4000C}
html:root body > .nbk-dock .dk .nbk-dsp{flex:1}
html.night:root body > .nbk-dock .dk .nbk-aa{color:#ECE8E0}
/* the panel: docked right, the page's own paper and type */
.cllook{position:fixed;z-index:60;top:72px;right:18px;bottom:82px;width:340px;overflow:auto;padding:22px;background:#FFFEFD url("img/paper-laid.svg?v=2") 0 0/480px 480px;
  border:1px solid rgba(60,48,36,.12);border-radius:0;box-shadow:0 1px 2px rgba(60,45,30,.06),0 24px 50px -24px rgba(60,45,30,.4);color:#1C1B19;font-family:"EB Garamond Pkg","EB Garamond",serif}
.cl-size{display:flex;align-items:center;justify-content:space-between;padding-bottom:16px;border-bottom:1px solid rgba(60,48,36,.12)}
.cl-size button{all:unset;cursor:pointer;width:62px;height:44px;display:grid;place-items:center;border-radius:8px;background:rgba(28,27,25,.05)}
.cl-size button:disabled{opacity:.35;cursor:default}
@media (hover:hover){.cl-size button:not(:disabled):hover{background:rgba(28,27,25,.1)}}
.cl-steps{display:flex;gap:5px}.cl-steps i{width:5px;height:5px;border-radius:50%;background:rgba(28,27,25,.2)}.cl-steps i.on{background:#1C1B19}
.cl-pages{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:16px 0}
.cl-pages button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:14px;color:#55504a}
.cl-pages button i{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:normal 15px "EB Garamond Pkg","EB Garamond",serif;background:var(--pc);color:#1C1B19;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.cl-pages button[data-k=night] i{color:#ECE8E0}
.cl-pages button.on i{box-shadow:0 0 0 2px #FFFEFD,0 0 0 3.5px #C4000C}.cl-pages button.on span{color:#1C1B19}
.cl-tex{display:flex;align-items:center;gap:12px;padding:6px 0 16px;border-bottom:1px solid rgba(60,48,36,.12);font-size:16px}
.cl-tex input{flex:1;accent-color:#C4000C}
.cl-cust{all:unset;cursor:pointer;display:block;width:100%;box-sizing:border-box;margin:16px 0 4px;padding:10px;text-align:center;font:400 14px "Times New Roman",Times,serif;letter-spacing:.1em;text-transform:uppercase;color:#1C1B19}
.cl-cust::before{content:"";position:absolute}
@media (hover:hover){.cl-cust:hover{background:rgba(28,27,25,.06)}}
.cl-cust.on{color:#C4000C}
.cl-more[hidden]{display:none}
.cl-row{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 4px;border-top:1px solid rgba(60,48,36,.1);font-size:17px}
.cl-row .l{flex:1}.cl-row .v{color:#8a8172}.cl-row .chev{color:#8a8172;font-size:20px;transition:transform .2s}.cl-row .chev.up{transform:rotate(90deg)}
.cl-fonts[hidden]{display:none}
.cl-fonts button{all:unset;cursor:pointer;display:flex;width:100%;box-sizing:border-box;padding:9px 4px 9px 18px;font-size:17px}
.cl-fonts button b{margin-left:auto;color:#C4000C;font-weight:400}
@media (hover:hover){.cl-fonts button:hover{background:rgba(28,27,25,.05)}}
.cl-row .sw{position:relative;width:44px;height:26px;flex:none}
.cl-row .sw input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.cl-row .sw i{position:absolute;inset:0;border-radius:13px;background:rgba(28,27,25,.2);transition:background .2s;pointer-events:none}
.cl-row .sw i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
.cl-row .sw input:checked + i{background:#C4000C}.cl-row .sw input:checked + i::after{transform:translateX(18px)}
.cl-sliders{padding:4px 4px 10px}.cl-sliders.off{opacity:.45}
.cl-sliders label{display:grid;grid-template-columns:1fr 46px;gap:2px 10px;align-items:center;padding-top:10px;font-size:15px;color:#55504a}
.cl-sliders label span{grid-column:1/-1}.cl-sliders input{accent-color:#C4000C}.cl-sliders output{text-align:right;font-size:14px}
.cl-reset{all:unset;cursor:pointer;display:block;width:100%;box-sizing:border-box;margin-top:12px;padding:10px;text-align:center;font:400 13px "Times New Roman",Times,serif;letter-spacing:.1em;text-transform:uppercase;color:#C4000C}
@media (hover:hover){.cl-reset:hover{background:rgba(196,0,12,.06)}}
/* with the panel open, the notebook steps left to stay clear of it */
body.cl-open #app main .nbk{left:-180px!important}
@media (max-width:1300px){body.cl-open #app main .nbk{left:-120px!important}}
/* (stronger than the notebook's own type rules) */
html.cl-on body #app#app .nbk .nbk-text :is(.nbk-w,.nbk-hl,.nbk-nt p,.nbk-qt blockquote,.nbk-cm p){font-family:var(--cl-font)!important;font-weight:var(--cl-weight,400)!important;letter-spacing:var(--cl-ls,0)!important;word-spacing:var(--cl-ws,0)!important}
html:root body > .nbk-dock .dk button.nbk-aa{flex-direction:row!important;width:auto!important;height:auto!important;min-width:0!important;padding:6px 10px!important;align-items:baseline!important}
html:root body > .nbk-dock .dk button.nbk-aa span{display:inline!important;margin:0!important;font-family:"EB Garamond Pkg","EB Garamond",serif!important;letter-spacing:0!important}
html:root body > .nbk-dock .dk button.nbk-aa span:first-child{font-size:22px!important}html:root body > .nbk-dock .dk button.nbk-aa span:last-child{font-size:16px!important}
html body #app .nbk span.nbk-mk.sym{cursor:pointer}
html:root body > .nbk-dock .dk button.nbk-aa{display:inline-flex!important;grid-template-columns:none!important}
html:root body > .nbk-dock .dk button.nbk-aa span{display:inline-block!important;width:auto!important}
