/* Yudish Geredt redesign (Tab, Oct 26 2026) — clean layout like the Yiddish24 app. Overrides only; loaded last. */
body.yg{--ink:#0f2147;--muted:#5d6b82;--faint:#8996aa;--line:#e3e8f1;--blue:#1f4fbf;--tile:#e7eefc;--bg:#f3f5f9;--bottom-nav-height:0px;background:var(--bg)!important;font-family:"Heebo","Noto Sans Hebrew",Arial,sans-serif}
html:has(body.yg){background:var(--bg)}
body.yg #fixedStrip.ygoff{display:none!important}
body.yg #topFeedStatus{display:none}
body.yg{padding-top:0!important}
body.yg.ygnoscroll{overflow:hidden}
/* header: menu (left) · logo (center) · search + refresh (right) */
body.yg #mast{background:#fff;padding:10px max(12px,calc((100vw - 720px)/2)) 10px;border-bottom:1px solid var(--line);box-shadow:0 1px 0 #0000}
body.yg #mast .wrap{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px}
body.yg #mast .headerTools{grid-column:1;grid-row:1;justify-self:start;display:flex;gap:6px}
body.yg #mast .logo{grid-column:2;grid-row:1;display:flex;flex-direction:row;align-items:center;gap:8px;justify-self:center;text-align:center}
body.yg #mast .logo>div{display:flex;flex-direction:column;align-items:center}
body.yg #mast .logo h1{font-size:22px!important;font-weight:800;color:var(--ink);letter-spacing:-.3px;line-height:1.15}
body.yg #mast .logo small{font-size:10.5px!important;color:var(--faint);margin-top:1px;white-space:nowrap}
body.yg #mast .headerAppIcon{width:34px;height:34px;border-radius:9px}
body.yg #ygMenuBtn{grid-column:3;grid-row:1;justify-self:end;width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--ink)}
body.yg #ygMenuBtn svg,body.yg #newsSearchButton svg,body.yg #refresh svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
body.yg #newsSearchButton,body.yg #refresh{width:40px!important;height:40px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--ink);display:flex;align-items:center;justify-content:center;padding:0}
body.yg #mast button:active{background:var(--tile)!important}
/* weather / zmanim: one slim card */
body.yg #dayStatus{margin:10px auto 0;width:calc(100% - 24px);max-width:696px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:9px 12px}
body.yg #sponsorRail{background:var(--bg)}
/* section headers: icon + title on the right, "זעהט אלעס" on the left */
body.yg .ygh{display:flex;align-items:center;justify-content:space-between;padding:18px 2px 10px}
body.yg .ygh h2{display:flex;align-items:center;gap:7px;font-size:19px;font-weight:800;color:var(--ink);margin:0}
body.yg .ygh .ygi{width:22px;height:22px;color:var(--blue);flex:none}
body.yg .ygmore{font-size:13.5px;font-weight:700;color:var(--blue);padding:4px 2px}
body.yg .sh{padding:18px 2px 10px!important;display:flex;align-items:center;justify-content:space-between}
body.yg #topNews .sh{padding:0!important;display:block}
body.yg .sh h2{display:flex;align-items:center;gap:7px;font-size:19px!important;font-weight:800;color:var(--ink)}
body.yg .sh h2 .ygi{width:22px;height:22px;color:var(--blue)}
/* category tiles */
body.yg #ygCats{margin:0 -14px;padding:0 14px}
body.yg #ygCats #tabs{position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;height:auto}
body.yg #ygCats #tabs .wrap{padding:0!important;max-width:none}
body.yg #ygCats #tabList{display:flex!important;grid-template-columns:none!important;gap:12px!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:2px 2px 6px!important;margin:0 -14px;padding-inline:14px!important;scroll-snap-type:x proximity}
body.yg #ygCats #tabList::-webkit-scrollbar{display:none}
body.yg #ygCats #tabList button{flex:0 0 72px;display:flex!important;flex-direction:column;align-items:center;gap:6px;height:auto!important;padding:0!important;border:0!important;background:transparent!important;color:var(--ink)!important;scroll-snap-align:start}
body.yg #ygCats #tabList button .nav-icon{box-sizing:content-box;width:28px!important;height:28px!important;padding:19px;border-radius:18px;background:var(--tile);color:#173b8f;stroke-width:1.8}
body.yg #ygCats #tabList button>span:not(.nav-icon){font-size:12.5px!important;font-weight:600!important;color:var(--ink);white-space:nowrap}
body.yg #ygCats #tabList button.on .nav-icon{background:var(--blue);color:#fff}
body.yg #ygCats #tabList button.on>span{color:var(--blue)!important;font-weight:800!important}
/* horizontal rails */
body.yg .ygrail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -14px;padding:2px 14px 8px}
body.yg .ygrail::-webkit-scrollbar{display:none}
body.yg #top{display:block!important;grid-template-columns:none!important}
body.yg #top.yggrid{display:grid!important;grid-template-columns:1fr 1fr!important}
/* big photo cards (top stories) */
body.yg .ygbig{position:relative;flex:0 0 84%;max-width:440px;aspect-ratio:4/3.1;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#21407f,#0f2147);scroll-snap-align:start;box-shadow:0 2px 10px #0f214714;display:block}
body.yg .ygbig img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.yg .ygbig::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 30%,#0009 66%,#000c 100%)}
body.yg .ygcap{position:absolute;z-index:2;right:0;left:0;bottom:0;padding:14px 14px 13px;color:#fff}
body.yg .ygbig h3{font-size:19px;line-height:1.35;font-weight:800;color:#fff;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px #0006}
body.yg .ygbig .ygm{color:#ffffffd9;margin-bottom:5px}
body.yg .ygbig .ygc{background:var(--blue);color:#fff}
body.yg .ygbig.noimg::after{background:none}
/* meta line */
body.yg .ygm{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--faint)}
body.yg .ygc{display:inline-block;font-size:11px;font-weight:700;color:var(--blue);background:var(--tile);border-radius:6px;padding:2px 7px}
body.yg .ygd{direction:rtl;unicode-bidi:isolate}
/* video cards */
body.yg .ygvid{flex:0 0 66%;max-width:330px;text-align:right;scroll-snap-align:start;display:block}
body.yg .ygvf{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0f2147}
body.yg .ygvf img{width:100%;height:100%;object-fit:cover;display:block}
body.yg .ygplay{position:absolute;z-index:3;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#ffffffeb;box-shadow:0 2px 10px #0005}
body.yg .ygplay::after{content:"";position:absolute;left:20px;top:15px;border-style:solid;border-width:11px 0 11px 17px;border-color:transparent transparent transparent var(--blue)}
body.yg .ygplay.sm{width:34px;height:34px;margin:-17px 0 0 -17px}
body.yg .ygplay.sm::after{left:13px;top:10px;border-width:7px 0 7px 11px}
body.yg .ygdur{position:absolute;z-index:3;left:8px;bottom:8px;background:#000b;color:#fff;font:700 12px/1 Heebo,Arial,sans-serif;padding:4px 7px;border-radius:6px;direction:ltr}
body.yg .ygvid h3{font-size:14.5px;font-weight:700;line-height:1.4;color:var(--ink);margin:8px 2px 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.yg .ygvid small{font-size:12px;color:var(--faint);margin:0 2px;direction:ltr;display:inline-block}
/* picture tiles */
body.yg .yggrid{display:grid!important;grid-template-columns:1fr 1fr;gap:10px}
body.yg .ygpic{position:relative;aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:#dfe6f3;display:block}
body.yg .ygpic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.yg .ygpic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 45%,#000b 100%)}
body.yg .ygpic .ygcap{padding:10px 10px 9px}
body.yg .ygpic h3{font-size:13.5px;line-height:1.35;font-weight:700;color:#fff;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px #0007}
/* news cards */
body.yg #feed{display:flex!important;flex-direction:column;gap:10px;grid-template-columns:none!important}
body.yg .ygrow{display:flex;align-items:stretch;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;min-height:96px}
body.yg .ygth{position:relative;flex:0 0 112px;height:84px;border-radius:12px;overflow:hidden;background:#e4e9f3;order:-1}
body.yg .ygth img{width:100%;height:100%;object-fit:cover;display:block}
body.yg .ygtx{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:6px}
body.yg .ygrow h3{font-size:15.5px;font-weight:700;line-height:1.42;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.yg #feed .feedad{border-radius:16px;overflow:hidden;background:#fff;border:1px solid var(--line)}
body.yg #more{display:block;width:100%;margin:12px 0 0;padding:12px;border-radius:14px;background:#fff;border:1px solid var(--line);color:var(--blue);font-weight:700}
body.yg #more[hidden]{display:none}
body.yg .ygempty{color:var(--muted);padding:24px 4px;text-align:center}
body.yg #foot{padding:24px 4px 16px;color:var(--faint)}
/* ticker + chat button sit at the very bottom now (no bottom bar) */
body.yg #ticker{bottom:0!important}
body.yg #opinionChat{bottom:calc(var(--tkh) + 14px)!important}
body.yg #pill{bottom:calc(var(--tkh) + 14px)!important}
body.yg #article{bottom:0!important}
/* side menu */
#ygDrawer{position:fixed;inset:0;z-index:300;background:#0f214766;display:flex;justify-content:flex-end}
#ygDrawer[hidden]{display:none}
#ygDrawer .ygpane{width:min(300px,82vw);height:100%;background:#fff;padding:16px 14px 24px;overflow-y:auto;box-shadow:4px 0 24px #0003;position:relative}
#ygDrawer .ygx{position:absolute;top:10px;left:12px;font-size:28px;line-height:1;width:40px;height:40px;color:var(--ink)}
#ygDrawer .yglogo{display:flex;align-items:center;gap:9px;padding:6px 4px 16px;border-bottom:1px solid var(--line);margin-bottom:8px}
#ygDrawer .yglogo img{width:36px;height:36px;border-radius:10px}
#ygDrawer .yglogo b{font-size:19px;font-weight:800;color:var(--ink)}
#ygDrawer .ygitem{display:flex;align-items:center;gap:12px;width:100%;padding:11px 6px;font-size:16px;font-weight:600;color:var(--ink);border-radius:10px;text-align:right}
#ygDrawer .ygitem svg{width:22px;height:22px;color:var(--blue);flex:none}
#ygDrawer .ygitem:active{background:var(--tile)}
#ygDrawer .ygsep{height:1px;background:var(--line);margin:8px 0}
@media(min-width:720px){body.yg .ygbig{flex-basis:56%}body.yg .ygvid{flex-basis:40%}body.yg .yggrid{grid-template-columns:repeat(4,1fr)}}


/* ==== COMPACT pass (Tab, Oct 26 2026 5 PM — Solomon: "smaller of every type"). Everything ~60-70% height; remove this block to undo. ==== */
body.yg #mast{padding-top:6px!important;padding-bottom:6px!important}
body.yg #mast .logo h1{font-size:18px!important}
body.yg #mast .logo small{font-size:10px!important}
body.yg #mast .headerAppIcon{width:28px;height:28px;border-radius:8px}
body.yg #ygMenuBtn,body.yg #newsSearchButton,body.yg #refresh{width:34px!important;height:34px!important}
body.yg #ygMenuBtn svg,body.yg #newsSearchButton svg,body.yg #refresh svg{width:20px;height:20px}
body.yg #dayStatus{margin-top:6px;padding:6px 10px;border-radius:12px}
body.yg .ygh,body.yg .sh{padding:10px 2px 6px!important}
body.yg #topNews .sh{padding:0!important}
body.yg .ygh h2,body.yg .sh h2{font-size:16px!important;gap:6px}
body.yg .ygh .ygi,body.yg .sh h2 .ygi{width:18px;height:18px}
body.yg .ygmore{font-size:12.5px}
/* category tiles */
body.yg #ygCats #tabList{gap:8px!important;padding-bottom:2px!important}
body.yg #ygCats #tabList button{flex:0 0 58px;gap:4px}
body.yg #ygCats #tabList button .nav-icon{width:20px!important;height:20px!important;padding:11px;border-radius:13px}
body.yg #ygCats #tabList button>span:not(.nav-icon){font-size:11.5px!important}
/* rails */
body.yg .ygrail{gap:8px;padding-bottom:4px}
/* top stories: smaller photo cards */
body.yg .ygbig{flex:0 0 68%;aspect-ratio:16/10.5;border-radius:14px}
body.yg .ygcap{padding:9px 10px 8px}
body.yg .ygbig h3{font-size:15px;line-height:1.3;-webkit-line-clamp:2}
body.yg .ygbig .ygm{margin-bottom:3px}
body.yg .ygm{font-size:11.5px;gap:6px}
body.yg .ygc{font-size:10.5px;padding:1px 6px}
/* videos */
body.yg .ygvid,body.yg #ygVids .ygvid{flex:0 0 46%}
body.yg .ygvf{border-radius:12px}
body.yg .ygplay{width:36px;height:36px;margin:-18px 0 0 -18px}
body.yg .ygplay::after{left:14px;top:10px;border-width:8px 0 8px 12px}
body.yg .ygdur{left:5px;bottom:5px;font-size:11px;padding:3px 5px}
body.yg .ygvid h3{font-size:14px;line-height:1.3;margin:5px 1px 1px}
body.yg .ygvid small{font-size:11px}
/* pictures: 2 columns, shorter tiles */
body.yg .yggrid{gap:6px}
body.yg .ygpic{aspect-ratio:3/2;border-radius:12px}
body.yg .ygpic .ygcap{padding:6px 8px 6px}
body.yg .ygpic h3{font-size:13px;line-height:1.3;-webkit-line-clamp:2}
body.yg #ygPics .yggrid>.ygpic:first-child,body.yg #top.yggrid>.ygpic:first-child{aspect-ratio:2/1}
body.yg #ygPics .yggrid>.ygpic:first-child h3{font-size:15px}
/* news cards */
body.yg #feed{gap:6px}
body.yg .ygrow{gap:9px;padding:7px;min-height:0;border-radius:12px}
body.yg .ygth{flex:0 0 86px;height:64px;border-radius:9px}
body.yg .ygtx{gap:3px}
body.yg .ygrow h3{font-size:14.5px;line-height:1.36;-webkit-line-clamp:2}
body.yg #feed .feedad{border-radius:12px}
body.yg #more{padding:9px;margin-top:8px}
/* sticky ad row + day card: shorter */
body.yg #sponsorRail{padding:5px 12px}
body.yg #sponsorRail .small-ad{min-height:42px!important;height:42px}
body.yg #sponsorRail .small-ad>button{min-height:40px!important;height:40px;padding:2px 1px!important;gap:1px!important}
body.yg #sponsorRail .small-ad .ad-mark{width:16px!important;height:16px!important}
body.yg #sponsorRail .small-ad .feedad img,body.yg #adTop .small-ad .feedad video{height:40px!important;max-height:40px!important;min-height:0!important}
body.yg #adTop,body.yg #adTop .small-ad-viewport,body.yg #adTop .small-ad-motion{height:44px!important;min-height:0!important}
body.yg #dayStatus{padding:5px 10px;line-height:1.35}
@media(min-width:720px){body.yg .ygbig{flex-basis:40%}body.yg .ygvid,body.yg #ygVids .ygvid{flex-basis:28%}body.yg .yggrid{grid-template-columns:repeat(4,1fr)}}

/* ==== SAME-SIZE pass (Tab, Oct 26 2026 5:50 PM — Solomon: "everything that's a certain size should be all the same size"). Remove this block to undo. ==== */
/* 1. the sticky ad row sat 32px below the top (the old status bar is hidden) -> cards showed above it and looked cut. Stick it at the very top. */
body.yg{--feed-status-height:0px}
body.yg #sponsorRail{top:0!important;box-shadow:0 1px 0 var(--line)}
body.yg.reading #sponsorRail{top:0!important}
/* 2. ad boxes: every small ad the same box, same border, label on one line */
body.yg #sponsorRail .small-ad{box-sizing:border-box;overflow:hidden;border-radius:10px}
body.yg #sponsorRail .small-ad>button span,body.yg #sponsorRail .small-ad .feedad>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.yg #feed .feedad{box-sizing:border-box;height:84px;display:flex;align-items:center;gap:9px;padding:7px;overflow:hidden}
body.yg #feed .feedad img,body.yg #feed .feedad video{flex:0 0 86px;width:86px!important;height:64px!important;object-fit:cover;border-radius:9px}
body.yg #feed .feedad>div{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14.5px;line-height:1.36}
body.yg #feed .feedad:empty,body.yg #feed .feedad:not(:has(img,video,div:not(:empty))){display:none}
/* 3. story cards: every card the same height (title always takes 2 lines of room, chip+time one line), every picture the same size */
body.yg .ygrow{box-sizing:border-box;align-items:center;min-height:80px}
body.yg .ygrow .ygtx{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center}
body.yg .ygrow h3{min-height:2.72em;max-height:2.72em;margin:0}
body.yg .ygrow .ygm{white-space:nowrap;overflow:hidden;flex-wrap:nowrap!important;height:1.6em;align-items:center}
body.yg .ygth{flex:0 0 86px!important;width:86px;height:64px!important;align-self:center}
body.yg .ygth img{width:100%!important;height:100%!important;object-fit:cover}
body.yg .ygc{display:inline-block;white-space:nowrap;max-width:9em;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
/* 4. big top-story cards: same size, title room always 2 lines */
body.yg .ygbig h3{min-height:2.6em}
/* 5. home video cards + Videos tab: same height (title always 2 lines of room, clamped) */
body.yg .ygvid h3{min-height:2.6em;max-height:2.6em}
body.yg .ygvf img{object-fit:cover}
body.yg #videosPage .ygv-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;max-height:2.9em}
body.yg #videosPage .ygv-ph{aspect-ratio:16/9;height:auto!important;overflow:hidden}
body.yg #videosPage .ygv-ph img{width:100%;height:100%;object-fit:cover}
/* 6. pictures: every picture the same shape (the first one was twice as wide-short) */
body.yg #ygPics .yggrid>.ygpic:first-child,body.yg #top.yggrid>.ygpic:first-child{aspect-ratio:3/2}
body.yg #ygPics .yggrid>.ygpic:first-child h3{font-size:13px}
/* 7. section headers, category tiles, header buttons: one size each */
body.yg .ygh h2,body.yg .sh h2{line-height:24px!important;height:24px;min-height:24px;margin:0;align-items:center}
body.yg .ygh h2>span,body.yg .sh h2>span{line-height:20px;max-height:24px}
body.yg #ygCats #tabList button{flex:0 0 60px!important;width:60px;min-width:0}
body.yg #ygCats #tabList button>span:not(.nav-icon){max-width:60px;overflow:hidden;text-overflow:ellipsis}
body.yg #ygMenuBtn,body.yg #newsSearchButton,body.yg #refresh{width:34px!important;height:34px!important;min-width:34px;min-height:34px}
