/* WeeklyPress 15 — fixed media modal, visible effects, reader dock and stable sharing */
.weeklypress-news-modal__dialog{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
.weeklypress-news-modal__loading,.weeklypress-news-modal__error{height:100%!important;overflow:auto!important}
.weeklypress-news-modal__article{height:100%!important;min-height:0!important;overflow:hidden!important;scroll-behavior:auto!important}
.weeklypress-news-modal--image-side .weeklypress-news-modal__article{display:grid!important;grid-template-columns:minmax(250px,var(--weeklypress-modal-image-width,38%)) minmax(0,1fr)!important;align-items:stretch!important}
.weeklypress-news-modal__main{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable;overscroll-behavior:contain}
.weeklypress-news-modal--fixed-media .weeklypress-news-modal__media{position:relative!important;top:auto!important;align-self:stretch!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
.weeklypress-news-modal__image-button{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;min-height:0!important;padding:var(--weeklypress-modal-image-padding,18px)!important}
.weeklypress-news-modal--image-align-top .weeklypress-news-modal__image-button{align-items:start!important}.weeklypress-news-modal--image-align-bottom .weeklypress-news-modal__image-button{align-items:end!important}
.weeklypress-news-modal__image-button img{width:var(--weeklypress-modal-image-inner-width,88%)!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:min(var(--weeklypress-modal-image-max-height,520px),calc(100% - var(--weeklypress-modal-image-padding,18px)*2))!important;object-fit:contain!important;object-position:var(--weeklypress-modal-image-focus,50% 50%)!important;border-radius:14px!important;box-shadow:0 18px 44px rgba(16,24,40,.16)!important;background:transparent!important}
.weeklypress-news-modal--fit-cover .weeklypress-news-modal__image-button img{width:100%!important;height:100%!important;max-height:100%!important;object-fit:cover!important;border-radius:12px!important}
/* Animated media background is drawn on the frame itself, so it remains visible around contain images. */
.weeklypress-news-modal--mediafx-aurora .weeklypress-news-modal__media{background:radial-gradient(circle at 15% 20%,rgba(176,24,43,.72),transparent 34%),radial-gradient(circle at 84% 18%,rgba(37,99,235,.62),transparent 31%),radial-gradient(circle at 62% 86%,rgba(16,185,129,.42),transparent 30%),var(--weeklypress-modal-image-bg,#eef2f6)!important;background-size:180% 180%!important;animation:weeklypressMediaFrame var(--weeklypress-modal-mediafx-speed,14s) linear infinite alternate!important}
.weeklypress-news-modal--mediafx-mesh .weeklypress-news-modal__media{background:conic-gradient(from 180deg at 50% 50%,rgba(14,165,233,.58),rgba(168,85,247,.46),rgba(244,63,94,.43),rgba(14,165,233,.58)),var(--weeklypress-modal-image-bg,#eef2f6)!important;background-size:180% 180%!important;animation:weeklypressMediaFrame var(--weeklypress-modal-mediafx-speed,14s) linear infinite alternate!important}
.weeklypress-news-modal--mediafx-pulse .weeklypress-news-modal__media{background:radial-gradient(circle at 50% 50%,rgba(176,24,43,.62),transparent 52%),var(--weeklypress-modal-image-bg,#eef2f6)!important;animation:weeklypressMediaPulse calc(var(--weeklypress-modal-mediafx-speed,14s)*.65) ease-in-out infinite!important}
.weeklypress-news-modal--mediafx-none .weeklypress-news-modal__media{animation:none!important;background:var(--weeklypress-modal-image-bg,#eef2f6)!important}
.weeklypress-news-modal__media:before,.weeklypress-news-modal__media:after{display:none!important}
@keyframes weeklypressMediaFrame{0%{background-position:0 20%;filter:saturate(.94)}100%{background-position:100% 80%;filter:saturate(1.12)}}@keyframes weeklypressMediaPulse{0%,100%{background-size:90% 90%}50%{background-size:125% 125%}}
/* Lead effect is on the lead box itself and cannot be hidden by the image layer. */
.weeklypress-news-modal__leadbox{--leadfx:var(--weeklypress-modal-leadfx-opacity,.24);background:#fff!important}.weeklypress-news-modal__leadbox:before{z-index:0!important;opacity:var(--leadfx)!important;background-size:220% 220%!important}.weeklypress-news-modal__leadbox:after{z-index:1!important;background:rgba(255,255,255,.72)!important}.weeklypress-news-modal__leadbox p{position:relative;z-index:2}
.weeklypress-news-modal--leadefx-aurora .weeklypress-news-modal__leadbox:before{background:radial-gradient(circle at 18% 22%,rgba(176,24,43,.82),transparent 36%),radial-gradient(circle at 82% 20%,rgba(37,99,235,.65),transparent 34%),radial-gradient(circle at 64% 84%,rgba(16,185,129,.48),transparent 30%);animation:weeklypressLeadFx var(--weeklypress-modal-leadfx-speed,12s) linear infinite alternate}.weeklypress-news-modal--leadefx-shine .weeklypress-news-modal__leadbox:before{background:linear-gradient(110deg,transparent 12%,rgba(176,24,43,.68) 42%,rgba(37,99,235,.55) 53%,transparent 77%);background-size:280% 100%!important;animation:weeklypressLeadShine var(--weeklypress-modal-leadfx-speed,12s) linear infinite}.weeklypress-news-modal--leadefx-pulse .weeklypress-news-modal__leadbox:before{background:radial-gradient(circle,rgba(176,24,43,.7),transparent 58%);animation:weeklypressLeadPulse calc(var(--weeklypress-modal-leadfx-speed,12s)*.65) ease-in-out infinite}.weeklypress-news-modal--leadefx-none .weeklypress-news-modal__leadbox:before{display:none!important}.weeklypress-news-modal--leadefx-none .weeklypress-news-modal__leadbox:after{background:#fff!important}@keyframes weeklypressLeadFx{0%{background-position:0 25%;transform:scale(1)}100%{background-position:100% 75%;transform:scale(1.08)}}@keyframes weeklypressLeadShine{from{background-position:125% 0}to{background-position:-125% 0}}@keyframes weeklypressLeadPulse{0%,100%{transform:scale(.94);opacity:calc(var(--leadfx)*.7)}50%{transform:scale(1.12);opacity:var(--leadfx)}}
/* Popup sharing */
.weeklypress-news-modal__footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important}.weeklypress-news-modal__share{display:grid!important;grid-template-columns:auto repeat(6,minmax(42px,1fr))!important;gap:6px!important;width:100%!important}.weeklypress-news-modal__share-title{min-width:88px!important}.weeklypress-news-modal__share>a,.weeklypress-news-modal__share>button{width:100%!important;min-width:0!important;justify-content:center!important;white-space:nowrap!important}
/* Reader toolbar */
.weeklypress-reader__tools{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;margin-top:12px!important;padding:11px 13px!important;border:1px solid rgba(16,24,40,.09)!important;border-radius:16px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 12px 34px rgba(16,24,40,.08)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.weeklypress-reader__tool-copy{min-width:0!important}.weeklypress-reader__tool-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.weeklypress-reader__toolbuttons{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(42px,auto)!important;gap:7px!important}.weeklypress-reader__toolbuttons button{min-width:42px!important;min-height:40px!important;border-radius:11px!important}.weeklypress-reader__numbers{display:flex!important;gap:6px!important;overflow-x:auto!important;padding:10px 2px 3px!important;scrollbar-width:thin!important}.weeklypress-reader__number{flex:0 0 38px!important}
/* Settings UI */
.weeklypress-settings-guide{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:13px;margin:16px 0;padding:15px;border:1px solid #dfe4ea;border-radius:17px;background:linear-gradient(145deg,#fff,#f7f9fb)}.weeklypress-settings-guide label{display:flex;flex-direction:column;gap:7px}.weeklypress-settings-guide input{width:100%;min-height:44px;border-radius:11px}.weeklypress-settings-guide small{color:#667085}.weeklypress-settings-guide>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.weeklypress-settings-guide button,.weeklypress-settings-guide a{display:flex;flex-direction:column;justify-content:center;min-height:66px;padding:9px 10px;border:1px solid #e1e6ec;border-radius:12px;background:#fff;color:#344054;text-decoration:none;text-align:right;cursor:pointer}.weeklypress-settings-guide b,.weeklypress-settings-guide small{display:block}.weeklypress-settings-guide button small,.weeklypress-settings-guide a small{margin-top:3px;font-size:9px}.weeklypress-settings-nav button{display:flex!important;flex-direction:column;align-items:flex-start!important;gap:2px}.weeklypress-settings-nav button b,.weeklypress-settings-nav button small{display:block}.weeklypress-settings-nav button small{font-size:9px;opacity:.72}.weeklypress-subsection{grid-column:1/-1;padding:13px 15px;border-right:4px solid #b0182b;border-radius:11px;background:#f5f7fa}.weeklypress-subsection strong,.weeklypress-subsection small{display:block}.weeklypress-subsection small{margin-top:4px;color:#667085}.weeklypress-search-hidden{display:none!important}
@media(max-width:980px){.weeklypress-news-modal--image-side .weeklypress-news-modal__article{grid-template-columns:minmax(220px,34%) minmax(0,1fr)!important}.weeklypress-news-modal__share{grid-template-columns:auto repeat(3,minmax(42px,1fr))!important}.weeklypress-settings-guide{grid-template-columns:1fr}.weeklypress-settings-guide>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.weeklypress-news-modal--image-side .weeklypress-news-modal__article{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:clamp(150px,25dvh,220px) minmax(0,1fr)!important}.weeklypress-news-modal--image-side .weeklypress-news-modal__media{grid-column:1!important;grid-row:1!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important}.weeklypress-news-modal--image-side .weeklypress-news-modal__main{grid-column:1!important;grid-row:2!important;height:100%!important;overflow-y:auto!important}.weeklypress-news-modal__image-button{padding:min(12px,var(--weeklypress-modal-image-padding,18px))!important}.weeklypress-news-modal__image-button img{width:min(94%,var(--weeklypress-modal-image-inner-width,88%))!important;max-height:100%!important}.weeklypress-news-modal__footer{grid-template-columns:1fr!important}.weeklypress-news-modal__share{grid-template-columns:repeat(3,minmax(0,1fr))!important}.weeklypress-news-modal__share-title{grid-column:1/-1!important}.weeklypress-reader__tools{grid-template-columns:1fr!important}.weeklypress-reader__tool-copy strong{white-space:normal}.weeklypress-reader__toolbuttons{grid-auto-flow:column;overflow-x:auto;justify-content:start}.weeklypress-settings-guide>div{display:flex;overflow-x:auto}.weeklypress-settings-guide button,.weeklypress-settings-guide a{flex:0 0 180px}.weeklypress-settings-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important}.weeklypress-settings-nav button{flex:0 0 138px!important}}
@media(max-width:420px){.weeklypress-news-modal__share{grid-template-columns:repeat(2,minmax(0,1fr))!important}.weeklypress-reader__tools{padding:9px!important}.weeklypress-reader__tool-copy{display:none!important}}
@media(prefers-reduced-motion:reduce){.weeklypress-news-modal__media,.weeklypress-news-modal__leadbox:before{animation:none!important}}
