.blog-workspace {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.blog-main {
  min-height: calc(100vh - 112px);
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-posts {
  display: grid;
  gap: 16px;
}

.blog-post-detail {
  min-width: 0;
}

.blog-post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.blog-post-summary-card {
  padding: 0;
  overflow: hidden;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.blog-post-summary-card:hover,
.blog-post-summary-card:focus-within {
  border-color: var(--blue);
  box-shadow: 0 14px 30px rgba(42, 117, 187, 0.14);
  transform: translateY(-1px);
}

.blog-card-link {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  text-decoration: none;
}

.blog-media {
  min-width: 0;
}

.blog-media img {
  width: 100%;
  height: clamp(180px, 28vw, 340px);
  min-height: 0;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.blog-card-media img {
  height: clamp(170px, 22vw, 260px);
}

.blog-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.blog-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.blog-embed-tiktok,
.blog-embed-instagram {
  width: min(100%, 315px);
  aspect-ratio: 9 / 16;
  max-height: 560px;
  margin-inline: auto;
}

.blog-embed-facebook {
  width: min(100%, 448px);
  aspect-ratio: 4 / 5;
  max-height: 560px;
  margin-inline: auto;
}

.blog-embed-link {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 16px;
  background: #f8fbff;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  text-align: center;
}

.blog-embed-link a {
  color: var(--blue);
  font-weight: 900;
}

.blog-post-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.blog-post-card p {
  color: var(--muted);
  line-height: 1.55;
}

.blog-post-card .blog-body {
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #b6d9ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.blog-post-full {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.blog-post-full h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.03;
}

.blog-detail-media img {
  height: clamp(220px, 38vw, 460px);
  aspect-ratio: 16 / 8;
}

.blog-detail-media .blog-embed {
  min-height: 260px;
}

.blog-detail-excerpt {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.blog-post-full .blog-body {
  max-width: 820px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.blog-back-link {
  justify-self: start;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .blog-main {
    padding: 12px;
  }

  .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-media img {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .blog-embed {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .blog-embed-tiktok,
  .blog-embed-instagram {
    width: min(100%, 40vh, 315px);
    margin-inline: auto;
  }

  .blog-embed-facebook {
    width: min(100%, 58vh, 448px);
    margin-inline: auto;
  }

  .blog-post-card h2 {
    font-size: 21px;
  }

  .blog-card-link {
    padding: 12px;
  }

  .blog-post-full {
    padding: 12px;
  }

  .blog-post-full h1 {
    font-size: 30px;
  }

  .blog-detail-media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .blog-detail-excerpt {
    font-size: 16px;
  }
}
