/* ============================================================
   Blog-detail-only styles: article body, TOC, byline, related,
   resources band, share buttons, author signature.
   Loaded by blogs/[slug]/page.tsx — NOT by /blogs listing,
   glossary, or any other route.
   .prose typography lives in ../../typography.css so pages that
   render prose without the rest of the article chrome can use it.
   ============================================================ */
.article-header{
  background: var(--paper);
  padding: 64px var(--gutter) 32px;
}
.article-header-inner{
  max-width: 920px;
  margin: 0 auto;
}
.article-crumb{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.article-crumb a{ color: var(--accent); }
.article-crumb a:hover{ color: var(--accent-hover); }
.article-crumb-sep{ color: var(--rule); }
.article-crumb-current{
  color: var(--text-muted);
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-tag{
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16px;
  color: #0043ce;
  background: #d0e2ff;
  padding: 6px 12px;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.article-tag:hover{
  background: #0043ce;
  color: #ffffff;
  text-decoration: none;
}
.article-title{
  /* Carbon expressive-heading-06 — fluid 42→60, weight 300 (Light), letter-spacing -0.0064em */
  font-family: var(--font-sans);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.199;
  letter-spacing: -0.0064em;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 24px;
}
.article-deck{
  /* Carbon body-02 expressive — Plex Sans 18, regular, line-height 26 */
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 640px;
}
.article-byline{
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-byline-by{ color: var(--text-muted); }
.article-byline-name{
  font-weight: 500;
  color: var(--ink);
}
a.article-byline-name{ color: var(--accent); }
a.article-byline-name:hover{
  color: var(--accent-hover);
  text-decoration: underline;
}
.article-byline-date{
  color: var(--text-muted);
  position: relative;
  padding-left: 14px;
}
.article-byline-date::before{
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}
.article-hero{
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 var(--gutter) 48px;
}
.article-hero-image{
  position: relative;
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
}
.article-hero-image img{
  width: 100%;
  height: auto;
  display: block;
}
.article-hero-image .cover-fallback{
  width: 100%;
  aspect-ratio: 16 / 9;
}
.article-hero-caption{
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 0;
}
@media (max-width: 700px) {
  .article-hero {
    padding: 0 0 32px;
  }
  .article-hero-image {
    border-left: none;
    border-right: none;
  }
  .article-hero-caption {
    padding: 0 var(--gutter);
  }
}

.article-body{
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 56px var(--gutter) 64px;
  background: var(--paper);
}
.article-body-inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .article-body-inner { grid-template-columns: 1fr; gap: 32px; }
}

.article-toc{
  position: sticky;
  top: 88px;
  align-self: start;
}
.article-toc-inner{
  border-left: 1px solid var(--rule);
  padding-left: 16px;
}
.article-toc-list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-toc-list li{
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  padding: 6px 0 6px 16px;
  margin-left: -17px;       /* aligns with the rail border */
  border-left: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.article-toc-list li.is-h3{
  padding-left: 32px;        /* indent under H2 */
  font-size: 13px;
}
.article-toc-list li.is-active{
  border-left-color: var(--accent);  /* blue mark */
}
.article-toc-list li.is-active > a{
  color: var(--ink);
  font-weight: 500;
}
.article-toc-list a{
  color: var(--text-soft);
  transition: color 0.15s;
  display: block;
}
.article-toc-list a:hover{
  color: var(--accent);
  text-decoration: none;
}
@media (max-width: 900px) {
  .article-toc {
    position: static;
    margin-bottom: 16px;
  }
  .article-toc-inner {
    border-left: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 16px 0;
  }
  .article-toc-list li {
    margin-left: 0;
    border-left: none;
    border-top: 3px solid transparent;
    padding: 6px 0 6px 0;
  }
  .article-toc-list li.is-active {
    border-left-color: transparent;
    border-top-color: var(--accent);
  }
}

.article-content-col{ min-width: 0; }
.article-category-footer{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 720px;
  margin-top: 48px;
}
.article-category-label{
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.article-category-footer + .share-buttons{ margin-top: 24px; }
.share-buttons{
  display: flex;
  gap: 8px;
  margin: 56px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 720px;
}
.share-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.share-btn:hover{
  background: var(--accent);
  color: var(--text-on-dark);
  border-color: var(--accent);
  text-decoration: none;
}
.share-btn-tip{
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--text-on-dark);
  font-size: 11px;
  font-family: var(--font-sans);
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.share-btn:hover .share-btn-tip{ opacity: 1; }
.author-signature{
  margin: 48px 0 0;
  padding: 32px;
  background: var(--paper-2);
  max-width: 720px;
}
.author-signature-inner{
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
}
.author-signature-photo{
  width: 96px;
  height: 96px;
  background: var(--paper-3);
  position: relative;
  overflow: hidden;
}
.author-signature-details{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* nudge text down slightly so the eyebrow's cap-height aligns to the
     photo's top edge, not its baseline */
  padding-top: 2px;
}
.author-signature-eyebrow{
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  line-height: 1;
}
.author-signature-name{
  /* heading-03 productive: 20 / 28 / 400 */
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 28px;
  margin: 0 0 4px;
}
.author-signature-name:hover{
  color: var(--accent);
  text-decoration: none;
}
.author-signature-role{
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}
.author-signature-bio{
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.author-signature-cta{
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
}
.author-signature-cta:hover{
  color: var(--accent-hover);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .author-signature {
    padding: 24px;
  }
  .author-signature-inner {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .author-signature-photo { width: 80px; height: 80px; }
}

.resources-band{
  padding: 64px var(--gutter);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.resources-band-inner{
  max-width: var(--max);
  margin: 0 auto;
}
.resources-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .resources-list { grid-template-columns: 1fr; }
}

.resource-card{
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 16px;
  align-items: start;
  background: var(--paper);
  padding: 20px;
  color: inherit;
  border: 1px solid var(--rule);
  transition: border-color 0.15s, background 0.15s;
}
.resource-card:hover{
  border-color: var(--accent);
  background: var(--paper);
  text-decoration: none;
}
.resource-card-icon{
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--accent);
}
.resource-card:hover .resource-card-icon{
  background: var(--accent-soft);
}
.resource-card-meta{
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.resource-card-source{ color: var(--ink); }
.resource-card-dot{ color: var(--rule); }
.resource-card-type{ color: var(--accent); }
.resource-card-title{
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.resource-card:hover .resource-card-title{
  color: var(--accent);
}
.resource-card-description{
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
  margin: 0;
}
.resource-card-arrow{
  color: var(--text-muted);
  transition: color 0.15s, transform 0.15s;
  align-self: start;
  padding-top: 2px;
}
.resource-card:hover .resource-card-arrow{
  color: var(--accent);
  transform: translate(2px, -2px);
}
.related-posts{
  padding: 64px var(--gutter);
  background: var(--paper);
}
.related-posts-inner{
  max-width: var(--max);
  margin: 0 auto;
}
.related-posts-grid{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .related-posts-grid { grid-template-columns: 1fr; gap: 24px; }
}

.related-card{
  display: block;
  color: inherit;
  height: 100%;
}
.related-card:hover{ color: inherit; text-decoration: none; }
.related-card-image{
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.related-card-image img{ object-position: center; }
.related-card-body{
  padding: 0;
}
.related-card-meta{
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.related-card-meta .cat{ color: var(--accent); }
.related-card-meta .dot{ color: var(--rule); }
.related-card-title{
  /* expressive-heading-03: 20 / 28 / 400 / 0 */
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: 0;
  transition: color 0.15s;
}
.related-card:hover .related-card-title{
  color: var(--accent);
}
.related-card-excerpt{
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
