/* Single blog post — D3 styling, light-mode reading experience */
.post-hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.post-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.55;
  background: radial-gradient(ellipse 70% 50% at 30% 0%, var(--accent-soft), transparent 60%);
}
.post-hero > div { position: relative; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-mute); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumb a { color: var(--text-mute); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--text-dim); }

.post-tag-hero {
  display: inline-flex; align-items: center; padding: 6px 14px;
  border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; font-weight: 600; margin-bottom: 24px;
  text-decoration: none;
}

.post-title-hero {
  font-size: 80px; line-height: 0.95; font-weight: 500; letter-spacing: -0.045em;
  margin: 0 0 32px; max-width: 1100px;
}
.post-subtitle {
  font-size: 24px; line-height: 1.4; color: var(--text-mute);
  max-width: 820px; margin: 0 0 48px; font-weight: 400; letter-spacing: -0.015em;
}
.post-byline {
  display: flex; align-items: center; gap: 24px; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.byline-author { display: flex; align-items: center; gap: 14px; }
.byline-avatar {
  width: 44px; height: 44px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), oklch(0.6 0.24 320));
  background-size: cover; background-position: center;
}
.byline-name { font-size: 15px; font-weight: 600; }
.byline-role { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.byline-meta { display: flex; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-left: auto; }
.byline-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.byline-group { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.byline-col .byline-name a { color: inherit; text-decoration: none; }
.byline-col .byline-name a:hover { color: var(--accent); }
.byline-sep-v { width: 1px; align-self: stretch; background: var(--line); }
.byline-avatar.sm { width: 38px; height: 38px; border-radius: 19px; }
.byline-avatar.rev { background: linear-gradient(135deg, oklch(0.6 0.24 320), var(--accent)); }

.post-cover {
  width: 100%; 
	  /*  max-width: 1100px;       added this line */
aspect-ratio: 16/9; max-height: 520px; border-radius: 24px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg)),
              repeating-linear-gradient(135deg, transparent 0 16px, var(--line) 16px 17px);
  background-blend-mode: normal;
  background-size: cover; background-position: center;
  border: 1px solid var(--line-s);
  margin: 56px auto 0; display: flex; align-items: flex-end; padding: 24px;
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
}

/* Article body */
.post-body {
  font-size: 19px; line-height: 1.65; color: var(--text);
  letter-spacing: -0.01em;
}
.post-body p { margin: 0 0 28px; color: #2c2a35; }

/* .post-body p:first-of-type::first-letter {
  font-size: 64px; float: left; line-height: 0.9; margin: 4px 12px -4px 0;
  font-weight: 600; color: var(--accent);
} this was the code for bigger first letter */

.post-body h2 {
  font-size: 36px; font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.15; margin: 64px 0 24px;
}
.post-body h3 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { font-style: italic; color: var(--text); }
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(165,120,255,0.4); text-underline-offset: 4px; }
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body ul, .post-body ol { margin: 0 0 28px; padding-left: 24px; color: #2c2a35; }
.post-body li { margin-bottom: 12px; line-height: 1.6; }
.post-body img { max-width: 100%; height: auto; border-radius: 16px; margin: 8px 0 28px; }
.post-body blockquote {
  margin: 40px 0; padding: 24px 28px; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 16px 16px 0;
  font-size: 22px; line-height: 1.5; letter-spacing: -0.015em;
  color: var(--text); font-weight: 500;
}
.post-body blockquote cite {
  display: block; margin-top: 14px; font-size: 13px;
  font-style: normal; font-weight: 500; color: var(--text-mute); font-family: var(--mono);
}
.post-body code {
  background: #EDEAE2; padding: 2px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 0.88em; color: var(--accent);
  border: 1px solid var(--line);
}
.post-body pre {
  background: #F3F1EC; border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; margin: 0 0 28px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: #2c2a35; overflow-x: auto;
}
.post-body pre code { background: none; padding: 0; border: none; color: #2c2a35; }

.callout {
  margin: 40px 0; padding: 24px 28px; border: 1px solid var(--line-s);
  border-radius: 16px; background: var(--bg-alt);
  display: flex; gap: 20px; align-items: flex-start;
}
.callout-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; flex-shrink: 0;
}
.callout-text { font-size: 16px; line-height: 1.55; color: var(--text-mute); }
.callout-text strong { color: var(--text); }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 40px 0;
}
.stat-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px;
}
.stat-card .num {
  font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, var(--accent), oklch(0.58 0.19 340));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.stat-card .lbl { font-size: 13px; color: var(--text-mute); line-height: 1.45; }

.toc {
  position: sticky; top: 96px; align-self: start;
  padding-left: 24px; border-left: 1px solid var(--line);
}
.toc-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.toc a { display: block; padding: 8px 0; font-size: 13px; color: var(--text-mute); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--accent); }

.post-layout {
  display: grid; grid-template-columns: 1fr 760px 220px 1fr; gap: 0;
  margin: 0 auto; padding: 0;
}
.post-layout .body-col { grid-column: 2; }
.post-layout .toc-col { grid-column: 3; padding-left: 40px; }
.post-body { margin: 64px 0 80px; }

.share-bar {
  display: flex; gap: 8px; margin: 40px 0;
  padding-top: 28px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.share-bar .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); align-self: center; margin-right: 12px; }
.share-btn {
  padding: 8px 14px; border-radius: 999px; background: var(--bg-alt);
  border: 1px solid var(--line); color: var(--text-mute);
  font-size: 12px; text-decoration: none; font-family: var(--mono); cursor: pointer;
}

.related {
  padding: 100px 0; border-top: 1px solid var(--line);
}

/* E-E-A-T author / reviewer credentials */
.eeat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 48px 0; }
.eeat-card {
  background: var(--bg-alt); border: 1px solid var(--line-s); border-radius: 20px;
  padding: 28px; position: relative; overflow: hidden;
}
.eeat-role {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 20px;
}
.eeat-role .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.eeat-person { display: flex; gap: 16px; align-items: flex-start; }
.eeat-avatar {
  width: 64px; height: 64px; border-radius: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), oklch(0.6 0.24 320));
  background-size: cover; background-position: center;
  border: 1px solid var(--line-s);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--mono); font-size: 8px; color: rgba(255,255,255,0.6); padding-bottom: 4px;
}
.eeat-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.eeat-title { font-size: 13px; color: var(--text-mute); margin-top: 3px; line-height: 1.4; }
.eeat-bio { font-size: 14px; color: var(--text-mute); line-height: 1.6; margin: 18px 0 0; }
.eeat-creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.eeat-cred {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); color: var(--text-mute);
}
.eeat-socials { display: flex; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.eeat-social {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); text-decoration: none; transition: border-color .15s, color .15s;
}
.eeat-social:hover { border-color: var(--accent); color: var(--accent); }
.eeat-social svg { width: 16px; height: 16px; }
.eeat-review-note {
  font-size: 13px; color: var(--text-mute); line-height: 1.55;
  margin: 18px 0 0; padding: 14px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; gap: 10px; align-items: flex-start;
}
.eeat-review-note .check { color: var(--accent); flex-shrink: 0; }
.eeat-meta-line {
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  margin: 12px 0 40px; display: flex; gap: 16px; flex-wrap: wrap;
}
.eeat-meta-line span { display: flex; align-items: center; gap: 6px; }
.related h2 { font-size: 40px; margin-bottom: 32px; font-weight: 500; letter-spacing: -0.035em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; min-height: 240px;
}
.related-card:hover { border-color: var(--line-s); }
.related-card .t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; flex: 1; }
.related-card .m { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }

.cta-band {
  margin: 0 0 80px;
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--line-s); border-radius: 24px;
  padding: 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 100% 50%, var(--accent-soft), transparent 60%);
  opacity: 0.6;
}
.cta-band > * { position: relative; }
.cta-band h3 { font-size: 32px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }
.cta-band p { font-size: 16px; color: var(--text-mute); line-height: 1.55; margin: 0; }

/* Light-mode reading experience — only the post template runs light, nav/footer stay dark-tokened via .site-header/.site-footer overrides below is NOT used since the whole site is already light (see stub.css). Kept for parity with the static original. */
