/* blogging_central/css/blog_public.css - the four Blogging Central layouts (guide landing, news
 * landing, guide article, news story). Loaded only on Blogging Central pages, after
 * webfront/css/components/sections.css, so the --wf-* palette (three themes) and the .wf-* blocks
 * are available. Prefix: bc-. Breakpoints follow the shared blocks: 1100 / 900 / 700 / 600 px.
 * No colours are hard-coded except on the always-dark hero photo (same rule as hero_gallery.css). */

/* ---------------- hero (shared .ss-hg gallery) ---------------- */
.bc-hero.ss-hg--native { min-height: clamp(460px, calc(78vh - var(--ss-header-h, 64px)), 660px); }
.bc-hero--compact.ss-hg--native { min-height: clamp(380px, 54vh, 500px); }
.bc-hero .ss-hg__copy { padding-bottom: clamp(110px, 14vh, 140px); }
.bc-hero__kicker { margin: 0 0 18px; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.bc-hero__kicker a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 3px; }
.bc-hero__kicker a:hover { border-bottom-color: var(--hg-red-bright); }
.bc-hero .ss-hg__copy h1 { font-size: clamp(36px, 5vw, 68px); max-width: 18ch; }
.bc-hero__sub { margin: 22px 0 0; max-width: 680px; color: #f1f1f4; font-size: clamp(15px, 1.6vw, 19px); font-weight: 500; line-height: 1.65; }
.bc-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bc-hero__actions a.wf-btn--ghost { background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .55); color: #fff; box-shadow: none; }
.bc-hero__actions a.wf-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.bc-hero__actions a.wf-link { background: none; box-shadow: none; padding-inline: 4px; color: #fff; }

.bc-plainhead { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); background: radial-gradient(ellipse at 20% 0%, var(--wf-glow), transparent 60%); }
.bc-plainhead__kicker { margin: 0 0 14px; color: var(--wf-red-bright); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.bc-plainhead__kicker a { color: inherit; text-decoration: none; }
.bc-plainhead__title { margin: 0; max-width: 20ch; color: var(--wf-fg); font-size: clamp(34px, 5vw, 64px); font-weight: 900; line-height: 1.06; letter-spacing: -.04em; }
.bc-plainhead__sub { margin: 18px 0 0; max-width: 62ch; color: var(--wf-muted); font-size: 18px; }

/* ---------------- breadcrumbs ---------------- */
.bc-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
    border-bottom: 1px solid var(--wf-border); color: var(--wf-muted); font-size: 13px; }
.bc-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.bc-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.bc-crumbs li + li::before { content: "/"; color: var(--wf-border); }
.bc-crumbs li[aria-current] { color: var(--wf-fg); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.bc-crumbs a { color: var(--wf-muted); text-decoration: none; }
.bc-crumbs a:hover { color: var(--wf-red-bright); }
.bc-crumbs__date { flex: 0 0 auto; font-weight: 600; letter-spacing: .04em; }

/* ---------------- intro + reading column ---------------- */
.bc-intro { padding-block: 56px 8px; }
.bc-prose { max-width: 760px; color: var(--wf-fg); font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.bc-prose--intro { max-width: 860px; font-size: 18px; }
.bc-prose > :first-child { margin-top: 0; }
.bc-prose p { margin: 0 0 1.15em; color: color-mix(in srgb, var(--wf-fg) 86%, var(--wf-muted)); }
.bc-prose :is(h2, h3, h4, h5, h6) { color: var(--wf-fg); scroll-margin-top: calc(var(--ss-header-h, 77px) + 20px); }
.bc-prose h2 { margin: 2.1em 0 .7em; font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.18; letter-spacing: -.025em; }
.bc-prose h2::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--wf-red); }
.bc-prose h3 { margin: 1.8em 0 .55em; font-size: 21px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.bc-prose h4 { margin: 1.6em 0 .4em; color: var(--wf-red-bright); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.bc-prose h5, .bc-prose h6 { margin: 1.1em 0 .5em; font-size: 19px; font-weight: 600; line-height: 1.5; }
.bc-prose a { color: var(--wf-fg); text-decoration: underline; text-decoration-color: var(--wf-red); text-underline-offset: 4px; }
.bc-prose a:hover { color: var(--wf-red-bright); }
.bc-prose strong, .bc-prose b { color: var(--wf-fg); }
.bc-prose :is(ul, ol) { margin: 0 0 1.3em; padding-left: 1.4em; }
.bc-prose li { margin: 0 0 .5em; padding-left: .2em; color: color-mix(in srgb, var(--wf-fg) 86%, var(--wf-muted)); }
.bc-prose ul li::marker { color: var(--wf-red-bright); }
.bc-prose ol li::marker { color: var(--wf-red-bright); font-weight: 800; }
.bc-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--wf-red); color: var(--wf-fg); font-size: 19px; }
.bc-prose hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--wf-border); }
.bc-prose code { padding: 1px 6px; border-radius: 4px; background: var(--wf-panel-2); font-size: .9em; }
.bc-lead { margin-bottom: 1.6em; padding-bottom: 1.2em; border-bottom: 1px solid var(--wf-border); font-size: 20px; line-height: 1.7; }
.bc-lead p { color: var(--wf-fg); }

/* tables scroll inside their own wrapper - the page never scrolls sideways */
.bc-table { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--wf-border); border-radius: 12px; background: var(--wf-panel); }
.bc-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bc-table th { padding: 13px 16px; border-bottom: 1px solid var(--wf-border); background: var(--wf-panel-2); color: var(--wf-fg);
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-align: left; text-transform: uppercase; }
.bc-table td { padding: 12px 16px; border-bottom: 1px solid var(--wf-border); color: color-mix(in srgb, var(--wf-fg) 86%, var(--wf-muted)); vertical-align: top; }
.bc-table tr:last-child td { border-bottom: 0; }
.bc-table td:first-child { color: var(--wf-fg); font-weight: 600; }
.bc-table .bc-al-c { text-align: center; }
.bc-table .bc-al-r { text-align: right; }

/* pictures: placement is decided here, never by the author's CSS */
.bc-figure { margin: 2em 0; }
.bc-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; border-radius: 12px;
    border: 1px solid var(--wf-border); background: var(--wf-panel); cursor: zoom-in; }
.bc-figure--wide img { width: 100%; max-height: none; object-fit: cover; }
.bc-figure figcaption { margin-top: 10px; color: var(--wf-muted); font-size: 13.5px; text-align: center; }
.bc-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 2em 0; }
.bc-figures .bc-figure { margin: 0; }
.bc-figures .bc-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; max-height: none; }
.bc-inline-img { display: inline-block; max-height: 1.6em; vertical-align: middle; }

.bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 1.8em 0; }
.bc-prose .bc-actions a.wf-btn { color: #fff; text-decoration: none; }
.bc-prose .bc-actions a.wf-btn--ghost, .bc-actions a.wf-btn--ghost { color: var(--wf-fg); background: transparent; border-color: var(--wf-border); }
.bc-prose .bc-actions a.wf-btn--ghost:hover { border-color: var(--wf-red); background: var(--wf-panel-2); }
.bc-prose .bc-actions a.wf-link { text-decoration: none; }
.bc-actions--end { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--wf-border); }

.bc-signature { display: flex; flex-direction: column; gap: 2px; margin: 2.4em 0 0; }
.bc-signature span { color: var(--wf-muted); font-size: 15px; }
.bc-signature span:first-child { color: var(--wf-fg); font-size: 18px; font-weight: 800; font-style: italic; }

/* photo strip */
.bc-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2em 0; }
.bc-strip__item { margin: 0; }
.bc-strip__item img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px;
    border: 1px solid var(--wf-border); cursor: zoom-in; }
.bc-strip__item figcaption { margin-top: 6px; color: var(--wf-muted); font-size: 12.5px; }

/* ---------------- article grid + "On this page" ---------------- */
.bc-layout { padding-block: 56px 72px; }
.bc-layout--toc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.bc-layout--story .bc-prose { margin-inline: auto; }
.bc-toc { position: sticky; top: calc(var(--ss-header-h, 77px) + 24px); padding: 4px 0 4px 20px; border-left: 1px solid var(--wf-border); }
.bc-toc__title { margin: 0 0 12px; color: var(--wf-red-bright); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.bc-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: bc-toc; }
.bc-toc li { counter-increment: bc-toc; margin: 0 0 10px; }
.bc-toc a { display: flex; gap: 10px; color: var(--wf-muted); font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.bc-toc a::before { content: counter(bc-toc, decimal-leading-zero); color: var(--wf-border); font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-toc a:hover, .bc-toc a.is-current { color: var(--wf-fg); }
.bc-toc a.is-current::before { color: var(--wf-red-bright); }

/* ---------------- cards ---------------- */
.bc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bc-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--wf-border); border-radius: 12px;
    background: var(--wf-panel); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.bc-card:hover, .bc-card:focus-within { border-color: var(--wf-red); transform: translateY(-3px); box-shadow: var(--wf-shadow); }
.bc-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--wf-panel-2); }
.bc-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .5s ease; }
.bc-card:hover .bc-card__media img { transform: scale(1.04); }
.bc-card__placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(ellipse at 30% 30%, var(--wf-glow), transparent 70%); }
.bc-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 22px 24px 24px; }
.bc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; color: var(--wf-muted);
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bc-card__num { color: var(--wf-red-bright); }
.bc-card__meta time { letter-spacing: .06em; }
.bc-card__title { margin: 0 0 10px; color: var(--wf-fg); font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.bc-card__title a { color: inherit; text-decoration: none; }
.bc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.bc-card__text { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: var(--wf-muted); font-size: 14.5px; line-height: 1.75;
    -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.bc-card__go { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; color: var(--wf-fg); font-size: 13px; font-weight: 700; }
.bc-card__go svg { width: 18px; height: 18px; color: var(--wf-red-bright); transition: transform .2s ease; }
.bc-card:hover .bc-card__go svg { transform: translateX(5px); }
.bc-empty { grid-column: 1 / -1; color: var(--wf-muted); }

/* featured / lead story (wf-split) */
.bc-feature { margin-bottom: 18px; }
.bc-feature .wf-split__media { min-height: 360px; }
.bc-feature .wf-split__media img { position: absolute; inset: 0; }
.bc-feature .wf-split__body .bc-card__meta { margin-bottom: 16px; }
.bc-feature__title { margin: 0 0 16px; color: var(--wf-fg); font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.15; letter-spacing: -.03em; }
.bc-feature__title a { color: inherit; text-decoration: none; }
.bc-feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bc-feature { position: relative; }
.bc-feature:hover { border-color: var(--wf-red); }
.bc-feature--news .wf-split__media { background: var(--wf-panel-2); }

/* news rows */
.bc-rows { display: grid; gap: 16px; }
.bc-row { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--wf-border);
    border-radius: 12px; background: var(--wf-panel); transition: border-color .2s ease, transform .2s ease; }
.bc-row:hover, .bc-row:focus-within { border-color: var(--wf-red); transform: translateY(-2px); }
.bc-row__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--wf-panel-2); }
.bc-row__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* very wide / tall pictures (logos, banners) are shown whole, never cropped */
:is(.bc-card__media, .bc-row__media, .wf-split__media) img.is-contain { object-fit: contain; padding: 8%; box-sizing: border-box;
    background: var(--wf-panel-2); filter: none; }
.bc-story__feature.is-contain { padding: clamp(24px, 4vw, 48px); }
.bc-row__body { display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; }
.bc-row .bc-card__text { -webkit-line-clamp: 3; margin-bottom: 14px; }

.bc-pages { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; color: var(--wf-muted); font-size: 14px; }

/* ---------------- widgets, end buttons, read next, pager ---------------- */
.bc-widgets { display: grid; gap: 0; }
.bc-widget { padding-block: 64px; border-top: 1px solid var(--wf-border); }
.bc-widget--form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; scroll-margin-top: calc(var(--ss-header-h, 77px) + 12px); }
.bc-form__title { margin: 0; color: var(--wf-fg); font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.12; letter-spacing: -.03em; text-transform: uppercase; }
.bc-form__title::before { content: "Ask us"; display: block; margin-bottom: 14px; color: var(--wf-red-bright); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.bc-widget--form .eq-form { margin: 0; max-width: none; }
.bc-prose .bc-widget { padding-block: 32px; }
.bc-prose .bc-widget--form { grid-template-columns: 1fr; gap: 20px; }
.bc-end { padding-block: 8px 64px; }
.bc-end .bc-actions { justify-content: center; }
.bc-outro .bc-prose { max-width: 860px; }

.bc-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; padding-block: 30px 72px; border-top: 1px solid var(--wf-border); }
.bc-pager__link { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border: 1px solid var(--wf-border); border-radius: 10px;
    background: var(--wf-panel); color: var(--wf-fg); text-decoration: none; transition: border-color .2s ease; }
.bc-pager__link:hover { border-color: var(--wf-red); }
.bc-pager__link--next { text-align: right; align-items: flex-end; }
.bc-pager__link--empty { border: 0; background: none; }
.bc-pager__dir { display: inline-flex; align-items: center; gap: 8px; color: var(--wf-muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bc-pager__dir svg { width: 16px; height: 16px; color: var(--wf-red-bright); }
.bc-pager__link strong { font-size: 16px; line-height: 1.35; }
.bc-pager__all { align-self: center; padding: 12px 18px; border: 1px solid var(--wf-border); border-radius: 999px; color: var(--wf-fg);
    font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bc-pager__all:hover { border-color: var(--wf-red); color: var(--wf-red-bright); }
.bc-readnext { padding-bottom: 56px; }

/* ---------------- news story head ---------------- */
.bc-story__head { background: radial-gradient(ellipse at 15% 0%, var(--wf-glow), transparent 55%); border-bottom: 1px solid var(--wf-border); }
.bc-story__head .bc-crumbs { border-bottom: 0; }
.bc-story__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center;
    padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 72px); }
.bc-story__grid--text { grid-template-columns: minmax(0, 1fr); }
.bc-story__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 18px; font-size: 12px; font-weight: 800;
    letter-spacing: .18em; text-transform: uppercase; }
.bc-story__kicker a { color: var(--wf-red-bright); text-decoration: none; }
.bc-story__kicker time { color: var(--wf-muted); letter-spacing: .08em; }
.bc-story__title { margin: 0; color: var(--wf-fg); font-size: clamp(34px, 4.6vw, 60px); font-weight: 900; line-height: 1.06; letter-spacing: -.04em; }
.bc-story__sub { margin: 20px 0 0; max-width: 52ch; color: var(--wf-muted); font-size: 19px; line-height: 1.6; }
.bc-story__feature { margin: 0; overflow: hidden; border: 1px solid var(--wf-border); border-radius: 16px; background: var(--wf-panel); box-shadow: var(--wf-shadow); }
.bc-story__feature img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* ---------------- lightbox (blog_public.js) ---------------- */
.bc-lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.bc-lightbox::backdrop { background: rgba(4, 5, 7, .86); }
.bc-lightbox img { display: block; max-width: min(1200px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.bc-lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------------- responsive ---------------- */
@media (min-width: 900px) {
    .bc-figure--left, .bc-figure--right { width: 46%; margin-top: .3em; }
    .bc-figure--left { float: left; margin-right: 28px; }
    .bc-figure--right { float: right; margin-left: 28px; }
    .bc-prose :is(h2, .bc-table, .bc-actions, .bc-strip, .bc-widget) { clear: both; }
}
@media (max-width: 1100px) {
    .bc-layout--toc { grid-template-columns: minmax(0, 1fr); }
    .bc-toc { display: none; }
    .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .bc-widget--form { grid-template-columns: 1fr; gap: 24px; }
    .bc-story__grid { grid-template-columns: minmax(0, 1fr); }
    .bc-story__feature { max-width: 560px; }
    .bc-row { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .bc-grid { grid-template-columns: minmax(0, 1fr); }
    .bc-row { grid-template-columns: minmax(0, 1fr); }
    .bc-row__media { aspect-ratio: 16 / 10; }
    .bc-row__body { padding: 20px 22px 22px; }
    .bc-pager { grid-template-columns: 1fr 1fr; }
    .bc-pager__all { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
    .bc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bc-feature .wf-split__media { min-height: 240px; }
}
@media (max-width: 600px) {
    .bc-prose { font-size: 16px; line-height: 1.75; }
    .bc-lead { font-size: 18px; }
    .bc-intro { padding-top: 36px; }
    .bc-layout { padding-block: 36px 48px; }
    .bc-crumbs { flex-direction: column; align-items: flex-start; gap: 6px; }
    .bc-crumbs li[aria-current] { max-width: 70vw; }
    .bc-widget { padding-block: 44px; }
    .bc-hero .ss-hg__copy h1 { font-size: clamp(32px, 10vw, 44px); }
    .bc-pager__link { padding: 14px 16px; }
    .bc-pager__link strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .bc-card, .bc-row, .bc-card__media img, .bc-card__go svg { transition: none; }
    .bc-card:hover, .bc-row:hover { transform: none; }
    .bc-card:hover .bc-card__media img { transform: none; }
}
