/*
 * BSEL Newsroom — the News & Events feed and news post pages.
 * Colours and type are the site's: Libre Franklin headings, Inter text (#222222, as in the site's text widgets),
 * Lato for links and buttons, BRAC blue #0072BC → secondary blue #0054A6, gold #E6A713. The post hero and gold strip
 * copy the News & Events page exactly (page 252: linear-gradient(180deg, #0072BC 70%, #0054A6 100%); strip 44px,
 * 32px on mobile), like the remitngo theme's coded partials do. Labels are sentence case, never all caps.
 * Everything is scoped under .bnr; selectors that must beat the Elementor kit (`.elementor-kit-6 h3` is Lato) or
 * `.elementor img` start with `.bnr `.
 */
.bnr {
  --bnr-blue: #0072bc;
  --bnr-blue-deep: #0054a6;
  --bnr-gold: #e6a713;
  --bnr-magenta: #ed0180;
  --bnr-purple: #9c1fa0;
  --bnr-teal: #1dbaa6;
  --bnr-ink: #222222;
  --bnr-secondary: #54595f;
  --bnr-line: #e3e8ef;
  --bnr-soft: #f3f7fb;
  --bnr-radius: 16px;
  --bnr-hero: linear-gradient(180deg, #0072bc 70%, #0054a6 100%);
  --bnr-heading: "Libre Franklin", "Inter", system-ui, sans-serif;
  --bnr-text: "Inter", system-ui, sans-serif;
  --bnr-accent: "Lato", "Inter", system-ui, sans-serif;
  font-family: var(--bnr-text);
  color: var(--bnr-ink);
  box-sizing: border-box;
}
.bnr *, .bnr *::before, .bnr *::after { box-sizing: inherit; }
.bnr a { text-decoration: none; }

.bnr-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.bnr-wrap--narrow { max-width: 800px; }

/* ---- badges + meta line ---- */
.bnr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--bnr-secondary); }
.bnr-badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px;
  font-family: var(--bnr-text); font-weight: 600; font-size: 13px; line-height: 1;
  color: #fff; background: var(--bnr-blue);
}
.bnr-badge--award { background: var(--bnr-gold); color: #fff; }
.bnr-badge--event { background: var(--bnr-magenta); }
.bnr-badge--press { background: var(--bnr-purple); }
.bnr-badge--community { background: var(--bnr-teal); }
.bnr-badge--draft { background: #fff; color: var(--bnr-magenta); box-shadow: inset 0 0 0 1.5px var(--bnr-magenta); }

/* ---- buttons (site style: solid pills) ---- */
.bnr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--bnr-blue); color: #fff; cursor: pointer;
  font-family: var(--bnr-accent); font-weight: 700; font-size: 14px; line-height: 1;
}
.bnr-btn:hover { background: var(--bnr-blue-deep); color: #fff; }
.bnr-btn--ghost { background: #fff; color: var(--bnr-blue-deep); box-shadow: inset 0 0 0 1.5px var(--bnr-blue); }
.bnr-btn--ghost:hover { background: var(--bnr-blue); color: #fff; }
.bnr-btn:focus-visible, .bnr a:focus-visible { outline: 3px solid var(--bnr-gold); outline-offset: 2px; }

/* ---- images ---- */
/* .bnr prefix: Elementor's `.elementor img { height: auto }` would otherwise win inside the page. */
.bnr .bnr-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.bnr-img--fallback { display: flex; align-items: flex-end; padding: 24px; background: var(--bnr-hero); border-bottom: 10px solid var(--bnr-gold); }
.bnr-img--fallback span { font-family: var(--bnr-heading); font-weight: 700; font-size: 26px; color: #fff; }
.bnr-img--event.bnr-img--fallback { border-bottom-color: var(--bnr-magenta); }
.bnr-img--press.bnr-img--fallback { border-bottom-color: var(--bnr-purple); }
.bnr-img--community.bnr-img--fallback { border-bottom-color: var(--bnr-teal); }

/* ---- feed ---- */
.bnr-feed { display: flex; flex-direction: column; gap: 32px; width: 100%; }
.bnr-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 720px) { .bnr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bnr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bnr-card {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--bnr-line); border-radius: var(--bnr-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* Hover: a 2px primary-blue outline (border + a 1px solid ring, so nothing shifts), no drop shadow. */
.bnr-card:hover { border-color: var(--bnr-blue); box-shadow: 0 0 0 1px var(--bnr-blue); }
/* The image is shown whole at 16:9 (the shape every story image is made in), never cropped to fit the text. */
.bnr-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bnr-soft); }
.bnr-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 22px 24px; }
.bnr .bnr-card__title { margin: 0; font-family: var(--bnr-heading); font-weight: 700; font-size: 18px; line-height: 1.3; }
.bnr-card__title a { color: var(--bnr-ink); }
.bnr-card__title a:hover { color: var(--bnr-blue); }
.bnr-card__excerpt {
  margin: 0; font-size: 15px; line-height: 1.6; color: var(--bnr-ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.bnr-card__event { margin: 0; font-size: 14px; font-weight: 600; color: var(--bnr-blue-deep); }
.bnr-card__more { margin-top: auto; padding-top: 4px; font-family: var(--bnr-accent); font-weight: 700; font-size: 15px; color: var(--bnr-blue); }
.bnr-card__more:hover { color: var(--bnr-blue-deep); }

/* Feature card: the image sits inside the card with a margin of its own, so its edges never meet the card's. */
.bnr-card--feature { padding: 12px; }
.bnr-card--feature .bnr-card__media { border-radius: 12px; }
.bnr-card--feature .bnr-card__body { padding: 20px 10px 12px; }
.bnr .bnr-card--feature .bnr-card__title { font-size: clamp(20px, 2vw, 25px); line-height: 1.25; }
@media (min-width: 900px) {
  .bnr-card--feature { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; padding: 16px; }
  .bnr-card--feature .bnr-card__body { justify-content: center; padding: 16px 24px 16px 36px; }
}

.bnr-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.bnr-pager__at { font-size: 14px; color: var(--bnr-secondary); }

.bnr-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; text-align: center; }
.bnr-empty__pill {
  display: inline-block; padding: 12px 16px; border-radius: 12px; background: var(--bnr-purple); color: #fff;
  font-family: var(--bnr-heading); font-weight: 700; font-size: 20px;
}
.bnr-empty p { margin: 0; font-size: 16px; line-height: 1.5; }

/* ---- single post ---- */
.bnr-single { display: block; background: #fff; }
/* Same background as the News & Events hero; the site header above it is solid #0072BC, so they join seamlessly. */
.bnr-hero { padding: 56px 0 96px; color: #fff; background: var(--bnr-hero); }
.bnr-crumb { display: inline-flex; gap: 6px; margin-bottom: 20px; font-family: var(--bnr-accent); font-weight: 700; font-size: 15px; color: #fff; }
.bnr-crumb:hover { color: #fff; text-decoration: underline; }
.bnr-meta--hero { color: #fff; }
.bnr .bnr-title {
  margin: 14px 0 0; font-family: var(--bnr-heading); font-weight: 700; color: #fff;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; text-wrap: balance;
}
.bnr-standfirst { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: #fff; max-width: 720px; }
.bnr-strip { position: relative; z-index: 6; height: 44px; background: var(--bnr-gold); }

.bnr-article { padding-top: 56px; padding-bottom: 32px; }
.bnr-figure { margin: 0 0 40px; }
.bnr .bnr-figure .bnr-img { height: auto; aspect-ratio: 16 / 9; border-radius: var(--bnr-radius); }
.bnr-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--bnr-secondary); }

.bnr-event {
  display: grid; gap: 4px; margin: 0 0 36px; padding: 20px 24px; border-radius: var(--bnr-radius);
  background: var(--bnr-soft); border: 1px solid var(--bnr-line);
}
.bnr-event__label { font-family: var(--bnr-text); font-weight: 600; font-size: 14px; color: var(--bnr-blue); }
.bnr-event__when { margin: 0; font-family: var(--bnr-heading); font-weight: 700; font-size: 19px; color: var(--bnr-ink); }
.bnr-event__where { margin: 0; font-size: 15px; color: var(--bnr-ink); }

.bnr-content { font-size: 17px; line-height: 1.7; color: var(--bnr-ink); }
.bnr-content > * { margin: 0 0 1.2em; }
.bnr .bnr-content h2 { margin: 1.8em 0 .6em; font-family: var(--bnr-heading); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--bnr-ink); }
.bnr .bnr-content h3 { margin: 1.6em 0 .5em; font-family: var(--bnr-heading); font-weight: 700; font-size: 21px; color: var(--bnr-ink); }
.bnr-content a { color: var(--bnr-blue); text-decoration: underline; text-underline-offset: 3px; }
.bnr-content blockquote {
  margin: 2em 0; padding: 24px 28px; border: 0; border-radius: var(--bnr-radius); background: var(--bnr-soft);
  font-family: var(--bnr-heading); font-weight: 600; font-size: 21px; line-height: 1.45; color: var(--bnr-blue-deep);
}
.bnr-content blockquote p:last-child { margin-bottom: 0; }
.bnr .bnr-content img { max-width: 100%; height: auto; border-radius: 12px; }
.bnr-content ul, .bnr-content ol { padding-left: 1.3em; }
.bnr-content li { margin: .35em 0; }

.bnr-links { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--bnr-line); }
.bnr .bnr-links__title { margin: 0 0 12px; font-family: var(--bnr-heading); font-weight: 700; font-size: 18px; color: var(--bnr-ink); }
.bnr-links ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bnr-links a { font-weight: 600; color: var(--bnr-blue); }
.bnr-links a:hover { color: var(--bnr-blue-deep); text-decoration: underline; }

.bnr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--bnr-line); }
.bnr-share__label { margin-right: 4px; font-family: var(--bnr-accent); font-weight: 700; font-size: 14px; color: var(--bnr-ink); }

.bnr-more { margin-top: 40px; padding: 56px 0; background: var(--bnr-soft); }
.bnr .bnr-more__title { margin: 0 0 24px; font-family: var(--bnr-heading); font-weight: 700; font-size: 28px; color: var(--bnr-ink); }
.bnr-back { display: flex; justify-content: center; padding-top: 40px; padding-bottom: 80px; }

@media (max-width: 767px) {
  .bnr-hero { padding: 52px 0 80px; }
  .bnr-standfirst { font-size: 16px; }
  .bnr-strip { height: 32px; }
  .bnr-article { padding-top: 36px; }
  .bnr-content { font-size: 16px; }
}

/* ---- preview bar (drafts opened with a preview link) ---- */
.bnr-preview-bar {
  position: sticky; top: 0; z-index: 100000; padding: 10px 16px; text-align: center;
  background: #ed0180; color: #fff; font: 600 14px/1.4 "Inter", system-ui, sans-serif;
}

.bnr .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .bnr .bnr-card { transition: none; }
}
