/* Blog article — built from the Figma template "Blog article — Template (1440)" (node 916:2).
   Only loaded on post pages. Everything is scoped to .art so the rest of the site is untouched. */

.art { --ink: var(--t-head); --head: var(--t-head); --body: var(--t-body); --muted: var(--t-eyebrow); --line: var(--t-card-line); --soft: var(--t-card-hover); --card-shadow: 0 16px 31px rgba(0, 0, 0, .06);
  padding: 100px 0 140px; color: var(--body); }
.art-wrap { width: 1110px; max-width: calc(100% - 32px); margin: 0 auto; }
.art .art-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; }

/* small square icon button (back, share, pager) */
.art-ib { display: grid; place-items: center; flex: none; width: 40px; height: 40px; box-sizing: border-box; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--t-card); color: var(--ink); box-shadow: var(--card-shadow); cursor: pointer; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.art-ib svg { width: 20px; height: 20px; }
.art-share .art-ib svg { width: 18px; height: 18px; }
a.art-ib:hover, button.art-ib:hover { transform: translateY(-1px); }
.art-ib.is-confirmed { background: var(--ink); color: var(--bg); }
.art-sep { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--t-eyebrow); }

/* pill button (Summarize with AI, sidebar CTA) */
.art-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 45px; padding: 0 20px 1px 16px; border-radius: 96px; background: var(--t-btn-bg); color: var(--ink); font-size: 15px; letter-spacing: .15px; white-space: nowrap; text-decoration: none !important; box-shadow: 0 21px 13px rgba(0, 0, 0, .04), 0 9px 9px rgba(0, 0, 0, .04), 0 2px 5px rgba(0, 0, 0, .05); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.art-btn:hover { transform: translateY(-1px); }
.art-btn svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.art-btn--dark { padding: 0 24px 1px; background: #3a2e28; color: #f8f8f7; box-shadow: none; }

/* ---------- header ---------- */
.art-crumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; line-height: 22px; letter-spacing: .15px; }
.art-crumb a:not(.art-ib) { color: inherit; text-decoration: none; }
.art-crumb a:not(.art-ib):hover { color: var(--ink); }
.art-crumb b { color: var(--ink); font-weight: 400; }
.art-head { text-align: center; }
.art-head .art-crumb { justify-content: flex-start; text-align: left; }
.art-date { margin: 64px 0 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.art-title { max-width: 860px; margin: 60px auto 0; color: var(--head); font-family: var(--font-serif, "Portrait Text Web", serif); font-weight: 400; font-size: 56px; line-height: 60px; letter-spacing: -1.68px; text-wrap: balance; }
.art-dek { max-width: 680px; margin: 24px auto 0; color: var(--body); font-size: 18px; line-height: 29px; letter-spacing: .18px; text-wrap: pretty; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--muted); font-size: 15px; line-height: 22px; }
.art-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.art-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 14px 1px; box-sizing: border-box; border: 1px solid var(--t-card-line); border-radius: 96px; background: var(--t-card); color: var(--t-body); font-size: 14px; }
.art-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t-eyebrow); }
.art-cover { position: relative; margin: 84px 0 0; }
.art-cover img { display: block; width: 100%; height: 600px; object-fit: cover; border-radius: 16px; }
.art-cover__tag { position: absolute; top: -16px; left: 20px; display: inline-flex; align-items: center; height: 30px; padding: 0 14px 1px; border-radius: 96px; background: rgba(255, 255, 255, .85); color: var(--ink); font-size: 14px; }

/* ---------- body grid ---------- */
.art-grid { display: grid; grid-template-columns: 290px 764px; justify-content: space-between; align-items: start; margin-top: 96px; }
.art-side { display: flex; flex-direction: column; gap: 28px; }
.art-author__row { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.art-author__row img { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.art-author__row b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 22px; }
.art-author__row span { display: block; color: var(--muted); font-size: 14px; line-height: 20px; }
.art-card { box-sizing: border-box; border: 1px solid var(--line); border-radius: 16px; background: var(--t-card); box-shadow: var(--card-shadow); }
.art-toc { padding: 0; }
/* contents list stays in view under the site bar while the article scrolls (wide screens) */
@media (min-width: 901px) {
  .art-side { align-self: stretch; }
  .art-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .art-toc::-webkit-scrollbar { display: none; }
}
.art-toc .art-eyebrow { margin: 0; padding: 0 12px; }
.art-toc ol { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px 0 0; list-style: none; }
.art-toc a { display: flex; gap: 12px; padding: 7px 12px; border-radius: 8px; color: var(--body); font-size: 15px; line-height: 22px; text-decoration: none !important; transition: background-color .25s ease, color .25s ease; }
.art-toc a i { flex: none; width: 18px; color: var(--t-eyebrow); font-style: normal; font-variant-numeric: tabular-nums; }
.art-toc a:hover { color: var(--ink); }
.art-toc a.is-on { background: var(--soft); color: var(--ink); }
.art-toc a.is-on i { color: var(--ink); }
.art-cta { box-sizing: border-box; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--t-card); box-shadow: var(--card-shadow); }
.art-cta h2 { margin: 0; color: var(--ink); font-family: var(--font-serif, "Portrait Text Web", serif); font-weight: 400; font-size: 26px; line-height: 31px; letter-spacing: -.5px; text-wrap: balance; }
.art-cta p { margin: 0; padding: 10px 0 22px; color: var(--body); font-size: 15px; line-height: 24px; text-wrap: pretty; }
.art-cta .art-btn--dark { background: var(--soft); color: var(--ink); box-shadow: none; }
.art-rule { height: 1px; background: var(--line); }
.art-share { display: flex; gap: 8px; padding-top: 12px; }

/* ---------- article body (Keystatic content) ---------- */
.art-body { min-width: 0; color: var(--body); font-size: 17px; line-height: 29px; letter-spacing: .17px; }
.art-body .wd-text, .art-body .wd-strip, .art-body .wd-wide, .art-body .wd-strip--text { width: auto; max-width: none; margin: 0 !important; color: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
/* pictures, tables and the AI box sit 32px from the text around them */
.art-body > .wd-text + .wd-strip, .art-body > .wd-strip + .wd-text, .art-body > .wd-text + .wd-wide, .art-body > .wd-wide + .wd-text,
.art-body > .wd-strip + .wd-strip, .art-body > .wd-wide + .wd-strip, .art-body > .wd-strip + .wd-wide, .art-body > .wd-wide + .wd-wide { margin-top: 32px !important; }
.art-body > .wd-text + .wd-text { margin-top: 20px !important; }
/* section title (H2 in the editor): a hairline and 56px of air above every one except the first */
.art-body .wd-text h3 { margin: 56px 0 0; padding-top: 56px; border-top: 1px solid var(--line); color: var(--head); font-family: var(--font-serif, "Portrait Text Web", serif); font-weight: 400; font-size: 34px; line-height: 40px; letter-spacing: -.68px; scroll-margin-top: 110px; }
.art-body > .wd-text:first-child > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.art-body .wd-text > h3:first-child { margin-top: 24px; }
/* sub-heading (H3 in the editor) */
.art-body .wd-text h4 { margin: 36px 0 0; color: var(--ink); font-family: inherit; font-weight: 500; font-size: 19px; line-height: 27px; letter-spacing: 0; scroll-margin-top: 110px; }
.art-body .wd-text h3 + p, .art-body .wd-text h3 + ul, .art-body .wd-text h3 + ol { margin-top: 20px; }
.art-body .wd-text h4 + p, .art-body .wd-text h4 + ul, .art-body .wd-text h4 + ol { margin-top: 8px; }
.art-body .wd-text p { margin: 20px 0 0; }
.art-body .wd-text > :first-child { margin-top: 0; }
.art-body .wd-text strong, .art-body .wd-text b { color: var(--ink); font-weight: 500; }
.art-body .wd-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--t-head) 35%, transparent); }
.art-body .wd-text a:hover { text-decoration-color: var(--ink); }
/* lists: dots like the template */
.art-body .wd-text ul, .art-body .wd-text ol { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.art-body .wd-text li { position: relative; margin: 0; padding-left: 22px; }
.art-body .wd-text li p { margin: 0; }
.art-body .wd-text ul > li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.art-body .wd-text ol { counter-reset: art-ol; }
.art-body .wd-text ol > li { counter-increment: art-ol; padding-left: 28px; }
.art-body .wd-text ol > li::before { content: counter(art-ol) "."; position: absolute; left: 0; top: 0; color: var(--ink); font-weight: 500; }
.art-body .wd-text li ul, .art-body .wd-text li ol { margin-top: 12px; }
/* callout */
.art-body .post-callout { margin: 20px 0 0; padding: 28px 32px; border: 0; border-radius: 16px; background: var(--soft); }
.art-body .post-callout b { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; }
.art-body .post-callout p { margin: 0; color: var(--t-body); }
/* pull quote + quotes: the template's pull note */
.art-body .post-pull, .art-body .post-quote { margin: 36px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--ink); }
.art-body .post-pull blockquote, .art-body .post-quote { color: var(--ink); font-family: var(--font-serif, "Portrait Text Web", serif); font-size: 24px; line-height: 32px; letter-spacing: -.3px; }
.art-body .post-pull blockquote { margin: 0; }
.art-body .post-quote p { margin: 0; }
.art-body .post-pull figcaption { margin-top: 12px; color: var(--muted); font-family: inherit; font-size: 15px; line-height: 22px; letter-spacing: .15px; }
.art-body .post-rule { margin: 40px 0 0; border: 0; border-top: 1px solid var(--line); }
.art-body .wd-text code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-size: .92em; }
.art-body .wd-text pre { margin: 20px 0 0; }
/* pictures: white frame, 16px corners, centred caption */
.art-body .wd-strip { display: flex; flex-direction: column; gap: 24px; }
.art-body .wd-strip figure, .art-body .post-figure { margin: 0; }
.art-body .wd-strip > figure > img, .art-body .post-gallery figure img { padding: 8px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 24px; background: var(--t-card); }
.art-body .wd-strip > figure > img { display: block; width: 100%; height: auto; }
.art-body .post-gallery figure img { border-radius: 18px; }
.art-body .post-figure__frame { padding: 0; border: 0; border-radius: 0; background: none; }   /* one frame only: the figure card already draws it */
.art-body .post-figure__frame img { border-radius: 16px; }
.art-body .wd-strip figcaption, .art-body .post-figure figcaption, .art-body .post-gallery figcaption, .art-body .post-video figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 21px; letter-spacing: 0; text-align: center; }
/* tables: white card with a soft header row */
.art-body .post-table__frame { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--t-card); box-shadow: var(--card-shadow); }
.art-body .post-table__scroll { border: 0; border-radius: 0; background: transparent; box-shadow: none; }   /* the frame already draws the outline: a second border inside it showed as a double line */
.art-body .post-table table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 23px; }
.art-body .post-table th, .art-body .post-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.art-body .post-table thead th { background: var(--soft); color: var(--muted); font-weight: 400; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.art-body .post-table tbody th { color: var(--ink); font-weight: 500; background: var(--t-card); }
.art-body .post-table td { color: var(--body); }
.art-body .post-table tbody tr:last-child > * { border-bottom: 0; }
.art-body .post-table p { margin: 0; }

/* Summarize this article with AI */
.art-body > .art-ai.art-ai { margin-top: 48px !important; padding: 24px 28px 28px; border: 1px solid var(--line); border-radius: 16px; }
.art-ai .art-eyebrow { margin-bottom: 16px; }
.art-ai > div { display: flex; flex-wrap: wrap; gap: 8px; }

/* previous / next */
.art-pager { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 96px; }
.art-pager a { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 50%; color: var(--muted); font-size: 15px; line-height: 22px; letter-spacing: .15px; text-decoration: none; }
.art-pager__t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.art-pager em { flex: none; font-style: normal; }
.art-pager b { overflow: hidden; color: var(--ink); font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.art-pager a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.art-pager__next { margin-left: auto; text-align: right; }

/* ---------- smaller screens ---------- */
@media (max-width: 1140px) {
  .art-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 900px) {
  .art { padding: 96px 0 96px; }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 64px; }
  .art-grid { gap: 32px; }
  /* author and contents above the article, the call-to-action and share links after it */
  .art-side { display: contents; }
  .art-author { order: 0; }
  .art-toc { order: 1; }
  .art-body { order: 2; margin-top: 16px; }
  .art-cta { order: 3; margin-top: 24px; }
  .art-side .art-rule { display: none; }
  .art-share-box { order: 4; }
  .art-cover img { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .art-date { margin-top: 48px; }
  .art-meta { gap: 12px; }
  .art-dot { display: none; }
  .art-meta > span:last-child { flex-basis: 100%; }
  .art-title { margin-top: 28px; font-size: 38px; line-height: 42px; letter-spacing: -1px; }
  .art-dek { font-size: 16px; line-height: 26px; }
  .art-body { font-size: 16px; line-height: 27px; }
  .art-body .wd-text h3 { margin-top: 40px; padding-top: 40px; font-size: 28px; line-height: 33px; }
  .art-body .post-callout { padding: 22px 22px; }
  .art-body > .art-ai { padding: 20px; }
  .art-pager { flex-direction: column; align-items: stretch; margin-top: 64px; }
  .art-pager a { max-width: none; }
  .art-pager em, .art-pager__t .art-sep { display: none; }
}

/* Blog posts have their own contents panel, so the case-study tick rail on the left edge is hidden here */
.wd-rail { display: none !important; }

/* ---------- appear effects for lines and cards ---------- */
/* a line draws in from the left instead of sliding up */
.motion .art-rule[data-reveal][data-auto], .motion .post-rule[data-reveal][data-auto] { translate: none; opacity: 1; transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--ease-out-expo); transition-delay: calc(var(--i, 0) * .07s); }
.motion .art-rule[data-reveal][data-auto].is-in, .motion .post-rule[data-reveal][data-auto].is-in { transform: scaleX(1); }
/* cards and boxes rise together with their background, border and shadow; the closer ones need less travel so they do not look detached */
.motion .art-cta[data-reveal], .motion .art-author[data-reveal], .motion .art-share-box[data-reveal], .motion .art-toc[data-reveal], .motion .art-ai[data-reveal], .motion .art-pager[data-reveal], .motion .post-table[data-reveal], .motion .post-callout[data-reveal], .motion .post-pull[data-reveal], .motion .post-video[data-reveal], .motion .post-gallery[data-reveal] { translate: 0 3rem; }
.motion .art-cta[data-reveal].is-in, .motion .art-author[data-reveal].is-in, .motion .art-share-box[data-reveal].is-in, .motion .art-toc[data-reveal].is-in, .motion .art-ai[data-reveal].is-in, .motion .art-pager[data-reveal].is-in, .motion .post-table[data-reveal].is-in, .motion .post-callout[data-reveal].is-in, .motion .post-pull[data-reveal].is-in, .motion .post-video[data-reveal].is-in, .motion .post-gallery[data-reveal].is-in { translate: none; }
