.blog-page {
    --bl-primary: var(--primary, #00aff0);
    --bl-title: #111827;
    --bl-text: #374151;
    --bl-muted: #6b7280;
    --bl-bg: #ffffff;
    --bl-alt: #f5f7fa;
    --bl-surface: #ffffff;
    --bl-border: #e5e7eb;
    --bl-chip: #eef6fb;
    --bl-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    --bl-shadow-hover: 0 18px 44px rgba(17, 24, 39, 0.12);
    --bl-radius: 14px;
    background: var(--bl-bg);
    color: var(--bl-text);
    padding-bottom: 1px;
}

.blog-page.blog-dark {
    --bl-title: #f3f4f6;
    --bl-text: #d1d5db;
    --bl-muted: #9ca3af;
    --bl-bg: #0f1117;
    --bl-alt: #151821;
    --bl-surface: #181b25;
    --bl-border: rgba(255, 255, 255, 0.09);
    --bl-chip: rgba(0, 175, 240, 0.12);
    --bl-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --bl-shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.blog-page a {
    color: inherit;
}

.blog-page a:hover {
    text-decoration: none;
}

.blog-container-narrow {
    max-width: 860px;
}

/* ---------- Sub navigation ---------- */
.blog-subnav {
    position: relative;
    z-index: 3;
    background: var(--bl-surface);
    border-bottom: 1px solid var(--bl-border);
}

.blog-subnav-inner {
    display: flex;
    align-items: center;
    min-height: 56px;
    gap: 1.25rem;
}

.blog-subnav-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--bl-title) !important;
    white-space: nowrap;
}

.blog-subnav-toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--bl-title);
    padding: 0.35rem;
}

.blog-subnav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
    min-width: 0;
}

.blog-subnav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.blog-subnav-item {
    position: relative;
}

.blog-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bl-muted) !important;
    transition: color 0.15s ease, background 0.15s ease;
}

.blog-subnav-link:hover,
.blog-subnav-link.active {
    color: var(--bl-primary) !important;
    background: var(--bl-chip);
}

.blog-subnav-caret {
    width: 0;
    height: 0;
    margin-left: 0.35rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.blog-subnav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: 12px;
    box-shadow: var(--bl-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.15s ease;
    z-index: 5;
}

.blog-subnav-item.has-children:hover .blog-subnav-dropdown,
.blog-subnav-item.has-children:focus-within .blog-subnav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blog-subnav-dropdown a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--bl-text) !important;
}

.blog-subnav-dropdown a:hover,
.blog-subnav-dropdown a.active {
    background: var(--bl-chip);
    color: var(--bl-primary) !important;
}

.blog-search {
    display: flex;
    align-items: center;
    background: var(--bl-alt);
    border: 1px solid var(--bl-border);
    border-radius: 999px;
    padding: 0 0.35rem 0 0.9rem;
    min-width: 220px;
}

.blog-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--bl-title);
    font-size: 0.9rem;
    height: 38px;
    outline: none;
    min-width: 0;
}

.blog-search button {
    border: 0;
    background: none;
    color: var(--bl-muted);
    width: 32px;
    height: 32px;
    padding: 0;
}

.blog-search-lg {
    max-width: 560px;
    margin-top: 1.25rem;
}

.blog-search-lg input {
    height: 48px;
    font-size: 1rem;
}

/* ---------- Intro / hero ---------- */
.blog-intro {
    padding: 2.75rem 0 1.25rem;
}

.blog-intro-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--bl-title);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.blog-intro-lead {
    font-size: 1.1rem;
    color: var(--bl-muted);
    margin: 0;
}

.blog-hero {
    padding: 1rem 0 2.5rem;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    align-items: start;
}

.blog-hero-side {
    display: grid;
    gap: 1.5rem;
}

/* ---------- Cards ---------- */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    overflow: hidden;
    box-shadow: var(--bl-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bl-shadow-hover);
}

.blog-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bl-alt);
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}

.blog-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--bl-primary), #7c5cff);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem 1.2rem 1.25rem;
}

.blog-card-category {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bl-primary) !important;
    margin-bottom: 0.45rem;
}

.blog-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bl-title);
    margin: 0 0 0.5rem;
}

.blog-card-title a {
    color: var(--bl-title) !important;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.25s ease;
}

.blog-card:hover .blog-card-title a {
    background-size: 100% 1px;
}

.blog-card-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--bl-muted);
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--bl-muted);
}

.blog-card-large .blog-card-title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.25;
}

.blog-card-large .blog-card-body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.blog-card-side .blog-card-title {
    font-size: 1.02rem;
}

.blog-card-compact .blog-card-title {
    font-size: 0.98rem;
}

/* ---------- Sections & grids ---------- */
.blog-section {
    padding: 2.25rem 0;
}

.blog-section + .blog-section {
    border-top: 1px solid var(--bl-border);
}

.blog-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.blog-section-title {
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 800;
    color: var(--bl-title);
    margin: 0;
    letter-spacing: -0.01em;
}

.blog-section-title a {
    color: var(--bl-title) !important;
}

.blog-section-all {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bl-primary) !important;
    white-space: nowrap;
}

.blog-section-all svg {
    stroke: currentColor;
}

.blog-grid {
    display: grid;
    gap: 1.5rem;
}

.blog-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

.blog-sticky {
    position: sticky;
    top: calc(var(--ga-h, 0px) + 90px);
}

/* ---------- Widgets ---------- */
.blog-widget {
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    padding: 1.25rem 1.25rem 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-widget-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bl-title);
    margin: 0 0 1rem;
}

.blog-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-trending-list li {
    display: flex;
    gap: 0.85rem;
    padding: 0 0 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--bl-border);
}

.blog-trending-list li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.blog-trending-rank {
    flex-shrink: 0;
    width: 30px;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bl-primary);
    opacity: 0.85;
}

.blog-trending-body .blog-card-category {
    margin-bottom: 0.2rem;
}

.blog-trending-link {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bl-title) !important;
}

.blog-trending-link:hover {
    color: var(--bl-primary) !important;
}

/* ---------- Pagination ---------- */
.blog-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-top: 2rem;
}

.blog-pagination-pages {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--bl-muted);
}

.blog-pagination-pages a {
    color: var(--bl-primary) !important;
    font-weight: 600;
}

.blog-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    border: 1px dashed var(--bl-border);
    border-radius: var(--bl-radius);
    color: var(--bl-muted);
}

.blog-empty h2,
.blog-empty h3 {
    color: var(--bl-title);
    font-weight: 700;
}

/* ---------- Archive header ---------- */
.blog-archive-head {
    position: relative;
    padding: 2.25rem 0 2rem;
    background: var(--bl-alt);
    border-bottom: 1px solid var(--bl-border);
}

.blog-archive-head.has-image {
    background: linear-gradient(90deg, rgba(10, 12, 20, 0.85), rgba(10, 12, 20, 0.55)), var(--blog-archive-image) center / cover no-repeat;
    color: #fff;
}

.blog-archive-head.has-image .blog-archive-title,
.blog-archive-head.has-image .blog-archive-lead,
.blog-archive-head.has-image .blog-breadcrumbs,
.blog-archive-head.has-image .blog-breadcrumbs a {
    color: #fff !important;
}

.blog-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bl-primary);
    margin-bottom: 0.35rem;
}

.blog-archive-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--bl-title);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.blog-archive-title small {
    font-size: 55%;
    color: var(--bl-muted);
    font-weight: 600;
}

.blog-archive-lead {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bl-muted);
    margin: 0;
}

.blog-author-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.blog-author-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bl-surface);
    box-shadow: var(--bl-shadow);
}

.blog-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.82rem;
    color: var(--bl-muted);
}

.blog-breadcrumbs li + li::before {
    content: "/";
    margin: 0 0.5rem;
    opacity: 0.6;
}

.blog-breadcrumbs a {
    color: var(--bl-muted) !important;
}

.blog-breadcrumbs a:hover {
    color: var(--bl-primary) !important;
}

.blog-chips,
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.blog-chip {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--bl-chip);
    color: var(--bl-primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.blog-chip:hover {
    background: var(--bl-primary);
    color: #fff !important;
}

/* ---------- Article ---------- */
.blog-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1050;
    pointer-events: none;
}

.blog-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--bl-primary), #7c5cff);
    transition: width 0.1s linear;
}

.blog-preview-banner {
    background: #fff4d6;
    color: #7a5200;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

.blog-article-head {
    padding: 2.25rem 0 1.5rem;
    text-align: center;
}

.blog-article-head .blog-breadcrumbs ol {
    justify-content: center;
}

.blog-article-category {
    align-self: center;
    margin-bottom: 0.8rem;
}

.blog-article-title {
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--bl-title);
    margin: 0 auto 1rem;
    max-width: 820px;
}

.blog-article-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--bl-muted);
    max-width: 720px;
    margin: 0 auto 1.4rem;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.88rem;
    color: var(--bl-muted);
}

.blog-article-meta-item {
    display: inline-flex;
    align-items: center;
}

.blog-article-meta svg,
.blog-toc summary svg {
    stroke: currentColor;
}

.blog-article-author {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--bl-title) !important;
}

.blog-article-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-article-cover {
    margin: 0 auto 2.25rem;
    max-width: 1140px;
}

.blog-article-cover img {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--bl-shadow);
}

.blog-article-cover figcaption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--bl-muted);
    margin-top: 0.6rem;
}

.blog-article-layout {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 2rem;
}

.blog-article-main {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.blog-share-vertical .blog-share-buttons {
    flex-direction: column;
}

/* Content typography */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bl-text);
    word-wrap: break-word;
}

.blog-content > *:first-child {
    margin-top: 0;
}

.blog-content p {
    margin: 0 0 1.4rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--bl-title);
    font-weight: 800;
    line-height: 1.3;
    scroll-margin-top: 150px;
}

.blog-content h2 {
    font-size: 1.7rem;
    margin: 2.5rem 0 1rem;
}

.blog-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.8rem;
}

.blog-content h4 {
    font-size: 1.15rem;
    margin: 1.6rem 0 0.6rem;
}

.blog-content a {
    color: var(--bl-primary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0.5rem 0;
}

.blog-content figure {
    margin: 1.75rem 0;
}

.blog-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--bl-muted);
    margin-top: 0.5rem;
}

.blog-content blockquote {
    margin: 2rem 0;
    padding: 1.1rem 1.5rem;
    border-left: 4px solid var(--bl-primary);
    background: var(--bl-alt);
    border-radius: 0 12px 12px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--bl-title);
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content ul,
.blog-content ol {
    margin: 0 0 1.4rem;
    padding-left: 1.4rem;
}

.blog-content li {
    margin-bottom: 0.45rem;
}

.blog-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.blog-content code {
    font-size: 0.9em;
}

.blog-content hr {
    border: 0;
    border-top: 1px solid var(--bl-border);
    margin: 2.5rem 0;
}

.blog-content iframe,
.blog-content video {
    max-width: 100%;
    border-radius: 12px;
}

.blog-content iframe[src*="youtube"],
.blog-content iframe[src*="vimeo"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.blog-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.5rem;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.blog-content th,
.blog-content td {
    border: 1px solid var(--bl-border);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.blog-content th {
    background: var(--bl-alt);
    color: var(--bl-title);
}

/* TOC */
.blog-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-toc li {
    margin: 0;
}

.blog-toc a {
    display: block;
    padding: 0.35rem 0 0.35rem 0.8rem;
    border-left: 2px solid var(--bl-border);
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--bl-muted) !important;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.blog-toc a:hover,
.blog-toc a.active {
    color: var(--bl-primary) !important;
    border-left-color: var(--bl-primary);
}

.blog-toc-level-3 a {
    padding-left: 1.6rem;
    font-size: 0.84rem;
}

.blog-toc-side {
    margin-bottom: 1.5rem;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
}

.blog-toc-inline {
    display: none;
    background: var(--bl-alt);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.75rem;
}

.blog-toc-inline summary {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--bl-title);
    cursor: pointer;
    list-style: none;
}

.blog-toc-inline summary::-webkit-details-marker {
    display: none;
}

.blog-toc-inline[open] summary {
    margin-bottom: 0.75rem;
}

/* Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-share-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bl-title);
}

.blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--bl-border);
    background: var(--bl-surface);
    color: var(--bl-muted) !important;
    padding: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.blog-share-btn svg {
    fill: currentColor;
}

.blog-share-btn:hover {
    color: #fff !important;
    background: var(--bl-primary);
    border-color: var(--bl-primary);
}

.blog-share-btn.copied {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff !important;
}

.blog-share-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--bl-border);
    border-bottom: 1px solid var(--bl-border);
}

.blog-share-box-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--bl-title);
    margin: 0;
}

/* Creators */
.blog-creators {
    margin: 2.5rem 0 0;
}

.blog-creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

.blog-creator-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem 1.1rem;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-creator-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bl-shadow-hover);
}

.blog-creator-cover {
    display: block;
    width: calc(100% + 2rem);
    height: 70px;
    margin: 0 -1rem;
    background: linear-gradient(135deg, var(--bl-primary), #7c5cff) center / cover no-repeat;
}

.blog-creator-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bl-surface);
    margin-top: -32px;
    margin-bottom: 0.5rem;
}

.blog-creator-name {
    font-weight: 700;
    color: var(--bl-title);
    font-size: 0.95rem;
}

.blog-creator-username {
    font-size: 0.8rem;
    color: var(--bl-muted);
}

/* Author box */
.blog-author-box {
    display: flex;
    gap: 1.1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    background: var(--bl-alt);
    border-radius: var(--bl-radius);
}

.blog-author-box img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-author-box-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
}

.blog-author-box-name a {
    color: var(--bl-title) !important;
}

.blog-author-box p {
    color: var(--bl-muted);
    font-size: 0.93rem;
    margin-bottom: 0.5rem;
}

/* Prev / next */
.blog-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.blog-prev-next-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    transition: border-color 0.15s ease;
}

.blog-prev-next-link:hover {
    border-color: var(--bl-primary);
}

.blog-prev-next-link span {
    font-size: 0.8rem;
    color: var(--bl-muted);
}

.blog-prev-next-link strong {
    font-size: 0.95rem;
    color: var(--bl-title);
    line-height: 1.4;
}

.blog-prev-next-link.next {
    text-align: right;
    grid-column: 2;
}

.blog-related {
    background: var(--bl-alt);
}

/* CTA */
.blog-cta {
    padding: 2.5rem 0 3rem;
}

.blog-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 2.25rem;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(0, 175, 240, 0.12), rgba(124, 92, 255, 0.12));
    border: 1px solid var(--bl-border);
}

.blog-cta-title {
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 800;
    color: var(--bl-title);
    margin: 0 0 0.35rem;
}

.blog-cta-copy {
    color: var(--bl-muted);
    margin: 0;
}

.blog-cta-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Back to top */
.blog-top-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--bl-primary);
    color: #fff;
    box-shadow: var(--bl-shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
}

.blog-top-btn svg {
    stroke: currentColor;
}

.blog-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .blog-hero-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    }

    .blog-hero-trending {
        grid-column: 1 / -1;
    }

    .blog-article-layout {
        grid-template-columns: 48px minmax(0, 1fr) 260px;
        gap: 1.75rem;
    }
}

@media (max-width: 991px) {
    .blog-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-layout-side .blog-sticky,
    .blog-sticky {
        position: static;
    }

    .blog-article-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-article-share-rail,
    .blog-toc-side {
        display: none;
    }

    .blog-toc-inline {
        display: block;
    }

    .blog-subnav-toggle {
        display: inline-flex;
    }

    .blog-subnav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 15px 1rem;
        background: var(--bl-surface);
        border-bottom: 1px solid var(--bl-border);
        box-shadow: var(--bl-shadow-hover);
    }

    .blog-subnav.open .blog-subnav-menu {
        display: flex;
    }

    .blog-subnav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-subnav-link {
        width: 100%;
        border-radius: 8px;
    }

    .blog-subnav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 0.75rem;
        background: transparent;
    }

    .blog-subnav-caret {
        display: none;
    }

    .blog-search {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .blog-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-intro {
        padding-top: 1.75rem;
    }

    .blog-content {
        font-size: 1.03rem;
        line-height: 1.75;
    }

    .blog-content h2 {
        font-size: 1.45rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-article-cover {
        padding: 0;
    }

    .blog-article-cover img {
        border-radius: 0;
    }

    .blog-cta-inner {
        padding: 1.5rem;
    }

    .blog-share-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    .blog-grid-4,
    .blog-grid-3,
    .blog-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .blog-prev-next {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-prev-next-link.next {
        grid-column: auto;
        text-align: left;
    }

    .blog-author-box,
    .blog-author-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-article-head {
        text-align: left;
    }

    .blog-article-head .blog-breadcrumbs ol,
    .blog-article-meta {
        justify-content: flex-start;
    }

    .blog-article-category {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-media img,
    .blog-top-btn,
    .blog-progress-bar {
        transition: none;
    }
}

/* =========================================================
   v2 – OnlyFans-style homepage + redesigned article page
   ========================================================= */
.blog-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-card-watermark {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

/* Pill buttons */
.blog-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid var(--bl-primary);
    color: var(--bl-primary) !important;
    background: transparent;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.blog-pill-btn:hover {
    background: var(--bl-primary);
    color: #fff !important;
}

.blog-pill-btn-solid {
    background: var(--bl-primary);
    color: #fff !important;
}

.blog-pill-btn-solid:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.blog-pill-btn-block {
    width: 100%;
}

/* Bands (alternating sections) */
.blog-band {
    padding: 3rem 0;
    background: var(--bl-bg);
}

.blog-band-alt {
    background: var(--bl-alt);
}

.blog-band-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--bl-title);
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
}

.blog-band-title a {
    color: var(--bl-title) !important;
}

.blog-band-title a:hover {
    color: var(--bl-primary) !important;
}

.blog-band-sub {
    color: var(--bl-muted);
    margin: -0.9rem 0 1.5rem;
    max-width: 720px;
}

.blog-band-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Overlay hero */
.blog-of-hero {
    padding: 1.75rem 0 2.5rem;
}

.blog-of-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.blog-of-hero-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.blog-of-hero-side {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 1.25rem;
}

.blog-card-overlay {
    position: relative;
    border: 0;
    min-height: 220px;
    background: #111;
}

.blog-card-overlay-link {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff !important;
}

.blog-card-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-overlay:hover img {
    transform: scale(1.05);
}

.blog-card-overlay-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.85) 100%);
}

.blog-card-overlay-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.25rem 1.4rem 2.1rem;
}

.blog-card-overlay-cat {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.6rem;
    border-radius: 999px;
    background: var(--bl-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-card-overlay-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-overlay.is-large {
    min-height: 460px;
}

.blog-card-overlay.is-large .blog-card-overlay-title {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.2;
}

.blog-card-overlay.is-large .blog-card-overlay-body {
    padding: 2rem 2rem 2.5rem;
}

.blog-of-hero-main,
.blog-of-hero-main .blog-card {
    height: 100%;
}

/* Tile cards */
.blog-card-tile {
    border: 0;
    box-shadow: none;
    background: var(--bl-alt);
}

.blog-band-alt .blog-card-tile {
    background: var(--bl-surface);
}

.blog-card-tile .blog-card-body {
    padding: 1.1rem 1.25rem 1.3rem;
}

.blog-card-tile .blog-card-title {
    font-size: 1.12rem;
    margin: 0;
}

.blog-card-tile:hover {
    box-shadow: var(--bl-shadow-hover);
}

/* Creator tiles */
.blog-creator-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-creator-tile {
    display: flex;
    flex-direction: column;
    background: var(--bl-surface);
    border-radius: var(--bl-radius);
    overflow: hidden;
    box-shadow: var(--bl-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-creator-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--bl-shadow-hover);
}

.blog-creator-tile-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--bl-alt);
    overflow: hidden;
}

.blog-creator-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-creator-tile:hover .blog-creator-tile-media img {
    transform: scale(1.05);
}

.blog-creator-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.1rem 1.2rem;
}

.blog-creator-tile-name {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
    color: var(--bl-title);
}

.blog-creator-tile-name a {
    color: var(--bl-title) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-creator-tile-sub {
    font-size: 0.85rem;
    color: var(--bl-muted);
}

.blog-creator-tile-icons {
    display: flex;
    gap: 0.5rem;
    margin: 0.8rem 0 1rem;
}

.blog-creator-tile-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 32px;
    min-width: 32px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: var(--bl-chip);
    color: var(--bl-primary) !important;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-creator-tile-icon svg {
    stroke: currentColor;
}

.blog-creator-tile .blog-pill-btn {
    margin-top: auto;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

/* X / Twitter embeds */
.blog-x-grid {
    column-count: 3;
    column-gap: 1.25rem;
}

.blog-x-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}

.blog-x-item .twitter-tweet {
    margin: 0 auto !important;
}

.blog-x-item blockquote.twitter-tweet {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--bl-border);
    border-radius: 14px;
    background: var(--bl-surface);
    font-size: 0.85rem;
    word-break: break-all;
}

/* ---------- Article page ---------- */
.blog-hero-x {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 0 5.5rem;
    background: linear-gradient(135deg, #0b1220 0%, #10233d 55%, var(--bl-primary) 140%);
    color: #fff;
}

.blog-hero-x-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.2);
    transform: scale(1.1);
    opacity: 0.75;
}

.blog-hero-x-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0.8) 100%);
}

.blog-hero-x.no-cover {
    padding-bottom: 3rem;
}

.blog-hero-x.no-cover .blog-hero-x-shade {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(124, 92, 255, 0.35), transparent 50%);
}

.blog-hero-x-inner {
    position: relative;
    z-index: 1;
}

.blog-hero-x .blog-article-title,
.blog-hero-x .blog-breadcrumbs span {
    color: #fff;
}

.blog-hero-x .blog-article-lead,
.blog-hero-x .blog-article-meta,
.blog-hero-x .blog-breadcrumbs,
.blog-hero-x .blog-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.blog-hero-x .blog-article-author {
    color: #fff !important;
}

.blog-hero-x .blog-article-author img {
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.blog-hero-x .blog-article-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: var(--bl-primary);
    color: #fff !important;
}

.blog-hero-x.has-cover + .blog-article-cover {
    position: relative;
    margin-top: -4rem;
    z-index: 2;
}

.blog-article-cover {
    position: relative;
}

.blog-article-cover .blog-card-watermark {
    right: 30px;
    bottom: 18px;
    font-size: 0.85rem;
}

/* Stat strip */
.blog-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    list-style: none;
    max-width: 960px;
    margin: 0 auto 2.25rem;
    padding: 0;
}

.blog-stat-strip li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    box-shadow: var(--bl-shadow);
}

.blog-stat-strip strong {
    display: block;
    color: var(--bl-title);
    font-size: 1rem;
    line-height: 1.2;
}

.blog-stat-strip small {
    color: var(--bl-muted);
    font-size: 0.75rem;
}

.blog-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bl-chip);
    color: var(--bl-primary);
}

.blog-stat-icon svg {
    stroke: currentColor;
}

/* Creator spotlight */
.blog-spotlight {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    box-shadow: var(--bl-shadow);
}

.blog-spotlight-cover {
    height: 110px;
    background: linear-gradient(135deg, var(--bl-primary), #7c5cff);
    background-size: cover;
    background-position: center;
}

.blog-spotlight-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.1rem;
    align-items: end;
    padding: 0 1.4rem 1.3rem;
}

.blog-spotlight-avatar img {
    width: 88px;
    height: 88px;
    margin-top: -44px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bl-surface);
    box-shadow: var(--bl-shadow);
}

.blog-spotlight-info {
    padding-top: 0.8rem;
}

.blog-spotlight-name {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0.1rem 0;
}

.blog-spotlight-name a {
    color: var(--bl-title) !important;
}

.blog-spotlight-user {
    font-size: 0.85rem;
    color: var(--bl-muted);
}

.blog-spotlight-info p {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    color: var(--bl-text);
}

.blog-spotlight-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-spotlight-actions .blog-pill-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

/* Fancy TOC */
.blog-toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bl-chip);
    color: var(--bl-primary);
    font-size: 0.72rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-toc a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.blog-toc-side a,
.blog-toc-inline a {
    border-left: 0;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
}

.blog-toc-side a:hover,
.blog-toc-side a.active,
.blog-toc-inline a:hover,
.blog-toc-inline a.active {
    background: var(--bl-chip);
}

.blog-toc a.active .blog-toc-num,
.blog-toc li.is-done .blog-toc-num {
    background: var(--bl-primary);
    color: #fff;
}

.blog-toc .blog-toc-level-3 a {
    padding-left: 2.8rem;
    position: relative;
}

.blog-toc .blog-toc-level-3 a::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    border: 2px solid var(--bl-border);
}

.blog-toc .blog-toc-level-3 a.active::before {
    border-color: var(--bl-primary);
    background: var(--bl-primary);
}

.blog-toc-side {
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: 18px;
    padding: 1.1rem 0.8rem 0.8rem;
    box-shadow: var(--bl-shadow);
}

.blog-toc-side-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.4rem 0.9rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--bl-border);
}

.blog-toc-side-head small {
    color: var(--bl-muted);
    font-size: 0.78rem;
}

.blog-toc-ring {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    transform: rotate(-90deg);
}

.blog-toc-ring circle {
    fill: none;
    stroke-width: 3.2;
}

.blog-toc-ring-bg {
    stroke: var(--bl-border);
}

.blog-toc-ring-fg {
    stroke: var(--bl-primary);
    stroke-linecap: round;
    stroke-dasharray: 0 100;
    transition: stroke-dasharray 0.15s linear;
}

.blog-toc-ring-value {
    position: absolute;
    left: 0.4rem;
    top: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--bl-title);
}

.blog-toc-inline {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bl-surface);
    box-shadow: var(--bl-shadow);
}

.blog-toc-inline summary {
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--bl-chip), transparent);
}

.blog-toc-inline[open] summary {
    margin-bottom: 0;
    border-bottom: 1px solid var(--bl-border);
}

.blog-toc-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bl-primary);
    color: #fff;
}

.blog-toc-inline-icon svg {
    stroke: currentColor;
}

.blog-toc-inline-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-toc-inline-label small {
    font-weight: 500;
    color: var(--bl-muted);
    font-size: 0.8rem;
}

.blog-toc-inline-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--bl-muted);
    border-bottom: 2px solid var(--bl-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.blog-toc-inline[open] .blog-toc-inline-caret {
    transform: rotate(-135deg);
}

.blog-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.15rem 1rem;
    padding: 0.8rem !important;
}

.blog-toc-grid .blog-toc-level-3 {
    display: none;
}

/* Content decorations */
.blog-content {
    counter-reset: none;
}

.blog-content .blog-lead {
    font-size: 1.22rem;
    line-height: 1.75;
    color: var(--bl-title);
}

.blog-content .blog-lead::first-letter {
    float: left;
    font-size: 3.6rem;
    line-height: 0.9;
    font-weight: 800;
    padding: 0.35rem 0.6rem 0 0;
    color: var(--bl-primary);
}

.blog-content h2.blog-h2-num {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bl-border);
}

.blog-content h2.blog-h2-num::before {
    content: attr(data-num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bl-primary), #7c5cff);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: -0.1rem;
    box-shadow: 0 8px 20px rgba(0, 175, 240, 0.25);
}

.blog-content h2.blog-h2-final {
    padding: 1.1rem 1.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bl-chip), transparent);
    border-left: 4px solid var(--bl-primary);
}

.blog-content ul:not(.blog-toc-grid) {
    list-style: none;
    padding-left: 0;
}

.blog-content ul:not(.blog-toc-grid) > li {
    position: relative;
    padding-left: 2rem;
}

.blog-content ul:not(.blog-toc-grid) > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--bl-chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aff0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.72rem no-repeat;
}

.blog-content ol {
    counter-reset: blog-ol;
    list-style: none;
    padding-left: 0;
}

.blog-content ol > li {
    counter-increment: blog-ol;
    position: relative;
    padding-left: 2.4rem;
}

.blog-content ol > li::before {
    content: counter(blog-ol);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    background: var(--bl-primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content blockquote {
    position: relative;
    padding: 1.6rem 1.8rem 1.6rem 4rem;
    border-left: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--bl-chip), var(--bl-alt));
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-content blockquote::before {
    content: "\201C";
    position: absolute;
    left: 1.1rem;
    top: 0.4rem;
    font-size: 4rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--bl-primary);
}

.blog-content table {
    border-radius: 14px;
    overflow: hidden;
    border-style: hidden;
    box-shadow: 0 0 0 1px var(--bl-border);
}

.blog-content th {
    background: var(--bl-primary);
    color: #fff;
    border-color: transparent;
}

.blog-content tbody tr:nth-child(even) td {
    background: var(--bl-alt);
}

.blog-callout {
    margin: 2rem 0;
    padding: 1.4rem 1.6rem 0.6rem;
    border-radius: 18px;
    background: var(--bl-surface);
    border: 2px solid var(--bl-primary);
    box-shadow: 0 14px 34px rgba(0, 175, 240, 0.12);
}

.blog-content .blog-callout-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.blog-content .blog-callout-title::before {
    content: "\2605";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bl-primary);
    color: #fff;
    font-size: 1rem;
}

.blog-content .blog-faq-title {
    text-align: center;
    margin-top: 3rem;
}

.blog-faq {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 2rem;
}

.blog-faq-item {
    border: 1px solid var(--bl-border);
    border-radius: 14px;
    background: var(--bl-surface);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-faq-item[open] {
    border-color: var(--bl-primary);
    box-shadow: var(--bl-shadow);
}

.blog-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    list-style: none;
}

.blog-faq-item summary::-webkit-details-marker {
    display: none;
}

.blog-faq-item summary::after {
    content: "+";
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bl-chip);
    color: var(--bl-primary);
    font-weight: 800;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.blog-faq-item[open] summary::after {
    content: "\2212";
    background: var(--bl-primary);
    color: #fff;
}

.blog-content .blog-faq-item summary h3,
.blog-content .blog-faq-item summary h4 {
    margin: 0;
    font-size: 1.05rem;
}

.blog-faq-answer {
    padding: 0 1.2rem 0.4rem;
    font-size: 1rem;
}

/* Source post card */
.blog-source-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    border: 1px dashed var(--bl-primary);
    background: var(--bl-chip);
}

.blog-source-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-source-body {
    flex: 1;
    min-width: 0;
}

.blog-source-body strong {
    color: var(--bl-title);
}

.blog-source-body p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--bl-muted);
}

/* Related mix */
.blog-related-mix {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.blog-related-mix.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.blog-related-lead .blog-card-overlay {
    min-height: 380px;
    height: 100%;
}

.blog-related-rest {
    display: grid;
    gap: 1.25rem;
}

.blog-related-rest .blog-card {
    flex-direction: row;
}

.blog-related-rest .blog-card-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 150px;
}

/* Floating mobile share */
.blog-float-share {
    display: none;
}

@media (max-width: 1199px) {
    .blog-creator-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .blog-of-hero-grid,
    .blog-related-mix {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-of-hero-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: none;
    }

    .blog-card-overlay.is-large {
        min-height: 380px;
    }

    .blog-x-grid {
        column-count: 2;
    }

    .blog-creator-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .blog-creator-tile {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }

    .blog-float-share {
        display: block;
        position: fixed;
        left: 50%;
        bottom: 14px;
        z-index: 19;
        padding: 0.4rem 0.55rem;
        border-radius: 999px;
        background: var(--bl-surface);
        border: 1px solid var(--bl-border);
        box-shadow: var(--bl-shadow-hover);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 20px);
        transition: all 0.2s ease;
    }

    .blog-float-share.visible {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .blog-float-share .blog-share-buttons {
        flex-wrap: nowrap;
        gap: 0.3rem;
    }
}

@media (max-width: 767px) {
    .blog-band {
        padding: 2.25rem 0;
    }

    .blog-of-hero-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-card-overlay.is-large {
        min-height: 320px;
    }

    .blog-x-grid {
        column-count: 1;
    }

    .blog-hero-x {
        padding-bottom: 4.5rem;
    }

    .blog-hero-x.has-cover + .blog-article-cover {
        margin-top: -3rem;
        padding: 0 15px;
    }

    .blog-article-cover img {
        border-radius: 14px;
    }

    .blog-spotlight-body {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .blog-spotlight-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .blog-spotlight-actions .blog-pill-btn {
        flex: 1;
    }

    .blog-toc-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-content h2.blog-h2-num::before {
        flex-basis: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .blog-content .blog-lead::first-letter {
        font-size: 3rem;
    }

    .blog-source-card {
        flex-wrap: wrap;
    }

    .blog-source-card .blog-pill-btn {
        width: 100%;
    }

    .blog-related-rest .blog-card {
        flex-direction: column;
    }

    .blog-related-rest .blog-card-media {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .blog-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-float-share .blog-share-btn:nth-child(n+5):not(.blog-copy-link):not(.blog-native-share) {
        display: none;
    }
}
