/* STEP3224 + STEP3227 — /new-post/ and archive article-card parity with
 * the /games/ editorial cards. This shared stylesheet is enqueued only on
 * WordPress post listings/archives, not search, game hubs or article bodies.
 * Keeping the existing file avoids duplicating or drifting card rules. */

body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card {
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  overflow:hidden;
  border:1px solid rgba(67,107,162,.24);
  border-radius:14px;
  background:#081426;
  box-shadow:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card:hover,
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card:focus-within {
  transform:none;
  border-color:rgba(67,107,162,.58);
  box-shadow:0 12px 30px rgba(0,0,0,.15);
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card > .wp-block-post-featured-image {
  width:100%;
  margin:0;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:#071426;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card > .wp-block-post-featured-image img {
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:16 / 9;
  object-fit:contain !important; /* WordPress block inline crop defaults */
  object-position:center;
  transition:filter .2s ease;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card:hover .wp-block-post-featured-image img {
  transform:none;
  filter:saturate(1.025);
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .fpsj-post-card__body {
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:8px;
  min-height:132px;
  width:100%;
  padding:13px 14px 14px !important;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card__body > * {
  margin-block:0;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .fpsj-category-pills {
  margin:0;
  line-height:1.5;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .fpsj-category-pills a {
  position:relative;
  z-index:2;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title {
  margin:0;
  font-size:var(--fpsj-type-card, .96rem);
  font-weight:800;
  line-height:1.45;
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title a,
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title a:visited,
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title a:hover,
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title a:focus-visible {
  color:#f7faff !important;
  text-decoration:none;
}
/* Mirror /games/: the whole card is a tap target through the post-title
   link, while category term links remain independently interactive. */
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title a::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-title a:focus-visible::after {
  outline:2px solid #31d7ff;
  outline-offset:-3px;
  border-radius:14px;
}
/* Saved Site Editor home/category/archive templates can still render their
   old excerpt blocks. Theme templates omit them; hide legacy listing copies. */
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .wp-block-post-excerpt {
  display:none;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .fpsj-post-card__meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:9px;
  border-top:1px solid rgba(67,107,162,.14);
  color:#8498b4;
  font-size:var(--fpsj-type-meta, .76rem);
  font-weight:750;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .fpsj-post-card__meta::after {
  content:"→";
  flex:none;
  color:#31d7ff;
  font-size:1rem;
}
body.fpsj-theme .fpsj-listing .fpsj-card-grid .fpsj-post-card .fpsj-post-card__meta a {
  color:inherit;
}
/* Preserve responsive columns and natural title wrapping from the shared
   listing template; no new mobile grid or breakpoint is needed. */
