.post-header {
    margin-bottom: 2rem;
}

.updated-label {
    font-size: 9px;
    font-style: italic;
    padding: 0.5em;
}

.title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    line-height: 1.1;
    margin-bottom: 0.75rem !important;
}

.content p, .content li {
    font-size: 17px !important;
    color: var(--slate-700);
    margin-bottom: 1.2rem;
}

.content li {
    line-height: 26px;
}

h1, h2, h3 {
    letter-spacing: -0.03em;
    color: var(--slate-900);
}

h2 {
    font-size: 1.7rem;
    scroll-margin-top: 60px;
}

h3 {
    font-size: 1.3rem;
    scroll-margin-top: 60px;
}

/* Floating TOC Logic */

.toc-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-400);
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

#toc a {
    display: block;
    font-size: 15px;
    color: var(--slate-700);
    padding: 0.5rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

#toc a:hover {
    color: var(--brand-blue);
    transform: translateX(4px);
}

#toc a.toc-h3 {
    padding-left: 1rem;
    font-size: 14px;
    color: var(--slate-400);
}

.toc-h2 {
    font-size: 14px;
    color: var(--slate-400);
}

.toc-sticky-container {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 20px;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.toc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-400);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.toc-list a {
    display: block;
    color: var(--slate-700);
    font-size: 12px;
    line-height: 1.4;
    padding: 0.6rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-list a:hover {
    color: var(--brand-blue);
    padding-left: 8px;
}

.toc-list a.toc-h3 {
    padding-left: 1.5rem;
    opacity: 0.8;
}

.content-wrapper {
    max-width: 850px;
    margin-right: auto;
}

div#toc a.active {
    color: var(--brand-blue) !important;
    border-left: 2px solid var(--brand-blue) !important;
    font-weight: 700 !important;
    background: rgba(99, 102, 241, 0.1) !important;
    padding-left: 15px !important;
}

#toc a.active {
    color: var(--brand-blue) !important;
    border-left: 2px solid var(--brand-blue) !important;
    font-weight: 700 !important;
    background-color: rgba(99, 102, 241, 0.08) !important;
    padding-left: 15px !important;
    transition: all 0.2s ease !important;
}

html {
    scroll-behavior: smooth;
}

h2, h3 {
    position: relative;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    .content-area {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.25rem !important;
    }
}
