/* Related reading shares the article's measure and leaves the final CTA last. */
.article-next { margin: 48px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.marketing-article .article-next h2 { margin: 0 0 18px; font-size: clamp(25px, 3vw, 30px); line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.article-next-list { display: grid; gap: 0; }
.article-next-link { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 20px; padding: 17px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.article-next-link strong { min-width: 0; font-size: 18px; font-weight: 650; line-height: 1.4; text-wrap: pretty; }
.article-next-link span { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.article-next-link svg { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.article-next-link:hover strong { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 4px; }
.article-next-link:focus-visible, .article-next-all:focus-visible, .knowledge-jump a:focus-visible, .knowledge-card-link:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 5px; border-radius: 3px; }
.article-next-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; color: var(--orange-dark); font-size: 15px; font-weight: 600; text-underline-offset: 4px; }
.marketing-article .article-crosslink { margin-top: 24px; }
.knowledge-page .inner-hero { max-width: 840px; }
.knowledge-page .inner-hero h1 { text-wrap: balance; }
.knowledge-jump { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.knowledge-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-dark); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.knowledge-group { margin-top: 48px; scroll-margin-top: 100px; }
.knowledge-group > h2 { margin: 0; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.18; letter-spacing: -.03em; text-wrap: balance; }
.knowledge-group > p { max-width: 65ch; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.knowledge-group .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.knowledge-page .topic-card { min-height: 0; padding: 26px; box-shadow: none; }
.knowledge-card-link { display: flex; flex: 1; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.knowledge-page .topic-card h3 { margin: 0; font-size: clamp(23px, 2.5vw, 29px); line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; }
.knowledge-page .topic-card .knowledge-reading-time { display: flex; align-items: center; gap: 7px; margin: 13px 0 0; font-size: 13px; line-height: 1.4; }
.knowledge-reading-time svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.knowledge-page .topic-card .knowledge-description { margin: 14px 0 20px; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.knowledge-card-label { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; color: var(--orange-dark); font-size: 14px; font-weight: 650; }
.knowledge-card-label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.knowledge-card-link:hover h3 { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 901px) {
  .knowledge-group:not(#work) .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .article-next { margin: 36px 0 26px; padding-top: 24px; }
  .article-next-link { gap: 5px 12px; padding: 16px 0; }
  .article-next-link strong { font-size: 17px; }
  .article-next-link span { font-size: 14px; }
  .knowledge-jump { gap: 0 20px; padding-top: 4px; }
  .knowledge-jump a { font-size: 14px; }
  .knowledge-group { margin-top: 36px; scroll-margin-top: 84px; }
  .knowledge-group .topic-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .knowledge-page .topic-card { padding: 22px 20px; }
}

/* Estimated reading time follows the title of every related article. */
.article-next-link > .article-reading-time { display: inline-flex; grid-column: 1; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.article-next-link .article-reading-time > span { color: inherit; font-size: inherit; line-height: inherit; }
.article-next-link .article-reading-time > svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.article-next-link > svg { grid-row: 1 / 4; }

/* Share content tracks per visible row, including after filtering the library. */
@supports (grid-template-rows: subgrid) {
 .knowledge-page .topic-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
 .knowledge-card-link { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
 .knowledge-card-label { margin-top: 0; align-self: end; }
}
