/* General body styling inherited from your magazine feel */
body {
    font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
    background-color: #f7f7f3; 
    color: #4a4a4a; 
    line-height: 1.8; 
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh;
}

/* Container for the link post - matching your renderSingle structure */
article.type-links {
    background-color: #ffffff; 
    padding: 2.5rem; 
    max-width: 800px; 
    width: 100%;
    margin: 0 auto; 
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Header styles */
article.type-links .entry-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

article.type-links .entry-title {
    font-size: 2.2rem; 
    font-weight: 700;
    margin: 0;
    color: #2e3a47; 
    letter-spacing: 0.5px; 
    line-height: 1.3;
}

article.type-links .entry-date {
    font-size: 0.9rem;
    color: #777; 
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Content styles */
article.type-links .entry-content {
    font-size: 1.2rem; 
    color: #4a4a4a; 
    margin-top: 1.5rem; 
    line-height: 1.8; 
}

/* Links in the content */
article.type-links .entry-content a {
    color: #4c9a9e; 
    text-decoration: underline;
}

article.type-links .entry-content a:hover {
    text-decoration: none;
    color: #3a7271; 
}

/* Footer styling for the Source link */
article.type-links .entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 1rem;
    color: #7a7a7a;
}

.external-source a {
    color: #4c9a9e;
    font-weight: bold;
    word-break: break-all;
}

/* Global site footer from footer.php */
footer[role="contentinfo"] {
    margin-top: 3rem;
    text-align: center;
    color: #657786;
    font-size: 0.9rem;
}

/* Styling for the mini-header used on single pages */
/* Container for the mini header */
.header-mini {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Puts logo on left, links on right */
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 800px; /* Matches your whitepapers and notes width */
}

/* Logo styling */
.logo.small-logo {
    width: 35px;
    height: auto;
    display: block;
}

/* Navigation links */
.mini-nav-links {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-link {
    text-decoration: none;
    color: #657786; /* Neutral grey from your notes.css */
    transition: color 0.2s ease;
}

.mini-link:hover {
    color: #1da1f2; /* Twitter blue highlight */
}

.mini-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #222; 
        color: #e0e0e0; 
    }

    article.type-links {
        background-color: #2d3741; 
        border: none;
    }

    article.type-links .entry-title {
        color: #ffffff; 
    }

    article.type-links .entry-date {
        color: #aaa;
    }

    article.type-links .entry-content {
        color: #d0d0d0; 
    }

    article.type-links .entry-content a,
    .external-source a {
        color: #66b3ff; 
    }
}