/* Blog article typography - extends common-bootstrap.css.
   Spec: claude.com blog teardown + Butterick/iA/WCAG norms (2026-07-08).
   Key decisions: ~42rem measure (67-71 CPL), 19-20px/1.6 body, asymmetric
   heading margins (big above, small below), quiet underline-forward links. */

.article-wrap {
  max-width: 42rem; /* measure capped here, NOT via col-lg-*, which goes full-width below 992px */
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* header */
.article-header { padding-top: 3.5rem; }
.article-meta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6b70;
  margin-bottom: 0.75rem;
}
.article-meta a {
  color: inherit;
  text-decoration: none;
}
.article-meta a:hover { color: var(--primary-btn, #3146A3); }
.article-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 1.7rem + 1.5vw, 2.75rem); /* 32px -> 44px */
  line-height: 1.2;
  color: #16161a;
  margin: 0 0 1rem;
}
.article-standfirst {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: #5a5a60;
  margin: 0 0 2.25rem;
}
.article-divider {
  border: 0;
  border-top: 1px solid #e6e6ea;
  margin: 0 0 2.75rem;
  opacity: 1;
}

/* body copy: lighter grey + light weight, easier on the eye than near-black (Erik 2026-07-08) */
.article-body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.25rem); /* 19px -> 20px */
  line-height: 1.6;
  color: #3f3f46; /* ~9.6:1 on white, still AAA */
}
.article-body p { margin: 0 0 1.5em; } /* one line-height's worth */
.article-body h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem); /* 24px -> 30px */
  line-height: 1.3;
  color: #16161a;
  margin: 3rem 0 1rem; /* asymmetric: binds heading to the section below it */
}
.article-body h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  line-height: 1.3;
  color: #16161a;
  margin: 2rem 0 0.75rem;
}

/* pull quote: raised line, indigo accent */
.article-pullquote {
  margin: 3rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-btn, #3146A3);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.45;
  color: var(--primary-dark, #2D3F7F);
}
.article-pullquote p { margin: 0; }

/* sticky breadcrumb bar (sits under the sticky navbar; --nav-h set inline per page) */
.article-breadcrumb {
  position: sticky;
  top: var(--nav-h, 66px);
  z-index: 1010;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #ececf0;
}
.article-breadcrumb .inner {
  max-width: 42rem;
  margin-inline: auto;
  padding: 0.55rem 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  color: #6b6b70;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-breadcrumb a {
  color: #6b6b70;
  text-decoration: none;
}
.article-breadcrumb a:hover { color: var(--primary-btn, #3146A3); }
.article-breadcrumb .sep { margin: 0 0.5rem; color: #b9b9c0; }
.article-breadcrumb .current { color: #3f3f46; }

/* quiet links: underline-forward, brand tint on hover; underline never removed (a11y) */
.article-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(49, 70, 163, 0.4);
  transition: color 0.15s ease-out, text-decoration-color 0.15s ease-out;
}
.article-body a:hover {
  color: var(--primary-btn, #3146A3);
  text-decoration-color: var(--primary-btn, #3146A3);
}

/* data tables */
.article-body table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-weight: 400;
}
.article-body th {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6b70;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid #d9d9e0;
}
.article-body td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #ececf0;
  color: #3f3f46;
}
.article-body th.num, .article-body td.num { text-align: right; }

/* figures */
.article-body figure { margin: 2.5rem 0; }
.article-body figure img { width: 100%; height: auto; border-radius: 0.5rem; }
.article-body figcaption {
  margin-top: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b6b70;
  text-align: center;
}

/* blog index list */
.blog-list { margin-top: 0.5rem; }
.blog-list-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #e6e6ea;
  text-decoration: none;
  color: inherit;
}
.blog-list-item .thumb {
  flex: 0 0 170px;
  align-self: flex-start;
}
.blog-list-item .thumb img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid #ececf0;
  background: #fff;
}
.blog-list-item .item-body { flex: 1; min-width: 0; }
@media (max-width: 575px) {
  .blog-list-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .blog-list-item .thumb { flex-basis: auto; width: 100%; }
}
.blog-list-item:first-child { border-top: 1px solid #e6e6ea; }
.blog-list-item h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: clamp(1.375rem, 1.25rem + 0.6vw, 1.625rem);
  line-height: 1.3;
  color: #16161a;
  margin: 0.5rem 0 0.5rem;
  transition: color 0.15s ease-out;
}
.blog-list-item:hover h2 { color: var(--primary-btn, #3146A3); }
.blog-list-item p.blog-list-excerpt {
  font-family: 'Outfit', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #5a5a60;
  margin: 0;
}
