:root {
  color-scheme: dark;
  --bg: #0c0f10;
  --surface: #14191a;
  --line: #252e2f;
  --text: #f2f6f5;
  --muted: #a2aeac;
  --accent: #52e6cf;
  font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1192px, calc(100% - 64px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #101415; }
.masthead-inner { height: 68px; display: flex; align-items: center; gap: 13px; }
.wordmark { font-size: 1.05rem; font-weight: 750; letter-spacing: -.035em; }
.mark { display: block; width: 32px; height: 32px; }
main { min-height: calc(100svh - 145px); }
.footer { display: flex; justify-content: space-between; gap: 10px; padding-block: 26px; color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
}

.forum { padding-block: clamp(28px, 5vw, 58px) 32px; }
.forum h1 {
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.faction-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
}
.faction-group:last-child { margin-bottom: 0; }
.faction-group h2 {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  border-radius: 13px 13px 0 0;
  color: var(--accent);
  background: #10201f;
  font-size: 1.05rem;
  font-weight: 720;
}
.faction-list { list-style: none; margin: 0; padding: 0; }
.faction-list li + li { border-top: 1px solid var(--line); }
.faction-list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  gap: 15px;
  padding: 10px 22px;
  font-weight: 620;
  overflow-wrap: anywhere;
}
.faction-list li:last-child a { border-radius: 0 0 13px 13px; }
.faction-list a::before {
  content: "";
  flex: 0 0 11px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: #254443;
}
.faction-list a:hover { background: #172522; color: var(--accent); }
.faction-list a:focus-visible { outline-offset: -3px; }
.return-link {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 24px;
  font-size: .9375rem;
}
.return-link:hover { text-decoration: underline; }
.faction-parent { color: var(--muted); margin-bottom: 7px; }
@media (max-width: 540px) {
  .faction-group h2, .faction-list a { padding-inline: 14px; }
  .faction-list a { gap: 11px; }
}

.section-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.section-row { display: flex; }
.row-copy { display: grid; flex: 1; min-width: 0; }
.row-note { color: var(--muted); font-size: .875rem; font-weight: 400; }
.reply-count { margin-left: auto; white-space: nowrap; }
.board-actions, .editor-heading, .post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.board-actions h2, .reply-form h2 { font-size: 1.15rem; }
.primary, .close {
  font: inherit;
  border-radius: 8px;
  padding: 8px 13px;
  min-height: 40px;
}
.primary {
  width: fit-content;
  border: 1px solid transparent;
  color: #081b19;
  background: var(--accent);
  font-weight: 750;
}
.primary:hover { background: #92f2e2; }
.primary:disabled { opacity: .55; cursor: wait; }
.close { color: var(--text); background: transparent; border: 1px solid var(--line); }
.empty, .post, .reply-form {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.empty { color: var(--muted); }
.post-meta { align-items: baseline; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 22px;
}
dialog::backdrop { background: #030606ba; }
form, label { display: grid; gap: 8px; }
form { gap: 14px; }
input, textarea {
  padding: 9px 11px;
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
textarea { resize: vertical; }
.form-error { color: #f8aaa6; }
.form-error:empty { display: none; }
@media (max-width: 470px) {
  .section-row { flex-wrap: wrap; }
  .reply-count { margin-left: 26px; }
  .post, .reply-form { padding-inline: 14px; }
}

.legal-intro { color: var(--muted); margin: -8px 0 24px; }
.legal-group { margin-bottom: 22px; }
.legal-group h2 { font-size: 1.1rem; color: var(--accent); margin-bottom: 9px; }
.legal-list a { padding-block: 13px; }
.legal-list a::before {
  flex-basis: 12px;
  height: 15px;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, #37655e 3px 4px);
}
.legal-document { display: grid; gap: 15px; max-width: 760px; }
.legal-document .primary { display: inline-flex; align-items: center; }

.legal-document { max-width: 880px; }
.law-text { display: grid; gap: 15px; line-height: 1.7; }
.law-text p { white-space: pre-wrap; overflow-wrap: anywhere; }
.law-text h2 { color: var(--accent); font-size: 1.15rem; margin-top: 8px; }
