/* Forum pages. Builds on /css/site.css (tokens, header, footer, .pagehead, .forum, .fgroup, .fcat, .side-box, .btn). */
.fx-i { width: 18px; height: 18px; flex: none; }
.fx-head > .wrap { padding-block: 40px 32px; }
.fx-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; overflow-wrap: anywhere; }
.fx-head-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.fx-search { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; }
.fx-search input, .fx-compose input, .fx-compose select, .fx-compose textarea, .fx-mod input, .fx-mod select {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3);
  color: var(--ink); font: 400 16px/1.45 var(--body); }
.fx-compose textarea { resize: vertical; font-family: var(--mono); font-size: 15px; }
.fx-me { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.fx-av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex: none; }
.fx-me .fx-av { width: 32px; height: 32px; }
.fx-role { display: inline-block; font: 600 12px/1 var(--body); text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.fx-role-owner { background: var(--accent); color: var(--on-accent); }
.fx-role-admin { background: var(--accent-soft); color: var(--accent); }
.fx-role-moderator { background: var(--live-soft); color: var(--live); }
.fx-tag { font: 600 13px/1 var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; vertical-align: middle; }
.fx-meta { color: var(--faint); font-size: 14px; margin: 2px 0 0; }
.fx-flag { display: inline-flex; color: var(--accent); margin-right: 6px; vertical-align: -2px; }
.fx-cat { grid-template-columns: 46px minmax(0, 1fr) auto; }
.fx-cat h3 a { text-decoration: none; }
.fx-cat h3 a:hover { color: var(--accent); }
.fx-latest { font-size: 14px !important; margin-top: 4px !important; overflow-wrap: anywhere; }
.fx-count, .fx-tstat { display: grid; justify-items: center; min-width: 64px; }
.fx-count b, .fx-tstat b { font: 700 20px/1.1 var(--display); }
.fx-count span, .fx-tstat span { font-size: 13px; color: var(--faint); }
.fx-topics, .fx-results, .fx-plain { list-style: none; margin: 0; padding: 0; }
.fx-topics { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.fx-trow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 110px; gap: 14px; align-items: center; padding: 14px 18px; }
.fx-trow + .fx-trow { border-top: 1px solid var(--line); }
.fx-trow.is-pinned { background: var(--accent-soft); }
.fx-tmain h3 { font: 700 17px/1.3 var(--display); margin: 0; overflow-wrap: anywhere; }
.fx-tmain h3 a { text-decoration: none; }
.fx-tmain h3 a:hover { color: var(--accent); }
.fx-tlast { color: var(--faint); font-size: 14px; text-align: right; }
.fx-card, .fx-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.fx-empty { text-align: center; }
.fx-narrow { max-width: 860px; padding-top: 32px; }
.fx-topic { max-width: 960px; padding-top: 28px; display: grid; gap: 16px; }
.fx-post { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; scroll-margin-top: 90px; }
.fx-post.is-held { border-color: rgba(255, 106, 19, 0.55); }
.fx-post.is-hidden { opacity: 0.7; border-style: dashed; }
.fx-phead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.fx-pname { font-weight: 700; text-decoration: none; }
.fx-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }
.fx-note-bad { background: rgba(255, 90, 60, 0.12); color: #FFB4A0; }
.fx-body { overflow-wrap: anywhere; }
.fx-body > :first-child { margin-top: 0; }
.fx-body pre { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; }
.fx-body pre code { background: none; padding: 0; }
.fx-body blockquote { margin: 0 0 12px; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--muted); }
.fx-body img { border-radius: 10px; margin: 8px 0; }
.fx-body a { color: var(--accent); }
.fx-body h3, .fx-body h4 { font-family: var(--display); margin: 18px 0 8px; }
.fx-pfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.fx-react, .fx-pact { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fx-react form, .fx-pact form, .fx-mod form { margin: 0; }
.fx-rbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font: 600 14px/1 var(--body); cursor: pointer; }
span.fx-rbtn { cursor: default; }
.fx-rbtn.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.fx-pact a, .fx-linkbtn { color: var(--muted); font: 500 14px/1 var(--body); background: none; border: 0; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fx-report { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.fx-report .fx-i { width: 15px; height: 15px; }
.fx-mod { margin-top: 12px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.fx-mod summary { cursor: pointer; font-weight: 600; color: var(--live); }
.fx-mod-body { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; }
.fx-mod-reason { display: flex; gap: 6px; flex: 1 1 260px; }
.fx-mod-links { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; }
.fx-danger { color: #FFB4A0; border-color: rgba(255, 90, 60, 0.5); }
.fx-flash { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--live-soft); color: var(--ink); }
.fx-flash-error { background: rgba(255, 90, 60, 0.12); border: 1px solid rgba(255, 90, 60, 0.4); color: #FFD3C7; }
.fx-compose { display: grid; gap: 8px; }
.fx-compose label, .fx-reasons legend { font-weight: 600; font-size: 15px; color: var(--muted); }
.fx-compose h2 { font-size: 22px; margin: 0; }
.fx-compose-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.fx-compose-end a { color: var(--muted); }
.fx-reply { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.fx-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fx-upload[hidden] { display: none; }
.fx-upload-msg { color: var(--faint); font-size: 14px; }
.fx-reasons { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.fx-radio { display: flex; gap: 10px; align-items: center; font-weight: 500 !important; color: var(--ink) !important; min-height: 36px; }
.fx-radio input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.fx-quote p:last-child { margin: 4px 0 0; overflow-wrap: anywhere; }
.fx-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; color: var(--faint); }
.fx-results h2 { font-size: 20px; margin: 0; }
.fx-results h2 a { text-decoration: none; }
.fx-results mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.fx-profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.fx-profile .fx-av { width: 88px; height: 88px; }
.fx-profile .fx-report { margin-left: auto; }
.fx-plain li { padding: 10px 0; border-top: 1px solid var(--line); }
.fx-help { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.fx-side-cta { margin-top: 12px !important; }
.fx-rules h2 { font: 700 22px/1.3 var(--display); }
@media (max-width: 640px) {
  .fx-trow { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px 14px; }
  .fx-tlast { display: none; }
  .fx-cat { grid-template-columns: 40px minmax(0, 1fr); }
  .fx-count { display: none; }
  .fx-post, .fx-card, .fx-reply { padding: 16px; }
  .fx-search { flex-basis: 100%; }
  .fx-head-tools .btn-main { width: 100%; }
}
