/* Celebrity & Glamour — namespaced (celeb-*) to avoid news CSS conflicts */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.celeb-breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.85rem; color: var(--muted);
  margin: 0 0 1.25rem;
}
.celeb-breadcrumbs a { color: inherit; text-decoration: none; }
.celeb-breadcrumbs a:hover { color: var(--accent); }

.celeb-dir__intro { margin-bottom: 1.5rem; }
.celeb-dir__tabs {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 0.25rem 0 1rem;
}
.celeb-dir__tab {
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 0.45rem 0.85rem; text-decoration: none;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface);
}
.celeb-dir__tab:hover { color: var(--text); border-color: var(--accent, #0d7377); }
.celeb-dir__tab.is-active {
  color: var(--text); border-color: var(--accent, #0d7377);
  background: color-mix(in srgb, var(--accent, #0d7377) 12%, var(--surface));
}
.celeb-dir__filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; margin: 0.5rem 0 1.75rem;
}
.celeb-dir__search input,
.celeb-dir__category select {
  font: inherit; padding: 0.65rem 0.85rem;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); min-width: 12rem;
}

.celeb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .celeb-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.35rem; }
}

.celeb-card {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.celeb-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.celeb-card__link { display: block; color: inherit; text-decoration: none; }
.celeb-card__media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--surface-2, #e8e4dc), var(--border));
  overflow: hidden;
}
.celeb-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.celeb-card__media--placeholder {
  display: grid; place-items: center;
}
.celeb-card__initial {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 3rem; opacity: 0.45;
}
.celeb-card__body { padding: 0.85rem 0.95rem 1.05rem; }
.celeb-card__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.2rem; margin: 0 0 0.25rem; line-height: 1.2;
}
.celeb-card__meta {
  margin: 0; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent, #0d7377);
}
.celeb-card__bio {
  margin: 0.45rem 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.4;
}

.celeb-pagination {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: center;
  margin: 2rem 0 1rem;
}
.celeb-pagination__status { color: var(--muted); font-size: 0.9rem; }

/* Rewarded unlock — mobile-first, no age modal */
.celeb-unlock {
  max-width: 28rem;
  margin: 0 auto 2.5rem;
  padding: 0 0.25rem;
}
.celeb-unlock__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.celeb-unlock__media {
  aspect-ratio: 4 / 5;
  max-height: 42vh;
  background: var(--surface-2, #e8e4dc);
  overflow: hidden;
}
.celeb-unlock__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.celeb-unlock__body { padding: 1.25rem 1.15rem 1.35rem; }
.celeb-unlock__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  margin: 0.2rem 0 0.55rem; line-height: 1.15;
}
.celeb-unlock__lead {
  margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.45;
}
.celeb-unlock__status {
  margin: 0 0 0.85rem; font-size: 0.88rem; color: var(--muted);
  padding: 0.55rem 0.65rem; border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #0d7377) 10%, transparent);
}
.celeb-unlock__status.is-error {
  color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}
.celeb-unlock__actions {
  display: flex; flex-direction: column; gap: 0.55rem;
}
.celeb-unlock__cta {
  width: 100%; min-height: 48px; font-size: 1rem;
}
.celeb-unlock__actions .btn--ghost {
  width: 100%; min-height: 44px; text-align: center;
}
@media (min-width: 520px) {
  .celeb-unlock__actions { flex-direction: row; flex-wrap: wrap; }
  .celeb-unlock__cta { width: auto; flex: 1; }
  .celeb-unlock__actions .btn--ghost { width: auto; }
}

.celeb-profile__header {
  display: grid; gap: 1.5rem; margin-bottom: 1.75rem;
}
@media (min-width: 800px) {
  .celeb-profile__header {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
  }
}
.celeb-profile__name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.2rem 0 0.5rem; line-height: 1.1;
}
.celeb-profile__standfirst { font-size: 1.05rem; color: var(--muted); max-width: 40rem; }
.celeb-profile__figure {
  margin: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--surface-2, #e8e4dc);
}
.celeb-profile__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.celeb-profile__bio { max-width: 42rem; margin: 0 0 2rem; }
.celeb-profile__bio h2 { font-family: "Instrument Serif", Georgia, serif; }
.celeb-profile__bio p { line-height: 1.65; color: var(--text); }

.celeb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}
@media (min-width: 700px) {
  .celeb-gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.1rem; }
}

.celeb-photo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.celeb-photo__link { display: block; aspect-ratio: 3 / 4; background: var(--surface-2, #e8e4dc); }
.celeb-photo__link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.celeb-photo__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.78rem; color: var(--muted);
}
.celeb-photo__meta a { color: var(--accent, #0d7377); }

/* Legacy embed class kept for admin previews */
.celeb-masonry { column-count: 1; column-gap: 1.1rem; }
.celeb-embed {
  break-inside: avoid; margin: 0 0 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.celeb-embed__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.75rem; font-size: 0.8rem; color: var(--muted);
}

.celeb-profile__news {
  margin: 2.75rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border, rgba(18, 21, 26, 0.1));
}
.celeb-profile__news .section-heading,
.celeb-dir__news .section-heading {
  margin-bottom: 1.25rem;
}
.celeb-profile__news .article-grid--cards,
.celeb-dir__news .article-grid--cards {
  margin-top: 0.5rem;
}
.celeb-dir__news {
  margin: 3rem 0 1.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border, rgba(18, 21, 26, 0.1));
}
.celeb-profile__disclaimer {
  font-size: 0.8rem; color: var(--muted); max-width: 42rem; margin: 2rem 0;
}
