.blog-shell {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.blog-list-grid {
  display: grid;
  gap: 1.5rem;
}

.blog-sidebar {
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.018));
  box-shadow: 0 22px 54px -34px rgb(34 211 238 / 0.48);
}

.blog-sidebar-kicker {
  margin: 0;
  color: rgb(var(--nebula-cyan));
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.blog-sidebar-title {
  margin: 0.45rem 0 1rem;
  color: rgb(241 245 249);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.blog-sidebar-list {
  display: grid;
  gap: 0.9rem;
}

.blog-sidebar-item {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 0.85rem;
  background: rgb(255 255 255 / 0.025);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.blog-sidebar-item:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--nebula-cyan) / 0.42);
  background: rgb(255 255 255 / 0.045);
}

.blog-sidebar-image,
.blog-sidebar-gradient {
  display: block;
  width: 100%;
  height: 7rem;
  object-fit: cover;
  background-size: cover;
}

.blog-sidebar-copy {
  display: block;
  padding: 0.85rem;
}

.blog-sidebar-date {
  display: block;
  color: rgb(100 116 139);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-sidebar-heading {
  display: block;
  margin-top: 0.4rem;
  color: rgb(226 232 240);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.blog-sidebar-item:hover .blog-sidebar-heading {
  color: rgb(var(--nebula-cyan));
}

.blog-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  color: rgb(var(--nebula-cyan));
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-sidebar-link svg {
  width: 0.7rem;
  height: 0.7rem;
}

.blog-article-layout {
  max-width: 80rem;
}

.blog-article-shell {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.blog-article-main {
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.blog-article-main > * {
  max-width: 100%;
}

.blog-article-main .prose-content,
.blog-article-main .prose-content figure {
  min-width: 0;
  max-width: 100%;
}

.blog-article-main .prose-content pre {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.blog-article-main .prose-content pre code {
  display: block;
  width: max-content;
  min-width: 100%;
  white-space: pre;
}

.article-disclaimer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(245 158 11 / 0.38);
  border-left-width: 4px;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgb(245 158 11 / 0.12), rgb(249 115 22 / 0.045));
  box-shadow: 0 18px 45px -34px rgb(245 158 11 / 0.75);
}

.article-disclaimer-title {
  margin: 0;
  color: rgb(251 191 36);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-disclaimer-copy {
  margin: 0.45rem 0 0;
  color: rgb(203 213 225);
  font-size: 0.95rem;
  line-height: 1.7;
}

html:not(.dark) .article-disclaimer {
  border-color: rgb(217 119 6 / 0.42);
  background: linear-gradient(135deg, rgb(254 243 199 / 0.82), rgb(255 247 237 / 0.72));
}

html:not(.dark) .article-disclaimer-title {
  color: rgb(146 64 14);
}

html:not(.dark) .article-disclaimer-copy {
  color: rgb(71 85 105);
}

.blog-article-shell > .blog-sidebar {
  margin-top: 3rem;
}

html:not(.dark) .blog-sidebar {
  border-color: rgb(15 23 42 / 0.1);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.96), rgb(241 245 249 / 0.9));
  box-shadow: 0 22px 54px -34px rgb(15 23 42 / 0.32);
}

html:not(.dark) .blog-sidebar-title,
html:not(.dark) .blog-sidebar-heading {
  color: rgb(15 23 42);
}

html:not(.dark) .blog-sidebar-item {
  border-color: rgb(15 23 42 / 0.09);
  background: rgb(255 255 255 / 0.72);
}

@media (min-width: 640px) {
  .blog-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .blog-shell {
    grid-template-columns: minmax(0, 1fr) 19rem;
  }

  .blog-shell > .blog-sidebar {
    position: sticky;
    top: 7.5rem;
  }

  .blog-article-shell {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 19rem);
  }

  .blog-article-shell > .blog-sidebar {
    margin-top: 2rem;
    position: sticky;
    top: 7.5rem;
  }
}
