/* GENERATED FILE — DO NOT EDIT.
   Source: shared/design-system/article-card.css
   Regenerate: node shared/design-system/sync.mjs
   Edits here are overwritten and will silently desync the other targets. */

/* ============================================================
   Focus Media Services — ARTICLE CARD component
   ------------------------------------------------------------
   THE one article card. Used by /thoughts (index + "Keep
   Reading") and by the membership page's "Recent Issues".
   Markup contract:

     <div class="post-grid">
       <article class="post-card card-surface">
         <a class="post-card__media" href="…"><img …></a>
         <div class="post-card__body">
           <div class="post-meta">
             <span class="post-meta__item"><span class="cat">…</span></span>
             <span class="post-meta__item"><span class="dot"></span><span>date</span></span>
           </div>
           <h3><a href="…">Title</a></h3>
           <p>Excerpt</p>
           <a class="link-more" href="…">Read</a>
         </div>
       </article>
     </div>

   Depends on .card-surface and .link-more from the base
   stylesheet, and on tokens.css for every color/radius/shadow.

   Canonical source — edit here, then run:
       node shared/design-system/sync.mjs
   ============================================================ */

/* ---------- cards ---------- */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; }
.post-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--muted);
}
.post-card__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 24px; }
.post-card__body h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 8px 0 10px;
    color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
}
.post-card__body h3 a:hover { text-decoration: underline; }
.post-card__body p {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--body-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-meta {
    display: flex;
    /* The long category names (8/26 taxonomy) overflow a card's width — wrap
       between items instead of crushing the row. */
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--text-soft);
}
/* Each separator dot rides INSIDE the item it introduces, so a wrapped line
   opens with a green bullet — never a separator stranded at a line end. The
   item's inside is normal inline flow: the longest category names can wrap
   mid-name (they can exceed a whole card's width) with the dot glued to the
   first line. */
.post-meta__item { min-width: 0; }
.post-meta__item .dot { display: inline-block; vertical-align: middle; margin-right: 10px; }
.post-meta .cat { color: var(--secondary); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.post-card__body .post-meta:last-child { margin-top: auto; }
.post-card .link-more { margin-top: auto; font-size: 14px; }

/* Cross-fade for a grid whose contents are replaced at runtime (the membership
   page swaps its placeholder cards for live articles once the covers have
   loaded -- see site/assets/js/recent-articles.js). */
.post-grid { transition: opacity .28s ease-in-out; }
.post-grid.is-swapping { opacity: 0; }

/* A "browse more" link following a grid. The grid's own 26px gap is not enough
   separation on its own -- flush against the cards the link reads as part of
   the last one, especially when the cards are of unequal height. */
.post-grid-more {
    margin-top: 36px;
    text-align: center;
}


/* ---------- cover fallback (article has no artwork at all) ---------- */
.cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(420px 260px at 78% -10%, rgba(63, 175, 236, .25), transparent 65%),
        linear-gradient(135deg, #1b4a74, #0f2a44);
    background-color: var(--primary);
}
.cover-fallback img {
    width: 58%;
    max-width: 190px;
    height: auto;
    opacity: .78;
}
