/* ==========================================================================
   Evolution Digital Marketing — blog layer
   Loaded after /css/site.css on /blog/ and every post. Adds only what the
   global sheet lacks: the post list and long-form reading type.
   ========================================================================== */

/* ---- Hub ---------------------------------------------------------------- */
.b-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 4vw, 64px); }
.b-hero .crumbs { padding-top: 22px; }

.post-feature {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--paper);
}
.post-feature .pic { background: var(--fill); aspect-ratio: 16 / 10; }
.post-feature .pic img { width: 100%; height: 100%; object-fit: cover; }
.post-feature .txt { padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.post-feature:hover .t-3 { color: var(--blue); }
.post-feature.no-pic { grid-template-columns: 1fr; }
.post-feature .badge, .post-feature .btn { align-self: flex-start; }
.post-feature.no-pic .txt { max-width: 860px; }
@media (max-width: 900px) { .post-feature { grid-template-columns: 1fr; } }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .post-list { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.post-card .pic { background: var(--fill); aspect-ratio: 16 / 9; }
.post-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.post-card .txt { padding: 0 26px 28px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.post-card:hover .t-6 { color: var(--blue); }
.post-card .t-6, .post-feature .t-3 { transition: color .3s var(--ease-out); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ---- Post --------------------------------------------------------------- */
.a-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 3vw, 44px); }
.a-hero .crumbs { padding-top: 22px; flex-wrap: wrap; }
.a-hero .t-1 { max-width: 20ch; }
.a-hero .lead { max-width: 62ch; }

.byline { display: flex; align-items: center; gap: 14px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.byline .who { font-size: var(--t-small); font-weight: 600; line-height: 1.3; }

.a-cover { border-radius: var(--r-xl); overflow: hidden; background: var(--fill); }
.a-cover img { width: 100%; height: auto; }
.a-cover figcaption { padding: 12px 4px 0; }
/* Phones: run the cover edge to edge so the graphic's text stays legible. */
@media (max-width: 700px) {
  .a-cover { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
}

.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(40px, 5vw, 88px); align-items: start; }
.a-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 28px; }
.a-aside .toc { display: flex; flex-direction: column; gap: 10px; font-size: var(--t-tiny); }
.a-aside .toc a { color: var(--mute); line-height: 1.4; }
.a-aside .toc a:hover { color: var(--blue); }
@media (max-width: 1040px) { .a-layout { grid-template-columns: 1fr; } .a-aside { position: static; } .a-aside .toc-wrap { display: none; } }

/* Long-form reading type. Scoped to .prose so nothing leaks into the chrome. */
.prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.7; color: var(--ink-3); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--t-4); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); margin-top: 2em; scroll-margin-top: 96px; text-wrap: balance; }
.prose h3 { font-size: var(--t-6); line-height: 1.25; letter-spacing: var(--tk-title); font-weight: 600; color: var(--ink); margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--blue-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--mute-2); }
.prose blockquote { border-left: 2px solid var(--blue); padding: 4px 0 4px 22px; font-family: var(--serif); font-style: italic; font-size: var(--t-5); line-height: 1.35; color: var(--ink); }
.prose figure img { border-radius: var(--r-md); }
.prose figcaption { font-family: var(--mono); font-size: var(--t-meta); color: var(--mute-2); margin-top: 10px; }
.prose hr { margin-block: 2.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.prose th { text-align: left; font-family: var(--mono); font-size: var(--t-meta); letter-spacing: var(--tk-meta); text-transform: uppercase; color: var(--mute-2); font-weight: 400; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.prose td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--fill); padding: 2px 6px; border-radius: 6px; }

/* Answer box: the one-paragraph answer AI engines lift. First thing under the H1's lead. */
.prose .answer-box { background: var(--blue-tint); border-radius: var(--r-md); padding: 22px 24px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.prose .answer-box .meta { display: block; margin-bottom: 8px; color: var(--blue); }

/* Key takeaways */
.prose .takeaways { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px 22px 44px; font-size: 1.0625rem; }

.author-card { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); padding-top: 32px; max-width: 70ch; }
.author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
