/* Blog tile components (blog-article, blog-title) — light DOM styles.
   Selectors are scoped to the custom element tag to avoid collisions
   with other occurrences of shared class names (e.g. .human-written-badge
   in the article header on /blog-post). */

/* ================= blog-article ================= */

blog-article {
  display: block;
}

blog-article .human-written-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--blog-badge-gap, 0.45rem);
  padding: var(--blog-badge-pad-y, 0.3rem) var(--blog-badge-pad-x, 0.6rem);
  border-radius: 999px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: var(--blog-badge-size, 0.75rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: var(--blog-badge-tracking, 0.1em);
  box-shadow: 0 8px 20px rgba(16, 172, 132, 0.32);
  white-space: nowrap;
  width: fit-content;
  align-self: flex-start;
}

blog-article .human-written-badge svg { flex-shrink: 0; }
blog-article .human-written-badge--mobile { display: none; }
blog-article .human-written-badge .hw-label-short { display: none; }

blog-article .right-container > .human-written-badge--desktop {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 3;
  margin: 0;
  font-size: 0.38rem;
  padding: 0.14rem 0.28rem;
  gap: 0.16rem;
  box-shadow: 0 4px 10px rgba(16, 172, 132, 0.28);
  pointer-events: none;
}

blog-article .blog-post {
  display: flex;
  flex-direction: row;
  gap: var(--blog-gap-subsection, 1.25rem);
  min-height: 150px;
  height: auto;
  padding-block: 1.25rem;
  padding-inline-end: 1.25rem;
  padding-inline-start: 0;
  background: transparent;
  align-items: flex-start;
  border-bottom: none;
  transition: background 0.3s ease;
}

blog-article .blog-post:hover { background: transparent; }

blog-article .right-container {
  flex: 0 0 130px;
  min-height: 130px;
  position: relative;
}

blog-article .left-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--blog-gap-xs, 0.5rem);
  min-height: 120px;
}

blog-article .blog-post-image-link img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.95) brightness(0.96);
  will-change: transform;
}
blog-article .blog-post-image-link:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}

blog-article .blog-post-image-link img.error { opacity: 0.7; }

blog-article .blog-post-image-link .image-placeholder {
  width: 100%;
  height: 130px;
  background: var(--blog-artwork-scrim-gradient);
  border-radius: 10px;
  display: block;
  position: relative;
  z-index: 1;
}

blog-article .blog-post-title-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

blog-article .blog-post-image-link {
  text-decoration: none;
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease;
}
blog-article .blog-post-image-link:hover {
  box-shadow:
    inset 0 0 0 1px rgba(16, 172, 132, 0.35),
    0 10px 30px rgba(16, 172, 132, 0.15);
}

blog-article .blog-post-image-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 0;
  background: var(--blog-artwork-scrim-gradient);
}

blog-article .blog-post h2 {
  margin: 0;
  color: var(--secondary-color);
  font-size: var(--blog-text-card-title, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

blog-article .blog-post-title-link:hover h2 { color: var(--primary-color); }
blog-article .blog-post:hover h2 { color: var(--primary-color); }

blog-article .blog-post-content,
blog-article .blog-post-content p {
  color: #8b9098;
}
blog-article .blog-post-content {
  flex: 1;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 400;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-height: 3em;
}

blog-article .blog-post-author {
  margin: 0;
  font-size: var(--blog-text-meta, 0.85rem);
  color: var(--primary-color);
  font-weight: 500;
}

blog-article .blog-post-date {
  margin: 0;
  font-size: var(--blog-text-meta, 0.85rem);
  color: rgba(255, 255, 255, 0.45);
}

blog-article .blog-post-meta-right {
  margin: 0;
  font-size: var(--blog-text-meta, 0.85rem);
  color: rgba(255, 255, 255, 0.45);
}

blog-article .blog-post-views {
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

blog-article .blog-post-views svg {
  vertical-align: -0.1em;
  opacity: 0.85;
}

blog-article .blog-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* ── Featured grid variant (stacked: image on top, meta below) ── */
blog-article[variant="featured"] .blog-post {
  height: 100%;
  min-height: 0;
  margin-bottom: 0;
  position: static;
  overflow: visible;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
/* Hero (non-compact): image fills cell height so title/meta sit at bottom,
   matching the stacked column on each side. Compact overrides below. */
blog-article[variant="featured"] .right-container {
  position: static;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}
blog-article[variant="featured"] .blog-post-image-link {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease, transform 0.4s ease;
}
blog-article[variant="featured"] .blog-post-image-scrim { border-radius: 10px; }
blog-article[variant="featured"] .right-container > .blog-post-image-link > img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: 10px;
  will-change: transform;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.95) brightness(0.96);
}
blog-article[variant="featured"] .blog-post-image-link:hover > img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}
blog-article[variant="featured"] .blog-post-image-link:hover {
  box-shadow:
    inset 0 0 0 1px rgba(16, 172, 132, 0.35),
    0 10px 30px rgba(16, 172, 132, 0.15);
}
blog-article[variant="featured"] .right-container > .blog-post-image-link > .image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 10px;
}
blog-article[variant="featured"] .left-container {
  position: static;
  flex: 0 0 auto;
  background: transparent;
  color: var(--secondary-color);
  padding: 0 0 0;
  z-index: auto;
  pointer-events: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--blog-gap-xs, 0.5rem);
}
blog-article[variant="featured"] .blog-post-title-link { pointer-events: auto; }
blog-article[variant="featured"] h2 {
  color: var(--secondary-color);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: -0.25rem 0 0;
  text-shadow: none;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
}
blog-article[variant="featured"] .blog-post:hover h2,
blog-article[variant="featured"] .blog-post:has(.blog-post-image-link:hover) h2 {
  color: var(--primary-color);
}
blog-article[variant="featured"] .blog-post-content { display: none; }
blog-article[variant="featured"] .blog-post-date,
blog-article[variant="featured"] .blog-post-meta-right,
blog-article[variant="featured"] .blog-post-views {
  color: rgba(255,255,255,0.5);
  font-size: var(--blog-text-meta, 0.85rem);
  text-shadow: none;
  font-weight: 400;
}
blog-article[variant="featured"] .blog-post-author {
  font-size: var(--blog-text-meta, 0.85rem);
  font-weight: 500;
  color: var(--primary-color);
  text-shadow: none;
  white-space: nowrap;
}
blog-article[variant="featured"] .blog-post-footer {
  margin-top: 0;
  align-self: stretch;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
}
blog-article[variant="featured"] .blog-post-meta-right {
  white-space: nowrap;
}

/* Compact featured tiles: fixed image ratio + clamped title keep all tiles
   in a row the same height regardless of title line count. Image stays 16:9,
   left-container grows to absorb slack when the side column stretches to grid
   row height, and the footer pins to bottom so metas align across the row. */
blog-article[variant="featured"][featured-size="compact"] .blog-post {
  height: 100%;
  justify-content: flex-start;
}
blog-article[variant="featured"][featured-size="compact"] .right-container {
  flex: 0 0 auto;
}
blog-article[variant="featured"][featured-size="compact"] .blog-post-image-link {
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
blog-article[variant="featured"][featured-size="compact"] .left-container {
  flex: 1 1 auto;
  padding: 0 0 0;
}
blog-article[variant="featured"][featured-size="compact"] .blog-post-footer {
  margin-top: auto;
}
blog-article[variant="featured"][featured-size="compact"] h2 {
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
  margin-top: -0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
}

@media (hover: none) {
  blog-article .blog-post:hover h2 { color: var(--secondary-color); }
  blog-article .blog-post-title-link:hover h2 { color: var(--secondary-color); }
}

@media (max-width: 768px) {
  blog-article .blog-post,
  blog-article .blog-post-image-link img,
  blog-article .blog-post-title-link h2,
  blog-article[variant="featured"] .blog-post {
    transition: none !important;
    animation: none !important;
  }

  blog-article .blog-post {
    height: auto;
    min-height: auto;
    padding: 0.875rem 0;
    gap: 0.875rem;
    background-image: linear-gradient(
      to right,
      rgba(232, 232, 233, 0) 0%,
      rgba(232, 232, 233, 0.18) 6%,
      rgba(232, 232, 233, 0.26) 50%,
      rgba(232, 232, 233, 0.18) 94%,
      rgba(232, 232, 233, 0) 100%
    );
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: calc(100% - 0.45rem) 1px;
  }
  blog-article .right-container { flex: 0 0 90px; min-height: 90px; }
  blog-article .left-container { min-height: 90px; }
  blog-article .blog-post-image-link img,
  blog-article .blog-post-image-link .image-placeholder { height: 90px; }
  blog-article .blog-post h2 { font-size: 1.05rem; }
  blog-article .human-written-badge {
    font-size: 0.5rem;
    padding: 0.16rem 0.32rem;
    gap: 0.18rem;
  }
  blog-article .human-written-badge--mobile { display: none; }
  blog-article .human-written-badge .hw-label-full { display: none; }
  blog-article .human-written-badge .hw-label-short { display: inline; }
  blog-article .right-container > .human-written-badge--desktop {
    display: inline-flex;
  }
  blog-article .blog-post-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(232, 232, 233, 0.55);
  }
  blog-article .blog-post-footer { gap: 0.25rem; }
  blog-article .blog-post-author,
  blog-article .blog-post-date,
  blog-article .blog-post-meta-right { font-size: var(--blog-text-meta-sm, 0.8rem); }
  blog-article .blog-post-views { color: #ffffff !important; }
  blog-article .blog-post-views svg { opacity: 1; color: #ffffff !important; }

  blog-article[variant="featured"] .blog-post {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  blog-article[variant="featured"]:not([featured-size="compact"]) .blog-post {
    border-bottom: none;
  }
  blog-article[variant="featured"] .right-container {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: none;
  }
  blog-article[variant="featured"] .blog-post-image-link {
    height: auto;
    aspect-ratio: var(--featured-mobile-image-ratio, 16 / 9);
    border-radius: 0;
  }
  blog-article[variant="featured"]:not([featured-size="compact"]) .blog-post-image-link {
    border-radius: 0;
    overflow: hidden;
  }
  blog-article[variant="featured"] .left-container {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: transparent;
    color: var(--secondary-color);
    padding: 0.65rem 0 1rem;
    pointer-events: auto;
  }
  blog-article .right-container > .human-written-badge--desktop {
    top: 0.3rem;
    left: 0.3rem;
    font-size: 0.5rem;
    padding: 0.16rem 0.32rem;
    gap: 0.18rem;
  }
  blog-article[variant="featured"]:not([featured-size="compact"]) .left-container {
    width: 100%;
    box-sizing: border-box;
    background-image: linear-gradient(
      to right,
      rgba(232, 232, 233, 0) 0%,
      rgba(232, 232, 233, 0.18) 6%,
      rgba(232, 232, 233, 0.26) 50%,
      rgba(232, 232, 233, 0.18) 94%,
      rgba(232, 232, 233, 0) 100%
    );
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: calc(100% - 1.9rem) 1px;
  }
  blog-article[variant="featured"] .blog-post-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #8b9098;
  }
  blog-article[variant="featured"] .blog-post-content,
  blog-article[variant="featured"] .blog-post-content p {
    color: #8b9098;
  }
  blog-article[variant="featured"][featured-size="compact"] .blog-post-content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;
    flex: 0 0 auto;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0.25rem 0 0;
    color: #8b9098;
  }
  blog-article[variant="featured"] h2 {
    color: var(--secondary-color);
    text-shadow: none;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
  }
  blog-article[variant="featured"] .blog-post-footer {
    margin-top: 0.75rem;
    align-self: stretch;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
  }
  blog-article[variant="featured"] .blog-post-date,
  blog-article[variant="featured"] .blog-post-meta-right,
  blog-article[variant="featured"] .blog-post-views {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
    font-weight: 400;
  }

  blog-article[variant="featured"][featured-size="compact"] .blog-post {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.875rem;
    border: none;
    border-radius: 0;
    padding: 0.55rem 0 1rem;
    background: transparent;
    background-image: linear-gradient(
      to right,
      rgba(232, 232, 233, 0) 0%,
      rgba(232, 232, 233, 0.18) 6%,
      rgba(232, 232, 233, 0.26) 50%,
      rgba(232, 232, 233, 0.18) 94%,
      rgba(232, 232, 233, 0) 100%
    );
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: calc(100% - 0.45rem) 1px;
  }
  blog-article[variant="featured"][featured-size="compact"] .right-container {
    flex: 0 0 106px;
    min-height: 106px;
    align-self: flex-start;
  }
  blog-article[variant="featured"][featured-size="compact"] .blog-post-image-link {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    overflow: hidden;
  }
  blog-article[variant="featured"][featured-size="compact"] .left-container {
    flex: 1;
    padding: 0;
    min-height: 106px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  blog-article[variant="featured"][featured-size="compact"] h2 {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  blog-article[variant="featured"][featured-size="compact"] .blog-post-author {
    font-size: var(--blog-text-tile-meta, 0.75rem);
  }
  blog-article[variant="featured"][featured-size="compact"] .blog-post-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  blog-article .blog-post { padding: 0.75rem 0; gap: 0.75rem; }
  blog-article .right-container { flex: 0 0 80px; min-height: 80px; }
  blog-article .left-container { min-height: 80px; }
  blog-article .blog-post-image-link img,
  blog-article .blog-post-image-link .image-placeholder { height: 80px; }
  blog-article .blog-post h2 { font-size: 0.9rem; }
  blog-article .human-written-badge {
    font-size: 0.52rem;
    padding: 0.16rem 0.38rem;
    gap: 0.22rem;
  }
  blog-article .left-container > .human-written-badge--mobile {
    display: inline-flex;
    position: static;
    margin: 0;
    width: fit-content;
    align-self: flex-start;
  }
  blog-article .blog-post-content {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    min-height: auto;
  }
  blog-article .blog-post-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
  }
  blog-article .blog-post-author,
  blog-article .blog-post-date,
  blog-article .blog-post-meta-right { font-size: var(--blog-text-tile-meta, 0.75rem); }
  blog-article .blog-post-views { color: #ffffff !important; }

  blog-article[variant="featured"] h2 { font-size: 0.94rem; font-weight: 500; }

  blog-article[variant="featured"][featured-size="compact"] .right-container {
    flex: 0 0 90px;
    min-height: 90px;
  }
  blog-article[variant="featured"][featured-size="compact"] .left-container {
    min-height: 90px;
  }
  blog-article[variant="featured"][featured-size="compact"] h2 {
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 500;
  }
  blog-article[variant="featured"][featured-size="compact"] .blog-post-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
  }
  blog-article[variant="featured"][featured-size="compact"] .blog-post-meta-right {
    white-space: nowrap;
  }
}

/* ================= blog-title ================= */

blog-title {
  display: block;
}

blog-title .human-written-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--blog-badge-gap, 0.45rem);
  padding: var(--blog-badge-pad-y, 0.3rem) var(--blog-badge-pad-x, 0.6rem);
  border-radius: 999px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: var(--blog-badge-size-compact, 0.65rem);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: var(--blog-badge-tracking, 0.1em);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(16, 172, 132, 0.3);
  width: fit-content;
  align-self: flex-start;
}

blog-title .human-written-badge svg { flex-shrink: 0; }
blog-title .human-written-badge--mobile { display: none; }

blog-title .blog-title-image > .human-written-badge--desktop {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  z-index: 3;
  margin: 0;
  font-size: 0.32rem;
  padding: 0.1rem 0.2rem;
  gap: 0.12rem;
  box-shadow: 0 3px 8px rgba(16, 172, 132, 0.24);
  pointer-events: none;
}

blog-title .blog-title {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  height: auto;
  padding: 0.5rem;
  border-radius: 8px;
  background: transparent;
  align-items: center;
  overflow: hidden;
  transition: background 0.15s ease;
}

blog-title .blog-title:hover { background: transparent; }

blog-title .blog-title--compact .blog-title-content { min-height: 0; }

blog-title .blog-title-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  justify-content: center;
  min-width: 0;
}

blog-title .blog-title-image {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

blog-title .blog-title-link { text-decoration: none; display: block; color: inherit; }

blog-title .blog-title-image-link {
  text-decoration: none;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  color: transparent;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease;
}
blog-title .blog-title-image-link:hover {
  box-shadow:
    inset 0 0 0 1px rgba(16, 172, 132, 0.35),
    0 10px 30px rgba(16, 172, 132, 0.15);
}

blog-title .blog-title-image-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 10px;
  background: var(--blog-artwork-scrim-gradient);
}

blog-title .blog-title-image-link img,
blog-title .blog-title-image-link .image-placeholder {
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: saturate(0.95) brightness(0.96);
  will-change: transform;
}
blog-title .blog-title-image-link:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) brightness(1);
}

@media (hover: none) {
  blog-title .blog-title:hover h3 { color: var(--secondary-color); }
}

blog-title .blog-title h3 {
  margin: 0;
  color: var(--secondary-color);
  font-size: var(--blog-text-sidebar-title, 0.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

blog-title .blog-title--wrap-title h3 {
  overflow: visible;
  text-overflow: unset;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

blog-title .blog-title-link:hover h3 { color: var(--primary-color); }
blog-title .blog-title:hover h3 { color: var(--primary-color); }

blog-title .blog-title-content p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(232, 232, 233, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

blog-title .blog-title-description {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(232, 232, 233, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

blog-title .blog-title .author {
  color: var(--primary-color);
  font-size: 0.72rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

blog-title p.blog-title-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

blog-title .blog-title-meta .date {
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

blog-title .blog-title-meta .meta-sep {
  color: rgba(255, 255, 255, 0.32);
  flex-shrink: 0;
  user-select: none;
}

blog-title .blog-title-meta .views {
  flex-shrink: 0;
  white-space: nowrap;
  color: rgba(232, 232, 233, 0.5);
}

blog-title .blog-title-image-link img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

blog-title .blog-title-image-link img.error { opacity: 0.7; }

blog-title .blog-title-image-link .image-placeholder {
  width: 72px;
  height: 72px;
  background: var(--blog-artwork-scrim-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  blog-title .blog-title {
    height: auto;
    padding: 0.5rem;
    gap: 0.65rem;
  }
  blog-title .blog-title-image { flex: 0 0 56px; width: 56px; height: 56px; }
  blog-title .blog-title-image-link img { width: 56px; height: 56px; }
  blog-title .blog-title-image-link .image-placeholder { width: 56px; height: 56px; }
  blog-title .blog-title h3 { font-size: 0.9rem; -webkit-line-clamp: 3; }
  blog-title .human-written-badge {
    font-size: 0.54rem;
    padding: 0.17rem 0.4rem;
    gap: 0.22rem;
  }
  blog-title .blog-title-image > .human-written-badge--desktop { display: none; }
  blog-title .blog-title-content .human-written-badge--mobile {
    display: inline-flex;
    position: static;
    margin: 0;
    width: fit-content;
    align-self: flex-start;
    box-shadow: 0 6px 16px rgba(16, 172, 132, 0.3);
  }
  blog-title .blog-title p { font-size: 0.72rem; }
  blog-title p.blog-title-meta { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  blog-title .human-written-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.34rem;
    gap: 0.2rem;
  }
  blog-title .blog-title-content .human-written-badge--mobile {
    display: inline-flex;
    position: static;
    margin: 0;
    width: fit-content;
    align-self: flex-start;
  }
  blog-title .blog-title { padding: 0.4rem; gap: 0.5rem; }
  blog-title .blog-title-image { flex: 0 0 48px; width: 48px; height: 48px; }
  blog-title .blog-title-image-link img { width: 48px; height: 48px; }
  blog-title .blog-title-image-link .image-placeholder { width: 48px; height: 48px; }
  blog-title .blog-title h3 { font-size: 0.85rem; }
  blog-title .blog-title p { font-size: 0.68rem; }
  blog-title p.blog-title-meta { font-size: 0.66rem; }
}
