/* Anej + Teja v1.43 | Latest stories match selected stories on the homepage.
   Also supports previously saved WordPress front-page templates with .at-v12-section. */
.at-home-v14 .at-v12-section:has(.wp-block-query),
.at-new-homepage .at-v12-section:has(.wp-block-query){
  background:#f4faf9!important;
  padding:clamp(48px,6vw,90px) 12px!important;
}
.at-home-v14 .at-v12-section:has(.wp-block-query) .at-v12-container,
.at-new-homepage .at-v12-section:has(.wp-block-query) .at-v12-container{
  width:100%!important;
  max-width:1440px!important;
  margin-inline:auto!important;
}
.at-home-v14 .at-v12-section:has(.wp-block-query) .at-eyebrow,
.at-new-homepage .at-v12-section:has(.wp-block-query) .at-eyebrow{
  text-align:center!important;
  color:#087c84!important;
  font-size:11px!important;
  letter-spacing:.19em!important;
  margin:0 auto 12px!important;
}
.at-home-v14 .at-v12-section:has(.wp-block-query) h2,
.at-new-homepage .at-v12-section:has(.wp-block-query) h2{
  text-align:center!important;
  max-width:900px!important;
  margin:0 auto 14px!important;
  color:#173d43!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(32px,4.1vw,58px)!important;
  font-weight:400!important;
  line-height:1.12!important;
}
.at-home-v14 .at-v12-section .at-latest-intro,
.at-new-homepage .at-v12-section .at-latest-intro{
  text-align:center!important;
  max-width:680px!important;
  margin:0 auto 35px!important;
  color:#526b70!important;
  font-size:15px!important;
  line-height:1.65!important;
}
.at-home-v14 .at-v12-section:has(.wp-block-query) .wp-block-query,
.at-new-homepage .at-v12-section:has(.wp-block-query) .wp-block-query{
  max-width:1440px!important;
  width:100%!important;
  margin:0 auto!important;
}
.at-home-v14 .at-v12-section .wp-block-post-template.is-layout-grid,
.at-new-homepage .at-v12-section .wp-block-post-template.is-layout-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(18px,2.2vw,34px)!important;
  padding:0!important;
  list-style:none!important;
  align-items:stretch!important;
}
.at-home-v14 .at-v12-section .wp-block-post-template > li,
.at-new-homepage .at-v12-section .wp-block-post-template > li{
  min-width:0!important;
  margin:0!important;
  display:flex!important;
}
.at-home-v14 .at-v12-section .wp-block-post-template .at-card,
.at-new-homepage .at-v12-section .wp-block-post-template .at-card{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  padding:0 0 18px!important;
  border:1px solid #d9ebea!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 5px 20px rgba(5,64,70,.04)!important;
  transition:box-shadow .2s ease,border-color .2s ease!important;
}
.at-home-v14 .at-v12-section .wp-block-post-template .at-card:hover,
.at-new-homepage .at-v12-section .wp-block-post-template .at-card:hover{
  box-shadow:0 12px 32px rgba(5,64,70,.12)!important;
  border-color:#87c9c9!important;
}
.at-home-v14 .at-v12-section .at-card > .wp-block-post-featured-image,
.at-new-homepage .at-v12-section .at-card > .wp-block-post-featured-image{
  width:100%!important;
  max-width:none!important;
  margin:0 0 18px!important;
  flex:none!important;
  line-height:0!important;
}
.at-home-v14 .at-v12-section .at-card .wp-block-post-featured-image img,
.at-new-homepage .at-v12-section .at-card .wp-block-post-featured-image img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/10!important;
  object-fit:cover!important;
  border-radius:0!important;
}
.at-home-v14 .at-v12-section .at-card > :not(.wp-block-post-featured-image),
.at-new-homepage .at-v12-section .at-card > :not(.wp-block-post-featured-image){
  margin-inline:20px!important;
  width:auto!important;
  max-width:none!important;
}
.at-home-v14 .at-v12-section .at-card .at-latest-story-category,
.at-new-homepage .at-v12-section .at-card .at-latest-story-category{
  font-size:11px!important;
  letter-spacing:.12em!important;
  font-weight:700!important;
  color:#087c84!important;
  margin-top:0!important;
  margin-bottom:8px!important;
}
.at-home-v14 .at-v12-section .at-card .at-latest-story-category a,
.at-new-homepage .at-v12-section .at-card .at-latest-story-category a{color:#087c84!important;}
.at-home-v14 .at-v12-section .at-card .wp-block-post-title,
.at-new-homepage .at-v12-section .at-card .wp-block-post-title{
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(21px,2vw,27px)!important;
  font-weight:400!important;
  line-height:1.24!important;
  margin-top:0!important;
  margin-bottom:10px!important;
}
.at-home-v14 .at-v12-section .at-card .wp-block-post-title a,
.at-new-homepage .at-v12-section .at-card .wp-block-post-title a{color:#173d43!important;}
.at-home-v14 .at-v12-section .at-card .wp-block-post-excerpt,
.at-new-homepage .at-v12-section .at-card .wp-block-post-excerpt{
  font-size:14px!important;
  line-height:1.6!important;
  color:#526b70!important;
  margin-top:0!important;
  margin-bottom:16px!important;
}
.at-home-v14 .at-v12-section .at-card .wp-block-post-excerpt__more-link,
.at-new-homepage .at-v12-section .at-card .wp-block-post-excerpt__more-link{display:none!important;}
.at-home-v14 .at-v12-section .at-card .at-latest-story-link,
.at-new-homepage .at-v12-section .at-card .at-latest-story-link{
  margin-top:auto!important;
  padding-top:10px!important;
  font-size:13px!important;
  font-weight:700!important;
  color:#087c84!important;
}
/* Legacy stored template: hide the date (a style absent from selected stories). */
.at-home-v14 .at-v12-section .at-card > .wp-block-post-date,
.at-new-homepage .at-v12-section .at-card > .wp-block-post-date{display:none!important;}
/* Legacy front page has no explicit card category; spacing and photo style still match. */
@media(max-width:920px){
 .at-home-v14 .at-v12-section .wp-block-post-template.is-layout-grid,
 .at-new-homepage .at-v12-section .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:590px){
 .at-home-v14 .at-v12-section:has(.wp-block-query),
 .at-new-homepage .at-v12-section:has(.wp-block-query){padding:46px 10px!important;}
 .at-home-v14 .at-v12-section .wp-block-post-template.is-layout-grid,
 .at-new-homepage .at-v12-section .wp-block-post-template.is-layout-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}
 .at-home-v14 .at-v12-section .at-card .wp-block-post-featured-image img,
 .at-new-homepage .at-v12-section .at-card .wp-block-post-featured-image img{aspect-ratio:16/9!important;}
}
