/* Стилі сторінок спільноти: дошки, картки тем, відповіді, форма допису, переглядач. */
/* Community: boards, thread lists, a thread with nested replies, the composer, image grids, the
   lightbox. The three-column frame is feed.css (.feed-layout, .feed-nav, .feed-side); everything here is community's own.
   Same rules as the rest of the site: hairlines and surface colour, square records, 10px buttons, terracotta for the
   primary action only, no shadow except on floating things (lightbox controls). */

/* ---------- Frame ---------- */

.community .feed-side { display: grid; }
.community-main { gap: var(--s-5); }

/* Boards: a list on the left from 72em; folded above the content before that. */
.community-boards { display: grid; gap: var(--s-2); }
.community-boards__title { margin: 0 0 var(--s-1); padding-inline: var(--s-3); color: var(--muted); }
.community-boards__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.community-boards__more { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }

.community-boards__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: var(--control-h);
  padding-inline: var(--s-3);
  border-left: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.community-boards__link[aria-current="page"] { color: var(--text); border-left-color: var(--text); background: var(--surface); }
@media (hover: hover) { .community-boards__link:hover { color: var(--text); } }
.community-boards__new { width: 100%; margin-top: var(--s-4); }

.community-boards-fold > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.community-boards-fold > summary::-webkit-details-marker { display: none; }
.community-boards-fold[open] > summary .icon { transform: rotate(180deg); }
.community-boards-fold .community-boards { margin-top: var(--s-3); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); }

@media (min-width: 72em) {
  .community-boards-fold { display: none; }
}

/* ---------- Page head inside the middle column ---------- */

.community-head {
  display: grid;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.community-head > div > * { margin: 0; }
.community-head > div { display: grid; gap: var(--s-2); min-width: 0; }
.community-head h1 { font-size: var(--fs-4); overflow-wrap: anywhere; }
.community-head .lede { color: var(--muted); max-width: 52ch; }
.community-head__new { justify-self: start; }

@media (min-width: 48em) {
  .community-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

.community-crumbs { margin: 0; color: var(--muted); }
.community-crumbs a { color: inherit; }

/* ---------- Sort tabs: sticky on phones, like the feed tabs ---------- */

.community-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* Labels never break inside a word ("Recommen/ded" at 360px): each tab is at least as wide as its label, they share
   the rest of the row, and a row too long for the screen (long languages) scrolls sideways. */
.community-tabs { overflow-x: auto; scrollbar-width: none; }
.community-tabs::-webkit-scrollbar { display: none; }
.community-tabs__list { display: flex; margin: 0; padding: 0; list-style: none; }
.community-tabs__list li { flex: 1 0 auto; }

.community-tabs__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding-inline: var(--s-2);
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.community-tabs__link[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
@media (hover: hover) { .community-tabs__link:hover { color: var(--text); } }

@media (min-width: 48em) {
  .community-tabs { position: static; padding-top: 0; }
  .community-tabs__list li { flex: 0 0 auto; }
  .community-tabs__link { padding-inline: var(--s-4); }
  .community-tabs__list li:first-child .community-tabs__link { padding-left: 0; }
}

/* ---------- Search and period ---------- */

.community-tools { display: grid; gap: var(--s-3); }
.community-tools > * { margin: 0; }
.community-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); }

.community-window { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: 0; font-size: var(--fs--1); }

.community-window a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs--2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  text-decoration: none;
}

.community-window a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 0.35em; }
@media (pointer: fine) { .community-window a { min-height: 2rem; } }

/* ---------- Thread cards ---------- */

.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }

.thread-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: none;
}

.thread-card:focus-visible { outline-offset: 2px; }
.thread-card--pinned { border-left: 3px solid var(--text); }
@media (hover: hover) { .thread-card:hover { border-color: var(--line-strong); } }

.thread-card__body { display: grid; gap: var(--s-1); min-width: 0; align-content: start; }
.thread-card__body > * { margin: 0; }
.thread-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); color: var(--muted); }
.thread-card__meta a { color: inherit; text-decoration: none; }
.thread-card__meta a:hover { color: var(--text); text-decoration: underline; }

.thread-card__title { font-size: var(--fs-1); line-height: 1.3; overflow-wrap: anywhere; }
.thread-card__title a { color: inherit; text-decoration: none; }
.thread-card__title a:hover { text-decoration: underline; }

.thread-card__excerpt {
  color: var(--muted);
  font-size: var(--fs--1);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thread-card__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-2) !important;
  font-size: var(--fs--1);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.thread-card__by a { color: var(--text); }
.thread-card__replies { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--muted) !important; text-decoration: none; }
.thread-card__replies .icon { width: var(--icon-s); height: var(--icon-s); }

/* A small cover when the thread has images: same shape whatever the picture (cover crop), sized by the grid. */
.thread-card__thumb {
  position: relative;
  grid-column: 2;
  display: block;
  width: 100%;
  max-width: 14rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.thread-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.thread-card__more {
  position: absolute;
  right: var(--s-1);
  bottom: var(--s-1);
  padding: 0 var(--s-1);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs--2);
}

@media (min-width: 40em) {
  .thread-card:has(.thread-card__thumb) { grid-template-columns: auto minmax(0, 1fr) 9rem; }
  .thread-card__thumb { grid-column: 3; align-self: start; }
}

.thread-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0 0.4em;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs--2);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  white-space: nowrap;
}

.thread-chip .icon { width: 1.1em; height: 1.1em; } /* follows the chip's text */

/* ---------- Upvote ---------- */

.vote { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; min-width: 2.75rem; }
.thread-post__actions .vote,
.reply__actions .vote { flex-direction: row; gap: var(--s-1); min-width: 0; }

.vote__button {
  display: inline-grid;
  place-items: center;
  width: var(--control-h);
  height: var(--control-h);
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: none;
}

.vote__button .icon { width: var(--icon-m); height: var(--icon-m); }
.vote__button[aria-pressed="true"] { color: var(--paper); background: var(--text); border-color: var(--text); }
.vote__button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vote__button:disabled { cursor: progress; }
@media (hover: hover) { .vote__button:hover { color: var(--text); border-color: var(--text); } .vote__button[aria-pressed="true"]:hover { color: var(--paper); } }

.vote__count { min-width: 2ch; font-family: var(--font-mono); font-size: var(--fs--1); font-variant-numeric: tabular-nums; text-align: center; }

.vote--static { flex-direction: column; color: var(--muted); }
.vote--static > .icon { width: var(--icon-m); height: var(--icon-m); margin-block: var(--s-3) 0; }
.thread-post__actions .vote--static,
.reply__actions .vote--static { flex-direction: row; align-items: center; min-height: var(--control-h); }
.thread-post__actions .vote--static > .icon,
.reply__actions .vote--static > .icon { margin: 0; }

/* The vote tick: the arrow jumps once when the vote turns on (community.js adds .is-ticked). */
@media (prefers-reduced-motion: no-preference) {
  .vote__button.is-ticked .icon { animation: vote-tick 320ms var(--ease-press); }
}

@keyframes vote-tick {
  0% { transform: none; }
  40% { transform: translateY(-4px) scale(1.12); }
  100% { transform: none; }
}

/* ---------- Thread page ---------- */

.thread-post { display: grid; }
.thread-post__head { display: grid; gap: var(--s-2); padding: var(--s-5) var(--s-5) 0; }
.thread-post__head > * { margin: 0; }
.thread-post__by { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--fs--1); overflow-wrap: anywhere; }
.thread-post__by a { color: var(--text); }
.thread-post__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.thread-post__chips:empty { display: none; }
.thread-post__title { font-size: var(--fs-3); line-height: 1.2; overflow-wrap: anywhere; }
.thread-post__body { display: grid; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); min-width: 0; overflow-wrap: anywhere; }

.thread-post__actions,
.reply__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-2);
}

.thread-post__actions { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); }
.thread-post__actions > .btn .icon, .reply__action .icon { width: var(--icon-s); height: var(--icon-s); }

@media (min-width: 48em) {
  .thread-post__title { font-size: var(--fs-4); }
}

.community-facts { margin: 0; padding: 0 var(--s-5) var(--s-5); display: grid; gap: var(--s-3); }
/* Label beside its value when the column is wide enough, above it in the narrow side column (values like
   "Off-topic" or "Nov. 9, 2026" used to break word by word). */
.community-facts > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: var(--s-1) var(--s-2); }
.community-facts dt { color: var(--muted); font-family: var(--font-mono); font-size: var(--fs--2); letter-spacing: var(--track-label); text-transform: uppercase; }
.community-facts dd { margin: 0; overflow-wrap: break-word; }

.community-rules-list { margin: 0; padding: 0 var(--s-5) var(--s-4) calc(var(--s-5) + 1.2em); display: grid; gap: var(--s-2); font-size: var(--fs--1); }

/* ---------- Replies: nested up to three levels, a hairline shows the branch ---------- */

.community-replies { display: grid; gap: var(--s-4); }
.community-replies__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.community-replies__title { margin: 0; font-size: var(--fs-2); }
.community-replies__none { margin: 0; }

.replies { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }

.replies--nested {
  margin: var(--s-3) 0 0 var(--s-3);
  padding-left: var(--s-4);
  border-left: 1px solid var(--line-strong);
}

@media (min-width: 48em) {
  .replies--nested { margin-left: var(--s-5); padding-left: var(--s-5); }
}

.reply { min-width: 0; scroll-margin-top: var(--s-7); }
.reply:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.reply__card {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.reply:target > .reply__card { border-color: var(--text); box-shadow: inset 3px 0 0 var(--text); }
.reply--stub > .reply__card { padding-block: var(--s-3); background: transparent; border-style: dashed; }
.reply__stub { margin: 0; color: var(--muted); font-family: var(--font-mono); font-size: var(--fs--2); letter-spacing: var(--track-label); text-transform: uppercase; }

.reply__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); font-size: var(--fs--1); }
.reply__by { margin: 0; overflow-wrap: anywhere; }
.reply__time { text-decoration: none; }
.reply__time:hover { text-decoration: underline; }
.reply__text { overflow-wrap: anywhere; }

/* Collapse a branch (community.js shows the button; without JS everything is open). */
.reply__collapse {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: 2.25rem;
  padding: 0 var(--s-2);
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs--1);
  cursor: pointer;
}

.reply__collapse .icon { width: var(--icon-s); height: var(--icon-s); transition: transform var(--t-base) var(--ease-out); }
.reply__collapse[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.reply__collapse:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .reply__collapse:hover { color: var(--text); } }
@media (pointer: coarse) { .reply__collapse { min-height: var(--control-h); } }

@media (prefers-reduced-motion: no-preference) {
  .replies--nested.is-opening { animation: branch-open 240ms var(--ease-out); }
}

@keyframes branch-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Image grids: 1 to 4 tiles, one shape per count, no layout shift ---------- */

.media-grid { display: grid; gap: 4px; min-width: 0; }
.media-grid--2 { grid-template-columns: 1fr 1fr; }
.media-grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.media-grid--4 { grid-template-columns: 1fr 1fr; }

.media-grid__tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.media-grid__tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-grid__tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* One image: shown whole up to a sensible height; very tall ones are cropped from the middle, tiny ones keep
   their own size instead of being blown up. */
.media-grid--1 .media-grid__tile { justify-self: start; max-width: 100%; }
.media-grid--1 .media-grid__tile img { width: auto; max-width: 100%; height: auto; max-height: 30rem; object-fit: contain; }
.media-grid--1 .media-grid__tile--tall img { max-height: 26rem; }
.media-grid--1 .media-grid__tile--small img { max-width: min(100%, 20rem); }
.media-grid--2 .media-grid__tile,
.media-grid--4 .media-grid__tile { aspect-ratio: 1 / 1; }
.media-grid--3 .media-grid__tile:first-child { grid-row: 1 / span 2; }

@media (prefers-reduced-motion: no-preference) {
  .media-grid__tile img { transition: transform 500ms var(--ease-out); }
}

@media (hover: hover) {
  .media-grid--2 .media-grid__tile:hover img,
  .media-grid--3 .media-grid__tile:hover img,
  .media-grid--4 .media-grid__tile:hover img { transform: scale(1.03); }
}

/* ---------- Composer ---------- */

.composer-form { display: grid; gap: var(--s-4); }
.community-reply-box.is-inline { margin: var(--s-3) 0 0 var(--s-3); }
.community-reply-box.is-inline .panel { padding: var(--s-4); }
.composer-form > * { margin: 0; }
.composer-form__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.composer-form__title { margin: 0; font-size: var(--fs-1); }
.composer-form__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.composer { display: grid; gap: var(--s-4); min-width: 0; }

.composer__box {
  position: relative;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  transition: none;
}

/* One slim bar; the original textarea retains multiline editing and scrolling. */
.composer__bar {
  display: grid;
  grid-template-columns: var(--control-h) minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: var(--control-h);
}
.js .composer__bar:has([data-picker-open]) { grid-template-columns: var(--control-h) minmax(0, 1fr) var(--control-h); }
html:not(.js) .composer__bar { grid-template-columns: minmax(0, 1fr); }
.composer__bar > .textarea {
  min-width: 0;
  height: var(--control-h);
  min-height: var(--control-h);
  border: 0;
  outline: 0;
  resize: vertical;
  overflow: auto;
}
.composer__bar > .textarea:focus-visible { box-shadow: none; }
.composer__box:focus-within { border-color: var(--text); outline: 2px solid var(--focus); outline-offset: 1px; box-shadow: 0 0 0 4px var(--focus-edge); }
.composer__box.is-dragging { border-style: dashed; border-color: var(--text); }

.composer__drop-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease-out);
}

.composer__box.is-dragging .composer__drop-hint { opacity: 0.94; }

.composer__tool .icon { width: var(--icon-m); height: var(--icon-m); }
.composer__tool { margin: 0; }
.composer__hint { font-size: var(--fs--1); }
.composer__file { min-width: 0; max-width: 100%; }

/* With JS the file input is a button (its label); without JS it stays the browser's own control. */
.js .composer__file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .composer__tool[for] { display: none; }
.composer__box:has(.composer__file:focus-visible) .composer__tool[for] { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Previews of chosen images (blob: URLs) with a remove button. */
.composer__previews { list-style: none; margin: 0; padding: 0 var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.composer__previews:not(:empty) { padding-block: var(--s-2) 0; }

.composer__preview {
  position: relative;
  width: 5.5rem;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--paper);
}

.composer__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.composer__preview.is-invalid { border-color: var(--danger); }
.composer__preview .btn { position: absolute; top: 2px; right: 2px; width: 2rem; min-height: 2rem; padding: 0; background: var(--surface); }
/* Drawn 32px (it sits on a small preview) but answers a 44px touch: the hit area reaches 6px out. */
.composer__preview .btn::after { content: ""; position: absolute; inset: -0.375rem; }

@media (prefers-reduced-motion: no-preference) {
  .composer__preview { animation: rise 260ms var(--ease-out); }
}

/* ---------- Lightbox (native <dialog>) ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #071C1E; /* always the dark paper, whatever the theme: pictures read best on dark */
  color: #F3F6F7;
  --focus: #C7F36B;
}

.lightbox::backdrop { background: rgb(7 28 30 / 0.92); }
.lightbox[open] { display: grid; place-items: center; }

.lightbox__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--s-2);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: calc(var(--s-8) + env(safe-area-inset-top)) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom));
}

.lightbox__img { place-self: center; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; touch-action: pan-y pinch-zoom; }
.lightbox__caption { justify-self: center; max-width: 60ch; text-align: center; font-size: var(--fs--1); overflow-wrap: anywhere; }
.lightbox__caption .label { color: #B1B9BA; }

.lightbox .btn--secondary { --btn-bg: #15292B; --btn-fg: #F3F6F7; --btn-edge: #7F8E8F; }
.lightbox__close { position: absolute; top: calc(var(--s-4) + env(safe-area-inset-top)); right: var(--s-4); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--s-3); }
.lightbox__nav--next { right: var(--s-3); }
.lightbox__nav[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img { animation: rise 220ms var(--ease-out); }
}

/* ---------- Empty states, notifications, sign-in ---------- */

.community-empty {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
}

.community-empty > * { margin: 0; }
.community-empty__title { font-size: var(--fs-2); }
.community-empty__text { color: var(--muted); max-width: 46ch; }


.notification {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
}

.notification--new { border-left: 3px solid var(--text); }
.notification__body { display: grid; gap: var(--s-1); min-width: 0; }
.notification__body > * { margin: 0; }
.notification__title { font-weight: 500; overflow-wrap: anywhere; }
.notification__excerpt { font-size: var(--fs--1); overflow-wrap: anywhere; }

.community-signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
}

.community-signin p { margin: 0; }

.community-doc { max-width: none; }

/* Staggered entrance for the lists here, like the other inner pages (motion.css). */
@media (prefers-reduced-motion: no-preference) {
  :is(.thread-list, .replies:not(.replies--nested)) > * { animation: rise 380ms var(--ease-out) 140ms backwards; }
  :is(.thread-list, .replies:not(.replies--nested)) > :nth-child(2) { animation-delay: 190ms; }
  :is(.thread-list, .replies:not(.replies--nested)) > :nth-child(3) { animation-delay: 240ms; }
  :is(.thread-list, .replies:not(.replies--nested)) > :nth-child(4) { animation-delay: 290ms; }
  :is(.thread-list, .replies:not(.replies--nested)) > :nth-child(n + 5) { animation-delay: 330ms; }
}
