/* pagelook.js: paper texture strength, per-book presets. In the Aa panel's own style. */

/* texture slider and presets, as the panel's other cards */
.pl-card{margin-top:0}
.pl-card .rs-slrow{display:flex;align-items:center;gap:10px}
.pl-card .rs-slrow input{flex:1}
.pl-end{font:400 13px "EB Garamond",Georgia,serif;color:var(--ink3)}
.pl-presets{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px 0}
.pl-presets:empty{display:none}
.pl-p{display:inline-flex;align-items:center;border-radius:9px;background:color-mix(in srgb,var(--ink) 6%,transparent)}
.pl-chip{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:6px 4px 6px 8px;font:400 15px "EB Garamond",Georgia,serif;color:var(--ink)}
.pl-chip i{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14)}
.pl-p:has(.pl-chip.on){box-shadow:inset 0 0 0 1.5px #C4000C}
.pl-x{all:unset;cursor:pointer;padding:4px 9px 4px 4px;font-size:15px;color:var(--ink3)}
.pl-save{display:flex!important;align-items:center;gap:10px}
.pl-save input{all:unset;flex:1;min-width:0;font:400 16px "EB Garamond",Georgia,serif;color:var(--ink)}
.pl-save input::placeholder{color:var(--ink3)}
.pl-save button{all:unset;cursor:pointer;font:400 12px/1 "Times New Roman",Times,Tinos,serif;letter-spacing:.14em;text-transform:uppercase;color:#C4000C;white-space:nowrap}
.pl-scope{padding:0 18px 14px;font:400 13.5px/1.4 "EB Garamond",Georgia,serif;color:var(--ink3)}
.pl-scope b{font-weight:500;color:var(--ink)}
.pl-scope button{all:unset;cursor:pointer;color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

/* ---------- paper texture strength: the site's own paper tile, one layer up to the usual strength, a second for Intense ---------- */
#pltex{display:none}
html.pl-tex body{background-image:none!important}
html.pl-tex #pltex{display:block;position:fixed;inset:0;z-index:0;pointer-events:none}
html.pl-tex #pltex i{position:absolute;inset:0;background:url("img/paper-soft.svg") repeat;mix-blend-mode:multiply}
html.pl-tex #pltex i:first-child{opacity:var(--pl-t1)}
html.pl-tex #pltex i:last-child{opacity:var(--pl-t2);background-image:url("img/paper-matte.svg?v=2")}
html.pl-tex body main.readp,html.pl-tex body .top,html.pl-tex body .dock{position:relative;z-index:1}
html.pl-tex body .dock{position:fixed}

/* the layer itself blends with the page (blending inside it had nothing beneath and showed as a pale wash) */
html.pl-tex #pltex{mix-blend-mode:multiply}
html.pl-tex #pltex i{mix-blend-mode:normal!important}

/* Save preset: just the words, lower case; clicking turns them into a name field (Enter saves, Escape cancels) */
.pl-save .pl-savebtn{all:unset;cursor:pointer;font:400 16px "EB Garamond",Georgia,serif;color:var(--ink);text-transform:none;letter-spacing:0}
@media (hover:hover){.pl-save .pl-savebtn:hover{color:#C4000C}}
.pl-save .pl-savebtn[hidden],.pl-save input[hidden]{display:none}
