/* Prikola.net brand layer.
   Keep product identity separate from shared layout and components. */

:root {
  --font-sans: "Roboto Variable", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-main: var(--font-sans);
  --font-display: var(--font-sans);

  --brand-prikola: #f85338;
  --brand-prikola-hover: #df3f28;
  --brand-prikola-soft: #fff0ec;

  --accent-main: var(--brand-prikola);
  --accent-main-hover: var(--brand-prikola-hover);
  --accent-main-soft: var(--brand-prikola-soft);
  --accent-fire: #ff9f1c;
  --accent-fire-hover: #e88b08;
  --accent-fire-soft: #fff3df;
}

.theme-dark {
  --accent-main-soft: rgba(248, 83, 56, 0.17);
  --accent-fire-soft: rgba(255, 159, 28, 0.15);
}

.site-header__logo-image {
  width: auto;
  max-width: 180px;
  height: 40px;
  object-fit: contain;
}

.top-authors-card {
  display: grid;
  gap: 4px;
}

.top-author {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 24px 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.top-author:hover {
  background: var(--surface-2);
  color: var(--text);
}

.top-author:active {
  transform: scale(.99);
}

.top-author__position {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-main-soft);
  color: var(--accent-main);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.top-author__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
}

.top-author__body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.top-author__name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-author__count {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-author__arrow {
  width: 16px;
  height: 16px;
  color: var(--text-fade);
}

.top-authors__empty {
  margin: 0;
  padding: 10px 4px 4px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}
/* R10 integrations and tablet layout fixes. */

.site-ad {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--ui-card-radius);
}

.site-ad iframe,
.site-ad img,
.site-ad > div {
  max-width: 100%;
}

.site-ad--post-foot {
  margin-top: 15px;
}

.sidebar-ad {
  position: sticky;
  top: var(--sidebar-top);
}

.sidebar-ad .ads {
  position: static;
}

/* Mid-width portrait tablets: reserve enough space for the full logo. */
@media screen and (min-width: 1043px) and (max-width: 1290px) {
  .site-header__inner {
    grid-template-columns: minmax(180px, 1fr) minmax(300px, 520px) minmax(180px, 1fr);
  }

  .site-header__add-button {
    width: 44px;
    padding: 0;
  }

  .site-header__add-button span {
    display: none;
  }
}

/* Tablet landscape: left navigation becomes a drawer; content gains the right rail. */
@media screen and (orientation: landscape) and (min-width: 900px) and (max-width: 1290px) and (max-height: 900px) {
  .site-header__inner {
    width: calc(100% - 32px);
    max-width: 944px;
    padding: 0;
    display: grid;
    grid-template-columns: 212px minmax(260px, 1fr) 96px;
    gap: 12px;
  }

  .site-header__left {
    gap: 8px;
  }

  .site-header__burger {
    display: inline-flex;
  }

  .site-header__logo {
    position: static;
    transform: none;
  }

  .site-header__logo-image {
    height: 34px;
    max-width: 153px;
  }

  .site-header__search {
    display: flex;
    grid-column: 2;
  }

  .site-header__add-button {
    width: 44px;
    padding: 0;
    display: inline-flex;
  }

  .site-header__add-button span,
  .site-header__quick {
    display: none;
  }

  .cols {
    width: calc(100% - 32px);
    max-width: 944px;
    grid-template-columns: minmax(0, 640px) minmax(220px, 280px);
    gap: 24px;
    padding: 16px 0;
  }

  .col_main {
    min-width: 0;
  }

  .col_right {
    display: block !important;
  }

  .col_left {
    position: fixed;
    top: var(--header-h);
    left: 0;
    z-index: var(--z-drawer);
    width: 320px;
    max-width: 88vw;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    transform: translate3d(-102%, 0, 0);
    will-change: transform;
    transition: transform var(--motion-normal) var(--ease-main);
  }

  .col_left.open {
    transform: translate3d(0, 0, 0);
  }

  .sidebar {
    max-height: none;
    margin: 0;
    padding-bottom: 18px;
    row-gap: 14px;
    overflow: visible;
  }

  .sidebar-mobile-tools {
    display: grid;
    gap: 9px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  #menuOverlay {
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
  }

  .col_right_bg,
  .col_right_bg_comm {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .col_left {
    transition: none !important;
  }
}
/* R11: tablet drawer, monthly rankings, live stream and feed tags. */

/* Existing DLE tag links in short-story cards. Text commas are hidden by the
   zero font size while the real links and their URLs stay untouched. */
.feed-card__topic-tags {
  gap: 7px;
  margin: 2px var(--feed-card-pad, 18px) 16px;
  font-size: 0;
}

.feed-card__topic-tags a {
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.feed-card__topic-tags a::before {
  content: "#";
  margin-right: 2px;
  color: var(--accent-main);
  font-weight: 700;
}

.feed-card__topic-tags a:hover,
.feed-card__topic-tags a:focus-visible,
.feed-card__topic-tags a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent-main) 48%, var(--border));
  background: var(--accent-main-soft);
  color: var(--accent-main);
}

.feed-card--anecdote .feed-card__topic-tags {
  margin-top: 12px;
}

/* Rankings: familiar numbered circles with a clear but restrained podium. */
.top-author__position {
  position: relative;
  isolation: isolate;
  width: 26px;
  height: 26px;
  border: 1px solid #dde1e7;
  background: #f0f2f5;
  color: #68707c;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .72);
}

.top-author:nth-of-type(1) .top-author__position {
  border-color: #e5b840;
  background: #f6cf68;
  color: #6d4a00;
  box-shadow: inset 0 0 0 3px rgba(255, 248, 214, .76), 0 3px 8px rgba(205, 153, 27, .18);
}

.top-author:nth-of-type(2) .top-author__position {
  border-color: #b9c0ca;
  background: #dce1e8;
  color: #4f5865;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .76);
}

.top-author:nth-of-type(3) .top-author__position {
  border-color: #bd7f50;
  background: #dfa678;
  color: #633112;
  box-shadow: inset 0 0 0 3px rgba(255, 237, 223, .72);
}

.theme-dark .top-author__position {
  border-color: #4a4f59;
  background: #343840;
  color: #c3c8d0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .035);
}

.theme-dark .top-author:nth-of-type(1) .top-author__position {
  border-color: #c9992d;
  background: #dcb64f;
  color: #382600;
  box-shadow: inset 0 0 0 3px rgba(255, 244, 191, .3);
}

.theme-dark .top-author:nth-of-type(2) .top-author__position {
  border-color: #8e96a2;
  background: #b6bdc7;
  color: #242a32;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .24);
}

.theme-dark .top-author:nth-of-type(3) .top-author__position {
  border-color: #ad6e43;
  background: #c98a5d;
  color: #32190b;
  box-shadow: inset 0 0 0 3px rgba(255, 225, 204, .2);
}

/* Live comments: one continuous stream instead of nested full-size cards. */
.col_right_bg_comm {
  padding: 14px;
  overflow: hidden;
}

.col_right_bg_comm .col_right_bg_title {
  margin: 0 2px 8px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
}

.col_right_bg_comm .col_right_bg_title > span:first-child {
  width: 9px;
  height: 9px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-main);
  color: transparent;
  box-shadow: 0 0 0 4px var(--accent-main-soft);
  animation: prikola-live-pulse 2.4s ease-in-out infinite;
}

@keyframes prikola-live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-main-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

.col_right_bg_comm .col_right_bg_title > span:last-child {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.col_right_bg_comm .comment-card--live {
  margin: 0;
}

.col_right_bg_comm .comment-card--live + .comment-card--live {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.col_right_bg_comm .comment-card--live > .comment-card__inner {
  padding: 12px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.col_right_bg_comm .comment-card--live .comment-card__main {
  min-width: 0;
  align-items: center;
}

.col_right_bg_comm .comment-card--live .comment-card__avatar,
.col_right_bg_comm .comment-card--live .comment-card__avatar-wrap {
  width: 30px;
  height: 30px;
}

.col_right_bg_comm .comment-card--live .comment-card__author,
.col_right_bg_comm .comment-card--live .comment-card__author a {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.col_right_bg_comm .comment-card--live .comment-card__time {
  color: var(--text-fade);
  font-size: 10px;
}

.col_right_bg_comm .comment-card--live .comment-card__content {
  margin: 7px 0 0 40px;
}

.col_right_bg_comm .comment-card--live .comment-card__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.col_right_bg_comm .comment-card--live .comment-card__footer {
  margin: 8px 0 0 40px;
}

.col_right_bg_comm .comment-card--live .comment-card__context {
  margin: 0;
}

.col_right_bg_comm .comment-card--live .comment-card__news-link {
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
}

.col_right_bg_comm .comment-card--live .comment-card__context-label {
  display: none;
}

.col_right_bg_comm .comment-card--live .comment-card__news-title {
  display: block;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col_right_bg_comm .comment-card--live .comment-card__context-arrow-link {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

/* The landscape drawer exists up to 1290px. Repeat the complete child styling
   here so it no longer disappears above the older 1042px mobile breakpoint. */
@media screen and (orientation: landscape) and (min-width: 900px) and (max-width: 1290px) and (max-height: 900px) {
  .sidebar-mobile-tools {
    width: 100%;
    box-sizing: border-box;
  }

  .sidebar-mobile-search {
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: var(--surface-2);
  }

  .sidebar-mobile-search:focus-within {
    border-color: color-mix(in srgb, var(--accent-main) 28%, transparent);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-main) 9%, transparent);
  }

  .sidebar-mobile-search .i-svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    color: var(--text-soft);
  }

  .sidebar-mobile-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    box-shadow: none;
  }

  .sidebar-mobile-search input:focus,
  .sidebar-mobile-search input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .sidebar-mobile-search input::placeholder {
    color: var(--text-fade);
    opacity: 1;
  }

  .sidebar-mobile-add {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    background: var(--text);
    color: var(--surface);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }

  .sidebar-mobile-add:hover,
  .sidebar-mobile-add:focus-visible {
    color: var(--surface);
    text-decoration: none;
  }

  .sidebar-mobile-add .i-svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}

@media screen and (max-width: 640px) {
  .feed-card__topic-tags {
    margin-right: 14px;
    margin-left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .col_right_bg_comm .col_right_bg_title > span:first-child {
    animation: none;
  }
}
/* R13: compact flat live-comment rail for the Prikola.net sidebar. */

.col_right_bg_comm.live-discussion {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--ui-card-radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.live-discussion__head {
  min-height: 48px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}

.live-discussion__title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-discussion__status {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.live-discussion__title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -.018em;
}

.live-discussion__all {
  min-width: 0;
  min-height: 30px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: transparent;
  color: var(--text-fade);
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  transition: color var(--motion-fast) ease;
}

.live-discussion__all:hover,
.live-discussion__all:focus-visible {
  color: var(--text);
}

.live-discussion__all .i-svg {
  width: 13px;
  height: 13px;
}

.live-discussion__feed {
  padding: 0 15px;
}

.live-comment {
  min-width: 0;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.live-comment + .live-comment {
  border-top: 1px solid var(--border);
}

.live-comment__avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--surface-2);
}

.live-comment__body {
  min-width: 0;
}

.live-comment__meta {
  min-width: 0;
  min-height: 17px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
}

.live-comment__author,
.live-comment__author a {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment__author a:hover,
.live-comment__author a:focus-visible {
  color: var(--accent-main);
}

.live-comment__time {
  flex: 0 0 auto;
  color: var(--text-fade);
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
}

.live-comment__text {
  margin-top: 3px;
  overflow: hidden;
  display: -webkit-box;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-comment__text > :first-child { margin-top: 0; }
.live-comment__text > :last-child { margin-bottom: 0; }

.live-comment__text img,
.live-comment__text video,
.live-comment__text iframe,
.live-comment__text .comments-image-gallery {
  display: none !important;
}

.live-comment__post {
  min-width: 0;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-fade);
  font-size: 10px;
  line-height: 1.3;
  transition: color var(--motion-fast) ease;
}

.live-comment__post:hover,
.live-comment__post:focus-visible {
  color: var(--text);
}

.live-comment__post-label {
  flex: 0 0 auto;
  color: inherit;
}

.live-comment__post-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment__post-title > span {
  overflow: hidden;
  display: block;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-comment__post-arrow {
  width: 11px;
  height: 11px;
  margin-left: auto;
  flex: 0 0 11px;
  color: inherit;
}

.theme-dark .live-discussion__status {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent);
}

@media (max-width: 1042px) {
  .live-discussion__feed {
    padding-inline: 14px;
  }
}
/* 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;
  }
}
/* R15: small spacing and hierarchy fixes requested after the R14 review. */

/* Live stream: smaller identity row, with the related title matching comment text. */
.live-comment__meta {
  min-height: 24px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
}

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

.live-comment__post {
  font-size: 11px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.live-comment__post-label {
  margin-right: 0;
}

/* When a poster is followed by no excerpt, keep tags off the image edge. */
.short_story .feed-card__copy.is-empty + .story-tag-links {
  padding-top: 12px;
}

/* DLE renders /?do=lastcomments through comments.tpl, not the sidebar stream. */
.page-lastcomments .comment-card--activity,
.page-lastcomments .comment-card--stream {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}
/* R16: strict live-title typography and the actual poster-to-tags structure. */

.live-discussion .live-comment__post {
  max-height: 2.9em;
  display: -webkit-box !important;
  overflow: hidden !important;
  color: var(--text-fade);
  font-size: 11px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.live-discussion .live-comment__post-label,
.live-discussion .live-comment__post-title,
.live-discussion .live-comment__post-title > span,
.live-discussion .live-comment__post-title a,
.live-discussion .live-comment__post-title * {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
  overflow: visible !important;
  color: inherit !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

/* libs.js removes an empty copy node, so the final poster and tags are siblings. */
.short_story:has(.story-primary-media .feed-card__media):not(:has(.feed-card__copy)) .story-tag-links {
  padding-top: 12px;
}
/* R17: keep “К посту: заголовок” in one two-line text flow. */

.live-discussion .live-comment__post {
  display: block !important;
  max-height: none;
  overflow: visible !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.live-discussion .live-comment__post-flow {
  display: -webkit-box !important;
  max-height: 2.9em;
  overflow: hidden !important;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: normal !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.live-discussion .live-comment__post-flow .live-comment__post-label,
.live-discussion .live-comment__post-flow .live-comment__post-title,
.live-discussion .live-comment__post-flow .live-comment__post-title > span {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
  overflow: visible !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
/* R18: only the news title is a link; “К посту:” remains plain text. */

.live-discussion .live-comment__post:hover,
.live-discussion .live-comment__post:focus-visible {
  color: var(--text-fade);
}

.live-discussion .live-comment__post-link,
.live-discussion .live-comment__post-link > span {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
}

.live-discussion .live-comment__post-link:hover,
.live-discussion .live-comment__post-link:focus-visible {
  color: var(--text) !important;
}
/* R19: stronger comment contrast and the system orange for the post link. */

.live-discussion .live-comment__text {
  color: var(--text);
}

.live-discussion .live-comment__post,
.live-discussion .live-comment__post-label {
  color: var(--text-fade) !important;
}

.live-discussion .live-comment__post-title,
.live-discussion .live-comment__post-link,
.live-discussion .live-comment__post-link > span {
  color: var(--accent-fire) !important;
}

.live-discussion .live-comment__post-link:hover,
.live-discussion .live-comment__post-link:focus-visible {
  color: var(--accent-fire-hover) !important;
}
/* R21: keep only the clickable post title orange in the live-comments block. */

.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link,
.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link:link,
.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link:visited,
.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link > span {
  color: var(--accent-fire) !important;
}

.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link:hover,
.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link:focus-visible,
.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link:hover > span,
.live-discussion .live-comment__post-flow .live-comment__post-title .live-comment__post-link:focus-visible > span {
  color: var(--accent-fire-hover) !important;
}
/* R23: DLE generates the visible news-title anchor from {news_title}. */

.live-discussion .live-comment__post-flow .live-comment__post-title > a,
.live-discussion .live-comment__post-flow .live-comment__post-title > a:link,
.live-discussion .live-comment__post-flow .live-comment__post-title > a:visited {
  color: var(--accent-fire) !important;
}

.live-discussion .live-comment__post-flow .live-comment__post-title > a:hover,
.live-discussion .live-comment__post-flow .live-comment__post-title > a:focus-visible {
  color: var(--accent-fire-hover) !important;
}

