/* === Lab Notes Index Section (on homepage) === */
.lab-notes {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
}

.lab-notes-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
}

.note-card {
    display: block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.note-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: inherit;
}

.note-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.note-card-meta time {
    font-family: var(--font-mono);
}

.note-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.note-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.note-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.note-card-tags span {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: 100px;
    color: var(--text-muted);
}

/* === Article Page === */
.post {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.post-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.post-back {
    color: var(--accent);
    font-family: var(--font-sans);
    font-weight: 500;
}

.post-back:hover {
    color: var(--accent-hover);
}

.post-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.post-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.post-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 100px;
    color: var(--text-muted);
}

/* === Article Body === */
.post-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.post-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-body a:hover {
    color: var(--accent-hover);
}

.post-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-body em {
    color: var(--accent);
    font-style: italic;
}

.post-body ul,
.post-body ol {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--accent);
}

/* === Data Tables === */
.data-table {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

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

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table .highlight-row td {
    background: rgba(99, 102, 241, 0.06);
    color: var(--accent);
}

.data-table .total-row td {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

/* === Code Blocks === */
.code-block {
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.code-header {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--border);
}

.code-block pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
    background: var(--bg-secondary);
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: none;
    padding: 0;
    border-radius: 0;
    line-height: 1.6;
}

/* === Post Footer === */
.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-footer-nav {
    display: flex;
    justify-content: flex-start;
}

/* === Responsive === */
@media (max-width: 600px) {
    .post-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.75rem;
    }
}
