/* Minimal theme — first body (single post) */

body.homepage-theme-minimal {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    overflow-x: hidden;
    max-width: 100%;
}

body.homepage-theme-minimal main {
    padding-top: 4.25rem;
}

body.homepage-theme-minimal .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
}

body.homepage-theme-minimal .navbar-brand {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.375rem;
    color: #1a1a1a !important;
    font-weight: 400;
}

body.homepage-theme-minimal .nav-link {
    color: #888 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

body.homepage-theme-minimal .nav-link:hover,
body.homepage-theme-minimal .nav-link.active {
    color: #1a1a1a !important;
}

body.homepage-theme-minimal .site-footer {
    margin-top: 3rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    padding: 1.75rem 0;
}

body.homepage-theme-minimal .site-footer__grid {
    display: none;
}

body.homepage-theme-minimal .site-footer__bottom {
    border: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #bbb;
}

body.homepage-theme-minimal .mn-fb-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    width: 100%;
    overflow-x: hidden;
}

body.homepage-theme-minimal .mn-fb-inner {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 1rem;
}

body.homepage-theme-minimal .mn-fb-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #888;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

body.homepage-theme-minimal .mn-fb-back:hover {
    color: #1a1a1a;
}

body.homepage-theme-minimal .mn-fb-ad {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    text-align: center;
}

body.homepage-theme-minimal .mn-fb-ad-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin-bottom: 0.5rem;
}

body.homepage-theme-minimal .mn-fb-date {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

body.homepage-theme-minimal .mn-fb-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
}

body.homepage-theme-minimal .mn-fb-thumbnail {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    display: block;
}

body.homepage-theme-minimal .mn-fb-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #333;
    font-weight: 300;
}

body.homepage-theme-minimal .mn-fb-content h1,
body.homepage-theme-minimal .mn-fb-content h2,
body.homepage-theme-minimal .mn-fb-content h3 {
    font-family: 'DM Serif Display', serif;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
}

body.homepage-theme-minimal .mn-fb-content p {
    margin-bottom: 1.25rem;
}

body.homepage-theme-minimal .mn-fb-content a {
    color: #1a1a1a;
    border-bottom: 1px solid #ddd;
}

body.homepage-theme-minimal .mn-fb-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px;
    margin: 1.5rem auto;
    display: block;
}

body.homepage-theme-minimal .mn-fb-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.9375rem;
    color: #555;
}

body.homepage-theme-minimal .mn-fb-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

body.homepage-theme-minimal .mn-fb-related {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

body.homepage-theme-minimal .mn-fb-related-heading {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
    margin-bottom: 1.5rem;
}

body.homepage-theme-minimal .mn-fb-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.homepage-theme-minimal .mn-fb-related-item {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: inherit;
    transition: opacity 0.2s;
}

body.homepage-theme-minimal .mn-fb-related-item:hover {
    opacity: 0.8;
}

body.homepage-theme-minimal .mn-fb-related-item:last-child {
    border-bottom: none;
}

body.homepage-theme-minimal .mn-fb-related-item img {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    order: 2;
}

body.homepage-theme-minimal .mn-fb-related-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.0625rem;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}

body.homepage-theme-minimal .mn-fb-related-meta {
    font-size: 0.75rem;
    color: #aaa;
}

@media (max-width: 768px) {
    body.homepage-theme-minimal main {
        padding-top: 3.75rem;
    }

    body.homepage-theme-minimal .mn-fb-title {
        font-size: 1.75rem;
    }

    body.homepage-theme-minimal .mn-fb-thumbnail {
        max-height: 240px;
    }

    body.homepage-theme-minimal .mn-fb-related-item {
        grid-template-columns: 1fr;
    }

    body.homepage-theme-minimal .mn-fb-related-item img {
        width: 100%;
        height: 160px;
        order: 0;
    }

    body.homepage-theme-minimal .mn-fb-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
