/* 2.84.0: the community forum. The staff page (#forum) and, under body.fpub, the public pages made on the server
   (/help/<link>/community…): calm, readable, right to left in Hebrew (logical properties only). */

/* ---- the staff page ---- */
.fm-off { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.fm-item { padding: 12px 0; border-top: 1px solid var(--line); }
.fm-item:first-of-type { border-top: 0; }
.fm-body { margin: 6px 0; line-height: 1.6; overflow-wrap: anywhere; }
.fm-body code { background: var(--sunk); padding: 0 4px; border-radius: 4px; font-size: .9em; }
.fm-acts { gap: 6px; flex-wrap: wrap; align-items: center; }
.fm-row { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.fm-row:first-child { border-top: 0; }
.fm-row:hover, .fm-row:focus-visible { background: var(--sunk); }
.fm-votes { min-width: 48px; text-align: center; font-weight: 600; color: var(--muted); }
.fm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.fm-col { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-md, 10px); padding: 10px; min-height: 160px; }
.fm-col.over { outline: 2px dashed var(--accent); outline-offset: -4px; }
.fm-col-h { display: flex; justify-content: space-between; margin-bottom: 8px; }
.fm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: grab; display: grid; gap: 4px; }
.fm-card a { font-weight: 600; overflow-wrap: anywhere; }
.fm-move { font-size: .8rem; padding: 2px 4px; }
.fm-post { border-top: 1px solid var(--line); padding: 10px 0; }
.fm-post.staff { border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; }
.fm-post.best { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.fm-post.off { opacity: .65; }
.fm-reply textarea { width: 100%; box-sizing: border-box; }
.fm-table { width: 100%; border-collapse: collapse; }
.fm-table th, .fm-table td { text-align: start; padding: 8px 6px; border-top: 1px solid var(--line); }
.fm-settings label { display: block; margin: 10px 0; }
.fm-settings label > input[type=text], .fm-settings label > textarea, .fm-settings label > select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; }
.fm-settings .fm-check { display: flex; gap: 8px; align-items: flex-start; }
.fm-settings .fm-check input { margin-top: 4px; }

/* ---- the public pages ---- */
body.fpub {
  --bg: #f4f6fa; --panel: #fff; --ink: #1d2433; --muted: #667085; --line: #e3e6ee;
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  body.fpub { --bg: #0f1420; --panel: #161c2b; --ink: #e6e9f0; --muted: #98a2b3; --line: #273047; }
}
.fpub a { color: var(--brand, #2F64B0); }
@media (prefers-color-scheme: dark) { .fpub a { color: color-mix(in srgb, var(--brand, #2F64B0) 55%, #fff); } }
.fp-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.fp-top .grow { flex: 1; }
.fp-brand { font-weight: 700; text-decoration: none; color: var(--ink) !important; }
.fp-main { max-width: 860px; margin: 24px auto 48px; padding: 0 16px; }
.fp-main h1 { font-size: 1.6rem; margin: 0 0 6px; line-height: 1.3; }
.fp-main h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.fp-intro { color: var(--muted); margin: 0 0 14px; }
.fp-btn { display: inline-block; padding: 8px 16px; border-radius: 9px; background: var(--brand, #2F64B0); color: #fff !important; text-decoration: none; font-weight: 600; }
.fp-search input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: inherit; font: inherit; margin: 6px 0 12px; }
.fp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fp-cats a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; color: var(--ink) !important; font-size: .92rem; }
.fp-cats a[aria-current] { border-color: var(--brand, #2F64B0); font-weight: 600; }
.fp-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.fp-topic { padding: 12px 16px; border-top: 1px solid var(--line); }
.fp-topic:first-child { border-top: 0; }
.fp-topic > a { text-decoration: none; }
.fp-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.fp-pill { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; }
.fp-pill.staff, .fp-pill.best { border-color: var(--brand, #2F64B0); color: var(--brand, #2F64B0); font-weight: 600; }
.fp-pill.pin, .fp-pill.st { background: color-mix(in srgb, var(--brand, #2F64B0) 10%, transparent); }
.fp-post { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.fp-post.staff { border-inline-start: 4px solid var(--brand, #2F64B0); }
.fp-post.best { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #2F64B0) 35%, transparent); }
.fp-body { margin-top: 8px; overflow-wrap: anywhere; }
.fp-body code { background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 0 4px; border-radius: 4px; }
.fp-crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.fp-empty { color: var(--muted); }

/* ---- the help center's #community (help-center.js; its own variables) ---- */
.hcc .small { font-size: 13.5px; }
.hcc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hcc-head h1 { margin: 0; }
.hcc-head p { margin: 4px 0 0; }
.hcc-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.hcc-search input { flex: 1; border: 0; background: transparent; color: inherit; font: inherit; outline: none; min-width: 0; }
.hcc-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.hcc-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.hcc-cats a { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink2); text-decoration: none; font-size: 14px; }
.hcc-cats a[aria-current] { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.hcc-sort { display: inline-flex; gap: 4px; align-self: flex-start; background: var(--sunk); border-radius: 999px; padding: 3px; }
.hcc-sort button { border: 0; background: transparent; color: var(--ink2); padding: 5px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px; }
.hcc-sort button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.hcc-list { list-style: none; margin: 0; padding: 0; }
.hcc-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-top: 1px solid var(--hair, var(--line)); }
.hcc-list li:first-child { border-top: 0; }
.hcc-n { display: inline-flex; flex-direction: column; align-items: center; min-width: 40px; color: var(--muted); font-weight: 600; font-size: 14px; }
.hcc-t { flex: 1; min-width: 0; }
.hcc-t > a { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.hcc-t > a:hover { color: var(--brand); }
.hcc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.hcc-pill { display: inline-block; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }
.hcc-pill.st, .hcc-pill.pin { background: var(--tint, var(--sunk)); }
.hcc-pill.team, .hcc-pill.best { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.hcc-post { padding: 18px 20px; }
.hcc-post.team { border-inline-start: 4px solid var(--brand); }
.hcc-post.best { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent), var(--shadow); }
.hcc-first h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.3; }
.hcc-body { margin-top: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.hcc-body code { background: var(--sunk); padding: 0 5px; border-radius: 5px; }
.hcc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.hcc-acts .linkish { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.hcc-vote { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink2); cursor: pointer; font: inherit; font-weight: 600; }
.hcc-vote.on { border-color: var(--brand); color: var(--brand); background: var(--tint, var(--sunk)); }
.hcc-sec { display: flex; flex-direction: column; gap: 12px; }
.hcc-sec h2 { margin: 6px 0 0; font-size: 17px; }
.hcc-reply, .hcc-new { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.hcc-reply textarea, .hcc-new textarea, .hcc-new input, .hcc-new select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: inherit; }
.hcc-reply .btn, .hcc-new .btn { align-self: flex-start; }
.hcc-dlg { border: 0; border-radius: 18px; padding: 22px; background: var(--panel); color: var(--ink); max-width: 420px; width: calc(100% - 32px); }
.hcc-dlg::backdrop { background: rgba(15, 23, 42, .45); }
.hcc-dlg .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.hcc-dlg select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: inherit; }
