/* Famous charts archive — /natal-chart/famous */
.share-pg--famous-archive .share-pg__body { padding-bottom: 2.5rem; }

.fam-archive-hero {
  text-align: center;
  margin: 0 0 1.75rem;
  direction: rtl;
}
.fam-archive-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-2, #c084fc);
  border: 1px solid rgba(157, 122, 234, .22);
  background: rgba(157, 122, 234, .08);
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.fam-archive-hero h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 .55rem;
}
.fam-archive-hero__lead {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.75;
}

.fam-archive__toolbar {
  display: grid;
  gap: .65rem;
  margin-bottom: .85rem;
  padding: .75rem .85rem;
  border-radius: 16px;
  border: 1px solid rgba(157, 122, 234, .14);
  background: linear-gradient(165deg, rgba(157, 122, 234, .06), rgba(8, 6, 14, .35));
}
.fam-archive__search {
  display: flex;
  align-items: stretch;
  gap: .5rem;
  border: 1px solid rgba(157, 122, 234, .2);
  border-radius: 12px;
  background: var(--surface);
  padding: .4rem .5rem .4rem .6rem;
}
.fam-archive__search-ico {
  display: grid;
  place-items: center;
  color: var(--muted);
  padding-inline: .15rem;
}
.fam-archive__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .88rem;
  color: var(--text);
}
.fam-archive__search input:focus { outline: none; }
.fam-archive__search-go { white-space: nowrap; border-radius: 10px !important; }

.fam-archive__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .55rem;
}
@media (min-width: 640px) {
  .fam-archive__controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .fam-archive__controls {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.fam-archive__select-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .25rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
}
.fam-archive__select-wrap select {
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  padding: .42rem .5rem;
  border-radius: 10px;
  border: 1px solid rgba(157, 122, 234, .18);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  min-width: 0;
}
.fam-archive__select-wrap select:focus {
  outline: none;
  border-color: rgba(157, 122, 234, .45);
  box-shadow: 0 0 0 2px rgba(157, 122, 234, .12);
}

.fam-archive__filter-hint {
  margin: 0;
  font-size: .72rem;
  color: #a78bfa;
  line-height: 1.5;
}

.fam-archive__status {
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 .75rem;
}
.fam-archive__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: .88rem;
}

.share-famous-grid--archive {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (min-width: 768px) {
  .share-famous-grid--archive { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .share-famous-grid--archive { grid-template-columns: repeat(6, 1fr); }
}

.fam-card span.fam-card__body {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
  gap: .2rem;
  padding: .55rem .6rem .65rem;
  min-height: 4.5rem;
  visibility: visible;
  opacity: 1;
  color: var(--text, #ece9f5);
  background: var(--surface, #16131f);
}
.fam-card strong {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text, #ece9f5);
}
.fam-card small {
  display: block;
  font-size: .65rem;
  font-weight: 500;
  color: var(--muted, #a097ba);
  line-height: 1.4;
}
.fam-card__b3 { color: #a78bfa !important; }
.fam-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .15rem;
}
.fam-card__tags em {
  font-style: normal;
  font-size: .6rem;
  font-weight: 600;
  padding: .1rem .35rem;
  border-radius: 999px;
  background: rgba(157, 122, 234, .12);
  color: var(--muted);
}

.fam-archive__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.25rem;
}
.fam-archive__pager span { font-size: .78rem; color: var(--muted); }
.fam-archive.is-loading [data-fam-grid] { opacity: .55; pointer-events: none; }
