/* Sahitya Sanjeevani v11.8.60 — four boxed, real-data homepage sections below genres.
 * New selectors are confined to this homepage block: banner, genre cards, thoughts,
 * footer, inner pages and the already approved white-blue-green palette are unchanged. */
body.sst-reference-ui .sst-reference-home .sst-below-genres{
  display:grid!important; grid-template-columns:minmax(0,2fr) minmax(285px,1fr)!important;
  gap:14px!important; align-items:start!important; min-width:0;
  margin:0 0 16px!important; padding:0!important;
  background:transparent!important; border:0!important; box-shadow:none!important;
}
body.sst-reference-ui .sst-reference-home :is(.sst-below-genres-main,.sst-below-genres-side){
  display:grid; grid-template-columns:minmax(0,1fr); gap:13px; min-width:0; align-content:start;
}
body.sst-reference-ui .sst-reference-home .sst-compact-panel{
  display:block!important; min-width:0!important; margin:0!important;
  padding:12px 13px 13px!important; overflow:hidden;
  background:#fff!important; background-image:none!important;
  border:1pt solid #14532d!important; border-radius:16px!important;
  box-shadow:0 5px 18px rgba(8,70,60,.05)!important;
  color:#173e67!important; -webkit-text-fill-color:#173e67!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading{
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  gap:8px!important; min-width:0!important; padding:0 0 7px!important; margin:0 0 10px!important;
  border:0!important; border-bottom:1px solid #e7edea!important;
  background:transparent!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading h2{
  flex:1; min-width:0; margin:0!important; padding:0!important;
  font-family:'Noto Sans Devanagari',Mangal,Arial,sans-serif!important;
  font-size:clamp(1rem,1.45vw,1.24rem)!important; line-height:1.35!important;
  font-weight:900!important; color:#173e67!important; -webkit-text-fill-color:#173e67!important;
  text-align:left!important; text-shadow:none!important; background:transparent!important;
  background-image:none!important; -webkit-background-clip:initial!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading h2 span{
  color:#08704d!important; -webkit-text-fill-color:#08704d!important;
  margin-right:5px; font-size:.96em;
}
body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading>a{
  display:inline-flex!important; align-items:center!important; justify-content:center!important;
  min-height:28px!important; flex:none!important; margin:0!important; padding:4px 10px!important;
  background:#effaf2!important; background-image:none!important; color:#07563f!important;
  -webkit-text-fill-color:#07563f!important; border:1px solid #d6ebdf!important;
  border-radius:99px!important; box-shadow:none!important;
  font-size:.73rem!important; font-weight:850!important; line-height:1.2!important;
  text-decoration:none!important; white-space:nowrap;
}
body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading>a:is(:hover,:focus-visible){
  background:#07563f!important; border-color:#07563f!important;
  color:#fff!important; -webkit-text-fill-color:#fff!important;
}

/* Latest: five compact cover cards, with working previous/next arrows. */
body.sst-reference-ui .sst-reference-home .sst-compact-carousel{position:relative;min-width:0;}
body.sst-reference-ui .sst-reference-home .sst-compact-work-grid{
  display:flex!important; flex-wrap:nowrap!important; gap:8px!important; min-width:0!important;
  overflow-x:auto!important; scroll-behavior:smooth; scroll-snap-type:x proximity;
  scrollbar-width:none; overscroll-behavior-x:contain; padding:1px 1px 3px!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-grid::-webkit-scrollbar{display:none;}
body.sst-reference-ui .sst-reference-home .sst-compact-work-card{
  flex:0 0 calc((100% - 32px)/5); min-width:0!important; overflow:hidden;
  scroll-snap-align:start; border:1px solid #e0e9e9!important; border-radius:9px!important;
  background:#fff!important; box-shadow:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-image{
  display:block; aspect-ratio:1.44/1; width:100%; overflow:hidden;
  background:#f1f7f4; text-decoration:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-image img{
  display:block!important; width:100%!important; height:100%!important;
  object-fit:cover!important; object-position:center!important; border:0!important;
  border-radius:0!important; filter:none!important; transform:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-body{
  display:flex; flex-direction:column; gap:3px; padding:6px 7px 8px; min-width:0;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-body h3{
  margin:0!important; padding:0!important; font-size:.77rem!important; font-weight:900!important;
  line-height:1.4!important; text-align:left!important; overflow:hidden;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-body h3 a{
  color:#174671!important; -webkit-text-fill-color:#174671!important; text-decoration:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-by{
  display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:.68rem!important; line-height:1.45!important; color:#58677b!important;
  -webkit-text-fill-color:#58677b!important; text-decoration:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-work-stats{
  display:flex; align-items:center; justify-content:space-between; gap:4px; padding-top:3px;
  font-size:.66rem; color:#506279!important; -webkit-text-fill-color:#506279!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-arrow{
  position:absolute!important; z-index:2; top:43%; transform:translateY(-50%);
  width:31px!important; height:31px!important; min-width:31px!important; min-height:31px!important;
  display:grid!important; place-items:center!important; padding:0!important; margin:0!important;
  border:1px solid #dce9df!important; border-radius:50%!important;
  background:#fff!important; background-image:none!important;
  color:#0b6549!important; -webkit-text-fill-color:#0b6549!important;
  box-shadow:0 2px 8px rgba(14,82,55,.14)!important;
  font:900 1.6rem/1 Arial,sans-serif!important; cursor:pointer;
}
body.sst-reference-ui .sst-reference-home .sst-compact-arrow[data-compact-direction="-1"]{left:-12px;}
body.sst-reference-ui .sst-reference-home .sst-compact-arrow[data-compact-direction="1"]{right:-12px;}
body.sst-reference-ui .sst-reference-home .sst-compact-arrow:is(:hover,:focus-visible){
  background:#07563f!important; border-color:#07563f!important;
  color:#fff!important; -webkit-text-fill-color:#fff!important;
}

/* Contest strip: real featured images and real open/upcoming dates only. */
body.sst-reference-ui .sst-reference-home .sst-compact-contest-grid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; min-width:0;
}
body.sst-reference-ui .sst-reference-home .sst-compact-contest-card{
  display:flex; flex-direction:column; gap:4px; padding:7px; min-width:0;
  border:1px solid #e7dfd1!important; border-radius:10px!important;
  background:linear-gradient(180deg,#fffdf8,#fff9f1)!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-contest-card h3{
  margin:0!important; padding:0!important; font-size:.73rem!important; font-weight:850!important;
  line-height:1.38!important; min-height:2.7em; overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
body.sst-reference-ui .sst-reference-home .sst-compact-contest-card h3 a{
  text-decoration:none!important; color:#173e67!important; -webkit-text-fill-color:#173e67!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-contest-card>small{
  font-size:.62rem; color:#596c75!important; line-height:1.4;
}
body.sst-reference-ui .sst-reference-home .sst-compact-contest-image{
  display:block; width:100%; aspect-ratio:1.5/1; min-height:0; overflow:hidden;
  background:#f3f5eb; border-radius:7px;
}
body.sst-reference-ui .sst-reference-home .sst-compact-contest-image img{
  display:block!important; width:100%!important; height:100%!important;
  object-fit:cover!important; filter:none!important; transform:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-cta{
  display:inline-flex!important; justify-content:center!important; align-items:center!important;
  min-height:27px!important; width:auto!important; padding:4px 10px!important; margin-top:auto;
  background:#075e44!important; background-image:none!important; border:1px solid #075e44!important;
  border-radius:99px!important; color:#fff!important; -webkit-text-fill-color:#fff!important;
  font-size:.7rem!important; font-weight:850!important; line-height:1.3!important;
  text-align:center!important; text-decoration:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-cta:is(:hover,:focus-visible){
  background:#174671!important; border-color:#174671!important;
  color:#fff!important; -webkit-text-fill-color:#fff!important;
}

/* The author's actual profile opens; following remains the existing profile action. */
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-list{
  list-style:none!important; padding:0!important; margin:0!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-list li{
  display:flex; gap:8px; min-width:0; align-items:center;
  padding:5px 0; margin:0!important; border-bottom:1px solid #e8eeeb;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-list li:last-child{border-bottom:0;}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-photo{
  display:block; flex:0 0 38px; width:38px; height:38px; overflow:hidden;
  border-radius:50%; border:1px solid #d7bc79; background:#f3f8f3;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-photo img{
  display:block!important; width:100%!important; height:100%!important; object-fit:cover!important;
  border-radius:50%!important; filter:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-details{
  display:flex; flex-direction:column; gap:1px; flex:1; min-width:0;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-details>a{
  display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-size:.8rem!important; font-weight:900!important; color:#174671!important;
  -webkit-text-fill-color:#174671!important; text-decoration:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-details small{
  font-size:.68rem; color:#657281!important; -webkit-text-fill-color:#657281!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-weekly-list .sst-compact-profile{
  flex:none; padding:4px 10px!important; font-size:.67rem!important; min-height:26px!important;
}

/* Literary video: one genuine YouTube card inside a compact white box. */
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-grid{
  display:grid!important; grid-template-columns:minmax(0,1fr)!important;
  gap:0!important; margin:0!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-card{
  min-width:0!important; overflow:hidden!important; background:#fff!important;
  box-shadow:none!important; border:1px solid #e0eae4!important; border-radius:10px!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-thumb{
  display:block!important; aspect-ratio:16/9; height:auto!important; max-height:220px;
  overflow:hidden!important; border-radius:8px 8px 0 0!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-thumb img{
  display:block!important; width:100%!important; height:100%!important;
  object-fit:cover!important; filter:none!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-body{
  padding:7px 9px 9px!important; background:#fff!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-body h3{
  margin:0 0 2px!important; font-size:.85rem!important; line-height:1.45!important;
  font-weight:900!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-body h3 a{
  color:#174671!important; -webkit-text-fill-color:#174671!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-author{
  color:#61717c!important; -webkit-text-fill-color:#61717c!important; font-size:.7rem!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-video .ssc-youtube-author a{
  color:#075e44!important; -webkit-text-fill-color:#075e44!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-empty{
  padding:12px 8px; margin:0!important; text-align:center;
  font-size:.85rem!important; color:#546d6a!important; -webkit-text-fill-color:#546d6a!important;
}
body.sst-reference-ui .sst-reference-home .sst-compact-empty a{color:#07563f!important;-webkit-text-fill-color:#07563f!important;}
body.sst-reference-ui .sst-reference-home .sst-supplement-popular-only{
  grid-template-columns:minmax(0,1fr)!important;
}
body.sst-reference-ui .sst-reference-home .sst-supplement-popular-only>.sst-reference-panel{
  grid-column:1/-1!important; min-width:0!important;
}
@media(max-width:1040px){
  body.sst-reference-ui .sst-reference-home .sst-below-genres{grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr)!important;}
  body.sst-reference-ui .sst-reference-home .sst-compact-work-card{flex-basis:calc((100% - 24px)/4);}
  body.sst-reference-ui .sst-reference-home .sst-compact-contest-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:780px){
  body.sst-reference-ui .sst-reference-home .sst-below-genres{grid-template-columns:minmax(0,1fr)!important;}
  body.sst-reference-ui .sst-reference-home .sst-below-genres-side{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;}
  body.sst-reference-ui .sst-reference-home .sst-compact-work-card{flex-basis:calc((100% - 24px)/4);}
}
@media(max-width:600px){
  body.sst-reference-ui .sst-reference-home .sst-below-genres-side{grid-template-columns:minmax(0,1fr);}
  body.sst-reference-ui .sst-reference-home .sst-compact-panel{padding:10px!important;}
  body.sst-reference-ui .sst-reference-home .sst-compact-work-card{flex-basis:calc((100% - 16px)/3);}
}
@media(max-width:390px){
  body.sst-reference-ui .sst-reference-home .sst-compact-work-card{flex-basis:calc((100% - 8px)/2);}
  body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading h2{font-size:.97rem!important;}
  body.sst-reference-ui .sst-reference-home .sst-compact-panel-heading>a{font-size:.67rem!important;}
  body.sst-reference-ui .sst-reference-home .sst-compact-contest-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
}
@media(prefers-reduced-motion:reduce){
  body.sst-reference-ui .sst-reference-home .sst-compact-work-grid{scroll-behavior:auto;}
}
