/* Community route styles.
   Part 1: site-wide component rules scoped to this route (buttons, section
   primitives) — these live in the Fluent Snippets stylesheet, not in the
   page's own <style>, which is why the CTAs rendered as bare links.
   Part 2: the page's own migrated <style> block. */

/* ============================================================
   BUTTON SYSTEM
   Apply classes "btn btn-red", "btn btn-black",
   "btn btn-outline-white", or "btn btn-outline-black" to any
   button widget or anchor.
   ============================================================ */
.btn{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 28px !important;
  font-family: var(--bf-font-condensed) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 2px solid transparent !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: fit-content !important;
}
.btn .arrow{
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow{
  transform: translateX(4px);
}
/* Red button */
.btn-red{
  background: var(--bf-red) !important;
  color: var(--bf-white) !important;
  border-color: var(--bf-red) !important;
}
.btn-red:hover{
  background: var(--bf-red-dark) !important;
  border-color: var(--bf-red-dark) !important;
  color: var(--bf-white) !important;
}
/* Black button */
.btn-black{
  background: var(--bf-black) !important;
  color: var(--bf-white) !important;
  border-color: var(--bf-black) !important;
}
.btn-black:hover{
  background: transparent !important;
  color: var(--bf-black) !important;
}
/* Outline white (for dark backgrounds) */
.btn-outline-white{
  background: transparent !important;
  color: var(--bf-white) !important;
  border-color: var(--bf-white) !important;
}
.btn-outline-white:hover{
  background: var(--bf-white) !important;
  color: var(--bf-black) !important;
}
/* Outline black (for light backgrounds) */
.btn-outline-black{
  background: transparent !important;
  color: var(--bf-black) !important;
  border-color: var(--bf-black) !important;
}
.btn-outline-black:hover{
  background: var(--bf-black) !important;
  color: var(--bf-white) !important;
}


/* --- page's own styles --- */

/* Community route styles — migrated from the source page's own <style> block.
   Token names resolve through the --bf-* alias layer in base.css. */

/* ---------- shared ---------- */
.bf-comm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 13px;
  color: var(--bf-red, #d42128);
  margin: 0 0 14px;
}
.bf-comm-eyebrow::before,
.bf-comm-eyebrow::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--bf-red, #d42128);
}

/* ---------- page header ---------- */
.bf-comm-hero {
  background: var(--bf-black, #0a0a0a);
  color: var(--bf-white, #fff);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.bf-comm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 50px,
    rgba(212, 33, 40, 0.08) 50px, rgba(212, 33, 40, 0.08) 52px
  );
  pointer-events: none;
  z-index: 1;
}
.bf-comm-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 24px;
  position: relative;
  z-index: 2;
  text-align: center;
}
.bf-comm-hero__inner .bf-comm-eyebrow {
  margin-left: auto;
  margin-right: auto;
}
.bf-comm-hero__title {
  font-family: var(--bf-font-display, 'Anton', sans-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bf-white, #fff);
  margin: 0;
}
.bf-comm-hero__title em {
  font-style: normal;
  color: var(--bf-red, #d42128);
}
.bf-comm-hero__sub {
  font-family: var(--bf-font-body, 'Barlow', system-ui, sans-serif);
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 20px auto 0;
}

/* ---------- update section ---------- */
.bf-comm-update {
  background: var(--bf-white, #fff);
  width: 100%;
  position: relative;
  border-top: 1px solid var(--bf-gray-200, #d8d8d8);
}
.bf-comm-update--gray { background: var(--bf-gray-50, #f7f7f7); }

.bf-comm-update__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
/* image on the right instead of the left */
.bf-comm-update--flip .bf-comm-update__media { order: 2; }

/* media */
.bf-comm-update__figure {
  display: block;
  margin: 0;
  position: relative;
  background: var(--bf-gray-100, #ededed);
  border: 1px solid var(--bf-gray-200, #d8d8d8);
  overflow: hidden;
}
.bf-comm-update__figure img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s;
}
a.bf-comm-update__figure:hover img,
button.bf-comm-update__figure:hover img { transform: scale(1.03); }

/* a figure that opens the lightbox is a <button>, so strip button chrome */
button.bf-comm-update__figure {
  width: 100%;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: zoom-in;
}
button.bf-comm-update__figure:focus-visible {
  outline: 3px solid var(--bf-red, #d42128);
  outline-offset: 2px;
}

/* --pair: two figures side by side in the media column, for updates with more
   than one poster. Stacks below 640px so poster text stays legible. */
.bf-comm-update__media--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 640px) {
  .bf-comm-update__media--pair { grid-template-columns: 1fr; }
}

/* --grid: a photo gallery in the media column. Crops to uniform tiles so mixed
   portrait/landscape shots still line up; each tile opens full size in the
   lightbox. Stays 2-up on mobile — they're thumbnails, not the main event. */
.bf-comm-update__media--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bf-comm-update__media--grid .bf-comm-update__figure { aspect-ratio: 4 / 3; }
.bf-comm-update__media--grid .bf-comm-update__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --logo: for a logo, badge or supplied graphic rather than a photograph.
   Centres the artwork at its natural size instead of stretching it edge to
   edge, so a small asset stays sharp rather than being upscaled.
   #211f1f is sampled from the Owen Sound artwork's own background so the panel
   and the graphic read as one card — the nearest token (--bf-gray-700 #2a2a2a)
   is light enough to leave a visible seam. */
.bf-comm-update__figure--logo {
  background: #211f1f;
  border-color: #211f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.bf-comm-update__figure--logo img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* body */
/* Tag + date sit in the body column, not over the image — a badge on top of
   artwork covers whatever the artwork says (the first flyer's own headline). */
.bf-comm-update__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 12px;
}
.bf-comm-update__tag {
  display: inline-flex;
  align-items: center;
  background: var(--bf-red, #d42128);
  color: var(--bf-white, #fff);
  padding: 5px 11px;
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.bf-comm-update__date {
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bf-gray-400, #888);
  margin: 0;
}
.bf-comm-update__title {
  font-family: var(--bf-font-display, 'Anton', sans-serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bf-black, #0a0a0a);
  margin: 0 0 18px;
}
.bf-comm-update__title em {
  font-style: normal;
  color: var(--bf-red, #d42128);
}
.bf-comm-update__lede {
  font-family: var(--bf-font-body, 'Barlow', system-ui, sans-serif);
  font-size: 18px;
  line-height: 1.55;
  color: #444;
  margin: 0 0 22px;
}
.bf-comm-update__h3 {
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bf-black, #0a0a0a);
  margin: 24px 0 8px;
}
.bf-comm-update__p {
  font-family: var(--bf-font-body, 'Barlow', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 14px;
}
.bf-comm-update__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- lightbox ---------- */
/* Page-level infrastructure: markup + script live once in this block, and any
   figure opts in with data-bf-lightbox. Triggers must be <button> so they are
   keyboard reachable. */
.bf-comm-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, 0.94);
  padding: 40px 24px;
  align-items: center;
  justify-content: center;
}
.bf-comm-lb.is-open { display: flex; }

.bf-comm-lb__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.bf-comm-lb__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bf-comm-lb__cap {
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  max-width: 720px;
}
.bf-comm-lb__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--bf-white, #fff);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.bf-comm-lb__close:hover,
.bf-comm-lb__close:focus-visible {
  background: var(--bf-red, #d42128);
  border-color: var(--bf-red, #d42128);
}
@media (max-width: 640px) {
  .bf-comm-lb { padding: 64px 14px 24px; }
  .bf-comm-lb__close { top: 12px; right: 12px; }
}

/* ---------- closing CTA ---------- */
.bf-comm-cta {
  background: var(--bf-red, #d42128);
  color: var(--bf-white, #fff);
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.bf-comm-cta::before,
.bf-comm-cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 8px,
    rgba(0, 0, 0, 0.15) 8px, rgba(0, 0, 0, 0.15) 10px
  );
}
.bf-comm-cta::before { left: 0; }
.bf-comm-cta::after  { right: 0; }

.bf-comm-cta__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
  position: relative;
  z-index: 2;
}
.bf-comm-cta__urgency {
  font-family: var(--bf-font-condensed, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bf-white, #fff);
  margin: 0 0 12px;
}
.bf-comm-cta__title {
  font-family: var(--bf-font-display, 'Anton', sans-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--bf-white, #fff);
  margin: 0 0 14px;
}
.bf-comm-cta__sub {
  font-family: var(--bf-font-body, 'Barlow', system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 26px;
}
.bf-comm-cta__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .bf-comm-update__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bf-comm-update--flip .bf-comm-update__media { order: 0; }
  .bf-comm-hero__inner { padding: 64px 24px; }
}
@media (max-width: 640px) {
  .bf-comm-hero__inner   { padding: 52px 20px; }
  .bf-comm-update__inner { padding: 52px 20px; }
  .bf-comm-cta__inner    { padding: 44px 20px; }
  .bf-comm-cta::before,
  .bf-comm-cta::after { width: 40px; }
}
