/* Blog list, search and article pages. Flat colours, brand #5E6AD6, Outfit. Loaded after blog.css. */
.bl, .bp { --b: #5E6AD6; --ink: #0B1020; --mut: #667085; --line: #E4E7EF; --tint: #F4F5FF; font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; }
.bl *, .bp * { box-sizing: border-box; }
.bl a, .bp a { text-underline-offset: 3px; }

/* ---------------------------------------------------------------- list */
.bl { padding: 6px 20px 72px; }
.bl-wrap { max-width: 1200px; margin: 0 auto; }
.bl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.bl-search { position: relative; display: flex; align-items: center; flex: 1 1 320px; max-width: 460px; min-height: 52px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 0 6px 0 18px; transition: border-color .2s, box-shadow .2s; }
.bl-search:focus-within { border-color: var(--b); box-shadow: 0 0 0 4px rgba(94, 106, 214, .14); }
.bl-search i { color: var(--mut); font-size: 15px; }
.bl-search input[type="search"] { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); }
.bl-search button { min-height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--b); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.bl-search button:hover { background: #4b57c3; }
.bl-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-topics a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.bl-topics a:hover { border-color: var(--b); color: var(--b); }
.bl-topics a.is-on { background: var(--b); border-color: var(--b); color: #fff; }
.bl-found { margin: 0 0 22px; color: var(--mut); font-size: 16px; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.bl-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.bl-card:hover { transform: translateY(-5px); border-color: rgba(94, 106, 214, .35); box-shadow: 0 26px 44px -30px rgba(11, 16, 32, .4); }
.bl-card__img { display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.bl-card:hover .bl-card__img img { transform: scale(1.04); }
.bl-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--b); font-size: 40px; }
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; color: var(--mut); font-size: 14px; }
.bl-meta time { color: var(--b); font-weight: 600; }
.bl-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--b); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.bl-card__title { margin: 0 0 10px; font-size: 20px; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__title a { color: var(--ink); text-decoration: none; }
.bl-card__title a:hover { color: var(--b); }
.bl-card__text { margin: 0 0 16px; color: var(--mut); font-size: 15.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--b); font-weight: 600; text-decoration: none; }
.bl-more i { font-size: 13px; transition: transform .2s ease; }
.bl-more:hover i { transform: translateX(4px); }

/* the newest article, large */
.bl-card--lead { flex-direction: row; margin: 0 0 30px; }
.bl-card--lead .bl-card__img { flex: 0 0 54%; aspect-ratio: auto; min-height: 340px; }
.bl-card--lead .bl-card__body { justify-content: center; padding: 34px 38px; }
.bl-card--lead .bl-card__title { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.15rem); -webkit-line-clamp: 4; }
.bl-card--lead .bl-card__text { font-size: 17px; -webkit-line-clamp: 4; }
.bl-card--lead .bl-more { margin-top: 8px; }

.bl-pager { margin-top: 44px; }
.bl-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bl-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.bl-pager a.page-numbers:hover { border-color: var(--b); color: var(--b); }
.bl-pager .page-numbers.current { background: var(--b); border-color: var(--b); color: #fff; }
.bl-pager .page-numbers.dots { border: 0; background: transparent; min-width: 0; padding: 0 4px; }
.bl-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: 22px; }
.bl-empty h2 { margin: 0 0 8px; font-size: 24px; }
.bl-empty p { margin: 0 0 12px; color: var(--mut); }

/* call to action */
.bp-cta { padding: 26px; border-radius: 22px; background: var(--b); color: #fff; }
.bp-cta h2 { margin: 0 0 8px; color: #fff; font-size: 22px; line-height: 1.25; font-weight: 700; }
.bp-cta p { margin: 0 0 18px; color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 1.6; }
.bp-cta__btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--b); font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.bp-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .5); color: var(--b); }
.bp-cta--wide { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 44px; padding: 32px 36px; }
.bp-cta--wide .bp-cta__txt { flex: 1 1 auto; max-width: 640px; }
.bp-cta--wide h2 { margin: 0 0 6px; }
.bp-cta--wide p { margin: 0; }
.bp-cta--wide .bp-cta__btn { flex: none; white-space: nowrap; }

/* ---------------------------------------------------------------- article */
.bp-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 10001; background: transparent; pointer-events: none; }
.bp-progress i { display: block; height: 100%; width: 0; background: var(--b); transition: width .08s linear; }
.bp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.bp-head { padding: 34px 0 26px; background: #fff; }
.bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14.5px; color: var(--mut); }
.bp-crumbs a { color: var(--mut); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.bp-crumbs a:hover { color: var(--b); }
.bp-title { margin: 0 0 18px; max-width: 920px; font-size: clamp(1.85rem, 2.6vw + 1rem, 3rem); line-height: 1.16; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.bp-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; color: var(--mut); font-size: 15px; }
.bp-meta li { display: inline-flex; align-items: center; gap: 8px; }
.bp-meta i { color: var(--b); }
.bp-by { color: var(--ink); font-weight: 600; }
.bp-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--b); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 16px; }
.bp-thumb { margin: 0 0 8px; border-radius: 24px; overflow: hidden; background: var(--tint); }
.bp-thumb img { width: 100%; height: auto; display: block; }
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; padding-top: 34px; padding-bottom: 60px; }
.bp-main { min-width: 0; }

.bp-content { max-width: 780px; font-size: 18px; line-height: 1.85; color: #1E293B; }
.bp-content > :first-child { margin-top: 0; }
.bp-content p { margin: 0 0 1.25em; }
.bp-content h2, .bp-content h3, .bp-content h4 { color: var(--ink); line-height: 1.28; font-weight: 700; letter-spacing: -.01em; scroll-margin-top: 100px; }
.bp-content h2 { margin: 2em 0 .6em; font-size: clamp(1.45rem, 1vw + 1.1rem, 1.85rem); padding-top: .2em; }
.bp-content h3 { margin: 1.7em 0 .5em; font-size: 1.3rem; }
.bp-content h4 { margin: 1.5em 0 .4em; font-size: 1.1rem; }
.bp-content a { color: var(--b); font-weight: 500; }
.bp-content a:hover { color: #4b57c3; }
.bp-content ul, .bp-content ol { margin: 0 0 1.3em; padding-left: 1.5em; }
.bp-content li { margin-bottom: .45em; }
.bp-content li::marker { color: var(--b); font-weight: 700; }
.bp-content img, .bp-content figure img { max-width: 100%; height: auto; border-radius: 16px; }
.bp-content figure { margin: 1.6em 0; }
.bp-content figcaption { margin-top: 8px; color: var(--mut); font-size: 14px; text-align: center; }
.bp-content blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--b); background: var(--tint); border-radius: 0 16px 16px 0; color: var(--ink); font-size: 1.05em; }
.bp-content blockquote p:last-child { margin-bottom: 0; }
.bp-content code { padding: 2px 7px; border-radius: 6px; background: #F1F3F9; font-size: .92em; }
.bp-content pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: #0B1020; color: #E6E9F5; font-size: 15px; line-height: 1.6; }
.bp-content pre code { background: transparent; padding: 0; color: inherit; }
.bp-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; }
.bp-content th { background: var(--tint); color: var(--ink); text-align: left; }
.bp-content th, .bp-content td { padding: 12px 16px; border: 1px solid var(--line); }
.bp-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

.bp-tocm { margin: 0 0 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--tint); }
.bp-tocm summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; font-weight: 700; list-style: none; }
.bp-tocm summary::-webkit-details-marker { display: none; }
.bp-tocm summary i { color: var(--b); }
.bp-tocm [data-toc] { padding: 0 18px 14px; max-height: 50vh; overflow-y: auto; }
.bp-toc [data-toc] { max-height: 42vh; overflow-y: auto; scrollbar-width: thin; }
.bp-toc ol, .bp-tocm ol { list-style: none; margin: 0; padding: 0; }
.bp-toc li, .bp-tocm li { margin: 0; }
.bp-toc a, .bp-tocm a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--mut); font-size: 15px; line-height: 1.4; text-decoration: none; }
.bp-toc a:hover, .bp-tocm a:hover, .bp-toc a.is-on { color: var(--b); border-left-color: var(--b); }
.bp-toc a.is-on { font-weight: 600; }

.bp-tags { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tint); color: var(--b); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.bp-share { margin: 30px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.bp-share ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.bp-share a, .bp-share button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 17px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.bp-share a:hover, .bp-share button:hover { background: var(--b); border-color: var(--b); color: #fff; }
.bp-copied { color: #059669; font-weight: 600; font-size: 14.5px; }
.bp-author { display: flex; gap: 18px; align-items: flex-start; margin: 30px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.bp-author__av { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: var(--b); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 26px; }
.bp-author p { margin: 0; }
.bp-author__k { color: var(--mut); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bp-author__n { font-size: 19px; font-weight: 700; margin: 2px 0 6px !important; }
.bp-author__t { color: var(--mut); font-size: 15.5px; line-height: 1.65; }

.bp .post-navigation { margin-top: 34px; }
.bp .post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bp .post-navigation .nav-previous a, .bp .post-navigation .nav-next a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.bp .post-navigation .nav-next a { text-align: right; align-items: flex-end; }
.bp .post-navigation a:hover { border-color: var(--b); transform: translateY(-2px); }
.bp-nav__k { color: var(--b); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.bp-nav__t { font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* sidebar */
.bp-side__stick { position: sticky; top: 96px; display: grid; gap: 20px; max-height: calc(100vh - 116px); overflow-y: auto; padding: 2px 4px 2px 0; scrollbar-width: thin; }
.bp-box { padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.bp-box h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.bp-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bp-recent li { display: flex; gap: 12px; align-items: center; margin: 0; }
.bp-recent__img { flex: 0 0 72px; width: 72px; height: 54px; border-radius: 12px; overflow: hidden; background: var(--tint); display: block; }
.bp-recent__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-recent__t { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bp-recent__t:hover { color: var(--b); }
.bl-search--side { max-width: none; flex: none; }

.bp-related { padding: 54px 0 70px; background: #F7F8FC; border-top: 1px solid var(--line); }
.bp-related h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); font-weight: 700; letter-spacing: -.01em; }
.bp-related__all { margin: 24px 0 0; text-align: center; }

@media (max-width: 1100px) {
	.bp-layout { grid-template-columns: 1fr; gap: 34px; }
	.bp-side__stick { position: static; }
	.bp-toc { display: none; }
	.bp-side .bp-cta { display: none; }
	.bp-content { max-width: none; }
}
@media (min-width: 1101px) { .bp-tocm { display: none; } }
@media (max-width: 900px) {
	.bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.bl-card--lead { flex-direction: column; }
	.bl-card--lead .bl-card__img { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
	.bl-card--lead .bl-card__body { padding: 24px; }
	.bp-cta--wide { flex-direction: column; align-items: flex-start; padding: 26px; }
}
@media (max-width: 640px) {
	.bl { padding: 0 14px 54px; }
	.bl-grid { grid-template-columns: 1fr; }
	.bl-tools { flex-direction: column; align-items: stretch; }
	.bl-tools > * { min-width: 0; max-width: 100%; }
	.bl-search { max-width: none; flex-basis: auto; }
	.bl-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
	.bl-topics::-webkit-scrollbar { display: none; }
	.bl-topics a { white-space: nowrap; }
	.bp-wrap { padding: 0 14px; }
	.bp-head { padding: 22px 0 18px; }
	.bp-thumb { border-radius: 16px; }
	.bp-content { font-size: 17px; line-height: 1.8; }
	.bp-layout { padding-top: 22px; padding-bottom: 40px; }
	.bp .post-navigation .nav-links { grid-template-columns: 1fr; }
	.bp .post-navigation .nav-next a { text-align: left; align-items: flex-start; }
	.bp-author { flex-direction: column; }
	.bp-cta--wide { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .bl-card, .bl-card__img img, .bp-progress i { transition: none; } }
