/* General layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;
    background-color: #f5f8fa; /* Soft Twitter-like pastel */
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

/* Targets <article class='single-entry type-notes note'> from PHP */
article.note {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    padding: 25px;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

/* Header styles for the note */
article.note .entry-header {
    margin-bottom: 12px;
    border-bottom: 1px solid #e1e8ed;
    padding-bottom: 10px;
}

/* Targets the timestamp title generated by PHP */
article.note .entry-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #1da1f2;
}

/* Targets the 'Published on...' line */
article.note .entry-date {
    font-size: 0.85rem;
    color: #657786;
    display: block;
    margin-top: 5px;
}

/* Content styles: matches class='entry-content note-content' */
.note-content {
    font-size: 1.1rem;
    color: #14171a;
    line-height: 1.7;
}

.note-content p {
    margin: 0 0 1rem 0;
}

/* Styling links inside the note */
.note-content a {
    color: #1da1f2;
    font-weight: bold;
    text-decoration: none;
}

.note-content a:hover {
    text-decoration: underline;
}

/* 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 Alignment */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #15202b;
        color: #e1e8ed;
    }

    article.note {
        background-color: #192734;
        border: 1px solid #38444d;
    }

    article.note .entry-header {
        border-bottom-color: #38444d;
    }

    article.note .entry-title {
        color: #1da1f2;
    }

    .note-content {
        color: #e1e8ed;
    }
    .header-mini {
        border-bottom-color: #38444d;
    }
    .mini-link {
        color: #8899a6;
    }
}