/* Z24 909: restore pre-908 article card layout; compact CTA and readable dates only. */
.z24-read-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 94px;
  width: max-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid #173b46;
  border-radius: 9px;
  background: #173b46;
  color: #fff;
  font: 750 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(19, 51, 61, .12);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.z24-read-cta::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-right: 2px;
}
a.z24-read-cta:hover,
.articles-page .article-list-card:hover .z24-read-cta,
.article-page .article-related-card:hover .z24-read-cta {
  background: #275768;
  border-color: #275768;
  box-shadow: 0 4px 10px rgba(19, 51, 61, .17);
}
a.z24-read-cta:focus-visible,
.articles-page .article-list-card:focus-visible .z24-read-cta,
.article-page .article-related-card:focus-visible .z24-read-cta {
  outline: 3px solid #8fbd22;
  outline-offset: 2px;
}
/* Home: date and a real independent link. Keep other card content untouched. */
.article-grid .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
/* Keep original article card sizing. Only make the publication date readable. */
.article-grid .article-meta time {
  color: #435b65;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}
.article-grid .article-meta .z24-read-cta {
  font-size: 12px;
  color: #fff;
}
/* Article index: the whole card is the link, so the CTA is a visual part of it. */
.articles-page .article-list-card {
  display: flex;
  flex-direction: column;
}
.articles-page .article-list-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}
.articles-page .article-list-card .z24-read-cta {
  margin-top: auto;
  color: #fff;
}
.articles-page .article-list-card p {
  margin-bottom: 16px;
}
/* Related: retain the existing image, title, excerpt and card click area. */
.article-page .article-related-more.z24-read-cta {
  margin-top: auto;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
/* The two existing compact mobile homepage cards keep their original horizontal layout. */
@media (max-width: 820px) {
  .article-grid .article-card:nth-child(2) .article-meta,
  .article-grid .article-card:nth-child(3) .article-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .article-grid .article-card:nth-child(2) .article-meta time,
  .article-grid .article-card:nth-child(3) .article-meta time {
    font-size: 11px;
  }
  .article-grid .article-card:nth-child(2) .z24-read-cta,
  .article-grid .article-card:nth-child(3) .z24-read-cta {
    min-width: 86px;
    padding-inline: 10px;
    font-size: 11px;
  }
}
/* Article published/updated information: stronger contrast with no layout changes. */
.article-page .article-meta-public .article-meta-label { color: #576c75; }
.article-page .article-meta-public time {
  color: #344f5a;
  font-size: 13.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  opacity: 1;
}
@media (max-width: 700px) {
  .articles-page .article-list-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .articles-page .article-list-card .z24-read-cta {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .z24-read-cta { transition: none; }
}

/* Z24 911: homepage desktop/tablet-wide article cards keep their footer
   on the same baseline, regardless of excerpt length. Mobile <=820px untouched. */
@media (min-width: 821px) {
  .article-grid > .article-card {
    display: flex;
    flex-direction: column;
  }
  .article-grid > .article-card > .article-image {
    flex: 0 0 auto;
  }
  .article-grid > .article-card > .article-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }
  .article-grid > .article-card > .article-body > .article-meta {
    margin-top: auto;
  }
}

/* Z24 913: Homepage reading links align to the far RIGHT of each card.
   If date and button cannot fit in the same row, only the button wraps,
   remaining right-aligned. Other article lists and related cards unaffected. */
.article-grid .article-meta .z24-read-cta {
  margin-left: auto;
  margin-right: 0;
  flex: 0 0 auto;
}
/* Compact homepage cards on mobile/tablet have a horizontal image + body.
   Date begins on the left, action ends at the RIGHT edge of the white body.
   No absolute positioning or forced centering. */
@media (max-width: 820px) {
  .article-grid .article-card:nth-child(2) .article-meta,
  .article-grid .article-card:nth-child(3) .article-meta {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 12px !important;
    padding-top: 10px !important;
    min-height: 54px;
  }
  .article-grid .article-card:nth-child(2) .article-meta time,
  .article-grid .article-card:nth-child(3) .article-meta time {
    position: static;
    transform: none;
    flex: 0 0 auto;
    margin: 0;
  }
  .article-grid .article-card:nth-child(2) .article-meta .z24-read-cta,
  .article-grid .article-card:nth-child(3) .article-meta .z24-read-cta {
    position: static;
    justify-self: auto;
    align-self: auto;
    margin: 0 0 0 auto;
    min-width: 86px;
    max-width: 100%;
    padding-inline: 10px;
    flex: 0 0 auto;
  }
}
