/* Home only. Keep the wordmark centered between the corner controls. */
body.desk-home:not(.desk-immersive)>header.desk-masthead {
 position:relative;max-width:none;min-height:0;border:0;padding-bottom:0;
}
body.desk-home:not(.desk-immersive) .desk-masthead-title {
 min-height:calc(var(--shared-top) + var(--desk-home-orb-size) + 5px - env(safe-area-inset-top, 0px) - 7px);
 padding-inline:calc(max(var(--shared-left),var(--shared-right)) + var(--desk-home-orb-size) + 4px);
 border-bottom:1px solid #ffffff16;
}
body.desk-home:not(.desk-immersive) .desk-masthead-title .wordmark {
 font-size:clamp(1.375rem,6.8vw,3.75rem);
}
body.desk-home:not(.desk-immersive)>.shared-controls {
 left:var(--shared-left);right:var(--shared-right);
}
body.desk-home:not(.desk-immersive)>.shared-controls>.shared-sound {
 left:auto;right:0;top:calc((var(--desk-home-orb-size) - var(--shared-height)) / 2);
}
body.desk-home:not(.desk-immersive)>header .desk-magnifier-dock {
 display:grid;place-items:center;padding:5px 0 3px;
}
body.desk-home:not(.desk-immersive)>header .desk-mode-toggle{
 display:grid;place-items:center;box-sizing:border-box;
 width:46px;height:46px;margin:0;padding:0;border:1px solid var(--sw-brand-border,#8b734e);
 border-radius:50%;background:var(--sw-brand-surface,#211b15);
 color:var(--sw-brand-ink,#eee2c9);cursor:pointer;touch-action:manipulation;
 user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;
}
.desk-magnifier-dock .desk-magnifier-glyph {
 width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;
 stroke-linecap:round;pointer-events:none;
}
.desk-magnifier-dock .desk-mode-toggle:focus-visible{outline:2px solid #ffda90;outline-offset:2px}
body.desk-home:not(.desk-immersive)>main>.desk-mode-bar{height:0;padding:0}
@media(forced-colors:active){
 body.desk-home:not(.desk-immersive)>header .desk-mode-toggle{
  border-color:ButtonText;color:ButtonText;background:ButtonFace;
 }
}
/* Match the reader menu buttons while keeping the close action conspicuous. */
#living>.book-exit,
#living .reader-v2 .reader-toolbar .reader-tools>.reader-close{
 box-sizing:border-box;min-width:44px;min-height:44px;width:44px;height:44px;
 padding:0;border:1px solid #f0ce72;border-radius:5px;
 background:#272117;color:#f8e6bc;line-height:1;text-align:center;
}
#living>.book-exit:hover,
#living .reader-v2 .reader-toolbar .reader-tools>.reader-close:hover{background:#42331f}
#living :is(.book-exit,.reader-close):focus-visible{outline:2px solid #ffdf8f;outline-offset:2px}
@media(forced-colors:active){
 #living>.book-exit,#living .reader-v2 .reader-toolbar .reader-tools>.reader-close{
  border-color:ButtonText;color:ButtonText;background:ButtonFace;
 }
}