/* QuickPaste blog — extends ../style.css (shares its colour tokens, nav, buttons, footer and FAQ styles) */

body.blog { background: var(--bg-base); }

/* ---------- Shared layout ---------- */
.blog-main { padding: 130px 0 40px; }
.blog-container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.article { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.nav-links a.is-active { color: var(--text-primary); }
.logo { text-decoration: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.6rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs [aria-current] { color: var(--text-primary); }

/* ---------- Article header ---------- */
.article-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-accent);
    background: rgba(115, 103, 240, 0.12);
    border: 1px solid rgba(115, 103, 240, 0.35);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 1.2rem;
}
.article h1 {
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}
.article-lede { font-size: 1.2rem; line-height: 1.65; color: #c9c9d1; margin-bottom: 1.4rem; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
    font-size: 0.88rem; color: var(--text-secondary);
    padding-bottom: 1.6rem; border-bottom: 1px solid var(--border-color);
}
.article-meta strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Key takeaways + TOC ---------- */
.tldr {
    margin: 2rem 0 1.4rem;
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(115, 103, 240, 0.14), rgba(20, 20, 23, 0.9));
    border: 1px solid rgba(115, 103, 240, 0.4);
}
.tldr h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--theme-accent); margin-bottom: 0.7rem; }
.tldr ul { margin-left: 1.15rem; }
.tldr li { color: #dcdce2; margin: 0.4rem 0; line-height: 1.55; }

.toc {
    margin: 0 0 2.4rem;
    padding: 1.2rem 1.6rem;
    border-radius: 14px;
    background: var(--app-card);
    border: 1px solid var(--border-color);
}
.toc h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.6rem; }
.toc ol { list-style: none; margin-left: 0; }
.toc li { margin: 0.3rem 0; color: var(--text-secondary); }
.toc a { color: #cfcfd8; text-decoration: none; font-size: 0.95rem; }
.toc a:hover { color: var(--theme-accent); }

/* ---------- Article body typography ---------- */
.article-body { font-size: 1.06rem; line-height: 1.8; color: #d4d4da; }
.article-body p { font-size: 1.06rem; line-height: 1.8; color: #d4d4da; margin: 0 0 1.25rem; }
.article-body h2 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    line-height: 1.25; font-weight: 750; letter-spacing: -0.02em;
    margin: 3rem 0 1rem; color: #fff; scroll-margin-top: 100px;
}
.article-body h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; margin: 2rem 0 0.7rem; color: #fff; scroll-margin-top: 100px; }
.article-body a { color: #a59dff; text-decoration: underline; text-decoration-color: rgba(165, 157, 255, 0.4); text-underline-offset: 3px; }
.article-body a:hover { color: #fff; text-decoration-color: #fff; }
.article-body strong { color: #fff; font-weight: 650; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem 1.4rem; }
.article-body li { margin: 0.5rem 0; padding-left: 0.2rem; }
.article-body li::marker { color: var(--theme-accent); }
.article-body blockquote {
    margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.2rem;
    border-left: 3px solid var(--theme-accent); color: #e4e4ea; font-style: italic;
}
.article-body hr { border: 0; border-top: 1px solid var(--border-color); margin: 2.5rem 0; }
.article-body code {
    font-family: "Cascadia Code", "SF Mono", Consolas, monospace;
    font-size: 0.9em; background: #17171b; border: 1px solid var(--border-color);
    padding: 0.12em 0.4em; border-radius: 5px; color: #e9e6ff;
}
kbd {
    font-family: "Segoe UI", sans-serif; font-size: 0.85em; font-weight: 600;
    background: #1b1b20; border: 1px solid #3a3a42; border-bottom-width: 2px;
    border-radius: 6px; padding: 0.1em 0.5em; color: #fff; white-space: nowrap;
}

/* ---------- Tables ---------- */
.table-wrap {
    margin: 1.8rem 0 2rem; overflow-x: auto;
    border: 1px solid var(--border-color); border-radius: 12px; background: var(--app-card);
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.article-body th {
    text-align: left; padding: 0.85rem 1rem; font-size: 0.72rem; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
.article-body td { padding: 0.85rem 1rem; vertical-align: top; color: #d4d4da; line-height: 1.5; }
.article-body tbody tr:not(:last-child) td { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.article-body td:first-child { color: #fff; font-weight: 600; }
.article-body .hl { background: rgba(115, 103, 240, 0.1); }
.article-body th.hl { color: var(--theme-accent); }
.article-body td.hl { color: #fff; }
.article-body tr.hl-row td { background: rgba(115, 103, 240, 0.1); }

/* ---------- Callouts ---------- */
.callout {
    margin: 1.8rem 0; padding: 1.1rem 1.4rem; border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color);
    border-left: 3px solid var(--theme-accent);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout p { font-size: 1rem !important; }
.callout.disclosure { border-left-color: #eab308; background: rgba(234, 179, 8, 0.06); }
.callout.tip { border-left-color: var(--success); background: rgba(16, 185, 129, 0.06); }

/* ---------- FAQ + CTA + related ---------- */
.article-faq { margin: 3.2rem 0 0; }
.article-faq > h2 { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.article-faq .faq-item p { font-size: 0.98rem; line-height: 1.7; }

.qp-cta {
    margin: 3.4rem 0 0; padding: 2.2rem 2rem; border-radius: 18px; text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(115, 103, 240, 0.28), rgba(20, 20, 23, 0.95) 65%);
    border: 1px solid rgba(115, 103, 240, 0.55);
    box-shadow: 0 0 40px rgba(115, 103, 240, 0.16);
}
.qp-cta .qp-cta-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--theme-accent); margin-bottom: 0.8rem;
}
.qp-cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.qp-cta p { font-size: 1rem; line-height: 1.65; color: #c9c9d1; max-width: 560px; margin: 0 auto 1.4rem; }
.qp-cta p a { color: #fff; }
.qp-cta .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.qp-cta .btn { padding: 0.85rem 1.6rem; }

.author-box {
    display: flex; gap: 1rem; align-items: flex-start; margin: 2.6rem 0 0;
    padding: 1.2rem 1.4rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--app-card);
}
.author-avatar {
    flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--theme-accent);
    display: grid; place-items: center; font-size: 1.3rem;
}
.author-box p { font-size: 0.92rem; line-height: 1.6; margin: 0; color: var(--text-secondary); }
.author-box strong { color: #fff; }
.author-box a { color: #a59dff; }

.related { margin: 3.4rem 0 0; }
.related > h2 { font-size: 1.3rem; font-weight: 750; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ---------- Post cards (index, related, home teaser) ---------- */
.post-card {
    display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem;
    background: var(--app-card); border: 1px solid var(--border-color); border-radius: 14px;
    text-decoration: none; color: inherit; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(115, 103, 240, 0.6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.post-card .pc-cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--theme-accent); }
.post-card h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; color: #fff; margin: 0; }
.post-card p { font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.post-card .pc-meta { margin-top: auto; padding-top: 0.5rem; font-size: 0.8rem; color: #8b8b95; }
.post-card.compact { padding: 1rem 1.1rem; }
.post-card.compact h3 { font-size: 0.98rem; }

/* ---------- Blog index ---------- */
.blog-hero { text-align: center; max-width: 780px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.blog-hero .eyebrow-title { font-size: 0.85rem; margin-bottom: 0.9rem; }
.blog-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1rem; }
.blog-hero p { font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

.featured-post {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; margin-bottom: 2.4rem;
    border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
    background: var(--app-card); border: 1px solid rgba(115, 103, 240, 0.5);
    box-shadow: 0 0 40px rgba(115, 103, 240, 0.12); transition: transform 0.25s ease;
}
.featured-post:hover { transform: translateY(-3px); }
.featured-art {
    min-height: 260px; padding: 1.4rem; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(115, 103, 240, 0.5), rgba(10, 10, 12, 1) 70%);
}
.featured-art img { width: 100%; height: auto; max-width: 420px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.featured-copy { padding: 2rem 2rem; display: flex; flex-direction: column; justify-content: center; gap: 0.8rem; }
.featured-copy .pc-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--theme-accent); }
.featured-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.featured-copy p { font-size: 1rem; line-height: 1.6; }
.featured-copy .pc-meta { font-size: 0.82rem; color: #8b8b95; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.blog-cta-strip { margin: 3.5rem 0 0; }

/* ---------- Home page teaser (added to index.html) ---------- */
.home-blog .post-grid { margin-top: 2.4rem; }
.home-blog-more { text-align: center; margin-top: 2rem; }
.home-blog-more a { color: var(--text-primary); font-weight: 600; text-decoration: none; }
.home-blog-more a:hover { color: var(--theme-accent); }

/* ---------- Footer links ---------- */
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; width: 100%; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .post-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-post { grid-template-columns: 1fr; }
    .featured-art { min-height: 0; padding: 1.2rem; }
}
@media (max-width: 620px) {
    .blog-main { padding-top: 110px; }
    .post-grid, .related-grid { grid-template-columns: 1fr; }
    .article-lede { font-size: 1.08rem; }
    .qp-cta { padding: 1.8rem 1.2rem; }
    .tldr, .toc { padding: 1.1rem 1.15rem; }
    .author-box { flex-direction: column; }
}

/* Guard against long unbreakable tokens stretching grid columns */
.post-grid > *, .related-grid > * { min-width: 0; }
.post-card h3, .post-card p, .featured-copy h2, .featured-copy p { overflow-wrap: anywhere; }

/* =====================================================================
   Blog cards v2: each card has its own coloured art panel, a clear border,
   depth and a hover glow so every card reads as a separate object.
   ===================================================================== */
.post-grid { gap: 1.9rem; }
.post-grid[hidden], .grid-empty[hidden], .featured-post[hidden], .bcard[hidden] { display: none !important; }

.bcard {
    --c-rgb: 115, 103, 240;
    position: relative;
    display: flex; flex-direction: column;
    border-radius: 22px; overflow: hidden;
    text-decoration: none; color: inherit;
    background: linear-gradient(180deg, #1a1a20 0%, #121216 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 22px 44px -22px rgba(0, 0, 0, 0.95),
        0 0 0 4px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.bcard:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--c-rgb), 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 0 0 1px rgba(var(--c-rgb), 0.55),
        0 30px 60px -20px rgba(var(--c-rgb), 0.5);
}
.bcard:focus-visible { outline: 2px solid rgb(var(--c-rgb)); outline-offset: 3px; }

/* --- art panel --- */
.bcard-art {
    position: relative; height: 168px; overflow: hidden;
    background:
        radial-gradient(120% 150% at 0% 0%, rgba(var(--c-rgb), 0.62) 0%, rgba(var(--c-rgb), 0.16) 46%, transparent 76%),
        linear-gradient(140deg, #202029 0%, #0c0c0f 100%);
    border-bottom: 1px solid rgba(var(--c-rgb), 0.45);
}
.bcard-art::before {                      /* dot grid */
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.3px);
    background-size: 17px 17px;
    -webkit-mask-image: linear-gradient(115deg, #000 0%, transparent 72%);
            mask-image: linear-gradient(115deg, #000 0%, transparent 72%);
}
.bcard-art::after {                       /* soft rings, bottom-right */
    content: ""; position: absolute; width: 190px; height: 190px; right: -56px; bottom: -104px; border-radius: 50%;
    background: rgba(var(--c-rgb), 0.2);
    border: 1px solid rgba(var(--c-rgb), 0.75);
    box-shadow: 0 0 0 28px rgba(var(--c-rgb), 0.11), 0 0 0 58px rgba(var(--c-rgb), 0.06);
}
.bcard-chip {
    position: absolute; top: 16px; left: 18px; z-index: 2;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    color: #fff; background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(var(--c-rgb), 0.75); border-radius: 999px; padding: 0.3rem 0.75rem;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.bcard-num {
    position: absolute; top: 6px; right: 16px; z-index: 1;
    font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
}
.bcard-icon {
    position: absolute; left: 20px; bottom: 18px; z-index: 2;
    width: 70px; height: 70px; border-radius: 20px;
    display: grid; place-items: center; font-size: 2.2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 30px rgba(var(--c-rgb), 0.45);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.bcard:hover .bcard-icon { transform: scale(1.1) rotate(-4deg); }

/* --- body --- */
.bcard-body { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; padding: 1.5rem 1.6rem 1.3rem; }
.bcard-body h3 {
    font-size: 1.26rem; line-height: 1.28; font-weight: 750; letter-spacing: -0.015em; color: #fff; margin: 0;
    overflow-wrap: anywhere;
}
.bcard-body p {
    font-size: 0.94rem; line-height: 1.6; color: #a9a9b3; margin: 0; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.bcard-foot {
    margin-top: auto; padding-top: 1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
}
.bcard-time { color: #8b8b95; }
.bcard-go { color: color-mix(in srgb, rgb(var(--c-rgb)) 55%, #fff); font-weight: 700; white-space: nowrap; }
.bcard-go i { display: inline-block; font-style: normal; transition: transform 0.25s ease; }
.bcard:hover .bcard-go i { transform: translateX(5px); }

/* compact variant (related articles) */
.bcard.compact { border-radius: 18px; }
.bcard.compact .bcard-art { height: 92px; }
.bcard.compact .bcard-num { font-size: 2.2rem; top: 8px; right: 14px; }
.bcard.compact .bcard-icon { width: 52px; height: 52px; font-size: 1.6rem; border-radius: 15px; left: 16px; bottom: 12px; }
.bcard.compact .bcard-chip { top: 12px; left: 14px; font-size: 0.62rem; }
.bcard.compact .bcard-body { padding: 1.1rem 1.2rem 1rem; }
.bcard.compact .bcard-body h3 { font-size: 1.02rem; }
.bcard.compact .bcard-body p { display: none; }
.bcard.compact .bcard-foot { padding-top: 0.75rem; margin-top: 0.3rem; }

/* --- section heading + filter chips --- */
.grid-head {
    display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem 2rem;
    margin: 4rem 0 1.8rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border-color);
}
.grid-kicker { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; color: var(--theme-accent); margin-bottom: 0.4rem; }
.grid-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
    --c-rgb: 115, 103, 240;
    font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    color: #cfcfd8; background: #16161a; border: 1px solid #2f2f37; border-radius: 999px;
    padding: 0.5rem 1rem; transition: all 0.2s ease;
}
.chip b { font-weight: 700; opacity: 0.6; margin-left: 0.25rem; }
.chip:hover { border-color: rgba(var(--c-rgb), 0.9); color: #fff; }
.chip.is-on { background: rgb(var(--c-rgb)); border-color: rgb(var(--c-rgb)); color: #fff; box-shadow: 0 6px 20px rgba(var(--c-rgb), 0.4); }
.chip.is-on b { opacity: 0.85; }
.grid-empty { text-align: center; color: var(--text-secondary); padding: 2rem 0; }

/* featured card: match the new depth */
.featured-post { border-color: rgba(115, 103, 240, 0.7); box-shadow: 0 0 0 4px rgba(115, 103, 240, 0.07), 0 30px 70px -30px rgba(115, 103, 240, 0.55); }

@media (max-width: 620px) {
    .post-grid { gap: 1.5rem; }
    .bcard-art { height: 150px; }
    .grid-head { margin-top: 3rem; }
    .chip-row { gap: 0.45rem; }
    .chip { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
}

/* promo card that fills the last grid slot */
.bcard-promo { border-color: rgba(115, 103, 240, 0.75); background: linear-gradient(180deg, #1d1b3a 0%, #121216 100%); }
.bcard-promo .bcard-art { background: radial-gradient(120% 150% at 0% 0%, rgba(115, 103, 240, 0.9) 0%, rgba(115, 103, 240, 0.25) 50%, transparent 80%), linear-gradient(140deg, #26244d 0%, #0c0c0f 100%); }
.bcard-promo .bcard-num { font-size: 2.6rem; top: 12px; }
.bcard-promo .bcard-go { color: #fff; background: var(--theme-accent); padding: 0.4rem 0.85rem; border-radius: 999px; }

.bcard[data-cat="hood"] .bcard-go { color: #fb923c; }

/* =====================================================================
   Cover cards (blog index, homepage teaser and "Keep reading" boxes).
   A coloured gradient cover in each article's own accent, on the site's dark theme.
   ===================================================================== */
.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cv-grid > * { min-width: 0; }
.cv-grid .cv[hidden], .cv[hidden] { display: none !important; }
.cv {
    --c-rgb: 115, 103, 240;
    display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: linear-gradient(180deg, #17171d, #101014);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 22px 44px -24px rgba(0, 0, 0, 0.95);
    text-decoration: none; color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cv:hover {
    transform: translateY(-6px); border-color: rgba(var(--c-rgb), 0.7);
    box-shadow: 0 0 0 1px rgba(var(--c-rgb), 0.45), 0 34px 60px -28px rgba(var(--c-rgb), 0.7);
}
.cv:focus-visible { outline: 2px solid rgb(var(--c-rgb)); outline-offset: 3px; }
.cv-cover {
    position: relative; height: 156px; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--c-rgb), 0.95), rgba(var(--c-rgb), 0.5) 75%, rgba(var(--c-rgb), 0.3));
}
.cv-cover::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); right: -64px; top: -96px; }
.cv-cover::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, 0.09); left: -44px; bottom: -76px; }
.cv-cover span { position: relative; z-index: 1; font-size: 3.5rem; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3)); transition: transform 0.3s ease; }
.cv:hover .cv-cover span { transform: scale(1.1) rotate(-4deg); }
.cv-cover em {
    position: absolute; left: 14px; top: 12px; z-index: 2; font-style: normal;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.7rem; border-radius: 99px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cv-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.cv-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.015em; color: #fff; overflow-wrap: anywhere; }
.cv-body p { margin: 0; color: #a9a9b6; font-size: 0.92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cv-f { margin-top: auto; padding-top: 0.7rem; display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; color: #8b8b95; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.cv-f b { color: rgb(var(--c-rgb)); font-weight: 700; filter: brightness(1.35); white-space: nowrap; }
.cv.wide { grid-column: span 3; flex-direction: row; }
.cv.wide .cv-cover { width: 38%; height: auto; min-height: 230px; flex: 0 0 38%; }
.cv.wide .cv-cover span { font-size: 5.4rem; }
.cv.wide .cv-body { padding: 2rem 2.2rem; justify-content: center; }
.cv.wide h3 { font-size: 1.9rem; line-height: 1.15; }
.cv.wide p { font-size: 1rem; -webkit-line-clamp: 4; }
.cv.compact .cv-cover { height: 96px; }
.cv.compact .cv-cover span { font-size: 2.3rem; }
.cv.compact .cv-body { padding: 1rem 1.2rem 1.1rem; }
.cv.compact h3 { font-size: 1rem; }
.cv.compact p { display: none; }

/* search box on the blog index */
.cv-search { position: relative; max-width: 520px; margin: 1.8rem auto 1rem; }
.cv-search input {
    width: 100%; background: #0e0e13; border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 14px;
    padding: 0.95rem 1.1rem 0.95rem 2.9rem; color: #fff; font: inherit; outline: 0;
    box-shadow: 0 14px 34px -22px rgba(115, 103, 240, 0.7);
}
.cv-search input::placeholder { color: #7d7d8a; }
.cv-search input:focus { border-color: var(--theme-accent); box-shadow: 0 0 0 3px rgba(115, 103, 240, 0.25); }
.cv-search::before { content: "\1F50D"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 0.95rem; opacity: 0.8; pointer-events: none; }
.blog-hero .chip-row { justify-content: center; }
.blog-container .guide-banner { margin-top: 2rem; }

.home-blog .cv-grid { margin-top: 2.4rem; }
@media (max-width: 900px) {
    .cv-grid { grid-template-columns: repeat(2, 1fr); }
    .cv.wide { grid-column: span 2; flex-direction: column; }
    .cv.wide .cv-cover { width: 100%; flex-basis: auto; min-height: 170px; }
}
@media (max-width: 620px) {
    .cv-grid { grid-template-columns: 1fr; }
    .cv.wide { grid-column: span 1; }
    .cv.wide h3 { font-size: 1.4rem; }
}

/* compact cards: keep the chip and the emoji from overlapping */
.cv.compact .cv-cover { justify-items: end; padding-right: 1.3rem; }
.cv.compact .cv-cover em { font-size: 0.6rem; padding: 0.2rem 0.55rem; }
.cv.compact .cv-cover span { font-size: 2.1rem; }
