/* Official SiGit — motion layer inspired by the supplied modern reference. */
body.osg-theme-modern{
  --ref-bg:#eaf6fd;
  --ref-panel:#ffffff;
  --ref-panel-soft:#f4fbff;
  --ref-line:#c8e7f5;
  --ref-navy:#12375a;
  --ref-blue:#0879c9;
  --ref-cyan:#19b9df;
  --ref-muted:#58748b;
  background:var(--ref-bg);
  color:var(--ref-navy);
  overflow-x:hidden;
}
body.osg-theme-modern .home-watermark{opacity:.06;filter:none}
body.osg-theme-modern main{position:relative;z-index:1}
body.osg-theme-modern .panel,
body.osg-theme-modern .sidebar-category-card{
  background:var(--ref-panel);
  border-color:var(--ref-line);
  color:var(--ref-navy);
  box-shadow:0 8px 22px rgba(23,91,128,.08);
}
body.osg-theme-modern .sectionhead h2,
body.osg-theme-modern .widgettitle,
body.osg-theme-modern .sidebar-category-card h3{color:var(--ref-navy)}
body.osg-theme-modern .note,
body.osg-theme-modern .muted,
body.osg-theme-modern .sidebar-category-card p{color:var(--ref-muted)}
body.osg-theme-modern .more{
  border-color:#acdced;
  background:#f2fbff;
  color:#14618e;
}
body.osg-theme-modern .more:hover{background:#d9f3fc;border-color:var(--ref-cyan)}

/* Header shell: pale blue reference palette while keeping the existing header markup. */
body.osg-theme-modern .osg-site-shell{--osg-bg:#eaf6fd;--osg-surface:#fff;--osg-line:#c8e7f5;--osg-text:#12375a;--osg-muted:#58748b;--osg-cyan:#19b9df}
body.osg-theme-modern .osg-topbar{background:#dff2fb!important;border-color:#b9dfef!important;color:#28536c!important}
body.osg-theme-modern .osg-brandbar{background:linear-gradient(110deg,#f7fcff,#dff3fb 65%,#c9ebf7)!important;border-color:#b9dfef!important}
body.osg-theme-modern .osg-navbar{background:#fff!important;border-color:#9fd8ed!important}
body.osg-theme-modern .osg-nav a{color:#24516d!important}
body.osg-theme-modern .osg-nav a:first-child,
body.osg-theme-modern .osg-nav a:hover,
body.osg-theme-modern .osg-nav a.active{background:#d8f2fb;color:#075f93}
body.osg-theme-modern .osg-searchbox{border-color:#91d2e9!important;background:#fff!important}
body.osg-theme-modern .osg-searchbox input{background:#fff!important;color:#12375a!important}
body.osg-theme-modern .osg-searchbox button{background:#0879c9!important}
body.osg-theme-modern .osg-menu-toggle,
body.osg-theme-modern .osg-search-toggle{background:#e7f7fc!important;border-color:#9fd8ed!important;color:#0d5d89!important}
body.osg-theme-modern .osg-mobile-menu{background:#f3fbff!important;border-color:#b5deed!important}
body.osg-theme-modern .osg-mobile-menu a{color:#184766!important}
body.osg-theme-modern .osg-mobile-menu a:hover{background:#d9f3fc!important;color:#075f93!important}
body.osg-theme-modern .osg-weather-summary b,
body.osg-theme-modern .osg-prayer-grid .osg-prayer b{color:#12375a}
body.osg-theme-modern .osg-prayer-grid .osg-prayer span,
body.osg-theme-modern .osg-weather-summary span{color:#58748b}
body.osg-theme-modern .osg-prayer-grid .osg-prayer{border-color:#c8e7f5;background:#f5fcff}

/* Scrolling title/ticker at the top of the content. */
.osg-live-ticker{
  width:100%;
  overflow:hidden;
  border-block:1px solid #9ed8eb;
  background:linear-gradient(90deg,#0b5c8b,#1187bb 45%,#0b5c8b);
  color:#fff;
  box-shadow:0 3px 12px rgba(18,78,112,.12);
}
.osg-live-ticker .wrap{display:flex;align-items:center;min-width:0;padding:8px 0}
.osg-live-ticker-label{flex:0 0 auto;padding:4px 9px;margin-right:10px;border-radius:5px;background:#ffd45c;color:#16324d;font-size:10px;font-weight:900;letter-spacing:.12em}
.osg-live-ticker-window{min-width:0;overflow:hidden;white-space:nowrap}
.osg-live-ticker-track{display:inline-flex;min-width:max-content;gap:42px;animation:osgTicker 28s linear infinite}
.osg-live-ticker-track span{font-size:12px;font-weight:800}
@keyframes osgTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Reference-style hero/local article surface. */
body.osg-theme-modern .manual-top .manual-feature,
body.osg-theme-modern .manual-top .manual-archive .item,
body.osg-theme-modern .world-news .feature,
body.osg-theme-modern .world-news .storymini,
body.osg-theme-modern .item{
  border-color:#bfe3f1;
  background:#fff;
  color:var(--ref-navy);
  box-shadow:0 6px 16px rgba(22,93,130,.07);
}
body.osg-theme-modern .manual-top .manual-feature-body,
body.osg-theme-modern .world-news .featurecontent{background:linear-gradient(0deg,rgba(5,40,67,.94),rgba(5,40,67,.08))}
body.osg-theme-modern .manual-top .manual-feature h3,
body.osg-theme-modern .world-news .feature h2,
body.osg-theme-modern .world-news .feature p,
body.osg-theme-modern .world-news .feature .meta{color:#fff}
body.osg-theme-modern .category,
body.osg-theme-modern .tag{background:#0b82be;color:#fff}
body.osg-theme-modern .manual-top .manual-archive .itembody strong,
body.osg-theme-modern .itembody strong,
body.osg-theme-modern .storymini strong{color:var(--ref-navy)}
body.osg-theme-modern .manual-top .manual-archive .itembody .meta,
body.osg-theme-modern .itembody .meta,
body.osg-theme-modern .storymini .meta{color:var(--ref-muted)}
body.osg-theme-modern .manual-top .manual-archive .archive-all,
body.osg-theme-modern .manual-top .manual-archive .archive-empty{background:#effaff;color:#14618e}

/* Continuous local archive marquee. */
.osg-infinite-marquee{position:relative;overflow:hidden}
.osg-infinite-marquee:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.7),transparent 16%,transparent 84%,rgba(255,255,255,.7))}
.osg-infinite-track{display:flex;flex-direction:column;gap:12px;will-change:transform;animation:osgArchiveWave 22s linear infinite}
.osg-infinite-track>*{flex:0 0 auto}
.osg-infinite-marquee:hover .osg-infinite-track,
.osg-infinite-marquee:focus-within .osg-infinite-track{animation-play-state:paused}
@keyframes osgArchiveWave{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,-50%,0)}}
body.osg-theme-modern .manual-top .manual-archive.osg-infinite-marquee{max-height:330px;padding:0 2px}
body.osg-theme-modern .manual-top .manual-archive.osg-infinite-marquee:before{position:sticky;z-index:2;top:0;background:linear-gradient(#fff 75%,transparent);padding-bottom:7px}
body.osg-theme-modern #featured-news-list.osg-infinite-marquee{max-height:315px;padding:3px 2px}
body.osg-theme-modern #featured-news-list.osg-infinite-marquee .osg-infinite-track{gap:12px}

/* Visible latest archive strip, filled from the existing latest-news feed. */
.latest-archive-panel{overflow:hidden}
.latest-archive-window{position:relative;overflow:hidden;margin-top:4px;padding:3px 0 8px}
.latest-archive-track{display:flex;width:max-content;gap:12px;animation:osgLatestMarquee 34s linear infinite;will-change:transform}
.latest-archive-track:hover,.latest-archive-track:focus-within{animation-play-state:paused}
.latest-archive-track .item{width:min(290px,75vw);flex:0 0 auto}
.latest-archive-track .osg-ad{display:none}
@keyframes osgLatestMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
body.osg-theme-modern .latest-archive-panel{background:linear-gradient(135deg,#f7fdff,#e1f5fc);border-color:#b7e0ee}
body.osg-theme-modern .latest-archive-panel .item{background:#fff;border-color:#c8e7f5}

/* Infinite 3D wave for category links; links remain clickable. */
body.osg-theme-modern .sidebar-category-list{perspective:900px;overflow:hidden;padding:3px 2px}
body.osg-theme-modern .sidebar-category-list a{
  position:relative;
  border-color:#b8e0ee;
  background:linear-gradient(100deg,#f4fcff,#d9f3fb);
  color:#125071;
  transform-origin:center;
  animation:osgCategoryWave 4.8s ease-in-out infinite;
}
body.osg-theme-modern .sidebar-category-list a:nth-child(2n){animation-delay:-2.4s}
body.osg-theme-modern .sidebar-category-list a:nth-child(3n){animation-delay:-1.2s}
body.osg-theme-modern .sidebar-category-list a:nth-child(4n){animation-delay:-3.6s}
body.osg-theme-modern .sidebar-category-list a span{color:#0879c9}
@keyframes osgCategoryWave{0%,100%{transform:translate3d(0,0,0) rotateX(0) rotateY(0);box-shadow:0 2px 0 rgba(8,121,201,.04)}25%{transform:translate3d(3px,-2px,0) rotateX(3deg) rotateY(-2deg);box-shadow:0 9px 16px rgba(8,121,201,.14)}50%{transform:translate3d(0,1px,0) rotateX(0) rotateY(2deg);box-shadow:0 3px 6px rgba(8,121,201,.08)}75%{transform:translate3d(-3px,-2px,0) rotateX(-3deg) rotateY(-1deg);box-shadow:0 9px 16px rgba(8,121,201,.14)}}

body.osg-theme-modern #osg-site-footer-mount footer{background:#dff2fb;border-color:#acdced;color:#38627a}
body.osg-theme-modern #osg-site-footer-mount a{color:#075f93}

/* Contrast corrections for legacy dark-theme selectors on the light reference surface. */
body.osg-theme-modern .weatherdesc,
body.osg-theme-modern .weatherdetails,
body.osg-theme-modern .status,
body.osg-theme-modern .global-prayer-date,
body.osg-theme-modern .global-prayer-zone,
body.osg-theme-modern .global-prayer-panel .note,
body.osg-theme-modern .manual-top .manual-archive .itembody span[style]{color:#0879c9!important}
body.osg-theme-modern .osg-carousel-controls button{
  border-color:#a8d9e9!important;
  background:#e9f8fd!important;
  color:#075f93!important;
}
body.osg-theme-modern .osg-carousel-count{color:#3b6178!important}
body.osg-theme-modern .osg-site-shell .osg-live-date,
body.osg-theme-modern .osg-site-shell .osg-date-time,
body.osg-theme-modern .osg-site-shell .osg-location,
body.osg-theme-modern .osg-site-shell .osg-prayer-status,
body.osg-theme-modern .osg-site-shell .osg-prayer-date,
body.osg-theme-modern .osg-site-shell .osg-prayer-zone,
body.osg-theme-modern .osg-site-shell .osg-header-ad-label{color:#365c73!important}
body.osg-theme-modern .osg-site-shell .osg-ribbon-label{color:#075f93!important}
body.osg-theme-modern #osg-site-footer-mount footer,
body.osg-theme-modern #osg-site-footer-mount footer p,
body.osg-theme-modern #osg-site-footer-mount footer small,
body.osg-theme-modern #osg-site-footer-mount footer label{color:#365c73!important}
body.osg-theme-modern #osg-site-footer-mount footer h1,
body.osg-theme-modern #osg-site-footer-mount footer h2,
body.osg-theme-modern #osg-site-footer-mount footer h3,
body.osg-theme-modern #osg-site-footer-mount footer strong{color:#12375a!important}

@media(max-width:760px){
  .osg-live-ticker .wrap{width:calc(100% - 20px)}
  .osg-live-ticker-label{font-size:9px;margin-right:7px;padding:4px 7px}
  .osg-live-ticker-track{gap:26px;animation-duration:22s}
  .osg-live-ticker-track span{font-size:11px}
  body.osg-theme-modern .manual-top .manual-archive.osg-infinite-marquee{max-height:260px}
  body.osg-theme-modern #featured-news-list.osg-infinite-marquee{max-height:290px}
  .latest-archive-track .item{width:min(260px,82vw)}
}
@media(prefers-reduced-motion:reduce){
  .osg-live-ticker-track,.osg-infinite-track,.latest-archive-track,
  body.osg-theme-modern .sidebar-category-list a{animation:none!important;transform:none!important}
}
