/* Scoped to Reader Engine. Existing audio, ads and theme settings are untouched. */
.ndre-tools,#ndre-root{--ndre-bg:#f6f9fd;--ndre-panel:#fff;--ndre-ink:#172b40;--ndre-muted:#52677a;--ndre-line:#cbd9e8;--ndre-accent:#0b63a1;--ndre-selected:#e0effc;--ndre-shadow:0 12px 40px #142c4420;color:var(--ndre-ink);font-family:var(--sp-body-font,system-ui,sans-serif);font-size:15px;line-height:1.55;text-align:start;box-sizing:border-box}
html[data-sp-theme="dark"] :is(.ndre-tools,#ndre-root),body.sp-dark-mode :is(.ndre-tools,#ndre-root),body.dark-mode :is(.ndre-tools,#ndre-root){--ndre-bg:#142236;--ndre-panel:#1a2a40;--ndre-ink:#edf5ff;--ndre-muted:#afc4d9;--ndre-line:#3b526c;--ndre-accent:#9ad9ff;--ndre-selected:#244b69;--ndre-shadow:0 14px 48px #0005}
.ndre-tools *,#ndre-root *{box-sizing:border-box}.ndre-tools [hidden],#ndre-root [hidden]{display:none!important}.ndre-tools{margin-block:1rem 1.5rem;padding:15px;background:var(--ndre-bg);border:1px solid var(--ndre-line);border-radius:15px;min-width:0}.ndre-tools-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-block-end:12px}.ndre-tools-head strong{font-size:1.05rem;font-weight:700}.ndre-read-label{font-size:.86rem;color:var(--ndre-muted)}.ndre-read-label[data-read="true"]{color:var(--ndre-accent)}.ndre-actions,.ndre-topics,.ndre-font{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ndre-topics{margin-block-start:12px;font-size:.92rem;color:var(--ndre-muted)}
html body#newsium-site :is(.ndre-tools,#ndre-root) :is(.ndre-btn,.ndre-chip,.ndre-font button,.ndre-tabs button,.ndre-close,.ndre-remove,.ndre-launcher){font-family:var(--sp-body-font,system-ui,sans-serif)!important;font-size:14px!important;line-height:1.4!important;font-weight:500!important}
.ndre-btn,.ndre-chip,.ndre-font button,.ndre-tabs button,.ndre-close,.ndre-remove{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:42px;max-width:100%;padding:8px 12px;border:1px solid var(--ndre-line);border-radius:10px;background:var(--ndre-panel);color:var(--ndre-ink)!important;font:inherit;cursor:pointer;text-decoration:none!important;white-space:normal;text-align:start;box-shadow:none;overflow-wrap:anywhere}.ndre-btn svg,.ndre-close svg,.ndre-launcher svg{flex:none}.ndre-btn:hover,.ndre-chip:hover,.ndre-font button:hover,.ndre-tabs button:hover,.ndre-remove:hover{border-color:var(--ndre-accent);color:var(--ndre-accent)!important}.ndre-btn[aria-pressed="true"],.ndre-chip[aria-pressed="true"],.ndre-tabs button[aria-pressed="true"]{background:var(--ndre-selected);border-color:var(--ndre-accent);color:var(--ndre-accent)!important}.ndre-chip{border-radius:999px;padding:6px 11px}.ndre-font{gap:4px}.ndre-font button{min-width:42px;padding:8px}.ndre-font button:disabled,.ndre-btn:disabled{opacity:.65;cursor:default}.ndre-tools :focus-visible,#ndre-root :focus-visible{outline:2px solid var(--ndre-accent)!important;outline-offset:3px}.ndre-status{font-size:.87rem;color:var(--ndre-muted);margin:8px 0 0}.ndre-status:empty{display:none}.ndre-launcher{position:fixed;left:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:1000;display:flex;align-items:center;gap:8px;border-radius:999px;border:1px solid var(--ndre-line);background:var(--ndre-panel);color:var(--ndre-ink)!important;box-shadow:var(--ndre-shadow);min-height:44px;max-width:calc(100vw - 32px);padding:9px 14px;cursor:pointer}.ndre-launcher svg{color:var(--ndre-accent)}body:has(#spai-chatbot-adv.spai-pos-left) .ndre-launcher{left:auto;right:16px}.ndre-count{font-variant-numeric:tabular-nums;color:var(--ndre-accent);font-weight:700}
.ndre-dialog{position:fixed;inset:0;margin:auto;width:min(600px,calc(100% - 24px));max-height:85dvh;overflow:auto;background:var(--ndre-panel);color:var(--ndre-ink);border:1px solid var(--ndre-line);border-radius:20px;box-shadow:0 24px 80px #0005;padding:22px;font:inherit;text-align:start}.ndre-dialog::backdrop{background:#051321a0}.ndre-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-block-end:16px}.ndre-dialog-head small{color:var(--ndre-accent);letter-spacing:.08em;font:600 11px/1.5 system-ui,sans-serif}.ndre-dialog-head h2{color:var(--ndre-ink)!important;font-size:1.45rem!important;margin:4px 0!important;line-height:1.4!important}.ndre-close{width:44px;height:44px;padding:0;flex:none}.ndre-tabs{display:flex;flex-wrap:wrap;gap:6px;padding-block-end:13px;border-block-end:1px solid var(--ndre-line)}.ndre-panel{min-height:100px;max-height:46dvh;overflow:auto;overscroll-behavior:contain;padding-block:12px}.ndre-list{padding:0!important;margin:0!important;list-style:none!important;display:grid;gap:8px}.ndre-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--ndre-line);padding:12px;border-radius:12px;background:var(--ndre-bg);min-width:0}.ndre-item-body{min-width:0;flex:1}.ndre-item a{color:var(--ndre-ink)!important;text-decoration:none;overflow-wrap:anywhere;display:block;font-weight:600}.ndre-item a:hover{text-decoration:underline}.ndre-item-meta{display:block;color:var(--ndre-muted);margin-block-start:4px}.ndre-remove{flex:none}.ndre-empty,.ndre-privacy{color:var(--ndre-muted)!important;font-size:.92rem!important;line-height:1.6!important}.ndre-privacy{border-block-start:1px solid var(--ndre-line);padding-block-start:12px}.ndre-clear{margin-block-start:10px}.ndre-refresh{margin-block-end:10px}
/* Focus mode puts the sidebar after the story, preserving widgets/advertising. */
html body#newsium-site.ndre-focus .sp-single-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:24px!important}html body#newsium-site.ndre-focus .sp-single-layout>.sp-premium-article{width:min(100%,900px)!important;max-width:900px!important;margin-inline:auto!important;grid-column:1!important;grid-row:auto!important}html body#newsium-site.ndre-focus .sp-single-layout>.sp-sidebar{width:min(100%,900px)!important;max-width:900px!important;margin-inline:auto!important;grid-column:1!important;grid-row:auto!important;position:static!important}html body#newsium-site.ndre-focus .sp-premium-entry{max-width:min(100%,760px)!important}
@media(max-width:600px){.ndre-tools{padding:12px}.ndre-actions,.ndre-topics{gap:6px}.ndre-btn,.ndre-chip{min-height:44px;padding:7px 9px}.ndre-dialog{padding:16px}.ndre-launcher{left:10px;bottom:max(10px,env(safe-area-inset-bottom));padding:8px 10px}.ndre-launcher span:not(.ndre-count){max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ndre-panel{max-height:42dvh}.ndre-remove{padding:6px 9px}.ndre-item{gap:8px;padding:10px}}
@media(prefers-reduced-motion:reduce){.ndre-tools *,#ndre-root *{transition:none!important;animation:none!important}}


/* Compact article toolbar: the theme sets all English .sp-entry descendants to display:block.
   Explicit, narrowly scoped flex/inline display rules restore native controls in every edition. */
html body#newsium-site .ndre-tools{display:block;position:relative;min-width:0;max-width:100%;margin-block:8px 12px!important;padding:6px 8px!important;border-radius:11px;line-height:1.4!important;font-size:14px!important}
html body#newsium-site .ndre-tools :is(.ndre-actions,.ndre-extra,.ndre-font,.ndre-topics){display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:5px;min-width:0;margin:0!important;padding:0}
html body#newsium-site .ndre-tools .ndre-actions{align-items:flex-start}
html body#newsium-site .ndre-tools :is(.ndre-btn,.ndre-chip,.ndre-font button,.ndre-more-toggle){display:inline-flex!important;align-items:center;justify-content:center;gap:5px;flex:0 1 auto;min-width:0;min-height:34px!important;padding:4px 8px!important;border-radius:7px;font-size:13px!important;line-height:1.35!important;white-space:normal;text-decoration:none!important;box-shadow:none}
html body#newsium-site .ndre-tools :is(.ndre-btn,.ndre-chip,.ndre-more-toggle) span{display:inline!important;margin:0!important;padding:0!important;font-size:inherit!important;line-height:inherit!important;overflow-wrap:anywhere}
html body#newsium-site .ndre-tools :is(.ndre-btn,.ndre-chip,.ndre-more-toggle) svg{display:block!important;flex:none;width:16px;height:16px;margin:0!important}
html body#newsium-site .ndre-tools .ndre-more{display:block!important;max-width:100%;min-width:0;flex:0 1 auto;margin:0!important;padding:0!important;border:0;background:transparent;box-shadow:none}
html body#newsium-site .ndre-tools .ndre-more[open]{flex:1 1 100%}
html body#newsium-site .ndre-tools .ndre-more-toggle{list-style:none;cursor:pointer;width:fit-content;max-width:100%}
html body#newsium-site .ndre-tools .ndre-more-toggle::-webkit-details-marker{display:none}
html body#newsium-site .ndre-tools .ndre-more-toggle::marker{content:''}
html body#newsium-site .ndre-tools .ndre-chevron{width:12px!important;height:12px!important;transition:transform .15s}
html body#newsium-site .ndre-tools .ndre-more[open] .ndre-chevron{transform:rotate(180deg)}
html body#newsium-site .ndre-tools .ndre-more:not([open])>.ndre-extra{display:none!important}
html body#newsium-site .ndre-tools .ndre-extra{margin-block-start:6px!important;padding:6px 0 0!important;border-block-start:1px solid var(--ndre-line)}
html body#newsium-site .ndre-tools .ndre-topics{font-size:13px!important;flex:1 1 100%;gap:5px}
html body#newsium-site .ndre-tools .ndre-font{gap:3px}
html body#newsium-site .ndre-tools .ndre-font button{min-width:34px;flex:none;padding-inline:6px!important}
html body#newsium-site .ndre-tools :is(.ndre-read-label,.ndre-font-label,.ndre-topics>span){display:inline!important;font-size:12px!important;color:var(--ndre-muted);line-height:1.4!important}
html body#newsium-site .ndre-tools .ndre-status{font-size:12px!important;line-height:1.45!important;margin:4px 0 0!important}
html body#newsium-site .ndre-tools .ndre-status:empty,html body#newsium-site .ndre-tools [hidden]{display:none!important}
@media(max-width:600px),(pointer:coarse){html body#newsium-site .ndre-tools :is(.ndre-btn,.ndre-chip,.ndre-font button,.ndre-more-toggle){min-height:44px!important}html body#newsium-site .ndre-tools .ndre-font button{min-width:44px}}
