/* An in-app reading note with its own scroll area, clear of the bottom bar. */
html body.simple-ui .reading-privacy-dialog{
 box-sizing:border-box;width:min(640px,calc(100vw - 28px));max-width:calc(100vw - 28px);
 max-height:80vh;max-height:80dvh;padding:20px;border:1px solid #b48148;border-radius:18px;
 background:#fff1d6;color:#48291f;box-shadow:0 16px 48px #301a1466;overflow:auto;
}
.reading-privacy-dialog::backdrop{background:#24150db3}
html body.simple-ui .reading-privacy-dialog > header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
html body.simple-ui .reading-privacy-dialog h2{margin:0;font-size:20px;line-height:1.4;color:#48291f}
html body.simple-ui .reading-privacy-dialog .reading-privacy-close{flex:none;min-height:44px;padding:8px 12px;border:1px solid #a57241;border-radius:10px;background:#f2d3a5;color:#48291f;font:inherit;cursor:pointer}
html body.simple-ui .reading-privacy-dialog p{font-size:15px;line-height:1.7;color:#48291f;overflow-wrap:anywhere}
html body.simple-ui .reading-privacy-dialog .reading-privacy-policy{display:inline-flex;align-items:center;min-height:44px;color:#713d1d;text-decoration:underline;line-height:1.5}
html body.simple-ui .reading-privacy-dialog .reading-privacy-hint{font-size:13px}
.reading-privacy-dialog :is(button,a):focus-visible{outline:3px solid #8b451e;outline-offset:3px}

/* Separate footer destinations into two easy-to-tap rows. */
html body.simple-ui.paper-spiritual #main .site-footer .footer-top{
 display:flex!important;justify-content:center!important;margin:0 0 16px!important;
}
html body.simple-ui.paper-spiritual #main .site-footer .footer-actions{
 display:grid;grid-template-columns:minmax(0,1fr);gap:10px;
 width:100%;max-width:360px;min-width:0;
}
html body.simple-ui.paper-spiritual #main .site-footer .footer-action{
 display:flex;align-items:center;gap:12px;box-sizing:border-box;
 width:100%;min-height:48px;padding:12px 16px;border:1px solid #bc8d54;
 border-radius:13px;background:linear-gradient(135deg,#fff1d7,#ffe2b3);
 color:#593522!important;-webkit-text-fill-color:#593522!important;
 text-decoration:none!important;font-size:14px;line-height:1.5;font-weight:600;
 box-shadow:0 3px 9px #8b4f1a14;
}
html body.simple-ui.paper-spiritual #main .site-footer .footer-action svg{
 flex:none;width:20px;height:20px;color:inherit;
}
html body.simple-ui.paper-spiritual #main .site-footer .footer-action span{
 min-width:0;overflow-wrap:anywhere;
}
html body.simple-ui.paper-spiritual #main .site-footer .footer-action:focus-visible{
 outline:3px solid #8b451e;outline-offset:3px;
}
@media(hover:hover){
 html body.simple-ui.paper-spiritual #main .site-footer .footer-action:hover{
  background:#ffdfaa;border-color:#8b5a2e;
 }
}
