/* Homepage module. Colours come from Blocksy variables so dark mode works. */
.sn-home-block{margin:0 0 2.5rem}
.sn-home-block__title{font-family:Georgia,"Times New Roman",serif;font-size:1.75rem;line-height:1.2;margin:0 0 1.25rem;padding-bottom:.6rem;border-bottom:3px solid #d32f2f;display:inline-block}
.sn-home-item{display:flex;flex-direction:column;min-width:0}
.sn-home-item__img{display:block;aspect-ratio:16/9;overflow:hidden;border-radius:6px;background:var(--theme-palette-color-6,#eee)}
.sn-home-item__img img,.sn-home-noimg{display:block;width:100%;height:100%;object-fit:cover}
.sn-home-item__body{padding-top:.7rem}
.sn-home-item__cat{display:block;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#d32f2f;margin-bottom:.25rem}
.sn-home-item__title{font-family:Georgia,"Times New Roman",serif;font-size:1.15rem;line-height:1.3;margin:0 0 .4rem;font-weight:700}
.sn-home-item__title a{color:var(--theme-text-color);text-decoration:none}
.sn-home-item__title a:hover{color:#d32f2f}
.sn-home-item__excerpt{font-size:.9rem;line-height:1.5;margin:0 0 .5rem;color:var(--theme-text-color);opacity:.85}
.sn-home-item__date{font-size:.8rem;opacity:.7}
/* Featured */
.sn-home-featured__grid{display:grid;gap:1.5rem}
.sn-home-item--lead .sn-home-item__title{font-size:1.75rem;line-height:1.2}
.sn-home-item--lead .sn-home-item__excerpt{font-size:1rem}
.sn-home-featured__list{display:flex;flex-direction:column;gap:1rem}
.sn-home-item--compact,.sn-home-item--mini{flex-direction:row;gap:.9rem;align-items:flex-start}
.sn-home-item--compact .sn-home-item__img{flex:0 0 120px;width:120px;aspect-ratio:4/3}
.sn-home-item--compact .sn-home-item__body{padding-top:0;flex:1;min-width:0}
.sn-home-item--compact .sn-home-item__title{font-size:1rem}
/* Latest and sections: phone first, compact rows */
.sn-home-latest__grid,.sn-home-section__grid{display:flex;flex-direction:column;gap:1rem}
.sn-home-latest__grid .sn-home-item--card,.sn-home-section__grid .sn-home-item--card{display:grid;grid-template-columns:120px 1fr;gap:.8rem;align-items:start}
.sn-home-item--card .sn-home-item__img{aspect-ratio:16/9}
.sn-home-item--card .sn-home-item__body{padding-top:0}
.sn-home-item--card .sn-home-item__title{font-size:1rem;margin-bottom:.25rem}
.sn-home-item--card .sn-home-item__excerpt{display:none}
.sn-home-adslot{margin:.25rem 0}
.sn-home-rail{margin-top:1.5rem}
.sn-home-section__head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem;border-bottom:1px solid var(--theme-palette-color-6,#ddd)}
.sn-home-section__head .sn-home-block__title{margin:0;border-bottom:3px solid #d32f2f;margin-bottom:-1px}
.sn-home-section__more{font-size:.85rem;font-weight:600;color:var(--theme-text-color);text-decoration:none;padding:.5rem 0;min-height:24px}
.sn-home-section__more:hover{color:#d32f2f}
/* Wide banners: normal image blocks, made fluid */
.home .entry-content>.wp-block-image{margin:0 0 1.5rem}
.home .entry-content>.wp-block-image img{width:100%!important;height:auto!important;max-height:none!important;display:block}
.home .entry-content>.wp-block-separator{display:none}
@media (max-width:689.98px){
  .home .entry-content>.wp-block-image{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw;max-width:100vw}
  .sn-home-block{margin-bottom:1.75rem}
  .sn-home-block__title{font-size:1.5rem}
  .sn-home-featured__list .sn-home-item--compact:nth-child(n+1){padding-top:.25rem}
}
/* Tablet: two columns */
@media (min-width:690px){
  .sn-home-latest__grid,.sn-home-section__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.75rem 1.5rem}
  .sn-home-latest__grid .sn-home-item--card,.sn-home-section__grid .sn-home-item--card{display:flex}
  .sn-home-item--card .sn-home-item__body{padding-top:.7rem}
  .sn-home-item--card .sn-home-item__title{font-size:1.1rem}
  .sn-home-item--card .sn-home-item__excerpt{display:block}
  .sn-home-adslot{grid-column:1/-1}
  .sn-home-featured__grid{grid-template-columns:3fr 2fr;gap:2rem}
}
/* Desktop: main area plus banner column */
@media (min-width:1000px){
  .sn-home-latest__wrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:2rem;align-items:start}
  .sn-home-latest__grid{grid-template-columns:repeat(3,1fr)}
  .sn-home-latest__aside{position:static}
  .sn-home-section__grid{grid-template-columns:repeat(4,1fr);gap:1.5rem}
  .sn-home-section__grid .sn-home-item__excerpt{display:none}
  .sn-home-featured__grid{grid-template-columns:3fr 2fr}
  .sn-home-item--lead .sn-home-item__title{font-size:2.1rem}
}

/* Desktop: banners beyond the side column */
.sn-home-adgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;margin-top:2rem;align-items:start}
.sn-home-adgrid .sn-ad{width:100%}
