/* News/Index, News/Item and Me/News. The cards, embed and status pills are in components/news-card.css. */

/* <main> is a flex item centred with auto margins, so on its own it shrinks to its content - a
   short story would leave a column a couple of hundred pixels wide. Hold it at the full shell width. */
.news-page { width: 100%; }

/* ---------- /news ---------- */
.news-pager {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 1rem; margin-top: 2rem;
}
.news-pager-pos { font-size: .85rem; color: var(--muted); }

/* ---------- /news/{id} ---------- */
.news-story { max-width: 46rem; }
.news-story-head .eyebrow { display: block; margin-bottom: .5rem; }
.news-story-head .section-title { margin-bottom: .75rem; }
.news-story-summary { font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 1.75rem; }

.news-story-photo {
    /* Tall or square photos are cropped to a sensible band rather than filling the screen. */
    display: block; width: 100%; height: auto; max-height: 30rem; object-fit: cover; object-position: 50% 20%; margin-bottom: 1.75rem;
    border-radius: .85rem; background: var(--thumb-bg);
}

.news-story-body { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.news-story-body > :first-child { margin-top: 0; }
.news-story-body h2, .news-story-body h3 { margin: 1.75rem 0 .6rem; line-height: 1.25; }
.news-story-body h2 { font-size: 1.4rem; }
.news-story-body h3 { font-size: 1.15rem; }
.news-story-body ul, .news-story-body ol { padding-left: 1.25rem; }
.news-story-body li + li { margin-top: .3rem; }
.news-story-body a { color: var(--blue); text-decoration: underline; }

.news-story-video { margin: 2rem 0; }

.news-story-drivers { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.news-story-sub {
    font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 .85rem;
}
.news-story-drivers ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.news-story-drivers a {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .3rem .85rem .3rem .3rem; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.news-story-drivers a:hover, .news-story-drivers a:focus-visible { border-color: var(--red); }
.news-story-drivers img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }

/* ---------- /me/news ---------- */
.mynews-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.mynews-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
    padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--surface);
}
.mynews-body { flex: 1 1 18rem; min-width: 0; }
.mynews-title { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.mynews-meta { margin: .25rem 0 0; font-size: .82rem; color: var(--muted); }
.mynews-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
