/* Readable community story page. */
.sp-story-page {
    width: 100%;
    min-height: 70vh;
    padding: clamp(2rem, 6vw, 5rem) 1rem;
    background: #08090c;
}

.sp-story {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 3rem);
    color: #f5f7fb;
    background: linear-gradient(150deg, #111827, #0b1018);
    border: 1px solid rgba(255, 183, 92, 0.24);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.sp-story__author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sp-story__avatar {
    display: block;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    background: #273244;
}

.sp-story__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-story__eyebrow {
    margin: 0;
    color: #f5ae57;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sp-story__byline {
    margin: 0.25rem 0 0;
    color: #aeb8c7;
    font-size: 0.86rem;
}

.sp-story__title {
    max-width: 18ch;
    margin: 1.5rem 0 0;
    color: #fff;
    font-family: var(--font-display, Georgia, serif);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.sp-story__media {
    margin: 2rem 0 0;
    overflow: hidden;
    border-radius: 18px;
    background: #0d1420;
}

.sp-story__media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
}

.sp-story__content {
    max-width: 68ch;
    margin-top: 2rem;
    color: #e5eaf2;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.85;
    overflow-wrap: anywhere;
    word-break: normal;
}

.sp-story__content p {
    margin: 0 0 1.15em;
}

.sp-story__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-story__back {
    color: #ffc477;
    font-weight: 700;
    text-decoration: none;
}

.sp-story__back:hover,
.sp-story__back:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.post-card__image {
    display: block;
    overflow: hidden;
    margin: 0 1rem;
    border-radius: 14px;
}

.post-card__image img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.sp-home-stories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .sp-home-stories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .sp-story-page { padding: 1rem 0.75rem 3rem; }
    .sp-story { border-radius: 18px; }
    .sp-story__title { max-width: none; }
    .sp-home-stories__grid { grid-template-columns: 1fr; }
}
