/* blog.css  —  cosmetic tweaks for every generated article */

.blog-content{
  font-size:1.05rem;          /* a hair larger than body text          */
  line-height:1.6;            /* easier to read long paragraphs        */
  max-width:42rem;            /* keeps line-length sensible            */
  margin:0 auto;
  padding-bottom:2rem;
}

/* headings */
.blog-content h2{
  font-size:1.75rem;
  margin:2rem 0 1rem;
  font-weight:700;
}
.blog-content h3{
  font-size:1.35rem;
  margin:1.8rem 0 0.8rem;
  font-weight:600;
}

/* paragraphs and lists */
.blog-content p{margin:0 0 1.1rem;}
.blog-content ul,
.blog-content ol{
  margin:0 0 1.1rem 1.5rem;
}
.blog-content li{margin-bottom:0.5rem;}

/* pull-quote style blocks */
.blog-content blockquote{
  margin:1.5rem 0;
  padding:0.8rem 1.2rem;
  border-left:4px solid #1e88e5;   /* pick a brand-accent colour */
  background:#f5f7fb;
  font-style:italic;
}

/* tables */
.blog-content table{
  width:100%;
  border-collapse:collapse;
  margin:1.5rem 0;
  font-size:0.95rem;
}
.blog-content th,
.blog-content td{
  padding:0.6rem 0.8rem;
  border:1px solid #dee2e6;
  text-align:left;
}
.blog-content thead th{
  background:#f0f4f8;
  font-weight:600;
}

/* muted helper (already in your markup) */
.blog-content .muted{
  color:#6c757d;
  font-size:0.95rem;
}

/* ensure the narrow column behaves on large screens */
@media(min-width:48em){
  .content-narrow{
    max-width:50rem;
    margin-left:auto;
    margin-right:auto;
  }
}
/* -----------------------------------------------------------
   Blog index layout
   ----------------------------------------------------------- */

/* wrap the list in a responsive grid */
.blog-list ul{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(18rem,1fr));
  gap:1.2rem;
  padding:0;
  list-style:none;
}

/* turn each entry into a card */
.blog-list .blog-post a{
  display:block;
  background:#fff;
  border:1px solid #e0e3e6;
  border-radius:0.4rem;
  padding:1rem 1.2rem;
  font-weight:600;
  text-decoration:none;
  transition:transform 0.15s ease,box-shadow 0.15s ease;
  box-shadow:0 1px 3px rgba(0,0,0,0.06);
}

/* hover / focus state */
.blog-list .blog-post a:hover,
.blog-list .blog-post a:focus{
  transform:translateY(-2px);
  box-shadow:0 4px 8px rgba(0,0,0,0.08);
  border-color:#b2c3ff;
}

/* make long titles wrap neatly */
.blog-list .blog-post a{
  word-wrap:break-word;
  line-height:1.4;
}
/* blog index – kill all bullets/markers */
.blog-list ul{ list-style:none; }              /* no native bullets                */
.blog-list .blog-post{ position:relative; }    /* anchors stay block-level cards   */
.blog-list .blog-post::marker,
.blog-list .blog-post::before{ content:none!important; }  /* remove custom markers */

/* blog index – kill the horizontal rule that sits under each row of cards */
.blog-list ul{
  border:0!important;                 /* remove any border on the <ul> */
}
.blog-list ul li{
  border:0!important;                 /* remove any border on each <li> */
}

/* precaution: if a pseudo-element draws the line, nuke it too */
.blog-list ul::after,
.blog-list li::after{
  content:none!important;
}
/* -----------------------------------------------------------
   Blog index – equal-height cards
   ----------------------------------------------------------- */

/* 1) Tell the grid to make every row the same height … */
.blog-list ul{
  grid-auto-rows:1fr;           /* each row uses the tallest card in that row   */
}

/* 2) … and let each <li> stretch to fill that row */
.blog-list .blog-post{
  display:flex;                 /* flex wrapper lets the anchor fill the space  */
}

/* 3) Make the anchor a flex-box that centres its text vertically
      (feels nicer than text hugging the top)                                  */
.blog-list .blog-post a{
  flex:1 1 auto;                /* fill all available height                     */
  display:flex;
  align-items:center;           /* vertical centring                            */
  min-height:7rem;              /* safety floor for very short titles           */
  line-height:1.35;
}

/* optional: clamp very long titles to two lines to keep cards uniform */
@supports (-webkit-line-clamp:2){
  .blog-list .blog-post a{
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
  }
}

