/* Non-modal news window, initially open when published news is available. */
#homeNewsWidget[hidden],#homeNewsWidget [hidden]{display:none!important}
html[data-theme] #homeNewsWidget #updates{position:fixed;right:24px;bottom:104px;z-index:75;display:flex;flex-direction:column;width:min(780px,calc(100vw - 48px));height:min(660px,calc(100dvh - 220px));max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid var(--fp-border,#d5d8d0);border-radius:18px;background:var(--fp-panel,#fff);color:var(--fp-ink,#1c251f);box-shadow:0 16px 60px #0004;isolation:isolate}
.home-news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--fp-border,#d5d8d0);background:var(--fp-panel,#fff);flex-shrink:0}
.home-news-toolbar small{display:block;color:var(--fp-accent,#856400);font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.7}
.home-news-toolbar h2{font-size:20px;line-height:1.5;margin:2px 0 0;color:var(--fp-ink,#1c251f);overflow-wrap:anywhere}
#homeNewsMinimize{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:1px solid var(--fp-border,#d5d8d0);border-radius:50%;background:var(--fp-soft,#f0f2eb);color:var(--fp-ink,#1c251f);font-size:26px;cursor:pointer}
.home-news-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1;padding:16px;scrollbar-width:thin;scrollbar-color:#9998 transparent}
html[data-theme] #homeNewsWidget #updates .updates-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%;max-width:none;margin:0;align-items:stretch}
html[data-theme] #homeNewsWidget #updates .updates-grid>.update-card{display:flex;flex-direction:column;width:100%;max-width:none;min-width:0;margin:0;overflow:hidden;border:1px solid var(--fp-border,#d5d8d0);border-radius:12px;background:var(--fp-panel,#fff)}
html[data-theme] #homeNewsWidget #updates .updates-grid>.news-has-media{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:stretch}
html[data-theme] #homeNewsWidget #updates .news-poster-open{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:380px;padding:12px;border:0;background:var(--fp-soft,#f0f2eb);cursor:zoom-in}
html[data-theme] #homeNewsWidget #updates .update-card .update-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
html[data-theme] #homeNewsWidget #updates .update-video{display:block;width:100%;height:380px;max-height:none;object-fit:contain;background:var(--fp-soft,#f0f2eb)}
html[data-theme] #homeNewsWidget #updates .youtube-holder{height:250px;display:grid;place-items:center;padding:12px;background:var(--fp-soft,#f0f2eb)}
html[data-theme] #homeNewsWidget #updates .youtube-holder iframe{width:100%;height:100%;border:0}
html[data-theme] #homeNewsWidget #updates .update-body{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;flex:1;padding:22px;text-align:left}
html[data-theme] #homeNewsWidget #updates .news-has-media .update-body{border-left:1px solid var(--fp-border,#d5d8d0)}
html[data-theme] #homeNewsWidget #updates .update-body h3{font-size:19px;line-height:1.65;margin:9px 0 12px;color:var(--fp-ink,#1c251f);overflow-wrap:anywhere}
html[data-theme] #homeNewsWidget #updates .update-description{font-size:15px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;margin-bottom:12px}
html[data-theme] #homeNewsWidget #updates .update-body .text-link{display:inline-flex;align-items:center;min-height:44px;font-size:15px;margin-top:auto}
html[data-theme] #homeNewsWidget #updates .card-label{font-size:11px;color:var(--fp-accent,#856400);letter-spacing:.05em}
.home-news-footer{display:flex;flex-shrink:0;justify-content:center;padding:8px 16px;border-top:1px solid var(--fp-border,#d5d8d0);background:var(--fp-panel,#fff)}
.home-news-footer a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:var(--fp-ink,#1c251f);font-size:15px;font-weight:700;gap:12px}
#homeNewsToggle{position:fixed;right:24px;bottom:104px;z-index:75;display:inline-flex;align-items:center;gap:10px;max-width:calc(100vw - 48px);min-height:50px;padding:10px 18px;border:1px solid var(--fp-border,#d5d8d0);border-radius:28px;background:var(--fp-panel,#fff);color:var(--fp-ink,#1c251f);box-shadow:0 6px 26px #0003;font-family:inherit;font-size:15px;font-weight:700;line-height:1.6;cursor:pointer}
#homeNewsToggle svg{width:21px;height:21px;flex-shrink:0;color:var(--fp-accent,#856400)}
#homeNewsCount{display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;border-radius:14px;background:#ffd329;color:#17231b;font-size:12px;line-height:1}
#homeNewsMinimize:focus-visible,#homeNewsToggle:focus-visible,.home-news-footer a:focus-visible{outline:3px solid #d3ab00;outline-offset:2px}
@media(max-width:760px){
 html[data-theme] #homeNewsWidget #updates{right:12px;bottom:calc(148px + env(safe-area-inset-bottom,0px));width:calc(100vw - 24px);height:min(570px,calc(100dvh - 244px));border-radius:14px}
 #homeNewsToggle{right:16px;bottom:calc(148px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);padding:9px 15px}
 .home-news-toolbar{padding:10px 12px}.home-news-toolbar h2{font-size:18px}.home-news-content{padding:12px}
}
@media(max-width:650px){html[data-theme] #homeNewsWidget #updates .updates-grid>.news-has-media{grid-template-columns:minmax(0,1fr)}html[data-theme] #homeNewsWidget #updates .news-poster-open{height:270px}html[data-theme] #homeNewsWidget #updates .news-has-media .update-body{border-left:0;border-top:1px solid var(--fp-border,#d5d8d0)}html[data-theme] #homeNewsWidget #updates .update-body{padding:18px}}

.home-news-branch{margin:4px 0 0;font-size:13px;line-height:1.6;color:var(--fp-muted,#657064);overflow-wrap:anywhere}html[data-theme] #homeNewsWidget #updates .update-branch{display:block;margin:5px 0;font-size:12px;line-height:1.6;color:var(--fp-accent,#856400);overflow-wrap:anywhere}
/* Compact teaser: one latest story, with the complete article a click away. */
html[data-theme] #homeNewsWidget #updates{width:min(460px,calc(100vw - 48px));height:auto;max-height:min(340px,calc(100dvh - 220px));border-color:#ccb341;border-radius:16px}
#homeNewsWidget .home-news-toolbar{padding:12px 14px;gap:10px}
#homeNewsWidget .home-news-toolbar small{display:none}
#homeNewsWidget .home-news-toolbar h2{font-size:16px;line-height:1.4;margin:0}
#homeNewsWidget .home-news-branch{font-size:12px;margin-top:3px}
#homeNewsWidget #homeNewsMinimize{width:36px;height:36px;flex-basis:36px;font-size:24px;background:transparent;border:0}
#homeNewsWidget .home-news-content{padding:12px 14px}
#homeNewsWidget #updatesGrid .news-preview-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;background:transparent;border:0;margin:0;padding:0;min-width:0}
.news-preview-picture{display:grid;place-items:center;align-self:start;width:96px;height:112px;border-radius:10px;overflow:hidden;background:var(--fp-soft,#f1f2eb)}
.news-preview-picture img{width:100%;height:100%;object-fit:contain}
.news-preview-placeholder{display:grid;place-items:center;white-space:pre-line;width:100%;height:100%;background:#ffd329;color:#17231b;font-size:18px;font-weight:800;text-align:center;line-height:1.2}
.news-preview-body{min-width:0;text-align:left}
#homeNewsWidget .news-preview-source{font-size:11px;color:var(--fp-accent,#856400);line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}
#homeNewsWidget .news-preview-body h3{font-size:16px;line-height:1.5;margin:0 0 5px;color:var(--fp-ink,#1c251f);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#homeNewsWidget .news-preview-description{font-size:13px;line-height:1.6;color:var(--fp-muted,#657064);margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#homeNewsWidget .news-preview-read{display:inline-flex;align-items:center;min-height:36px;padding:6px 15px;border-radius:24px;background:#ffd329;color:#17231b;font-size:14px;font-weight:700;line-height:1.5}
#homeNewsWidget .home-news-footer{padding:4px 12px}
#homeNewsWidget .home-news-footer a{min-height:34px;font-size:12px}
#homeNewsToggle{background:#ffd329;color:#17231b;border-color:#ffd329;box-shadow:0 5px 22px #0003}
#homeNewsToggle svg{color:#17231b}
#homeNewsCount{background:#17231b;color:#fff}
.news-preview-picture:focus-visible,.news-preview-read:focus-visible,.news-preview-body a:focus-visible{outline:3px solid #d3ab00;outline-offset:2px}
@media(max-width:760px){html[data-theme] #homeNewsWidget #updates{width:min(460px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 244px)}}
@media(max-width:400px){#homeNewsWidget #updatesGrid .news-preview-card{grid-template-columns:78px minmax(0,1fr);gap:11px}.news-preview-picture{width:78px;height:96px}#homeNewsWidget .news-preview-body h3{font-size:15px}#homeNewsWidget .home-news-content{padding:11px 12px}}

/* V88.54: quiet compact news launcher */
html body #homeNewsToggle{min-height:40px;max-width:calc(100vw - 32px);padding:7px 12px;gap:7px;font-size:13px;font-weight:600;line-height:1.4;border-radius:8px;background:var(--fp-panel,#fff);color:var(--fp-ink,#1c251f);border:1px solid var(--fp-border,#d5d8d0);box-shadow:0 2px 8px #0002}
html body #homeNewsToggle svg{width:17px;height:17px;color:inherit}
html body #homeNewsCount{box-sizing:border-box;min-width:19px;height:19px;padding:0 4px;font-size:10px;border-radius:50%;background:#ffd329;color:#17231b}

/* V88.61: a slightly larger teaser, bounded by the viewport. */
html[data-theme] #homeNewsWidget #updates{width:min(540px,calc(100vw - 48px));max-height:min(420px,calc(100dvh - 200px))}
#homeNewsWidget .home-news-toolbar{padding:14px 18px}
#homeNewsWidget .home-news-toolbar h2{font-size:18px;line-height:1.5}
#homeNewsWidget .home-news-content{padding:16px 18px;min-height:0;overflow-y:auto}
#homeNewsWidget #updatesGrid .news-preview-card{grid-template-columns:132px minmax(0,1fr);gap:18px}
#homeNewsWidget .news-preview-picture{width:132px;height:164px}
#homeNewsWidget .news-preview-body h3{font-size:17px;line-height:1.55;-webkit-line-clamp:3}
#homeNewsWidget .news-preview-description{font-size:14px;line-height:1.65}
#homeNewsWidget .news-preview-source{font-size:12px}
#homeNewsWidget .news-preview-read{font-size:14px;min-height:38px}
#homeNewsWidget .home-news-footer a{font-size:13px;min-height:38px}
@media(max-width:760px){html[data-theme] #homeNewsWidget #updates{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 244px)}}
@media(max-width:480px){#homeNewsWidget #updatesGrid .news-preview-card{grid-template-columns:104px minmax(0,1fr);gap:12px}#homeNewsWidget .news-preview-picture{width:104px;height:140px}#homeNewsWidget .home-news-content{padding:14px}#homeNewsWidget .news-preview-body h3{font-size:16px}#homeNewsWidget .news-preview-description{font-size:13px}}
@media(max-width:350px){#homeNewsWidget #updatesGrid .news-preview-card{grid-template-columns:88px minmax(0,1fr);gap:10px}#homeNewsWidget .news-preview-picture{width:88px;height:122px}}
