/* /case-study/ad-agency-lead-generation — case study post */

/* Hero */
.cs-hero { background: var(--white); overflow: hidden; padding-top: 68px; }
.cs-hero__title, .cs-hero__lead { text-wrap: wrap; }
.cs-hero__content { padding: 60px; }
.cs-crumbs { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 25px; font-weight: 500; letter-spacing: -0.16px; color: var(--grey); }
.cs-crumbs a { transition: color 0.2s var(--ease); }
.cs-crumbs a:hover { color: var(--ink); }
.cs-crumbs img { width: 5px; height: 9px; flex: none; }
.cs-hero__text { max-width: 950px; margin-top: 24px; display: flex; flex-direction: column; gap: 15px; }
.cs-hero__title { font-size: 48px; line-height: 53px; letter-spacing: -1.92px; font-weight: 500; color: var(--ink); }
.cs-hero__lead { font-size: 18px; line-height: 24px; font-weight: 400; color: var(--ink-60); }
.cs-meta { margin-top: 25px; display: flex; align-items: center; gap: 40px; }
.cs-meta__group { display: flex; flex-direction: column; gap: 12px; }
.cs-meta__label { font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink); }
.cs-meta__row { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 17px; font-weight: 500; color: var(--ink); }
.cs-meta__row img { flex: none; }
.cs-avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; object-position: 0 0; }
.cs-meta__dot { width: 3px; height: 3px; }
.cs-hero__banner img { width: 100%; height: auto; aspect-ratio: 1400 / 733; object-fit: cover; }

/* Body + sidebar */
.cs-layout { display: grid; grid-template-columns: 1050px 1fr; border-inline: 1px solid var(--line); border-top: 1px solid var(--line); }
.cs-layout > [data-rebuild-section] { grid-column: 1; min-width: 0; }
.cs-aside { grid-column: 2; grid-row: 1 / span 3; background: var(--surface); border-left: 1px solid var(--line); padding: 60px 40px 40px; }
.cs-aside__sticky { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 40px; max-width: 270px; }

.cs-toc__title { font-size: 14px; line-height: 19px; font-weight: 500; letter-spacing: -0.28px; color: var(--ink); margin-bottom: 20px; }
.cs-toc__list { display: flex; flex-direction: column; gap: 4px; }
.cs-toc__link {
  display: block; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: -0.28px; color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cs-toc__link:hover { color: var(--ink); }
.cs-toc__link.is-active { color: var(--ink); border-left-color: var(--ink); }
.cs-toc__clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.cs-cta { background: var(--white); border: 1px solid var(--line); padding: 24px 16px 20px; display: flex; flex-direction: column; }
.cs-cta__title { font-size: 22px; line-height: 22px; letter-spacing: -0.88px; font-weight: 500; color: var(--ink); }
.cs-cta__title span { color: var(--ink-60); }
.cs-cta__text { margin-top: 18px; font-size: 12px; line-height: 18px; font-weight: 400; color: var(--muted); }
.cs-cta .btn { margin-top: 22px; width: 100%; }
.cs-cta__note { margin-top: 10px; font-size: 11px; line-height: 14px; font-weight: 400; color: var(--muted); text-align: center; }

/* Rich text */
.cs-post { padding: 64px; }
.cs-rich { font-size: 16px; line-height: 21.6px; letter-spacing: -0.16px; font-weight: 400; color: var(--ink); }
.cs-rich p { margin: 0 0 20px; }
.cs-rich strong { font-weight: 600; }
.cs-rich h2 { font-size: 40px; line-height: 48px; letter-spacing: -1.6px; font-weight: 500; color: var(--ink); margin: 44px 0 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.cs-rich h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.48px; font-weight: 400; color: var(--ink); margin: 44px 0 24px; }
.cs-rich > :first-child { margin-top: 0; }
.cs-rich > :last-child { margin-bottom: 0; }

/* Author */
.cs-author { padding: 40px 60px; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.cs-author__pfp { width: 87px; height: 87px; border-radius: 50%; object-fit: cover; object-position: 0 0; flex: none; }
.cs-author__label { font-size: 20px; line-height: 26px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink); }
.cs-author__name { margin-top: 12px; font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink); }

/* Share row */
.cs-share { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 60px; border-top: 1px solid var(--line); }
.cs-share__label { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 17px; font-weight: 500; color: var(--ink); }
.cs-share__label img { width: 11px; height: 12px; }
.cs-share__icons { display: flex; gap: 6px; align-items: center; }
.cs-share__icons a { display: inline-flex; padding: 6px; transition: opacity 0.2s var(--ease); }
.cs-share__icons a:hover { opacity: 0.6; }
.cs-share__icons img { width: 14px; height: 14px; object-fit: contain; }

/* Related */
.cs-related { background: var(--white); border-top: 1px solid var(--line); }
.cs-related__title { font-size: 40px; line-height: 48px; letter-spacing: -2px; font-weight: 500; color: var(--ink); max-width: 500px; }
.cs-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cs-card { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; border-right: 1px solid var(--line); background: var(--white); transition: background-color 0.2s var(--ease); }
.cs-card:hover { background: var(--surface); }
.cs-card__date, .cs-card__author { display: block; font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink-60); }
.cs-card__img { margin-top: 24px; width: 100%; height: auto; aspect-ratio: 387 / 238; object-fit: cover; }
.cs-card__img--short { aspect-ratio: 387 / 202; }
.cs-card__title { display: block; margin-top: 24px; font-size: 20px; line-height: 26px; letter-spacing: -0.4px; font-weight: 500; color: var(--ink); }
.cs-card__desc { display: block; margin-top: 16px; font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); }
.cs-card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; }
.cs-card__time { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink); }
.cs-card__time img { width: 12px; height: 12px; }

/* CTA banner */
.cs-banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; border-inline: 1px solid var(--line); border-top: 1px solid var(--line); }
.cs-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.cs-banner__text { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cs-banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.cs-banner__desc { margin-top: 12px; font-size: 16px; line-height: 21.6px; font-weight: 400; color: var(--ink); }

@media (max-width: 1199px) {
  .cs-hero__content { padding: 60px 40px; }
  .cs-hero__lead { font-size: 16px; line-height: 22px; }
  .cs-layout { grid-template-columns: 1fr; }
  .cs-aside { grid-column: 1; grid-row: auto; order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 40px; }
  .cs-aside__sticky { position: static; max-width: none; }
  .cs-toc__title, .cs-cta { display: none; }
  .cs-toc__link { padding: 10px 0 10px 14px; font-size: 16px; line-height: 21px; }
  .cs-toc__clamp { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .cs-post { padding: 64px 40px; }
  .cs-rich h2 { font-size: 32px; line-height: 38px; letter-spacing: -1.28px; }
  .cs-rich h3 { font-size: 20px; line-height: 27px; letter-spacing: -0.4px; }
  .cs-author { padding: 40px; }
  .cs-author__label { font-size: 18px; line-height: 23px; }
  .cs-share { padding: 20px 40px; }
  .cs-related__title { font-size: 32px; line-height: 38px; letter-spacing: -1.5px; }
  .cs-related__grid { grid-template-columns: repeat(2, 1fr); }
  .cs-card__title { font-size: 18px; line-height: 23px; }
  .cs-banner { padding: 100px 40px; }
  .cs-banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.44px; }
}
@media (max-width: 809px) {
  .cs-hero__content { padding: 40px 20px; }
  .cs-crumbs { font-size: 16px; }
  .cs-crumbs img, .cs-crumbs__current { display: none; }
  .cs-hero__text { margin-top: 40px; gap: 24px; }
  .cs-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
  .cs-hero__lead { font-size: 14px; line-height: 19px; }
  .cs-meta { margin-top: 32px; justify-content: space-between; gap: 16px; }
  .cs-meta__label { font-size: 12px; line-height: 14px; }
  .cs-meta__row { font-size: 14px; line-height: 17px; }
  .cs-avatar { width: 20px; height: 20px; }
  .cs-aside { padding: 0 20px 40px; }
  .cs-toc__link { padding: 12px 0 12px 14px; }
  .cs-post { padding: 40px 20px; }
  .cs-rich h2 { font-size: 28px; line-height: 34px; letter-spacing: -1.12px; }
  .cs-author { padding: 32px 20px; gap: 16px; }
  .cs-author__pfp { width: 64px; height: 64px; }
  .cs-share { padding: 20px; }
  .cs-related .title-wrapper { padding: 40px 20px; }
  .cs-related__title { max-width: none; text-wrap: wrap; font-size: 28px; line-height: 34px; letter-spacing: -1.68px; }
  .cs-related__grid { grid-template-columns: 1fr; }
  .cs-related .title-wrapper .tag { display: none; }
  .cs-card { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cs-card h3, .cs-card__title { text-wrap: wrap; }
  .cs-card__img, .cs-card__img--short { margin-top: 14px; aspect-ratio: 310 / 190; }
  .cs-card__title { margin-top: 20px; }
  .cs-card__desc { margin-top: 12px; }
  .cs-card__foot { padding-top: 40px; }
  .cs-banner { padding: 40px 28px; }
  .cs-banner__text { gap: 20px; }
  .cs-banner__desc { margin-top: 10px; }
}
