/* The blog and the news (resources/views/website/blog). Each page and card carries its topic's
   colours: --c (ink) and --bg (soft), from App\Support\Blog\BlogTopics / WrokeModules.
   Also inlined by `php artisan blog:preview`, so nothing here may depend on other site files. */

.wk-blog {
    --b-ink: #14231b;
    --b-text: #2b3a33;
    --b-muted: #63716a;
    --b-line: #e5ebe7;
    --b-soft: #f6f8f7;
    --b-green: #0F6939;
    color: var(--b-ink);
}

.wk-blog svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[dir="rtl"] .wk-blog .wk-flip {
    transform: none;
}

[dir="ltr"] .wk-blog .wk-flip {
    transform: scaleX(-1);
}

/* ---------- small pieces ---------- */
.wk-bchip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px 4px 5px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--c);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

[dir="rtl"] .wk-bchip {
    padding: 4px 5px 4px 11px;
}

.wk-bchip i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
}

.wk-bchip i svg {
    width: 14px;
    height: 14px;
}

.wk-bchip a {
    color: inherit;
    text-decoration: none;
    opacity: .75;
}

.wk-bchip a:hover {
    opacity: 1;
}

.wk-bchip.is-lg {
    padding: 6px 15px 6px 6px;
    background: #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 20px -12px color-mix(in srgb, var(--c) 50%, transparent);
    font-size: 14px;
}

[dir="rtl"] .wk-bchip.is-lg {
    padding: 6px 6px 6px 15px;
}

.wk-bchip.is-lg i {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--bg);
}

.wk-bchip.is-lg i svg {
    width: 17px;
    height: 17px;
}

.wk-bmeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    color: var(--b-muted);
    font-size: 13px;
}

.wk-bmeta > * + *::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-inline-end: 14px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    opacity: .6;
}

.wk-bmeta__soon {
    color: #b45309;
    font-weight: 700;
}

.wk-blog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 22px;
}

.wk-blog-head h2 {
    margin: 0;
    color: var(--b-ink);
    font-size: 24px;
    font-weight: 800;
}

.wk-blog-head a {
    color: var(--b-green);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.wk-blog-head a em {
    margin-inline-start: 6px;
    font-size: 12px;
}

/* ---------- drawn cover (a post without a picture) ---------- */
.wk-bart {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at var(--x) var(--y), color-mix(in srgb, var(--c) 22%, #fff) 0%, transparent 60%),
        linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 60%, #fff));
}

.wk-bart__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--c) 28%, transparent) 1.2px, transparent 1.4px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(70% 70% at var(--x) var(--y), #000, transparent 75%);
    mask-image: radial-gradient(70% 70% at var(--x) var(--y), #000, transparent 75%);
}

.wk-bart__orb {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, color-mix(in srgb, var(--c) 30%, #fff) 70%);
    opacity: .55;
    transform: translate(-50%, -50%);
    filter: blur(2px);
}

.wk-bart__ring {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 70%;
    aspect-ratio: 1;
    border: 1.5px dashed color-mix(in srgb, var(--c) 35%, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(var(--rot));
}

.wk-bart__ic {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #fff;
    color: var(--c);
    box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent);
    transform: translate(-50%, -50%) rotate(var(--rot));
}

.wk-bart__ic svg {
    width: 30px;
    height: 30px;
}

.wk-bart.is-big .wk-bart__ic {
    width: 96px;
    height: 96px;
    border-radius: 28px;
}

.wk-bart.is-big .wk-bart__ic svg {
    width: 44px;
    height: 44px;
}

/* ---------- index: hero ---------- */
.wk-blog-hero {
    padding: 136px 0 36px;
    text-align: center;
    background:
        radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%),
        linear-gradient(#fbfcfb, #fff);
}

.wk-blog-hero.is-short {
    padding-bottom: 20px;
}

.wk-blog-hero h1 {
    max-width: 820px;
    margin: 18px auto 12px;
    color: var(--b-ink);
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.wk-blog-hero > .container > p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--b-muted);
    font-size: 18px;
    line-height: 1.7;
}

.wk-blog-search {
    position: relative;
    display: block;
    max-width: 520px;
    margin: 28px auto 0;
}

.wk-blog-search svg {
    position: absolute;
    top: 50%;
    inset-inline-start: 18px;
    width: 20px;
    height: 20px;
    color: var(--b-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.wk-blog-search input {
    width: 100%;
    height: 54px;
    padding: 0 20px;
    padding-inline-start: 50px;
    border: 1px solid var(--b-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px -24px rgb(20 35 27 / 35%);
    color: var(--b-ink);
    font: inherit;
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}

.wk-blog-search input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--b-green) 50%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--b-green) 12%, transparent);
}

.wk-blog-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.wk-blog-topics a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--b-line);
    border-radius: 999px;
    background: #fff;
    color: var(--b-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}

.wk-blog-topics a i {
    display: grid;
    color: var(--c);
}

.wk-blog-topics a i svg {
    width: 16px;
    height: 16px;
}

.wk-blog-topics a:hover {
    border-color: color-mix(in srgb, var(--c, var(--b-green)) 40%, transparent);
}

.wk-blog-topics a.is-on {
    border-color: var(--c, var(--b-green));
    background: var(--bg, #e3f2e9);
    color: var(--c, var(--b-green));
}

/* ---------- index: cards ---------- */
.wk-blog-list {
    padding: 20px 0 40px;
}

.wk-bgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.wk-bcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--b-line);
    border-radius: 22px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wk-bcard:hover {
    border-color: color-mix(in srgb, var(--c) 30%, var(--b-line));
    box-shadow: 0 26px 50px -34px color-mix(in srgb, var(--c) 60%, rgb(20 35 27 / 40%));
    transform: translateY(-3px);
}

.wk-bcard__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
}

.wk-bcard__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.wk-bcard:hover .wk-bcard__media img {
    transform: scale(1.03);
}

.wk-bcard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px 22px;
}

.wk-bcard__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wk-bcard__flag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--b-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.wk-bcard h3 {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}

.wk-bcard h3 a {
    color: var(--b-ink);
    text-decoration: none;
}

/* the whole card opens the post */
.wk-bcard h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wk-bcard h3 a:focus-visible {
    outline: none;
}

.wk-bcard:has(h3 a:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--c) 50%, transparent);
    outline-offset: 2px;
}

.wk-bcard p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--b-muted);
    font-size: 15px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.wk-bcard .wk-bmeta {
    margin-top: auto;
    padding-top: 6px;
}

/* the featured one: picture and words side by side */
.wk-bcard.is-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    margin-bottom: 48px;
    border-radius: 28px;
}

.wk-bcard.is-wide .wk-bcard__media {
    aspect-ratio: auto;
    min-height: 340px;
}

.wk-bcard.is-wide .wk-bcard__body {
    justify-content: center;
    gap: 14px;
    padding: 40px 44px;
}

.wk-bcard.is-wide h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.3;
}

.wk-bcard.is-wide p {
    font-size: 17px;
    -webkit-line-clamp: 4;
}

.wk-bcard.is-wide .wk-bmeta {
    margin-top: 6px;
}

.wk-blog-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
    color: var(--b-muted);
    font-size: 14px;
}

.wk-blog-pages a {
    padding: 10px 18px;
    border: 1px solid var(--b-line);
    border-radius: 12px;
    color: var(--b-ink);
    font-weight: 700;
    text-decoration: none;
}

.wk-blog-pages a:hover {
    border-color: var(--b-green);
    color: var(--b-green);
}

/* search results */
.wk-blog-results {
    padding: 20px 0 60px;
}

.wk-bresults {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.wk-bresults li + li {
    border-top: 1px solid var(--b-line);
}

.wk-bresults a {
    display: grid;
    gap: 4px;
    padding: 18px 6px;
    color: var(--b-ink);
    text-decoration: none;
}

.wk-bresults a:hover strong {
    color: var(--b-green);
}

.wk-bresults small {
    color: var(--b-green);
    font-size: 12px;
    font-weight: 700;
}

.wk-bresults strong {
    font-size: 18px;
}

.wk-bresults span {
    color: var(--b-muted);
    font-size: 14px;
}

.wk-bresults__none {
    padding: 30px 0;
    color: var(--b-muted);
    text-align: center;
}

/* news on the blog page */
.wk-blog-news {
    padding: 30px 0 10px;
}

.wk-bnews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wk-bnews__item {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--b-line);
    border-radius: 16px;
    background: var(--b-soft);
    color: var(--b-ink);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.wk-bnews__item:hover {
    border-color: color-mix(in srgb, var(--b-green) 35%, transparent);
    background: #fff;
}

.wk-bnews__item time {
    color: var(--b-muted);
    font-size: 13px;
}

.wk-bnews__item strong {
    font-size: 16px;
    line-height: 1.5;
}

/* ---------- news list ---------- */
.wk-nlist {
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.wk-nlist__item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--b-line);
}

.wk-nlist__item:first-child {
    border-top: 0;
}

.wk-nlist__date {
    display: grid;
    gap: 2px;
    text-align: center;
}

.wk-nlist__date b {
    color: var(--b-green);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wk-nlist__date span {
    color: var(--b-muted);
    font-size: 13px;
}

.wk-nlist__body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.wk-nlist__body h2 a {
    color: var(--b-ink);
    text-decoration: none;
}

.wk-nlist__body h2 a:hover {
    color: var(--b-green);
}

.wk-nlist__body p {
    margin: 0 0 10px;
    color: var(--b-muted);
    font-size: 15px;
    line-height: 1.7;
}

.wk-nlist__more {
    color: var(--b-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.wk-nlist__more em {
    margin-inline-start: 6px;
    font-size: 11px;
}

.wk-nlist__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: var(--b-soft);
}

.wk-nlist__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- a post ---------- */
.wk-post-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1100;
    height: 3px;
    pointer-events: none;
}

.wk-post-progress span {
    display: block;
    height: 100%;
    background: var(--c);
    transform: scaleX(0);
    transform-origin: left;
}

[dir="rtl"] .wk-post-progress span {
    transform-origin: right;
}

.wk-post-head {
    padding: 128px 0 30px;
    background:
        radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%),
        linear-gradient(#fbfcfb, #fff);
}

.wk-post-head .container {
    max-width: 900px;
    text-align: center;
}

.wk-post-path {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--b-muted);
    font-size: 14px;
}

.wk-post-path a {
    color: var(--b-muted);
    text-decoration: none;
}

.wk-post-path a:hover {
    color: var(--c);
}

.wk-post-state {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 10px;
    background: #fff7e6;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.wk-post-head h1 {
    margin: 18px 0 14px;
    color: var(--b-ink);
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.015em;
}

[dir="rtl"] .wk-post-head h1 {
    line-height: 1.35;
    letter-spacing: 0;
}

.wk-post-lead {
    max-width: 720px;
    margin: 0 auto;
    color: var(--b-muted);
    font-size: 19px;
    line-height: 1.75;
}

.wk-post-by {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 24px;
    color: var(--b-muted);
    font-size: 14px;
}

.wk-post-by__pic {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px var(--b-line);
}

.wk-post-by__pic img {
    width: 20px;
    height: 20px;
}

.wk-post-by__who {
    color: var(--b-ink);
    font-weight: 700;
}

.wk-post-by__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

.wk-post-cover {
    max-width: 1100px;
    margin: 0 auto 50px;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg);
    box-shadow: 0 40px 80px -60px color-mix(in srgb, var(--c) 70%, rgb(20 35 27 / 50%));
}

.wk-post-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wk-post-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 720px);
    justify-content: center;
    gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
}

.wk-post-layout.no-toc {
    grid-template-columns: minmax(0, 720px);
}

.wk-post-aside {
    position: sticky;
    top: 100px;
    align-self: start;
    display: grid;
    gap: 28px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    scrollbar-width: thin;
}

.wk-post-toc__h {
    margin: 0 0 10px;
    color: var(--b-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.wk-post-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-inline-start: 2px solid var(--b-line);
}

.wk-post-toc a {
    display: block;
    margin-inline-start: -2px;
    padding: 6px 14px;
    border-inline-start: 2px solid transparent;
    color: var(--b-muted);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color .15s, border-color .15s;
}

.wk-post-toc a:hover {
    color: var(--b-ink);
}

.wk-post-toc a.is-on {
    border-color: var(--c);
    color: var(--c);
    font-weight: 700;
}

.wk-post-share__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wk-post-share__row a,
.wk-post-share__row button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--b-line);
    border-radius: 12px;
    background: #fff;
    color: var(--b-text);
    font-size: 15px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.wk-post-share__row a:hover,
.wk-post-share__row button:hover {
    border-color: var(--c);
    color: var(--c);
}

.wk-post-share__row button.is-done {
    border-color: var(--c);
    background: var(--bg);
    color: var(--c);
}

.wk-post-toc-m {
    display: none;
}

/* the article text */
.wk-post {
    min-width: 0;
    color: var(--b-text);
    font-size: 18px;
    line-height: 1.85;
}

[dir="rtl"] .wk-post {
    font-size: 18.5px;
    line-height: 2;
}

.wk-post > :first-child {
    margin-top: 0;
}

.wk-post p {
    margin: 0 0 1.15em;
}

.wk-post h2 {
    margin: 2.2em 0 .7em;
    color: var(--b-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    scroll-margin-top: 100px;
}

.wk-post h3 {
    margin: 1.8em 0 .5em;
    color: var(--b-ink);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.45;
    scroll-margin-top: 100px;
}

.wk-post a {
    color: var(--b-green);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--b-green) 35%, transparent);
    text-underline-offset: 3px;
}

.wk-post a:hover {
    text-decoration-color: currentColor;
}

.wk-post strong {
    color: var(--b-ink);
}

.wk-post ul,
.wk-post ol {
    margin: 0 0 1.2em;
    padding-inline-start: 1.4em;
}

.wk-post li {
    margin: .35em 0;
    padding-inline-start: .2em;
}

.wk-post li::marker {
    color: var(--c);
    font-weight: 700;
}

.wk-post blockquote {
    margin: 1.5em 0;
    padding: 4px 22px;
    border-inline-start: 4px solid var(--c);
    color: var(--b-ink);
}

.wk-post code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--b-soft);
    font-size: .88em;
}

.wk-post pre {
    padding: 18px 20px;
    overflow: auto;
    border-radius: 14px;
    background: #14231b;
    color: #e6efe9;
    font-size: 14px;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
}

.wk-post pre code {
    padding: 0;
    background: none;
}

.wk-post hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--b-line);
}

.wk-post-fig {
    margin: 2em 0;
}

.wk-post-fig img,
.wk-post p img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 0 0 1px var(--b-line), 0 24px 50px -36px rgb(20 35 27 / 45%);
}

.wk-post-fig figcaption {
    margin-top: 12px;
    color: var(--b-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.wk-post__table {
    margin: 1.8em 0;
    overflow-x: auto;
    border: 1px solid var(--b-line);
    border-radius: 16px;
}

.wk-post table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    line-height: 1.6;
}

.wk-post th {
    padding: 13px 16px;
    background: var(--b-soft);
    color: var(--b-ink);
    font-weight: 800;
    text-align: start;
    white-space: nowrap;
}

.wk-post td {
    padding: 12px 16px;
    border-top: 1px solid var(--b-line);
    vertical-align: top;
}

.wk-post tr:hover td {
    background: color-mix(in srgb, var(--bg) 35%, transparent);
}

/* blocks: takeaways */
.wk-post-takeaways {
    margin: 0 0 2.2em;
    padding: 24px 28px;
    border-radius: 22px;
    background: var(--bg);
    color: var(--b-ink);
}

.wk-post-takeaways__h {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px !important;
    color: var(--c);
    font-size: 15px;
    font-weight: 800;
}

.wk-post-takeaways__h svg {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    stroke-width: 2.6;
}

.wk-post-takeaways ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wk-post-takeaways li {
    position: relative;
    margin: .5em 0;
    padding-inline-start: 22px;
    font-size: 17px;
    line-height: 1.75;
}

.wk-post-takeaways li::before {
    content: "";
    position: absolute;
    top: .78em;
    inset-inline-start: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}

.wk-post-takeaways p:last-child {
    margin-bottom: 0;
}

/* blocks: note / tip / warning */
.wk-post-call {
    display: flex;
    gap: 14px;
    margin: 1.8em 0;
    padding: 18px 22px;
    border: 1px solid var(--k-line);
    border-radius: 18px;
    background: var(--k-bg);
    font-size: 16.5px;
    line-height: 1.8;
    --k-c: #2563eb;
    --k-bg: #f2f6fe;
    --k-line: #dbe6fb;
}

.wk-post-call.is-tip {
    --k-c: #0F6939;
    --k-bg: #f0f8f3;
    --k-line: #d4ebdc;
}

.wk-post-call.is-warning {
    --k-c: #b45309;
    --k-bg: #fff8ec;
    --k-line: #f8e3bf;
}

.wk-post-call__ic {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #fff;
    color: var(--k-c);
    box-shadow: 0 0 0 1px var(--k-line);
}

.wk-post-call__ic svg {
    width: 19px;
    height: 19px;
}

.wk-post-call__h {
    margin: 4px 0 4px !important;
    color: var(--k-c);
    font-size: 15px;
    font-weight: 800;
}

.wk-post-call p:last-child,
.wk-post-call ul:last-child {
    margin-bottom: 0;
}

/* blocks: definition */
.wk-post-def {
    position: relative;
    margin: 1.8em 0;
    padding: 24px 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--b-line), 0 24px 50px -40px color-mix(in srgb, var(--c) 70%, transparent);
    overflow: hidden;
}

.wk-post-def::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 5px;
    background: var(--c);
}

.wk-post-def__k {
    color: var(--c);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wk-post-def__term {
    margin: 4px 0 8px !important;
    color: var(--b-ink);
    font-size: 22px;
    font-weight: 800;
}

.wk-post-def p:last-child {
    margin-bottom: 0;
}

/* blocks: steps */
.wk-post-steps {
    margin: 1.8em 0;
    padding: 0 !important;
    list-style: none;
    counter-reset: wk-step;
}

.wk-post-steps > li {
    position: relative;
    margin: 0;
    padding: 0 0 26px;
    padding-inline-start: 62px;
    counter-increment: wk-step;
}

.wk-post-steps > li::before {
    content: counter(wk-step);
    position: absolute;
    top: 2px;
    inset-inline-start: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--c);
    color: #fff;
    font: 800 18px/1 Inter, sans-serif;
    box-shadow: 0 12px 24px -14px var(--c);
}

.wk-post-steps > li::after {
    content: "";
    position: absolute;
    top: 50px;
    bottom: 6px;
    inset-inline-start: 20px;
    width: 2px;
    background: linear-gradient(var(--bg), transparent);
}

.wk-post-steps > li:last-child::after {
    display: none;
}

.wk-post-steps > li > h3 {
    margin: 8px 0 6px;
    font-size: 20px;
}

.wk-post-steps > li > p:last-child {
    margin-bottom: 0;
}

/* blocks: stats */
.wk-post-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin: 1.8em 0;
}

.wk-post-stat {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 20px;
    border-radius: 18px;
    background: var(--b-soft);
    box-shadow: inset 0 0 0 1px var(--b-line);
}

.wk-post-stat b {
    color: var(--c);
    font: 800 32px/1.1 Inter, sans-serif;
    letter-spacing: -.02em;
}

.wk-post-stat span {
    color: var(--b-ink);
    font-size: 15px;
    line-height: 1.55;
}

.wk-post-stat small {
    color: var(--b-muted);
    font-size: 12px;
}

/* blocks: quote */
.wk-post-quote {
    position: relative;
    margin: 2.2em 0;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--bg), #fff);
}

.wk-post-quote > svg {
    width: 30px;
    height: 30px;
    color: var(--c);
}

.wk-post-quote blockquote {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    color: var(--b-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
}

.wk-post-quote blockquote p:last-child {
    margin: 0;
}

.wk-post-quote figcaption {
    margin-top: 12px;
    color: var(--b-muted);
    font-size: 14px;
    font-weight: 600;
}

/* blocks: faq */
.wk-post-faq {
    margin-top: 2.6em;
}

.wk-post-faq__q {
    border-bottom: 1px solid var(--b-line);
}

.wk-post-faq__q summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--b-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.wk-post-faq__q summary::-webkit-details-marker {
    display: none;
}

.wk-post-faq__q summary i {
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
}

.wk-post-faq__q summary i::before,
.wk-post-faq__q summary i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--c);
    transform: translate(-50%, -50%);
    transition: transform .2s;
}

.wk-post-faq__q summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.wk-post-faq__q[open] summary i::after {
    transform: translate(-50%, -50%) rotate(0);
}

.wk-post-faq__q > div {
    padding: 0 0 16px;
    font-size: 17px;
}

/* blocks: sources */
.wk-post-sources {
    margin-top: 2.4em;
    padding: 20px 24px;
    border-radius: 18px;
    background: var(--b-soft);
    font-size: 14.5px;
    line-height: 1.7;
}

.wk-post-sources h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.wk-post-sources ul,
.wk-post-sources ol {
    margin: 0;
}

.wk-post-sources a {
    font-weight: 500;
    word-break: break-word;
}

/* the part of Wroke a post points to (inside the article, or at its end) */
.wk-post-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 18px;
    align-items: center;
    margin: 2.2em 0;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--bg), #fff 80%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent);
}

.wk-post-cta__ic {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fff;
    color: var(--c);
    box-shadow: 0 14px 28px -18px var(--c);
}

.wk-post-cta__ic svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}

.wk-post-cta__name {
    margin: 0 0 2px !important;
    color: var(--b-ink);
    font-size: 18px;
    font-weight: 800;
}

.wk-post-cta__txt p {
    margin: 0;
    color: var(--b-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.wk-post-cta__btns {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wk-post .wk-post-cta__btns a {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.wk-post .wk-post-cta__go {
    background: var(--b-green);
    color: #fff;
}

.wk-post .wk-post-cta__go:hover {
    background: #0b5330;
}

.wk-post .wk-post-cta__more {
    background: #fff;
    color: var(--b-ink);
    box-shadow: inset 0 0 0 1px var(--b-line);
}

.wk-post .wk-post-cta__more:hover {
    color: var(--c);
}

.wk-post-cta.is-end {
    margin-top: 3em;
}

/* the author, at the end */
.wk-post-author {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 2.6em;
    padding-top: 26px;
    border-top: 1px solid var(--b-line);
}

.wk-post-author__pic {
    display: grid;
    flex: none;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px var(--b-line), 0 10px 24px -16px rgb(20 35 27 / 40%);
}

.wk-post-author__pic img {
    width: 32px;
    height: 32px;
}

.wk-post-author p {
    margin: 0;
    color: var(--b-muted);
    font-size: 15px;
    line-height: 1.7;
}

.wk-post-author .wk-post-author__name {
    color: var(--b-ink);
    font-size: 16px;
    font-weight: 800;
}

/* read next */
.wk-post-more {
    margin-top: 70px;
    padding: 60px 0 30px;
    background: linear-gradient(var(--b-soft), #fff);
}

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
    .wk-post-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .wk-bgrid,
    .wk-bnews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wk-bcard.is-wide {
        grid-template-columns: 1fr;
    }

    .wk-bcard.is-wide .wk-bcard__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .wk-bcard.is-wide .wk-bcard__body {
        padding: 26px 26px 28px;
    }

    .wk-post-layout,
    .wk-post-layout.no-toc {
        grid-template-columns: minmax(0, 1fr);
        max-width: 720px;
        gap: 0;
    }

    .wk-post-aside {
        display: none;
    }

    .wk-post-toc-m {
        display: block;
        margin: 0 0 30px;
        border: 1px solid var(--b-line);
        border-radius: 16px;
        background: var(--b-soft);
    }

    .wk-post-toc-m summary {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        color: var(--b-ink);
        font-weight: 800;
        cursor: pointer;
    }

    .wk-post-toc-m summary small {
        padding: 1px 8px;
        border-radius: 999px;
        background: var(--bg);
        color: var(--c);
        font-size: 12px;
    }

    .wk-post-toc-m ol {
        margin: 0;
        padding: 0 18px 16px;
        padding-inline-start: 38px;
        line-height: 1.6;
    }

    .wk-post-toc-m li {
        margin: 6px 0;
    }

    .wk-post-toc-m a {
        color: var(--b-text);
        text-decoration: none;
    }

    .wk-post-cover {
        aspect-ratio: 16 / 9;
        border-radius: 22px;
    }

    .wk-nlist__item {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .wk-nlist__media {
        display: none;
    }
}

@media (max-width: 640px) {
    .wk-blog-hero,
    .wk-post-head {
        padding-top: 110px;
    }

    .wk-bgrid,
    .wk-bnews {
        grid-template-columns: 1fr;
    }

    .wk-post {
        font-size: 17px;
    }

    [dir="rtl"] .wk-post {
        font-size: 17.5px;
        line-height: 1.95;
    }

    .wk-post h2 {
        font-size: 24px;
    }

    .wk-post-lead {
        font-size: 17px;
    }

    .wk-post-cover {
        margin-bottom: 30px;
        border-radius: 18px;
    }

    .wk-post-takeaways,
    .wk-post-def,
    .wk-post-quote {
        padding: 20px;
    }

    .wk-post-steps > li {
        padding-inline-start: 54px;
    }

    .wk-post-steps > li::before {
        width: 38px;
        height: 38px;
    }

    .wk-post-cta {
        padding: 20px;
    }

    .wk-nlist__item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wk-nlist__date {
        display: flex;
        gap: 8px;
        align-items: baseline;
        text-align: start;
    }

    .wk-nlist__date b {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wk-bcard,
    .wk-bcard__media img {
        transition: none;
    }
}
