/* Blog index and articles. Tokens from base.css. */

.bl-hero { display: flex; flex-direction: column; gap: 22px; padding-block: 28px 8px; }
.bl-hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.bl-hero .co-title, .bl-article-head .co-title { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.04em; }
.bl-hero .co-lead, .bl-article-head .co-lead { margin: 12px 0 0; max-width: 40rem; }
.bl-search { flex: 1 1 280px; max-width: 360px; }
.bl-search input { width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font: inherit; }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.bl-cats a.is-current, .bl-cats a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }

.bl-mag { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr); gap: 20px; padding-block: 28px 48px; }
.bl-side { display: flex; flex-direction: column; gap: 16px; }
.bl-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bl-card--feature, .bl-card--grid { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); transition: box-shadow 0.2s; }
.bl-card--feature:hover, .bl-card--grid:hover { box-shadow: var(--shadow); }
.bl-card--side { flex-direction: row; align-items: center; gap: 14px; }
.bl-card--side .bl-cover { flex: none; width: 112px; aspect-ratio: 1; }
.bl-card--feature .bl-card__body, .bl-card--grid .bl-card__body { padding: 18px 20px 22px; }
.bl-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: var(--ember-soft); }
.bl-card--feature .bl-cover, .bl-card--grid .bl-cover { border-radius: 0; }
.bl-card--feature .bl-cover { min-height: 280px; }
.bl-card--grid .bl-cover { height: 190px; aspect-ratio: auto; }
.bl-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bl-cat { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm); }
.bl-card--side .bl-cat { position: static; display: inline-flex; margin-bottom: 6px; background: var(--ember-soft); color: var(--ember-press); box-shadow: none; }
.bl-cat--inline { position: static; display: inline-flex; margin: 0; }
.bl-cat--inline a { color: inherit; text-decoration: none; }
.bl-kicker { margin: 0; color: var(--ember-press); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bl-card h2, .bl-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.02em; }
.bl-card--feature h2 { font-size: clamp(1.6rem, 2vw, 2rem); }
.bl-card h2 a, .bl-card h3 a { color: inherit; text-decoration: none; }
.bl-card h2 a:hover, .bl-card h3 a:hover { color: var(--ember-press); }
.bl-card__body p { margin: 8px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.bl-by { display: flex; align-items: center; gap: 8px; font-size: 13px !important; }
.bl-by span, .bl-av { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-pill); background: var(--ember); color: var(--surface); font-size: 12px; font-weight: 800; }
.bl-list { display: flex; flex-direction: column; gap: 22px; padding-bottom: 48px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bl-empty { padding-bottom: 64px; }
.bl-pager { padding-bottom: 48px; }
.bl-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-pager a, .bl-pager span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }

.bl-extra { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr); gap: 28px; padding-bottom: 72px; }
.bl-pop { margin: 16px 0 0; padding: 0; list-style: none; }
.bl-pop li { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); }
.bl-pop a { display: flex; align-items: center; min-height: 52px; color: var(--ink); font-weight: 700; text-decoration: none; }
.bl-pop span { color: var(--ember-press); font-weight: 800; }
.bl-news { padding: 28px; border-radius: 24px; background: var(--night); color: var(--on-night); }
.bl-news .footer-news__title, .bl-news .footer-news__note { color: var(--on-night-70); }

.co-tint { background: var(--ember-soft); }
.bl-article { padding-top: 20px; }
.bl-acover { position: relative; height: 460px; margin-top: 18px; overflow: hidden; border-radius: 32px; background: var(--ember-soft); }
.bl-acover img { width: 100%; height: 100%; object-fit: cover; }
.bl-acover .bl-scene--docs .d1, .bl-acover .bl-scene--docs .d2, .bl-acover .bl-scene--docs .d3 { width: 16%; }
.bl-acover .bl-scene--docs .d1 { left: 28%; }
.bl-acover .bl-scene--docs .d2 { left: 42%; }
.bl-acover .bl-scene--docs .d3 { left: 56%; }
.bl-acover .bl-scene--docs .q { right: 24%; width: 76px; height: 76px; font-size: 34px; }
.bl-atitle { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin: -150px auto 0; padding: 36px 44px 28px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); }
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--ember-soft); color: var(--ember-press); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.bl-chip--soft { background: var(--surface-alt); color: var(--ink-muted); }
.bl-atitle h1 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.875rem); line-height: 1.13; font-weight: 800; letter-spacing: -0.035em; }
.bl-deck { margin: 0; font-size: 20px; line-height: 31px; color: var(--ink-muted); }
.bl-ameta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bl-byline { display: flex; align-items: center; gap: 12px; }
.bl-byline small, .bl-am small { display: block; color: var(--ink-muted); font-size: 12px; }
.bl-byline b, .bl-am b { display: block; font-size: 15px; }
.bl-am { display: flex; flex-direction: column; }
.bl-av { width: 44px; height: 44px; font-size: 17px; }
.bl-shareicons { display: flex; gap: 6px; margin-left: auto; }
.bl-shareicons a, .bl-shareicons button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.bl-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 48px; align-items: start; padding-block: 40px 64px; }
.bl-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.bl-toc p, .bl-sharebox p { margin: 0 0 8px; color: var(--ink-muted); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bl-toc ol { margin: 0; padding: 0; list-style: none; }
.bl-toc li { counter-increment: toc; }
.bl-toc a { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; color: var(--ink-muted); font-size: 13.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.bl-toc a::before { content: counter(toc); flex: none; width: 14px; color: var(--ember-press); font-weight: 800; }
.bl-toc a:hover, .bl-toc a.is-current { background: var(--ember-soft); color: var(--ink); font-weight: 700; }
.bl-toc__bar { display: block; height: 4px; margin-top: 12px; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-alt); }
.bl-toc__bar i { display: block; width: 0; height: 100%; background: var(--ember); }
.bl-prose { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bl-body { display: flex; flex-direction: column; gap: 18px; counter-reset: blsec; }
.bl-body > p:first-of-type::first-letter { float: left; margin: 6px 10px 0 0; color: var(--ember-press); font-size: 64px; font-weight: 800; line-height: 56px; }
.bl-prose h2, .bl-body h2 { display: flex; align-items: center; gap: 14px; margin: 8px 0 0; font-size: 1.875rem; line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.bl-body h2 { counter-increment: blsec; }
.bl-body h2::before { content: counter(blsec); display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ember-soft); color: var(--ember-press); font-size: 17px; }
.bl-prose #faq::before { content: none; }
.bl-prose p, .bl-prose li { margin: 0; color: var(--ink); font-size: 18px; line-height: 31px; }
.bl-prose figure, .bl-prose .wp-block-table { max-width: 100%; margin: 0; }
.bl-prose .wp-block-table, .bl-prose table { width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.bl-prose caption { caption-side: top; padding: 14px 18px; background: var(--night); color: var(--on-night); font-size: 14px; font-weight: 800; text-align: left; }
.bl-prose th { padding: 12px 18px; background: var(--surface-alt); color: var(--ink-muted); font-size: 12px; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; }
.bl-prose td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.bl-prose tbody tr:nth-child(even) td { background: var(--surface-alt); }
.bl-prose blockquote { margin: 8px 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--ember); color: var(--ink); font-size: 23px; font-weight: 600; line-height: 34px; letter-spacing: -0.01em; }
.bl-answer { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 22px 24px; border-radius: 20px; background: var(--night); color: var(--on-night); }
.bl-qa-k { color: var(--ember); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.bl-answer p { margin: 0; color: var(--on-night); font-size: 17px; line-height: 28px; }
.bl-tip { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-left: 4px solid var(--sun); border-radius: 16px; background: var(--sun-soft); }
.bl-tip b { color: var(--sun-ink); font-size: 14px; }
.bl-fig { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bl-fig__art { padding: 26px; border: 1px solid var(--ember-soft); border-radius: 20px; background: linear-gradient(140deg, var(--surface), var(--ember-soft)); }
.bl-fig figcaption { padding: 0 4px; color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.bl-scan { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bl-page { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 20px 18px 26px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-page--img { background: var(--surface-alt); }
.bl-page small { color: var(--ink-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bl-page i { display: block; height: 9px; border-radius: 4px; background: var(--line); }
.bl-page i.w2 { width: 80%; }
.bl-page i.w3 { width: 60%; }
.bl-page i.sel { background: var(--cobalt-soft); }
.bl-page .cur { position: absolute; top: 44px; left: 62%; color: var(--cobalt); font-size: 20px; font-weight: 300; }
.bl-page .box { position: absolute; top: 38%; left: 12%; width: 70%; height: 36%; border: 2px dashed var(--ember); border-radius: 4px; background: var(--ember-16); }
.bl-catfig { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: center; }
.bl-catcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-catcard .swatch { height: 110px; border-radius: 8px; background: linear-gradient(140deg, var(--line), var(--surface-alt)); }
.bl-catcard b { font-size: 18px; }
.bl-catcard span { color: var(--ink-muted); font-size: 13px; }
.bl-flat { align-self: flex-start; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--danger-soft); color: var(--danger); font-size: 11px; font-weight: 800; }
.bl-query { display: flex; flex-direction: column; gap: 10px; }
.bl-query b { padding: 12px 14px; border: 1.5px solid var(--ember); border-radius: 12px; background: var(--surface); }
.bl-query strong { color: var(--danger); font-size: 28px; }
.bl-author { display: flex; gap: 18px; align-items: center; margin-top: 8px; padding: 24px; border-radius: 22px; background: var(--surface-alt); }
.bl-author b { font-size: 19px; }
.bl-author p { margin: 4px 0 0; color: var(--ink-muted); }
.bl-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.bl-sidebox .footer-news { flex: none; width: auto; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
.bl-sidebox .footer-news__title { color: var(--ink); }
.bl-sidebox .footer-news__note { color: var(--ink-muted); }
.bl-sharebox { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; }
.bl-sharebox a, .bl-sharebox button { display: flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.co-faq__list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.co-qa { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.co-qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 18px; cursor: pointer; list-style: none; }
.co-qa summary::-webkit-details-marker { display: none; }
.co-qa h3 { margin: 0; font-size: 17px; }
.co-qa p { padding: 0 18px 16px; color: var(--ink-muted); }

/* Drawn covers from the blog design. Tokens only. A featured image covers these. */
.bl-scene { position: absolute; inset: 0; display: block; overflow: hidden; }
.bl-scene i, .bl-scene b { position: absolute; display: block; }
.bl-scene--docs { background: radial-gradient(80% 100% at 85% 0%, var(--ember-soft), var(--ember) 55%, var(--ember-ink)); }
.bl-scene--docs .d1, .bl-scene--docs .d2, .bl-scene--docs .d3 { width: 26%; height: 62%; top: 20%; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.bl-scene--docs .d1 { left: 18%; transform: rotate(-8deg); }
.bl-scene--docs .d2 { left: 37%; top: 14%; }
.bl-scene--docs .d3 { left: 56%; transform: rotate(7deg); opacity: 0.75; }
.bl-scene--docs .d1::after, .bl-scene--docs .d2::after { content: ""; position: absolute; left: 14%; right: 14%; top: 18%; height: 40%; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 14px); }
.bl-scene--docs .q { right: 14%; top: 14%; width: 52px; height: 52px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.bl-scene--chart { background: linear-gradient(140deg, var(--night), var(--ink)); }
.bl-scene--chart .b1, .bl-scene--chart .b2, .bl-scene--chart .b3, .bl-scene--chart .b4 { bottom: 18%; width: 11%; border-radius: 8px 8px 0 0; background: linear-gradient(var(--ember-soft), var(--ember)); }
.bl-scene--chart .b1 { left: 22%; height: 26%; }
.bl-scene--chart .b2 { left: 37%; height: 40%; }
.bl-scene--chart .b3 { left: 52%; height: 54%; }
.bl-scene--chart .b4 { left: 67%; height: 68%; background: linear-gradient(var(--sun-soft), var(--sun)); }
.bl-scene--chart .up { right: 12%; top: 14%; font-size: 30px; color: var(--sun); }
.bl-scene--chat { background: linear-gradient(140deg, var(--lagoon-soft), var(--surface)); }
.bl-scene--chat .m1, .bl-scene--chat .m2, .bl-scene--chat .m3 { height: 16%; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-scene--chat .m1 { left: 12%; top: 20%; width: 46%; }
.bl-scene--chat .m2 { right: 12%; top: 42%; width: 40%; background: var(--lagoon); }
.bl-scene--chat .m3 { left: 12%; top: 64%; width: 34%; }
.bl-scene--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10%; padding: 14% 18%; background: linear-gradient(140deg, var(--sun-soft), var(--sun)); }
.bl-scene--grid i { position: static; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-scene--grid i:nth-child(2), .bl-scene--grid i:nth-child(6) { background: var(--ember); }
.bl-scene--spark { background: radial-gradient(70% 90% at 30% 20%, var(--cobalt-soft), var(--cobalt) 55%, var(--night)); }
.bl-scene--spark .orb { left: 30%; top: 22%; width: 40%; aspect-ratio: 1; border-radius: var(--radius-pill); background: radial-gradient(circle at 35% 35%, var(--surface), var(--cobalt-soft) 40%, transparent 70%); }
.bl-scene--spark .s1, .bl-scene--spark .s2, .bl-scene--spark .s3 { color: var(--sun); }
.bl-scene--spark .s1 { left: 18%; top: 18%; font-size: 28px; }
.bl-scene--spark .s2 { right: 18%; top: 30%; font-size: 40px; }
.bl-scene--spark .s3 { left: 56%; bottom: 16%; font-size: 22px; }
.bl-scene--cart { background: linear-gradient(140deg, var(--cobalt-soft), var(--surface)); }
.bl-scene--cart .c1 { left: 26%; top: 26%; width: 40%; height: 44%; border-radius: 12px 12px 22px 22px; background: var(--surface); box-shadow: var(--shadow); }
.bl-scene--cart .c2 { right: 22%; top: 18%; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--ember); color: var(--surface); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bl-scene--cart .c3 { left: 30%; bottom: 16%; width: 32%; height: 5%; border-radius: var(--radius-pill); background: var(--ink-12); }
.bl-scene--flow { background: linear-gradient(140deg, var(--cobalt-soft), var(--surface)); }
.bl-scene--flow .f1, .bl-scene--flow .f2, .bl-scene--flow .f3 { top: 36%; width: 18%; height: 28%; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bl-scene--flow .f1 { left: 12%; }
.bl-scene--flow .f2 { left: 41%; background: var(--cobalt); }
.bl-scene--flow .f3 { left: 70%; }
.bl-scene--flow .fa, .bl-scene--flow .fb { top: 42%; font-size: 26px; font-weight: 800; color: var(--cobalt); }
.bl-scene--flow .fa { left: 32%; }
.bl-scene--flow .fb { left: 61%; }

@media (prefers-reduced-motion: reduce) {
  .bl-card--feature, .bl-card--grid { transition: none; }
}
@media (max-width: 999px) {
  .bl-mag, .bl-grid, .bl-extra, .bl-layout { grid-template-columns: 1fr; }
  .bl-toc, .bl-aside { position: static; }
  .bl-acover { height: 280px; }
  .bl-atitle { margin-top: -72px; padding: 24px 20px; }
  .bl-shareicons { margin-left: 0; }
  .bl-scan, .bl-catfig { grid-template-columns: 1fr; }
  .bl-card--feature .bl-cover { min-height: 180px; }
}
@media (max-width: 599px) {
  .bl-card--side { flex-direction: column; align-items: stretch; }
  .bl-card--side .bl-cover { width: 100%; aspect-ratio: 16 / 9; }
}
