:root {
    --article-bg: rgba(1, 21, 33, 0.96);
    --article-border: rgba(0, 212, 255, 0.18);
}

.article-layout {
    padding: 130px 0 80px;
    background: linear-gradient(180deg, rgba(0, 22, 34, 0.85), rgba(0, 8, 14, 0.95));
}

.article-shell {
    display: grid;
    gap: 2rem;
    background: var(--article-bg);
    border-radius: 32px;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--article-border);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
}

.reading-progress-container {
    position: sticky;
    top: 76px;
    height: 6px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.reading-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-accent));
    transition: width 0.2s ease-out;
}

.article-header {
    display: grid;
    gap: 1rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.article-tags .tag {
    background: rgba(0, 212, 255, 0.15);
    padding: 0.45rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.table-of-contents {
    background: rgba(0, 32, 48, 0.85);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 212, 255, 0.12);
}

.table-of-contents h3 {
    margin-top: 0;
}

.table-of-contents ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.table-of-contents a {
    color: var(--primary-accent);
    font-weight: 600;
}

.article-content {
    display: grid;
    gap: 2rem;
}

.article-content section {
    display: grid;
    gap: 1rem;
}

.article-content section h2,
.article-content section h3 {
    color: var(--primary-accent);
}

.article-content p {
    color: var(--text-light);
}

.article-content ul,
.article-content ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-muted);
}

.article-callout {
    background: rgba(0, 212, 255, 0.12);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: var(--text-light);
}

.article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.article-navigation a {
    color: var(--primary-accent);
    font-weight: 600;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-color);
}

@media (min-width: 900px) {
    .article-shell {
        grid-template-columns: 1fr 0.35fr;
        align-items: start;
    }

    .article-content {
        grid-column: 1 / 2;
    }

    .table-of-contents {
        position: sticky;
        top: 120px;
        grid-column: 2 / 3;
    }
}

