body.reader-paged{overflow:hidden!important}
body.reader-paged .dr-reader .u-reading-area{min-height:0!important;overflow:hidden!important}
body.reader-paged .dr-reader #u-reading{--rp-pad:24px;box-sizing:border-box;flex:none;min-height:0;max-height:none!important;padding:var(--rp-pad)!important;overflow:hidden!important;overscroll-behavior:contain;touch-action:pan-y}
body.reader-paged .dr-reader .u-knowledge-card{box-sizing:border-box;width:100%;height:100%;padding:0!important;margin:0;column-width:var(--rp-column);column-gap:calc(var(--rp-pad)*2);column-fill:auto;overflow:visible!important}
body.reader-paged .u-knowledge-card h2{break-after:avoid}
body.reader-paged .u-knowledge-card :is(tr,.u-key-note){break-inside:avoid}
body.reader-paged .dr-reader .u-table-scroll{overflow:visible!important}
body.reader-paged .dr-reader #u-selectable{min-width:0}
body.reader-paged .dr-reader .reader-page-position{font-variant-numeric:tabular-nums;pointer-events:none}
body[data-surface=mini].reader-paged #main{min-height:0!important}
body[data-surface=mini].reader-paged .dr-reader #u-reading{--rp-pad:0px;padding:0!important;column-gap:0}
body[data-surface=mini].reader-paged .u-knowledge-card{column-gap:0;column-width:var(--rp-column);width:100%;margin-inline:0}
body[data-surface=mini].reader-paged .dr-reader .u-knowledge-card{padding:0!important}
body[data-surface=mini].reader-paged .dr-reader .reader-page-position{position:fixed;bottom:90px;right:20px;left:auto;margin:0;padding:4px 0;font-size:11px;line-height:1.5;background:var(--reader-paper,#f7f9fb)}
.dr-reader #reader-options.u-panel-open{display:flex!important;flex-direction:column;position:fixed!important;z-index:80!important;right:0!important;left:auto!important;top:0!important;bottom:0!important;width:min(380px,100vw)!important;background:#fcfdff;border:0;overflow:hidden}
.reader-options .reader-panel-head{align-items:center;min-height:72px;padding:18px 24px!important}
.reader-options .reader-panel-head h2{margin:0!important;font-size:19px!important}
.rp-options-body{padding:22px 24px;overflow:auto}
.rp-options-body fieldset{border:0;padding:0;margin:0 0 26px}.rp-options-body legend{font-size:14px;font-weight:600;margin-bottom:12px;color:#536d83}
.rp-choices{display:flex;gap:10px}.rp-choices button{flex:1;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px;border:1px solid transparent;border-radius:12px;background:#f0f4f8;color:#6b8297;font:inherit;font-size:14px;cursor:pointer}.rp-choices b{font-size:24px;line-height:1;font-weight:400}.rp-choices button[aria-pressed=true]{background:#e8f1fc;border-color:#adccef;color:#276abd}.rp-choices button:focus-visible{outline:2px solid #397fcb;outline-offset:2px}.rp-type button{min-height:48px}
body[data-surface=mini] .dr-reader #reader-options.u-panel-open{inset:auto 0 0!important;top:auto!important;width:100%!important;height:auto!important;max-height:70dvh!important;border-radius:24px 24px 0 0!important;padding-bottom:env(safe-area-inset-bottom,0px);animation:reader-sheet-in .22s cubic-bezier(.22,1,.36,1)}
body[data-surface=mini] .reader-options .reader-panel-head{min-height:54px;padding:0 20px 12px!important}
@media(prefers-reduced-motion:reduce){.reader-options{animation:none!important}}

.dr-reader [data-u-block]{scroll-margin-top:110px}
body[data-surface=mini] .dr-reader [data-u-block]{scroll-margin-top:86px}

@media(orientation:landscape) and (max-height:500px){body[data-surface=mini].reader-paged .reader-mobile-dock{height:60px!important;padding:4px 12px!important}body[data-surface=mini].reader-paged .reader-page-position{bottom:72px!important}}
@media(orientation:landscape) and (max-height:500px){body[data-surface=mini].dr-at-reader{max-width:none!important;width:100%;margin:0;box-shadow:none}body[data-surface=mini].reader-paged .reader-mobile-top{height:44px!important;min-height:44px!important;max-height:44px!important}body[data-surface=mini].reader-paged #main{padding-top:44px!important}body[data-surface=mini].reader-paged .u-knowledge-card h2{font-size:20px!important;margin:0 0 12px!important}body[data-surface=mini].reader-paged .u-knowledge-table tr{padding-block:10px!important;break-inside:auto}body[data-surface=mini].reader-paged .u-knowledge-table tr:first-child{padding-top:0!important}}

/* Match handout settings while keeping typography and background choices together. */
.rp-mode-choices button,.rp-theme button{flex-direction:row;min-height:48px;gap:7px;padding:10px 8px}
.rp-mode-choices svg{width:18px;height:18px;flex:none}
.rp-mode-choices .rp-mode-check{width:16px;height:16px;visibility:hidden}
.rp-mode-choices button[aria-pressed=true] .rp-mode-check{visibility:visible}
.rp-theme i{width:20px;height:20px;flex:none;border:1px solid #d1dae5;border-radius:50%}
.rp-options-body fieldset:last-child{margin-bottom:0}
body[data-surface=mini] .rp-options-body{padding:12px 20px 24px}
body[data-surface=mini] .rp-options-body fieldset{margin-bottom:20px}
body[data-surface=mini] .rp-options-body fieldset:last-child{margin-bottom:0}
body.reader-paged #u-reading:focus-visible{outline:2px solid #6d98ce;outline-offset:2px}
