.blog-main {
  padding-block: 4rem;
  flex: 1;
}
.blog-main h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 24ch;
  line-height: 1.15;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 2rem;
  margin-block: 3rem;
}
.blog-card {
  border: 1px solid var(--border, #deded7);
  border-radius: 16px;
  overflow: hidden;
  padding: 1.5rem;
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
.blog-card h2 {
  font-size: 1.5rem;
  line-height: 1.3;
}
.blog-card a {
  color: inherit;
  text-decoration: none;
}
.blog-card a:hover {
  text-decoration: underline;
}
.blog-article {
  max-width: 800px;
  margin-inline: auto;
}
.blog-content {
  font-size: 1.1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.blog-content h1 {
  font-size: 2rem;
}
.blog-content h2,
.blog-content h3 {
  margin-block: 2rem 1rem;
  line-height: 1.3;
}
.blog-content p,
.blog-content ul,
.blog-content ol {
  margin-block: 1.2rem;
}
.blog-content img,
.blog-hero {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.blog-content pre {
  overflow: auto;
  padding: 1rem;
  background: #f3f3ef;
}
.blog-content table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.6;
  /* Wide tables scroll instead of breaking words in the middle. */
  overflow-wrap: normal;
}
.blog-content td,
.blog-content th {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line, #ddd);
  text-align: left;
  vertical-align: top;
}
.blog-content th {
  background: #f1f4ed;
  font-weight: 650;
}
.blog-link-card {
  margin-block: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line, #deded7);
  border-inline-start: 4px solid var(--emerald, #1f6f5c);
  border-radius: 12px;
  background: var(--paper, #fff);
  line-height: 1.6;
}
.blog-link-card p {
  margin-block: 0 0.5rem;
}
.blog-link-card .blog-link-card-site {
  color: var(--ink-soft, #5d6b67);
  font-size: 0.85rem;
}
.blog-link-card .blog-link-card-title {
  color: var(--ink, #243c38);
  font-size: 1.15rem;
  font-weight: 700;
}
.blog-link-card .button {
  margin-top: 0.5rem;
}
.blog-content blockquote {
  border-inline-start: 3px solid #8a9a78;
  margin-inline: 0;
  padding-inline: 1.5rem;
}
.blog-cta {
  margin-top: 4rem;
  padding: 2rem;
  border-radius: 16px;
  background: #f1f3ed;
}
.blog-pagination {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.blog-content figure {
  margin-inline: 0;
}
@media (max-width: 600px) {
  .blog-main {
    padding-block: 2rem;
  }
}

.blog-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.blog-page #blog-footer {
  margin-top: auto;
}
.blog-consent-dialog {
  max-width: min(560px, calc(100vw - 32px));
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.blog-consent-dialog::backdrop {
  background: rgb(36 60 56 / 35%);
}
.blog-consent-dialog .consent-actions {
  flex-wrap: wrap;
}
.blog-page #blog-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
