/* Accessibility refinements shared by the existing Factlia and BuzzFind pages. */
.discovery-page {
  --discovery-focus: var(--bz-primary, #1e40af);
  overflow-wrap: anywhere;
  color-scheme: light;
}
html.dark .discovery-page { --discovery-focus: #f5b800; color-scheme: dark; }
.discovery-page :focus-visible {
  outline: 3px solid var(--discovery-focus);
  outline-offset: 3px;
}
.discovery-page .skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 1000;
  transform: translateY(-200%);
  background: var(--surface, #fff);
  color: var(--text, #1e293b);
  padding: .75rem 1rem;
  border-radius: .5rem;
}
.discovery-page .skip-link:focus { transform: translateY(0); }
.discovery-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.discovery-page button,
.discovery-page input:not([type="hidden"]),
.discovery-page select,
.discovery-page nav a:not(.hidden),
.discovery-page footer a,
.discovery-page .primary-btn,
.discovery-page .quick-chip,
.discovery-page .pagination a {
  min-height: 44px;
}
.discovery-page nav a:not(.hidden),
.discovery-page footer a,
.discovery-page .primary-btn,
.discovery-page .quick-chip {
  display: inline-flex;
  align-items: center;
}
.discovery-page .theme-btn { min-width: 44px; }
.discovery-page input,
.discovery-page select { min-width: 0; max-width: 100%; }
.discovery-page #business-search { width: 100%; color-scheme: light; }
.discovery-page .form-input {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--input-border);
}
.discovery-page form > .flex-col,
.discovery-page form > .flex-1 { min-width: 0; max-width: 100%; }
.discovery-page .primary-btn { max-width: 100%; white-space: normal; }
.discovery-page input::placeholder { color: #475569; opacity: 1; }
html.dark .discovery-page input::placeholder { color: #cbc4d2; }
.discovery-page #business-search::placeholder { color: #475569; }
.discovery-page .profile-identity,
.discovery-page .portfolio-copy,
.discovery-page .main-content,
.discovery-page .professional-card { min-width: 0; }
.discovery-page .card-registry { padding: clamp(1rem, 4vw, 2rem); }
.discovery-page .portfolio-layout { flex-wrap: wrap; }
.discovery-page .portfolio-copy { flex: 1 1 12rem; }
.discovery-page .professionals-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.discovery-page .pagination { flex-wrap: wrap; }
.discovery-page .pagination a { min-width: 44px; text-align: center; }
.discovery-page .filter-group h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--bz-text-primary);
}
.discovery-page .filter-list a { min-height: 44px; }
.discovery-page .quick-chip { font-size: .8125rem; }
.discovery-page footer a:hover { color: var(--bf-link, var(--bz-primary, #1e40af)); }
.discovery-page footer .text-amber-600 { color: #92400e; }
.discovery-page [data-mobile-nav] {
  padding-bottom: max(.75rem, env(safe-area-inset-bottom));
}
.discovery-page [data-mobile-nav] a { min-width: 44px; }
.discovery-page .copy-status { min-height: 1.5em; }
.discovery-page .listing-hero::before,
.discovery-page .search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.discovery-page .listing-hero::before {
  background: radial-gradient(ellipse at 80% 20%, rgba(45,212,191,.2) 0%, transparent 55%),
    linear-gradient(135deg, #0d1117 0%, #1a2f52 60%, #1e3a5f 100%);
}
.discovery-page .search-hero::before {
  background: radial-gradient(ellipse at 15% 80%, rgba(103,80,164,.3) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(45,212,191,.2) 0%, transparent 50%);
}
.discovery-page .listing-hero > .flex-1 { position: relative; z-index: 1; }
.discovery-page .listing-hero > .absolute { z-index: 1; }
@media (max-width: 640px) {
  .discovery-page .profile-hero { flex-direction: column; }
  .discovery-page .profile-identity { width: 100%; }
}
@media (max-width: 767px) {
  .discovery-page footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-page .professional-card,
  .discovery-page .glass-card,
  .discovery-page .primary-btn,
  .discovery-page .theme-btn,
  .discovery-page .side-link,
  .discovery-page .quick-chip,
  .discovery-page .action-btn-secondary {
    transition-property: color, background-color, border-color;
    transition-duration: .15s;
  }
  .discovery-page .professional-card:hover,
  .discovery-page .glass-card:hover { transform: none; box-shadow: none; }
}
