:root {
  /* --blog-body-font: 'Helvetica Neue', Arial, sans-serif; */
  --blog-body-font: 'Barlow', sans-serif;
  /* --blog-body-font: 'Noto Sans', sans-serif; */
}

.blog-post {
  /* Base typography tweaks */
  font-family: var(--blog-body-font);
  color: var(--dark);
  /* font-size: 18px; */
  /* font-weight: 300; */
  line-height: 1.4;
  text-align: left;
}

/* Container for readable width */
.blog-post .container {
  max-width: 800px;
  margin: 0 auto;
}

/* Hero banner */
.hero {
  position: relative;
  height: 40vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: white;
  margin: 0;
  padding: 0;
}

.blog-post .hero {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.blog-post h1 {
  font-size: 3rem;
  margin: 0;
}

/* Content elements */
.blog-post h1,
.blog-post h2,
.blog-post h3,
.blog-post h4 {
  margin: 2rem 0 1rem 0;
  font-weight: 700;
  text-align: left;
}

.blog-post p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.blog-post ul {
  list-style: disc outside;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-post hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 3rem auto;
  width: 60%;
}

.blog-post img {
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* Blockquotes */
.blog-post blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--secondary);
  font-style: italic;
}

/* Table wrapper for horizontal scroll when needed */
.blog-post .table-scroll {
  width: 100%; /* default: respect container width */
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

/* Full-bleed variant: allow wrapper to grow to viewport and center */
.blog-post .table-scroll.is-fullbleed {
  /* Full-bleed container aligned to viewport with equal gutters */
  width: 100vw;
  max-width: none;
  left: auto;
  transform: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max((100vw - 800px) / 2, 0px);
  padding-right: max((100vw - 800px) / 2, 0px);
}

/* Table styles */
.blog-post table {
  width: max-content; /* let table grow based on content, potentially wider than container */
  border-collapse: collapse; /* ensures borders share edges */
  margin: 0; /* wrapper handles layout */
}

.blog-post table th {
  text-align: left; /* column headers left-aligned */
  vertical-align: top;
}

.blog-post table th,
.blog-post table td {
  min-width: 200px;
  max-width: 300px;
  vertical-align: top; /* top-align content in all cells */
  padding: 1rem;
}

/* Dotted vertical dividers between columns */
.blog-post table th:not(:last-child),
.blog-post table td:not(:last-child) {
  border-right: 1px dotted #ccc;
}

@media (max-width: 768px) {
  .blog-post .hero-content h1 {
    font-size: 2.25rem;
  }
  .blog-post .container {
    padding: 0 1rem;
  }
  .blog-post .table-scroll.is-fullbleed {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}