/* CHERNAMARS — RESEARCH STATION. Терминальный архивный стиль, в духе community.css: тёмный фон,
   красный сигнал, моноширинный технический текст. Все классы с префиксом rs-, чтобы не пересекаться
   с остальными страницами. */
.rs-wrap { max-width: 860px; margin: 0 auto; padding: 48px 20px 96px; color: var(--ash, #cfc7c0); font-family: var(--f-mono, monospace); }
.rs-eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal, #c23b2a); margin: 0 0 8px; }
.rs-head h1 { font-size: 26px; letter-spacing: .04em; margin: 0 0 10px; }
.rs-sub, .rs-dim { color: #9a8f87; font-size: 13px; line-height: 1.5; }

.rs-form { border: 1px solid var(--line, #2a211d); padding: 20px; margin: 28px 0; display: grid; gap: 14px; background: rgba(10,6,4,.4); }
.rs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rs-form label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9a8f87; }
.rs-form select, .rs-form textarea {
  background: #0a0604; border: 1px solid var(--line, #2a211d); color: var(--ash, #cfc7c0);
  font-family: inherit; font-size: 13px; padding: 8px 10px; border-radius: 0;
}
.rs-form textarea { resize: vertical; }
.rs-q { grid-column: 1 / -1; }
.rs-form button {
  justify-self: start; background: transparent; border: 1px solid var(--signal, #c23b2a); color: var(--signal, #c23b2a);
  padding: 10px 22px; font-family: inherit; font-size: 12px; letter-spacing: .1em; cursor: pointer; transition: background .15s, color .15s;
}
.rs-form button:hover:not(:disabled) { background: var(--signal, #c23b2a); color: #0a0604; }
.rs-form button:disabled { opacity: .5; cursor: progress; }

.rs-section-h { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #9a8f87; border-top: 1px solid var(--line, #2a211d); padding-top: 24px; margin-top: 36px; }

.rs-card { border: 1px solid var(--line, #2a211d); padding: 18px; margin-bottom: 16px; background: rgba(10,6,4,.5); }
.rs-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rs-code { font-size: 13px; letter-spacing: .08em; color: #9a8f87; }
.rs-badge { font-size: 10px; letter-spacing: .1em; padding: 3px 8px; border: 1px solid currentColor; }
.rs-badge-canon { color: #e7b23a; }
.rs-badge-research { color: var(--signal, #c23b2a); }
.rs-badge-invalid { color: #6b625c; }
.rs-img { width: 100%; max-width: 280px; display: block; margin: 0 0 12px; border: 1px solid var(--line, #2a211d); }
.rs-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 12px; margin: 0 0 12px; }
.rs-meta dt { color: #6b625c; letter-spacing: .08em; font-size: 10px; text-transform: uppercase; }
.rs-meta dd { margin: 0; }
.rs-checks { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 12px; }
.rs-checks td { padding: 3px 6px; border-bottom: 1px solid var(--line, #2a211d); }
.rs-checks tr.rs-pass td:last-child { color: #ff5a48; text-shadow: 0 0 6px rgba(255, 42, 31, 0.8); }
.rs-checks tr.rs-warn td:last-child { color: #e7b23a; }
.rs-checks tr.rs-fail td:last-child { color: #c23b2a; }
.rs-morph { font-size: 13px; line-height: 1.5; color: #cfc7c0; }
.rs-reason { color: var(--signal, #c23b2a); font-size: 13px; }
.rs-license { font-size: 10px; letter-spacing: .08em; color: #6b625c; text-transform: uppercase; margin-top: 10px; }

.rs-rejected { border: 1px solid var(--signal, #c23b2a); padding: 18px; font-size: 13px; }

.rs-pack-row { font-size: 12px; margin: 6px 0; }

.rs-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0;
  background: #0a0604; border: 1px solid var(--signal, #c23b2a); color: var(--ash, #cfc7c0);
  padding: 10px 18px; font-family: var(--f-mono, monospace); font-size: 12px; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 60;
}
.rs-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .rs-row, .rs-meta { grid-template-columns: 1fr; }
}
