/* oembed default skin — semantic card.
   class 대신 속성 셀렉터를 쓴다 (HTMLPurifier 가 class 를 보장하지 않음).
   nested CSS 없이 펼쳐 쓰고, resize_image 애드온의 인라인 width 를
   이기도록 핵심 치수에 !important 를 둔다. */
body div[data-oembed-type="card"] > figure {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  position: relative;
  margin: 1rem 0;
  padding: 0.5rem;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e1e4e8;
  border-radius: 0.75rem;
  gap: 0.5rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

body div[data-oembed-type="card"] > figure:hover {
  border-color: #c2c8d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body div[data-oembed-type="card"] > figure > img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  flex: 0 0 72px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #f3f4f6;
  border: 1px solid #eef0f2;
  border-radius: 0.75rem;
}

body div[data-oembed-type="card"] > figure > figcaption {
  display: flex !important;
  flex: 1 1 auto;
  gap: 0.25rem;
  flex-direction: column;
  min-width: 0;
}

body div[data-oembed-type="card"] > figure > figcaption > h3 {
  margin: 0 !important;
  color: #1f2328;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

body div[data-oembed-type="card"] > figure > figcaption > h3 > a {
  text-decoration: none;
  color: inherit;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body div[data-oembed-type="card"] > figure > figcaption > h3 > a:hover,
body div[data-oembed-type="card"] > figure > figcaption > h3 > a:focus,
body div[data-oembed-type="card"] > figure > figcaption > h3 > a:active {
  text-decoration: none;
}

body div[data-oembed-type="card"] > figure > figcaption > h3 > a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

body div[data-oembed-type="card"] > figure > figcaption > p {
  margin: 0;
  font-size: 0.675rem;
  line-height: 1.5;
  color: #57606a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body div[data-oembed-type="card"] > figure > figcaption > cite {
  margin-top: auto;
  font-size: 0.65rem;
  line-height: 0.65rem;
  color: #6e7781;
  font-style: normal;
  letter-spacing: 0.01em;
}
