/* newsfeed-legal.css - Styles for The American Conservative RSS feed excerpts */
/* Designed for dark/light mode compatibility with green/yellow accent theme */

*,
*::before,
*::after {
    box-sizing: border-box;
}

#thefeed {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    font-family: system-ui, -apple-system, BlinkMacOSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

#thefeed h1 {
    color: yellow;
    font-size: 1.8rem;
    margin: 0;
    padding: 0;
}

#thefeed h2 {
    color: rgb(160, 230, 140); /* softened lime green */
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 500;
    margin: 0.5rem 0 0.3rem;
    transition: color 0.2s ease;
}

#thefeed h2 a {
    color: inherit;
    text-decoration: none;
}

#thefeed h2 a:hover,
#thefeed h2 a:focus {
    color: rgb(200, 255, 180); /* brighter green on hover */
    text-decoration: underline;
}

#thefeed ul {
    padding: 0;
    list-style: none;
    margin: 1rem 0 0;
}

#thefeed .date {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.5px;
}

#thefeed .description {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #eeecec;
    margin: 0.6rem 0 1rem;
}

#thefeed .description a {
    color: rgb(180, 245, 165);
    text-decoration: underline;
    font-weight: 500;
}

#thefeed .description a:hover {
    color: rgb(220, 255, 200);
}

#box {
    border-bottom: 1px solid rgb(112, 112, 112);
    padding: 1.2rem 0;
    margin-bottom: 1.2rem;
}

.intro {
    color: rgb(180, 245, 165);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    font-style: italic;
}

.disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 1.5rem;
    font-style: italic;
    border-left: 3px solid rgb(112, 112, 112);
    padding-left: 1rem;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    #thefeed {
        padding: 0.8rem;
    }

    #thefeed h2 {
        font-size: 1.45rem;
        line-height: 1.25;
        font-weight: 600;
    }

    #thefeed .description {
        font-size: 1.1rem;
        line-height: 1.6;
        color: #e0e0e0;
    }

    #box {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
}

/* Dark mode preference (enhances readability on dark backgrounds) */
@media (prefers-color-scheme: dark) {
    #thefeed .description {
        color: #e0e0e0;
    }
    #thefeed .date {
        color: #bbb;
    }
    #thefeed .disclaimer {
        color: #999;
    }
}

/* Optional light-mode fallback if your site has a toggle or light theme */
@media (prefers-color-scheme: light) {
    #thefeed .description {
        color: #e0e0e0;
    }
    #thefeed .date {
        color: #666;
    }
    #thefeed .disclaimer {
        color: #777;
    }
}