/* Brand 2.0 blog article.
   brand.css already carries the editorial vocabulary the customer stories use:
   .splash, .hero-grid, .kicker, .dek, .attrib, .statstrip, .story-body, .lede,
   .turn, .pullquote, .final, .faq, .related, .close. A blog post needs four
   things those pages never needed: in-article headings, inline source links,
   lists, and a takeaways block. Those are the only rules here.

   Scoped to this stylesheet rather than added to brand.css so a blog change
   cannot touch the 25 pages that load brand.css. Loaded after brand.css. */

@layer brand.components {

  /* 1. In-article headings -------------------------------------------------
     A section h2 in brand.css is clamp(28px, 3.5vw, 42px), sized to open a
     band on a landing page. Inside a measure-width article that reads as a
     shout, so these step down and lean on space above rather than size. */
  .story-body h2 {
    margin: 52px 0 18px;
    font-size: clamp(23px, 2.5vw, 29px);
    letter-spacing: -.028em;
    line-height: 1.18;
    font-weight: 700;
    color: var(--ink);
    /* No ch cap. A heading narrower than the copy under it reads as a second
       column; balance alone gives an even rag across the full measure. */
    text-wrap: balance;
  }

  .story-body h3 {
    margin: 36px 0 12px;
    font-size: clamp(18px, 1.8vw, 20px);
    letter-spacing: -.015em;
    line-height: 1.3;
    font-weight: 650;
    color: var(--ink);
  }

  /* 2. Source links --------------------------------------------------------
     Every third-party number in the body carries its source. The link is the
     evidence, so it is marked with --signal and a hairline rather than left to
     look like body copy. */
  .story-body p > a,
  .story-body li > a {
    color: var(--signal);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--signal) 34%, transparent);
    transition: border-color .18s var(--ease);
  }
  .story-body p > a:hover,
  .story-body li > a:hover { border-bottom-color: var(--signal); }

  /* 3. Lists ---------------------------------------------------------------
     Matched to .story-body p so a list does not change the reading size. */
  .story-body ul,
  .story-body ol {
    margin: 0 0 24px;
    padding-left: 22px;
    max-width: var(--measure);
  }
  .story-body li {
    margin: 0 0 10px;
    font-size: 18.5px;
    line-height: 1.68;
    font-weight: 450;
    color: var(--ink);
    text-wrap: pretty;
  }
  .story-body li::marker { color: var(--signal); }

  /* 4. Takeaways -----------------------------------------------------------
     The answer block, read first and quoted most. Brand 2.0 has no rounded
     cards and no shadows, so this is a paper field behind a signal rule. */
  .takeaways {
    margin: 0 0 40px;
    padding: 24px 26px;
    background: var(--paper);
    border-left: 3px solid var(--signal);
    border-radius: var(--radius);
  }
  .takeaways .kicker { margin: 0 0 12px; }
  .takeaways ul { margin: 0; padding-left: 20px; }
  .takeaways li { font-size: 17px; line-height: 1.6; }
  .takeaways li:last-child { margin-bottom: 0; }

  /* 5. Source line ---------------------------------------------------------
     Sits under a statstrip or a figure and credits the research. */
  .srcnote {
    margin: -28px 0 44px;
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 500;
    color: var(--ink2);
  }
  .srcnote a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }
  .srcnote a:hover { color: var(--signal); }

  /* The hero statstrip sits directly above the source line, so the stat's own
     bottom margin is removed rather than fought with a negative value. */
  .splash .statstrip + .srcnote { margin-top: 18px; margin-bottom: 0; }

  /* 6. Byline --------------------------------------------------------------
     .attrib in brand.css is a text credit. A post has a person behind it, so
     the headshot comes too. Same 2px corner as everything else. */
  .byline { display: flex; align-items: center; gap: 11px; margin: 0 0 40px; }
  .byline img {
    width: 40px; height: 40px; flex: none;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--paper);
  }
  .byline .who { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.35; }
  .byline .who span { display: block; font-weight: 500; color: var(--ink2); }

  @media (max-width: 760px) {
    .story-body h2 { margin-top: 42px; }
  }

  @media print {
    .story-body h2 { margin-top: 24pt; font-size: 15pt; }
    .takeaways { border-left-color: #000; background: none; }
  }
}
