/* Anej + Teja v1.63: consistent destination-style story cards across home, archives and explorer. */
:root{--at-card-border:#d5e8e6;--at-card-accent:var(--at-accent,#087c84);--at-card-ink:#173d43}
/* Same border, radius, depth and photograph proportions everywhere. */
body.category .wp-block-query .wp-block-post-template > li > .wp-block-group,
body.category .wp-block-query .wp-block-post-template > li .at-card,
body.archive:not(.category) .wp-block-post-template > li > .wp-block-group,
body.home .wp-block-post-template > li > .wp-block-group.at-card,
body .at-home-v14 .at-v12-section .wp-block-post-template .at-card,
body .at-featured-stories-grid > .at-featured-story-card,
body .at-explorer .at-destination-tile{
  background:#fff!important;border:1px solid var(--at-card-border)!important;
  border-radius:12px!important;box-shadow:0 5px 20px rgba(5,64,70,.05)!important;
  overflow:hidden!important;min-width:0;position:relative;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease!important;
}
body.category .wp-block-post-template > li > .wp-block-group,
body.archive:not(.category) .wp-block-post-template > li > .wp-block-group{
  padding:0 0 18px!important;display:flex!important;flex-direction:column;min-height:100%;width:100%;
}
body.category .wp-block-post-template > li > .wp-block-group:hover,
body.archive:not(.category) .wp-block-post-template > li > .wp-block-group:hover,
body .at-home-v14 .at-v12-section .at-card:hover,
body .at-featured-stories-grid > .at-featured-story-card:hover,
body .at-explorer .at-destination-tile:hover{
  border-color:var(--at-card-accent)!important;
  box-shadow:0 12px 30px rgba(5,64,70,.12)!important;transform:translateY(-3px);
}
/* Article cards: photos touch the card border, copy has a consistent inset. */
body.category .wp-block-post-template > li > .wp-block-group > .wp-block-post-featured-image,
body.archive:not(.category) .wp-block-post-template > li > .wp-block-group > .wp-block-post-featured-image{
  margin:0 0 16px!important;width:100%!important;overflow:hidden;flex:none;line-height:0;
}
body.category .wp-block-post-template .wp-block-post-featured-image img,
body.archive:not(.category) .wp-block-post-template .wp-block-post-featured-image img,
body .at-home-v14 .at-v12-section .wp-block-post-featured-image img,
body .at-featured-story-card .at-featured-story-image img,
body .at-explorer .at-destination-tile .atw-dest-photo{
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/10!important;object-fit:cover!important;border-radius:0!important;
}
body.category .wp-block-post-template > li > .wp-block-group > :not(.wp-block-post-featured-image),
body.archive:not(.category) .wp-block-post-template > li > .wp-block-group > :not(.wp-block-post-featured-image){
  margin-left:18px!important;margin-right:18px!important;width:auto!important;max-width:none!important;
}
body.category .wp-block-post-template .wp-block-post-title,
body.archive:not(.category) .wp-block-post-template .wp-block-post-title{
  font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(20px,1.8vw,25px)!important;
  line-height:1.24!important;font-weight:400!important;margin-top:0!important;margin-bottom:10px!important;
}
body.category .wp-block-post-template .wp-block-post-title a,
body.archive:not(.category) .wp-block-post-template .wp-block-post-title a{color:var(--at-card-ink)!important;text-decoration:none!important}
body.category .wp-block-post-template .wp-block-post-excerpt,
body.archive:not(.category) .wp-block-post-template .wp-block-post-excerpt{font-size:13px!important;line-height:1.6!important;color:#526b70!important;margin-bottom:12px!important}
body.category .wp-block-post-template .wp-block-post-date,
body.archive:not(.category) .wp-block-post-template .wp-block-post-date{margin-top:auto!important;padding-top:8px!important;font-size:11px!important;color:#718588!important}
/* Destination explorer: same photographic card, with original filters and link interactions intact. */
body .at-explorer .at-destination-tile{padding:0 0 17px!important;gap:7px!important}
body .at-explorer .at-destination-tile > :not(.at-unified-destination-photo):not(.atw-dest-photo){margin-left:18px!important;margin-right:18px!important}
body .at-explorer .at-destination-tile .at-unified-destination-photo{margin:0!important;position:relative;overflow:hidden;width:100%}
body .at-explorer .at-destination-tile .atw-dest-photo{margin:0!important;max-height:none!important}
body .at-explorer .at-destination-tile h3{font-family:Georgia,'Times New Roman',serif!important;font-size:clamp(20px,1.8vw,25px)!important;line-height:1.24!important}
body .at-explorer .at-destination-tile p{font-size:13px!important;line-height:1.6!important;color:#526b70!important}
/* Featured large story keeps its horizontal layout, but gains exactly the same border. */
body.category .atce-featured-card{border:1px solid var(--at-card-border)!important;border-radius:12px!important;box-shadow:0 5px 20px rgba(5,64,70,.05)!important;background:#fff!important}
body.category .atce-featured-image{position:relative;overflow:hidden}
/* Rating is always on photo; no fake score for posts without a stored Premium Rating. */
.wp-block-post-featured-image:has(>.at-unified-rating),
.at-featured-story-image:has(>.at-unified-rating),
.atce-featured-image:has(>.at-unified-rating){position:relative!important;overflow:hidden}
.at-unified-rating{
  position:absolute!important;top:11px;right:11px;z-index:4;display:inline-flex!important;align-items:center;
  gap:4px;background:rgba(5,63,69,.94);color:#fff!important;padding:7px 10px!important;
  border:1px solid rgba(255,255,255,.24);border-radius:999px;
  box-shadow:0 4px 14px rgba(0,0,0,.17);font:600 12px/1 Arial,Helvetica,sans-serif!important;
  letter-spacing:0!important;white-space:nowrap;pointer-events:none;
}
.at-unified-rating strong{color:#fff!important;font-size:13px!important;font-weight:750!important}
.at-unified-rating .at-unified-rating-star{color:#f6d68d!important;font-size:15px;line-height:1}
.at-unified-rating .at-unified-rating-max{opacity:.82;font-size:11px}
@media(max-width:650px){
 body.category .wp-block-post-template > li > .wp-block-group,
 body.archive:not(.category) .wp-block-post-template > li > .wp-block-group{padding-bottom:16px!important}
 .at-unified-rating{top:9px;right:9px;padding:6px 8px!important}
}
@media(prefers-reduced-motion:reduce){body .at-explorer .at-destination-tile,body.category .wp-block-post-template > li > .wp-block-group{transition:none!important}}
