/* ==========================================================================
   ADNAN KABIR — blog-post.css
   Loaded ONLY by blog-post.html. Every selector here is new or duplicated
   from about.css/blog.css/resources.css (never imported directly, per the
   page-isolation rule), so no other page can be affected.

   Ported from the standalone Elementor snippet at
   "WEBSITE DESIGN/FOR ELEMENTOR/BLOG/blog-post.html", rebuilt on this
   site's own tokens/components. This is an article/reading page rather
   than a landing page, so the header is a plain content block — not
   .hero — and the body forgoes scroll-reveal entirely (matching the
   source, which never applies .reveal to its prose).

   Reuses .kicker, .chip, .link-arrow, .btn, .briefing (main.js's
   newsletter handler works unmodified via [data-newsletter]), .finale,
   .footer, .post-card (duplicated from blog.css) — plus the article head,
   table of contents, prose callouts and the Go Deeper cards, which have
   no equivalent elsewhere.
   ========================================================================== */

.page-section {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--rule);
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .h2 { margin-bottom: .2em; }

/* ---------- Article header -------------------------------------------- */

.post-head { padding: clamp(8.5rem, 17vh, 10.5rem) 0 0; }
.post-head__col { max-width: 46rem; margin-inline: auto; }

.post-head__back {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem;
  color: var(--ink-3);
  font-size: .8125rem;
  transition: color var(--t-fast) linear;
}
.post-head__back:hover { color: var(--accent-text); }
.post-head__back svg {
  width: .9375rem; height: .9375rem; flex: none;
  stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.post-head__tags { display: flex; align-items: center; gap: .85rem; margin: 1.25rem 0 1.35rem; flex-wrap: wrap; }
.post-head__meta { color: var(--ink-3); }

.post-head__title {
  font-size: clamp(2rem, 5vw, 2.875rem);
  margin-bottom: 1.25rem;
}

/* ---------- Byline ------------------------------------------------------ */

.byline {
  max-width: 46rem; margin: 2rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-block: 1px solid var(--rule);
  padding-block: 1.1rem;
}
.byline__who { display: flex; align-items: center; gap: .85rem; }
.byline__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .9375rem; }
.byline__date { color: var(--ink-3); margin-top: .2rem; }
.byline__share { display: flex; gap: .5rem; }

/* ---------- Avatar -------------------------------------------------------
   Same accent-forward badge language as .eyebrow__dot / .brand__mark. */

.avatar {
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  flex: none;
}
.avatar--sm { width: 2.75rem; height: 2.75rem; font-size: .8125rem; letter-spacing: .01em; }
.avatar--lg { width: 4rem; height: 4rem; font-size: 1.125rem; letter-spacing: .01em; }

/* ---------- Share button --------------------------------------------------
   One component for all three contexts (byline, TOC, bottom share row).
   Icon-only instances rely on min-width for a circular-enough touch target;
   labelled instances (share-row) grow with their text. */

.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 2.75rem; min-height: 2.75rem;
  padding-inline: .7rem;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  transition: border-color var(--t-fast) linear, color var(--t-fast) linear;
}
.share-btn:hover { border-color: var(--accent-line); color: var(--accent-text); }

/* ---------- Hero image placeholder ---------------------------------------
   Same grid-texture technique as blog.css's .feat-post__quote-panel. */

.post-hero-img {
  position: relative;
  max-width: 46rem; margin: 2.5rem auto 0;
  height: clamp(14rem, 30vw, 22rem);
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    var(--bg-2);
  background-size: 34px 34px, 34px 34px, auto;
}
.post-hero-img__sq { position: absolute; top: 1.35rem; right: 1.5rem; width: 1.6rem; height: 1.6rem; border: 1px solid var(--rule-2); }
.post-hero-img__label {
  position: absolute; left: 1.5rem; bottom: 1.35rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Article body: reading column + sticky TOC in the gutter ------ */

.post-body { padding: clamp(3rem, 6vw, 3.5rem) 0 .5rem; }

.post-body-grid {
  display: block;
  max-width: 46rem;
  margin-inline: auto;
}
@media (min-width: 1120px) {
  .post-body-grid {
    display: grid;
    grid-template-columns: 1fr min(46rem, 100%) 1fr;
    column-gap: 0;
    max-width: none;
    margin-inline: 0;
  }
  .post-body-grid > .prose { grid-column: 2; min-width: 0; }
}

.toc { display: none; }
@media (min-width: 1120px) {
  .toc {
    display: block;
    grid-column: 1;
    justify-self: end;
    width: 10.5rem;
    margin-right: 1.75rem;
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}
.toc__head { color: var(--ink-3); margin-bottom: .9rem; }
.toc__head--share { margin-top: 1.75rem; }
.toc nav { display: grid; }
.toc a {
  display: flex; gap: .6rem;
  padding-block: .45rem;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.4;
  transition: color var(--t-fast) linear;
}
.toc a::before { content: '—'; color: var(--rule-2); flex: none; }
.toc a:hover { color: var(--ink-2); }
.toc a.is-active { color: var(--ink); font-weight: 600; }
.toc a.is-active::before { color: var(--accent); }
.toc__share { display: flex; gap: .5rem; margin-top: .75rem; }

/* ---------- Prose --------------------------------------------------------- */

.prose p { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.35rem; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-stretch: 92%;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 2.75rem 0 1.1rem;
}

.dash-list { display: grid; gap: 0; margin: .4rem 0 1.5rem; }
.dash-list li {
  display: flex; gap: .75rem;
  padding: .55rem 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.dash-list li::before { content: '—'; color: var(--accent-text); font-weight: 700; flex: none; }

/* Mid-article callout — a short pointer to another publication. */
.callout-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1.25rem;
  align-items: baseline;
  border-block: 1px solid var(--rule);
  padding-block: 1.25rem;
  margin-block: 2rem;
}
@media (max-width: 480px) { .callout-inline { grid-template-columns: 1fr; } }
.callout-inline__label { color: var(--accent-text); }
.callout-inline p { color: var(--ink-2); font-size: .9375rem; margin: 0; }
.callout-inline a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* Box callout ("The Pattern") — same accent-soft + left-rule language as
   .case__block--result / .note-card, duplicated from about.css's .pull. */
.pull {
  padding: clamp(1.5rem, 3vw, 1.75rem);
  margin: 2rem 0;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pull__k { color: var(--accent-text); margin-bottom: .6rem; }
.pull__body { color: var(--ink-2); font-size: .9375rem; text-wrap: pretty; }

.pquote {
  border-left: 3px solid var(--accent);
  padding: .25rem 0 .25rem 1.5rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Framework/screenshot placeholder — same grid-texture technique used
   throughout the page. */
.figure {
  position: relative;
  min-height: 17rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .85rem;
  padding: 1.75rem;
  margin: 2.25rem 0 .75rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    var(--elev);
  background-size: 44px 44px, 44px 44px, auto;
}
.figure__no { position: absolute; top: 1.1rem; left: 1.35rem; color: var(--ink-3); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .1em; }
.figure__sq { position: absolute; top: 1.1rem; right: 1.35rem; width: 1.25rem; height: 1.25rem; border: 1px solid var(--rule-2); }
.figure__ph { font-size: .875rem; color: var(--ink-3); text-align: center; max-width: 24rem; background: var(--elev); padding-inline: .5rem; }
.figcap { color: var(--ink-3); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em; margin-bottom: 2rem; }
.figcap b { color: var(--ink-2); font-weight: 500; }

.takeaways {
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 1.9rem) clamp(1.5rem, 3vw, 2rem);
  margin: 2.25rem 0;
}
.takeaways__head { color: var(--ink-3); margin-bottom: .5rem; }
.takeaways__item {
  display: flex; gap: .85rem; align-items: baseline;
  padding: .9rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.takeaways__item:first-of-type { border-top: 0; padding-top: .3rem; }
.takeaways__item svg {
  width: 1.05rem; height: 1.05rem; flex: none;
  margin-top: .2em;
  fill: none; stroke: var(--accent-text); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

.nextstep {
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: clamp(1.75rem, 4vw, 2rem);
  margin: 2.5rem 0;
}
.nextstep__eyebrow { color: var(--accent-text); margin-bottom: .85rem; }
.nextstep h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.nextstep p { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.5rem; text-wrap: pretty; }
.nextstep__btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.share-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 2.75rem;
}
.share-row__label { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .9375rem; }
.share-row__btns { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Author bio ---------------------------------------------------- */

.author { max-width: 46rem; margin: .5rem auto 0; padding: clamp(2.5rem, 5vw, 3rem) 0; border-top: 1px solid var(--rule); }
.author__grid { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.author h3 { font-size: 1.375rem; font-weight: 700; margin: .5rem 0 .75rem; }
.author p { color: var(--ink-2); font-size: .9375rem; line-height: 1.65; margin-bottom: 1rem; text-wrap: pretty; }
.author__links { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; }
@media (max-width: 480px) { .author__grid { grid-template-columns: 1fr; } }

/* ---------- Go Deeper ------------------------------------------------------ */

.gd-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 760px) { .gd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gd-card {
  display: flex; flex-direction: column;
  min-height: 12.5rem;
  padding: clamp(1.5rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--elev);
  transition: border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.gd-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.gd-card__eyebrow { color: var(--accent-text); margin-bottom: 1rem; }
.gd-card h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.gd-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); }

/* ---------- Continue Reading — post cards ---------------------------------
   Duplicated from blog.css so this page's stylesheet stays independent. */

.post-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--elev);
  transition: border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out);
}
.post-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-4px); }

.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  background:
    radial-gradient(90% 120% at 100% 0%, var(--accent-soft) 0%, transparent 62%),
    var(--bg-2);
}
.post-card__media .chip { position: absolute; left: 1rem; bottom: 1rem; }
.post-card__no {
  position: absolute; right: 1rem; bottom: 1rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: .625rem; letter-spacing: .1em; text-transform: uppercase;
}

.post-card__body { padding: clamp(1.25rem, 3vw, 1.5rem); display: flex; flex-direction: column; flex: 1; }
.post-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.post-card__title a:hover { color: var(--accent-text); }

.post-card__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
}
.post-card__date { color: var(--ink-3); font-size: .75rem; }
.post-card__read {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink);
  font-weight: 600;
  font-size: .8125rem;
  transition: color var(--t-fast) linear, gap var(--t-med) var(--ease-out);
}
.post-card:hover .post-card__read { color: var(--accent-text); gap: .6rem; }

/* ---------- Final CTA ------------------------------------------------------
   .finale is shared/frozen; the pre-title note and CTA row are page-scoped.
   Duplicated from blog.css / resources.css. */

.finale__row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.finale__or { color: var(--ink-3); }
@media (max-width: 420px) { .finale__row .btn { width: 100%; } }
