/* R14: original Prikola.net surface rhythm, shared across the current layout. */

:root {
  --prikola-page-bg: #f2f2f2;
  --prikola-card-shadow: 0 2px 4px rgb(56 50 48 / 5%), 0 1px 0 rgb(56 50 48 / 8%);
  --prikola-feed-radius: 14px;
  --prikola-sidebar-radius: 10px;
}

.theme-dark {
  --prikola-page-bg: #161617;
  --prikola-card-shadow: 0 2px 5px rgb(0 0 0 / 22%), 0 1px 0 rgb(255 255 255 / 4%);
}

body {
  background-color: var(--prikola-page-bg);
}

/* The original site used shadow and contrast, not a conspicuous card outline. */
.short_story.feed-card {
  border: 0;
  border-radius: var(--prikola-feed-radius) !important;
  background: var(--surface);
  box-shadow: var(--prikola-card-shadow);
}

.sidebar-nav-panel,
.col_right_bg,
.col_right_bg_comm.live-discussion {
  border: 0;
  border-radius: var(--prikola-sidebar-radius) !important;
  background: var(--surface);
  box-shadow: var(--prikola-card-shadow);
}

/* All three homepage widgets share one heading scale and weight. */
.col_right_bg_title,
.col_right_bg_title span,
.live-discussion__title {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.012em;
}

.col_right_bg_title {
  min-height: 32px;
  margin-bottom: 8px;
}

.live-discussion__head {
  min-height: 48px;
  padding-inline: 15px;
}

/* Short-story tags intentionally use the full-story component unchanged. */
.short_story .story-tag-links {
  padding-top: 0;
}

/* Three-row live item: identity, message, related post. */
.live-comment {
  padding: 12px 0;
  display: block;
}

.live-comment__meta {
  min-height: 30px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.live-comment__avatar {
  width: 30px;
  height: 30px;
}

.live-comment__author,
.live-comment__author a {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;
}

.live-comment__time {
  font-size: 9px;
}

.live-comment__text {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.live-comment__post {
  margin-top: 6px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-fade);
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-comment__post-label,
.live-comment__post-title,
.live-comment__post-title > span {
  display: inline;
  overflow: visible;
  white-space: normal;
}

.live-comment__post-label {
  margin-right: 3px;
  color: var(--text-fade);
  font-weight: 500;
}

.live-comment__post-title {
  color: var(--text-soft);
  font-weight: 600;
}

@media (max-width: 640px) {
  .short_story.feed-card {
    border-radius: 0 !important;
    box-shadow: none;
  }
}
