/* Shared branded presentation for the public blog list and article pages. */
.blog-hero,
.post-header {
    min-height: calc(100vh - var(--public-nav-height));
    min-height: calc(100svh - var(--public-nav-height));
    margin-top: var(--public-nav-height);
    padding: 4rem 1.5rem;
    background: var(--public-bg);
    border-bottom: 0;
}

.blog-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: left;
}

.blog-hero > * {
    width: min(var(--public-content-max), 100%);
}

.blog-hero h1 {
    max-width: 820px;
    margin: 0 0 1.25rem;
    background: none;
    color: var(--public-text);
    font-size: clamp(2.8rem, 7vw, var(--public-hero-title-max));
    font-weight: 800;
    line-height: 1;
    -webkit-text-fill-color: currentColor;
}

.blog-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--public-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.back-home,
.back-link {
    color: var(--public-muted);
}

.blog-grid-section {
    max-width: none;
    margin: 0;
    padding: var(--public-section-space) 1.5rem var(--public-large-section-space);
    background: var(--public-paper);
}

.blog-grid,
.tag-filter-bar,
.pagination-wrapper,
.empty-state {
    width: min(var(--public-wide-content-max), 100%);
    margin-right: auto;
    margin-left: auto;
}

.tag-filter-bar {
    justify-content: flex-start;
    padding: 0;
}

.filter-divider {
    color: rgba(7, 17, 32, 0.2);
}

.tag-pill,
.lang-pill {
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(7, 17, 32, 0.22);
    background: transparent;
    color: #53606c;
    font-size: 0.8rem;
}

.tag-pill:hover,
.tag-pill.active,
.lang-pill:hover,
.lang-pill.active {
    border-color: var(--public-orange);
    background: rgba(249, 115, 22, 0.09);
    color: var(--public-ink);
}

.blog-grid {
    gap: 1rem;
}

.blog-card {
    background: var(--public-text);
    border: 1px solid rgba(7, 17, 32, 0.14);
    border-radius: 8px;
}

.blog-card:hover {
    border-color: var(--public-orange);
    box-shadow: 0 14px 35px rgba(7, 17, 32, 0.12);
    transform: translateY(-3px);
}

.blog-card-image {
    height: 190px;
    background: var(--public-surface);
}

.blog-card-body {
    padding: 1.35rem;
}

.blog-card-meta {
    color: #6b7682;
}

.blog-card-meta .badge-lang,
.tag-pill-sm,
.post-tag-pill {
    background: rgba(249, 115, 22, 0.09);
    border: 1px solid rgba(249, 115, 22, 0.28);
    color: #b9470b;
}

.blog-card h2 {
    color: var(--public-ink);
    font-size: 1.25rem;
    font-weight: 800;
}

.blog-card p {
    color: #53606c;
}

.blog-card-link {
    color: #b9470b;
}

.pagination-wrapper .page-btn {
    border: 1px solid rgba(7, 17, 32, 0.18);
    border-radius: 6px;
    color: #53606c;
}

.pagination-wrapper .page-btn:hover,
.pagination-wrapper .page-btn.active {
    border-color: var(--public-orange);
    background: rgba(249, 115, 22, 0.09);
    color: var(--public-ink);
}

.empty-state {
    color: #6b7682;
}

.post-header {
    display: flex;
    align-items: center;
}

.post-container {
    width: min(820px, 100%);
    max-width: 820px;
}

.post-breadcrumb,
.post-breadcrumb a,
.post-breadcrumb span {
    color: var(--public-muted) !important;
}

.post-title {
    color: var(--public-text);
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
}

.post-meta {
    color: var(--public-muted);
}

.post-meta .badge-lang {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--public-orange);
}

.post-content-wrapper {
    padding: var(--public-section-space) 1.5rem var(--public-large-section-space);
    background: var(--public-paper);
}

.post-content-wrapper .post-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.post-featured-image {
    max-height: 520px;
    border-radius: 8px;
}

.post-summary {
    padding: 0 0 0 1.5rem;
    background: transparent;
    border-left: 3px solid var(--public-orange);
    border-radius: 0;
    color: var(--public-ink);
    font-family: "Source Serif 4", serif;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-style: normal;
    line-height: 1.55;
}

.post-content {
    color: #263340;
    font-family: "Source Serif 4", serif;
    font-size: 1.12rem;
    line-height: 1.85;
}

.post-content h2,
.post-content h3 {
    color: var(--public-ink);
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.post-content a {
    color: #b9470b;
}

.post-content blockquote {
    background: rgba(249, 115, 22, 0.06);
    color: #3e4b57;
}

.post-content pre {
    background: var(--public-bg);
    border: 1px solid var(--public-border);
    border-radius: 8px;
    color: var(--public-text);
}

.post-content code {
    background: rgba(7, 17, 32, 0.08);
}

.post-content pre code {
    background: transparent;
}

.post-content hr {
    border-top-color: rgba(7, 17, 32, 0.16);
}

.author-profile-card {
    padding: 2rem;
    background: var(--public-text);
    border: 1px solid rgba(7, 17, 32, 0.14);
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: none;
}

.author-profile-card:hover {
    border-color: var(--public-orange);
    box-shadow: none;
    transform: none;
}

.author-profile-card .author-label {
    color: #6b7682;
}

.author-profile-card .author-name {
    background: none;
    color: var(--public-ink);
    font-weight: 800;
    -webkit-text-fill-color: currentColor;
}

.author-avatar,
.author-avatar-placeholder {
    border: 2px solid rgba(249, 115, 22, 0.55);
    box-shadow: none;
}

.author-avatar-placeholder {
    background: var(--public-surface);
}

.author-bio-text {
    color: #53606c;
}

.post-cta {
    padding: 0;
}

@media (max-width: 768px) {
    .blog-hero,
    .post-header {
        min-height: calc(100vh - var(--public-nav-height));
        min-height: calc(100svh - var(--public-nav-height));
        padding: 3rem 1rem;
    }

    .blog-grid-section,
    .post-content-wrapper {
        padding: 4rem 1rem;
    }

    .post-header,
    .post-content-wrapper {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}
