/* Guest wall component. Self-contained: falls back to its own tokens so it renders
   correctly whether the host page defines --teal/--blue/--text or not. */
.gw-count {
  margin: 0 0 14px;
  color: var(--muted, rgba(255,255,255,.55));
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gw-state {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--line, rgba(255,255,255,.11));
  border-radius: 12px;
  background: var(--panel, rgba(255,255,255,.035));
  color: var(--muted, rgba(255,255,255,.55));
  font-size: 14px;
}
.gw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.gw-chip {
  padding: 7px 14px;
  border: 1px solid var(--line, rgba(255,255,255,.16));
  border-radius: 999px;
  background: transparent;
  color: var(--muted, rgba(255,255,255,.6));
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.gw-chip:hover { border-color: var(--teal, #34e1c8); color: var(--text, rgba(255,255,255,.9)); }
.gw-chip.is-active {
  border-color: var(--teal, #34e1c8);
  background: color-mix(in srgb, var(--teal, #34e1c8) 14%, transparent);
  color: var(--teal, #34e1c8);
}
.gw-chip:focus-visible { outline: 2px solid var(--teal, #34e1c8); outline-offset: 2px; }

.gw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gw-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  outline-offset: 3px;
}
.gw-card:focus-visible { outline: 2px solid var(--teal, #34e1c8); }
.gw-face {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line, rgba(255,255,255,.11));
}
.gw-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gw-card:hover .gw-face img,
.gw-card:focus-visible .gw-face img { transform: scale(1.06); }
.gw-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 10px;
  background: linear-gradient(to top, rgba(6,7,11,.92) 0%, rgba(6,7,11,.55) 42%, rgba(6,7,11,0) 78%);
  opacity: 0;
  transition: opacity .2s ease;
}
.gw-card:hover .gw-overlay,
.gw-card:focus-visible .gw-overlay { opacity: 1; }
.gw-name {
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gw-title {
  font-family: "Inter Tight", sans-serif;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255,255,255,.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gw-fb {
  background: linear-gradient(135deg, #171007, #07060a);
}
.gw-fb::after {
  content: "";
}

/* Touch devices have no hover, so the caption stays visible by default there. */
@media (hover: none) {
  .gw-overlay { opacity: 1; background: linear-gradient(to top, rgba(6,7,11,.88) 0%, rgba(6,7,11,.15) 70%, rgba(6,7,11,0) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .gw-face img, .gw-chip { transition: none !important; }
  .gw-card:hover .gw-face img, .gw-card:focus-visible .gw-face img { transform: none; }
}
