/* Public /sites/:slug visual system.
   Reuses homepage tokens (body.home-page) and Marketplace footer rules.
   Scoped to body.site-detail-shell so /sites catalog and homepage stay unchanged. */

body.home-page.site-detail-shell {
  --container: 1240px;
}

body.site-detail-shell .header__user {
  color: #fff;
}

body.site-detail-shell .menu-toggle {
  border-color: rgba(255, 255, 255, 0.12);
}

body.site-detail-shell .public-page.site-detail-page {
  min-height: 0;
  padding: 8px 0 6px;
  background:
    radial-gradient(ellipse 42% 48% at 88% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 28% 34% at 72% 18%, rgba(34, 211, 238, 0.08) 0%, transparent 68%);
}

body.site-detail-shell .breadcrumbs {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--home-muted);
}

body.site-detail-shell .breadcrumbs a {
  color: #c5cbe0;
}

body.site-detail-shell .breadcrumbs a:hover,
body.site-detail-shell .breadcrumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
  outline: none;
}

body.site-detail-shell .dashboard-loading,
body.site-detail-shell .dashboard-empty {
  margin: 8px 0 0;
  padding: 28px 20px;
  background: rgba(18, 19, 28, 0.72);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  color: var(--home-muted);
}

body.site-detail-shell .site-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  min-width: 0;
}

body.site-detail-shell .site-cover {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #12131c;
  border: 1px solid var(--home-line);
  color: #f4f6fb;
  font-size: 20px;
}

body.site-detail-shell .site-cover__image {
  object-fit: contain;
  object-position: center;
  background: #0c0d14;
}

body.site-detail-shell .site-domain {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.03em;
}

body.site-detail-shell .site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border-radius: 0;
}

body.site-detail-shell .site-meta__item {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

body.site-detail-shell .site-meta dt {
  color: #9aa3b8;
}

body.site-detail-shell .site-meta dd {
  margin: 0;
  color: #f4f6fb;
  font-size: 12px;
}

body.site-detail-shell .site-meta__note {
  color: #8b93a7;
}

body.site-detail-shell .site-description {
  margin: 18px 0 0;
  max-width: 44rem;
  color: var(--home-muted);
}

body.site-detail-shell .site-placements {
  margin-top: 2px;
}

body.site-detail-shell .site-placements .public-section-title {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: #fff;
}

body.site-detail-shell .site-placements__lead {
  margin: 0 0 10px;
  max-width: 40rem;
  font-size: 14px;
  line-height: 1.35;
  color: var(--home-muted);
}

body.site-detail-shell .device-filter {
  margin: 0 0 10px;
}

body.site-detail-shell .device-filter__btn {
  background: #0c0d14;
  border-color: rgba(255, 255, 255, 0.12);
  color: #c5cbe0;
  box-shadow: none;
}

body.site-detail-shell .device-filter__btn:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.site-detail-shell .device-filter__btn.is-active {
  background: rgba(212, 243, 74, 0.12);
  border-color: var(--home-lime);
  color: var(--home-lime);
}

body.site-detail-shell .device-filter__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
}

body.site-detail-shell .listings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.site-detail-shell .listing-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #12131c;
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body.site-detail-shell .listing-card-wrap:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

body.site-detail-shell .listing-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.site-detail-shell .listing-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
}

body.site-detail-shell .listing-card__preview {
  height: 158px;
  flex-basis: 158px;
  background: #0c0d14;
}

body.site-detail-shell .listing-card__device--browser {
  background: #161821;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

body.site-detail-shell .listing-card__browser-chrome {
  background: rgba(7, 8, 13, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.site-detail-shell .listing-card__browser-dot {
  background: rgba(255, 255, 255, 0.22);
}

body.site-detail-shell .listing-card__save {
  background: rgba(12, 13, 20, 0.88);
  color: #e8ecf7;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

body.site-detail-shell .listing-card__save:focus-visible {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.28);
}

body.site-detail-shell .listing-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 5px;
  padding: 8px 12px 10px;
}

body.site-detail-shell .listing-card__title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.site-detail-shell .listing-card__badge,
body.site-detail-shell .listing-card__type {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5cbe0;
}

body.site-detail-shell .listing-card__price {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

body.site-detail-shell .listing-card__price-kicker {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 600;
  color: var(--home-muted);
}

body.site-detail-shell .listing-card__price-value,
body.site-detail-shell .listing-card__price-value .vb-price__canonical {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

body.site-detail-shell .listing-card__price-value .vb-price__approx {
  display: block;
  margin-top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--home-muted);
}

body.site-detail-shell .listing-card-wrap:has(.vb-price__approx) .listing-card__body {
  gap: 4px;
}

body.site-detail-shell .listing-card__price-unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-muted);
}

body.site-detail-shell .listing-card__price-context,
body.site-detail-shell .listing-card__meta {
  font-size: 12px;
  line-height: 1.35;
  color: #8b93a7;
}

body.site-detail-shell .listing-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--home-lime);
  color: #10120a;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(212, 243, 74, 0.16);
}

body.site-detail-shell .listing-card:hover .listing-card__cta,
body.site-detail-shell .listing-card:focus-visible .listing-card__cta {
  background: #e2ff6a;
}

body.site-detail-shell .listing-card__view-btn {
  margin: 0 12px 10px;
  padding: 6px 10px;
  min-height: 36px;
  background: transparent;
  color: #c5cbe0;
}

body.site-detail-shell .listing-card__view-btn:hover,
body.site-detail-shell .listing-card__view-btn:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.site-detail-shell .site-traffic {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--home-line);
}

body.site-detail-shell .site-traffic__kicker,
body.site-detail-shell .site-traffic__card-title {
  color: #fff;
}

body.site-detail-shell .site-traffic__muted,
body.site-detail-shell .site-traffic__note,
body.site-detail-shell .site-traffic__hint,
body.site-detail-shell .site-traffic__period {
  color: var(--home-muted);
}

body.site-detail-shell .site-traffic__metric-value {
  color: #fff;
}

body.site-detail-shell .site-traffic__card,
body.site-detail-shell .site-traffic__hero,
body.site-detail-shell .site-traffic__muted {
  background: rgba(18, 19, 28, 0.72);
  border: 1px solid var(--home-line);
}

body.site-detail-shell .site-traffic__kicker {
  color: var(--home-lime);
}

body.site-detail-shell .site-traffic__period,
body.site-detail-shell .site-traffic__meta dd,
body.site-detail-shell .site-traffic__bar-label,
body.site-detail-shell .site-traffic__path {
  color: #f4f6fb;
}

body.site-detail-shell .site-traffic__bar-track {
  background: rgba(255, 255, 255, 0.08);
}

body.site-detail-shell .site-traffic__bar-fill {
  background: var(--home-violet);
}

body.site-detail-shell .site-traffic__more {
  color: #c5cbe0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (min-width: 1100px) and (max-height: 800px) {
  body.site-detail-shell .listing-card__preview {
    height: 148px;
    flex-basis: 148px;
  }
}

@media (max-width: 1099px) {
  body.site-detail-shell .listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.site-detail-shell .public-page.site-detail-page {
    padding: 14px 0 36px;
  }

  body.site-detail-shell .nav {
    background: #0b0c14;
    border-bottom-color: var(--home-line);
  }

  body.site-detail-shell .nav__link {
    border-bottom-color: var(--home-line);
    color: #c5cbe0;
  }
}

@media (max-width: 720px) {
  body.site-detail-shell .listings-grid {
    grid-template-columns: 1fr;
  }

  body.site-detail-shell .listing-card__preview {
    height: 200px;
    flex-basis: 200px;
  }

  body.site-detail-shell .listing-card__cta {
    min-height: 44px;
  }
}
