/* ==========================================================
   keeplee - Insights: a cover, then the articles in a grid with
   page numbers. An article: a wide title, its cover, the text.
   Also the 404.
   ========================================================== */
.bl-cover { padding: calc(76px + var(--under, 0px)) 0 150px; background: var(--navy) url("../blog/insights-cover.svg") center bottom / cover no-repeat; color: #fff; text-align: center; }
.bl-copy { max-width: 820px; }
.bl-cover h1 { margin: 0 0 14px; color: #fff; font-size: clamp(3rem, 8vw, 5.4rem); line-height: 1; letter-spacing: -.04em; }
.bl-cover .lead { margin: 0 auto; max-width: 34em; color: #cfccc2; text-wrap: balance; }

/* The sections: stay on top under the header. On an article the bar is the first thing on the page and
   goes up under the header too, so its own top padding keeps its links clear of it. */
.bl-kicker { margin: 0 0 10px; font-weight: 600; }
.bl-kicker a { color: #ffc9a8; text-decoration: none; }
.bl-cover .bl-section-title { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -.03em; }
.bl-sections { position: sticky; top: calc(var(--header-h) - var(--under, 0px)); z-index: 90; padding-top: var(--under, 0px); border-bottom: 1px solid var(--line); background: #fff; }
.bl-sections-row { display: flex; gap: 4px; max-width: max-content; margin: 0 auto; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; }
.bl-sections-row::-webkit-scrollbar { display: none; }
.bl-sections a { flex: none; padding: 7px 14px; border-radius: 99px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.bl-sections a:hover { background: var(--brand-50); color: var(--brand); }
.bl-sections a[aria-current] { background: var(--navy); color: #fff; }

.bl-list { padding: 48px 0 88px; background: #fff; scroll-margin-top: 44px; }
.bl-empty { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 24px; border-radius: var(--radius-lg); background: var(--warm-bg); text-align: center; }
.bl-empty h2 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.bl-empty p { margin: 0; color: var(--warm-ink); }
.bl-empty a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bl-grid { display: grid; gap: 28px; }
.bl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.bl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bl-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.bl-card-text { display: grid; gap: 8px; padding: 20px 22px 24px; }
.bl-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: .84rem; }
.bl-meta b { color: var(--accent-600); font-weight: 600; }
.bl-card time { color: var(--muted); }
.bl-card strong { font-size: 1.18rem; line-height: 1.3; }
.bl-card:hover strong { color: var(--brand); }
.bl-card small { color: var(--muted); font-size: .94rem; line-height: 1.5; }
@media (min-width: 640px) { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }

.bl-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin-top: 44px; }
.bl-pages a, .bl-now, .bl-gap { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; font-size: .94rem; font-weight: 600; text-decoration: none; }
.bl-pages a { border: 1px solid var(--line); color: var(--navy); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.bl-pages a:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.bl-pages a:hover .ico-off { display: none; } .bl-pages a:hover .ico-on { display: block; }
.bl-now { background: var(--navy); color: #fff; }
.bl-gap { min-width: 22px; padding: 0; color: var(--muted); }
.bl-pages .bl-step { display: inline-flex; gap: 6px; padding: 0 14px; }
.bl-step .ico { width: 16px; height: 16px; }
.bl-back { display: inline-flex; transform: rotate(180deg); }
@media (max-width: 559px) { .bl-pages .bl-step { order: 3; flex: 1 1 40%; justify-content: center; margin-top: 6px; } }

.po-progress { position: fixed; inset: 0 0 auto; z-index: 110; height: 4px; pointer-events: none; }
html:not(.js) .po-progress { display: none; }
.po-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.po-head { padding: 44px 0 36px; background: #fff; text-align: center; }
.po-kicker { margin: 0 0 14px; font-weight: 600; }
.po-kicker a { color: var(--brand); text-decoration: none; }
.po-head h1 { max-width: 1120px; margin: 0 auto 14px; color: var(--navy); font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: pretty; }
.po-date { margin: 0; color: var(--muted); font-size: .94rem; }
.po-cover { display: block; width: 100%; max-width: 1120px; height: auto; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.po-col { max-width: 760px; margin: 0 auto; }
.prose { padding-top: 48px; padding-bottom: 72px; color: var(--ink); font-size: 1.08rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 40px 0 12px; color: var(--navy); font-size: 1.6rem; line-height: 1.2; }
.prose h3 { margin: 30px 0 8px; color: var(--navy); font-size: 1.22rem; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.er-hero { min-height: 62vh; padding: calc(72px + var(--under, 0px)) 0 72px; background: var(--brand-50); text-align: center; }
.er-copy { max-width: 680px; }
.er-no { margin: 0; color: var(--brand); font-size: clamp(4rem, 14vw, 8rem); font-weight: 600; line-height: 1; letter-spacing: -.05em; opacity: .25; }
.er-hero h1 { margin: 8px 0 12px; color: var(--navy); font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -.025em; }
.er-ways { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.er-ways a { display: block; padding: 8px 16px; border-radius: 99px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-sm); }
.er-ways a:hover { color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .bl-card { transition: none; } .bl-card:hover { transform: none; } }

.prose figure { margin: 28px 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--navy); font-size: 1.16rem; }
.prose hr { margin: 36px 0; border: 0; border-top: 1px solid rgba(15, 23, 42, .14); }
.po-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.prose .po-tags a { padding: 4px 12px; border: 1px solid rgba(15, 23, 42, .14); border-radius: 999px; font-size: .86rem; text-decoration: none; }
