/* CKB B1-P3 / Theme 0.4.37 — additive and scoped.
 * Source: Theme 0.4.36. Preserve the approved Gallery kinetic behavior,
 * header sticky logic, calendar layout and all protected typography layers. */

/* One unobtrusive, publisher-authored news sentence immediately above Gallery. */
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker {
  width:min(var(--content-width,1376px),calc(100vw - 56px));
  margin:0 auto; padding:24px 0 0;
  min-width:0;color:var(--theme-text,#f4f6f7);
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker > a {
  display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 14px;
  min-width:0;line-height:1.45;text-decoration:none;
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-type {
  flex:none;font-size:12px;font-weight:700;letter-spacing:.045em;
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-title {
  min-width:0;overflow-wrap:anywhere;font-size:clamp(15px,1.15vw,19px);font-weight:550;
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker time {
  flex:none;font-size:12px;font-weight:400;letter-spacing:.02em;
  color:var(--theme-text-muted,#909ba5);
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker a:hover .ckb-b1p3-news-title,
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker a:focus-visible .ckb-b1p3-news-title {
  text-decoration:underline;text-underline-offset:3px;
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker a:focus-visible {
  outline:2px solid currentColor;outline-offset:4px;
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker + .hero {
  padding-top:42px;
}

/* Content-first poster marking: no pill/background/frame, no new media layer. */
body.ckb-wp-shell[data-page="home"] .poster-mount > .ckb-b1p3-poster-marker {
  position:absolute;top:14px;left:14px;z-index:2;
  display:inline-flex;align-items:center;gap:6px;
  max-width:calc(100% - 28px);
  color:#fff;background:none!important;border:0!important;border-radius:0!important;
  font-size:clamp(12px,1vw,16px);line-height:1.2;font-weight:700;
  letter-spacing:0;white-space:nowrap;
  text-shadow:0 1px 3px rgba(0,0,0,.92),0 0 7px rgba(0,0,0,.52);
  pointer-events:none;
}
body.ckb-wp-shell[data-page="home"] .poster-mount .ckb-b1p3-poster-marker svg {
  display:block;flex:none;width:20px;height:20px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.9));
}
body.ckb-wp-shell[data-page="home"] .poster-mount .ckb-b1p3-poster-marker > span {
  overflow:hidden;text-overflow:ellipsis;
}
body.ckb-wp-shell[data-page="home"] .ckb-b1p3-upcoming-empty {
  padding:28px 0;margin:0;color:var(--theme-text-muted,#838b92);
}

/* Article sections reuse the approved Archive typography and layout. */
body.ckb-wp-shell .news-main .ckb-b1p3-article-sections {
  display:flex;align-items:center;flex-wrap:wrap;gap:12px 26px;
  margin-top:20px;
}
body.ckb-wp-shell .news-main .ckb-b1p3-article-sections a {
  color:inherit;font-size:13px;font-weight:650;letter-spacing:.02em;
  padding:8px 0;border-bottom:1px solid transparent;
}
body.ckb-wp-shell .news-main .ckb-b1p3-article-sections a.is-current,
body.ckb-wp-shell .news-main .ckb-b1p3-article-sections a:hover,
body.ckb-wp-shell .news-main .ckb-b1p3-article-sections a:focus-visible {
  border-bottom-color:currentColor;
}
body.ckb-wp-shell .news-main .ckb-b1p3-article-sections a:focus-visible {
  outline:2px solid currentColor;outline-offset:4px;
}

/* Programme vs historic Archive: two unobtrusive, keyboard-accessible links. */
body.ckb-wp-shell[data-page="events"] .events-archive-main .ckb-b1p3-scope-link {
  min-height:44px;display:inline-flex;align-items:center;
  padding:7px 0;font-size:13px;font-weight:700;
  white-space:nowrap;border-bottom:1px solid transparent;
}
body.ckb-wp-shell[data-page="events"] .events-archive-main .ckb-b1p3-scope-link.is-current,
body.ckb-wp-shell[data-page="events"] .events-archive-main .ckb-b1p3-scope-link:hover,
body.ckb-wp-shell[data-page="events"] .events-archive-main .ckb-b1p3-scope-link:focus-visible {
  border-bottom-color:currentColor;
}
body.ckb-wp-shell[data-page="events"] .events-archive-main .ckb-b1p3-scope-link:focus-visible {
  outline:2px solid currentColor;outline-offset:3px;
}

@media(max-width:640px) {
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker {
    width:calc(100vw - 28px);padding-top:16px;
  }
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker > a {gap:4px 9px;}
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-type {font-size:11px;}
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-title {font-size:15px;flex-basis:calc(100% - 85px);}
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker time {font-size:11px;}
  body.ckb-wp-shell[data-page="home"] .ckb-b1p3-news-ticker + .hero {padding-top:26px;}
  body.ckb-wp-shell[data-page="home"] .poster-mount > .ckb-b1p3-poster-marker {
    top:10px;left:10px;max-width:calc(100% - 20px);font-size:13px;gap:5px;
  }
  body.ckb-wp-shell[data-page="home"] .poster-mount .ckb-b1p3-poster-marker svg {width:18px;height:18px;}
  body.ckb-wp-shell .news-main .ckb-b1p3-article-sections {gap:8px 22px;}
}
