/* EP426: warmer homepage news cards with clear date, area and byline.
   All rules are confined to the existing local news grid. Card visibility,
   promotions and other homepage modules keep their own rules. */

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-grid--local > .ep-news-card {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #d5e3e5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(22, 59, 66, .09), 0 1px 3px rgba(22, 59, 66, .035) !important;
  text-decoration: none !important;
  isolation: isolate;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-grid--local > .ep-news-card:focus-visible {
  outline: 3px solid #087f78 !important;
  outline-offset: 3px !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-image {
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1.86 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #e5eceb !important;
  background: #e8e7df !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-image > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  filter: saturate(1.08) contrast(1.025) brightness(1.015) sepia(.025) !important;
  transition: transform .3s ease;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-image--empty {
  display: grid !important;
  place-items: center !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-image--empty > svg {
  width: 38px !important;
  height: 38px !important;
  color: #526f71 !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep426-news-caption {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 6px;
  color: #334b53;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 5px rgba(22, 45, 54, .12);
  font: 500 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-copy {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 13px 14px 14px !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep426-news-tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-width: 0;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep426-news-tags > .ep-news-category {
  display: inline-flex !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  font: 650 12px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  white-space: normal !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep426-news-area {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 3px 0;
  color: #376b69;
  font: 550 12px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep426-news-area > svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #168278;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-copy > strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  margin: 0 !important;
  color: #173e4d !important;
  font: 750 17.5px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: -.018em !important;
  text-shadow: none !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-copy > small {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  color: #455f6b !important;
  font: 400 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-meta {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid #e7eeee;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-meta > time {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
  overflow: visible !important;
  color: #3a626e !important;
  font: 550 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  white-space: normal !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-meta > time > svg,
html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-source > svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-source {
  display: flex !important;
  align-items: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
  overflow: visible !important;
  color: #53666e !important;
  font: 400 12px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-home-live-readers {
  font-size: 12px !important;
}

html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-arrow {
  display: none !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-grid--local > .ep-news-card:hover {
    transform: translateY(-2px);
    border-color: #97bdb8 !important;
    box-shadow: 0 10px 24px rgba(22, 59, 66, .14) !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card:hover .ep-news-image > img {
    transform: scale(1.025);
  }
}

/* Use one compact photo row per story on narrow screens, retaining the same
   card count and readable 15px/12px type across legacy stylesheet overrides. */
@media (max-width: 720px) {
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-grid--local {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-grid--local > .ep-news-card {
    grid-template-columns: 116px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    flex-direction: row !important;
    border-radius: 12px !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-image {
    flex: 0 0 116px !important;
    align-self: stretch !important;
    width: 116px !important;
    height: auto !important;
    min-height: 150px !important;
    aspect-ratio: auto !important;
    border-bottom: 0 !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-image > img {
    position: absolute;
    inset: 0;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-copy {
    padding: 10px 11px !important;
    gap: 6px !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-copy > strong {
    font-size: 15px !important;
    line-height: 1.32 !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-copy > small {
    display: none !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-meta {
    padding-top: 6px !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep426-news-caption {
    right: 5px;
    bottom: 5px;
    max-width: calc(100% - 10px);
    padding: 3px 5px;
    border-radius: 5px;
  }
}

@media (max-width: 390px) {
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-grid--local > .ep-news-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-image {
    flex-basis: 96px !important;
    width: 96px !important;
  }
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card > .ep-news-copy {
    padding-inline: 9px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-card,
  html body.ep313-home .ep-latest-section .ep-home-news-columns--unified .ep-news-image > img {
    transition: none !important;
  }
}
