/* ============================================================
   «Інфоцентр» — parts shared by the four views (blog list, article, news list, news item; loaded on them only:
   template-parts/infocenter/helpers.php bm_ic_setup() → bm_page_asset_keys). Design: owner handoff
   design/blog-news-2026-10-03 (README §0 + source/*.jsx.txt): the quiet breadcrumb look, the list head, meta line,
   stretched-link blocks, «Читати…» cues, the section marker label, the arrow.
   Tokens of base.css; radii 0 (README); small muted text = --bm-muted-text (#6B6F85, owner contrast decision) instead of
   the design's #868AA0; brand orange #F85A00 (hover #D94E00) never darkened. Motion: transform / opacity / colour /
   box-shadow, ease-out; none under prefers-reduced-motion.
   ============================================================ */

/* ---------- breadcrumb, the design's quiet look (README «Хлібні крихти»: Noto 13 px, gap 10, muted links, «/» in
   gray-300, the current page navy) — the site trail and its live labels unchanged (nav.bm-crumbs, one BreadcrumbList) */
.bm-crumbs--quiet ol { gap: 4px 10px; font: 400 13px/1.4 var(--bm-fb); letter-spacing: 0; text-transform: none; }
.bm-crumbs--quiet li:not(:last-child)::after { content: "/"; margin: 0 0 0 10px; font-weight: 400; color: var(--bm-g300); }
.bm-crumbs--quiet a { font-weight: 400; color: var(--bm-muted-text); }
.bm-crumbs--quiet a:hover { color: var(--bm-orange-text); }
.bm-crumbs--quiet [aria-current] { font-weight: 400; color: var(--bm-strong); }

/* ---------- list head (README 1.1–1.2, 3.1): crumbs, then the H1 on the left and the lead on the right ---------- */
.bm-ic-head { padding-top: clamp(24px, 3vw, 40px); }
.bm-ic-head .bm-crumbs { margin-bottom: clamp(18px, 2.4vw, 30px); }
.bm-ic-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bm-ic-head--blog .bm-ic-head__row { padding-bottom: clamp(16px, 2vw, 24px); border-bottom: 3px solid var(--bm-navy-700); }
.bm-ic-head--news .bm-ic-head__row { gap: clamp(16px, 3vw, 48px); }
.bm-ic-head__main { min-width: 0; }
.bm-ic-head__eyebrow { margin: 0 0 12px; }
.bm-ic-head__h1 { margin: 0; font-family: var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); overflow-wrap: break-word; }
.bm-ic-head--blog .bm-ic-head__h1 { font-weight: 900; font-size: clamp(40px, 1rem + 6vw, 104px); line-height: .9; letter-spacing: -.03em; }
.bm-ic-head--news .bm-ic-head__h1 { font-weight: 800; font-size: clamp(32px, 1rem + 3vw, 60px); line-height: 1; letter-spacing: -.02em; }
/* the design's orange full stop after «Блог» (README 1.2): decorative, not part of the H1 text; on every page of the list
   since 2026-10-15 - the paged suffix « - сторінка N» is no longer beside the name but the small line under it
   (base.css .bm-h1-page, owner request 2026-10-15; until then the stop was page 1 only and the suffix .36em beside it) */
.bm-ic-head--blog .bm-ic-head__name::after { content: "." / ""; color: var(--bm-orange); }
.bm-ic-head__lead { margin: 0; color: var(--bm-text); text-wrap: pretty; }
.bm-ic-head--blog .bm-ic-head__lead { max-width: 380px; font-size: 14.5px; line-height: 1.6; }
.bm-ic-head--news .bm-ic-head__lead { max-width: 420px; font-size: clamp(14.5px, .4vw + 12px, 16px); line-height: 1.6; }

/* ---------- small parts ---------- */
.bm-ic-img { width: 100%; height: 100%; object-fit: cover; }
.bm-ico.bm-ic-arrow { width: 16px; height: 16px; stroke-width: 2.2; }
.bm-ic-arrow--back { transform: scaleX(-1); }
/* meta line (README «Мета статті»): the rubric — 12.5 / 600, upper case, letter-spacing .05em (.04em in the cards and
   the hero: .bm-ic-meta--sq), brand orange — then the date — 500, muted, no upper case; the 4 × 4 square between them
   only where the design has it (bm-ic-meta--sq). The rubric prints in the rubric mode only (owner answer 2026-10-03,
   «Налаштування сайту → Сторінки → Показувати рубрики в блозі»; template-parts/infocenter/helpers.php bm_ic_meta_html()) */
.bm-ic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--bm-muted-text); }
.bm-ic-meta time { white-space: nowrap; }
.bm-ic-meta__rubric { font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--bm-orange-text); }
.bm-ic-meta--sq .bm-ic-meta__rubric { letter-spacing: .04em; }
.bm-ic-meta__sq { flex: none; width: 4px; height: 4px; background: var(--bm-g300); }
/* the byline wraps as one unit with its square (phones: a line of its own) */
.bm-ic-meta__by { display: inline-flex; align-items: center; gap: 12px; }
/* «Читати…» cue (decorative: the title is the link): 13.5 / 700 upper case, the arrow moves on hover */
.bm-ic-cue { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--bm-strong); }
.bm-ic-cue--accent { color: var(--bm-orange-text); }
.bm-ic-cue .bm-ic-arrow { color: var(--bm-orange); transition: transform 220ms var(--bm-ease-out); }
/* section marker + label (README «Маркер розділу»): a 28 × 2 orange line, then the text */
.bm-ic-label { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font: 800 clamp(18px, .5rem + 1.2vw, 24px)/1.2 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); text-wrap: balance; }
.bm-ic-label::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--bm-orange); }

/* ---------- stretched-link blocks (featured article, list rows, article cards): the title link covers the block, the
   excerpt's own links stay above it; hover = title orange + arrow, focus ring on the block ---------- */
.bm-ic-link { color: inherit; transition: color 200ms ease; }
.bm-ic-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bm-ic-link:hover { color: inherit; }
.bm-ic-link:focus-visible { outline: 0; }
:is(.bm-ic-feat__in, .bm-ic-row, .bm-ic-card):hover .bm-ic-link { color: var(--bm-orange-text); }
:is(.bm-ic-feat__in, .bm-ic-row, .bm-ic-card):hover .bm-ic-cue .bm-ic-arrow { transform: translateX(4px); }
:is(.bm-ic-feat__in, .bm-ic-row, .bm-ic-card):has(.bm-ic-link:focus-visible) { outline: 2px solid var(--bm-orange); outline-offset: 4px; }
:is(.bm-ic-feat__text, .bm-ic-row__text, .bm-ic-card__text) a { position: relative; z-index: 2; color: var(--bm-orange-text); text-decoration: underline; text-underline-offset: 3px; }
/* an excerpt with a link of its own (13408 / 13410 «модульне будівництво» → /modulnye-doma/, as on live) is shown whole:
   the line clamp would hide the link while it stays in the tab order (and out of the pointer's reach) */
:is(.bm-ic-feat__text, .bm-ic-row__text, .bm-ic-card__text, .bm-nw-card__text):has(a) { overflow: visible; -webkit-line-clamp: none; }

@media (max-width: 767px), (pointer: coarse) {
	/* catalog.css gives the crumb links 44 px rows and the list -13 px margins: the head keeps the design's gap */
	.bm-ic-head .bm-crumbs { margin-bottom: calc(clamp(18px, 2.4vw, 30px) - 13px); }
	/* … which assumes a 44 px link row (13 px under the text) at the bottom: the current page gets the same when it
	   wraps to a line of its own */
	.bm-crumbs--quiet [aria-current] { display: inline-flex; align-items: center; min-height: 44px; padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-ic-link, .bm-ic-cue .bm-ic-arrow { transition: none; }
	:is(.bm-ic-feat__in, .bm-ic-row, .bm-ic-card):hover .bm-ic-cue .bm-ic-arrow { transform: none; }
}
