.blog-page {
  background: #f9f9f9;
  color: #172033;
}

.blog-detail-shell {
  --blog-related-work-width: calc((min(95vw, 1550px) - 88px) / 4);
}

.blog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.blog-hero {
  width: 100%;
  height: 280px;
  margin: 34px 0 20px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  box-sizing: border-box;
}

.blog-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.blog-search-box:focus-within {
  border-color: #000;
}

.blog-search-box input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: none;
  color: #333;
  font-size: 14px;
  outline: none;
}

.blog-search-box input::placeholder {
  color: #ccc;
}

.blog-search-box button {
  width: auto;
  min-width: 72px;
  height: auto;
  border: 0;
  border-radius: 6px;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.blog-search-box button:hover {
  background: #333;
}

.blog-hot-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.blog-hot-terms a,
.blog-category-nav a {
  border-radius: 999px;
  text-decoration: none;
}

.blog-hot-terms a {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  padding: 7px 12px;
}

.blog-category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin: 18px 0 24px;
}

.blog-hero-inner .blog-category-nav {
  justify-content: center;
  max-width: 800px;
  margin: 0;
}

.blog-category-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 180px;
  min-height: 32px;
  box-sizing: border-box;
  padding: 6px 12px;
  color: #666;
  background: #f0f0f0;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-category-nav a.is-active {
  color: #fff;
  background: #000;
  border-color: #000;
}

.blog-section {
  margin: 32px 0;
}

.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.blog-section-head h2,
.blog-sidebar h2 {
  margin: 0;
  font-size: 22px;
}

.blog-main-grid {
  display: block;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.blog-card-grid-three {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
  color: #172033;
  font-size: 16px;
  text-align: center;
}

.blog-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e8edf3;
}

.blog-card-cover img,
.blog-work-list .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: none;
}

.blog-image-guard {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.blog-card-body {
  padding: 14px;
}

.blog-card h2 {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

.blog-card h2 a,
.blog-breadcrumb a,
.blog-work-list a {
  color: inherit;
  text-decoration: none;
}

.blog-card p {
  margin: 0 0 14px;
  color: #5b6678;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card-kicker,
.blog-card-meta {
  color: #64748b;
  font-size: 12px;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
}

.blog-sidebar,
.blog-detail-panel {
  align-self: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.blog-empty,
.blog-search-head {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0;
}

.blog-pagination a {
  color: #0f766e;
  text-decoration: none;
}

.blog-loading-sentinel {
  display: flex;
  justify-content: center;
  min-height: 64px;
  padding: 22px 0 4px;
  box-sizing: border-box;
}

.blog-loading-sentinel[hidden] {
  display: none;
}

.blog-loading-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.blog-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #172033;
  opacity: .45;
}

.blog-loading-sentinel.is-loading .blog-loading-dot {
  animation: blog-loading-pulse .9s ease-in-out infinite;
}

@keyframes blog-loading-pulse {
  0%, 100% {
    opacity: .25;
    transform: scale(.78);
  }

  50% {
    opacity: .75;
    transform: scale(1);
  }
}

.blog-detail-shell {
  padding-top: 30px;
  padding-bottom: 56px;
}

.blog-breadcrumb,
.blog-article-meta,
.blog-preview-note {
  color: #64748b;
  font-size: 14px;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.blog-preview-note {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
}

.blog-article-head {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 30px 36px 22px;
}

.blog-article-head h1 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
}

.blog-article-head p {
  margin: 0 0 8px;
  color: #526174;
  font-size: 15px;
  line-height: 1.7;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  line-height: 1.4;
}

.blog-article-body {
  min-width: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  padding: 32px 36px;
}

.blog-detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) var(--blog-related-work-width);
  align-items: start;
  gap: 28px;
}

.blog-detail-layout.no-right-sidebar {
  grid-template-columns: 260px minmax(0, 1fr);
}

.blog-detail-left {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.blog-detail-left::-webkit-scrollbar {
  display: none;
}

.blog-detail-right {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.blog-sidebar-ad {
  overflow: hidden;
  align-self: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.blog-sidebar-ad a,
.blog-sidebar-ad img {
  display: block;
}

.blog-sidebar-ad img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f5f6f7;
}

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

.blog-detail-panel h2,
.blog-detail-panel-title {
  margin: 0 0 14px;
  color: #172033;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}

.blog-detail-category-list {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}

.blog-detail-category-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px 7px 16px;
  border-radius: 6px;
  color: #526174;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.blog-detail-category-list a:hover {
  background: #f5f6f7;
  color: #172033;
}

.blog-detail-category-list a.is-active {
  background: #f2f4f7;
  color: #172033;
}

.blog-content {
  color: #243044;
  font-size: 15px;
  line-height: 1.9;
}

.blog-content strong,
.blog-content b,
.blog-content h2,
.blog-content h3 {
  font-weight: 400;
}

.blog-content p {
  margin: 0 0 14px;
  color: #243044;
}

.blog-content h2,
.blog-content h3,
.blog-takeaways h2 {
  letter-spacing: 0;
}

.blog-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #f5f6f7;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.blog-content .blog-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #0f172a;
}

.blog-content .blog-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.blog-content .blog-video-embed p {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.blog-takeaways {
  margin-bottom: 24px;
  padding: 18px;
  border-left: 4px solid #20b486;
  background: #f0fdfa;
}

@media (max-width: 1280px) {
  .blog-detail-layout {
    grid-template-columns: 220px minmax(0, 1fr) var(--blog-related-work-width);
    gap: 22px;
  }

  .blog-detail-layout.no-right-sidebar {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .blog-article-head h1 {
    font-size: 26px;
  }
}

@media (min-width: 1600px) {
  .blog-detail-shell {
    --blog-related-work-width: calc((min(95vw, 1550px) - 104px) / 5);
  }
}

@media (max-width: 1100px) {
  .blog-detail-layout,
  .blog-detail-layout.no-right-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-detail-left,
  .blog-detail-right {
    position: static;
  }
}

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

.blog-work-list .card {
  width: 100%;
}

.blog-work-card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.blog-work-card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f5f5f5;
}

.blog-work-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .2s ease;
  -webkit-user-drag: none;
  user-select: none;
}

.blog-work-card:hover .blog-work-card-cover img {
  transform: scale(1.02);
}

.blog-work-card-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.blog-work-card-title-row {
  display: grid;
  gap: 8px;
}

.blog-work-card-title-row strong {
  min-width: 0;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-work-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 12px;
}

.blog-work-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.blog-work-card-stats img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: .68;
}

.blog-work-card-creator {
  color: #888;
  font-size: 12px;
  line-height: 1.4;
}

.blog-work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.blog-work-card-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
}

.blog-related-list {
  display: grid;
  gap: 14px;
}

.blog-related-list a {
  display: grid;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f5;
  color: inherit;
  text-decoration: none;
}

.blog-related-list a:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-related-list strong {
  color: #243044;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.blog-related-list span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-search-head {
  margin: 24px 0 18px;
}

.blog-search-head h1 {
  margin: 0 0 16px;
}

.blog-search-head .blog-search-box input {
  border-color: #d8e1ec;
}

@media (max-width: 900px) {
  .blog-hero-inner {
    padding: 0 12px;
  }

  .blog-article-head h1 {
    font-size: 30px;
  }

  .blog-main-grid,
  .blog-detail-layout,
  .blog-detail-layout.no-right-sidebar,
  .blog-card-grid,
  .blog-card-grid-three {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .blog-detail-left,
  .blog-detail-right {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .blog-sidebar {
    width: auto;
  }
}

@media (max-width: 560px) {
  .blog-detail-shell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .blog-hero {
    height: 240px;
    margin: 12px 0;
    border-radius: 6px;
  }

  .blog-category-nav {
    gap: 8px;
    margin: 14px 0 20px;
  }

  .blog-category-nav a {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 13px;
  }

  .blog-search-box {
    gap: 10px;
    padding: 9px 12px;
  }

  .blog-search-box input {
    font-size: 13px;
  }

  .blog-search-box button {
    padding: 7px 14px;
    font-size: 13px;
  }

  .blog-article-body {
    padding: 20px;
  }

}

@media (max-width: 600px) {
  .blog-search-box {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
  }

  .blog-search-box input {
    font-size: 12px;
  }

  .blog-search-box button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .blog-category-nav {
    gap: 8px;
  }

  .blog-category-nav a {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
  }
}
