/* === Post view overrides (append at end) === */
.article .post-title,
.post-title {
  font-size: 40px;
  line-height: 1.2;
  margin: 24px 0 16px;
  font-weight: 700;
  color: var(--ink);
}

.article h2 { /* keep H2 smaller to separate hierarchy */
  font-size: 24px;
  line-height: 1.3;
  margin: 32px 0 12px;
  font-weight: 600;
}

.article__hero .hero-img,
.article .article__hero img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .article__hero .hero-img,
  .article .article__hero img { max-height: 280px; }
}

/* === Post excerpt (lead) === */
.article .post-excerpt,
.post-excerpt {
  display: block;
  margin: 5px 0 20px;
  padding: 0;                 /* no panel background by default */
  max-width: 74ch;            /* readable measure */
  color: var(--ink);
}

.article .post-excerpt.post-excerpt--lead,
.post-excerpt.post-excerpt--lead {
  font-size: 20px;            /* bigger than body */
  line-height: 1.7;
  font-weight: 500;           /* semi-bold for emphasis */
  letter-spacing: .1px;
}

/* Accent bar to visually separate from the body */
.article .post-excerpt.post-excerpt--lead::before,
.post-excerpt.post-excerpt--lead::before {
  content: "";
  display: block;
  width: 56px;
  border-radius: 3px;
  background: var(--accent);
}

/* Mobile fine-tuning */
@media (max-width: 640px) {
  .article .post-excerpt.post-excerpt--lead,
  .post-excerpt.post-excerpt--lead {
    font-size: 18px;
    line-height: 1.65;
    margin: 16px 0 24px;
  }
}

/* Panel variant for optional emphasis */
.post-excerpt.post-excerpt--panel {
  background: var(--paper);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* === Refined Post Excerpt Styling === */
.post-excerpt {
  font-size: 20px;            /* larger than body text */
  line-height: 1.7;
  font-weight: 500;
  margin: 24px 0 16px;
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
}

/* Subtle divider line below excerpt */
.post-excerpt::after {
  content: "";
  display: block;
  width: 60px;               /* short rule, not full width */
  height: 2px;
  background: var(--border); /* soft neutral grey */
  margin-top: 16px;
  border-radius: 2px;
}

/* Mobile fine-tuning */
@media (max-width: 640px) {
  .post-excerpt {
    font-size: 18px;
    line-height: 1.65;
    margin: 20px 0 14px;
  }
}

#content a h5{
    font-size: 1em;
    margin: 5px 0 5px 0;
}

#content .card-body{
    padding: 0 10px 0 10px;
}

#content .container{
	padding: 0;
}

.card-img-top{
	width: 100%
}

/* Narrow the reading column for better measure */
.article { display:grid; grid-template-columns: 1fr; }
.article__content {
  /* never smaller than 680px, ideal ~72ch, never larger than 800px */
  max-width: clamp(680px, 72ch, 800px);
  width: 100%;
  margin-inline: auto;
}

/* Comfortable reading width */
.article__content {
  width: 100%;
  max-width: 860px;      /* wider than before, but still readable */
  margin-inline: auto;
  padding-inline: 16px;  /* breathing room on very large screens */
}

/* Body text sizing */
.article__content p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 1.4em;
}

/* Keep hero + inline images filling the width */
.article__hero img,
.article__content figure > img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* On tablets and phones, go full width */
@media (max-width: 1024px) {
  .article__content { max-width: 95vw; }
}

/* === Excerpt lead + divider (high confidence) === */
.article .post-excerpt.post-excerpt--lead,
.post-excerpt.post-excerpt--lead {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
  margin: 24px 0 18px;
  color: var(--ink);
  position: relative;
  padding-bottom: 10px;
}

/* Prefer short rule line via ::after; appears darker than fallback */
.article .post-excerpt.post-excerpt--lead::after,
.post-excerpt.post-excerpt--lead::after {
  content: "";
  display: block;
  width: 25%;
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--border, rgba(17,24,39,0.32)); /* fallback if --border missing */
}

/* Mobile tune */
@media (max-width: 640px) {
  .article .post-excerpt.post-excerpt--lead,
  .post-excerpt.post-excerpt--lead {
    font-size: 18px;
    line-height: 1.65;
    margin: 20px 0 16px;
    padding-bottom: 14px;
  }
}