/* Guestbook page — form + site-wide comment feed */

.lc-guestbook-page {
  padding-bottom: var(--lc-section-gap);
}

.lc-guestbook-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Wrapper is a plain pass-through — the distinct card is the inner
   .lc-comments-tech__respond (shared with article comments). */
.lc-guestbook-form-wrap {
  scroll-margin-top: calc(var(--lc-navbar-h, 72px) + 1.5rem);
}

.lc-guestbook-form-wrap .lc-comments-tech {
  margin: 0;
  padding: 0;
  border: none;
}

/* Feed column */
.lc-guestbook-feed {
  min-width: 0;
}

.lc-guestbook-feed__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lc-guestbook-feed__list .lc-comment-feed__item {
  margin: 0;
}

.lc-comment-thread__children .lc-comment-feed__item {
  margin: 0;
}

.lc-comment-feed__item--depth-1 .lc-comment-tech__avatar-wrap {
  width: 3.5rem;
  height: 3.5rem;
  line-height: 0;
}

.lc-avatar--40 {
  width: 2.5rem;
  height: 2.5rem;
}

.lc-avatar--40 .lc-avatar__fallback {
  font-size: 0.875rem;
}

.lc-comment-feed__item.is-highlighted .lc-comment-tech__body,
.lc-comment-thread.is-highlighted > .lc-comment-feed__item .lc-comment-tech__body,
.lc-comment-thread.is-highlighted .lc-comment-thread__children .lc-comment-feed__item.is-highlighted .lc-comment-tech__body,
.lc-comment-thread__children .lc-comment-feed__item.is-highlighted .lc-comment-tech__body {
  outline: 3px solid var(--lc-cyber-lime);
  outline-offset: 2px;
}

.lc-guestbook-feed .lc-pagination {
  margin-top: 1.5rem;
}

/* Feed item — source row */
.lc-comment-feed__source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.lc-comment-feed__type {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  border: var(--lc-border-brutal);
  font-family: var(--lc-font-mono);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--lc-hard-shadow-sm);
}

.lc-comment-feed__type--post {
  background: var(--lc-electric-purple);
  color: #fff;
}

.lc-comment-feed__type--page {
  background: var(--lc-spray-can-blue);
  color: #fff;
}

.lc-comment-feed__type--guestbook {
  background: var(--lc-neon-pink);
  color: #fff;
}

.lc-comment-feed__type--unknown {
  background: var(--lc-surface-container-high);
  color: var(--lc-on-surface-variant);
}

.lc-comment-feed__source-link {
  min-width: 0;
  font-family: var(--lc-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--lc-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-comment-feed__source-link:hover,
.lc-comment-feed__source-link:focus-visible {
  color: var(--lc-electric-purple);
  text-decoration: underline;
}

.lc-comment-feed__source-missing {
  font-family: var(--lc-font-mono);
  font-size: 0.75rem;
  color: var(--lc-on-surface-variant);
}

html[data-lc-color-scheme="dark"] .lc-comment-feed__type--post,
html[data-lc-color-scheme="dark"] .lc-comment-feed__type--page,
html[data-lc-color-scheme="dark"] .lc-comment-feed__type--guestbook {
  color: #fff;
}

@media (max-width: 767px) {
  .lc-comment-feed__source-link {
    white-space: normal;
  }
}
