/* The story card: one look for the Journal lists and the site homepage (data123.lt and /en/).
   build.py writes the same card markup in both places; edit the card here, not in blog.css or data123.css. */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--teal-2, #158377); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.meta > span + span::before { content: "·"; margin-right: 8px; color: #8fb5ad; }
/* the homepage row of pinned stories: the same grid and card size as the Journal list */
.home-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
@media (max-width: 1050px) { .home-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .home-stories { grid-template-columns: 1fr; } }
.story-card { border: 1px solid #dbe7e4; border-radius: 11px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px #12373c13; }
.card-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #e7f5ee; overflow: hidden; }
/* the illustrations are 4:3 and fill the panel; other shapes stay whole on the soft background */
.card-image img { width: 100%; height: 100%; object-fit: contain; }
.story-card:nth-child(3n+2) .card-image { background: #e6edf4; }
.story-card:nth-child(3n) .card-image { background: #edf3ef; }
.card-content { padding: 24px 23px 26px; display: flex; flex-direction: column; flex: 1; }
.card-content h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.75px; margin: 13px 0 12px; }
.card-content h3 a:hover { color: var(--teal); }
.card-content > p { font-size: 13px; line-height: 1.7; color: #658086; margin: 0 0 23px; }
.story-link { margin-top: auto; font-weight: 800; color: #08796c; font-size: 13px; align-self: flex-start; }
.story-link:hover { color: var(--navy); }
