/* ============================================================
   Blog article (single-blog.php; shared meta / cues / labels: infocenter.css). Design: handoff design/blog-news-2026-10-03,
   README §2 + source/BlogArticle.jsx.txt («Лонгрід»): reading bar, full-bleed hero, a 940 px left-aligned text column,
   the dates row with «Поділитися», «Наступна стаття» (owner 2026-10-03: the only article link), «Читайте також».
   The body is the STORED HTML (template-parts/infocenter/helpers.php bm_ic_body()): the design's typography is put on
   its elements — lead (the first paragraph), h2 / h3, links, square-marker lists (two columns only for short items:
   ul.bm-ic-ul2), the numbered-list look for ol, row photos at their stored position — and the pasted old-theme markup
   (div.single_title, .box_content, .single_image, .single_content, .col-xl-12) is flattened (display: contents), so the
   texts read as one column; nothing of the stored HTML is edited.
   ============================================================ */

/* ---------- reading bar (README 2.1): above the sticky header (z 60), under the admin bar; transform only ---------- */
.bm-ic-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 61; height: 3px; pointer-events: none; }
.admin-bar .bm-ic-progress { top: var(--wp-admin--admin-bar--height, 32px); }
.bm-ic-progress__bar { display: block; height: 100%; background: var(--bm-orange); transform: scaleX(var(--bm-ic-p, 0)); transform-origin: 0 50%; }

/* ---------- hero (README 2.2): photo + gradient, the text block on the bottom edge; plain navy without a photo ---------- */
.bm-ic-hero { position: relative; overflow: hidden; background: var(--bm-navy-700); color: #fff; }
/* the design height as a minimum: a text block taller than it (320 px screens, 400 % zoom) grows the hero instead of
   being cut off at the top; the navy hero keeps room for one more H1 line, so the web-font swap re-wraps inside it */
.bm-ic-hero--photo { min-height: clamp(380px, 62vh, 640px); }
.bm-ic-hero:not(.bm-ic-hero--photo) { min-height: clamp(300px, 34vw, 420px); }
.bm-ic-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-ic-hero--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 25, 42, .95) 0%, rgba(22, 25, 42, .55) 50%, rgba(22, 25, 42, .15) 100%); }
.bm-ic-hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: inherit; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.bm-ic-hero__in > * { margin: 0; }
.bm-ic-hero__meta { color: rgba(255, 255, 255, .75); }
.bm-ic-hero__meta .bm-ic-meta__sq { background: rgba(255, 255, 255, .4); }
.bm-ic-hero__title { max-width: 940px; font: 900 clamp(28px, 1rem + 3vw, 58px)/1.02 var(--bm-fd); letter-spacing: -.02em; text-transform: uppercase; color: #fff; text-wrap: balance; overflow-wrap: break-word; }
/* the site trail, light on the photo (links .7, «/» .35, the current page .95) */
.bm-crumbs--photo ol { gap: 4px 10px; font: 400 13px/1.4 var(--bm-fb); letter-spacing: 0; text-transform: none; }
.bm-crumbs--photo li:not(:last-child)::after { content: "/"; margin: 0 0 0 10px; font-weight: 400; color: rgba(255, 255, 255, .35); }
.bm-crumbs--photo a { font-weight: 400; color: rgba(255, 255, 255, .7); }
.bm-crumbs--photo a:hover { color: #fff; }
.bm-crumbs--photo [aria-current] { font-weight: 400; color: rgba(255, 255, 255, .95); }

/* ---------- text column (README 2.3): 940 px, left edge = the hero title's; 26 px between blocks ---------- */
.bm-ic-body { padding-top: clamp(28px, 4vw, 56px); }
.bm-ic-art { max-width: 940px; }
.bm-ic-prose { display: flow-root; font-size: clamp(15px, .3vw + 13.5px, 16.5px); line-height: 1.75; color: var(--bm-text); text-wrap: pretty; overflow-wrap: break-word; }
.bm-ic-prose :is(.single_title, .box_content, .single_image, .single_content, .col-xl-12) { display: contents; }
.bm-ic-prose :is(p, ul, ol, h2, h3, h4, figure, table, .content-img-two) { margin: 0 0 26px; }
.bm-ic-prose li > :is(p, ul, ol) { margin: 6px 0 0; }
.bm-ic-prose .bm-ic-lead { font-size: clamp(16px, .3vw + 14.5px, 18px); line-height: 1.7; color: var(--bm-strong); }
.bm-ic-prose :is(h2, h3, h4) { font-family: var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); text-wrap: balance; }
.bm-ic-prose h2 { padding-top: 14px; font-size: clamp(19px, .5rem + 1.1vw, 25px); font-weight: 800; line-height: 1.2; }
.bm-ic-prose :is(h3, h4) { font-size: clamp(16.5px, .4rem + .8vw, 20px); font-weight: 700; line-height: 1.25; }
/* a row title stored as <p> (a visual subtitle on live, not a heading): the h3 look */
.bm-ic-prose .bm-ic-sub { font: 700 clamp(16.5px, .4rem + .8vw, 20px)/1.25 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); text-wrap: balance; }
.bm-ic-prose a { color: var(--bm-orange-text); text-decoration: underline; text-underline-offset: 3px; }
.bm-ic-prose a:hover { color: var(--bm-link-hover); }
.bm-ic-prose :is(strong, b) { font-weight: 700; color: var(--bm-strong); }
.bm-ic-prose img { max-width: 100%; height: auto; }
.bm-ic-prose p[style*="center"] img { margin-inline: auto; }
/* square-marker list (README 2.3 item 5): 8 px orange square, text at 22 px */
.bm-ic-prose ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.bm-ic-prose ul > li { position: relative; padding-left: 22px; line-height: 1.65; list-style: none; }
.bm-ic-prose ul > li::before { content: ""; position: absolute; top: calc(.825em - 4px); left: 0; width: 8px; height: 8px; background: var(--bm-orange); }
/* numbered list look (README 2.3 item 6): rows with a rule above, the grey «1.» numbers (stored start values kept) */
.bm-ic-prose ol { padding: 0; list-style: none; counter-reset: bm-ol; }
.bm-ic-prose ol[start="2"] { counter-reset: bm-ol 1; }
.bm-ic-prose ol[start="3"] { counter-reset: bm-ol 2; }
.bm-ic-prose ol[start="4"] { counter-reset: bm-ol 3; }
.bm-ic-prose ol[start="5"] { counter-reset: bm-ol 4; }
.bm-ic-prose ol > li { position: relative; padding: 16px 0 16px 60px; border-top: 1px solid var(--bm-border); font-size: 15px; list-style: none; counter-increment: bm-ol; }
.bm-ic-prose ol > li::before { content: counter(bm-ol) "."; position: absolute; top: 16px; left: 0; font: 800 22px/1.1 var(--bm-fd); color: var(--bm-g300); }
/* row photos: top = the column's width (natural size when the file is small), left / right = beside the row's text */
.bm-ic-sec { display: flow-root; }
.bm-ic-prose .bm-ic-fig { margin: 0 0 26px; }
.bm-ic-fig img { display: block; width: 100%; background: var(--bm-g100); }
.bm-ic-fig--small img { width: auto; }
/* a side photo narrower than its float (264 px files of 4185 / 2710): the float shrinks to the file, no upscaling */
.bm-ic-prose :is(.bm-ic-fig--left, .bm-ic-fig--right).bm-ic-fig--small { width: auto; }
.bm-ic-prose .bm-ic-fig--right { float: right; width: min(42%, 400px); margin: 6px 0 20px 32px; }
.bm-ic-prose .bm-ic-fig--left { float: left; width: min(42%, 400px); margin: 6px 32px 20px 0; }
/* two photos side by side (pasted div.content-img-two of the 2023 articles) */
.bm-ic-prose .content-img-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.bm-ic-prose .content-img-two :is(p, div) { margin: 0; }
.bm-ic-prose .content-img-two img { width: 100%; }

/* ---------- dates row + share (README 2.3 item 8) ---------- */
.bm-ic-dates { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 2px solid var(--bm-navy-700); }
.bm-ic-dates__when { margin: 0; font-size: 13px; line-height: 1.5; color: var(--bm-muted-text); }
.bm-ic-dates__when time { white-space: nowrap; }
.bm-ic-dates__sep { margin: 0 2px; }
.bm-ic-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bm-ic-share__label { margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--bm-muted-text); }
.bm-ic-share__btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--bm-border); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bm-strong); transition: color 200ms ease, box-shadow 200ms ease; }
.bm-ic-share__btn:hover { box-shadow: inset 0 0 0 1px var(--bm-g300); color: var(--bm-orange-text); }

/* ---------- «Наступна стаття» (README 2.3 item 9 in the design's previous-article style; owner 2026-10-03: no
   «Попередня стаття») ---------- */
.bm-ic-adj { margin-top: 26px; }
.bm-ic-adj__link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); color: inherit; }
.bm-ic-adj__link:hover { color: inherit; }
.bm-ic-adj__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bm-ic-adj__label { font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--bm-muted-text); }
.bm-ic-adj__title { font: 700 clamp(15px, .4vw + 13px, 17px)/1.35 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); text-wrap: pretty; overflow-wrap: break-word; transition: color 200ms ease; }
.bm-ic-adj__go { display: grid; flex: none; place-items: center; width: 44px; height: 44px; background: var(--bm-navy-700); color: #fff; }
.bm-ic-adj__go .bm-ic-arrow { transition: transform 220ms var(--bm-ease-out); }
.bm-ic-adj__link:hover .bm-ic-adj__title { color: var(--bm-orange-text); }
.bm-ic-adj__link:hover .bm-ic-adj__go .bm-ic-arrow { transform: translateX(3px); }

/* ---------- «Читайте також» (README 2.4): 3 / 2 / 1 columns of the article card ---------- */
.bm-ic-rel { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 72px); }
.bm-ic-label--h2 { margin-bottom: clamp(18px, 2vw, 26px); font-size: clamp(19px, .5rem + 1.1vw, 25px); }
.bm-ic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.bm-ic-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--bm-border); background: #fff; transition: box-shadow 240ms var(--bm-ease-out), transform 240ms var(--bm-ease-out); }
.bm-ic-card:hover { box-shadow: 0 18px 40px -18px rgba(42, 46, 71, .35); transform: translateY(-3px); }
.bm-ic-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bm-g100); }
.bm-ic-card__media img { transition: transform 600ms var(--bm-ease-out); }
.bm-ic-card:hover .bm-ic-card__media img { transform: scale(1.04); }
.bm-ic-card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: clamp(18px, 2vw, 26px); }
.bm-ic-card__title { margin: 0; font: 700 clamp(15.5px, .4vw + 13px, 17.5px)/1.35 var(--bm-fd); text-transform: uppercase; color: var(--bm-strong); text-wrap: pretty; overflow-wrap: break-word; }
.bm-ic-card__text { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14.5px; line-height: 1.65; color: var(--bm-text); text-wrap: pretty; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.bm-ic-card__cue { margin-top: auto; padding-top: 6px; }

@media (max-width: 1000px) {
	.bm-ic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) {
	.bm-ic-prose ul.bm-ic-ul2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 767px) {
	.bm-ic-prose :is(.bm-ic-fig--right, .bm-ic-fig--left) { float: none; width: auto; margin: 0 0 26px; }
}
@media (max-width: 640px) {
	.bm-ic-cards, .bm-ic-prose .content-img-two { grid-template-columns: minmax(0, 1fr); }
	.bm-ic-prose ol > li { padding-left: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-ic-card, .bm-ic-card__media img, .bm-ic-adj__title, .bm-ic-adj__go .bm-ic-arrow, .bm-ic-share__btn { transition: none; }
	.bm-ic-card:hover, .bm-ic-card:hover .bm-ic-card__media img, .bm-ic-adj__link:hover .bm-ic-adj__go .bm-ic-arrow { transform: none; }
}
