/*
  article-head.css
  Breadcrumb, category pill, headline, standfirst, byline, tag links, share row, hero image.
  No background colour on purpose: it sits on the page wash.
  Needs css/base.css.
*/

.fm-article-head { padding-block: 1rem 1.25rem; }

/* ---------- Breadcrumb: Home / News / headline ---------- */
.fm-breadcrumb { margin-bottom: 1.25rem; font-size: var(--fm-t-xs); color: var(--fm-muted); }
.fm-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
/* The slash between items is added here, so the HTML is just a list */
.fm-breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: #9fb0bc; }
.fm-breadcrumb a { color: var(--fm-blue); font-weight: 600; }
.fm-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Current page (the headline) is cut to one line so a long title can't wrap the trail */
.fm-breadcrumb li[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Category pill (links to the category page) ---------- */
.fm-pill { display: inline-block; }
.fm-pill a { display: block; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--fm-blue); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; }
.fm-pill a:hover { background: var(--fm-blue-deep); }

/* ---------- Headline block ---------- */
.fm-article-head h1 { max-width: 34ch; margin-top: 0.75rem; font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.6rem); line-height: 1.1; }
.fm-article-head__standfirst { max-width: 46rem; margin-top: 0.9rem; font-size: 1.1875rem; line-height: 1.5; color: var(--fm-muted); }

/* Byline + tag links on the left, share icons on the right */
.fm-article-head__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem;
  margin: 1.25rem 0 1.5rem; padding-top: 0.9rem;
  border-top: 1px solid var(--fm-rule);
}
.fm-article-head__byline { display: flex; flex-wrap: wrap; gap: 0.2rem 0; font-size: var(--fm-t-sm); color: var(--fm-muted); }
.fm-article-head__byline strong { color: var(--fm-ink); font-weight: 600; }
/* Divider bars between date, author and read time (not before the first item) */
.fm-article-head__byline > * + *::before { content: "|"; margin-inline: 0.7rem; color: #b3c1cb; }
.fm-article-head__tags { margin-top: 0.2rem; font-size: var(--fm-t-sm); color: var(--fm-muted); }
.fm-article-head__tags a { font-weight: 600; color: var(--fm-blue); }
.fm-article-head__tags a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Share icons ---------- */
.fm-share { display: flex; gap: 0.5rem; }
.fm-share a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #fff; color: var(--fm-blue); box-shadow: inset 0 0 0 1px var(--fm-rule); }
.fm-share a:hover { background: var(--fm-blue); color: #fff; box-shadow: none; }
.fm-share svg { width: 1.0625rem; height: 1.0625rem; fill: currentColor; }
.fm-share svg.fm-share__line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero image ---------- */
/* 16:9, full content width, same as the BFREPA article image */
.fm-article-head__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fm-radius); background: var(--fm-blue-tint); }
.fm-article-head__hero figcaption { margin-top: 0.6rem; font-size: var(--fm-t-xs); color: var(--fm-muted); }

/* Phones: items can wrap onto separate lines, so stack them and drop the bars */
@media (max-width: 39.99rem) {
  .fm-article-head__byline { flex-direction: column; }
  .fm-article-head__byline > * + *::before { content: none; }
}
