/* =============================================
   sfx.css  X（旧Twitter）投稿の埋め込みブロック
   本文に「sfx-」があれば自動で読み込まれる
   JS（assets/js/sfx-embed.js）が widgets.js を
   「ブロックが画面に近づいたとき」に1回だけ読む
   ============================================= */

.sfx-wrap {
  margin: 1.6em 0 1.4em;
  padding: 14px 14px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

.sfx-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.sfx-head-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #0f1419;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
}
.sfx-head-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.sfx-head-sub {
  margin-left: auto;
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.sfx-list {
  display: grid;
  gap: 10px;
}

.sfx-item {
  min-height: 120px; /* 読み込み時のガタつき防止 */
}
.sfx-rendered .sfx-item {
  min-height: 0;
}

/* --- widgets.js 読み込み前の見た目（当サイトの要約カード） --- */
.sfx-item blockquote.twitter-tweet {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0f1419;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
  color: #1f2937;
}
.sfx-item blockquote.twitter-tweet p {
  margin: 0 0 6px;
}
.sfx-item blockquote.twitter-tweet a {
  color: #1d4ed8;
  font-size: 12px;
  text-decoration: underline;
}
.sfx-item .sfx-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e8f5ee;
  color: #1e9e6a;
}
.sfx-item .sfx-tag--note {
  background: #fff4e5;
  color: #b45309;
}

/* --- widgets.js 読み込み後（iframe） --- */
.sfx-item .twitter-tweet-rendered {
  margin: 0 auto !important;
  max-width: 100% !important;
}

.sfx-foot {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #6b7280;
}

@media (min-width: 768px) {
  .sfx-list--2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
