:root {
  --ink: #141820;
  --ink-soft: #3a4352;
  --rule: #c8cdd6;
  --paper: #f7f6f2;
  --paper-deep: #efece4;
  --accent: #9f1239;
  --navy: #0b2354;
  --card: #fffcf7;
  --font-display: "Literata", "Times New Roman", serif;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    linear-gradient(90deg, #d9d4c8 0, #d9d4c8 12px, transparent 12px),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(20, 24, 32, 0.03) 28px
    ),
    #e7e2d7;
}

/* Шапка как на главной a-pro (поверх газетного фона дневника) */
body > .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.paper {
  width: min(1180px, calc(100% - 24px));
  margin: 18px auto 40px;
  padding: 22px 22px 28px;
  background: var(--paper);
  border: 1px solid #d5d0c4;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 50px rgba(40, 35, 20, 0.16);
}

.masthead {
  text-align: center;
  padding-bottom: 10px;
}

.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.masthead__home,
.masthead__crm {
  font-weight: 700;
}

.masthead__home:hover,
.masthead__crm:hover {
  color: var(--accent);
}

.masthead__title-btn {
  display: block;
  width: 100%;
  margin: 14px 0 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  text-align: center;
}

.masthead__title-btn:hover .masthead__title,
.masthead__title-btn:focus-visible .masthead__title {
  color: var(--accent);
}

.masthead__title-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.masthead__title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.15s ease;
}

.masthead__hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.masthead__dek {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.masthead__rule {
  margin: 16px 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ink) 8%, var(--ink) 92%, transparent);
}

.edition-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  margin: 0 -4px 16px;
  padding-left: 4px;
  padding-right: 4px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}

.edition-filters__block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.edition-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.edition-chip {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.edition-chip:hover {
  background: rgba(20, 24, 32, 0.05);
}

.edition-chip.is-active {
  background: var(--ink);
  color: var(--paper);
}

.edition-chip--year {
  border-color: var(--rule);
  color: var(--ink-soft);
  font-weight: 600;
}

.edition-chip--year.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.edition-search input {
  width: min(240px, 100%);
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 8px 2px;
  outline: none;
}

.edition-search input:focus {
  border-bottom-color: var(--ink);
}

.edition-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(159, 18, 57, 0.06);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.edition-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.edition-note a:hover {
  color: var(--ink);
}

.edition-note--dev {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.press {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

.press-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 18px;
}

.press-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 20px;
}

.press-more {
  appearance: none;
  border: 1px solid var(--rule, #c8cdd6);
  background: #fff;
  color: var(--ink, #141820);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  cursor: pointer;
}

.press-more:hover {
  border-color: var(--accent, #9f1239);
  color: var(--accent, #9f1239);
}

/* Newspaper mosaic sizes */
.story {
  background: var(--card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.story--hero {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 420px;
}

.story--feature {
  grid-column: span 4;
  grid-row: span 2;
}

.story--wide {
  grid-column: span 6;
}

.story--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.story--standard {
  grid-column: span 4;
}

.story--compact {
  grid-column: span 3;
}

.story--strip {
  grid-column: span 12;
  flex-direction: row;
  align-items: stretch;
  min-height: 160px;
}

.story__media {
  position: relative;
  background: #1b2433;
  overflow: hidden;
}

.story--hero .story__media,
.story--feature .story__media,
.story--tall .story__media {
  flex: 1.1;
  min-height: 180px;
}

.story--wide .story__media,
.story--standard .story__media {
  aspect-ratio: 16 / 10;
}

.story--compact .story__media {
  aspect-ratio: 4 / 3;
}

.story--strip .story__media {
  width: 240px;
  flex-shrink: 0;
  min-height: 160px;
}

.story__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__media--empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
}

/* Cover as cinematic splash poster */
.story--splash {
  position: relative;
  border: 0;
  min-height: 280px;
}

.story--splash.story--hero {
  min-height: 460px;
}

.story--splash.story--feature,
.story--splash.story--tall {
  min-height: 420px;
}

.story--splash.story--wide,
.story--splash.story--standard {
  min-height: 300px;
}

.story--splash.story--compact {
  min-height: 240px;
}

.story--splash.story--strip {
  min-height: 200px;
  flex-direction: column;
}

.story__splash {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
}

.story__splash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.story__splash:hover img {
  transform: scale(1.06);
}

.story__splash-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.15) 0%, rgba(8, 12, 20, 0.25) 35%, rgba(8, 12, 20, 0.88) 100%);
  pointer-events: none;
}

.story__splash-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story--hero .story__splash-copy {
  padding: 24px 24px 22px;
}

.story--splash .story__kicker {
  color: #f8b4c4;
}

.story--splash .story__title {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.story--splash .story__title a {
  color: inherit;
}

.story--splash .story__meta,
.story--splash .story__excerpt {
  color: rgba(255, 255, 255, 0.82);
}

.story--splash .story__tag {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.story--splash .story__more {
  color: #fff;
  align-self: flex-start;
}

.story--splash .story__more:hover {
  color: #f8b4c4;
}

.story__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.story--hero .story__body {
  padding: 18px 20px 20px;
}

.story__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.story__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.story--hero .story__title {
  font-size: clamp(26px, 3.2vw, 38px);
}

.story--feature .story__title,
.story--tall .story__title {
  font-size: 22px;
}

.story--wide .story__title,
.story--standard .story__title,
.story--strip .story__title {
  font-size: 20px;
}

.story--compact .story__title {
  font-size: 16px;
}

.story__title a:hover {
  color: var(--accent);
}

.story__meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.story__excerpt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.story--compact .story__excerpt {
  display: none;
}

.story__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.story__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 2px 7px;
  color: var(--ink-soft);
}

.story__more {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.story__more:hover {
  color: var(--accent);
}

/* Full article sheet */
.read-sheet {
  border: 1px solid var(--rule);
  background: var(--card);
  margin-bottom: 18px;
  overflow: hidden;
}

.read-sheet__splash {
  position: relative;
  min-height: min(52vh, 480px);
  background: #1b2433;
  color: #fff;
}

.read-sheet__splash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.read-sheet__splash-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.35) 0%, rgba(8, 12, 20, 0.2) 40%, rgba(8, 12, 20, 0.92) 100%);
}

.read-sheet__splash-copy {
  position: relative;
  z-index: 1;
  min-height: min(52vh, 480px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 32px;
  max-width: 840px;
}

.read-sheet__splash .read-sheet__back {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: auto;
  padding-bottom: 24px;
}

.read-sheet__splash .read-sheet__back:hover {
  color: #fff;
}

.read-sheet__splash .read-sheet__kicker {
  color: #f8b4c4;
}

.read-sheet__splash .read-sheet__title {
  color: #fff;
  margin-bottom: 8px;
}

.read-sheet__splash .read-sheet__meta {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.read-sheet__inner {
  padding: 22px 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.read-sheet__back {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.read-sheet__back:hover {
  color: var(--accent);
}

.read-sheet__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.read-sheet__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.read-sheet__meta {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.read-sheet__text {
  white-space: pre-wrap;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}

.read-sheet__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.read-sheet__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 22px;
  background: #111;
}

.read-sheet__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.colophon {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.colophon__author {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.colophon a:hover,
.colophon__author:hover {
  color: var(--accent);
}

/* Author dossier (full about) */
.author-modal[hidden] {
  display: none;
}

.author-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
}

.author-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(12, 14, 18, 0.58);
  cursor: pointer;
}

.author-modal__panel--dossier {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(94vh, 900px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 80px rgba(10, 12, 18, 0.4);
  animation: author-in 0.28s ease;
}

@keyframes author-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.author-modal__close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  margin: 10px 12px 0 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.author-modal__close:hover {
  color: var(--accent);
}

.dossier {
  padding: 28px 28px 32px;
  clear: both;
}

.dossier__hero {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) 1.25fr;
  gap: 22px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 3px double var(--ink);
}

.dossier__portrait {
  position: relative;
  min-height: 280px;
  background: #1b2433;
  overflow: hidden;
}

.dossier__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.dossier__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier__lede h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.08;
}

.dossier__role {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.dossier__lead {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.dossier__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dossier__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.55);
}

.dossier__facts strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
}

.dossier__facts span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dossier__section {
  margin-bottom: 26px;
}

.dossier__section h3,
.dossier__column h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.dossier__section p,
.dossier__column-dek {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.dossier__timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--rule);
}

.dossier__timeline li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--rule);
}

.dossier__timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.dossier__when {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier__what {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.dossier__evidence {
  margin: 8px 0 26px;
}

.dossier__evidence h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.dossier__doc {
  margin: 0 0 14px;
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
}

.dossier__doc img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #f3f0ea;
}

.dossier__doc--harsh {
  border-color: rgba(159, 18, 57, 0.35);
  box-shadow: inset 0 0 0 1px rgba(159, 18, 57, 0.08);
}

.dossier__doc--harsh img {
  max-height: 280px;
  object-fit: contain;
  background: #ece8e2;
}

.dossier__doc figcaption {
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

.dossier__gramoty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.dossier__gramoty .dossier__doc {
  margin: 0;
}

.dossier__quote {
  margin: 0 0 26px;
  padding: 14px 16px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(159, 18, 57, 0.04);
}

.dossier__quote p {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

.dossier__quote cite {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}


.dossier__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.dossier__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dossier__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.dossier__btn--ghost {
  background: transparent;
  color: var(--ink);
}

.dossier__btn--ghost:hover {
  background: rgba(20, 24, 32, 0.05);
  color: var(--accent);
  border-color: var(--accent);
}

body.is-author-open {
  overflow: hidden;
}


@media (max-width: 980px) {
  .story--hero,
  .story--feature,
  .story--wide,
  .story--tall,
  .story--standard,
  .story--compact,
  .story--strip {
    grid-column: span 12;
    grid-row: auto;
  }

  .story--strip {
    flex-direction: column;
  }

  .story--strip .story__media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .story--hero,
  .story--splash.story--hero {
    min-height: 360px;
  }

  .author-modal__layout {
    grid-template-columns: 1fr;
  }

  .author-modal__splash {
    min-height: 240px;
  }

  .dossier__hero,
  .dossier__gramoty {
    grid-template-columns: 1fr;
  }

  .dossier__portrait {
    min-height: 240px;
  }

  .dossier {
    padding: 18px 16px 22px;
  }
}

@media (max-width: 640px) {
  .paper {
    width: calc(100% - 12px);
    margin: 8px auto 24px;
    padding: 14px 12px 18px;
  }

  .masthead__title {
    font-size: 36px;
  }

  .edition-filters {
    flex-direction: column;
    align-items: stretch;
    transition: transform 0.28s ease, opacity 0.22s ease, margin 0.28s ease;
    will-change: transform;
  }

  .edition-filters.is-scroll-hidden {
    transform: translateY(calc(-100% - 12px));
    opacity: 0;
    pointer-events: none;
    margin-bottom: 0;
  }

  .edition-search input {
    width: 100%;
  }

  .read-sheet__splash,
  .read-sheet__splash-copy {
    min-height: 320px;
  }

  .read-sheet__splash-copy {
    padding: 18px 16px 20px;
  }

  .author-modal__copy {
    padding: 20px 16px 18px;
  }

  .dossier__facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* Engagement: views / reactions / comments */
.engage-host {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.engage--readonly .engage__stats {
  margin-bottom: 0;
}

.engage__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.engage__reacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.engage__react {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}

.engage__react:hover:not(:disabled) {
  border-color: var(--ink);
}

.engage__react.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.engage__react:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.engage__react-count {
  font-size: 12px;
  font-weight: 700;
}

.engage__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
}

.engage__comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.engage__comment {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.55);
}

.engage__comment header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ink-soft);
}

.engage__comment p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.engage__empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.engage__gate {
  padding: 14px 16px;
  border: 1px dashed var(--rule);
  background: rgba(159, 18, 57, 0.04);
}

.engage__gate p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.engage__login,
.engage__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.engage__login:hover,
.engage__submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.engage__form textarea {
  display: block;
  width: 100%;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  font: inherit;
  resize: vertical;
  min-height: 84px;
}

.engage__as {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.engage__hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--accent);
}

