/* Blog public styles */

/* Light-mode: bypass the inline --var-blue-primary accent override in blog/index.html */
html[data-theme="light"] .blog-hero .special-box,
html[data-theme="light"] .blog-posts-section .special-box {
    color: #1F4B99;
}


/* Shared badge (used in blog/index.html and admin/dashboard.html) */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(74, 144, 226, 0.12);
    color: var(--var-blue-secondary);
    white-space: nowrap;
}

/* ==================
   BLOG PUBLIC PAGES
================== */
section.blog-hero {
    background: linear-gradient(to bottom, var(--var-blue-dark-tech), var(--var-blue-lighter-dark-tech));
    padding: 190px 0px 20px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    width: 1px;
    height: 1px;
    pointer-events: none;
    box-shadow:
        20px 30px #ffffff1f, 60px 90px #ffffff1f, 100px 20px #ffffff1f,
        200px 130px #ffffff1f, 350px 70px #ffffff1f, 500px 200px #ffffff1f,
        700px 100px #ffffff1f, 900px 240px #ffffff1f, 1100px 80px #ffffff1f;
    animation: starsFloat 22s infinite linear;
    opacity: 0.8;
    z-index: 0;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 0 20px;
}

.blog-hero-inner h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--var-text-headers);
    margin: 14px 0 16px;
    line-height: 1.1;
}

.blog-hero-inner p {
    font-size: 18px;
    color: var(--var-text-soft);
}

section.blog-posts-section {
    background: var(--var-blue-lighter-dark-tech);
    padding: 60px 0 80px;
    display: flex;
    justify-content: center;
}

.blog-container {
    max-width: 1220px;
    width: 100%;
    padding: 0 20px;
}

.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--var-border-color);
    color: var(--var-text-soft);
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.filter-pill:hover {
    border-color: var(--var-blue-secondary);
    color: var(--var-blue-secondary);
}

.filter-pill.active {
    background: var(--var-blue-primary);
    border-color: var(--var-blue-primary);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.blog-card {
    background: var(--var-blue-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.blog-card-img {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--var-blue-lighter-dark-tech);
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--var-blue-primary), var(--var-blue-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    opacity: 0.5;
}

.blog-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--var-blue-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--var-text-headers) !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 14px !important;
    color: var(--var-muted) !important;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--var-muted);
}

.blog-card-meta span::before {
    margin-right: 4px;
}

.blog-card .blog-read-btn {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--var-blue-secondary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-card .blog-read-btn:hover {
    gap: 10px;
}

/* Featured post */
.blog-featured {
    background: var(--var-blue-dark-tech);
    border: 1px solid var(--var-border-color);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 40px;
    transition: box-shadow 0.22s ease;
}

.blog-featured:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.blog-featured-img {
    height: 320px;
    overflow: hidden;
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-featured:hover .blog-featured-img img {
    transform: scale(1.03);
}

.blog-featured-body {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.blog-featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-featured-tag .star-badge {
    background: rgba(255, 193, 7, 0.12);
    color: #f1c40f;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-featured-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--var-text-headers) !important;
    line-height: 1.3 !important;
}

.blog-featured-excerpt {
    font-size: 15px !important;
    color: var(--var-text-soft) !important;
    line-height: 1.6;
}

.blog-featured-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--var-muted);
}

/* Featured carousel */
.bfc-wrapper {
    overflow: hidden;
    border-radius: 18px;
}

.bfc-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.bfc-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.bfc-slide .blog-featured {
    border-radius: 0;
    margin-bottom: 0;
}

.bfc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.bfc-btn {
    background: var(--var-blue-dark-tech);
    border: 1px solid var(--var-border-color);
    color: var(--var-text-headers);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, border-color 0.18s;
    flex-shrink: 0;
}

.bfc-btn:hover {
    background: var(--var-blue-secondary);
    border-color: var(--var-blue-secondary);
}

.bfc-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bfc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--var-border-color);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.bfc-dot.active {
    background: var(--var-blue-secondary);
    transform: scale(1.35);
}

.bfc-counter {
    font-size: 13px;
    font-weight: 500;
    color: var(--var-muted);
    margin-left: 4px;
}

.blog-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--var-text-headers);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--var-border-color);
    margin-left: 6px;
}

/* No posts */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: var(--var-muted);
}

/* ==================
   BLOG POST PAGE
================== */
section.post-hero {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    position: relative;
}

section.post-hero img {
    width: 100%;
    height: 480px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}


section.post-article {
    background: var(--var-blue-lighter-dark-tech);
    padding: 50px 0 80px;
    display: flex;
    justify-content: center;
}

.post-inner {
    max-width: 820px;
    width: 100%;
    padding: 0 24px;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--var-blue-secondary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.post-back:hover {
    gap: 10px;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.post-cat-badge {
    background: var(--var-blue-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.post-meta-item {
    font-size: 13px;
    color: var(--var-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--var-muted);
    opacity: 0.5;
}

.post-title {
    font-size: 44px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--var-text-headers) !important;
    margin-bottom: 20px;
}

.post-excerpt-box {
    background: var(--var-blue-dark-tech);
    border-left: 3px solid var(--var-blue-secondary);
    padding: 18px 22px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 36px;
}

.post-excerpt-box p {
    font-size: 18px !important;
    color: var(--var-text-soft) !important;
    line-height: 1.65;
    font-style: italic;
}

.post-divider {
    height: 1px;
    background: var(--var-border-color);
    margin: 32px 0;
}

/* Prose content */
.post-prose {
    color: var(--var-text-soft);
    line-height: 1.8;
    font-size: 16px;
}

.post-prose h2 {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: var(--var-text-headers) !important;
    margin: 18px 0 14px;
}

.post-prose h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--var-text-headers) !important;
    margin: 28px 0 10px;
}

.post-prose p {
    margin-bottom: 18px;
    color: var(--var-text-soft) !important;
    font-size: 16px !important;
}

.post-prose ul,
.post-prose ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.post-prose li {
    margin-bottom: 8px;
    color: var(--var-text-soft);
}

.post-prose blockquote {
    border-left: 3px solid var(--var-blue-secondary);
    padding: 14px 20px;
    margin: 24px 0;
    background: var(--var-blue-dark-tech);
    border-radius: 0 10px 10px 0;
}

.post-prose blockquote p {
    font-style: italic;
    margin-bottom: 0 !important;
}

.post-prose a {
    color: var(--var-blue-secondary);
    text-decoration: underline;
}

.post-prose strong {
    color: var(--var-text-headers);
    font-weight: 700;
}

.post-prose img {
    max-width: 100%;
    border-radius: 10px;
    margin: 16px 0;
}

.post-prose pre {
    background: var(--admin-sidebar-bg);
    padding: 16px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
}

.post-image-2-section {
    margin: 44px 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.post-image-2-section img {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.post-image-2-caption {
    text-align: center;
    font-size: 13px;
    color: var(--var-muted);
    margin-top: 10px;
    font-style: italic;
}

.post-footer-nav {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--var-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==================
   ANIMATIONS
================== */
@keyframes starsFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

/* ==================
   MOBILE RESPONSIVE
================== */
@media (max-width: 900px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-img {
        height: 220px;
    }

    .blog-featured-body {
        padding: 24px;
    }

    .bfc-wrapper {
        border-radius: 18px;
    }

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

    .post-title {
        font-size: 32px !important;
    }

    section.post-hero img {
        height: 280px;
    }

    section.blog-hero {
        padding: 90px 0px 20px 0px;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero-inner h1 {
        font-size: 34px;
    }

    .post-title {
        font-size: 26px !important;
    }

    .post-prose h2 {
        font-size: 22px !important;
    }
}

/* ==================
   LIGHT MODE
================== */
html[data-theme="light"] section.blog-hero::before {
    opacity: 0;
}

html[data-theme="light"] .blog-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .blog-featured {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .blog-card:hover {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .blog-featured:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

/* Light mode contrast fixes */
html[data-theme="light"] .filter-pill.active {
    background: #1F4B99;
    border-color: #1F4B99;
}

html[data-theme="light"] .blog-featured-tag .star-badge {
    color: #7a4d00;
}

html[data-theme="light"] .category-badge {
    color: #1a4d96;
}

html[data-theme="light"] .blog-featured-meta {
    color: #404c64;
}

html[data-theme="light"] .blog-featured .blog-read-btn {
    color: #1a4d96 !important;
}

html[data-theme="light"] .blog-card-cat {
    background: #1F4B99;
}

html[data-theme="light"] .blog-card-excerpt {
    color: #404c64 !important;
}

html[data-theme="light"] .blog-card-meta {
    color: #404c64;
}

html[data-theme="light"] .blog-card .blog-read-btn {
    color: #1a4d96;
}

html[data-theme="light"] .post-meta-item {
    color: #404c64;
}

/* =======================
   NEWSLETTER CTA BLOCK
======================= */
.nl-cta-block {
    background-color: var(--var-blue-dark-tech);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 18px;
    padding: 40px 32px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nl-cta-badge {
    display: inline-block;
    transition: background-color .18s ease, color .18s ease;
    border: 1.8px solid var(--var-blue-secondary);
    color: var(--var-blue-secondary) !important;
    background-color: transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 18px;
}

/*
    position: relative;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 0px;
    padding: 9px 18px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
    border: 1.8px solid var(--var-blue-secondary);
    color: var(--var-blue-secondary) !important;
    background-color: transparent;
}
*/

.nl-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #F2F6FF;
    margin: 0 0 10px;
    line-height: 1.3;
}

.nl-cta-sub {
    font-size: 15px;
    color: #c0d4ed;
    margin: 0 0 26px;
    line-height: 1.6;
}

.nl-cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.nl-cta-form input {
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid rgba(74, 144, 226, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #F2F6FF;
    font-size: 14px;
    min-width: 150px;
    flex: 1;
    outline: none;
    transition: border-color 0.2s;
}

.nl-cta-form input::placeholder {
    color: rgba(242, 246, 255, 0.45);
}

.nl-cta-form input:focus {
    border-color: rgba(74, 144, 226, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.nl-cta-form button {
    padding: 11px 26px;
    background: #3B7CCB;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nl-cta-form button:hover {
    background: #2B5BAD;
    transform: translateY(-1px);
}

@media (max-width: 500px) {
    .nl-cta-block {
        padding: 28px 20px;
    }

    .nl-cta-form input,
    .nl-cta-form button {
        width: 100%;
        flex: unset;
    }
}

html[data-theme="light"] .nl-cta-title {
    color: var(--var-text-headers);
}

html[data-theme="light"] .nl-cta-sub {
    color: var(--var-text-soft);
}

html[data-theme="light"] .nl-cta-form input {
    color: var(--var-text-headers);
    background: rgba(31, 75, 153, 0.06);
    border-color: rgba(31, 75, 153, 0.25);
}

html[data-theme="light"] .nl-cta-form input::placeholder {
    color: rgba(11, 18, 32, 0.4);
}

html[data-theme="light"] .nl-cta-form input:focus {
    border-color: rgba(31, 75, 153, 0.5);
    background: rgba(31, 75, 153, 0.09);
}

/* ==================
   TABLE OF CONTENTS
================== */

/* Scroll offset for headings so they don't hide under the navbar */
.post-prose h2,
.post-prose h3,
.post-prose h4 {
    scroll-margin-top: 90px;
}

/* Section layout when TOC is enabled */
.post-article--toc {
    align-items: flex-start;
    gap: 36px;
    padding-left: 32px;
    padding-right: 32px;
}

/* Desktop aside */
.toc-aside {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: var(--var-blue-dark-tech);
    border: 1px solid rgba(74, 144, 226, 0.18);
    border-radius: 12px;
    padding: 18px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.3) transparent;
}

.toc-aside-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--var-text-headers);
    opacity: 0.65;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    margin-bottom: 10px;
}

.toc-aside-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* TOC links (shared by aside and mobile) */
.toc-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    color: var(--var-text-soft);
    text-decoration: none;
    padding: 5px 8px 5px 10px;
    border-radius: 6px;
    line-height: 1.4;
    border-left: 2px solid transparent;
    text-align: left;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.toc-link:hover {
    color: var(--var-text-headers);
    background: rgba(74, 144, 226, 0.08);
}

.toc-link--active {
    color: var(--var-blue-secondary);
    border-left-color: var(--var-blue-secondary);
    background: rgba(74, 144, 226, 0.08);
}

.toc-link--h3 {
    padding-left: 22px;
    font-size: 12px;
    opacity: 0.85;
}

/* Mobile inline TOC (hidden on desktop) */
.toc-inline {
    display: none;
    background: var(--var-blue-dark-tech);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

.toc-inline-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--var-text-headers);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    gap: 8px;
}

.toc-inline-btn:hover {
    background: rgba(74, 144, 226, 0.06);
}

.toc-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.toc-inline-btn.is-open .toc-chevron {
    transform: rotate(180deg);
}

.toc-inline-nav {
    padding: 4px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.toc-inline-nav[hidden] {
    display: none;
}

/* Responsive: switch to inline TOC below 1060px */
@media (max-width: 1060px) {
    .post-article--toc {
        padding-left: 0;
        padding-right: 0;
        gap: 0;
    }

    .toc-aside {
        display: none;
    }

    .toc-inline {
        display: block;
    }
}

/* Light mode tweaks for TOC */
html[data-theme="light"] .toc-aside,
html[data-theme="light"] .toc-inline {
    border-color: rgba(31, 75, 153, 0.18);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ==================
   BLOG POST TABLES
================== */

/* Scroll wrapper inserted by Quill's table-embed blot */
.post-prose .ql-table-embed {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    border-radius: 10px;
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.post-prose .ql-table-embed table {
    margin: 0;
}

/* Base table styles (applies to both embedded and raw tables) */
.post-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.post-prose th {
    background: rgba(74, 144, 226, 0.08);
    color: var(--var-text-headers);
    font-weight: 700;
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(74, 144, 226, 0.18);
    white-space: nowrap;
}

.post-prose td {
    padding: 10px 16px;
    color: var(--var-text-soft);
    border-bottom: 1px solid rgba(74, 144, 226, 0.08);
    vertical-align: top;
    line-height: 1.6;
}

.post-prose tr:last-child td {
    border-bottom: none;
}

.post-prose tr:nth-child(even) td {
    background: rgba(74, 144, 226, 0.03);
}

/* Raw tables without the ql-table-embed wrapper: add scroll on mobile */
@media (max-width: 700px) {
    .post-prose table:not(.ql-table-embed table) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid rgba(74, 144, 226, 0.15);
        border-radius: 10px;
    }

    .post-prose th,
    .post-prose td {
        padding: 9px 12px;
        font-size: 14px;
    }
}

html[data-theme="light"] .post-prose th {
    background: rgba(31, 75, 153, 0.07);
    border-bottom-color: rgba(31, 75, 153, 0.18);
}

html[data-theme="light"] .post-prose td {
    border-bottom-color: rgba(31, 75, 153, 0.08);
}

html[data-theme="light"] .post-prose tr:nth-child(even) td {
    background: rgba(31, 75, 153, 0.03);
}

html[data-theme="light"] .post-prose .ql-table-embed {
    border-color: rgba(31, 75, 153, 0.15);
}