/* ZAGO.GR v0.38 — approved targeted responsive / offbeat / light mode fixes */
/* On touch widths, FUN must be a normal last item inside horizontal scroll. */
@media(max-width:1100px){
 #quick #zago28-fun,#quick #zago28-fun[aria-expanded="true"]{
   position:static!important;right:auto!important;left:auto!important;
   margin-left:0!important;inset:auto!important;transform:none!important;
   flex:0 0 auto!important;z-index:auto!important;
 }
 #quick{scroll-snap-type:x proximity;}
 #quick > a,#quick > button{scroll-snap-align:start;}
}
/* White editorial block lives immediately after ZAGO NEWS; same original accordion IDs. */
#funpanel.zago38-offbeat{
 --text:#203750;--muted:#52697f;--tile:#edf3f8;--line:#d4e0eb;--accent:#996018;
 color:#203750!important;background:#fff!important;border:1px solid #cbd9e7!important;
 box-shadow:0 3px 14px rgba(15,39,64,.12);min-width:0;overflow:visible;
}
#funpanel.zago38-offbeat h3{font-size:13px;color:#9b5a14!important;letter-spacing:.25px;margin-bottom:8px}
#funpanel.zago38-offbeat #fun{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 11px;align-items:start;}
#funpanel.zago38-offbeat #fun .zago26-fun-section{
 background:#f4f7fa!important;border:1px solid #d7e2ed!important;
 border-radius:7px!important;margin:0!important;padding:0!important;min-width:0;
}
#funpanel.zago38-offbeat #fun .zago26-fun-section>summary{
 display:flex!important;align-items:center!important;min-height:45px;
 padding:10px 12px!important;color:#233e58!important;font-size:12px!important;
 font-weight:700!important;line-height:1.35!important;overflow-wrap:anywhere;
}
#funpanel.zago38-offbeat #fun .zago26-fun-section>summary::before{color:#a7732e!important;flex:none}
#funpanel.zago38-offbeat #fun .zago26-fun-section>summary:hover,#funpanel.zago38-offbeat #fun .zago26-fun-section[open]>summary{background:#e9f0f7!important;border-radius:7px 7px 0 0}
#funpanel.zago38-offbeat #fun .zago26-fun-body{background:#fff!important;border-top:1px solid #dce6ef!important;padding:10px 12px 13px!important;min-width:0;}
#funpanel.zago38-offbeat #fun .zago26-fun-heading{color:#875b21!important;font-size:10.5px!important;margin:8px 0 4px!important}
#funpanel.zago38-offbeat #fun .zago26-fun-body a.zago26-link{
 color:#234a6b!important;border-bottom:1px solid #e2ebf3!important;line-height:1.5!important;
 padding:7px 2px!important;font-weight:550!important;min-width:0;overflow-wrap:anywhere;
}
#funpanel.zago38-offbeat #fun .zago26-fun-body a.zago26-link:hover{color:#8d500d!important;text-decoration:underline!important}
#funpanel.zago38-offbeat #fun .zago26-fun-body a:focus-visible{outline:2px solid #cb8f3c;outline-offset:2px}
@media(max-width:680px){#funpanel.zago38-offbeat #fun{grid-template-columns:minmax(0,1fr)!important}}
/* Light theme fixes: old v0.22 forced white strike headlines on white panels. */
body.light #strikesPanel #strikesTeaser .strike-entry{border-bottom-color:#c4d3e0!important;background:transparent!important}
body.light #strikesPanel #strikesTeaser .strike-entry>a,
body.light #strikesPanel #strikesExpanded .strike-entry>a,
body.light #strikesPanel #strikesExpanded .history-headline,
body.light #strikesPanel #strikesExpanded .history-text,
body.light #strikesPanel #strikesExpanded .zago16-result a{
 color:#1b3853!important;text-shadow:none!important;opacity:1!important;
}
body.light #strikesPanel #strikesTeaser .strike-entry>a:hover,
body.light #strikesPanel #strikesExpanded a:hover{color:#865119!important;text-decoration:underline!important}
body.light #strikesPanel #strikesTeaser .strike-entry .source,
body.light #strikesPanel #strikesExpanded .source,
body.light #strikesPanel .zago16-note,
body.light #strikesPanel .small,
body.light #strikesPanel .source-discreet{color:#506980!important;opacity:1!important}
body.light #strikesPanel #strikesExpanded .zago16-result,
body.light #strikesPanel #strikesExpanded .strike-entry{background:#edf3f8!important;color:#1b3853!important;border-left-color:#a16d30!important;border-bottom-color:#cbd8e5!important}
body.light #strikesPanel #strikesExpanded .zago16-tabs button{color:#203a53!important;background:#e6eef6!important}
body.light #strikesPanel #strikesExpanded .zago16-tabs button.active{background:#244c70!important;color:#fff!important}
/* Reuse high contrast for all headings and secondary text inside light-mode left cards. */
body.light #todayPanel .history-entry a,body.light #strikesPanel a{opacity:1;}

/* Desktop-preview mode on a small physical screen should retain the two-column desktop card. */
body.zago37-desktop-preview #funpanel.zago38-offbeat #fun{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* Light-mode contrast sweep: source references below history, strikes and newspapers. */
body.light .source-discreet a,
body.light .frontpages-actions a{color:#805014!important;text-decoration:underline;text-underline-offset:2px}
