/* ── Blog — article layout (reuses the variables of styles.css) ── */

.blog-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  padding: 4rem 1.5rem 3rem;
}
.blog-hero__inner { max-width: 760px; margin: 0 auto; }
.blog-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin-bottom: .9rem; }
.blog-hero p { color: var(--light-blue); font-size: 1.1rem; line-height: 1.6; }
.blog-meta { margin-top: 1.25rem; font-size: .85rem; color: var(--light-blue); opacity: .85; }
.blog-kicker {
  display: inline-block; margin-bottom: .9rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
}

.article { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; font-size: 1.06rem; }
.article > * + * { margin-top: 1.1rem; }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.75rem; }
.article h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-left: 1.4rem; }
.article li + li { margin-top: .4rem; }
.article a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.article a:hover { color: var(--green-dark); }
.article strong { color: var(--navy-dark); }
.article sup a { text-decoration: none; font-weight: 700; font-size: .75em; }

.article figure { margin: 2rem 0; }
.article figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article figcaption { margin-top: .6rem; font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.article figure svg { width: 100%; height: auto; display: block; }
.chart {
  background: var(--light-bg); border-radius: var(--radius);
  padding: 1.25rem 1.25rem .75rem;
}

.callout {
  background: var(--light-bg); border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
}
.callout--warn { border-left-color: #B45309; }
.callout p + p { margin-top: .5rem; }

.keyfigures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem;
  margin: 1.75rem 0;
}
.keyfigure { background: var(--light-bg); border-radius: var(--radius); padding: 1rem 1.1rem; }
.keyfigure strong { display: block; font-size: 1.7rem; color: var(--navy); line-height: 1.15; }
.keyfigure span { font-size: .88rem; color: var(--text-muted); line-height: 1.45; display: block; margin-top: .3rem; }

/* Copyable templates */
.template {
  border: 1px solid var(--light-blue); border-radius: var(--radius);
  overflow: hidden; margin: 1.25rem 0;
}
.template__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--light-bg); padding: .65rem 1rem;
  font-weight: 700; color: var(--navy); font-size: .95rem;
}
.template__copy {
  border: 1px solid var(--navy); background: var(--white); color: var(--navy);
  border-radius: 50px; padding: .3rem .9rem; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.template__copy:hover { background: var(--navy); color: var(--white); }
.template__body {
  padding: 1rem; white-space: pre-wrap; font-family: inherit; font-size: .95rem;
  line-height: 1.6; color: var(--text); margin: 0;
}

.faq details { border-bottom: 1px solid var(--light-blue); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin-top: .6rem; }

.sources { font-size: .9rem; color: var(--text-muted); }
.sources li { color: var(--text-muted); }

/* Blog index */
.post-list { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; display: grid; gap: 1.5rem; }
.post-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: center;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition);
}
.post-card:hover { transform: translateY(-2px); }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.1rem 1.25rem 1.1rem 0; }
.post-card h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.post-card p { color: var(--text-muted); font-size: .95rem; }
.post-card time { font-size: .8rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .post-card { grid-template-columns: 1fr; }
  .keyfigures { grid-template-columns: 1fr; }
  .post-card img { height: 180px; }
  .post-card__body { padding: 0 1.1rem 1.1rem; }
  .article { padding: 2rem 1rem 3rem; font-size: 1rem; }
  .blog-hero { padding: 3rem 1rem 2.25rem; }
}

/* Escalation timeline (HTML, not SVG: it must stay readable at phone width) */
.timeline { list-style: none; padding-left: 0 !important; margin: 1.75rem 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 1.1rem; top: .5rem; bottom: .5rem;
  width: 2px; background: var(--light-blue);
}
.timeline li { position: relative; padding-left: 3.4rem; margin-top: 1.1rem; }
.timeline__when {
  position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white); font-size: .68rem; font-weight: 800;
}
.timeline li:last-child .timeline__when { background: #B45309; }
.timeline strong { display: block; }
