/* Blog Page Styles */
.blog-hero-section {
    padding-top: clamp(48px, 6vw, 72px) !important;
    padding-bottom: 36px !important;
    text-align: center;
}
.blog-grid-section {
    padding-top: 40px !important;
    padding-bottom: 80px !important;
}
.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    color: var(--ink);
    margin: 0 auto 16px auto;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 1160px;
    box-sizing: border-box;
    text-align: center;
}

/* Blog Search & Filter Bar */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px auto 0 auto;
    max-width: 1160px;
    box-sizing: border-box;
}
/* Filter Dropdown with Lines Icon */
.blog-filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.filter-dropdown-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 10px 16px;
    font-size: 13.5px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 150ms ease;
    user-select: none;
}

.filter-dropdown-btn:hover,
.filter-dropdown-btn.is-active,
.blog-filter-dropdown-wrapper.is-open .filter-dropdown-btn {
    color: var(--ink);
    border-color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

.filter-lines-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.filter-label-text {
    font-weight: 600;
}

.filter-chevron-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform 200ms ease;
}

.blog-filter-dropdown-wrapper.is-open .filter-chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu Popup */
.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: #ffffff; border: 1px solid var(--line);
    border: 1px solid var(--line-light);
    border-radius: 8px;
    padding: 6px;
    box-shadow: none !important;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    pointer-events: none;
}

.blog-filter-dropdown-wrapper.is-open .filter-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-option-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--ink-dim);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 140ms ease;
    outline: none;
}

.filter-option-btn:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}

.filter-option-btn.active {
    color: var(--ink);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
}

.filter-check-icon {
    opacity: 0;
    color: var(--ink);
    transition: opacity 140ms ease;
}

.filter-option-btn.active .filter-check-icon {
    opacity: 1;
}

.blog-search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}
.blog-search-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 16px 12px 42px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color 150ms ease, background 150ms ease;
}
.blog-search-input:focus {
    border-color: var(--ink);
    background: var(--panel-hover);
}
.blog-search-input::placeholder {
    color: var(--muted);
}
.blog-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Blog Feed: One Post Per Row, Zig-Zag Layout, Vertical Scroll Progression
   ========================================================================== */
.articles-grid,
.articles-feed {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 1160px !important;
    margin: 28px auto 0 auto !important;
    box-sizing: border-box !important;
}

/* Post Row: Default (Odd rows: 1, 3, 5...) -> 16:9 Card Left, Info Right */
.blog-feed-row.blog-card {
    background: transparent !important;
    border: none !important;
    padding: clamp(68px, 6.5vw, 108px) 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    cursor: default;
    display: grid !important;
    grid-template-columns: minmax(300px, 460px) minmax(0, 1fr) !important;
    gap: clamp(40px, 5vw, 72px) !important;
    align-items: center !important;
    justify-content: stretch !important;
    text-decoration: none;
    transition: border-color 200ms ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

/* CRITICAL: Hidden state with highest specificity so extra pages are 100% hidden */
.blog-feed-row.blog-card[hidden],
.blog-feed-row.blog-card.is-hidden {
    display: none !important;
}

.blog-feed-row.blog-card .blog-preview-card {
    order: 1;
}

.blog-feed-row.blog-card .blog-feed-info {
    order: 2;
}

/* Post Row: Even rows (2, 4, 6...) -> Zig-Zag: Info Left, 16:9 Card Right */
.blog-feed-row.blog-card.row-reverse,
.blog-feed-row.blog-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px) !important;
    gap: clamp(40px, 5vw, 72px) !important;
}

.blog-feed-row.blog-card.row-reverse .blog-preview-card,
.blog-feed-row.blog-card:nth-child(even) .blog-preview-card {
    order: 2;
}

.blog-feed-row.blog-card.row-reverse .blog-feed-info,
.blog-feed-row.blog-card:nth-child(even) .blog-feed-info {
    order: 1;
}

.blog-feed-row.blog-card:last-child {
    border-bottom: none !important;
}

/* The 16:9 Preview Card (JUST the card itself) */
.blog-preview-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    aspect-ratio: 16 / 9;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 200ms ease;
}

.blog-preview-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-preview-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink);
    background: rgba(8, 12, 21, 0.85);
    border: 1px solid #cbd5e1; background: #ffffff; color: #000000;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

/* Hover Interactions on the 16:9 Card: Gentle lift, zero drop shadow */
.blog-feed-row:hover .blog-preview-card {
    border-color: var(--line-light);
    transform: translateY(-2px);
    box-shadow: none !important;
}

.blog-feed-row:hover .blog-preview-visual {
    transform: scale(1.03);
}

/* Title & Info Column (Outside the Card) */
.blog-feed-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.blog-feed-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-feed-meta .blog-card-category {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    color: #475569;
    background: none;
    border: none;
    padding: 0;
    letter-spacing: 0.08em;
}

.blog-meta-sep {
    color: var(--line-light);
    font-size: 10px;
}

.blog-card-readtime,
.blog-card-date {
    color: var(--ink-dim);
    font-size: 12px;
    font-weight: 500;
}

/* Title: Clean, simple, solid black at all times */
.blog-feed-info .blog-card-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    color: #000000 !important;
    margin: 4px 0 0 0;
    letter-spacing: -0.015em;
    word-break: break-word;
    transition: color 150ms ease;
}

.blog-feed-info .blog-card-title a {
    color: #000000 !important;
    text-decoration: none;
    transition: color 150ms ease;
}

.blog-feed-row:hover .blog-card-title,
.blog-feed-row:hover .blog-card-title a {
    color: #000000 !important;
}

/* Excerpt / Description — fully visible outside the card */
.blog-feed-info .blog-card-desc {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
    margin: 4px 0 10px 0 !important;
    font-family: var(--font-sans);
    font-size: clamp(14px, 1.1vw, 15.5px);
    line-height: 1.65;
    color: var(--ink-dim);
    max-width: 100%;
    width: 100%;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    box-sizing: border-box;
}

/* Action Link */
.blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 6px 0;
    transition: color 150ms ease, transform 150ms ease;
}

.blog-read-link svg {
    transition: transform 180ms ease;
}

.blog-feed-row:hover .blog-read-link {
    color: var(--ink);
}

.blog-feed-row:hover .blog-read-link svg {
    transform: translateX(5px);
}

/* ==========================================================================
   Blog Pagination Bar: Left Dropdown (5, 10, 15) & Nav (Prev, 1, 2, 3..., Next)
   ========================================================================== */
.blog-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.blog-pagination-top {
    margin-top: 28px;
    margin-bottom: 8px;
    padding-top: 0;
    padding-bottom: 24px;
    border-top: none;
    border-bottom: 1px solid var(--line);
}

.blog-pagination-bottom {
    margin-top: 48px;
    margin-bottom: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: none;
}

/* Left: Page Size Selector Dropdown */
.pagination-size-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pagination-size-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-dim);
}

.pagination-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.pagination-size-select {
    box-sizing: border-box;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 30px 8px 12px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.pagination-size-select:hover,
.pagination-size-select:focus {
    border-color: var(--ink);
    background: var(--panel-hover);
}

.pagination-select-wrapper .select-chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: var(--muted);
}

/* Right/Center: Prev, Numbers, Next */
.pagination-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-nav-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #000000 !important;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
}

.pagination-nav-btn:hover:not(:disabled) {
    color: #000000 !important;
    border-color: #000000 !important;
    background: #f1f4f9 !important;
}

.pagination-nav-btn:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed;
    border-color: #e1e7f0 !important;
    color: #94a3b8 !important;
    background: #f8fafc !important;
    pointer-events: none;
}

.pagination-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-num-btn {
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #000000 !important;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 150ms ease;
}

.page-num-btn:hover:not(.active) {
    color: #000000 !important;
    border-color: #000000 !important;
    background: #f1f4f9 !important;
}

.page-num-btn.active {
    color: #10100f;
    background: var(--ink);
    border-color: var(--ink);
    cursor: default;
}

.no-results-msg {
    width: 100%;
    max-width: 1160px;
    margin: 32px auto;
    padding: 64px 32px;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-sizing: border-box;
}

.no-results-msg strong {
    color: var(--ink);
}

/* ==========================================================================
   Responsive: Phone Layout
   - 16:9 Card strictly on top
   - Info visible directly below
   ========================================================================== */
@media (max-width: 860px) {
    .blog-hero-section {
        padding-top: 36px;
    }
    .page-title {
        font-size: clamp(36px, 5vw, 64px);
        margin-bottom: 8px;
    }
    .blog-toolbar {
        flex-direction: column;
        align-items: stretch;
        margin-top: 18px;
    }
    .blog-filter-dropdown-wrapper {
        width: 100%;
    }
    .filter-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }
    .filter-dropdown-menu {
        width: 100%;
        box-sizing: border-box;
    }
    .blog-search-box {
        width: 100%;
    }
    .blog-feed-row.blog-card,
    .blog-feed-row.blog-card.row-reverse,
    .blog-feed-row.blog-card:nth-child(even) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px !important;
        padding: 56px 0 !important;
    }
    .blog-preview-card {
        order: 1 !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
    }
    .blog-feed-info {
        order: 2 !important;
        width: 100% !important;
        gap: 10px;
    }
    .blog-feed-info .blog-card-title {
        font-size: clamp(20px, 4.8vw, 26px);
    }
    .blog-feed-info .blog-card-desc {
        font-size: 14.5px;
    }
    .blog-pagination-bar {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 36px;
        padding-top: 24px;
    }
    .pagination-size-wrap {
        width: 100%;
        justify-content: center;
    }
    .pagination-nav-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Blank Slated / Skeleton Wireframe for Blog */
@keyframes blogShimmer {
    0% { opacity: 0.35; }
    50% { opacity: 0.75; }
    100% { opacity: 0.35; }
}

.blog-card-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
    padding: clamp(68px, 6.5vw, 108px) 0;
    border-bottom: 1px solid var(--line, #1b253b);
    animation: blogShimmer 1.8s ease-in-out infinite;
}

.blog-card-skeleton .skeleton-thumb {
    aspect-ratio: 16 / 9;
    background: var(--panel, #0e1422);
    border: 1px solid var(--line, #1b253b);
    border-radius: 12px;
    width: 100%;
}

.blog-card-skeleton .skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card-skeleton .skeleton-badge {
    height: 14px;
    width: 110px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.blog-card-skeleton .skeleton-title {
    height: 32px;
    width: 85%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.blog-card-skeleton .skeleton-desc {
    height: 16px;
    width: 95%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.blog-card-skeleton .skeleton-desc-2 {
    height: 16px;
    width: 70%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .blog-card-skeleton {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   CLYVORN ARTICLE CRAFT COMPONENTS (PUBLIC ARTICLE STYLES)
   ========================================================================== */

/* Overall Article Page Wrapper & Container */
.article-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px var(--gutter, 48px) 32px;
}

.article-header {
    max-width: 820px;
    margin-bottom: 48px;
}

/* 2-Column Article Grid (TOC Sidebar on Left, Content Column on Right) */
.article-layout-grid {
    display: flex;
    gap: 64px;
    align-items: stretch;
    position: relative;
    width: 100%;
}

/* Left Column: Sticky Table of Contents Sidebar */
.article-toc-sidebar {
    width: 260px;
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
}

.article-toc-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 2px 12px 24px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--line, #e5e4e7) transparent;
}

.article-toc-sticky::-webkit-scrollbar {
    width: 3px;
}

.article-toc-sticky::-webkit-scrollbar-thumb {
    background: var(--line, #e5e4e7);
    border-radius: 3px;
}

.article-toc-header {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink, #000000);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    border-left: 1.5px solid var(--line, #e5e4e7);
}

.article-toc-list li {
    margin: 0;
    padding: 0;
}

.article-toc-link {
    display: block;
    padding: 6px 0 6px 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted, #64748b);
    text-decoration: none;
    position: relative;
    border-left: 2px solid transparent;
    margin-left: -1.5px;
    transition: color 150ms ease, border-color 150ms ease, font-weight 150ms ease;
}

.article-toc-link:hover {
    color: var(--ink, #000000);
}

.article-toc-link.is-active {
    color: var(--ink, #000000);
    font-weight: 600;
    border-left-color: var(--ink, #000000);
}

.article-toc-link.is-sub {
    padding-left: 26px;
    font-size: 12px;
    color: var(--ink-dim, #524f56);
}

.article-toc-link.is-sub:hover {
    color: var(--ink, #000000);
}

.article-toc-link.is-sub.is-active {
    color: var(--ink, #000000);
    font-weight: 600;
    border-left-color: var(--ink, #000000);
}

/* Right Column: Main Article Body & Header */
.article-content-column {
    flex: 1;
    min-width: 0;
    max-width: 780px;
}

.article-content-column .article-header {
    max-width: 100%;
    margin-bottom: 32px;
}

/* Responsive Table of Contents (< 1024px) */
@media (max-width: 1023px) {
    .article-container {
        padding: 12px var(--gutter, 20px) 40px;
    }

    .article-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .article-content-column {
        display: contents;
    }

    .article-header {
        order: 1;
        margin-bottom: 0;
        max-width: 100%;
    }

    .article-toc-sidebar {
        order: 2;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 18px 20px;
        background: var(--panel, #f2f1f3);
        border: 1px solid var(--line, #e5e4e7);
        border-radius: 8px;
    }

    .article-toc-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }

    .article-body {
        order: 3;
        width: 100%;
    }

    .article-toc-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }

    .article-content-column {
        order: 3;
        width: 100%;
    }

    .article-toc-list {
        border-left: none;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .article-toc-link {
        padding: 4px 0;
        border-left: none;
        margin-left: 0;
    }

    .article-toc-link.is-sub {
        padding-left: 14px;
    }

    .article-content-column {
        max-width: 100%;
    }
}

/* Deep Anchor Scroll Offset for AI & SERP Snippet Navigation */
.article-body h2,
.article-body h3,
.article-body h4 {
    scroll-margin-top: 110px;
}

.article-body h2 {
    font-family: var(--font-display, sans-serif);
    font-size: clamp(24px, 3.2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 52px 0 20px;
    line-height: 1.28;
    display: block;
}

.article-body h2::before {
    display: none !important;
}

.article-body h3 {
    font-family: var(--font-display, sans-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #000000;
    margin: 36px 0 14px;
    line-height: 1.35;
    display: block;
}

.article-body p {
    margin-bottom: 24px;
    line-height: 1.82;
    color: #18181b;
}

.article-body strong {
    color: #000000;
    font-weight: 600;
}

.article-body ul, .article-body ol {
    margin: 0 0 28px 24px;
    padding: 0;
    color: #18181b;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.article-body a {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.35);
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    transition: all 140ms ease;
}

.article-body a:hover {
    color: #1e293b;
    text-decoration-color: #000000;
}

.article-body a.link-directional {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    color: #000000 !important;
    transition: all 140ms ease !important;
}
.article-body a.link-directional:hover {
    color: #1e293b !important;
    text-decoration-color: #000000 !important;
}
[data-theme="dark"] .article-body a.link-directional {
    color: #ffffff !important;
    text-decoration-color: rgba(255, 255, 255, 0.45) !important;
}
[data-theme="dark"] .article-body a.link-directional:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

/* Primary CTA in Articles: Black in Light theme, Crisp White in Dark theme */
.article-body a.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #000000 !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin: 6px 6px 6px 0 !important;
    box-shadow: none !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}
.article-body a.btn-primary:hover {
    background: #262626 !important;
    border-color: #262626 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
[data-theme="dark"] .article-body a.btn-primary {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
}
[data-theme="dark"] .article-body a.btn-primary:hover {
    background: #e5e5e7 !important;
    border-color: #e5e5e7 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
}

/* Secondary CTA in Articles: Clean outline in Light theme, Translucent outline in Dark theme */
.article-body a.btn-secondary,
.article-body a.btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin: 6px 6px 6px 0 !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}
.article-body a.btn-secondary:hover,
.article-body a.btn-ghost:hover {
    border-color: #000000 !important;
    background: #f4f5f8 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
}
[data-theme="dark"] .article-body a.btn-secondary,
[data-theme="dark"] .article-body a.btn-ghost {
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .article-body a.btn-secondary:hover,
[data-theme="dark"] .article-body a.btn-ghost:hover {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.article-body a.link-directional {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    color: #000000 !important;
    transition: all 140ms ease !important;
}
.article-body a.link-directional:hover {
    color: #1e293b !important;
    text-decoration-color: #000000 !important;
}
[data-theme="dark"] .article-body a.link-directional {
    color: #ffffff !important;
    text-decoration-color: rgba(255, 255, 255, 0.45) !important;
}
[data-theme="dark"] .article-body a.link-directional:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

/* Primary CTA in Articles: Black in Light theme, Crisp White in Dark theme */
.article-body a.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #000000 !important;
    border: 1px solid #000000 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    padding: 9px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin: 6px 6px 6px 0 !important;
    box-shadow: none !important;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease !important;
}
.article-body a.btn-primary:hover {
    background: #262626 !important;
    border-color: #262626 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}
[data-theme="dark"] .article-body a.btn-primary {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
}
[data-theme="dark"] .article-body a.btn-primary:hover {
    background: #e5e5e7 !important;
    border-color: #e5e5e7 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
}

/* Secondary CTA in Articles: Clean outline in Light theme, Translucent outline in Dark theme */
.article-body a.btn-secondary,
.article-body a.btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    margin: 6px 6px 6px 0 !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
}
.article-body a.btn-secondary:hover,
.article-body a.btn-ghost:hover {
    border-color: #000000 !important;
    background: #f4f5f8 !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
}
[data-theme="dark"] .article-body a.btn-secondary,
[data-theme="dark"] .article-body a.btn-ghost {
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .article-body a.btn-secondary:hover,
[data-theme="dark"] .article-body a.btn-ghost:hover {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* In-Article Media & Figures */
.article-body figure {
    margin: 36px 0;
    width: 100%;
}

.article-body figure img,
.article-body > img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
    display: block;
    margin: 0 auto;
    background: var(--panel, #0e1422);
}

[data-theme="dark"] .article-body figure img,
[data-theme="dark"] .article-body > img {
    border-color: rgba(255, 255, 255, 0.08);
}

.article-body figcaption {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: var(--ink-dim, #71717a);
    margin-top: 10px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Code Blocks & Inline Code */
.article-body pre {
    background: #f1f4f9;
    border: 1px solid #e1e7f0; color: #000000;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 32px 0;
    overflow-x: auto;
    font-family: var(--font-mono, monospace);
    font-size: 13.5px;
    line-height: 1.65;
    color: #e2e8f0;
}

.article-body code {
    font-family: var(--font-mono, monospace);
    font-size: 0.9em;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #000000;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

/* Callout Cards (Featured Snippet Optimization) */
.article-callout {
    background: #f1f4f9;
    border: 1px solid #e1e7f0;
    border-left: 4px solid #000000;
    padding: 24px 28px;
    border-radius: 8px;
    margin: 36px 0;
}

.article-callout.is-rule {
    border-left-color: #000000;
    background: #f1f4f9;
}

.article-callout.is-warning {
    border-left-color: #000000;
    background: #f1f4f9;
}

.article-callout.is-spec {
    border-left-color: #000000;
    background: #f1f4f9;
}

.article-callout h4 {
    font-family: var(--font-display, sans-serif);
    font-size: 15px;
    color: #000000;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-callout p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #18181b;
}

/* Graph / Technical Diagram Comparison Container */
.graph-diagram-container {
    background: #f1f4f9;
    border: 1px solid #e1e7f0; color: #000000;
    border-radius: 12px;
    padding: 28px;
    margin: 40px 0;
}

.graph-diagram-title {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: #475569;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.graph-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.graph-box {
    background: #f1f4f9;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.graph-box-label {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.graph-svg-preview {
    width: 100%;
    height: 140px;
    margin: 0 auto 12px;
    display: block;
}

.graph-box-desc {
    font-size: 13px;
    color: #8b99b5;
    line-height: 1.5;
    margin: 0;
}

/* Gated Vault Section */
.gated-vault-section {
    background: linear-gradient(180deg, #0e1526 0%, #090e18 100%);
    border: 1px solid rgba(240, 68, 88, 0.28);
    border-radius: 12px;
    padding: 36px 32px;
    margin: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.gated-vault-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #000000, #475569, #cbd5e1);
}

.vault-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vault-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    margin-bottom: 8px;
}

.vault-title {
    font-family: var(--font-display, sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 6px;
}

.vault-subtitle {
    font-size: 14px;
    color: #475569;
    margin: 0;
}

.user-auth-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    color: #000000;
}

.auth-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000000;
}

.auth-status-dot.verified {
    background: #000000;
    
}

.vault-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.vault-card {
    background: #f1f4f9;
    border: 1px solid #e1e7f0; color: #000000;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vault-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vault-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    flex-shrink: 0;
}

.vault-card-info h4 {
    font-family: var(--font-display, sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 4px;
}

.vault-card-info p {
    font-size: 13px;
    color: #475569;
    margin: 0;
}

.vault-btn {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 180ms ease;
    white-space: nowrap;
}

.vault-btn-locked {
    background: #000000;
    border: 1px solid #000000;
    color: #ffffff;
}

.vault-btn-locked:hover {
    background: rgba(0, 0, 0, 0.8);
}

.vault-btn-unlocked {
    background: #000000;
    color: #ffffff;
}

/* ==========================================================================
   BLOG ARCHITECTURE — DARK MODE OVERRIDES (Obsidian Deep Tone)
   ========================================================================== */
[data-theme="dark"] .blog-feed-info .blog-card-title,
[data-theme="dark"] .blog-feed-info .blog-card-title a,
[data-theme="dark"] .blog-feed-row:hover .blog-card-title,
[data-theme="dark"] .blog-feed-row:hover .blog-card-title a {
    color: #ffffff !important;
}

[data-theme="dark"] .blog-feed-info .blog-card-desc {
    color: var(--ink-dim, #b0b0b8) !important;
}

[data-theme="dark"] .blog-read-link {
    color: #ffffff !important;
}

[data-theme="dark"] .filter-dropdown-menu {
    background: #0d0d0f !important;
    border-color: var(--line) !important;
}

[data-theme="dark"] .filter-dropdown-item {
    color: var(--ink-dim, #b0b0b8) !important;
}

[data-theme="dark"] .filter-dropdown-item:hover {
    background: #161619 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .filter-dropdown-item.active {
    background: #161619 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .pagination-nav-btn {
    background: #0d0d0f !important;
    border-color: var(--line-light) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .pagination-nav-btn:hover:not(:disabled) {
    background: #161619 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

[data-theme="dark"] .pagination-nav-btn:disabled {
    background: #08080a !important;
    border-color: var(--line) !important;
    color: #52525b !important;
}

[data-theme="dark"] .page-num-btn {
    background: #0d0d0f !important;
    border-color: var(--line-light) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .page-num-btn:hover:not(.active) {
    background: #161619 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

[data-theme="dark"] .page-num-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* Blog Article TOC in Dark Mode */
[data-theme="dark"] .article-toc-link {
    color: #8e8e98 !important;
}

[data-theme="dark"] .article-toc-link:hover,
[data-theme="dark"] .article-toc-link.is-active {
    color: #ffffff !important;
    border-left-color: #ffffff !important;
}

[data-theme="dark"] .article-toc-link.is-sub {
    color: #71717a !important;
}

[data-theme="dark"] .article-toc-link.is-sub:hover,
[data-theme="dark"] .article-toc-link.is-sub.is-active {
    color: #ffffff !important;
    border-left-color: #ffffff !important;
}

/* Article Body Typography in Dark Mode */
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body ul,
[data-theme="dark"] .article-body ol,
[data-theme="dark"] .article-body li {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .article-body strong {
    color: #ffffff !important;
}

[data-theme="dark"] .article-body a {
    color: #ffffff !important;
    text-decoration-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .article-body a:hover {
    color: #ffffff !important;
    text-decoration-color: #ffffff !important;
}

[data-theme="dark"] .article-body code {
    background: #1a1a1f !important;
    color: #ffffff !important;
}

[data-theme="dark"] .article-body pre {
    background: #0d0d0f !important;
    border-color: var(--line) !important;
    color: #e2e8f0 !important;
}

/* Callouts, Diagrams & Vault in Dark Mode */
[data-theme="dark"] .article-callout {
    background: #0d0d0f !important;
    border: 1px solid var(--line) !important;
    border-left: 4px solid #ffffff !important;
}

[data-theme="dark"] .article-callout h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .article-callout p {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .article-callout a {
    color: #ffffff !important;
}

[data-theme="dark"] .graph-diagram-container,
[data-theme="dark"] .graph-box {
    background: #0d0d0f !important;
    border-color: var(--line) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .graph-box-label {
    color: #ffffff !important;
}

[data-theme="dark"] .graph-box-desc {
    color: var(--ink-dim, #b0b0b8) !important;
}

[data-theme="dark"] .vault-card {
    background: #0d0d0f !important;
    border-color: var(--line) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .vault-file-icon {
    background: #141416 !important;
    border-color: var(--line) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .vault-card-info h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .vault-card-info p {
    color: var(--ink-dim, #b0b0b8) !important;
}

[data-theme="dark"] .vault-title {
    color: #ffffff !important;
}

[data-theme="dark"] .vault-subtitle {
    color: var(--ink-dim, #b0b0b8) !important;
}

[data-theme="dark"] .user-auth-pill {
    background: #141416 !important;
    border-color: var(--line) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .vault-btn-locked {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

[data-theme="dark"] .vault-btn-locked:hover {
    background: #e5e5e7 !important;
    border-color: #e5e5e7 !important;
}

/* ==========================================================================
   DIRECTIONAL RESOURCE / PRESET CALLOUT CARD
   ========================================================================== */
.article-resource-callout {
    margin: 48px 0 24px 0;
    padding: 28px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.05);
    border: 1px solid rgba(88, 101, 242, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    transition: border-color 160ms ease, background 160ms ease;
}

.article-resource-callout:hover {
    background: rgba(88, 101, 242, 0.08);
    border-color: rgba(88, 101, 242, 0.35);
}

.article-resource-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5865F2;
    margin-bottom: 8px;
}

.article-resource-title {
    font-size: 18px;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 6px;
}

[data-theme="dark"] .article-resource-title {
    color: #ffffff;
}

.article-resource-desc {
    font-size: 14px;
    color: #52525b;
    line-height: 1.5;
}

[data-theme="dark"] .article-resource-desc {
    color: #a1a1aa;
}

.article-resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #5865F2;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.article-resource-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}


