/**
 * Compact internal article embed card — v0.4.157.
 *
 * Loaded only inside WordPress embed-template requests. The parent article
 * remains responsible for placement; this stylesheet only compacts the card.
 */

html,
body {
  min-height:0!important;
  margin:0!important;
  background:transparent!important;
}

.wp-embed {
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:minmax(132px,180px) minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:0 16px;
  width:100%;
  min-height:0!important;
  padding:14px!important;
  overflow:hidden;
  border:1px solid var(--fpsj-embed-border,#d3deeb)!important;
  border-radius:14px!important;
  background:
    radial-gradient(circle at 92% 12%,color-mix(in srgb,var(--fpsj-embed-accent,#3478ff) 10%,transparent),transparent 36%),
    linear-gradient(145deg,var(--fpsj-embed-surface,#ffffff),var(--fpsj-embed-surface-soft,#f4f7fb))!important;
  color:var(--fpsj-embed-text,#17263c)!important;
  box-shadow:var(--fpsj-embed-shadow,0 12px 30px rgba(28,54,88,.12))!important;
  color-scheme:var(--fpsj-embed-color-scheme,light);
  font-family:Inter,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif!important;
}

.wp-embed-featured-image {
  float:none!important;
  grid-column:1;
  grid-row:1 / span 3;
  align-self:stretch;
  width:100%!important;
  margin:0!important;
}

.wp-embed-featured-image a {
  display:block;
  width:100%;
  height:100%;
  min-height:102px;
  overflow:hidden;
  border:1px solid var(--fpsj-embed-border,#d6e0ec);
  border-radius:10px;
  background:var(--fpsj-embed-surface-soft,#eef3f8);
}

.wp-embed-featured-image img {
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:102px;
  max-height:132px!important;
  margin:0!important;
  object-fit:contain;
  object-position:center;
  background:var(--fpsj-embed-surface-soft,#eef3f8);
}

.wp-embed-heading {
  grid-column:2;
  grid-row:1;
  display:-webkit-box;
  margin:0 0 5px!important;
  overflow:hidden;
  color:var(--fpsj-embed-heading,#07101f)!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.4!important;
  letter-spacing:-.015em;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.wp-embed-heading a {
  color:inherit!important;
  text-decoration:none!important;
}

.wp-embed-excerpt {
  grid-column:2;
  grid-row:2;
  display:-webkit-box;
  margin:0!important;
  overflow:hidden;
  color:var(--fpsj-embed-muted,#52647c)!important;
  font-size:12.5px!important;
  line-height:1.55!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.wp-embed-footer {
  grid-column:2;
  grid-row:3;
  align-self:end;
  min-height:20px;
  margin-top:8px!important;
  color:var(--fpsj-embed-muted,#71839b)!important;
  font-size:11.5px!important;
}

.wp-embed-site-title,
.wp-embed-site-title a {
  color:var(--fpsj-embed-muted,#52647c)!important;
}

.wp-embed-site-icon {
  width:18px!important;
  height:18px!important;
  margin-right:6px!important;
}

.wp-embed-comments,
.wp-embed-share {
  display:none!important;
}

.wp-embed:not(:has(.wp-embed-featured-image)) {
  grid-template-columns:minmax(0,1fr);
}

.wp-embed:not(:has(.wp-embed-featured-image)) :where(
  .wp-embed-heading,
  .wp-embed-excerpt,
  .wp-embed-footer
) {
  grid-column:1;
}

@media (max-width:460px) {
  .wp-embed {
    grid-template-columns:104px minmax(0,1fr);
    gap:0 11px;
    padding:11px!important;
    border-radius:12px!important;
  }

  .wp-embed-featured-image img,
  .wp-embed-featured-image a {
    min-height:82px;
    max-height:94px!important;
  }

  .wp-embed-heading {
    margin-bottom:3px!important;
    font-size:14px!important;
    line-height:1.35!important;
  }

  .wp-embed-excerpt {
    -webkit-line-clamp:1;
    font-size:11.5px!important;
  }

  .wp-embed-footer {
    margin-top:5px!important;
    font-size:10.5px!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .wp-embed *,
  .wp-embed *::before,
  .wp-embed *::after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}
