/* SLOpulse public positioning — namespaced slp-* / slopulse-* */

.slp-public-stack {
    display: block;
    width: 100%;
    max-width: 100%;
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    clear: both;
    position: relative;
    z-index: 1;
}

body.slopulse-public-view .entry-content,
body.slopulse-public-view .slp-archive,
body.slopulse-public-view .slp-single {
    padding-bottom: 3rem;
    margin-bottom: 1.5rem;
    clear: both;
}

/* In-content brand line — never use bare <footer> (themes often fix/stick those). */
.slp-brand-footer {
    position: static !important;
    inset: auto !important;
    margin: 2rem 0 0;
    padding: 1rem 0 0;
    clear: both;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.slp-single-content footer,
.entry-content footer:not(.site-footer) {
    position: static !important;
    inset: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    z-index: auto !important;
    transform: none !important;
    float: none !important;
    clear: both;
}

/* Keep the real theme footer in normal document flow on SLOpulse pages. */
body.slopulse-public-view footer.site-footer,
body.slopulse-public-view #footer,
body.slopulse-public-view [data-colibri-id="footer"],
body.slopulse-public-view .h-footer {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100%;
    clear: both;
}

.slp-archive-inner,
.slp-single-inner,
.slopulse-latest-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.slp-hero,
.slp-offerings,
.slp-about,
.slp-disclaimer,
.slp-reddit-cta,
.slp-source-attribution {
    margin: 0 0 2.5rem;
}

.slp-offerings,
.slp-about {
    padding: 2rem 2rem 2.25rem;
    border-radius: 10px;
}

.slp-offerings {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.slp-about {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.slp-about h2 {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
}

.slp-about p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: #334155;
}

.slp-about p:last-child {
    margin-bottom: 0;
}

.slp-hero {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
}

.slp-hero-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0b6f96;
}

.slp-hero-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    line-height: 1.2;
}

.slp-hero-tagline {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.slp-hero-text {
    margin: 0;
    line-height: 1.6;
    color: #334155;
}

.slp-offerings-heading {
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
}

.slp-offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.slp-offering-card {
    padding: 1.5rem 1.75rem 1.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.slp-offering-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.slp-offering-card p {
    margin: 0 0 0.85rem;
    line-height: 1.6;
    color: #475569;
}

.slp-offering-card p:last-child {
    margin-bottom: 0;
}

.slp-offering-card a {
    font-weight: 600;
}

.slp-disclaimer {
    padding: 1.5rem 1.75rem 1.65rem;
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    border-radius: 0 8px 8px 0;
    color: #78350f;
}

.slp-disclaimer p {
    margin: 0;
    line-height: 1.65;
}

.slp-source-attribution {
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.slp-source-attribution p {
    margin: 0;
}

.slp-reddit-cta {
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    text-align: center;
}

.slp-reddit-cta-link {
    display: inline-block;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.slp-reddit-cta-note {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.slp-about-operator {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.slp-archive {
    padding: 2rem 1rem 3rem;
}

.slp-archive-header {
    text-align: center;
    margin: 0 0 1.5rem;
}

.slp-archive-header h1 {
    margin: 0 0 0.5rem;
}

.slp-archive-intro {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.slp-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.slp-archive-card {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.slp-archive-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.slp-archive-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.slp-archive-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.slp-archive-card-excerpt {
    margin: 0 0 0.5rem;
    color: #475569;
    font-size: 0.95rem;
}

.slp-archive-card-date {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
}

.slp-archive-card-readmore {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.slp-single {
    padding: 2rem 1rem 3rem;
}

.slp-single-header {
    margin-bottom: 1rem;
}

.slp-single-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0b6f96;
}

.slp-single-title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    line-height: 1.2;
}

.slp-single-date {
    margin: 0;
    color: #64748b;
}

.slp-single-content {
    line-height: 1.7;
    margin: 1.25rem 0;
}

.slp-single-footer {
    margin-top: 2rem;
}

.slopulse-latest-wrapper {
    margin: 40px auto;
    padding: 20px;
}
.slopulse-story {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}
.slopulse-thumb img {
    width: 160px;
    height: auto;
    border-radius: 4px;
}
.slopulse-meta h3 {
    margin: 0 0 10px;
}
.slopulse-meta .read-more {
    font-weight: bold;
    color: #1e73be;
}
.slopulse-single-article {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}
.slopulse-title {
    font-size: 2.2em;
    margin-bottom: 10px;
}
.slopulse-date {
    font-style: italic;
    color: #777;
    margin-bottom: 20px;
}
.slopulse-featured-image img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.slopulse-content {
    line-height: 1.7;
}
.slopulse-article-footer {
    margin-top: 40px;
}
.slopulse-archive.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

.slopulse-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.slopulse-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.slopulse-archive-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.slopulse-archive-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.slopulse-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.slopulse-card-title {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.slopulse-card-excerpt {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 10px;
}

.slopulse-card-date {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 5px;
}

.slopulse-card-readmore {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #1e73be;
}

/* Mobile: left-align readable content (stories, posts, pages) */
@media (max-width: 768px) {
    body.slopulse-readable-view #main-content,
    body.slopulse-readable-view .entry-content,
    body.slopulse-readable-view .slp-single,
    body.slopulse-readable-view .slp-single-inner,
    body.slopulse-readable-view .slp-single-header,
    body.slopulse-readable-view .slp-single-content,
    body.slopulse-readable-view .slopulse-single-article,
    body.slopulse-readable-view .slopulse-content,
    body.slopulse-readable-view .slp-direct-answer,
    body.slopulse-readable-view .slp-related-links,
    body.slopulse-readable-view .slp-engage,
    body.slopulse-readable-view .slp-source-attribution,
    body.slopulse-readable-view .slp-disclaimer,
    body.slopulse-readable-view .slp-about,
    body.slopulse-readable-view .slp-offerings,
    body.slopulse-readable-view .slp-hero,
    body.slopulse-readable-view .slopulse-latest-wrapper,
    body.slopulse-readable-view .slp-archive-header,
    body.slopulse-readable-view .slopulse-archive-header {
        text-align: left !important;
    }

    body.slopulse-readable-view .entry-content :where(
        p, h1, h2, h3, h4, h5, h6,
        ul, ol, li, blockquote, aside, section, figcaption
    ),
    body.slopulse-readable-view .slp-single-content :where(
        p, h2, h3, ul, ol, li, section
    ) {
        text-align: left !important;
    }

    body.slopulse-readable-view .entry-content ul,
    body.slopulse-readable-view .entry-content ol,
    body.slopulse-readable-view .slp-single-content ul,
    body.slopulse-readable-view .slp-single-content ol {
        padding-left: 1.25rem;
        margin-left: 0;
    }

    body.slopulse-readable-view .slopulse-story {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    body.slopulse-readable-view .slopulse-meta {
        text-align: left;
        width: 100%;
    }

    body.slopulse-readable-view .slp-brand-footer {
        text-align: left !important;
    }

    /* Colibri / theme wrappers often center singular templates on small screens */
    body#colibri.slopulse-readable-view .entry-content,
    body#colibri.slopulse-readable-view [class*="colibri"] .entry-content,
    body#colibri.slopulse-readable-view main {
        text-align: left !important;
    }
}
