/* ================================================
   Birmingham Newsroom — Article & Stories Styles
   ================================================ */

.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.article-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

.article-hero img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.article-meta {
    margin: 28px 0 6px;
    font-size: .82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.article-meta a {
    color: var(--navy);
    font-weight: 600;
}

.article-title {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--navy-dark);
    margin-bottom: 18px;
    letter-spacing: -.01em;
}

.article-lede {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 28px;
    font-weight: 500;
}

.article-body {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.article-body h2 {
    font-size: 1.35rem;
    color: var(--navy-dark);
    margin: 36px 0 14px;
    letter-spacing: -.005em;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.article-body h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 24px 0 10px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.article-body a:hover {
    background: #fff6d6;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 22px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--navy-dark);
}

.article-back {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: .9rem;
}

.article-back a {
    color: var(--navy);
    font-weight: 600;
}

/* ── Stories index (listing) ───────────────── */

.stories-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.stories-header {
    margin-bottom: 28px;
}

.stories-header h1 {
    font-size: 1.7rem;
    color: var(--navy-dark);
    margin-bottom: 6px;
}

.stories-header p {
    color: var(--text-sub);
    font-size: .95rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.story-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.story-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--border-soft);
}

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

.story-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-card-meta {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.story-card-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--navy-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}

.story-card-excerpt {
    color: var(--text-sub);
    font-size: .9rem;
    line-height: 1.55;
    flex: 1;
}

.story-card-more {
    margin-top: 14px;
    color: var(--navy);
    font-weight: 600;
    font-size: .85rem;
}

/* ── Dashboard "Latest Stories" module ─────── */

.stories-module-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.stories-module-item {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color .15s ease;
    text-decoration: none;
    color: inherit;
}

.stories-module-item:hover {
    border-color: var(--gold);
    text-decoration: none;
}

.stories-module-item .thumb {
    aspect-ratio: 16 / 9;
    background: var(--border-soft);
    overflow: hidden;
}

.stories-module-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stories-module-item .body {
    padding: 10px 12px 12px;
}

.stories-module-item .title {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.stories-module-item .date {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stories-module-link {
    display: inline-block;
    margin-top: 14px;
    font-size: .85rem;
    color: var(--navy);
    font-weight: 600;
}

/* ── Mobile tweaks ─────────────────────────── */

@media (max-width: 640px) {
    .article-title { font-size: 1.5rem; }
    .article-lede { font-size: 1rem; }
    .article-body { font-size: .95rem; }
    .article-body h2 { font-size: 1.15rem; }
    .stories-header h1 { font-size: 1.4rem; }
}
