/* =========================================================
   3KITS — Insight article
   Reading progress bar, article header with cover, sticky
   contents + share beside the text, CTA and related cards.
   Loads after style3.css and insights.css.
   ========================================================= */

/* ---------- Reading progress ---------- */
.art-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 90; height: 3px; pointer-events: none; }
.art-progress i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.art-head { padding: calc(84px + clamp(28px, 4vw, 64px)) 0 clamp(28px, 3vw, 48px); }
.art-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.art-crumbs a { color: var(--muted); transition: color .3s; }
.art-crumbs a:hover { color: var(--orange); }
.art-head .ins-row__cat { display: inline-block; }
/* the title is the shared page heading (.pg-hero__title: same size and style as every page, [words] in the gradient) */
/* full width (usually two lines); no lead under it */
.art-head__title { --hue: var(--orange); margin-top: clamp(18px, 1.8vw, 28px); }
.art-head__lead { max-width: 62ch; margin-top: clamp(18px, 1.8vw, 28px); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.6; color: var(--muted); }

.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: clamp(24px, 2.6vw, 40px) 0 clamp(28px, 3.6vw, 56px); }
.art-meta__avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; }
.art-meta__by { display: grid; line-height: 1.3; }
.art-meta__by strong { font-weight: 600; }
.art-meta__by span { font-size: 14px; color: var(--muted); }
.art-meta__sep { width: 1px; height: 32px; background: var(--line-2); }
.art-meta__item { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.art-meta__item + .art-meta__item::before { content: "\00b7"; margin-right: 18px; color: var(--dim); }

/* full-width cover, no frame; on load a page-coloured panel shrinks down to reveal it (js/insight-details.js) */
.art-cover { position: relative; margin: clamp(32px, 3.4vw, 56px) 0 0; overflow: hidden; border-radius: 6px; }
.art-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art-cover.is-anim::after { content: ""; position: absolute; inset: -1px; z-index: 1; background: var(--bg); transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.art-cover.is-anim.is-in::after { transform: scaleY(0); }

/* ---------- Body: sticky side column + article ---------- */
/* narrow side column (about a third), article on the right running to the edge */
.art-body { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.1fr); gap: clamp(28px, 5vw, 96px); padding-block: clamp(24px, 3vw, 48px) var(--sec); }
.art-side { grid-column: 1; }
.art-side__inner { position: sticky; top: 120px; }
.art-side__meta { display: grid; gap: 4px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 14px; text-transform: uppercase; color: var(--text); }
.art-side__date { color: var(--muted); }
.art-side__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.art-toc { list-style: none; margin: 0 0 36px; padding: 0; border-left: 1px solid var(--line); }
.art-toc a { position: relative; display: block; padding: 7px 0 7px 18px; font-size: 14.5px; line-height: 1.35; color: var(--muted); transition: color .3s; }
.art-toc a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--grad); transform: scaleY(0); transition: transform .4s var(--ease); }
.art-toc a:hover { color: var(--text); }
.art-toc a.is-on { color: var(--text); }
.art-toc a.is-on::before { transform: scaleY(1); }

.art-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.art-share__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--glass); font-weight: 600; font-size: 15px; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.art-share__btn svg { width: 20px; height: 20px; }
.art-share__btn:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.art-share__done { width: 100%; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); min-height: 1em; }

/* ---------- Article prose ---------- */
.art-content { grid-column: 2; max-width: none; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.75; color: rgba(238, 238, 246, .82); }
.art-content > * + * { margin-top: 1.2em; }
.art-content__intro { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.5; letter-spacing: 0; color: var(--text); }
.art-content h2 { scroll-margin-top: 110px; margin-top: 2.2em; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.2; letter-spacing: 0; color: var(--text); }
.art-content ul, .art-content ol { padding-left: 0; list-style: none; display: grid; gap: .6em; }
.art-content ul li, .art-content ol li { position: relative; padding-left: 30px; }
.art-content ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.art-content ol { counter-reset: art; }
.art-content ol li { counter-increment: art; }
.art-content ol li::before { content: counter(art, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--mono); font-size: 12px; color: var(--orange); }

.art-figure { margin: 2em 0; }
.art-figure img { width: 100%; border-radius: 6px; }
.art-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--dim); }

.art-content blockquote { position: relative; margin: 2em 0; padding: clamp(24px, 2.4vw, 36px) clamp(24px, 2.4vw, 40px); border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.art-content blockquote::before { content: "\201C"; position: absolute; right: 24px; top: -8px; font-family: var(--display); font-size: 120px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .5; }
.art-content blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.45; color: var(--text); }
.art-content blockquote cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }

.art-tip { padding: 22px 26px; border-radius: 18px; border: 1px solid rgba(242, 117, 26, .35); background: rgba(242, 117, 26, .06); }
.art-tip__label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.art-tip p { color: var(--text); }

.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--line); }
.art-tags > span { margin-right: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.art-tags a { padding: 6px 14px; border-radius: 100px; font-size: 14px; border: 1px solid var(--line-2); color: var(--muted); transition: color .3s, border-color .3s; }
.art-tags a:hover { color: var(--text); border-color: var(--orange); }

.art-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 2em; padding: clamp(22px, 2.4vw, 32px); }
.art-author__name { font-weight: 600; color: var(--text); }
.art-author p { font-size: 16px; }
.art-author p + p { margin-top: 4px; color: var(--muted); }

/* ---------- CTA ---------- */
.art-cta { padding: 0 0 var(--sec); }
.art-cta__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 4.4vw, 72px); border-radius: 32px; background: radial-gradient(120% 140% at 100% 0%, rgba(47, 128, 237, .28), rgba(223, 30, 90, .2) 45%, transparent 75%), rgba(10, 10, 18, .85); border: 1px solid var(--line); }
.art-cta__title { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 56px); line-height: 1.08; letter-spacing: 0; }

/* ---------- Related ---------- */
.art-related .title { margin-bottom: clamp(28px, 3.5vw, 52px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .art-body { grid-template-columns: minmax(0, 1fr); }
  .art-side, .art-content { grid-column: 1; }
  .art-side__inner { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .art-toc { display: none; }
  .art-side__meta { width: 100%; margin-bottom: 8px; padding-bottom: 20px; }
  .art-side__label { margin: 0; }
  .art-share__done { width: auto; }
  .art-content { max-width: none; }
}
@media (max-width: 720px) {
  .art-cover img { aspect-ratio: 16 / 10; }
}
