/* —— Blog list page (/blog/) —— */
body.blog {
  background: var(--bg);
}

.blog-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) clamp(12px, 2vw, 20px) 48px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: start;
}

.blog-header {
  margin-bottom: 24px;
}

.blog-main {
  min-width: 0;
}

.blog-header__title {
  margin: 0 0 8px;
  font-size: clamp(1.625rem, 2.8vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.blog-header__sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted-2);
  line-height: 1.5;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-row {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.blog-row:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.1);
}

.blog-row__thumb {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #eef5f3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-row__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 6px;
}

.blog-row__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.blog-row__summary {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-row__meta {
  margin: auto 0 0;
  padding-top: 2px;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.blog-sidebar-wrap {
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  height: calc(100vh - var(--nav-h) - 32px);
  display: flex;
  align-items: center;
}

.blog-sidebar {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(16, 42, 39, 0.06);
}

.blog-sidebar__title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.blog-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-sidebar__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: #f4f5f7;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-sidebar__item:hover {
  background: #eceef2;
}

.blog-sidebar__item.is-active {
  background: #ede9fe;
  color: #5b21b6;
  font-weight: 600;
}

.blog-empty {
  padding: 32px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9375rem;
}

@media (max-width: 820px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-wrap {
    position: static;
    height: auto;
    display: block;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-row__thumb {
    width: 160px;
  }
}

@media (max-width: 520px) {
  .blog-row {
    flex-direction: column;
  }

  .blog-row__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}
