.reader-mode{--reader-bg:#f4f2e9;--reader-paper:#fff7df;--reader-panel:#fffdf6;--reader-ink:#352e22;--reader-muted:#59634f;--reader-line-color:#ded7be;--reader-accent:#27533b;--reader-scale:1;--reader-line:1.9;padding-top:76px!important;padding-bottom:0!important;background:var(--reader-bg);color:var(--reader-ink)}
.reader-mode[data-reader-theme="light"]{--reader-bg:#f3f5f2;--reader-paper:#fff;--reader-panel:#fff;--reader-ink:#24322b;--reader-muted:#536153;--reader-line-color:#d7dfd4}
.reader-mode[data-reader-theme="dark"]{color-scheme:dark;--reader-bg:#101b17;--reader-paper:#192820;--reader-panel:#203329;--reader-ink:#e6eadc;--reader-muted:#b7c5ad;--reader-line-color:#3b5141;--reader-accent:#b8d6a3}
.reader-mode #mainNav,.reader-mode #footerNav,.reader-mode .site-footer,.reader-mode .back-to-top,.reader-mode .detail-breadcrumb,.reader-mode .detail-comments{display:none!important}
.reader-mode .detail-page{--reading-ink:var(--reader-ink);--reading-heading:var(--reader-accent);--reading-muted:var(--reader-muted);background:var(--reader-bg);padding-top:24px;padding-bottom:60px}
.reader-mode .detail-heading h1,.reader-mode .detail-related h2{color:var(--reader-accent)}
.reader-mode .detail-meta,.reader-mode .detail-meta svg{color:var(--reader-muted)}
.reader-mode .detail-category{background:var(--reader-panel);color:var(--reader-accent);border:1px solid var(--reader-line-color)}
.reader-mode .detail-content{background:var(--reader-paper);color:var(--reader-ink);border-color:var(--reader-line-color);box-shadow:0 8px 28px #00000008,3px 3px 0 var(--reader-line-color);font-size:calc(1.25rem * var(--reader-scale));line-height:var(--reader-line)}
.reader-mode .detail-content .article-arabic,.reader-mode .detail-content .article-arabic.article-arabic-text{font-size:calc(1.75rem * var(--reader-scale));line-height:calc(var(--reader-line) + .2);color:var(--reader-ink)}
.reader-mode .detail-content :is(h1,h2,h3,h4,h5,h6){color:var(--reader-accent)}
.reader-mode .detail-content a{color:var(--reader-accent)}
.reader-mode .detail-content blockquote{background:var(--reader-panel);color:var(--reader-ink)}
.reader-mode .detail-content figcaption{color:var(--reader-muted)}
.reader-mode .detail-related-grid article,.reader-mode .detail-share a,.reader-mode .detail-share button,.reader-mode .detail-cover-editorial{background:var(--reader-panel);border-color:var(--reader-line-color)}
.reader-mode .detail-related-copy h3,.reader-mode .detail-share,.reader-mode .detail-share a,.reader-mode .detail-share button{color:var(--reader-ink)}
.reader-mode .detail-related-category,.reader-mode .detail-related>header>a{color:var(--reader-accent)}
.reader-mode .detail-related,.reader-mode .detail-share,.reader-mode .article-photo-album{border-color:var(--reader-line-color)}
.reader-bar{position:fixed;inset:0 0 auto;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:10px max(24px,calc((100vw - 1040px)/2));background:var(--reader-panel);border-bottom:1px solid var(--reader-line-color);font-family:system-ui,sans-serif;color:var(--reader-ink)}
.reader-bar a,.reader-bar button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--reader-ink);font-family:inherit;font-size:14px;text-decoration:none;cursor:pointer}
.reader-bar a:hover,.reader-bar button:hover{background:var(--reader-bg);border-color:var(--reader-line-color)}
.reader-back>span{font-size:23px}.reader-brand{font-size:11px;letter-spacing:.16em;color:var(--reader-muted)}
.reader-actions{display:flex;gap:4px;align-items:center}.reader-actions button:last-child{font-family:Georgia,serif;font-size:21px}.reader-actions button:first-child{font-size:22px}
[data-reader-total]{font-size:11px;background:var(--reader-bg);padding:1px 5px;border-radius:5px}
.reader-progress{position:absolute;bottom:-1px;left:0;right:0;height:2px;overflow:hidden}.reader-progress span{display:block;width:100%;height:100%;background:var(--reader-accent);transform-origin:left;transform:scaleX(0)}
.reader-resume{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:0 auto 24px;padding:12px;background:var(--reader-panel);border:1px solid var(--reader-line-color);border-radius:10px;font-size:13px;color:var(--reader-muted)}
.reader-resume button{border:0;background:transparent;color:var(--reader-accent);text-decoration:underline;min-height:40px;cursor:pointer}
.reader-status{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:3000;max-width:calc(100vw - 32px);width:max-content;padding:10px 16px;border-radius:10px;background:var(--reader-ink);color:var(--reader-paper);font:13px/1.6 system-ui,sans-serif;box-shadow:0 3px 16px #0002;pointer-events:none}.reader-status:empty{display:none}
.reader-dialog{box-sizing:border-box;width:calc(100vw - 32px);max-width:500px;max-height:85dvh;padding:24px;margin:auto;border:1px solid var(--reader-line-color);border-radius:18px;overflow-y:auto;background:var(--reader-panel);color:var(--reader-ink);font:15px/1.65 system-ui,sans-serif}
.reader-dialog::backdrop{background:#05150e99;backdrop-filter:blur(3px)}
.reader-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.reader-dialog h2{font:600 22px/1.4 system-ui,sans-serif;margin:0;color:var(--reader-ink);letter-spacing:normal}
.reader-dialog button,.reader-selection button,.reader-selection select{min-height:44px;padding:8px 12px;border:1px solid var(--reader-line-color);border-radius:8px;background:var(--reader-paper);color:var(--reader-ink);font:14px/1.5 system-ui,sans-serif;cursor:pointer}
.reader-dialog header button{font-size:24px;line-height:1;width:44px;padding:0;background:transparent}
.reader-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;font-weight:500}.reader-setting>div{display:flex;align-items:center;gap:14px}.reader-setting input{max-width:52%;accent-color:var(--reader-accent)}
.reader-themes{padding:0;margin:0 0 24px;border:0}.reader-themes legend{font-size:15px;margin:0 0 10px}.reader-themes button{margin-right:6px}.reader-themes [aria-pressed="true"]{outline:2px solid var(--reader-accent);outline-offset:2px}
.reader-help{font-size:13px;color:var(--reader-muted);margin-bottom:18px}.reader-note-list{list-style:none;padding:0;margin:20px 0}.reader-note-list li{margin:0 0 10px;font-size:14px;color:var(--reader-muted)}
.reader-note-list button{display:block;width:100%;text-align:start}.reader-note-list q{display:block}.reader-note-list button span{display:block;margin-top:8px;font-size:13px;color:var(--reader-muted);white-space:pre-wrap;overflow-wrap:anywhere}
.reader-dialog blockquote{max-height:160px;overflow:auto;font-size:15px;line-height:1.8;background:var(--reader-paper);border-left:3px solid var(--reader-accent);padding:12px;margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.reader-dialog label[for="reader-note"]{display:block;margin-bottom:8px}.reader-dialog textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid var(--reader-line-color);border-radius:8px;background:var(--reader-paper);color:var(--reader-ink);font:16px/1.7 system-ui,sans-serif;resize:vertical}
.reader-form-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 24px}.reader-form-actions button[type="submit"]{background:var(--reader-accent);color:var(--reader-paper)}
.reader-selection{position:fixed;z-index:2000;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;width:max-content;max-width:calc(100vw - 24px);flex-wrap:wrap;padding:8px;border:1px solid var(--reader-line-color);border-radius:14px;background:var(--reader-panel);box-shadow:0 8px 30px #0003;font-family:system-ui,sans-serif}.reader-selection label{margin:0}.reader-selection button,.reader-selection select{padding:8px 10px;font-size:13px}
.reader-mode [hidden]{display:none!important}
.reader-mode .detail-content mark[data-reader-id]{color:#243021!important;font-family:inherit;font-size:inherit;line-height:inherit;border-radius:2px;padding:0;box-decoration-break:clone;-webkit-box-decoration-break:clone;cursor:pointer}
.reader-mode mark[data-color="gold"]{background:#f2d777}.reader-mode mark[data-color="green"]{background:#bfdfad}.reader-mode mark[data-color="blue"]{background:#bbd8ec}
.reader-mode .detail-content mark.reader-underline{background:transparent;color:inherit!important;text-decoration:underline;text-decoration-color:var(--reader-accent);text-decoration-thickness:2px;text-underline-offset:.2em}
.reader-mode :is(.reader-bar,.reader-dialog,.reader-selection) :is(button,a,select,input,textarea):focus-visible,.reader-mode mark:focus-visible{outline:2px solid var(--reader-accent);outline-offset:3px}
@media(max-width:767.98px){.reader-mode{padding-top:70px!important}.reader-bar{padding:8px 10px;gap:4px;min-height:60px}.reader-brand{display:none}.reader-bar a,.reader-bar button{font-size:13px;padding:7px 9px}.reader-actions{gap:0}.reader-mode .detail-page{padding-top:18px}.reader-mode .detail-content{font-size:calc(1.125rem * var(--reader-scale))}.reader-mode .detail-content .article-arabic,.reader-mode .detail-content .article-arabic.article-arabic-text{font-size:calc(1.625rem * var(--reader-scale))}.reader-dialog{max-height:85dvh;border-radius:18px 18px 0 0;margin:auto auto 0;width:100%;max-width:100%;padding:22px 20px max(24px,env(safe-area-inset-bottom))}.reader-selection{justify-content:center;bottom:max(10px,env(safe-area-inset-bottom))}.reader-status{bottom:110px}.reader-mode .detail-related>header{flex-wrap:wrap}}
@media print{.reader-bar,.reader-dialog,.reader-selection,.reader-resume,.reader-status{display:none!important}.reader-mode{padding:0!important;background:#fff}.reader-mode .detail-content{color:#000;background:#fff}.reader-mode .detail-content .article-arabic{color:#000!important}}
.reader-mode:has(.reader-dialog[open]){overflow:hidden}
.reader-note-options{display:flex;gap:14px;margin:12px 0 18px}.reader-note-options label{display:flex;flex:1;flex-direction:column;gap:6px;font-size:13px}.reader-note-options select{min-height:44px;padding:8px;border:1px solid var(--reader-line-color);border-radius:8px;background:var(--reader-paper);color:var(--reader-ink);font-size:14px}
.reader-mode .detail-content mark.reader-underline[data-color="gold"]{text-decoration-color:#a47a12}.reader-mode .detail-content mark.reader-underline[data-color="green"]{text-decoration-color:#498637}.reader-mode .detail-content mark.reader-underline[data-color="blue"]{text-decoration-color:#487db0}
.reader-mode[data-reader-theme="dark"] .detail-content mark.reader-underline[data-color="gold"]{text-decoration-color:#e5c46a}.reader-mode[data-reader-theme="dark"] .detail-content mark.reader-underline[data-color="green"]{text-decoration-color:#98ce81}.reader-mode[data-reader-theme="dark"] .detail-content mark.reader-underline[data-color="blue"]{text-decoration-color:#93c3ec}
/* Compact icon tools and direct color swatches. */
.reader-selection{gap:3px;flex-wrap:nowrap;padding:6px;max-width:calc(100vw - 16px)}
.reader-selection>button,.reader-selection .reader-swatch{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:44px;min-height:44px;padding:0;border:0;background:transparent}
.reader-selection button:hover{background:var(--reader-bg)}
.reader-selection svg{display:block;width:19px;height:19px;pointer-events:none}
.reader-tool-divider{display:block;width:1px;height:22px;background:var(--reader-line-color);flex-shrink:0}
.reader-swatches{display:flex;align-items:center;gap:2px}
.reader-swatches .reader-swatch{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:44px;padding:0;background:transparent;border:0}
.reader-swatch::before{content:"";display:block;width:23px;height:23px;border:1px solid #253c2433;border-radius:50%;background:#f2d777;box-shadow:inset 0 0 0 2px #ffffff4a}
.reader-swatch[data-reader-color="green"]::before,.reader-swatch[data-reader-note-color="green"]::before{background:#bfdfad}
.reader-swatch[data-reader-color="blue"]::before,.reader-swatch[data-reader-note-color="blue"]::before{background:#bbd8ec}
.reader-swatch[aria-pressed="true"]::before{outline:2px solid var(--reader-accent);outline-offset:3px}
.reader-note-options>div{display:flex;flex:1;flex-direction:column;gap:4px;font-size:13px}
.reader-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.reader-summary{max-width:760px}
.reader-report{padding:24px;border:1px solid #dedfd2;border-radius:10px;background:#fffdf6;color:#24332a;font:16px/1.8 system-ui,sans-serif}
.reader-report h1{font-family:Georgia,serif;font-size:24px;line-height:1.4;color:#173c29;letter-spacing:normal;margin:0 0 12px}
.reader-report-source{display:block;font-size:12px;color:#315a3d;overflow-wrap:anywhere}
.reader-report section{margin-top:24px;padding-top:16px;border-top:1px solid #dce0d3}
.reader-report h2{font-size:16px;margin:0 0 10px}.reader-report h3{font-size:13px;margin:18px 0 6px;color:#53614c;letter-spacing:normal}
.reader-report blockquote{max-height:none;margin:0;font-family:"Risalah Amiri",Georgia,serif;font-size:20px;line-height:1.9;color:#24332a;white-space:pre-wrap;border-color:#b59a4e}
.reader-report blockquote[data-color="gold"]{background:#faf2d5}.reader-report blockquote[data-color="green"]{background:#e0eed6}.reader-report blockquote[data-color="blue"]{background:#dfedf7}
.reader-report blockquote[data-type="underline"]{background:transparent;text-decoration:underline;text-underline-offset:.2em}
.reader-report p{font:16px/1.8 system-ui,sans-serif;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:767.98px){.reader-selection>button,.reader-selection .reader-swatch{width:36px;min-width:36px}.reader-note-options .reader-swatch{width:36px;min-width:36px}.reader-report{padding:18px}.reader-summary{max-width:100%}.reader-report h1{font-size:21px}}
.reader-custom-color{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:44px;margin:0!important;border-radius:8px;color:var(--reader-ink);cursor:pointer}
.reader-custom-color svg{width:22px;height:22px}.reader-custom-color input[type="color"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0}
.reader-custom-color:focus-within{outline:2px solid var(--reader-accent);outline-offset:1px}
@media(max-width:767.98px){.reader-custom-color{flex-basis:36px;width:36px}}
@media(max-width:359px){.reader-selection>button,.reader-selection .reader-swatch{width:32px;min-width:32px}.reader-selection .reader-custom-color{flex-basis:32px;width:32px}.reader-selection{gap:2px}}
.reader-format-menu{position:absolute;bottom:calc(100% + 8px);right:0;display:flex;gap:4px;padding:7px;background:var(--reader-panel);border:1px solid var(--reader-line-color);border-radius:12px;box-shadow:0 5px 20px #0002}.reader-format-menu button{width:40px!important;min-width:40px!important;height:44px;font:19px Georgia,serif}
.reader-format-options{display:flex;align-items:center;gap:4px;margin:12px 0}.reader-format-options button{width:40px;padding:6px;font:19px Georgia,serif}.reader-format-options [aria-pressed=true]{background:var(--reader-accent);color:var(--reader-paper)}
.reader-custom-color>span{font:bold 19px Georgia,serif;border-bottom:3px solid var(--reader-accent)}
.reader-mode .detail-content mark.reader-format{background:transparent;color:inherit!important}
.reader-report blockquote[data-type=format]{background:transparent}
.reader-exit{max-width:760px;padding:24px}.reader-exit header{margin-bottom:18px}.reader-exit-brand{font-size:10px;letter-spacing:.14em;color:var(--reader-muted)}
.reader-exit-hero{padding:28px;border-radius:14px;background:linear-gradient(135deg,#244b37,#123927);color:#fff5d9;text-align:center}.reader-exit-emblem{display:block;font-size:36px;color:#dcc07a}.reader-exit-eyebrow{font-size:10px;letter-spacing:.16em;color:#e0ca8e;margin:8px 0 12px}.reader-exit-hero h1{font-family:Georgia,serif;font-size:30px;line-height:1.3;color:#fff5d9;letter-spacing:-.015em;margin:0 0 12px}.reader-exit-hero p:last-child{font-size:14px;line-height:1.7;color:#d8e0cd;margin:0 auto;max-width:420px}
.reader-exit-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.reader-exit-stats div{padding:14px 8px;border:1px solid var(--reader-line-color);border-radius:10px;text-align:center;background:var(--reader-paper)}.reader-exit-stats strong{display:block;font-size:24px;color:var(--reader-accent)}.reader-exit-stats span{font-size:11px;color:var(--reader-muted)}
.reader-exit-report>h2{font-size:20px;margin:20px 0 14px}.reader-exit-list{list-style:none;counter-reset:read-items;margin:0;padding:0}.reader-exit-list li{position:relative;counter-increment:read-items;border-bottom:1px solid var(--reader-line-color);padding:14px 0 14px 32px}.reader-exit-list li::before{content:counter(read-items,decimal-leading-zero);position:absolute;left:0;top:16px;color:var(--reader-muted);font-size:11px}.reader-exit-list a{font-size:14px;line-height:1.6;color:var(--reader-ink);font-weight:600;overflow-wrap:anywhere}.reader-exit-list p{font-size:11px;color:var(--reader-muted);margin:6px 0}.reader-exit-meter{display:block;position:relative;height:3px;overflow:hidden;border-radius:4px;background:var(--reader-line-color)}.reader-exit-meter::after{content:"";display:block;width:var(--entry-progress);height:100%;background:var(--reader-accent)}.reader-exit-disclosure{font-size:11px;line-height:1.7;color:var(--reader-muted);margin:16px 0}
.reader-exit-destinations{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 14px}.reader-exit-destinations a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;color:var(--reader-accent);font-size:14px}.reader-exit-destinations .reader-exit-primary{background:var(--reader-accent);border-radius:9px;color:var(--reader-paper)}
@media(max-width:767.98px){.reader-exit{padding:20px 16px}.reader-exit-hero{padding:24px 18px}.reader-exit-hero h1{font-size:27px}.reader-exit-stats{gap:8px}.reader-exit-stats strong{font-size:22px}.reader-exit-stats span{font-size:10px}}
.reader-exit[open]{display:flex;flex-direction:column;height:min(880px,90dvh);max-height:90dvh;overflow:hidden}
.reader-exit>header,.reader-exit>.reader-result-actions,.reader-exit>.reader-exit-destinations,.reader-exit>[data-exit-continue],.reader-exit>[data-exit-status]{flex-shrink:0}
.reader-exit-report{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.reader-exit>.reader-result-actions{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--reader-line-color)}
.reader-exit>.reader-exit-destinations{margin:10px 0}.reader-exit>[data-exit-continue]{align-self:flex-start;font-size:12px;min-height:36px;padding:6px 10px;background:transparent;border-color:transparent;color:var(--reader-muted)}
.reader-exit>[data-exit-status]:empty{display:none}.reader-exit-emblem{line-height:1.2}
@media(max-width:767.98px){.reader-exit[open]{height:92dvh;max-height:92dvh}.reader-exit-hero{padding:20px 16px}.reader-exit-emblem{font-size:28px}.reader-exit-hero h1{font-size:25px}.reader-exit-destinations{gap:6px}.reader-exit-destinations a{font-size:13px;padding:8px 12px}.reader-exit-stats{margin-bottom:16px}}
/* Joyful appreciation: its own pastel identity, separate from the reading theme. */
.reader-exit{--reader-panel:#fffcff;--reader-paper:#f7f2ff;--reader-ink:#392d55;--reader-muted:#6c6080;--reader-line-color:#e8dff0;--reader-accent:#7150b6;border-color:#e7ddef;background:#fffcff;border-radius:26px;color:#392d55}
.reader-exit::backdrop{background:#251b3f80;backdrop-filter:blur(6px)}
.reader-exit-brand{color:#8a75a0;font-size:10px;letter-spacing:.12em}
.reader-exit header button{border-color:#e7dcf0;border-radius:50%;background:#faf6ff;color:#6d558c}
.reader-exit-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 7% 8%,#f9dce7 0,transparent 34%),radial-gradient(circle at 94% 15%,#ffe2b9 0,transparent 38%),linear-gradient(135deg,#f3ebff,#fff3e9);border:1px solid #f1e7f6;border-radius:24px;padding:24px 22px;color:#392c60}
.reader-exit-illustration{display:block;width:140px;height:90px;margin:0 auto 8px}
.reader-exit-hero h1{font-family:system-ui,sans-serif;font-size:29px;font-weight:750;line-height:1.25;color:#453269;letter-spacing:-.025em;max-width:480px;margin:0 auto 12px}
.reader-exit-eyebrow{color:#8b6b9c;font-size:9px;letter-spacing:.13em;margin:8px 0 12px}
.reader-exit-hero p:last-child{color:#756180;font-size:13px;line-height:1.7;max-width:420px}
.reader-exit-stats{gap:10px;margin:16px 0 22px}.reader-exit-stats div{border:0;border-radius:17px;padding:16px 8px}.reader-exit-stats div:nth-child(1){background:#f0e9ff}.reader-exit-stats div:nth-child(2){background:#e4f5ed}.reader-exit-stats div:nth-child(3){background:#fff0d8}.reader-exit-stats strong{font-weight:750;color:#62439a;font-size:25px}.reader-exit-stats div:nth-child(2) strong{color:#34765b}.reader-exit-stats div:nth-child(3) strong{color:#96651f}.reader-exit-stats span{color:#6e607b}
.reader-exit-list li{border-bottom:0;padding:13px 12px 13px 38px;margin-bottom:8px;border-radius:13px;background:#f8f4fc}.reader-exit-list li::before{left:12px;color:#a58dbd}.reader-exit-list a{color:#514166}.reader-exit-list p{color:#82728d}.reader-exit-meter{background:#e8deef}.reader-exit-meter::after{background:linear-gradient(90deg,#a98ae2,#84cbb2)}
.reader-exit .reader-result-actions button{border-radius:999px;background:#f1e9fc;border-color:#e5d7f6;color:#68449c}.reader-exit .reader-result-actions button:first-child{background:#7752bc;border-color:#7752bc;color:#fff}
.reader-exit-destinations .reader-exit-primary{background:#f0e9fa;color:#674696;border-radius:999px}.reader-exit-destinations a{color:#7d6597}
.reader-navigation{display:flex;align-items:center;gap:4px}.reader-bar .reader-previous{width:40px;padding:8px}.reader-previous[aria-disabled=true]{opacity:.35;cursor:default}.reader-navigation .reader-back>span{font-size:21px}.reader-navigation .reader-back{font-size:13px}
.reader-share-invite{flex-shrink:0;padding:14px 0 0;border-top:1px solid #e8dff0;margin-top:8px}.reader-share-invite strong{display:block;font-size:15px;line-height:1.5;color:#674696}.reader-share-invite p{font-size:12px;line-height:1.6;color:#82708f;margin:5px 0 0}.reader-exit>.reader-result-actions{border-top:0;margin-top:8px;padding-top:0}
@media(max-width:767.98px){.reader-exit{border-radius:24px 24px 0 0}.reader-exit-hero{padding:20px 16px;border-radius:20px}.reader-exit-illustration{width:115px;height:74px}.reader-exit-hero h1{font-size:25px}.reader-navigation{gap:0}.reader-bar .reader-previous{width:32px;padding:6px}.reader-navigation .reader-back{padding:7px 5px}.reader-share-invite strong{font-size:14px}.reader-share-invite p{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.reader-exit[open] .reader-exit-illustration{animation:reader-celebrate .5s ease-out both}@keyframes reader-celebrate{from{opacity:0;transform:translateY(8px) rotate(-4deg)}to{opacity:1;transform:none}}}
/* Natural celebration palette: warm paper, clay, leaf and honey. */
.reader-exit{--reader-panel:#fffdf8;--reader-paper:#fcf5e8;--reader-ink:#513b2d;--reader-muted:#7c6b58;--reader-line-color:#e7dbc7;--reader-accent:#a65332;background:#fffdf8;color:#513b2d;border-color:#e8dcc8}
.reader-exit::backdrop{background:#30291f80}
.reader-exit-brand{color:#8b7358}.reader-exit header button{background:#fbf5ea;border-color:#e6d9c3;color:#73583e}
.reader-exit-hero{background:#fff0dc;border:1px solid #f0dfc2;color:#593d2b}.reader-exit-hero h1{color:#593d2b}.reader-exit-eyebrow{color:#9a6d36}.reader-exit-hero p:last-child{color:#84684d}
.reader-exit-stats div:nth-child(1){background:#f6e9d4}.reader-exit-stats div:nth-child(2){background:#e9f0e2}.reader-exit-stats div:nth-child(3){background:#faeed4}.reader-exit-stats strong{color:#9b5d31}.reader-exit-stats div:nth-child(2) strong{color:#486e49}.reader-exit-stats div:nth-child(3) strong{color:#987024}.reader-exit-stats span{color:#7b6a53}
.reader-exit-list li{background:#f9f4e9}.reader-exit-list li::before{color:#b0926b}.reader-exit-list a{color:#59412e}.reader-exit-list p{color:#85705a}.reader-exit-meter{background:#e9dec9}.reader-exit-meter::after{background:#7b9c72}
.reader-exit .reader-result-actions button{background:#fbf2e1;border-color:#e6d6ba;color:#8c603a}.reader-exit .reader-result-actions button:first-child{background:#a65332;border-color:#a65332;color:#fff}
.reader-exit-destinations .reader-exit-primary{background:#f3e6ce;color:#845a30}.reader-exit-destinations a{color:#6e7651}
.reader-share-invite{border-color:#e7dbc7}.reader-share-invite strong{color:#9b5735}.reader-share-invite p{color:#85705a}
.reader-bar .reader-previous{width:auto}.reader-previous-label{font-size:13px}
@media(max-width:767.98px){.reader-previous-label{display:none}.reader-bar .reader-previous{width:32px}}
.reader-certificate-preview-link{display:inline-flex;min-height:32px;margin:5px 0 0;padding:4px 0!important;border:0!important;background:transparent!important;color:#866132!important;font-size:12px!important;text-align:left;text-decoration:underline;text-underline-offset:3px}
.reader-certificate-preview{max-width:960px}.reader-certificate-canvas{overflow:hidden;background:#fffdf6;border:1px solid #e1d5b7;margin:18px 0;border-radius:5px}.reader-certificate-canvas canvas{display:block;width:100%;height:auto}.reader-cert-name{display:block;font-size:13px;color:var(--reader-muted)}.reader-cert-name input{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;margin-top:6px;border:1px solid var(--reader-line-color);border-radius:8px;background:var(--reader-paper);color:var(--reader-ink);font-size:16px}
@media(max-width:767.98px){.reader-certificate-preview{max-width:100%}.reader-certificate-preview-link{font-size:11px!important}}
/* Certificate preview: persistent print controls, independently scrolling document. */
.reader-certificate-preview[open]{display:flex;flex-direction:column;height:min(900px,92dvh);max-height:92dvh;padding:0;overflow:hidden}
.reader-cert-top{flex:0 0 auto;padding:20px 24px 18px;background:var(--reader-panel);border-bottom:1px solid var(--reader-line-color);box-shadow:0 3px 12px #00000005;z-index:1}
.reader-cert-top header{margin:0;align-items:center}.reader-cert-top header h2{font-size:21px;line-height:1.35}.reader-cert-top .reader-result-actions{margin:12px 0 0;gap:10px}
.reader-cert-top .reader-cert-print{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 20px;min-height:46px;border:1px solid #2f5841;background:#2f5841;color:#fffdf6;font-weight:650;box-shadow:0 3px 8px #193a2014}
.reader-cert-top .reader-cert-print:hover{background:#234630}.reader-cert-print svg{flex-shrink:0}
.reader-cert-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px 24px}.reader-cert-body .reader-certificate-canvas{margin-top:18px}
@media(max-width:767.98px){.reader-cert-top{padding:16px 18px}.reader-cert-top header h2{font-size:19px}.reader-cert-body{padding:18px}.reader-cert-top .reader-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reader-cert-top .reader-result-actions button{padding:10px;min-height:46px;font-size:13px}}
.reader-cert-personalize{padding:18px;border:1px solid #dfcfae;border-left:3px solid #a47b38;border-radius:12px;background:#fbf5e7;margin-bottom:18px;color:#4f402e}
.reader-cert-personalize-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}.reader-cert-personalize-heading svg{flex-shrink:0;color:#997137;margin-top:2px}.reader-cert-personalize-heading h3{font:650 16px/1.45 system-ui,sans-serif;letter-spacing:normal;color:#55432d;margin:0 0 5px}.reader-cert-personalize-heading p{font:12px/1.6 system-ui,sans-serif;color:#847052;margin:0}
.reader-cert-personalize .reader-cert-name{font-size:13px;font-weight:600;color:#665138}.reader-cert-personalize .reader-cert-name input{background:#fffefb;border:1px solid #cbb387;min-height:48px;font-size:16px;color:#3e392d;box-shadow:0 2px 5px #5d431408}.reader-cert-personalize input::placeholder{color:#9a927f;opacity:1}.reader-cert-personalize input:focus{outline:2px solid #3d7052;outline-offset:2px;border-color:#3d7052}
#reader-cert-name-help{font:11px/1.6 system-ui,sans-serif;color:#8b795e;margin:8px 0 0}
@media(max-width:767.98px){.reader-cert-personalize{padding:15px}.reader-cert-personalize-heading{gap:9px}.reader-cert-personalize-heading h3{font-size:15px}}
/* One exit sheet: name, live certificate and exports without nested preview. */
.reader-exit>header h2{font:650 20px/1.35 system-ui,sans-serif;letter-spacing:normal;color:#59412e;margin:5px 0 0}
.reader-exit .reader-exit-downloads{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin:0 0 16px;padding:0 0 16px;border-top:0;border-bottom:1px solid #e7dbc7}
.reader-exit .reader-exit-downloads button{min-height:46px;padding:9px 12px;font-size:13px;line-height:1.4;border-radius:10px}
.reader-exit .reader-exit-downloads button[data-exit-pdf]{background:#315940;border-color:#315940;color:#fffdf6;font-weight:650}
.reader-cert-inline-name{display:block;padding:15px 16px;border:1px solid #dfcfae;border-left:3px solid #a47b38;border-radius:12px;background:#fbf5e7;color:#55432d;margin:0 0 14px}
.reader-cert-inline-name strong{display:block;font:650 14px/1.5 system-ui,sans-serif;margin-bottom:7px}
.reader-cert-inline-name input{display:block;box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbb387;border-radius:8px;background:#fffefb;color:#3e392d;font:16px/1.5 system-ui,sans-serif}
.reader-cert-inline-name input:focus{outline:2px solid #3d7052;outline-offset:2px}
.reader-cert-inline-name span{display:block;font:11px/1.5 system-ui,sans-serif;color:#8b795e;margin-top:7px}
.reader-certificate-inline .reader-certificate-canvas{margin:0 0 16px}
.reader-exit-history{margin:0 0 8px;border:1px solid #e7dbc7;border-radius:10px;padding:12px;background:#fffbf3}
.reader-exit-history summary{cursor:pointer;font-size:13px;font-weight:600;color:#745b3c;min-height:28px;padding:4px 0}
.reader-exit-history .reader-exit-list{margin-top:8px}.reader-exit-history [data-reader-history-count]{font-weight:400;margin-left:4px}
@media(max-width:767.98px){.reader-exit>header h2{font-size:18px}.reader-exit .reader-exit-downloads{gap:8px;margin-bottom:12px;padding-bottom:12px}.reader-exit .reader-exit-downloads button{font-size:12px;padding:8px}.reader-cert-inline-name{padding:12px}.reader-cert-inline-name strong{font-size:13px}}
/* Fresh reading controls and a certificate that always fits its viewport. */
.reader-mode{--reader-bg:#f2f8f5;--reader-panel:#fff;--reader-ink:#243a30;--reader-muted:#62766a;--reader-line-color:#dce8e1;--reader-accent:#216c52}
.reader-mode[data-reader-theme="light"]{--reader-bg:#f2f8f5;--reader-panel:#fff;--reader-paper:#fff;--reader-accent:#216c52}
.reader-bar{box-shadow:0 2px 12px #1e5a3805}.reader-bar a:hover,.reader-bar button:hover{background:#edf7f1}
.reader-exit{--reader-panel:#fff;--reader-paper:#f2faf5;--reader-ink:#243a30;--reader-muted:#62766a;--reader-line-color:#dce8e1;--reader-accent:#216c52;background:#fff;border-color:#dce8e1;border-radius:20px;padding:18px;max-width:1000px}
.reader-exit[open]{height:min(900px,96dvh);max-height:96dvh;display:flex;flex-direction:column;overflow:hidden}
.reader-exit::backdrop{background:#172c2380;backdrop-filter:blur(4px)}
.reader-exit>header{margin-bottom:10px;align-items:center;gap:12px}.reader-exit>header h2{font-size:19px;color:#243a30;margin-top:3px}.reader-exit-brand{font-size:9px;color:#6b8274;letter-spacing:.1em}.reader-exit header button{background:#f2faf5;border-color:#dce8e1;color:#476c58}
.reader-exit .reader-exit-downloads{grid-template-columns:1fr 1fr;gap:10px;padding-bottom:10px;margin-bottom:10px;border-color:#e4eee7}
.reader-exit .reader-exit-downloads button{min-height:42px;padding:8px 12px;border-radius:9px;font-size:13px;font-weight:600}
.reader-exit .reader-exit-downloads button[data-exit-pdf]{background:#217456;border-color:#217456;color:#fff}
.reader-exit .reader-exit-downloads button[data-exit-image]{background:#f0faf4;border:1px solid #cfe4d7;color:#216c52}
.reader-exit-report{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-right:0}
.reader-certificate-inline{display:flex;flex-direction:column;flex:1;min-height:0}
.reader-cert-inline-name{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:0 0 10px;padding:0;background:transparent;border:0;border-radius:0;flex-shrink:0}
.reader-cert-inline-name strong{font-size:13px;line-height:1.4;color:#486453;margin:0}.reader-cert-inline-name input{min-height:42px;padding:8px 12px;border:1px solid #cfe0d4;border-radius:8px;background:#f8fcf9;color:#243a30;font-size:16px;box-shadow:none}.reader-cert-inline-name input:focus{outline-color:#217456}.reader-cert-inline-name span{display:none}
.reader-exit .reader-certificate-inline .reader-certificate-canvas{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;overflow:hidden;margin:0 0 10px;border:0;background:#f6f9f6;border-radius:6px}
.reader-exit .reader-certificate-inline .reader-certificate-canvas canvas{display:block;width:100%!important;height:100%!important;min-height:0;object-fit:contain}
.reader-exit-history{flex:0 0 auto;padding:5px 10px;margin:0 0 4px;border:1px solid #e0ebe3;border-radius:8px;background:#f8fcf9}
.reader-exit-history summary{min-height:28px;font-size:12px;color:#54705f;font-weight:500}.reader-exit-history[open]{max-height:145px;overflow:auto}.reader-exit-history .reader-exit-list li{background:#f1f7f2}.reader-exit-history .reader-exit-list a{color:#375441}.reader-exit-history .reader-exit-list p,.reader-exit-disclosure{color:#6b8172}
.reader-share-invite{margin-top:6px;padding-top:8px;border-color:#e0ebe3}.reader-share-invite strong{font-size:12px;line-height:1.5;font-weight:500;color:#627b69}
.reader-exit>.reader-exit-destinations{gap:10px;justify-content:space-between;margin:8px 0 0;flex-wrap:wrap}.reader-exit-destinations a,.reader-exit-destinations button{font-size:12px;min-height:38px;padding:8px 12px}.reader-exit-destinations .reader-exit-primary{background:#eaf6ee;color:#216c52;border-radius:8px}.reader-exit-destinations a{color:#577360}.reader-exit-destinations button{background:transparent;border:1px solid #dce8e1;color:#577360}
@media(max-width:767.98px){.reader-exit{padding:14px;border-radius:16px}.reader-exit[open]{height:96dvh;max-height:96dvh;margin:auto}.reader-exit>header h2{font-size:17px}.reader-exit .reader-exit-downloads{gap:8px}.reader-cert-inline-name{gap:8px;padding:0;margin-bottom:10px}.reader-cert-inline-name strong{font-size:12px}.reader-cert-inline-name input{padding:8px 10px}.reader-exit>.reader-exit-destinations{gap:6px}.reader-exit-destinations a,.reader-exit-destinations button{font-size:11px;padding:7px 9px;min-height:38px}}
@media(max-height:600px){.reader-exit{padding:10px}.reader-exit>header{margin-bottom:6px}.reader-exit-brand{display:none}.reader-exit .reader-exit-downloads{padding-bottom:6px;margin-bottom:6px}.reader-share-invite{display:none}.reader-exit-history{margin-bottom:0}.reader-exit-destinations a,.reader-exit-destinations button{min-height:34px;padding:5px 8px}}
.reader-cert-inline-name{grid-template-columns:minmax(0,1fr)}
.reader-minimize-icon{display:block;flex-shrink:0}.reader-exit header [data-exit-close]{display:grid;place-items:center}.reader-bar .reader-back{gap:6px}
.reader-exit>.reader-exit-destinations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.reader-exit-destinations a,.reader-exit-destinations button{min-width:0;min-height:48px;line-height:1.4;padding:6px 8px;text-align:center;white-space:normal}
.reader-exit-destinations .reader-exit-home{display:flex;flex-direction:column;gap:2px;background:#216c52;color:#fff;border:1px solid #216c52;border-radius:8px;text-decoration:none}
.reader-exit-home strong{font-size:12px;letter-spacing:.06em}.reader-exit-home span{font-size:9px;font-weight:400;color:#e2f2e8;line-height:1.4}
@media(max-width:767.98px){.reader-exit>.reader-exit-destinations{gap:6px}.reader-exit-destinations a,.reader-exit-destinations button{font-size:11px;padding:6px}.reader-exit-home strong{font-size:11px}.reader-exit-home span{font-size:8px}}
.reader-exit-home strong{font-size:14px;font-weight:750}@media(max-width:767.98px){.reader-exit-home strong{font-size:13px}}
/* Lighter action hierarchy: compact teal tools and a distinct warm exit action. */
.reader-exit{background:#fff;border-color:#dce5e1;box-shadow:0 18px 60px #132c241c}
.reader-exit>header h2{font-family:system-ui,sans-serif;font-size:19px;font-weight:650;color:#253e35;letter-spacing:-.015em}
.reader-exit header [data-exit-close]{width:38px;min-height:38px;height:38px;border:1px solid #dbe5df;background:#f6f9f7;color:#577166;box-shadow:none}
.reader-exit .reader-exit-downloads{display:flex;justify-content:flex-start;gap:9px;flex-shrink:0;margin-bottom:12px;padding-bottom:12px;border-color:#edf0ed}
.reader-exit .reader-exit-downloads button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:42px;padding:9px 16px;border-radius:9px;font:600 13px/1.4 system-ui,sans-serif;box-shadow:none;transition:background .15s ease,border-color .15s ease}
.reader-exit .reader-exit-downloads button svg{flex-shrink:0}
.reader-exit .reader-exit-downloads button[data-exit-pdf]{background:#176c60;border-color:#176c60;color:#fff}
.reader-exit .reader-exit-downloads button[data-exit-pdf]:hover{background:#10564d;border-color:#10564d}
.reader-exit .reader-exit-downloads button[data-exit-image]{background:#fff;border:1px solid #bbd7ce;color:#2f6f60}
.reader-exit .reader-exit-downloads button[data-exit-image]:hover{background:#eff8f4;border-color:#8ebca9}
.reader-cert-inline-name input{background:#fff;border-color:#d7e2dc;border-radius:9px;box-shadow:0 1px 3px #163e2514}
.reader-exit .reader-certificate-inline .reader-certificate-canvas{background:#f6f7f3}
.reader-exit-history{background:#fbfcfa;border-color:#e7ece7}.reader-exit-history summary{color:#6a7d70}
.reader-share-invite{border-color:#edf0ed}.reader-share-invite strong{color:#6f8175;font-size:12px}
.reader-exit>.reader-exit-destinations{display:flex;justify-content:space-between;align-items:stretch;gap:10px}
.reader-exit-destinations a,.reader-exit-destinations button{min-height:44px;border-radius:9px;min-width:0;font:500 12px/1.4 system-ui,sans-serif;padding:7px 14px}
.reader-exit-destinations .reader-exit-primary{background:transparent;border:1px solid transparent;color:#547165}
.reader-exit-destinations .reader-exit-primary:hover{background:#f1f7f3}
.reader-exit-destinations .reader-exit-home{min-width:155px;background:#f0c65b;border-color:#eac052;color:#35442e;box-shadow:0 2px 6px #a8781612}
.reader-exit-home strong{color:#34442e;font-size:13px;font-weight:750;letter-spacing:.07em}.reader-exit-home span{color:#6c653c;font-size:9px}
.reader-exit-destinations button{border:1px solid #dbe5df;color:#587065;background:#fff}.reader-exit-destinations button:hover{background:#f4f8f5}
@media(max-width:767.98px){.reader-exit>header h2{font-size:17px}.reader-exit .reader-exit-downloads{gap:8px}.reader-exit .reader-exit-downloads button{flex:1;padding:9px 10px;font-size:12px}.reader-exit>.reader-exit-destinations{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:6px}.reader-exit-destinations a,.reader-exit-destinations button{font-size:11px;padding:6px;min-height:44px}.reader-exit-destinations .reader-exit-home{min-width:0}.reader-exit-home strong{font-size:12px}.reader-exit-home span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.reader-exit .reader-exit-downloads button{transition:none}}
/* Reading-only floating return-to-top control. */
.reader-to-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:900;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;border:1px solid var(--reader-line-color);border-radius:50%;background:var(--reader-panel);color:var(--reader-accent);box-shadow:0 4px 18px #173f2520;cursor:pointer}
.reader-to-top:hover{background:var(--reader-bg)}.reader-to-top:focus-visible{outline:2px solid var(--reader-accent);outline-offset:3px}
.reader-to-top span{position:absolute;right:calc(100% + 9px);padding:6px 10px;border:1px solid var(--reader-line-color);border-radius:8px;background:var(--reader-panel);color:var(--reader-ink);font:12px/1.5 system-ui,sans-serif;white-space:nowrap;opacity:0;transform:translateX(4px);transition:opacity .15s ease,transform .15s ease;pointer-events:none}
.reader-to-top:hover span,.reader-to-top:focus-visible span{opacity:1;transform:none}
.reader-mode:has(.reader-dialog[open],.article-gallery[open],.reader-selection:not([hidden])) .reader-to-top{visibility:hidden;pointer-events:none}
@media(max-width:767.98px){.reader-to-top{right:max(14px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.reader-to-top span{transition:none}}
@media print{.reader-to-top{display:none!important}}
/* Explicit exit action, distinct from certificate downloads and reading tools. */
.reader-exit-destinations .reader-exit-home{background:#a63c32;border-color:#a63c32;color:#fff;box-shadow:0 3px 8px #7d30221f}
.reader-exit-home strong{display:flex;align-items:center;justify-content:center;gap:7px;color:#fff}
.reader-exit-home span{color:#fff1e9}
.reader-exit-destinations .reader-exit-home:hover{background:#892e27;border-color:#892e27;color:#fff}
.reader-exit-destinations .reader-exit-home:focus-visible{outline:3px solid #a63c32!important;outline-offset:3px}
/* Softer certificate actions keep the certificate as the visual focus. */
.reader-exit .reader-exit-downloads button[data-exit-pdf]{background:#edf5f1;border:1px solid #c9ddd2;color:#365f50;font-weight:550}
.reader-exit .reader-exit-downloads button[data-exit-pdf]:hover{background:#e1eee6;border-color:#a9c6b5;color:#284c3c}
.reader-exit-destinations .reader-exit-home{background:#faf0ed;border:1px solid #e6c9bf;color:#884e43;box-shadow:none}
.reader-exit-home strong{color:#884e43;font-weight:650;letter-spacing:.04em}
.reader-exit-home span{color:#805d54}
.reader-exit-destinations .reader-exit-home:hover{background:#f4e3dd;border-color:#d8afa0;color:#784438}
.reader-exit-destinations .reader-exit-home:focus-visible{outline:2px solid #ae7463!important;outline-offset:3px}
/* Touch selection tools stay away from the native text-selection menu. */
.reader-selection-preview{display:none}
@media(max-width:767.98px){
 .reader-selection{left:8px;right:8px;bottom:max(10px,env(safe-area-inset-bottom));transform:none;width:auto;max-width:none;display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:10px;border-radius:18px;box-shadow:0 6px 28px #102c2630;touch-action:manipulation}
 .reader-selection-preview{display:block;flex:0 0 100%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 5px 8px;margin-bottom:3px;border-bottom:1px solid var(--reader-line-color);color:var(--reader-ink);font:12px/1.6 system-ui,sans-serif;opacity:.8;text-align:start;user-select:none}
 .reader-selection>button,.reader-selection .reader-swatch,.reader-selection .reader-swatches .reader-swatch,.reader-selection .reader-custom-color{width:44px;min-width:44px;flex-basis:44px;height:44px;min-height:44px}
 .reader-selection .reader-swatches{gap:0;flex:0 0 auto}
 .reader-selection .reader-tool-divider{display:none}
 .reader-selection .reader-format-menu{max-width:calc(100vw - 20px);right:0;flex-wrap:wrap}
 .reader-selection .reader-format-menu button{min-width:44px;min-height:44px}
 .reader-mode:has(.reader-selection:not([hidden])) .reader-status{bottom:185px}
}
/* Keep compact recommendations on one continuous reading-paper background. */
.reader-mode .detail-related .detail-related-grid article,
.reader-mode .detail-related .detail-related-grid article:hover{background:transparent;box-shadow:none}
.reader-mode .detail-related .detail-related-copy{background:transparent}
.reader-mode .detail-related .detail-related-copy h3{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:550;font-size:15px;line-height:1.55}
@media(max-width:767.98px){.reader-mode .detail-related .detail-related-copy h3{font-size:14px}}
/* Reading paper is reserved for prose; recommendations use a neutral surface. */
.reader-mode .detail-related{background:#fff;border-color:#e1e7e2;color:#263d32}
.reader-mode .detail-related h2{color:#263d32}
.reader-mode .detail-related>header>a,.reader-mode .detail-related .detail-related-category{color:#617469}
.reader-mode .detail-related .detail-related-copy h3{color:#263d32}
.reader-mode .detail-related .detail-related-grid article{border-color:#e5eae6}
.reader-mode .detail-related .detail-related-media{background:#f1f4f1}
.reader-mode[data-reader-theme="dark"] .detail-related{background:#18251f;border-color:#34473b;color:#e0e8e1}
.reader-mode[data-reader-theme="dark"] .detail-related h2,.reader-mode[data-reader-theme="dark"] .detail-related .detail-related-copy h3{color:#e0e8e1}
.reader-mode[data-reader-theme="dark"] .detail-related>header>a,.reader-mode[data-reader-theme="dark"] .detail-related .detail-related-category{color:#acc1b2}
.reader-mode[data-reader-theme="dark"] .detail-related .detail-related-grid article{border-color:#34473b}
.reader-mode[data-reader-theme="dark"] .detail-related .detail-related-media{background:#25372c}
/* A short, calm cue makes certificate personalization discoverable. */
.reader-cert-inline-name{position:relative}
.reader-cert-inline-name .reader-cert-name-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#94742d;pointer-events:none}
.reader-cert-inline-name input{padding-left:42px}
.reader-cert-inline-name input::placeholder{color:#596c5f;opacity:1}
.reader-cert-inline-name.is-inviting input{animation:reader-name-invite 2.2s ease-in-out infinite}
@keyframes reader-name-invite{0%,100%{border-color:#d7dfd8;box-shadow:none;background:#fff}50%{border-color:#d49a92;box-shadow:0 1px 5px #b96a6010;background:#fff6f4}}
@media(max-width:767.98px){.reader-cert-inline-name input{padding-left:40px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.reader-cert-inline-name.is-inviting input{animation:none;border-color:#d49a92;box-shadow:none}}
/* One understated focus treatment instead of browser/global stacked outlines. */
#reader-certificate-recipient{border-width:1px;border-bottom-width:1px;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}
#reader-certificate-recipient:focus,#reader-certificate-recipient:focus-visible{outline:none!important;outline-offset:0;border-color:#77947e!important;background:#fff;box-shadow:0 0 0 2px #51785d14}
@media(prefers-reduced-motion:reduce){#reader-certificate-recipient{transition:none}}

/* Shared mobile focus reader: neutral controls, flexible text sizing and media-first recommendations. */
.reader-size-input{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:14px;color:var(--reader-muted)}
.reader-size-input input{width:80px!important;min-width:0;padding:9px 6px!important;text-align:center;border:1px solid var(--reader-line-color);border-radius:8px;background:var(--reader-panel);color:var(--reader-ink);font:600 16px system-ui,sans-serif}
.reader-setting:has([data-reader-size-input]){flex-wrap:wrap;gap:10px}.reader-setting:has([data-reader-size-input])>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.reader-mode .detail-heading h1{font-family:system-ui,-apple-system,sans-serif;font-size:clamp(26px,6vw,40px);font-weight:750;line-height:1.25;letter-spacing:-.025em;color:var(--reader-ink)}
.detail-view-count{display:inline-flex;align-items:center;gap:5px;color:var(--reader-muted)}
.reader-mode .detail-content{border-radius:12px;box-shadow:none;overflow-wrap:anywhere}
.reader-mode .detail-related{padding:22px 16px;background:var(--reader-panel);border-radius:16px;box-shadow:none}
.reader-mode .detail-related>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.reader-mode .detail-related h2{font-family:system-ui,sans-serif;font-size:21px;font-weight:700;color:var(--reader-ink)}
.reader-mode .detail-related .detail-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.reader-mode .detail-related .detail-related-link{display:flex;flex-direction:column;height:100%;gap:12px;text-decoration:none;min-width:0}
.reader-mode .detail-related .detail-related-media{display:block;position:relative;width:100%;height:auto;aspect-ratio:16/10;overflow:hidden;border-radius:10px;background:var(--reader-bg)}
.reader-mode .detail-related .detail-related-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .2s ease}
.reader-mode .detail-related .detail-related-link:hover img{transform:scale(1.025)}
.reader-mode .detail-related .detail-related-copy{padding:0 0 16px;min-width:0}.reader-mode .detail-related .detail-related-copy h3{font-family:system-ui,sans-serif;font-size:15px;line-height:1.5;font-weight:650;color:var(--reader-ink);margin:5px 0 0;overflow-wrap:anywhere}
.reader-mode .detail-related .detail-related-category{font:500 11px system-ui,sans-serif;color:var(--reader-muted)}
.reader-mode .detail-related .detail-related-arrow{display:none}.reader-mode .detail-related-grid article{margin:0;min-width:0;border:0;background:transparent}
.reader-mode.reader-share-visible .reader-to-top{visibility:hidden;pointer-events:none}
.android-reader .detail-share{display:none!important}
@media(max-width:359px){.reader-mode .detail-related .detail-related-grid{grid-template-columns:1fr}.reader-mode .detail-related .detail-related-link{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}.reader-mode .detail-related .detail-related-media{aspect-ratio:4/3}.reader-mode .detail-related .detail-related-copy h3{font-size:14px}}
@media(prefers-reduced-motion:reduce){.reader-mode .detail-related img{transition:none!important;transform:none!important}}

/* Reading controls remain distinct from the page content at every text size. */
#reader-settings .reader-setting{padding:14px 0;margin-bottom:10px;border-bottom:1px solid var(--reader-line-color)}
#reader-size-help{margin:-2px 0 20px;font-size:12px;line-height:1.6}
.reader-size-input input{max-width:none!important;min-height:44px;font-variant-numeric:tabular-nums}
.reader-size-input:focus-within{color:var(--reader-accent)}
.reader-dialog button:disabled{opacity:.4;cursor:default}
#reader-settings .reader-themes{display:flex;gap:8px;flex-wrap:wrap}
#reader-settings .reader-themes legend{width:100%}
#reader-settings .reader-themes button{flex:1;margin:0;min-width:80px}
#reader-settings [data-reader-reset]{width:100%;background:transparent}

.app-related-meta{display:none}
