/* Legacy blog templates (pre–nav.js shell) — used with core.css */

/* —— Static navbar (not injected) —— */
nav.navbar:not(#mainNavbar) {
    position: sticky;
    top: 0;
    z-index: 8000;
    background: rgba(250, 245, 231, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(54, 32, 23, 0.08);
}
nav.navbar:not(#mainNavbar) .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
nav.navbar:not(#mainNavbar) .navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--bark);
    font-weight: 800;
    font-size: 1.05rem;
}
nav.navbar:not(#mainNavbar) .logo-pixel {
    color: var(--mist);
    font-size: 1.1rem;
}
nav.navbar:not(#mainNavbar) .nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav.navbar:not(#mainNavbar) .nav-item a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bark);
    text-decoration: none;
}
nav.navbar:not(#mainNavbar) .nav-item a:hover {
    color: #5a3828;
}
/* Legacy hamburger had no JS once scripts removed — hide, keep links visible */
nav.navbar:not(#mainNavbar) div.hamburger {
    display: none !important;
}

.page-header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--bark);
}
.page-header p {
    color: rgba(54, 32, 23, 0.55);
    font-size: 1.02rem;
}

.blog-article {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
.blog-article-header {
    margin-bottom: 2rem;
}
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    font-size: 0.88rem;
    color: rgba(54, 32, 23, 0.55);
}
.blog-article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.blog-article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bark);
    color: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.blog-article-featured-image {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(54, 32, 23, 0.1);
}
.blog-article-featured-image img {
    width: 100%;
    display: block;
}
.blog-article-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2.25rem 0 1rem;
    color: var(--bark);
}
.blog-article-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.75rem 0 0.65rem;
}
.blog-article-content p,
.blog-article-content li {
    color: rgba(54, 32, 23, 0.82);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.blog-article-content ul,
.blog-article-content ol {
    margin: 1rem 0 1.5rem 1.25rem;
}
.blog-article-blockquote {
    border-left: 4px solid var(--mist);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    background: rgba(169, 187, 209, 0.12);
    font-style: italic;
    color: rgba(54, 32, 23, 0.75);
    border-radius: 0 12px 12px 0;
}
.blog-article-code {
    background: #1e0e08;
    color: #e8dcc4;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-family: ui-monospace, monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 1rem 0;
    white-space: pre-wrap;
}

.blog-author-bio {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(54, 32, 23, 0.04);
    border-radius: 16px;
    text-align: center;
}
.blog-author-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--bark);
    color: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.blog-author-name {
    font-weight: 800;
    font-size: 1.1rem;
}
.blog-author-role {
    font-size: 0.85rem;
    color: rgba(54, 32, 23, 0.5);
    margin-bottom: 0.75rem;
}
.blog-author-bio p {
    color: rgba(54, 32, 23, 0.7);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

.blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(54, 32, 23, 0.1);
}
.blog-related-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.blog-related .blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(54, 32, 23, 0.08);
    box-shadow: 0 6px 20px rgba(54, 32, 23, 0.06);
}
.blog-related .blog-card-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.blog-related .blog-card-content {
    padding: 1rem;
}
.blog-related .blog-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-related .blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6f82;
    text-decoration: none;
}
.blog-related .blog-card-link:hover {
    text-decoration: underline;
}

.footer {
    background: #1e0e08;
    color: rgba(250, 245, 231, 0.75);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 2rem;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 2rem;
}
.footer-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--parchment);
    margin-bottom: 0.5rem;
}
.footer-logo .logo-pixel { color: var(--mist); margin-right: 0.25rem; }
.footer-tagline {
    font-size: 0.88rem;
    color: rgba(250, 245, 231, 0.45);
    margin-bottom: 1rem;
}
.footer-social {
    display: flex;
    gap: 0.5rem;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--parchment);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
}
.footer-column h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(250, 245, 231, 0.45);
    margin-bottom: 0.85rem;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column li { margin-bottom: 0.45rem; }
.footer-column a {
    color: rgba(250, 245, 231, 0.88);
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-column a:hover { color: var(--mist); }
.footer .footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.78rem;
    color: rgba(250, 245, 231, 0.35);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
