.blog-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.12);
}
.blog-card__imgwrap {
  aspect-ratio: 16/9;
  background: #f3f4f6;
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: 18px 18px 20px;
}
.blog-card__meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
.blog-card__title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #111827;
}
.blog-card__excerpt {
  color: #4b5563;
}

body.blog-post-view {
  background: #fff !important;
  animation: none !important;
  background-size: auto !important;
}

.blog-article {
  background: #fff;
}
.blog-article__cover {
  max-height: 320px;
  object-fit: cover;
}

.blog-content__p {
  font-size: 1.05rem;
  line-height: 1.75;
}
.blog-content__quote {
  border-left: 4px solid rgba(17, 24, 39, 0.2);
  padding-left: 14px;
  margin: 18px 0;
  color: #374151;
}
.blog-content__list {
  padding-left: 1.2rem;
}
.blog-content__figure {
  margin: 18px 0;
}

.blog-include {
  margin: 18px 0;
}
.blog-include--wrappable {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.blog-include__summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: #111827;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  background: linear-gradient(
    180deg,
    rgba(249, 250, 251, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.06s ease,
    color 0.18s ease;
}
.blog-include__summary::-webkit-details-marker {
  display: none;
}
.blog-include--wrappable > .blog-include__summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.12s ease;
}
.blog-include--wrappable[open] > .blog-include__summary::before {
  transform: rotate(90deg);
}
.blog-include__content {
  padding: 0;
}

/* Included sections should render like standalone page sections (e.g. on home),
   but the blog "wrapper" UI (details/summary) should keep the same width as
   the post text column.

   Use `dvw` to avoid the classic `100vw` scrollbar overflow. */
.blog-post-view .blog-content details.blog-include {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}
.blog-post-view .blog-content details.blog-include--wrappable {
  overflow: visible;
}

.blog-post-view .blog-content details.blog-include > .blog-include__content {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@supports (width: 100dvw) {
  .blog-post-view .blog-content details.blog-include > .blog-include__content {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

.blog-post-view .blog-content .blog-include--plain {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
@supports (width: 100dvw) {
  .blog-post-view .blog-content .blog-include--plain {
    width: 100dvw;
    margin-left: calc(50% - 50dvw);
    margin-right: calc(50% - 50dvw);
  }
}

.blog-include--wrappable > .blog-include__summary:hover {
  background: #f3f4f6;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.blog-include--wrappable > .blog-include__summary:active {
  transform: translateY(1px);
}
.blog-include--wrappable > .blog-include__summary:focus,
.blog-include--wrappable > .blog-include__summary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(13, 110, 253, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
