/*
Theme Name: Spacerift Community
Theme URI: https://spacerift.local/
Author: Spacerift
Description: Русская редакционная тема WordPress для статей и обсуждений Spacerift.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: spacerift-community
*/

:root {
  --bg: #07111f;
  --bg-soft: #0e1b2d;
  --panel: #112338;
  --panel-2: #17304a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef4ff;
  --muted: #9fb2cb;
  --accent: #7ee0c4;
  --accent-2: #7aa9ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --radius-sm: 14px;
  --content: 1440px;
  --content-wide: 1760px;
  --font: "Exo 2", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(122, 169, 255, 0.20), transparent 28%),
    radial-gradient(circle at top right, rgba(126, 224, 196, 0.12), transparent 22%),
    linear-gradient(180deg, #08111f 0%, #07111f 46%, #050b14 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

img.avatar,
img.rounded-circle,
.avatar img,
.comment-author img,
.comment-content .avatar,
.article-voters-list__avatar {
  border-radius: 50% !important;
  object-fit: cover;
}

.site-shell {
  width: min(100% - 32px, var(--content-wide));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-nav-header {
  background: linear-gradient(90deg, #141e30 0%, #243b55 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  width: min(100% - 32px, var(--content-wide));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.site-header__inner--community,
.site-nav-header .app-header__content {
  width: min(100% - 32px, var(--content-wide));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(126, 224, 196, 0.95), rgba(122, 169, 255, 0.95));
  box-shadow: 0 10px 30px rgba(122, 169, 255, 0.25);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-header__auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-header .header-megamenu.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav-header .nav-item {
  display: flex;
  align-items: center;
}

.site-nav-header .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: rgba(238, 244, 255, 0.78);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  font-size: 0.96rem;
}

.site-nav-header .nav-link:hover,
.site-nav-header .nav-link.active,
.site-nav-header .current_page_item > a {
  color: #ffffff;
  text-decoration: none;
}

.site-nav-header .nav-link-icon {
  font-size: 0.92rem;
}

.site-nav-header .app-header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav-header .widget-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.site-nav-header .header-btn-lg,
.site-nav-header .widget-content,
.site-nav-header .widget-content-wrapper,
.site-nav-header .widget-content-left {
  height: 100%;
}

.site-nav-header .widget-content-left {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
  white-space: nowrap;
}

.site-nav-header .widget-content-left a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.site-nav-header .widget-content-left img,
.site-nav-header .widget-content-left .avatar {
  display: block;
  flex: 0 0 auto;
}

.site-nav-header .widget-content-left img.avatar,
.site-nav-header .widget-content-left .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.site-nav-header .button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  line-height: 1;
  min-height: 0;
  border-radius: 999px;
}

.site-nav-header .button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.site-nav-header .header-admin-link {
  margin-right: 2px;
}

.site-nav-header .header-btn-lg,
.site-nav-header .widget-content,
.site-nav-header .widget-content-wrapper,
.site-nav-header .widget-content-left {
  align-items: center;
  display: flex;
}

.site-nav-header .widget-content-left > * + * {
  margin-left: 6px;
}

.site-nav-header .widget-content-left > * {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-nav-header .widget-content-left a[href*="logout"] {
  position: relative;
  padding-left: 16px;
  margin-left: 6px;
}

.site-nav-header .widget-content-left a[href*="logout"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
}

.site-nav-header .widget-content-left .button--ghost,
.site-nav-header .widget-content-left a.button--ghost {
  flex: 0 0 auto;
}

.site-nav-header .widget-content-left .button,
.site-nav-header .widget-content-left .button--ghost {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-nav-header .widget-content-left a:not(.button--ghost) {
  color: rgba(238, 244, 255, 0.86);
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.site-nav-header .widget-content-left a:not(.button--ghost):hover {
  color: #ffffff;
  text-decoration: none;
}

.site-nav-header .widget-content-left .admin-link,
.site-nav-header .widget-content-left .header-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.site-nav-header .widget-content-left .avatar,
.site-nav-header .widget-content-left img.avatar {
  margin: 0;
}

.site-nav-header .widget-content-left .admin-link:hover,
.site-nav-header .widget-content-left .header-admin-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  padding: 44px 0 28px;
}

.articles-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  width: min(100% - 32px, var(--content-wide));
  margin: 18px auto 0;
  min-height: clamp(360px, 48vh, 520px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(126, 224, 196, 0.16), transparent 18%),
    radial-gradient(circle at 84% 24%, rgba(122, 169, 255, 0.20), transparent 22%),
    radial-gradient(circle at 50% 86%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(10, 18, 31, 0.98), rgba(7, 15, 26, 0.98));
  box-shadow: var(--shadow);
}

.articles-hero::before,
.articles-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.articles-hero::before {
  background-image:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 28% 68%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 18%, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 56% 52%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 71% 26%, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 83% 71%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 32%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 7% 82%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.5px);
  opacity: 0.55;
}

.articles-hero::after {
  background:
    radial-gradient(circle at 18% 30%, rgba(126, 224, 196, 0.10), transparent 26%),
    radial-gradient(circle at 82% 30%, rgba(122, 169, 255, 0.10), transparent 24%);
  mix-blend-mode: screen;
}

.articles-hero > * {
  position: relative;
  z-index: 1;
}

.articles-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 14px 14px 16px;
  min-height: 100%;
}

.articles-hero__content h1 {
  margin: 10px 0 14px;
  font-size: calc(var(--spacerift-articles-heading-size, 3.25rem) * 1.18 * var(--spacerift-articles-heading-scale, 1));
  line-height: var(--spacerift-articles-heading-line-height, 0.98);
  max-width: 11ch;
  white-space: pre-line;
}

.articles-hero__content p {
  max-width: 60ch;
}

.articles-hero__featured {
  min-height: 100%;
}

.articles-hero__featured .card--featured {
  height: 100%;
  margin: 0;
}

.articles-hero__featured .card__media,
.articles-hero__featured .entry-media {
  aspect-ratio: 16 / 10;
}

.articles-hero__featured .card__media img,
.articles-hero__featured .entry-media img,
.articles-hero__featured .card__media video,
.articles-hero__featured .entry-media video {
  object-position: center top;
}

.articles-hero__empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__panel,
.card,
.sidebar-box,
.comment-respond,
.comments-area {
  background: linear-gradient(180deg, rgba(17, 35, 56, 0.96), rgba(10, 20, 33, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__panel {
  padding: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent);
}

.hero h1 {
  margin: 12px 0 14px;
  font-size: calc(var(--spacerift-articles-heading-size, 3.25rem) * 1.18 * var(--spacerift-articles-heading-scale, 1));
  line-height: var(--spacerift-articles-heading-line-height, 1.02);
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button,
.wp-block-button__link,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04111d;
  font-weight: 800;
  cursor: pointer;
}

.button--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

.hero__aside {
  display: grid;
  gap: 18px;
}

.sidebar-box {
  padding: 24px;
}

.sidebar-box h2,
.archive-title {
  margin-top: 0;
  font-size: 1.2rem;
}

.content-wrap {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 32px;
}

.content-wrap--articles {
  width: 100%;
  margin: 14px auto 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 12px;
}

.content-wrap--single,
.content-wrap--category {
  width: min(100% - 24px, 2200px);
  margin: 14px auto 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.content-wrap > .sidebar-box,
.content-wrap > .sidebar {
  grid-column: 1;
  grid-row: 1;
}

.content-wrap > .posts-grid,
.content-wrap > .card--single,
.content-wrap > article:not(.sidebar-box) {
  grid-column: 2;
}

.content-wrap--single > .card--single,
.content-wrap--single > .sidebar,
.content-wrap--single > .comments-area,
.content-wrap--single > .article-post-nav,
.content-wrap--single > .sidebar-box--category-sections {
  width: 100%;
  max-width: none;
}

.content-wrap--category > .posts-grid,
.content-wrap--category > .sidebar-box--category,
.content-wrap--category > .sidebar-box--category-sections {
  width: 100%;
  max-width: none;
}

@media (min-width: 1180px) {
  .articles-hero,
  .content-wrap--articles {
    width: min(100% - 32px, calc(var(--content-wide) * 0.72));
  }

  .content-wrap--single,
  .content-wrap--category {
    grid-template-columns: clamp(300px, 20vw, 360px) minmax(0, 1fr) clamp(360px, 26vw, 460px);
    gap: 24px;
  }

  .content-wrap--single > .card--single {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
  }

  .content-wrap--single > .sidebar-box--article-nav {
    grid-column: 3;
    align-self: start;
  }

  .content-wrap--single > .sidebar-box--category-sections {
    grid-column: 1;
    align-self: start;
  }

  .content-wrap--category > .posts-grid {
    grid-column: 2;
  }

  .content-wrap--category > .sidebar-box--category {
    grid-column: 3;
    align-self: start;
  }

  .content-wrap--category > .sidebar-box--category-sections {
    grid-column: 1;
    align-self: start;
  }

  .sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles-hero {
    min-height: clamp(300px, 42vh, 430px);
    padding: 14px;
  }

  .card {
    padding: 16px;
  }

  .card h2,
  .entry-title {
    margin: 10px 0 12px;
  }

  .card h2 {
    font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.96 * var(--spacerift-articles-heading-scale, 1));
  }

  .entry-title {
    font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 1.58 * var(--spacerift-articles-heading-scale, 1));
  }

  .card p {
    font-size: calc(var(--spacerift-articles-body-size, 1.06rem) * 1.16);
    line-height: 1.68;
  }

  .card__media,
  .entry-media {
    margin: 12px 0;
    border-radius: 16px;
  }

  .card__actions {
    gap: 10px;
    margin-top: 8px;
  }

  .article-engagement--compact .article-vote-button {
    min-height: 40px;
    padding: 8px 13px;
  }

  .card__read-more {
    min-height: 40px;
    padding: 8px 16px;
  }

  .card--single {
    padding: 22px;
  }

  .card--single .entry-title {
    margin: 10px 0 14px;
  }

  .card--single .entry-media {
    margin: 14px 0;
  }

  .sidebar-box,
  .sidebar-box--article-nav,
  .sidebar-box--category,
  .sidebar-box--category-sections {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 960px) {
  .content-wrap--single {
    grid-template-columns: 1fr;
  }

  .content-wrap {
    grid-template-columns: 1fr;
  }

  .content-wrap--category {
    grid-template-columns: 1fr;
  }

  .content-wrap--single > .card--single,
  .content-wrap--single > .sidebar,
  .content-wrap--single > .comments-area,
  .content-wrap--single > .article-post-nav,
  .content-wrap--single > .sidebar-box--article-nav,
  .content-wrap--single > .sidebar-box--category-sections {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .content-wrap--category > .posts-grid,
  .content-wrap--category > .sidebar-box--category,
  .content-wrap--category > .sidebar-box--category-sections {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .content-wrap > .sidebar-box,
  .content-wrap > .sidebar,
  .content-wrap > .posts-grid,
  .content-wrap > .card--single,
  .content-wrap > article:not(.sidebar-box) {
    grid-column: auto;
    grid-row: auto;
  }

  .sidebar-box,
  .sidebar-box--article-nav,
  .sidebar-box--category,
  .sidebar-box--category-sections {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .sections-page {
    width: min(100% - 24px, 1760px);
  }

  .sections-hero {
    grid-template-columns: 1fr;
  }

  .sections-grid {
    grid-template-columns: 1fr;
  }
}

.posts-grid {
  display: grid;
  gap: 14px;
}

.card {
  position: relative;
  padding: 20px;
}

.card--single {
  padding: 16px;
}

.card--single .entry-topline {
  margin-bottom: 8px;
}

.card--single .entry-title {
  margin: 8px 0 12px;
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 1 * var(--spacerift-articles-heading-scale, 1));
}

.card--single .entry-media {
  margin: 12px 0;
}

.card--single .entry-content,
.card--single .page-content {
  font-size: calc(var(--spacerift-articles-body-size, 1.06rem) * 0.72);
  line-height: 1.55;
}

.card--single .entry-content h2,
.card--single .page-content h2 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.59 * var(--spacerift-articles-heading-scale, 1));
}

.card--single .entry-content h3,
.card--single .page-content h3 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.49 * var(--spacerift-articles-heading-scale, 1));
}

.card--single .entry-content h4,
.card--single .page-content h4 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.41 * var(--spacerift-articles-heading-scale, 1));
}

.card--single .entry-content h5,
.card--single .page-content h5 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.35 * var(--spacerift-articles-heading-scale, 1));
}

.card--single .entry-content h6,
.card--single .page-content h6 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.28 * var(--spacerift-articles-heading-scale, 1));
}

.card--single .entry-content p,
.card--single .page-content p {
  margin-bottom: 0.72em;
}

.card--single .entry-content li,
.card--single .page-content li {
  margin-bottom: 0.32em;
}

.card--single .entry-content figure,
.card--single .page-content figure {
  margin: 1.2em auto;
}

.card--post {
  overflow: hidden;
  cursor: default;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease,
    background 0.26s ease,
    filter 0.26s ease;
  will-change: transform, box-shadow;
}

.card--post.is-card-active {
  transform: translateY(-4px);
  border-color: rgba(126, 224, 196, 0.26);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(126, 224, 196, 0.08) inset,
    0 0 0 1px rgba(122, 169, 255, 0.08);
}

.card--post:focus-visible {
  outline: 2px solid rgba(126, 224, 196, 0.42);
  outline-offset: 3px;
}

.card--post.is-card-active::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(126, 224, 196, 0.08), transparent 36%),
    radial-gradient(circle at top right, rgba(122, 169, 255, 0.14), transparent 32%);
  opacity: 1;
}

.card--post > * {
  position: relative;
  z-index: 1;
}

.card--post [data-article-card-target="media"],
.card--post [data-article-card-target="excerpt"] {
  cursor: pointer;
}

.card--featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card.is-fresh {
  isolation: isolate;
}

.card.is-fresh::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 28%, rgba(92, 255, 178, 0.46), rgba(54, 186, 112, 0.18) 24%, transparent 68%),
    radial-gradient(circle at 50% 55%, rgba(130, 255, 210, 0.16), transparent 72%);
  filter: blur(24px);
  opacity: 0.72;
  animation: freshPulse 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.card.is-fresh > * {
  position: relative;
  z-index: 1;
}

@keyframes freshPulse {
  0%,
  100% {
    transform: scale(0.985);
    opacity: 0.54;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.96;
  }
}

.card__media,
.entry-media {
  display: block;
  width: 100%;
  aspect-ratio: 64 / 27;
  overflow: hidden;
  border-radius: 16px;
  margin: 14px 0;
  background: rgba(255, 255, 255, 0.04);
}

.card__media img,
.entry-media img,
.card__media video,
.entry-media video,
.post-media__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media video,
.entry-media video {
  background: #000;
}

.entry-content video,
.page-content video,
.entry-content .wp-block-video video,
.page-content .wp-block-video video,
.entry-content .wp-video video,
.page-content .wp-video video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  max-height: 70vh;
  object-fit: contain;
}

.entry-content .wp-block-video,
.page-content .wp-block-video,
.entry-content .wp-video,
.page-content .wp-video,
.entry-content figure.wp-block-video,
.page-content figure.wp-block-video {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.entry-content figure,
.page-content figure {
  margin: 28px auto;
  text-align: center;
}

.entry-content figure > img,
.page-content figure > img,
.entry-content figure > video,
.page-content figure > video,
.entry-content .wp-block-image img,
.page-content .wp-block-image img,
.entry-content .wp-block-video video,
.page-content .wp-block-video video {
  display: block;
  margin: 0 auto;
}

.entry-content figcaption,
.page-content figcaption {
  max-width: 72ch;
  margin: 14px auto 0;
  padding: 0 10px;
  color: rgba(238, 244, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.01em;
}

.card__meta,
.post-meta,
.entry-meta,
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card__topline,
.entry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.card__topline .card__meta,
.entry-topline .post-meta {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.article-views-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(3, 10, 18, 0.68);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

.article-views-badge i {
  color: var(--accent);
  font-size: 0.95rem;
}

.article-views-badge svg {
  width: 15px;
  height: 15px;
  display: block;
  color: var(--accent);
}

.card h2,
.entry-title {
  margin: 10px 0 12px;
  line-height: var(--spacerift-articles-heading-line-height, 1.15);
}

.card h2 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.82 * var(--spacerift-articles-heading-scale, 1));
}

.entry-title {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 1.42 * var(--spacerift-articles-heading-scale, 1));
}

.card p,
.entry-content,
.page-content {
  color: var(--muted);
}

.card p {
  font-size: var(--spacerift-articles-body-size, 1.06rem);
  line-height: var(--spacerift-articles-body-line-height, 1.7);
}

.card__read-more {
  margin-top: 0;
  align-self: flex-end;
  min-height: 38px;
  padding: 8px 16px;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.card__actions .article-engagement--compact {
  margin-top: 0;
}

.card__actions .article-engagement__vote-row {
  gap: 10px;
}

.card__actions .article-engagement__vote-pairs {
  gap: 10px;
}

.card__last-comment {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(126, 224, 196, 0.16);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card__last-comment:hover,
.card__last-comment:focus-visible {
  border-color: rgba(126, 224, 196, 0.32);
  background: rgba(126, 224, 196, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.card__last-comment-body {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
}

.card__last-comment-author {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.card__last-comment-text {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-content,
.page-content {
  font-size: var(--spacerift-articles-body-size, 1.06rem);
  line-height: var(--spacerift-articles-body-line-height, 1.7);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.card h3,
.card h4,
.card h5,
.card h6 {
  line-height: var(--spacerift-articles-heading-line-height, 1.15);
}

.entry-content h2,
.page-content h2,
.card h3 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.82 * var(--spacerift-articles-heading-scale, 1));
}

.entry-content h3,
.page-content h3,
.card h4 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.68 * var(--spacerift-articles-heading-scale, 1));
}

.entry-content h4,
.page-content h4,
.card h5 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.58 * var(--spacerift-articles-heading-scale, 1));
}

.entry-content h5,
.page-content h5,
.card h6 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.5 * var(--spacerift-articles-heading-scale, 1));
}

.entry-content h6,
.page-content h6 {
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 0.42 * var(--spacerift-articles-heading-scale, 1));
}

.entry-content p,
.page-content p {
  margin: 0 0 0.9em;
}

.entry-content li,
.page-content li {
  margin-bottom: 0.4em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.comments-area {
  padding: 28px;
  margin-top: 24px;
}

.comments-area__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.comments-area__title {
  margin: 0;
}

.comments-area__empty {
  margin: 0;
  color: var(--muted);
}

.comments-area__empty--pending {
  color: rgba(126, 224, 196, 0.9);
}

.comments-toggle {
  margin-top: 18px;
}

.back-to-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(123, 232, 214, 0.22);
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.84);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(123, 232, 214, 0.42);
  background: rgba(10, 22, 36, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(123, 232, 214, 0.10) inset;
  text-decoration: none;
}

.back-to-top__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(123, 232, 214, 0.12);
  border: 1px solid rgba(123, 232, 214, 0.28);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 900;
}

.back-to-top__label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

  .article-post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

.article-post-nav--single {
  justify-items: center;
}

  .article-post-nav__item {
    position: relative;
    display: block;
    min-height: 220px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.article-post-nav--single .article-post-nav__item {
  width: min(100%, 920px);
}

.article-post-nav__item:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 232, 214, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(123, 232, 214, 0.12) inset;
}

.article-post-nav__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.72) 0%, rgba(4, 11, 20, 0.24) 32%, rgba(4, 11, 20, 0.18) 68%, rgba(4, 11, 20, 0.84) 100%);
}

  .article-post-nav__label {
  position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
}

.article-post-nav__thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.04);
}

.article-post-nav__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  .article-post-nav__body {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    min-width: 0;
    display: block;
  }

  .article-post-nav__title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: none;
    transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.5em;
}

.article-post-nav__item:hover .article-post-nav__label,
.article-post-nav__item:focus-visible .article-post-nav__label {
  color: #78f0bf;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.category-archive__intro {
  padding: 20px 22px 18px;
}

.category-archive__description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 6px;
}

.category-sidebar {
  display: grid;
  gap: 18px;
}

.category-sections-list {
  display: grid;
  gap: 8px;
}

.content-wrap--single > .sidebar-box--category-sections .category-sections-item {
  min-height: 54px;
  padding: 13px 14px;
  border-radius: 18px;
}

.category-sections-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.category-sections-item:hover,
.category-sections-item:focus-visible,
.category-sections-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(126, 224, 196, 0.24);
  background: rgba(126, 224, 196, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  text-decoration: none;
}

.category-sections-item--all {
  border-color: rgba(126, 224, 196, 0.18);
  background: rgba(126, 224, 196, 0.06);
}

.category-sections-item--all .category-sections-item__count {
  color: var(--accent);
}

.category-sections-item__name {
  min-width: 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}

.category-sections-item__count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(3, 10, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-sidebar__section {
  display: grid;
  gap: 14px;
}

.content-wrap--single > .sidebar-box--category-sections {
  padding: 28px 22px;
  border: 1px solid rgba(126, 224, 196, 0.14);
  background: linear-gradient(180deg, rgba(17, 35, 56, 0.98), rgba(12, 22, 36, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.content-wrap--single > .sidebar-box--category-sections .category-sidebar__section {
  gap: 16px;
}

.content-wrap--single > .sidebar-box--category-sections .category-sidebar__heading h2 {
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.content-wrap--single > .sidebar-box--category-sections .category-sidebar__heading span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-sidebar__heading {
  display: grid;
  gap: 2px;
}

.category-sidebar__heading h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.category-sidebar__heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

.category-sidebar__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.category-popular-list,
.category-comment-list {
  display: grid;
  gap: 12px;
}

.category-popular-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.category-popular-item:hover,
.category-popular-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 224, 196, 0.20);
  background: rgba(126, 224, 196, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.category-popular-item__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.category-popular-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-popular-item__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(126, 224, 196, 0.20), transparent 28%),
    radial-gradient(circle at 70% 70%, rgba(122, 169, 255, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.category-popular-item__body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.category-popular-item__title {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-popular-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-popular-item__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(3, 10, 18, 0.48);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-popular-item__views svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.category-comment-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.category-comment-item:hover,
.category-comment-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(126, 224, 196, 0.20);
  background: rgba(126, 224, 196, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.category-comment-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}

.category-comment-item__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-comment-item__body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.category-comment-item__topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.category-comment-item__author {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.category-comment-item__date {
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.category-comment-item__excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-comment-item__post {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sections-page {
  width: min(100% - 32px, 1760px);
  margin: 14px auto 0;
  display: grid;
  gap: 24px;
  padding-bottom: 32px;
}

.sections-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.sections-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  min-height: 100%;
}

.sections-hero__content h1 {
  margin: 10px 0 14px;
  font-size: calc(var(--spacerift-articles-heading-size, 3.25rem) * 1.06 * var(--spacerift-articles-heading-scale, 1));
  line-height: 1.08;
}

.sections-hero__content p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.sections-hero__all {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
}

.sections-hero__all h2 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: calc(var(--spacerift-articles-heading-size, 2rem) * 1.08 * var(--spacerift-articles-heading-scale, 1));
}

.sections-hero__all .card__excerpt {
  margin: 0;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.section-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 35, 56, 0.94), rgba(10, 20, 33, 0.94));
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.section-card:hover,
.section-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(126, 224, 196, 0.24);
  background: linear-gradient(180deg, rgba(20, 42, 66, 0.98), rgba(10, 20, 33, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.section-card__label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-card__title {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-card__description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 3.1em;
}

.section-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(238, 244, 255, 0.78);
  font-size: 0.82rem;
}

.sections-hero__all.card--featured {
  justify-content: space-between;
}

.sections-hero__all.card--featured .card__meta {
  align-items: center;
}

.navigation.pagination {
  margin-top: 18px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.navigation.pagination .page-numbers.current {
  background: linear-gradient(135deg, rgba(126, 224, 196, 0.98), rgba(122, 169, 255, 0.98));
  color: #04111d;
  border-color: transparent;
}

.article-vote-button__tooltip--preview {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  z-index: 4;
}

.comment-form-shell {
  margin-top: 18px;
}

.comment-form-shell[hidden] {
  display: none;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.comment-list .comment {
  margin: 0;
}

.comment-card {
  list-style: none;
}

.comment-card__inner {
  display: flex;
  gap: 16px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-card__avatar {
  flex: 0 0 auto;
}

.comment-card__avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.comment-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.comment-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.comment-card__author-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
}

.comment-card__author {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.3;
}

.comment-card__date {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.comment-card__meta-actions,
.comment-card__footer {
  flex: 0 0 auto;
}

.comment-card__content {
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

.comment-card__content p:last-child {
  margin-bottom: 0;
}

.comment-card__content--pingback {
  color: var(--muted);
}

.comment-card__footer {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.comment-like {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.comment-votes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.comment-like__button {
  min-height: 38px;
  padding: 8px 12px;
}

.comment-like .article-vote-button__tooltip {
  max-width: 260px;
}

.article-voters-modal--comment .article-voters-modal__column--full {
  width: 100%;
}

.comment-card__footer .comment-reply-link,
.comment-card__edit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(126, 224, 196, 0.10);
  border: 1px solid rgba(126, 224, 196, 0.18);
  color: var(--accent);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.comment-card__footer .comment-reply-link:hover,
.comment-card__edit a:hover {
  background: rgba(126, 224, 196, 0.16);
  border-color: rgba(126, 224, 196, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}

.comment-card__delete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(217, 37, 80, 0.10);
  border: 1px solid rgba(217, 37, 80, 0.18);
  color: #ff7f98;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.comment-card__delete:hover {
  background: rgba(217, 37, 80, 0.16);
  border-color: rgba(217, 37, 80, 0.28);
  color: #ff9aac;
  text-decoration: none;
  transform: translateY(-1px);
}

.comment-card .children {
  list-style: none;
  margin: 16px 0 0;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 12px 14px;
}

.comment-form-comment textarea {
  min-height: 160px;
}

.comment-notes,
.logged-in-as,
.form-submit {
  color: var(--muted);
}

.comment-respond {
  margin-top: 24px;
  padding: 24px;
}

.comment-respond .comment-reply-title {
  margin-top: 0;
}

.comment-respond .comment-form {
  display: grid;
  gap: 14px;
}

.comment-respond .comment-form-comment {
  margin: 0;
}

.comment-respond .form-submit {
  margin: 0;
}

@media (max-width: 960px) {
  .article-post-nav__title {
    font-size: 16px;
  }

  .article-post-nav__thumb {
    max-width: none;
  }

  .article-post-nav__thumb img {
    height: 100%;
  }
}

@media (max-width: 640px) {
  .article-post-nav__item {
    padding: 16px;
    min-height: auto;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .article-post-nav__thumb img {
    height: 120px;
  }

  .article-post-nav__thumb {
    width: 100%;
    max-width: none;
    order: 2;
  }

  .article-post-nav__body {
    order: 3;
    width: 100%;
  }

  .article-post-nav__direction {
    order: 1;
  }

  .back-to-top {
    left: 14px;
    bottom: 14px;
    padding: 10px 14px 10px 10px;
  }

  .back-to-top__icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 960px) {
  .hero,
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__inner--community,
  .site-nav-header .app-header__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header__auth {
    margin-left: 0;
  }

  .site-nav-header .app-header-right {
    margin-left: 0;
  }

  .articles-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }

  .articles-hero__content h1 {
    max-width: none;
  }
}

.article-engagement {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-engagement--compact {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.article-engagement__vote-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.article-engagement__vote-pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-vote-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 64px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.article-vote-button:hover,
.article-vote-button:focus-visible,
.article-vote-button.is-active {
  background: rgba(126, 224, 196, 0.10);
  border-color: rgba(126, 224, 196, 0.35);
  transform: translateY(-1px);
}

.article-vote-button:disabled {
  opacity: 0.72;
  cursor: progress;
}

.article-vote-button__count {
  min-width: 1.2em;
  text-align: left;
  color: var(--accent);
}

.article-vote-button svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
  color: var(--accent);
}

.article-vote-button[data-article-vote="-1"] svg,
.article-vote-button[data-article-vote="-1"] .article-vote-button__count {
  color: #ff7a7a;
}

.comment-like__button--down svg,
.comment-like__button--down .article-vote-button__count {
  color: #ff7a7a;
}

.comment-like__button--down:hover,
.comment-like__button--down:focus-visible,
.comment-like__button--down.is-active {
  background: rgba(255, 122, 122, 0.10);
  border-color: rgba(255, 122, 122, 0.35);
}

.article-vote-button[data-article-vote="-1"]:hover,
.article-vote-button[data-article-vote="-1"]:focus-visible,
.article-vote-button[data-article-vote="-1"].is-active {
  background: rgba(255, 122, 122, 0.10);
  border-color: rgba(255, 122, 122, 0.35);
}

.article-vote-button__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 3;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 22, 0.96);
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.30);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 0.92rem;
  line-height: 1.45;
}

.article-vote-button:hover .article-vote-button__tooltip,
.article-vote-button:focus-visible .article-vote-button__tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.article-vote-button__tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.article-comments-open,
.article-voters-login {
  white-space: nowrap;
}

.article-engagement--compact .article-engagement__vote-row {
  gap: 10px;
}

.article-engagement--compact .article-vote-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
}

.article-engagement--compact .article-vote-button__tooltip {
  max-width: 220px;
}

.article-voters-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.article-voters-modal[hidden] {
  display: none;
}

.article-voters-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(6px);
}

.article-voters-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(14, 27, 45, 0.98), rgba(9, 17, 30, 0.98));
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
}

.article-voters-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.article-voters-modal__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.article-voters-modal__column {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.article-voters-modal__column h4 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1rem;
}

.article-voters-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.article-voters-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.article-voters-list__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.article-voters-empty {
  margin: 0;
  color: var(--muted);
}

body.article-voters-modal-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .article-voters-modal__columns {
    grid-template-columns: 1fr;
  }

  .article-vote-button__tooltip {
    min-width: 220px;
    max-width: 280px;
  }
}
