/* Stories page (SAPBACK-0094). Colors come from the tokens in /channel/style.css. */

.stories-body {
    text-align: left;
}

.stories-empty {
    text-align: center;
}

/* Round photo, or the placeholder: navy circle with a sky-blue quote mark. */
.story-av {
    display: block;
    flex: none;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--color-accent-sky);
    background: var(--color-navy);
}

.story-av-lg { width: 150px; height: 150px; }
.story-av-sm { width: 56px; height: 56px; }

.story-av-ph {
    position: relative;
}

.story-av-ph::before {
    content: "\201C";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.18em;
    color: var(--color-accent-sky);
    font-weight: 700;
    line-height: 1;
}

.story-av-lg.story-av-ph::before { font-size: 4.5rem; }
.story-av-sm.story-av-ph::before { font-size: 2rem; }

/* Featured (newest) story */
.story-featured {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    border-top: 6px solid var(--color-accent-sky);
    box-shadow: 0 14px 40px rgba(0, 51, 102, 0.14);
}

.story-featured blockquote {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-size: 1.5rem;
    line-height: 1.55;
    color: var(--color-navy);
}

.story-featured cite,
.story-card cite {
    font-style: normal;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-orange);
}

/* Remaining stories */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.story-card {
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--color-accent-sky);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.1);
    padding: 1.5rem;
}

.story-card-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.story-card blockquote {
    margin: 1rem 0 0;
    padding: 0;
    border: 0;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Donate band */
.stories-cta h2 {
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .story-featured {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }
    .story-featured blockquote { font-size: 1.15rem; }
    .stories-grid { grid-template-columns: 1fr; }
}
