/* Bahrain First — premium public UI */

:root {
  --bf-page: #f7f6f4;
  --bf-surface: #ffffff;
  --bf-ink: #1a1a1a;
  --bf-muted: #5c5c5c;
  --bf-faint: #8a8782;
  --bf-line: rgba(26, 26, 26, 0.1);
  --bf-line-strong: rgba(26, 26, 26, 0.16);
  --bf-red: #b01c2e;
  --bf-red-soft: rgba(176, 28, 46, 0.08);
  --bf-sand: #f3efe8;
  --bf-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
  --bf-radius: 10px;
}

body {
  background: var(--bf-page);
  color: var(--bf-ink);
}

body[data-page="home"],
body[data-page="discover"],
body[data-page="profile"] {
  background: var(--bf-page);
}

.bf-lang-btn {
  display: none;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.25rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bf-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.bf-lang-btn:hover {
  color: var(--bf-ink);
  background: rgba(26, 26, 26, 0.04);
}

@media (min-width: 1100px) {
  .bf-lang-btn {
    display: inline-flex;
  }
}

/* Home — same approach as discover / profile */
.bf-home-block {
  margin-top: 2.75rem;
}

.bf-home-block-head {
  margin-bottom: 1.25rem;
}

.bf-home-block-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.bf-home-block .bf-section-title {
  max-width: 22ch;
}

.bf-path-list {
  display: grid;
  gap: 0.65rem;
}

.bf-path-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bf-path-row:hover {
  border-color: var(--bf-line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.bf-path-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.bf-path-main strong {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--bf-ink);
}

.bf-path-main span {
  color: var(--bf-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bf-path-chevron {
  color: var(--bf-faint);
}

.bf-path-row:hover .bf-path-chevron {
  color: var(--bf-ink);
}

.bf-home-block .bf-stats {
  margin-top: 0;
}

.bf-stat-value:not([data-count]) {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.bf-insight-list {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .bf-insight-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bf-insight-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.bf-insight-row:hover {
  border-color: var(--bf-line-strong);
}

.bf-insight-row h3 {
  margin: 0;
  color: var(--bf-ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bf-insight-row > p:last-child {
  margin: 0;
  color: var(--bf-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bf-explore-search .bf-btn-secondary {
  white-space: nowrap;
}

@media (max-width: 639px) {
  .bf-explore-search {
    grid-template-columns: 1fr;
  }
}

/* Nav */
.bf-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--bf-line);
  background: rgba(247, 246, 244, 0.86);
  backdrop-filter: blur(12px);
}

.bf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  min-height: 4rem;
  padding: 0.65rem 1.25rem;
}

@media (min-width: 1024px) {
  .bf-nav-inner {
    padding: 0.65rem 2rem;
  }
}

.bf-nav-search {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 20rem;
  margin: 0;
}

.bf-nav-search-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.bf-nav-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bf-faint);
  pointer-events: none;
  transform: translateY(-50%);
}

.bf-nav-search-field input {
  width: 100%;
  min-height: 2.4rem;
  padding: 0 2.35rem 0 2.2rem;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bf-ink);
  font: inherit;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bf-nav-search-field input::placeholder {
  color: var(--bf-faint);
}

.bf-nav-search-field input:focus {
  outline: none;
  border-color: var(--bf-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.bf-nav-search-submit {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--bf-ink);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.bf-nav-search-submit:hover {
  background: #333;
}

@media (max-width: 719px) {
  .bf-nav-inner {
    flex-wrap: wrap;
  }

  .bf-nav-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .bf-brand {
    order: 1;
  }

  .bf-nav-actions {
    order: 2;
    margin-left: auto;
  }
}

@media (min-width: 1100px) {
  .bf-nav-search {
    max-width: 22rem;
  }
}

.bf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.bf-nav-locale {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bf-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bf-nav-locale img,
.bf-country-flag {
  display: block;
  width: 1.15rem;
  height: 0.7rem;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(26, 26, 26, 0.1);
  flex-shrink: 0;
}

.bf-country-flag--emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 0.85rem;
  border: 0;
  font-size: 0.85rem;
  line-height: 1;
  border-radius: 0;
}

.bf-country-dd {
  position: relative;
}

.bf-country-dd-btn {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bf-country-dd-btn:hover,
.bf-country-dd-btn:focus-visible,
.bf-country-dd.is-open .bf-country-dd-btn {
  color: var(--bf-ink);
  border-color: rgba(26, 26, 26, 0.22);
  outline: none;
}

.bf-country-dd-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.bf-country-dd-chevron {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.bf-country-dd.is-open .bf-country-dd-chevron {
  transform: rotate(180deg);
}

.bf-country-dd-popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 80;
}

.bf-country-dd-popover[hidden] {
  display: none !important;
}

.bf-country-dd-popover.is-modal[hidden] {
  display: none !important;
}

/* Body-mounted modal escapes nav backdrop-filter containing block. */
.bf-country-dd-popover.is-modal {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 120;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.bf-country-dd-popover.is-modal .bf-country-dd-backdrop {
  display: block;
  position: absolute;
  inset: 0;
}

.bf-country-dd-popover.is-modal .bf-country-dd-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  max-height: min(72vh, 28rem);
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bf-country-dd-popover.is-modal .bf-country-dd-head {
  display: flex;
  flex: 0 0 auto;
}

.bf-country-dd-popover.is-modal .bf-country-dd-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem 0.55rem 1.15rem;
}

.bf-country-dd-popover.is-modal .bf-country-dd-option {
  padding: 0.75rem 0.7rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.bf-country-dd-backdrop {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(26, 26, 26, 0.42);
  cursor: pointer;
}

.bf-country-dd-sheet {
  min-width: 11.5rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.1);
  outline: none;
}

.bf-country-dd-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.65rem;
  border-bottom: 1px solid var(--bf-line);
}

.bf-country-dd-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--bf-ink);
}

.bf-country-dd-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bf-muted);
  cursor: pointer;
}

.bf-country-dd-close:hover,
.bf-country-dd-close:focus-visible {
  background: rgba(26, 26, 26, 0.05);
  color: var(--bf-ink);
  outline: none;
}

.bf-country-dd-menu {
  margin: 0;
  padding: 0.35rem;
  list-style: none;
}

.bf-country-dd-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 7px;
  color: var(--bf-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.bf-country-dd-option:hover,
.bf-country-dd-option:focus-visible {
  background: rgba(26, 26, 26, 0.05);
  outline: none;
}

.bf-country-dd-option.is-active {
  background: rgba(26, 26, 26, 0.06);
}

.bf-country-dd-option-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.bf-country-dd-option-count {
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.bf-drawer-countries {
  padding: 0.35rem 1.15rem 1rem;
  border-top: 1px solid var(--bf-line);
}

.bf-drawer-countries-label {
  margin: 0 0 0.55rem;
  color: var(--bf-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-drawer-countries-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bf-drawer-country {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--bf-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}

.bf-drawer-country:hover,
.bf-drawer-country:focus-visible {
  background: rgba(26, 26, 26, 0.05);
  outline: none;
}

.bf-drawer-country.is-active {
  background: rgba(26, 26, 26, 0.06);
}

@media (max-width: 1099px) {
  .bf-nav-locale.bf-country-dd-btn {
    padding: 0.35rem;
    gap: 0;
    min-width: 2.35rem;
    min-height: 2.35rem;
    justify-content: center;
  }

  .bf-nav-locale .bf-country-dd-label,
  .bf-country-dd-btn .bf-country-dd-label,
  .bf-country-dd-btn .bf-country-dd-chevron {
    display: none;
  }

  .bf-country-dd-popover {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .bf-country-dd-backdrop {
    display: block;
    position: absolute;
    inset: 0;
  }

  .bf-country-dd-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    max-height: min(72vh, 28rem);
    margin: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(26, 26, 26, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: bf-country-sheet-in 0.2s ease;
  }

  .bf-country-dd-head {
    display: flex;
    flex: 0 0 auto;
  }

  .bf-country-dd-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.45rem 0.55rem 1.15rem;
  }

  .bf-country-dd-option {
    padding: 0.75rem 0.7rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  body.bf-country-open {
    overflow: hidden;
  }
}

@keyframes bf-country-sheet-in {
  from {
    transform: scale(0.96) translateY(0.5rem);
    opacity: 0.85;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-country-dd-sheet {
    animation: none;
  }
}

.bf-brand-logo {
  display: block;
  width: auto;
  height: 1.65rem;
}

.bf-brand-logo--footer {
  height: 1.85rem;
}

.bf-brand-logo--login {
  height: 2rem;
  margin: 0 auto;
}

.bf-brand-logo--hero {
  height: clamp(2.4rem, 5vw, 3.25rem);
}

.bf-page-title--logo {
  margin: 0.35rem 0 0;
  line-height: 1;
}

.bf-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--bf-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bf-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.bf-brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bf-brand-sub {
  font-size: 0.68rem;
  color: var(--bf-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bf-nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

@media (min-width: 1100px) {
  .bf-nav-links {
    display: flex;
  }
}

.bf-nav-link {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--bf-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.bf-nav-link:hover,
.bf-nav-link.is-active {
  color: var(--bf-ink);
  background: rgba(26, 26, 26, 0.04);
}

.bf-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bf-nav-account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bf-nav-logout-form,
.bf-drawer-logout-form,
.bf-footer-logout-form {
  margin: 0;
  display: inline;
}

@media (max-width: 719px) {
  .bf-nav-logout-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bf-nav-account .bf-btn-secondary {
    min-width: 2.35rem;
    padding-inline: 0.55rem;
    justify-content: center;
  }
}

.bf-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bf-menu-btn:hover,
.bf-menu-btn:focus-visible {
  border-color: rgba(26, 26, 26, 0.22);
  background: rgba(26, 26, 26, 0.03);
  outline: none;
}

.bf-menu-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

@media (min-width: 1100px) {
  .bf-menu-btn {
    display: none;
  }
}

/* Mobile slide-in drawer */
.bf-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}

.bf-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.bf-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(20, 18, 16, 0.48);
  opacity: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.28s ease;
}

.bf-drawer.is-open .bf-drawer-backdrop {
  opacity: 1;
}

.bf-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(20.5rem, 88vw);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(26, 26, 26, 0.14);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}

.bf-drawer.is-open .bf-drawer-panel {
  transform: translate3d(0, 0, 0);
}

.bf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--bf-line);
}

.bf-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bf-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bf-drawer-close:hover,
.bf-drawer-close:focus-visible {
  border-color: rgba(26, 26, 26, 0.22);
  background: rgba(26, 26, 26, 0.03);
  outline: none;
}

.bf-drawer-close:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.bf-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.85rem 0.85rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.bf-drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  color: var(--bf-ink);
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bf-drawer-nav a:hover,
.bf-drawer-nav a:focus-visible {
  background: rgba(26, 26, 26, 0.05);
  outline: none;
}

.bf-drawer-nav a.is-active {
  background: rgba(26, 26, 26, 0.06);
  font-weight: 650;
}

.bf-drawer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bf-line);
  background: var(--bf-page, #f7f6f4);
}

.bf-drawer-signin {
  min-height: 2.75rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.bf-drawer-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 1100px) {
  .bf-drawer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-drawer-backdrop,
  .bf-drawer-panel {
    transition: none;
  }
}

/* Buttons */
.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.bf-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.bf-icon-sm {
  width: 0.9rem;
  height: 0.9rem;
}

.bf-icon-lg {
  width: 1.35rem;
  height: 1.35rem;
}

.bf-icon-xl {
  width: 1.6rem;
  height: 1.6rem;
}

.bf-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--bf-sand);
  color: var(--bf-red);
  flex-shrink: 0;
}

.bf-icon-wrap .bf-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.bf-meta-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bf-meta-icon .bf-icon {
  color: var(--bf-faint);
}

.bf-btn-sm {
  min-height: 2.25rem;
  padding: 0 0.9rem;
  font-size: 0.8125rem;
}

.bf-btn-primary {
  background: var(--bf-ink);
  color: #fff;
}

.bf-btn-primary:hover {
  background: #000;
  color: #fff;
}

.bf-btn-secondary {
  background: transparent;
  border-color: var(--bf-line-strong);
  color: var(--bf-ink);
}

.bf-btn-secondary:hover {
  background: #fff;
  border-color: var(--bf-ink);
}

.bf-btn-accent {
  background: var(--bf-red);
  color: #fff;
}

.bf-btn-accent:hover {
  background: #961727;
  color: #fff;
}

/* Landing layout */
.bf-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

@media (min-width: 1024px) {
  .bf-section {
    padding: 5.5rem 2rem;
  }
}

.bf-section-label {
  margin: 0 0 0.75rem;
  color: var(--bf-red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bf-section-title {
  margin: 0;
  max-width: 18ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--bf-ink);
}

.bf-section-copy {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--bf-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bf-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bf-kicker::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--bf-red);
}

/* Hero */
.bf-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--bf-line);
}

.bf-hero-inner {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .bf-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    min-height: calc(100vh - 4rem);
    padding: 4.5rem 2rem 5rem;
  }
}

.bf-hero-brand {
  margin: 0 0 1.25rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--bf-ink);
}

.bf-hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bf-hero-copy {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: var(--bf-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bf-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.bf-hero-visual {
  position: relative;
  min-height: 22rem;
}

.bf-platform {
  position: relative;
  height: 100%;
  min-height: 22rem;
  padding: 1rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)),
    var(--bf-sand);
  box-shadow: var(--bf-shadow);
  overflow: hidden;
}

.bf-platform::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 30%, black 20%, transparent 75%);
  pointer-events: none;
}

.bf-platform-panel {
  position: relative;
  display: grid;
  gap: 0.75rem;
  height: 100%;
}

.bf-platform-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
}

.bf-panel {
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
}

.bf-panel h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bf-faint);
}

.bf-spark {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 4.5rem;
  margin-top: 0.85rem;
}

.bf-spark span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--bf-red), rgba(176, 28, 46, 0.35));
  transform-origin: bottom;
  animation: bfRise 1.1s ease both;
}

.bf-map-mini {
  position: relative;
  height: 4.5rem;
  margin-top: 0.85rem;
  border-radius: 8px;
  background: #f8f5f0;
  overflow: hidden;
}

.bf-map-mini svg {
  width: 100%;
  height: 100%;
}

.bf-dot {
  fill: var(--bf-red);
  opacity: 0.75;
  animation: bfPulse 2.4s ease-in-out infinite;
}

.bf-platform-table {
  flex: 1;
}

.bf-platform-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.bf-platform-table th,
.bf-platform-table td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid var(--bf-line);
  text-align: left;
}

.bf-platform-table th {
  color: var(--bf-faint);
  font-weight: 500;
}

.bf-platform-table td {
  color: var(--bf-ink);
}

.bf-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(4, 120, 87, 0.08);
  color: #047857;
  font-size: 0.68rem;
  font-weight: 600;
}

/* Stats */
.bf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bf-line);
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .bf-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.bf-stat {
  background: #fff;
  padding: 1.35rem 1.2rem;
}

.bf-stat .bf-icon-wrap {
  margin-bottom: 0.85rem;
}

.bf-stat-value {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.bf-stat-label {
  margin: 0.55rem 0 0;
  color: var(--bf-muted);
  font-size: 0.85rem;
}

/* Ecosystem map */
.bf-eco {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .bf-eco {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

.bf-map-stage {
  position: relative;
  min-height: 22rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 40% 45%, rgba(176, 28, 46, 0.08), transparent 45%),
    #fff;
  overflow: hidden;
}

.bf-map-stage svg {
  width: 100%;
  height: 100%;
  min-height: 22rem;
}

.bf-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.bf-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bf-muted);
  font-size: 0.85rem;
}

.bf-map-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--bf-red);
}

.bf-sector-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bf-sector-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bf-line);
}

.bf-sector-row strong {
  font-weight: 600;
}

.bf-sector-row em {
  color: var(--bf-faint);
  font-style: normal;
  font-size: 0.85rem;
}

.bf-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.06);
  overflow: hidden;
  margin-top: 0.45rem;
}

.bf-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bf-red);
  transform-origin: left;
  animation: bfGrow 1s ease both;
}

/* Search showcase */
.bf-search-shell {
  margin-top: 2rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: #fff;
  padding: 1.25rem;
  box-shadow: var(--bf-shadow);
}

.bf-search-shell form {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .bf-search-shell form {
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: end;
  }
}

.bf-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--bf-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bf-field input,
.bf-field select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 0.85rem;
  color: var(--bf-ink);
  font: inherit;
}

.bf-field input:focus,
.bf-field select:focus {
  outline: none;
  border-color: var(--bf-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.bf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bf-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  background: var(--bf-page);
  color: var(--bf-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.bf-chip:hover {
  border-color: var(--bf-ink);
  color: var(--bf-ink);
  background: #fff;
}

/* Intelligence steps */
.bf-intel-grid {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bf-line);
}

@media (min-width: 800px) {
  .bf-intel-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.bf-intel-item {
  background: #fff;
  padding: 1.4rem 1.2rem;
  min-height: 10rem;
}

.bf-intel-item strong {
  display: block;
  margin-top: 1rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.bf-intel-item p {
  margin: 0.45rem 0 0;
  color: var(--bf-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bf-intel-num {
  color: var(--bf-red);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
}

/* Profile preview */
.bf-profile-preview {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

@media (min-width: 960px) {
  .bf-profile-preview {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.bf-profile-main {
  padding: 1.75rem;
}

.bf-profile-side {
  padding: 1.75rem;
  background: var(--bf-sand);
  border-left: 1px solid var(--bf-line);
}

.bf-profile-name {
  margin: 0.35rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bf-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.9rem;
  color: var(--bf-muted);
  font-size: 0.9rem;
}

.bf-kv {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bf-kv div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--bf-line);
  font-size: 0.9rem;
}

.bf-kv dt {
  color: var(--bf-faint);
}

.bf-kv dd {
  margin: 0;
  font-weight: 560;
  font-weight: 600;
  text-align: right;
}

/* Explorer table */
.bf-explorer {
  margin-top: 2rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.bf-explorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bf-line);
  background: rgba(247, 246, 244, 0.7);
}

.bf-explorer-toolbar span {
  color: var(--bf-muted);
  font-size: 0.85rem;
}

.bf-explorer-table-wrap {
  overflow: auto;
}

.bf-explorer table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bf-explorer th,
.bf-explorer td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--bf-line);
  text-align: left;
  white-space: nowrap;
}

.bf-explorer th {
  color: var(--bf-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
}

.bf-explorer tr:hover td {
  background: rgba(26, 26, 26, 0.02);
}

.bf-explorer a {
  color: var(--bf-ink);
  font-weight: 600;
  text-decoration: none;
}

.bf-explorer a:hover {
  color: var(--bf-red);
}

/* Trusted + audience */
.bf-trust-grid,
.bf-audience-grid {
  display: grid;
  gap: 1px;
  margin-top: 2.25rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bf-line);
}

@media (min-width: 800px) {
  .bf-trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bf-audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bf-trust-item,
.bf-audience-item {
  background: #fff;
  padding: 1.4rem 1.2rem;
}

.bf-trust-item strong,
.bf-audience-item strong {
  display: block;
  margin-top: 0.85rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.bf-trust-item p,
.bf-audience-item p {
  margin: 0.4rem 0 0;
  color: var(--bf-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bf-trust-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #047857;
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12);
}

/* Final CTA */
.bf-final {
  border-top: 1px solid var(--bf-line);
  background:
    linear-gradient(180deg, rgba(243, 239, 232, 0.7), rgba(247, 246, 244, 0.2));
}

.bf-final-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 5rem 1.25rem 5.5rem;
  text-align: center;
}

.bf-final-inner h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.bf-final-inner p {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: var(--bf-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bf-final-inner .bf-hero-cta {
  justify-content: center;
}

/* Footer */
.bf-footer {
  border-top: 1px solid var(--bf-line);
  background: #fff;
  margin-top: 0;
}

.bf-footer-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

@media (min-width: 900px) {
  .bf-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    padding: 3.5rem 2rem;
  }
}

.bf-footer-brand p {
  margin: 1rem 0 0;
  max-width: 26rem;
  color: var(--bf-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bf-footer-label {
  margin: 0 0 0.85rem;
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-footer li + li {
  margin-top: 0;
}

.bf-footer a {
  color: var(--bf-muted);
  text-decoration: none;
  font-size: 0.925rem;
}

.bf-footer-grid li + li {
  margin-top: 0.55rem;
}

.bf-footer a:hover {
  color: var(--bf-ink);
}

.bf-footer-base {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.65rem;
  border-top: 1px solid var(--bf-line);
  color: var(--bf-faint);
  font-size: 0.8rem;
}

.bf-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.bf-footer-dot {
  opacity: 0.55;
}

.bf-footer-perf {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

@media (min-width: 700px) {
  .bf-footer-base {
    flex-direction: row;
    justify-content: space-between;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.bf-footer-disclaimer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  color: var(--bf-faint);
  font-size: 0.72rem;
  line-height: 1.5;
}

.bf-footer-disclaimer a {
  color: var(--bf-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}

.bf-footer-disclaimer a:hover {
  color: var(--bf-ink);
}

@media (min-width: 700px) {
  .bf-footer-disclaimer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Footer SEO / About Gulfthis */
.bf-footer-seo {
  display: none;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 2rem;
  border-top: 1px solid var(--bf-line);
}

@media (min-width: 1100px) {
  .bf-footer-seo {
    display: block;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.bf-footer-seo-title {
  margin: 1.5rem 0 0.85rem;
  color: var(--bf-ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.bf-footer-seo-copy {
  max-width: 56rem;
}

.bf-footer-seo-copy p {
  margin: 0 0 0.85rem;
  color: var(--bf-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.bf-footer-seo-copy p:last-child {
  margin-bottom: 0;
}

.bf-footer-seo-copy a {
  color: var(--bf-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  font-size: inherit;
  font-weight: inherit;
}

.bf-footer-seo-copy a:hover {
  color: var(--bf-ink);
}

/* Footer quick-search links */
.bf-footer-quick {
  display: none;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.25rem;
  border-top: 1px solid var(--bf-line);
}

@media (min-width: 1100px) {
  .bf-footer-quick {
    display: block;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.bf-footer-quick-title {
  margin: 1.5rem 0 1rem;
  color: var(--bf-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bf-footer-quick-grid {
  display: grid;
  gap: 1.15rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .bf-footer-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .bf-footer-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bf-footer-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bf-footer-quick-group {
  min-width: 0;
}

.bf-footer-quick .bf-footer-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.bf-footer-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-footer-quick-links li {
  margin: 0;
  padding: 0;
  font-size: 0.675em;
  line-height: 1.35;
}

.bf-footer-quick-links li::after {
  content: none;
}

.bf-footer-quick-links a {
  color: var(--bf-muted);
  text-decoration: none;
  display: inline;
  font-size: inherit;
}

.bf-footer-quick-links a:hover {
  color: var(--bf-ink);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.bf-footer-quick-more {
  margin-top: 0.25rem;
}

.bf-footer-quick-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--bf-muted);
  font-size: 0.675em;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0;
  user-select: none;
  text-decoration: none;
}

.bf-footer-quick-more summary::-webkit-details-marker {
  display: none;
}

.bf-footer-quick-more summary:hover {
  color: var(--bf-ink);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.bf-footer-quick-links--more {
  margin-top: 0.25rem;
  padding-top: 0.15rem;
  overflow: hidden;
  animation: bf-footer-quick-slide 0.22s ease;
}

@keyframes bf-footer-quick-slide {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-footer-quick-links--more {
    animation: none;
  }
}

/* Content pages (story, legal, contact) */
.bf-content-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .bf-content-layout {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.bf-content-nav {
  display: none;
}

@media (min-width: 900px) {
  .bf-content-nav {
    display: block;
    position: sticky;
    top: 5.5rem;
  }
}

.bf-content-nav-label {
  margin: 0 0 0.55rem;
  color: var(--bf-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bf-content-nav-label + nav + .bf-content-nav-label {
  margin-top: 1.35rem;
}

.bf-content-nav nav {
  display: grid;
  gap: 0.2rem;
}

.bf-content-nav a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: var(--bf-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.bf-content-nav a:hover,
.bf-content-nav a.is-active {
  color: var(--bf-ink);
  background: rgba(26, 26, 26, 0.04);
}

.bf-content-body {
  max-width: 42rem;
}

.bf-content-body section + section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--bf-line);
}

.bf-content-body h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bf-content-body p,
.bf-content-body li {
  color: var(--bf-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

.bf-content-body p {
  margin: 0;
}

.bf-content-body p + p {
  margin-top: 0.85rem;
}

.bf-content-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.bf-content-body li + li {
  margin-top: 0.55rem;
}

.bf-content-body a {
  color: var(--bf-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bf-content-updated {
  margin-bottom: 1rem !important;
  color: var(--bf-faint) !important;
  font-size: 0.8rem !important;
}

.bf-roadmap-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.bf-roadmap-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin: 0;
}

.bf-roadmap-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--bf-line);
  background: #fff;
  color: var(--bf-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-roadmap-tag.is-now {
  border-color: rgba(31, 122, 77, 0.25);
  background: rgba(31, 122, 77, 0.08);
  color: #1f7a4d;
}

.bf-roadmap-tag.is-later {
  color: var(--bf-muted);
}

.bf-roadmap-list strong {
  display: block;
  color: var(--bf-ink);
  font-size: 0.95rem;
}

.bf-roadmap-list p {
  margin-top: 0.25rem !important;
  font-size: 0.9rem !important;
}

.bf-contact-meta {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0 0;
}

.bf-contact-meta dt {
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-contact-meta dd {
  margin: 0.25rem 0 0;
  color: var(--bf-ink);
  font-size: 0.95rem;
}

.bf-contact-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.bf-contact-form textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bf-ink);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.bf-contact-form textarea:focus {
  outline: none;
  border-color: var(--bf-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.bf-content-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(176, 28, 46, 0.25);
  border-radius: 10px;
  background: rgba(176, 28, 46, 0.06);
  color: #8f1526;
  font-size: 0.875rem;
}

.bf-content-alert.is-ok {
  border-color: rgba(31, 122, 77, 0.25);
  background: rgba(31, 122, 77, 0.08);
  color: #1f7a4d;
}

/* Reveal */
.bf-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.bf-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes bfRise {
  from { transform: scaleY(0.15); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes bfGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bfPulse {
  0%, 100% { opacity: 0.45; r: 3; }
  50% { opacity: 0.95; r: 4.5; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-reveal,
  .bf-spark span,
  .bf-bar > span,
  .bf-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Shared page chrome */
.bf-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

@media (min-width: 1024px) {
  .bf-shell {
    padding: 2.5rem 2rem 5rem;
  }
}

.bf-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.bf-page-title {
  margin: 0.35rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--bf-ink);
}

.bf-page-copy {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: var(--bf-muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.bf-page-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bf-faint);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Cards */
.bf-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--bf-shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.bf-card:hover {
  border-color: var(--bf-line-strong);
  transform: translateY(-1px);
}

.bf-card-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.bf-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--bf-ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bf-card-titleblock {
  min-width: 0;
  flex: 1;
}

.bf-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.bf-card-title-row h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--bf-ink);
}

.bf-card-titleblock .name-ar {
  margin: 0.25rem 0 0;
  color: var(--bf-muted);
  font-size: 0.85rem;
}

.bf-card-intro {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.85rem 0 0;
  color: var(--bf-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.bf-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  color: var(--bf-ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.bf-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  background: var(--bf-page);
  color: var(--bf-muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.bf-card-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--bf-line);
}

.bf-card-dates dt {
  color: var(--bf-faint);
  font-size: 0.72rem;
}

.bf-card-dates dd {
  margin: 0.2rem 0 0;
  color: var(--bf-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.bf-card-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Discover layout */
.bf-explore {
  margin-bottom: 1.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fff 40%),
    var(--bf-sand);
  box-shadow: var(--bf-shadow);
  overflow: visible;
}

.bf-explore-search {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid var(--bf-line);
  background: #fff;
}

@media (min-width: 720px) {
  .bf-explore-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.2rem 1.25rem;
  }

  .bf-explore-search:has(> .bf-btn + .bf-btn),
  .bf-explore-search:has(> a.bf-btn + .bf-btn) {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
}

.bf-explore-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.bf-explore-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  color: var(--bf-faint);
  pointer-events: none;
}

.bf-explore-search-icon svg,
.bf-explore-search-icon i {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.bf-explore-search-field input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0 2.5rem 0 2.85rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: var(--bf-page);
  color: var(--bf-ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bf-explore-search-field input::placeholder {
  color: var(--bf-faint);
}

.bf-explore-search-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--bf-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.bf-explore-clear-q {
  position: absolute;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  color: var(--bf-muted);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}

.bf-explore-clear-q:hover {
  background: rgba(26, 26, 26, 0.06);
  color: var(--bf-ink);
}

/* Live search suggestions (fixed panel on body) */
.bf-live-search-host {
  position: relative;
  z-index: 5;
}

.bf-live-search {
  position: fixed;
  z-index: 1200;
  max-height: min(22rem, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(26, 26, 26, 0.12);
  -webkit-overflow-scrolling: touch;
}

.bf-live-search[hidden] {
  display: none !important;
}

.bf-live-search-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

.bf-live-search-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.bf-live-search-item:hover,
.bf-live-search-item.is-active {
  background: rgba(26, 26, 26, 0.05);
}

.bf-live-search-media {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bf-line);
  background: var(--bf-sand, #f3efe8);
  display: grid;
  place-items: center;
}

.bf-live-search-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bf-live-search-initials {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bf-muted);
}

.bf-live-search-copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.bf-live-search-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-live-search-meta {
  font-size: 0.78rem;
  color: var(--bf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bf-live-search-empty {
  padding: 0.85rem 1rem;
  color: var(--bf-muted);
  font-size: 0.88rem;
}

.bf-live-search-more {
  display: block;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--bf-line);
  color: var(--bf-red, #b01c2e);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.bf-live-search-more:hover {
  background: rgba(176, 28, 46, 0.04);
}

.bf-explore-search .bf-btn {
  min-height: 3.15rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.bf-explore-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--bf-line);
  background: rgba(247, 246, 244, 0.65);
}

.bf-discover-main .bf-explore-bar {
  padding: 0 0 0.9rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--bf-line);
  background: transparent;
}

.bf-explore-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.bf-explore-sort label {
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-explore-sort select {
  min-height: 2.35rem;
  min-width: 11.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  font: inherit;
  font-size: 0.875rem;
}

.bf-explore-sort select:focus {
  outline: none;
  border-color: var(--bf-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.bf-explore-reset {
  color: var(--bf-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.bf-explore-reset:hover {
  color: var(--bf-red);
}

.bf-explore-filters {
  display: grid;
  gap: 1.15rem;
  padding: 0 1.05rem 1.15rem;
}

.bf-explore-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bf-explore-group-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  padding: 0.15rem 0;
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.bf-explore-group-summary::-webkit-details-marker {
  display: none;
}

.bf-explore-group-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.bf-explore-group-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: var(--bf-faint);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.bf-explore-group-chevron {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.bf-explore-group[open] > .bf-explore-group-summary {
  color: var(--bf-muted);
}

.bf-explore-group[open] > .bf-explore-group-summary .bf-explore-group-chevron {
  transform: rotate(180deg);
}

.bf-explore-group-summary:hover {
  color: var(--bf-ink);
}

.bf-explore-group-body {
  display: grid;
  gap: 0.35rem;
}

.bf-explore-group legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  padding: 0;
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-explore-sort label,
.bf-explore-reset,
.bf-explore-active-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.bf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 2.05rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--bf-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bf-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.bf-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bf-chip-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.55;
  flex-shrink: 0;
}

.bf-chip-check::after {
  content: "";
  width: 0.35rem;
  height: 0.55rem;
  border-right: 1.5px solid transparent;
  border-bottom: 1.5px solid transparent;
  transform: rotate(45deg) translate(-0.05rem, -0.05rem);
}

.bf-chip.is-on .bf-chip-check {
  opacity: 1;
  background: rgba(255, 255, 255, 0.18);
}

.bf-chip.is-on .bf-chip-check::after {
  border-right-color: currentColor;
  border-bottom-color: currentColor;
}

.bf-chip:hover {
  border-color: var(--bf-line-strong);
  color: var(--bf-ink);
}

.bf-chip.is-on {
  border-color: var(--bf-ink);
  background: var(--bf-ink);
  color: #fff;
}

.bf-chip.is-removable {
  padding-right: 0.65rem;
}

.bf-chip.is-removable span:last-child {
  opacity: 0.7;
  font-size: 1rem;
  line-height: 1;
}

/* Active filter strip — label + solid black remove pills */
.bf-explore-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: #f0efed;
}

.bf-explore-active-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  color: #8a8884;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-explore-active-label .bf-icon,
.bf-explore-active-label svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #9a9893;
  stroke-width: 1.75;
}

.bf-explore-active-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

a.bf-explore-active-chip,
.bf-explore-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 1.8rem;
  padding: 0.3rem 0.5rem 0.3rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

a.bf-explore-active-chip:hover,
a.bf-explore-active-chip:focus-visible,
.bf-explore-active-chip:hover,
.bf-explore-active-chip:focus-visible {
  background: #2a2a2a;
  color: #fff !important;
  text-decoration: none !important;
}

.bf-explore-active-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bf-explore-active-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

a.bf-explore-active-chip:hover .bf-explore-active-chip-x,
.bf-explore-active-chip:hover .bf-explore-active-chip-x {
  color: #fff;
}

.bf-explore-active-chip-x .bf-icon,
.bf-explore-active-chip-x svg {
  width: 0.8rem;
  height: 0.8rem;
}

@media (max-width: 719px) {
  .bf-explore-active {
    padding: 0.55rem 0.65rem;
    gap: 0.4rem 0.5rem;
  }

  .bf-explore-active-label {
    width: 100%;
    font-size: 0.65rem;
  }
}

.bf-discover-results {
  min-width: 0;
}

.bf-discover-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.bf-discover-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--bf-shadow);
}

.bf-discover-sidebar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.05rem 0.85rem;
}

.bf-discover-sidebar-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-discover-sidebar-head h2 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.bf-discover-sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: -0.25rem -0.25rem 0 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bf-muted);
  cursor: pointer;
}

.bf-discover-sidebar-close:hover {
  background: rgba(26, 26, 26, 0.05);
  color: var(--bf-ink);
}

.bf-discover-sidebar-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.bf-discover-sidebar-actions .bf-btn {
  width: 100%;
}

.bf-discover-sidebar-actions .bf-explore-reset {
  justify-content: center;
}

.bf-filter-list {
  display: grid;
  gap: 0.15rem;
}

.bf-filter-option,
.bf-filter-option.ui-check {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 2.15rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  color: var(--bf-ink);
  font-size: 0.875rem;
  line-height: 1.35;
  gap: 0.55rem;
}

.bf-filter-option .ui-check-box {
  margin-top: 0.12rem;
}

.bf-filter-option:hover {
  background: rgba(26, 26, 26, 0.04);
}

.bf-filter-option.is-checked {
  font-weight: 600;
}

.bf-filter-option-text {
  min-width: 0;
  flex: 1;
  padding-top: 0.05rem;
}

.bf-filter-count {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--bf-faint);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bf-filter-option.is-checked .bf-filter-count {
  color: var(--bf-muted);
}

.bf-filter-more {
  margin-top: 0.35rem;
}

.bf-filter-more summary {
  cursor: pointer;
  color: var(--bf-muted);
  font-size: 0.8rem;
  font-weight: 600;
  list-style: none;
  padding: 0.35rem 0.45rem;
}

.bf-filter-more summary::-webkit-details-marker {
  display: none;
}

.bf-filter-more summary:hover {
  color: var(--bf-red);
}

.bf-filter-more[open] summary {
  margin-bottom: 0.25rem;
  color: var(--bf-ink);
}

.bf-filter-more .bf-filter-list {
  margin-top: 0.15rem;
}

.bf-discover-toolbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.bf-discover-open-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--bf-ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.bf-discover-overlay {
  display: none;
}

.bf-discover-main {
  min-width: 0;
}

@media (max-width: 959px) {
  .bf-discover-overlay.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(26, 26, 26, 0.4);
  }

  .bf-discover-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 56;
    width: min(20.5rem, 90vw);
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .bf-discover-sidebar.is-open {
    transform: none;
  }

  .bf-discover-sidebar-actions {
    position: sticky;
    bottom: 0;
    padding: 0.85rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
  }
}

@media (min-width: 960px) {
  .bf-discover-layout {
    grid-template-columns: 16.75rem minmax(0, 1fr);
    gap: 1.75rem;
  }

  .bf-discover-sidebar {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .bf-discover-sidebar-close,
  .bf-discover-open {
    display: none;
  }
}

.bf-result-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .bf-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bf-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Discover listing */
.bf-result-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.bf-list-row + .bf-list-row {
  border-top: 1px solid var(--bf-line);
}

.bf-list-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bf-list-link:hover {
  background: rgba(26, 26, 26, 0.025);
}

.bf-list-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--bf-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bf-list-main {
  min-width: 0;
}

.bf-list-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.bf-list-title-row h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--bf-ink);
}

.bf-list-main .name-ar {
  margin: 0.2rem 0 0;
  color: var(--bf-muted);
  font-size: 0.85rem;
}

.bf-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.45rem;
  color: var(--bf-ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.bf-list-dates {
  display: none;
  margin: 0;
  gap: 1.25rem;
  text-align: right;
}

.bf-list-dates dt {
  color: var(--bf-faint);
  font-size: 0.7rem;
}

.bf-list-dates dd {
  margin: 0.15rem 0 0;
  color: var(--bf-ink);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.bf-list-chevron {
  color: var(--bf-faint);
  display: inline-flex;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.bf-list-link:hover .bf-list-chevron {
  color: var(--bf-ink);
  transform: translateX(2px);
}

@media (min-width: 900px) {
  .bf-list-link {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .bf-list-dates {
    display: flex;
  }
}

.bf-error-panel {
  max-width: 28rem;
  margin: 3rem auto;
  align-items: center;
  text-align: center;
}

.bf-error-panel .bf-icon-wrap {
  margin: 0 auto 1rem;
}

.bf-error-panel .bf-disco-rec-title {
  margin-top: 0.75rem;
}

.bf-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.bf-empty {
  grid-column: 1 / -1;
  padding: 3.5rem 1.5rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.bf-empty h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.bf-empty p {
  margin: 0.5rem auto 0;
  max-width: 26rem;
  color: var(--bf-muted);
  font-size: 0.9rem;
}

.bf-empty .bf-btn {
  margin-top: 1.25rem;
}

.bf-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bf-line);
}

.bf-pagination-status {
  margin: 0;
  color: var(--bf-faint);
  font-size: 0.875rem;
  font-weight: 500;
}

.bf-pagination-status-pages {
  color: rgba(26, 26, 26, 0.35);
}

.bf-pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.bf-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bf-pagination-page,
.bf-pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bf-ink);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bf-pagination-page:hover,
.bf-pagination-nav:hover {
  border-color: rgba(26, 26, 26, 0.22);
  background: rgba(26, 26, 26, 0.03);
  color: var(--bf-ink);
}

.bf-pagination-page.is-current {
  border-color: var(--bf-ink);
  background: var(--bf-ink);
  color: #fff;
  pointer-events: none;
}

.bf-pagination-nav.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.bf-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--bf-faint);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  user-select: none;
}

@media (max-width: 640px) {
  .bf-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .bf-pagination-controls {
    margin-left: 0;
    justify-content: space-between;
  }

  .bf-pagination-pages {
    flex: 1;
    justify-content: center;
  }

  .bf-pagination-nav span {
    display: none;
  }
}

/* Profile */
.bf-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--bf-faint);
  font-size: 0.875rem;
}

.bf-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bf-muted);
  text-decoration: none;
}

.bf-crumb a:hover {
  color: var(--bf-ink);
}

.bf-crumb-sep {
  color: rgba(26, 26, 26, 0.25);
}

.bf-crumb-current {
  color: var(--bf-ink);
  font-weight: 500;
}

.bf-profile-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--bf-line);
}

@media (min-width: 900px) {
  .bf-profile-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.bf-profile-identity {
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.bf-profile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  background: var(--bf-ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bf-profile-title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.bf-profile-title span {
  color: var(--bf-faint);
}

.bf-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bf-profile-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .bf-profile-layout {
    grid-template-columns: 12.5rem minmax(0, 1fr) 14.5rem;
    gap: 2.25rem;
  }

  .bf-profile-side-nav,
  .bf-profile-rail {
    position: sticky;
    top: 5.25rem;
    align-self: start;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.bf-profile-nav-label {
  margin: 0 0 0.65rem;
  padding: 0 0.65rem;
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-profile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bf-profile-nav a,
.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--bf-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.bf-profile-nav a:hover,
.profile-nav-link:hover,
.bf-profile-nav a.is-active,
.profile-nav-link.is-active {
  background: rgba(26, 26, 26, 0.04);
  color: var(--bf-ink);
  font-weight: 600;
}

.bf-profile-sections {
  display: grid;
  gap: 2.75rem;
  min-width: 0;
}

.bf-profile-sections > section {
  scroll-margin-top: 6rem;
}

.bf-profile-sticky {
  display: grid;
  gap: 0.85rem;
}

.profile-section-title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--bf-ink);
}

.profile-prose {
  max-width: 42rem;
  margin: 0.9rem 0 0;
  color: var(--bf-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

.bf-overview-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

@media (min-width: 640px) {
  .bf-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bf-overview-item {
  padding: 1rem 1.05rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: #fff;
}

.bf-overview-item dt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bf-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bf-overview-item dd {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bf-detail-list {
  margin-top: 1.1rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: #fff;
  padding: 0.25rem 1.15rem;
}

.bf-status-panel {
  margin-top: 1.1rem;
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--bf-line);
  border-radius: 10px;
  background: #fff;
}

.bf-profile-rail {
  display: block;
}

.bf-rail-card {
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
}

.bf-rail-card h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bf-rail-card p {
  margin: 0.45rem 0 0;
  color: var(--bf-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.bf-rail-card .bf-btn {
  margin-top: 1rem;
  width: 100%;
}

@media (max-width: 1023px) {
  .bf-profile-side-nav,
  .bf-profile-rail {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .bf-profile-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .bf-profile-rail {
    display: none;
  }
}

/* —— Login page —— */
.bf-login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  padding: 2rem 1.25rem 3rem;
}

.bf-login-page {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

.bf-login-card {
  padding: 1.75rem 1.5rem 1.6rem;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
}

.bf-login-page-title {
  margin: 0.85rem 0 0;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-align: center;
}

.bf-login-page .bf-login-copy,
.bf-login-page .bf-login-brand,
.bf-login-page .bf-login-foot {
  text-align: center;
}

.bf-login-page .bf-login-brand {
  display: flex;
  justify-content: center;
}

.bf-login-page .bf-login-form {
  margin-top: 1.15rem;
}

/* —— Legacy modal styles (unused) —— */
.bf-about-prose {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-top: 1.25rem;
  color: var(--bf-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.bf-about-prose p {
  margin: 0;
}


.bf-login-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.bf-login-modal[hidden] {
  display: none !important;
}

.bf-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.bf-login-panel {
  position: relative;
  width: min(100%, 26rem);
  max-width: 100%;
  min-width: 0;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.2);
  text-align: center;
  overflow: hidden;
  animation: bf-login-in 0.28s ease;
}

@keyframes bf-login-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bf-login-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
}

.bf-login-close:hover {
  color: var(--bf-ink);
  background: rgba(26, 26, 26, 0.04);
}

.bf-login-brand {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 1.15rem;
}

.bf-login-panel h2 {
  margin: 0;
  color: #1a1a1a;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.bf-login-copy {
  margin: 0.4rem 0 0;
  color: #8a8a8a;
  font-size: 0.925rem;
  line-height: 1.45;
}

.bf-login-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}

.bf-login-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.bf-login-field input,
.bf-login-input-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.bf-login-field input {
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bf-login-input-wrap {
  position: relative;
  display: block;
}

.bf-login-input-wrap input {
  /* Room for show/hide control + password-manager icons */
  padding-right: 4.5rem;
}

.bf-login-eye {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bf-muted);
  cursor: pointer;
}

.bf-login-eye:hover {
  color: var(--bf-ink);
  background: rgba(26, 26, 26, 0.04);
}

.bf-login-field input::placeholder {
  color: #9a9a9a;
}

.bf-login-field input:focus {
  outline: none;
  border-color: var(--bf-ink);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

.bf-login-field.is-invalid input {
  border-color: rgba(176, 28, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(176, 28, 46, 0.08);
}

.bf-login-field.is-valid input {
  border-color: rgba(31, 122, 77, 0.45);
}

.bf-login-errors {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #8f1526;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bf-login-errors li + li {
  margin-top: 0.15rem;
}

.bf-login-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.2rem;
}

.bf-login-forgot a {
  color: var(--bf-red);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.bf-login-forgot a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bf-login-submit,
.bf-login-secondary {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.bf-login-submit {
  margin-top: 0.35rem;
  min-height: 3rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.bf-login-secondary {
  min-height: 3rem;
  border-radius: 8px;
  border-color: var(--bf-red);
  color: var(--bf-red);
  font-weight: 600;
}

.bf-login-secondary:hover {
  background: rgba(176, 28, 46, 0.05);
  border-color: var(--bf-red);
  color: var(--bf-red);
}

.bf-login-alert {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(176, 28, 46, 0.25);
  border-radius: 8px;
  background: rgba(176, 28, 46, 0.06);
  color: #8f1526;
  font-size: 0.875rem;
  text-align: left;
}

.bf-login-alert[hidden] {
  display: none !important;
}

.bf-login-foot {
  margin: 1.15rem 0 0;
  color: #6b6b6b;
  font-size: 0.9rem;
}

.bf-login-foot a {
  color: var(--bf-red);
  font-weight: 700;
  text-decoration: none;
}

.bf-login-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bf-btn-block {
  width: 100%;
  justify-content: center;
}

.bf-footer-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bf-muted);
  font: inherit;
  font-size: 0.925rem;
  cursor: pointer;
  text-align: left;
}

.bf-footer-linkbtn:hover {
  color: var(--bf-ink);
}

/* Internal linking — guides */
.bf-link-guides {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bf-line);
}

.bf-link-guides-label {
  margin: 0 0 0.65rem;
  color: var(--bf-faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bf-link-guides-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bf-link-guides-list a {
  color: var(--bf-ink);
  font-weight: 600;
  text-decoration: none;
}

.bf-link-guides-list a:hover {
  color: var(--bf-red);
}

.bf-link-guides-excerpt {
  display: block;
  margin-top: 0.15rem;
  color: var(--bf-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.bf-link-guides-all {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--bf-red);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.bf-link-guides-list--rail {
  gap: 0.45rem;
}

.bf-link-guides-list--rail a {
  font-size: 0.9rem;
  font-weight: 550;
}

.bf-list-rail-more {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--bf-red);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.bf-link-guides-cards {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.bf-link-guides-cards--page {
  margin-top: 1.5rem;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .bf-link-guides-cards--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bf-link-guide-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bf-link-guide-card:hover {
  border-color: rgba(26, 26, 26, 0.18);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
}

.bf-link-guide-card-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.bf-link-guide-card-copy {
  color: var(--bf-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.bf-guide-body {
  max-width: 40rem;
  color: var(--bf-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.bf-guide-body a {
  color: var(--bf-ink);
  font-weight: 600;
}

.bf-guide-listings {
  margin-top: 2rem;
}

.bf-link-guides-list--stacked {
  margin-top: 0.85rem;
}

.bf-guide-foot {
  margin-top: 2rem;
  color: var(--bf-muted);
  font-size: 0.9rem;
}

.bf-guide-foot a {
  color: var(--bf-ink);
  font-weight: 600;
  text-decoration: none;
}

.bf-list-hero-place a,
.bf-list-fact dd a,
.bf-list-rail-meta a,
.bf-list-spec-item dd a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.bf-list-hero-place a:hover,
.bf-list-fact dd a:hover,
.bf-list-rail-meta a:hover,
.bf-list-spec-item dd a:hover {
  color: var(--bf-red);
}
