.blog-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.text-page-container .post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-card {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.post-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.post-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-family: var(--font-body);
    letter-spacing: normal;
}

.post-card h2 a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.post-card h2 a:hover {
    color: var(--text-main);
    text-decoration: none;
}

.post-card .post-excerpt {
    color: var(--text-muted);
    margin: 0.75rem 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
}

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

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.post-updated::before {
    content: "·";
    margin-right: 0.35rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background-color: #dcfce7;
    color: #166534;
    font-size: 1rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-decoration: none;
}

.post-tag:hover {
    background-color: #bbf7d0;
    text-decoration: none;
}

.read-more {
    display: inline-block;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.blog-empty p {
    margin-bottom: 0.5rem;
}

article.post-content h2 {
    margin-top: 2.5rem;
}

article.post-content h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

article.post-content .toc {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 0 0 2rem 0;
}

article.post-content .toc p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

article.post-content .toc ul {
    margin: 0;
    padding-left: 1.25rem;
}

article.post-content .toc li {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

article.post-content .post-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

article.post-content .catalog-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

article.post-content .catalog-link:hover {
    background-color: var(--accent);
    text-decoration: none;
}

article.post-content .post-callout {
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

article.post-content .post-callout > strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

article.post-content .post-callout p:last-child {
    margin-bottom: 0;
}

article.post-content .post-callout--recommend {
    border-left-color: #166534;
    background-color: #f0fdf4;
}

article.post-content .post-callout--warning {
    border-left-color: #a16207;
    background-color: #fffbeb;
}

article.post-content .post-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

article.post-content .post-inline-tags .post-tag {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
}

article.post-content .post-table-wrap {
    overflow: hidden;
    margin: 1.25rem 0 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #ffffff;
}

article.post-content .post-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text-main);
}

article.post-content .post-table th,
article.post-content .post-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    overflow-wrap: anywhere;
}

article.post-content .post-table th {
    background-color: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid var(--border);
}

article.post-content .post-table tbody tr:nth-child(even) td {
    background-color: #fafbfc;
}

article.post-content .post-table tr:last-child td {
    border-bottom: 0;
}

article.post-content .post-table td.score {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

article.post-content .post-note {
    color: var(--text-muted);
    font-size: 1rem;
}

article.post-content .post-sources {
    font-size: 1rem;
}

@media (max-width: 640px) {
    .page-text:has(.post-list) .text-page-container {
        margin: 1rem 0.75rem;
        padding: 1.25rem 1rem;
    }

    .post-card {
        padding: 1rem;
    }

    article.post-content .post-table {
        table-layout: auto;
    }

    article.post-content .post-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    article.post-content .post-table,
    article.post-content .post-table tbody,
    article.post-content .post-table tr,
    article.post-content .post-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    article.post-content .post-table tr {
        border-bottom: 1px solid var(--border);
        padding: 0.65rem 0;
    }

    article.post-content .post-table tr:last-child {
        border-bottom: 0;
    }

    article.post-content .post-table tbody tr:nth-child(even) td {
        background-color: transparent;
    }

    article.post-content .post-table td {
        border: 0;
        padding: 0.4rem 1rem;
        position: relative;
        min-height: 1.7rem;
        vertical-align: top;
    }

    article.post-content .post-table td.score {
        text-align: left;
    }

    article.post-content .post-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.15rem;
        font-weight: 600;
        color: var(--text-muted);
    }
}

.blog-intro, .post-card .post-excerpt { color: var(--text-main); }
.post-card { background-color: #fff; }
.post-card h2 a, .post-card h2 a:hover, .read-more {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
