.bfs-feed {
  box-sizing: border-box;
  container-type: inline-size;
  container-name: bfs;
  max-width: var(--bfs-width, 920px);
  width: 100%;
  margin: 2rem auto;
  padding: clamp(12px, 3%, 28px);
  background: var(--bfs-background, #f5f7fa);
  color: var(--bfs-text, #172336);
  font-family: inherit;
  font-size: var(--bfs-font-size, 18px);
  line-height: var(--bfs-line-height, 1.65);
  border-radius: calc(var(--bfs-radius, 18px) + 8px);
  text-align: left;
}
.bfs-feed *,
.bfs-feed *::before,
.bfs-feed *::after {
  box-sizing: border-box;
}
.bfs-feed a {
  color: var(--bfs-accent, #075bc7);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bfs-feed a:hover {
  text-decoration: underline;
}
.bfs-feed :focus-visible {
  outline: 3px solid var(--bfs-accent, #075bc7);
  outline-offset: 4px;
}
.bfs-feed p {
  margin: 0;
}
.bfs-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bfs-gap, 28px);
}
.bfs-card {
  min-width: 0;
  padding: var(--bfs-padding, 30px);
  background: var(--bfs-card, #fff);
  border: var(--bfs-border-width, 1px) solid var(--bfs-border, #dce3ec);
  border-radius: var(--bfs-radius, 18px);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  break-inside: avoid;
}
.bfs-card:focus {
  outline: none;
}
.bfs-card:focus-visible {
  outline: 3px solid var(--bfs-accent);
  outline-offset: 3px;
}
.bfs-feed[data-shadow="soft"] .bfs-card {
  box-shadow: 0 8px 24px #17233608;
}
.bfs-feed[data-shadow="strong"] .bfs-card {
  box-shadow: 0 12px 32px #1723361c;
}
.bfs-feed[data-hover="lift"] .bfs-card:hover {
  transform: translateY(-2px);
}
.bfs-feed[data-hover="border"] .bfs-card:hover {
  border-color: var(--bfs-accent);
}
.bfs-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
  padding: 0;
  min-width: 0;
}
.bfs-avatar-link {
  flex: 0 0 auto;
}
.bfs-feed .bfs-avatar {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  width: var(--bfs-avatar, 48px);
  height: var(--bfs-avatar, 48px);
  max-width: none;
  margin: 0;
}
.bfs-author-details {
  min-width: 0;
  flex: 1;
}
.bfs-name {
  display: block;
  font-size: 0.94em;
  font-weight: 750;
  line-height: 1.35;
  color: var(--bfs-text) !important;
}
.bfs-handle {
  display: block;
  font-size: 0.75em;
  line-height: 1.5;
  color: var(--bfs-muted) !important;
  overflow-wrap: anywhere;
}
.bfs-date {
  flex: 0 0 auto;
  max-width: 33%;
  font-size: 0.68em;
  line-height: 1.6;
  color: var(--bfs-muted) !important;
  text-align: right;
}
.bfs-feed .bfs-text {
  font-size: 1em;
  line-height: var(--bfs-line-height);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}
.bfs-text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.bfs-repost {
  color: var(--bfs-muted);
  font-size: 0.74em;
  margin-bottom: 14px !important;
}
.bfs-gallery {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: calc(var(--bfs-radius) * 0.65);
  overflow: hidden;
  margin: 16px 0;
}
.bfs-gallery[data-count="1"] {
  grid-template-columns: 1fr;
}
.bfs-gallery a {
  display: block;
  min-width: 0;
}
.bfs-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0;
}
.bfs-gallery[data-count="1"] img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.bfs-gallery[data-count="3"] a:first-child {
  grid-row: span 2;
}
.bfs-social-card {
  display: block;
  margin: 18px 0;
  border: 1px solid var(--bfs-border);
  border-radius: calc(var(--bfs-radius) * 0.7);
  overflow: hidden;
  color: var(--bfs-text) !important;
  white-space: normal;
}
.bfs-social-card:hover {
  text-decoration: none !important;
  background: var(--bfs-background);
}
.bfs-social-card > img {
  display: block;
  width: 100%;
  max-height: 340px;
  aspect-ratio: 1.91;
  object-fit: cover;
  margin: 0;
}
.bfs-social-body {
  display: block;
  padding: 18px;
}
.bfs-social-body strong {
  display: block;
  font-size: 0.94em;
  line-height: 1.4;
}
.bfs-domain {
  display: block;
  color: var(--bfs-muted);
  font-size: 0.65em;
  margin-bottom: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bfs-description {
  display: block;
  font-size: 0.78em;
  line-height: 1.6;
  color: var(--bfs-muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.bfs-quote {
  margin: 20px 0 0 !important;
  padding: 18px !important;
  border: 1px solid var(--bfs-border) !important;
  border-left: 3px solid var(--bfs-accent) !important;
  border-radius: calc(var(--bfs-radius) * 0.65);
  font-size: 0.86em;
  font-style: normal;
  background: var(--bfs-background);
}
.bfs-quote .bfs-author {
  margin-bottom: 12px;
}
.bfs-quote .bfs-avatar {
  width: 32px;
  height: 32px;
}
.bfs-quote-original {
  font-size: 0.78em;
}
.bfs-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--bfs-border);
}
.bfs-original {
  font-size: 0.72em;
  font-weight: 650;
  margin-left: auto;
}
.bfs-stats {
  display: flex;
  gap: 14px;
  color: var(--bfs-muted);
  font-size: 0.72em;
}
.bfs-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: center;
  margin-top: var(--bfs-gap);
}
.bfs-feed .bfs-load {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  background: var(--bfs-button-bg);
  color: var(--bfs-button-text);
  border: 1px solid transparent;
  border-radius: var(--bfs-button-radius, 12px);
  font: inherit;
  font-size: 0.85em;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
}
.bfs-load[aria-disabled="true"] {
  opacity: 0.65;
  cursor: progress;
}
.bfs-previous {
  font-size: 0.8em;
  padding: 12px;
}
.bfs-empty,
.bfs-unavailable {
  padding: 22px;
  color: var(--bfs-muted);
  font-size: 0.85em;
}
.bfs-status {
  font-size: 0.8em;
  color: var(--bfs-muted);
  text-align: center;
  margin-top: 12px !important;
}
.bfs-status:empty {
  display: none;
}
.bfs-video {
  margin: 18px 0;
  border-radius: calc(var(--bfs-radius) * 0.7);
  overflow: hidden;
  background: var(--bfs-background);
}
.bfs-video video {
  display: block;
  width: 100%;
  max-height: 560px;
}
.bfs-video-fallback {
  display: block;
  position: relative;
  text-align: center;
}
.bfs-video-poster {
  display: none;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}
.bfs-video-fallback span {
  display: block;
  padding: 12px;
  font-size: 0.8em;
}
.bfs-video.native-unavailable video {
  display: none;
}
.bfs-video.native-unavailable .bfs-video-poster {
  display: block;
}
.bfs-feed[data-layout="grid"] .bfs-items {
  grid-template-columns: repeat(var(--bfs-columns, 2), minmax(0, 1fr));
  align-items: start;
}
.bfs-feed[data-layout="masonry"] .bfs-items {
  display: block;
  column-count: var(--bfs-columns, 2);
  column-gap: var(--bfs-gap);
}
.bfs-feed[data-layout="masonry"] .bfs-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--bfs-gap);
}
.bfs-feed[data-layout="compact"] {
  font-size: calc(var(--bfs-font-size) * 0.86);
}
.bfs-feed[data-layout="compact"] .bfs-card {
  padding: 18px;
}
.bfs-feed[data-layout="compact"] .bfs-author {
  gap: 9px;
  margin-bottom: 12px;
}
.bfs-feed[data-layout="compact"] .bfs-avatar {
  width: 34px;
  height: 34px;
}
.bfs-feed[data-layout="compact"] .bfs-social-card > img {
  max-height: 180px;
}
.bfs-lightbox {
  width: min(95vw, 1100px);
  max-height: 94vh;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  background: #0e1727;
  color: #fff;
}
.bfs-lightbox::backdrop {
  background: #07111de0;
}
.bfs-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
}
.bfs-lightbox figcaption {
  font: 15px/1.5 system-ui;
  padding: 10px;
}
.bfs-lightbox button {
  display: block;
  margin: 0 0 12px auto;
  padding: 10px 16px;
  background: #fff;
  color: #172336;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.bfs-lightbox figure {
  margin: 0;
}
.bfs-archive {
  max-width: 1240px;
  margin: auto;
  padding: 36px 20px 60px;
}
.bfs-archive-top {
  padding: 22px max(20px, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid #dce3ec;
  font: 600 20px/1.5 system-ui;
}
.bfs-archive-heading {
  max-width: 920px;
  margin: 30px auto;
  font-family: inherit;
}
.bfs-archive-heading h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  margin: 16px 0 24px;
}
.bfs-archive-heading .bfs-eyebrow {
  font: 600 12px/1.5 system-ui;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #536176;
}
.bfs-archive-intro,
.bfs-editorial {
  font-size: 18px;
  line-height: 1.75;
}
.bfs-editorial {
  max-width: 920px;
  margin: 35px auto;
}
.bfs-sources {
  font-size: 14px;
  line-height: 1.8;
  color: #536176;
}
.bfs-archive body {
  margin: 0;
}
@container bfs (max-width:740px) {
  .bfs-feed[data-layout="grid"] .bfs-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bfs-feed[data-layout="masonry"] .bfs-items {
    column-count: 2;
  }
  .bfs-author {
    flex-wrap: wrap;
  }
  .bfs-date {
    max-width: none;
    flex: 0 0 100%;
    text-align: left;
    margin-top: -5px;
  }
  .bfs-card {
    padding: min(var(--bfs-padding), 22px);
  }
}
@container bfs (max-width:520px) {
  .bfs-feed[data-layout="grid"] .bfs-items {
    grid-template-columns: minmax(0, 1fr);
  }
  .bfs-feed[data-layout="masonry"] .bfs-items {
    column-count: 1;
  }
  .bfs-card {
    padding: min(var(--bfs-padding), 20px);
  }
  .bfs-author {
    gap: 10px;
  }
  .bfs-text {
    font-size: max(16px, 0.94em) !important;
  }
  .bfs-social-body {
    padding: 14px;
  }
  .bfs-pagination {
    gap: 8px;
  }
  .bfs-load {
    width: 100%;
  }
  .bfs-quote {
    padding: 12px !important;
  }
  .bfs-card-footer {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bfs-card {
    transition: none !important;
    transform: none !important;
  }
}
@media print {
  .bfs-pagination,
  .bfs-status {
    display: none;
  }
  .bfs-card {
    break-inside: avoid;
    box-shadow: none !important;
  }
  .bfs-feed {
    padding: 0;
    background: #fff;
  }
  .bfs-items {
    display: block !important;
    column-count: 1 !important;
  }
  .bfs-card {
    margin-bottom: 20px;
  }
}
