/* The partner families directory and a family's share page. Brand comes from the public layout's CSS variables. */
.fam-hero { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; padding-top: 44px; padding-bottom: 150px; align-items: flex-start; }
@media (max-width: 900px) { .fam-hero { padding-bottom: 104px; } }
.fam-search { display: flex; gap: 10px; width: 100%; max-width: 520px; margin-top: 6px; }
.fam-search .form-control { border-radius: 999px; padding-inline: 18px; }
.fam-filters { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.fam-filters__row, .fam-filters__applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fam-filters__applied { gap: 8px 14px; }
.fam-filter { position: relative; }
.fam-filter summary::-webkit-details-marker { display: none; }
.fam-filter[open] summary svg { transform: rotate(180deg); }
.fam-filter-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: 280px; max-width: calc(100vw - 32px); max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--sf-line); box-shadow: var(--sf-shadow), 0 10px 30px -12px rgba(0, 0, 0, .25); }
.fam .fam-filter-option { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--sf-ink); }
.fam .fam-filter-option:hover { background: var(--sf-tint); }
.fam-filter-option .n { opacity: .6; }
.fam .fam-filter-option.is-on { font-weight: 600; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, white); }
.fam-applied-tag { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--brand-primary); }
.fam-sort { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fam-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fam-card__tags span { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; background: color-mix(in srgb, var(--brand-primary) 10%, white); }
.fam-card__story { margin: 0; font-size: 14.5px; line-height: 1.45; }
.fam-card__stat { font-size: 14px; margin-top: auto; padding-top: 4px; }
.fam-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.fam-show { padding-top: 20px; padding-bottom: 40px; }
.fam-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; text-decoration: none; color: inherit; }
.fam-header { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-bottom: 24px; }
.fam-header__photo { width: 148px; height: 148px; object-fit: cover; border-radius: 20px; }
.fam-header__stat { margin-top: 10px; font-size: 15px; }
.fam-section { margin-bottom: 24px; }
.fam-story { line-height: 1.55; overflow-wrap: anywhere; }
.fam-item { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--share-line); }
.fam-item.is-covered { opacity: .65; }
.fam-item__photo { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.fam-item__body { flex: 1 1 220px; min-width: 0; }
.fam-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fam-words { border-top: 1px solid var(--share-line); padding: 12px 0; }
.fam-words summary { cursor: pointer; font-weight: 600; }
.fam-words[open] summary { margin-bottom: 12px; }
.fam-downloads { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sf .sf-list-head > .fam-sort { flex-direction: row; }
@media (max-width: 600px) {
  .fam-filters__row { position: relative; }
  .fam-filter { position: static; }
  .fam-filter-menu { top: auto; margin-top: 6px; width: 100%; max-width: none; }
}
