/* Blog listing (blog.php) and article (post.php). Builds on home-2026-11-24.css and
   service-2026-11-24b.css. */
.kp-blog { --bl-ink: var(--kp-ink); --bl-accent: #4b418d; --bl-warm: #f17425; }
.pg-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Shared bits ---------- */
.bl-pill { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--kp-purple); box-shadow: 0 6px 16px rgba(36, 29, 82, .12); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; font-weight: 700; color: var(--kp-muted); }
.bl-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Listing hero ---------- */
.bl-hero { position: relative; overflow: hidden; padding: 136px 0 40px; background:
    radial-gradient(700px 380px at 92% 8%, #fde3d2 0%, rgba(253, 227, 210, 0) 70%),
    radial-gradient(800px 420px at 0% 0%, #ece8fb 0%, rgba(236, 232, 251, 0) 70%), #fbfaff; }
.bl-hero::after { content: ""; position: absolute; right: -80px; top: 60px; width: 520px; height: 420px; background: url("../../img/brand/kismet-pros-symbol.svg") no-repeat center / contain; opacity: .05; transform: rotate(-8deg); pointer-events: none; }
.bl-hero .kp-wrap { position: relative; z-index: 1; }
.bl-hero__copy { max-width: 760px; }
.bl-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--kp-line); font-size: 14px; font-weight: 800; color: var(--kp-ink); box-shadow: 0 10px 24px rgba(36, 29, 82, .06); }
.bl-kicker i { width: 10px; height: 10px; border-radius: 3px; background: var(--kp-orange); transform: rotate(45deg); }
.bl-hero h1 { margin: 22px 0 0; font-size: clamp(44px, 6.2vw, 80px); font-weight: 900; line-height: 1; letter-spacing: -0.035em; color: var(--kp-ink); }
.bl-hero h1 span { color: var(--kp-purple); position: relative; white-space: nowrap; }
.bl-hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em; border-radius: 1em; background: var(--kp-orange); opacity: .28; }
.bl-hero__copy p { margin: 22px 0 0; max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--kp-muted); }

.bl-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; margin-top: 34px; padding: 8px 8px 8px 52px; border-radius: 999px; background: #fff; border: 1.5px solid var(--kp-line); box-shadow: 0 20px 44px rgba(36, 29, 82, .1); transition: border-color .2s ease, box-shadow .2s ease; }
.bl-search:focus-within { border-color: var(--kp-purple); box-shadow: 0 20px 44px rgba(36, 29, 82, .14), 0 0 0 4px rgba(75, 65, 141, .12); }
.bl-search > svg { position: absolute; left: 20px; color: var(--kp-muted); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--kp-ink); padding: 10px 0; }
.bl-search button { flex: none; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--kp-purple); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.bl-search button:hover { background: var(--kp-purple-dark); }

.bl-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.bl-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--kp-line); font-size: 15px; font-weight: 800; color: var(--kp-ink) !important; text-decoration: none !important; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.bl-cats a b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--kp-tint); font-size: 12.5px; color: var(--kp-muted); }
.bl-cats a:hover { border-color: #cfc8ef; }
.bl-cats a[aria-current] { background: var(--kp-ink); border-color: var(--kp-ink); color: #fff !important; }
.bl-cats a[aria-current] b { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Listing ---------- */
.bl-list { padding: 40px 0 110px; background: #fbfaff; }
.bl-results { margin: 0 0 24px; font-size: 16px; color: var(--kp-muted); }
.bl-results a { font-weight: 800; color: var(--kp-purple); }

.bl-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 34px; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--kp-line); color: var(--kp-ink) !important; text-decoration: none !important; box-shadow: 0 34px 70px rgba(36, 29, 82, .1); transition: transform .3s ease, box-shadow .3s ease; }
.bl-feature:hover { transform: translateY(-4px); box-shadow: 0 44px 80px rgba(36, 29, 82, .14); }
.bl-feature__img { position: relative; display: block; overflow: hidden; min-height: 380px; }
.bl-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.bl-feature:hover .bl-feature__img img { transform: scale(1.04); }
.bl-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 44px 46px; }
.bl-feature__flag { position: absolute; top: 22px; left: 22px; padding: 7px 14px; border-radius: 999px; background: var(--kp-orange); color: #fff; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(241, 116, 37, .35); }
.bl-feature .bl-pill { box-shadow: none; background: var(--kp-purple-soft); }
.bl-feature__title { font-size: clamp(26px, 2.8vw, 38px); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
.bl-feature__text { font-size: 17px; line-height: 1.6; color: var(--kp-muted); }
.bl-feature__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; padding-top: 8px; font-weight: 900; color: var(--kp-purple); }
.bl-feature__go svg { transition: transform .2s ease; }
.bl-feature:hover .bl-feature__go svg { transform: translateX(4px); }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.bl-card { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--kp-line); color: var(--kp-ink) !important; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.bl-card:hover { transform: translateY(-5px); box-shadow: 0 28px 56px rgba(36, 29, 82, .12); border-color: transparent; }
.bl-card__img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10.5; background: var(--kp-tint); }
.bl-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bl-card:hover .bl-card__img img { transform: scale(1.06); }
.bl-card__img .bl-pill { position: absolute; left: 14px; top: 14px; }
.bl-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.bl-card__title { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.bl-card__text { font-size: 15px; line-height: 1.55; color: var(--kp-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card .bl-meta { margin-top: auto; padding-top: 6px; }

.bl-empty { padding: 60px 24px; border-radius: 28px; background: #fff; border: 1px dashed var(--kp-line); text-align: center; }
.bl-empty h2 { font-size: 28px !important; }
.bl-empty p { margin: 0; color: var(--kp-muted); }
.bl-empty a { font-weight: 800; color: var(--kp-purple); }

.bl-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 52px; }
.bl-pages a { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--kp-line); font-weight: 800; color: var(--kp-ink) !important; text-decoration: none !important; }
.bl-pages a:hover { border-color: #cfc8ef; }
.bl-pages a[aria-current] { background: var(--kp-purple); border-color: var(--kp-purple); color: #fff !important; }
.bl-pages__step { color: var(--kp-purple) !important; }

/* ---------- Article ---------- */
.kp-blog .kp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; font-weight: 700; }
.kp-blog .kp-crumbs a { color: var(--kp-muted) !important; text-decoration: none !important; }
.kp-blog .kp-crumbs a:hover { color: var(--kp-purple) !important; }
.kp-blog .kp-crumbs a:last-child { color: var(--kp-purple) !important; }
.kp-blog .kp-crumbs span { color: #c3bedb; }
.po-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 2000; pointer-events: none; }
.po-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--kp-purple), var(--kp-orange)); transform-origin: left; transform: scaleX(0); }

.po-hero { padding: 132px 0 0; background:
    radial-gradient(700px 380px at 92% 0%, #fde3d2 0%, rgba(253, 227, 210, 0) 70%),
    radial-gradient(800px 420px at 0% 0%, #ece8fb 0%, rgba(236, 232, 251, 0) 70%), #fbfaff; }
.po-hero__wrap { max-width: 900px; }
.po-hero h1 { margin: 18px 0 0; font-size: clamp(36px, 4.8vw, 60px); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; color: var(--kp-ink); }
.po-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.po-byline > span:last-child { display: flex; flex-direction: column; font-size: 14.5px; color: var(--kp-muted); }
.po-byline b { font-size: 16px; color: var(--kp-ink); }
.po-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--kp-purple); color: #fff; font-weight: 900; font-size: 18px; }
.po-cover { position: relative; margin: 36px auto -120px; max-width: 1120px; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px rgba(36, 29, 82, .18); z-index: 1; }
.po-cover img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.po-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 64px; padding-top: 180px; padding-bottom: 40px; max-width: 1120px; }
.po-side { position: relative; }
.po-side > * + * { margin-top: 22px; }
.po-side { align-self: start; position: sticky; top: 110px; }
.po-toc p { margin: 0 0 12px; font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--kp-muted); }
.po-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--kp-line); }
.po-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--kp-muted) !important; text-decoration: none !important; transition: color .15s ease, border-color .15s ease; }
.po-toc a:hover { color: var(--kp-ink) !important; }
.po-toc a.is-on { border-left-color: var(--kp-purple); color: var(--kp-purple) !important; }
.po-book { padding: 22px; border-radius: 22px; color: #d9d4f2; background: radial-gradient(320px 200px at 100% 0%, #5b4fb0 0%, #2f2669 55%, #1c1641 100%); box-shadow: 0 24px 48px rgba(36, 29, 82, .22); }
.po-book p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
.po-book b { color: #fff; }
.po-book__title { font-size: 17px !important; font-weight: 900; color: #fff; margin-bottom: 6px !important; }
.po-book__btn { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 999px; background: #fff; color: var(--kp-purple) !important; font-weight: 900; text-decoration: none !important; transition: transform .15s ease; }
.po-book__btn:hover { transform: translateY(-1px); }

.po-toc-m { display: none; }

/* The article itself */
.po-body { max-width: 720px; font-size: 18.5px; line-height: 1.78; color: #3c3852; }
.po-body > *:first-child { margin-top: 0; }
.po-body p { margin: 0 0 22px; }
.po-body > p:first-of-type { font-size: 21px; line-height: 1.65; color: var(--kp-ink); }
.po-body h2 { margin: 54px 0 16px; font-size: clamp(26px, 2.6vw, 32px) !important; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; color: var(--kp-ink) !important; scroll-margin-top: 110px; }
.po-body h2::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 18px; border-radius: 4px; background: linear-gradient(90deg, var(--kp-purple), var(--kp-orange)); }
.po-body h3 { margin: 34px 0 10px; font-size: 21px !important; font-weight: 800; line-height: 1.3; color: var(--kp-ink) !important; scroll-margin-top: 110px; }
.po-body h4 { margin: 26px 0 8px; font-size: 18px !important; font-weight: 800; color: var(--kp-ink) !important; }
.po-body ul, .po-body ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.po-body ul li, .po-body ol li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.po-body ul li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--kp-orange); transform: rotate(45deg); }
.po-body ol { counter-reset: po; }
.po-body ol li { counter-increment: po; }
.po-body ol li::before { content: counter(po); position: absolute; left: 0; top: .2em; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--kp-purple-soft); color: var(--kp-purple); font-size: 12.5px; font-weight: 900; }
.po-body a { color: var(--kp-purple); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(75, 65, 141, .3); text-underline-offset: 3px; }
.po-body a:hover { text-decoration-color: var(--kp-purple); }
.po-body strong, .po-body b { color: var(--kp-ink); }
.po-body img { max-width: 100%; height: auto; border-radius: 22px; margin: 10px 0 24px; }
.po-body blockquote { margin: 30px 0; padding: 22px 26px; border-radius: 0 20px 20px 0; border-left: 5px solid var(--kp-purple); background: var(--kp-tint); font-size: 20px; font-weight: 700; color: var(--kp-ink); }
.bl-table { margin: 0 0 26px; overflow-x: auto; border-radius: 18px; border: 1px solid var(--kp-line); }
.po-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.po-body th { background: var(--kp-tint); text-align: left; font-weight: 800; color: var(--kp-ink); }
.po-body th, .po-body td { padding: 13px 16px; border-bottom: 1px solid var(--kp-line); vertical-align: top; }
.po-body tr:last-child td { border-bottom: 0; }

.po-end { max-width: 720px; margin-top: 48px; }
.po-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--kp-line); border-bottom: 1px solid var(--kp-line); }
.po-share > span { margin-right: 6px; font-weight: 800; color: var(--kp-ink); }
.po-share__btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--kp-line); background: #fff; font: inherit; font-size: 14.5px; font-weight: 800; color: var(--kp-ink) !important; text-decoration: none !important; cursor: pointer; }
.po-share__btn:hover { border-color: var(--kp-purple); color: var(--kp-purple) !important; }
.po-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 30px 32px; border-radius: 26px; color: #d9d4f2; background: radial-gradient(500px 260px at 100% 0%, #5b4fb0 0%, #2f2669 55%, #1c1641 100%); box-shadow: 0 30px 60px rgba(36, 29, 82, .22); }
.po-cta p { margin: 0; font-size: 15.5px; }
.po-cta__title { font-size: 21px !important; font-weight: 900; line-height: 1.25; color: #fff; margin-bottom: 6px !important; }
.po-cta .kp-btn { flex: none; }

.po-comments { max-width: 720px; margin-top: 44px; }
.po-comments h2 { font-size: 24px !important; margin-bottom: 18px !important; }
.po-comments ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 18px; }
.po-comments li { display: flex; gap: 14px; }
.po-comments li .po-avatar { width: 40px; height: 40px; font-size: 16px; background: var(--kp-purple-soft); color: var(--kp-purple); }
.po-comments li small { color: var(--kp-muted); }
.po-comments li p { margin: 6px 0 0; padding: 14px 18px; border-radius: 4px 18px 18px 18px; background: var(--kp-tint); line-height: 1.6; color: #3c3852; }
.po-comments__ok { padding: 12px 16px; border-radius: 14px; background: #e3f6ec; color: #2f7356; font-weight: 800; }
.po-comments__signin { margin: 0; color: var(--kp-muted); }
.po-comments__signin a { font-weight: 800; color: var(--kp-purple); }
.po-comment-form { display: grid; gap: 10px; }
.po-comment-form label { font-weight: 800; color: var(--kp-ink); }
.po-comment-form textarea { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--kp-line); background: #fbfaff; font: inherit; font-size: 16px; resize: vertical; }
.po-comment-form textarea:focus { outline: none; border-color: var(--kp-purple); box-shadow: 0 0 0 4px rgba(75, 65, 141, .12); }
.po-comment-form .kp-btn { justify-self: start; }

.po-more { padding: 90px 0 110px; background: var(--kp-tint); }
.po-more__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.po-more__head h2 { margin: 0 !important; }
.po-more__head a { font-weight: 800; color: var(--kp-purple); }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .bl-feature { grid-template-columns: minmax(0, 1fr); }
    .bl-feature__img { min-height: 0; aspect-ratio: 16 / 9; }
    .bl-feature__body { padding: 30px 30px 34px; }
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .po-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 160px; }
    .po-side { display: none; }
    .po-toc-m { display: block; margin-bottom: 30px; border-radius: 20px; background: #fff; border: 1px solid var(--kp-line); }
    .po-toc-m summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; list-style: none; cursor: pointer; font-weight: 900; color: var(--kp-ink); }
    .po-toc-m summary::-webkit-details-marker { display: none; }
    .po-toc-m summary span { width: 10px; height: 10px; border-right: 2.5px solid var(--kp-purple); border-bottom: 2.5px solid var(--kp-purple); transform: rotate(45deg); transition: transform .2s ease; }
    .po-toc-m[open] summary span { transform: rotate(-135deg); }
    .po-toc-m ol { margin: 0; padding: 0 20px 16px 40px; }
    .po-toc-m li { padding: 5px 0; }
    .po-toc-m a { font-weight: 700; color: var(--kp-purple); }
    .po-body, .po-end, .po-comments { max-width: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
    .bl-hero { padding: 104px 0 26px; }
    .bl-hero::after { width: 300px; height: 240px; right: -90px; top: 40px; }
    .bl-hero h1 { font-size: 44px; }
    .bl-hero h1 span { white-space: normal; }
    .bl-hero__copy p { font-size: 17px; }
    .bl-search { padding-left: 46px; margin-top: 26px; }
    .bl-search > svg { left: 16px; }
    .bl-search input { font-size: 16px; }
    .bl-search button { padding: 11px 16px; }
    .bl-cats { flex-wrap: nowrap; overflow-x: auto; margin: 22px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
    .bl-cats::-webkit-scrollbar { display: none; }
    .bl-cats a { flex: none; padding: 9px 14px; font-size: 14px; }
    .bl-list { padding: 24px 0 72px; }
    .bl-feature { border-radius: 24px; margin-bottom: 22px; }
    .bl-feature__body { padding: 22px 20px 24px; gap: 10px; }
    .bl-feature__flag { top: 14px; left: 14px; }
    .bl-feature__text { font-size: 15.5px; }
    .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .bl-card { flex-direction: row; border-radius: 20px; }
    .bl-card__img { flex: none; width: 118px; aspect-ratio: auto; }
    .bl-card__img .bl-pill { display: none; }
    .bl-card__body { padding: 14px 16px; gap: 6px; }
    .bl-card__title { font-size: 16px; }
    .bl-card__text { display: none; }
    .bl-meta { font-size: 12.5px; gap: 4px 12px; }

    .po-hero { padding-top: 100px; }
    .po-hero h1 { font-size: 34px; }
    .po-cover { margin: 26px 0 -70px; border-radius: 22px; }
    .po-cover img { aspect-ratio: 4 / 3; }
    .po-layout { padding-top: 104px; }
    .po-body { font-size: 17.5px; line-height: 1.72; }
    .po-body > p:first-of-type { font-size: 19px; }
    .po-body h2 { margin-top: 42px; }
    .po-cta { flex-direction: column; align-items: stretch; padding: 26px 22px; }
    .po-cta .kp-btn { justify-content: center; }
    .po-more { padding: 64px 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-feature, .bl-feature img, .bl-card, .bl-card img { transition: none !important; }
}
