/* Blog (hub + articles). Loads before home.css, so overrides of home.css rules use a parent class. */
[hidden] { display: none !important; }

/* ---------- reading progress ---------- */
.bl-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.bl-progress > span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- hero ---------- */
.bl-hero .subhero-h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; max-width: 22ch; text-transform: none; letter-spacing: -0.03em; overflow-wrap: break-word; }
.bl-hero--hub .subhero-h1 { font-size: clamp(40px, 5.6vw, 84px); max-width: 16ch; }
.bl-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: rgba(255,255,255,0.86); font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: color .3s var(--ease-out); }
.bl-back svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease-out); }
.bl-back:hover { color: var(--lime); }
.bl-back:hover svg { transform: translateX(-4px); }
.bl-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 22px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.bl-hero-topic { color: var(--black); background: var(--lime); padding: 6px 12px; border-radius: var(--pill); font-weight: 700; }
.bl-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ---------- hub ---------- */
.bl-hub { background: var(--blush); color: var(--black); padding: var(--section) 0; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 52px); }
.bl-chip { min-height: 44px; padding: 10px 18px; border-radius: var(--pill); font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--black); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(4,4,4,0.16); cursor: pointer; transition: background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.bl-chip:hover { box-shadow: inset 0 0 0 1.5px var(--black); }
.bl-chip[aria-pressed="true"] { background: var(--violet); color: var(--white); box-shadow: none; }
.bl-chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.bl-feature { margin-bottom: clamp(24px, 3vw, 36px); }

/* ---------- cards ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.bl-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); background: var(--white); border: 1px solid rgba(4,4,4,0.08); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(4,4,4,0.4); }
.bl-card:focus-within { box-shadow: 0 0 0 2px var(--violet); }
.bl-card-cover { position: relative; aspect-ratio: 3 / 2; background: linear-gradient(150deg, #5648e4 0%, #2f2597 100%); color: rgba(255,255,255,0.5); overflow: hidden; }
.bl-card-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 10%, rgba(190,251,124,0.2), transparent 70%); pointer-events: none; }
.bl-card[data-topic="finance"] .bl-card-cover, .bl-card[data-topic="revenue"] .bl-card-cover { background: linear-gradient(150deg, #1a1a1a 0%, #040404 100%); color: rgba(190,251,124,0.6); }
.bl-card[data-topic="governance"] .bl-card-cover, .bl-card[data-topic="technology"] .bl-card-cover { background: linear-gradient(150deg, #2f2597 0%, #120d4a 100%); }
.bl-cover-art { position: absolute; inset: 10% 8%; width: 84%; height: 80%; transition: transform .8s var(--ease-out); }
.bl-cover-art circle[r="7"], .bl-cover-art circle[r="6"] { fill: currentColor; }
.bl-card:hover .bl-cover-art { transform: scale(1.04); }
.bl-card-n { position: absolute; top: 16px; left: 18px; z-index: 1; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .1em; color: var(--lime); }
.bl-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: clamp(20px, 2.2vw, 28px); }
.bl-card-topic { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); font-weight: 700; }
.bl-card-title { font-family: var(--font-head); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.16; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: break-word; }
.bl-card-title a { color: inherit; }
.bl-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bl-card-title a:focus-visible { outline: none; }
.bl-card-dek { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.bl-card-meta { margin-top: auto; padding-top: 6px; font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(4,4,4,0.56); }

.bl-card--feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bl-card--feature .bl-card-cover { aspect-ratio: auto; min-height: 340px; }
.bl-card--feature .bl-card-body { justify-content: center; padding: clamp(28px, 4vw, 56px); gap: 16px; }
.bl-card--feature .bl-card-title { font-size: clamp(28px, 3vw, 44px); line-height: 1.06; }
.bl-card--feature .bl-card-dek { font-size: var(--body-large); }

/* ---------- article layout ---------- */
.bl-article-section { background: var(--white); color: var(--black); padding: clamp(56px, 7vw, 96px) 0; }
.bl-layout { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px); justify-content: space-between; gap: clamp(32px, 5vw, 80px); align-items: start; }
.bl-side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 28px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.bl-toc-k, .bl-side-k, .bl-takeaways-k, .bl-callout-k, .bl-fig-k, .bl-endcta-k { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--violet); }
.bl-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1.5px solid var(--stroke-soft); }
.bl-toc li { margin: 0; }
.bl-toc a { display: block; padding: 8px 0 8px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ink-soft); transition: color .25s var(--ease-out), border-color .25s var(--ease-out); }
.bl-toc a:hover { color: var(--black); }
.bl-toc a[aria-current="true"] { color: var(--violet); border-left-color: var(--violet); font-weight: 700; }
.bl-side-cta { padding: 22px; border-radius: var(--radius); background: var(--blush); }
.bl-side-text { margin: 10px 0 18px; font-size: 15px; line-height: 1.5; }
/* The rail is ~256px: the label wraps and the arrow tile goes, so the pill stays inside the box. */
.bl-side-cta .pill-btn { max-width: 100%; white-space: normal; }
.bl-side-cta .pill-btn-main { min-width: 0; padding: 14px 22px; font-size: 15px; line-height: 1.35; }
.bl-side-cta .pill-btn-arrow { display: none; }

/* ---------- prose ---------- */
.bl-prose { min-width: 0; font-size: 18px; line-height: 1.72; color: #1a1a1a; }
.bl-prose > * + * { margin-top: 1.2em; }
.bl-prose h2 { margin-top: 2.2em; font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.025em; color: var(--black); scroll-margin-top: calc(var(--header-h) + 24px); }
.bl-prose h3 { margin-top: 1.8em; font-family: var(--font-head); font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; color: var(--black); }
.bl-prose h2 + *, .bl-prose h3 + * { margin-top: .7em; }
.bl-prose a { color: var(--violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bl-prose a:hover { text-decoration-thickness: 2px; }
.bl-prose strong { font-weight: 700; color: var(--black); }
.bl-prose ul, .bl-prose ol { padding-left: 1.3em; }
.bl-prose ul { list-style: disc; }
.bl-prose ol { list-style: decimal; }
.bl-prose li + li { margin-top: .5em; }
.bl-prose li::marker { color: var(--violet); }
.bl-cite { font-size: .62em; line-height: 0; vertical-align: super; margin-left: 1px; }
.bl-prose .bl-cite a { text-decoration: none; font-weight: 700; padding: 0 2px; }

.bl-takeaways { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--blush); }
.bl-prose .bl-takeaways ul { list-style: none; padding: 0; margin-top: 14px; }
.bl-takeaways li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.55; }
.bl-takeaways li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--violet); }

.bl-quote { margin-left: 0; margin-right: 0; padding: 0; }
.bl-quote::before { content: "\201C"; display: block; font-family: var(--font-head); font-size: 64px; line-height: .8; color: var(--violet); }
.bl-quote p { font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; color: var(--black); }
.bl-quote footer { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

.bl-callout { padding: 22px 24px; border-radius: var(--radius); background: rgba(86,72,228,0.06); border: 1px solid rgba(86,72,228,0.18); }
.bl-callout p + p { margin-top: 8px; font-size: 16px; line-height: 1.6; }

/* ---------- figures ---------- */
.bl-figure { margin: 2em 0; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--black); color: var(--white); }
.bl-fig-k { color: var(--lime); }
.bl-prose .bl-fig-title { margin-top: 10px; font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.2; color: var(--white); }
.bl-fig-cap { margin-top: 20px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.66); }
.bl-figure .bl-cite a, .bl-fig-cap a { color: var(--lime); }
.bl-prose .bl-bars { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 16px; }
.bl-prose .bl-bar { margin: 0; }
.bl-bar-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; line-height: 1.35; }
.bl-bar-label { min-width: 0; color: rgba(255,255,255,0.86); }
.bl-bar-val { flex: none; font-family: var(--font-head); font-weight: 700; color: var(--lime); }
.bl-bar-track { margin-top: 8px; height: 10px; border-radius: 99px; background: rgba(255,255,255,0.1); overflow: hidden; }
.bl-bar-fill { width: var(--w); height: 100%; border-radius: inherit; background: var(--lime); transform-origin: 0 50%; transition: transform 1.1s var(--ease-out); }
.bl-figure.is-pending .bl-bar-fill { transform: scaleX(0); }
.bl-prose .bl-steps { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 18px; counter-reset: none; }
.bl-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin: 0; }
.bl-step-n { font-family: var(--font-mono, ui-monospace, monospace); font-size: 13px; color: var(--black); background: var(--lime); border-radius: 10px; height: 34px; display: grid; place-items: center; }
.bl-prose .bl-steps h4 { font-family: var(--font-head); font-size: 17px; line-height: 1.3; color: var(--white); }
.bl-prose .bl-steps p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.76); }
.bl-table-wrap { margin-top: 22px; overflow-x: auto; }
.bl-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.bl-table th, .bl-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.12); }
.bl-table thead th { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.bl-table tbody th { font-weight: 700; color: var(--white); }
.bl-table td { color: rgba(255,255,255,0.8); }
.bl-th-m { display: none; }

/* ---------- photos (Pexels) ---------- */
.bl-card-cover--photo { background: #1a1a1a; }
.bl-card-cover--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.bl-card-cover--photo::after { z-index: 1; background: linear-gradient(180deg, rgba(4,4,4,0.55) 0%, rgba(4,4,4,0) 38%); }
.bl-card-cover--photo .bl-card-n { z-index: 2; }
.bl-card:hover .bl-card-cover--photo img { transform: scale(1.04); }
.bl-hero-photo { margin: clamp(32px, 4vw, 52px) 0 0; }
.bl-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 620px; object-fit: cover; border-radius: var(--radius); background: rgba(255,255,255,0.08); }
.bl-hero-photo figcaption { margin-top: 12px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); }
.bl-hero-photo .bl-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bl-prose .bl-photo { margin: 2em 0; }
.bl-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--blush); }
.bl-photo figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.bl-photo-cap { color: #1a1a1a; }
.bl-credit { font-size: 12px; color: rgba(4,4,4,0.56); }
.bl-hero-photo .bl-credit { font-size: 13px; color: inherit; }
.bl-prose .bl-credit a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.bl-prose .bl-photo-cap a { color: var(--violet); }

/* ---------- end CTA + sources ---------- */
.bl-endcta { margin-top: 3em; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: linear-gradient(150deg, #5648e4 0%, #2f2597 100%); color: var(--white); }
.bl-endcta-k { color: var(--lime); }
.bl-prose .bl-endcta-h { margin-top: 12px; font-size: clamp(26px, 2.8vw, 40px); color: var(--white); }
.bl-endcta p:not(.bl-endcta-k) { color: rgba(255,255,255,0.86); font-size: 17px; }
.bl-endcta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.bl-prose .bl-endcta-actions a { text-decoration: none; }
.bl-endcta .pill-btn--outline { --pill-fg: var(--white); }
.bl-endcta .pill-btn--outline .pill-btn-main, .bl-endcta .pill-btn--outline .pill-btn-arrow { box-shadow: inset 0 0 0 1.5px var(--white); }
.bl-endcta .pill-btn--outline:hover .pill-btn-main, .bl-endcta .pill-btn--outline:hover .pill-btn-arrow { background: var(--white); color: var(--black); }
.bl-sources { margin-top: 3em; padding-top: 28px; border-top: 1px solid var(--stroke-soft); }
.bl-prose .bl-sources h2 { margin-top: 0; font-size: 20px; }
.bl-prose .bl-sources ol { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.bl-sources li { scroll-margin-top: calc(var(--header-h) + 24px); }
.bl-sources li:target { background: rgba(190,251,124,0.4); border-radius: 6px; }
.bl-prose .bl-sources a { margin-left: 4px; font-weight: 700; }

/* ---------- related ---------- */
.bl-related { background: var(--blush); color: var(--black); padding: var(--section) 0; }
.bl-related-h { margin-bottom: clamp(28px, 3vw, 44px); font-family: var(--font-head); font-size: var(--h4); line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-layout { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .bl-layout { grid-template-columns: minmax(0, 1fr); }
  .bl-side { position: static; max-height: none; overflow: visible; }
  .bl-side-cta { display: none; }
  .bl-toc { padding: 20px 22px; border-radius: var(--radius); background: var(--blush); }
  .bl-card--feature { grid-template-columns: minmax(0, 1fr); }
  .bl-card--feature .bl-card-cover { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-prose { font-size: 17px; }
  .bl-chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 2px var(--pad) 6px; scrollbar-width: none; }
  .bl-chips::-webkit-scrollbar { display: none; }
  .bl-chip { flex: none; }
  .bl-table thead { display: none; }
  .bl-table, .bl-table tbody, .bl-table tr, .bl-table th, .bl-table td { display: block; width: 100%; }
  .bl-table tr { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .bl-table th, .bl-table td { padding: 4px 0; border: 0; }
  .bl-table tbody th { margin-bottom: 4px; }
  .bl-th-m { display: block; font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
}
@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-cover-art, .bl-card-cover--photo img, .bl-bar-fill, .bl-back svg, .bl-chip, .bl-toc a, .bl-progress { transition: none; }
  .bl-card:hover { transform: none; }
  .bl-card:hover .bl-card-cover--photo img { transform: none; }
  .bl-figure.is-pending .bl-bar-fill { transform: none; }
}
.bl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
