/* FangDeck editorial archive cards only. The existing grid and theme remain in charge. */
body.archive .fd-post-grid > article.fd-post-card,
body.blog .fd-post-grid > article.fd-post-card,
body.search .fd-post-grid > article.fd-post-card{
  position:relative;display:flex;flex-direction:column;min-width:0;height:100%;
  background:var(--fd-surface,#fff);border:1px solid var(--fd-line,#dce5e3);
  border-radius:14px;overflow:hidden;box-sizing:border-box;
}
body.archive .fd-post-grid > article.fd-post-card > .fd-post-card__media,
body.blog .fd-post-grid > article.fd-post-card > .fd-post-card__media,
body.search .fd-post-grid > article.fd-post-card > .fd-post-card__media{
  display:block;flex:0 0 auto;width:100%;aspect-ratio:16/10;overflow:hidden;
  background:#eaf0ef;text-decoration:none;
}
body.archive .fd-post-grid > article.fd-post-card > .fd-post-card__media img,
body.blog .fd-post-grid > article.fd-post-card > .fd-post-card__media img,
body.search .fd-post-grid > article.fd-post-card > .fd-post-card__media img{
  display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;margin:0;
}
body.archive .fd-post-grid > article.fd-post-card > .fd-post-card__body,
body.blog .fd-post-grid > article.fd-post-card > .fd-post-card__body,
body.search .fd-post-grid > article.fd-post-card > .fd-post-card__body{
  display:flex!important;flex:1 1 auto;flex-direction:column;align-items:stretch;
  min-width:0;min-height:0;height:auto!important;max-height:none!important;
  visibility:visible!important;opacity:1!important;overflow:visible!important;
  padding:18px 18px 20px;box-sizing:border-box;background:var(--fd-surface,#fff);
  color:var(--fd-ink,#19363d);text-align:left;transform:none!important;
}
body.archive .fd-post-grid > article.fd-post-card .fd-post-card__body h2,
body.blog .fd-post-grid > article.fd-post-card .fd-post-card__body h2,
body.search .fd-post-grid > article.fd-post-card .fd-post-card__body h2{
  display:block!important;visibility:visible!important;opacity:1!important;
  height:auto!important;max-height:none!important;overflow:visible!important;
  margin:0 0 10px;font-size:1.13rem;line-height:1.38;font-weight:700;
  letter-spacing:normal;overflow-wrap:anywhere;white-space:normal!important;
}
body.archive .fd-post-grid > article.fd-post-card .fd-post-card__body h2 a,
body.blog .fd-post-grid > article.fd-post-card .fd-post-card__body h2 a,
body.search .fd-post-grid > article.fd-post-card .fd-post-card__body h2 a{
  color:var(--fd-ink,#19363d);text-decoration:none;
}
body.archive .fd-post-grid > article.fd-post-card .fd-post-card__body > p,
body.blog .fd-post-grid > article.fd-post-card .fd-post-card__body > p,
body.search .fd-post-grid > article.fd-post-card .fd-post-card__body > p{
  display:block!important;visibility:visible!important;opacity:1!important;
  height:auto!important;max-height:none!important;overflow:visible!important;
  margin:0 0 16px;color:var(--fd-muted,#607174);font-size:.92rem;line-height:1.65;
  font-weight:400;white-space:normal!important;overflow-wrap:anywhere;
  -webkit-line-clamp:unset!important;line-clamp:unset!important;transform:none!important;
}
body.archive .fd-post-grid > article.fd-post-card .fd-card-meta,
body.blog .fd-post-grid > article.fd-post-card .fd-card-meta,
body.search .fd-post-grid > article.fd-post-card .fd-card-meta{
  display:block;visibility:visible;opacity:1;height:auto;max-height:none;
  margin:0 0 10px;color:var(--fd-muted,#607174);font-size:.78rem;line-height:1.5;
}
body.archive .fd-post-grid > article.fd-post-card .fdacf-cta,
body.blog .fd-post-grid > article.fd-post-card .fdacf-cta,
body.search .fd-post-grid > article.fd-post-card .fdacf-cta{
  display:inline-flex;align-items:center;gap:9px;align-self:flex-start;margin-top:auto;
  color:var(--fd-ink,#19363d);font-size:.88rem;line-height:1.45;font-weight:700;
  text-decoration:none;
}
body.archive .fd-post-grid > article.fd-post-card .fdacf-cta span,
body.blog .fd-post-grid > article.fd-post-card .fdacf-cta span,
body.search .fd-post-grid > article.fd-post-card .fdacf-cta span{font-size:1.1rem;transition:transform .16s ease}
body.archive .fd-post-grid > article.fd-post-card .fdacf-cta:hover span,
body.blog .fd-post-grid > article.fd-post-card .fdacf-cta:hover span,
body.search .fd-post-grid > article.fd-post-card .fdacf-cta:hover span{transform:translateX(3px)}
/* A stretched title link makes the card clickable without replacing its semantic HTML. */
body.archive .fd-post-grid > article.fd-post-card.fdacf-ready .fd-post-card__body h2 a::after,
body.blog .fd-post-grid > article.fd-post-card.fdacf-ready .fd-post-card__body h2 a::after,
body.search .fd-post-grid > article.fd-post-card.fdacf-ready .fd-post-card__body h2 a::after{
  content:"";position:absolute;inset:0;z-index:1;
}
body.archive .fd-post-grid > article.fd-post-card.fdacf-ready .fd-post-card__media,
body.blog .fd-post-grid > article.fd-post-card.fdacf-ready .fd-post-card__media,
body.search .fd-post-grid > article.fd-post-card.fdacf-ready .fd-post-card__media{
  position:relative;z-index:2;
}
body.archive .fd-post-grid > article.fd-post-card.fdacf-ready .fdacf-cta,
body.blog .fd-post-grid > article.fd-post-card.fdacf-ready .fdacf-cta,
body.search .fd-post-grid > article.fd-post-card.fdacf-ready .fdacf-cta{
  position:relative;z-index:2;
}
body.archive .fd-post-grid > article.fd-post-card.fdacf-ready:focus-within,
body.blog .fd-post-grid > article.fd-post-card.fdacf-ready:focus-within,
body.search .fd-post-grid > article.fd-post-card.fdacf-ready:focus-within{
  outline:2px solid var(--fd-accent,#0b766e);outline-offset:3px;
}
@media(max-width:620px){
  body.archive .fd-post-grid > article.fd-post-card > .fd-post-card__body,
  body.blog .fd-post-grid > article.fd-post-card > .fd-post-card__body,
  body.search .fd-post-grid > article.fd-post-card > .fd-post-card__body{padding:16px 16px 18px;}
  body.archive .fd-post-grid > article.fd-post-card .fd-post-card__body h2,
  body.blog .fd-post-grid > article.fd-post-card .fd-post-card__body h2,
  body.search .fd-post-grid > article.fd-post-card .fd-post-card__body h2{font-size:1.07rem;}
}
@media(prefers-reduced-motion:reduce){
  .fdacf-cta span{transition:none!important;}
}
