/* Customer evidence: scoped to the catalogue, brand wall and home preview. */
.bf-case-catalog,
.bf-case-preview {
  color: var(--ink);
  font-family: var(--font);
}
.bf-case-catalog [hidden] { display: none !important; }
.bf-cases-brands.brand-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.bf-cases-brands.brand-wall > div {
  min-height: 142px;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  gap: 14px;
}
.bf-cases-brands.brand-wall img {
  width: auto;
  max-width: 220px;
  height: 58px;
  object-fit: contain;
}
.bf-cases-brands.brand-wall strong { font-size: 22px; font-weight: 500; }
.bf-cases-brands.brand-wall small { font-size: 13px; line-height: 23px; color: var(--muted); }
.bf-cases-brands--pending.brand-wall > div {
  background: transparent;
  color: var(--muted);
}
.bf-brand-slot > span { font-size: 18px; line-height: 28px; font-weight: 400; }
.bf-cases-brands--pending.brand-wall small { color: var(--muted); font-size: 12px; }
.bf-brand-note { margin-top: 18px; font-size: 14px; line-height: 26px; }

.bf-case-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.bf-case-filters button {
  min-height: 48px;
  min-width: 68px;
  padding: 11px 22px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  transition: color .15s, background .15s, border-color .15s;
}
.bf-case-filters button:hover { background: #e8ece3; color: var(--ink); }
.bf-case-filters button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  font-weight: 500;
}
.bf-case-filters button:focus-visible,
.bf-case-media:focus-visible,
.bf-case-details summary:focus-visible,
.bf-case-link:focus-visible {
  outline: 3px solid #ad8c4c;
  outline-offset: 4px;
}
.bf-case-status { margin: 18px 0 32px; font-size: 14px; line-height: 26px; }
.bf-case-grid,
.bf-case-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.bf-case-card {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  background: var(--white);
}
.bf-case-card-body { padding: 30px 32px 32px; }
.bf-case-label { color: var(--green); font-size: 14px; line-height: 24px; font-weight: 500; }
.bf-case-card h3 { margin-top: 14px; font-size: 24px; line-height: 36px; font-weight: 500; }
.bf-case-task { margin-top: 20px; font-size: 16px; line-height: 29px; }
.bf-case-figure { margin: 0; background: #eef0e9; }
.bf-case-media {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 48px;
  padding: 24px 24px 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.bf-case-media img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: contain;
}
.bf-case-media-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 52px;
  font-size: 14px;
  line-height: 24px;
  color: var(--green);
}
.bf-case-media:hover .bf-case-media-action { text-decoration: underline; text-underline-offset: 4px; }
.bf-case-video-only {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 160px;
  background: var(--dark);
  color: var(--gold);
  font-size: 20px;
  font-weight: 400;
}
.bf-case-figure figcaption { padding: 0 24px 18px; font-size: 12px; line-height: 22px; color: var(--muted); }
.bf-case-details { margin-top: 26px; border-top: 1px solid var(--line); }
.bf-case-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding-block: 14px;
  color: var(--green);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.bf-case-details summary::-webkit-details-marker { display: none; }
.bf-case-details summary > span { font-size: 20px; font-weight: 400; }
.bf-case-details[open] summary > span { transform: rotate(45deg); }
.bf-case-details dl { margin: 8px 0 0; }
.bf-case-details dl > div { margin-top: 20px; }
.bf-case-details dt { font-size: 13px; line-height: 24px; font-weight: 500; color: var(--ink); }
.bf-case-details dd { margin-top: 6px; font-size: 15px; line-height: 28px; color: var(--muted); }
.bf-case-empty-card {
  min-height: 122px;
  padding: 24px 28px;
  border: 0;
  border-top: 1px solid #cbd2c4;
  background: #eef0e9;
}
.bf-case-empty-card h3 { font-size: 22px; line-height: 32px; font-weight: 500; margin-top: 0; }
.bf-case-empty-card > p:not(.bf-case-label) { margin-top: 16px; font-size: 15px; line-height: 26px; }
.bf-case-pending { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 22px; }
.bf-case-no-script { margin-top: 28px; font-size: 14px; line-height: 26px; }

.bf-case-preview-brands > h3 { font-size: 22px; line-height: 32px; margin-bottom: 24px; }
.bf-case-preview-pending {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
  margin-top: 44px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bf-case-preview-pending h3 { margin-top: 12px; font-size: 24px; line-height: 36px; font-weight: 500; }
.bf-case-preview-pending p:not(.bf-case-label) { margin-top: 18px; max-width: 620px; font-size: 16px; line-height: 29px; }
.bf-case-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  color: var(--green);
}
.bf-case-preview-pending .bf-case-link { flex-shrink: 0; }
.bf-case-card-body > .bf-case-link { margin-top: 24px; }
.bf-case-preview-grid { margin-top: 44px; }

@media (max-width: 950px) {
  .bf-case-filters button { padding-inline: 18px; }
  .bf-case-card-body { padding: 26px; }
  .bf-case-preview-pending { gap: 32px; }
}
@media (max-width: 767px) {
  .bf-cases-brands.brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-cases-brands.brand-wall > div { min-height: 112px; padding: 18px; gap: 10px; }
  .bf-cases-brands.brand-wall img { max-width: 100%; height: 46px; }
  .bf-cases-brands.brand-wall strong { font-size: 19px; }
  .bf-cases-brands.brand-wall small { font-size: 12px; line-height: 21px; }
  .bf-brand-slot > span { font-size: 16px; }
  .bf-case-filters { gap: 6px; padding-bottom: 18px; }
  .bf-case-filters button { padding: 10px 16px; min-height: 46px; min-width: 62px; font-size: 14px; }
  .bf-case-status { margin: 16px 0 24px; }
  .bf-case-grid, .bf-case-preview-grid { grid-template-columns: 1fr; gap: 22px; }
  .bf-case-empty-card { min-height: 110px; padding: 20px; }
  .bf-case-card h3 { font-size: 22px; line-height: 33px; }
  .bf-case-card-body { padding: 24px; }
  .bf-case-media { padding: 18px 18px 0; }
  .bf-case-media img { max-height: 400px; }
  .bf-case-figure figcaption { padding: 0 18px 16px; }
  .bf-case-preview-pending { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 30px; padding-block: 28px; }
  .bf-case-preview-pending h3 { font-size: 22px; line-height: 33px; }
  .bf-case-preview-brands > h3 { margin-bottom: 20px; }
  .bf-case-preview-grid { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-case-filters button { transition: none; }
}
