/* Blog shell: reuses the same fixed-navbar + centered-content pattern as
   the docs pages (see setup-and-onboarding/docs.css), but the content is a
   thumbnail grid instead of a two-column label/body layout. */
.blog-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 85px;
  min-height: 100vh;
}

.blog-main {
  padding: 48px clamp(1.5rem, 4vw, 3.5rem) 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 44px;
}

.blog-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.blog-header p {
  color: #999;
  font-size: 16px;
  max-width: 520px;
  margin: 0;
}

/* Search sits top-right, below the fixed navbar, beside the page title --
   not a separate full-width row, so it reads as a page tool rather than
   another nav bar. */
.blog-search {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
}

.blog-search input {
  width: 100%;
  box-sizing: border-box;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.blog-search input::placeholder { color: #777; }
.blog-search input:focus { outline: none; border-color: #444; }

.blog-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #777;
  pointer-events: none;
}

/* Thumbnail grid: 4 per row on desktop, fewer per row as the viewport
   narrows, single column on mobile -- extra posts simply wrap onto new
   rows underneath, no pagination/JS needed for that. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

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

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid #1a1a1a;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: border-color 0.2s ease;
  overflow: hidden;
}

.blog-card:hover .blog-card-thumb { border-color: #333; }

.blog-card-thumb svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

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

.blog-card-title {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title { color: #fff; }

@media (max-width: 860px) {
  .blog-shell { padding-top: 70px; }
  .blog-main { padding: 32px 20px 100px; }
}
