/* The public community pages at seemenot.com/support/ (support/community/pages.py).
   Warm black, one signal yellow, heavy system type, square edges, ruled rows instead of cards. System fonts only:
   this file loads no fonts and makes no requests. Phone first; wider screens get a side column. */
:root {
  --bg: #111110;
  --surface: #1a1a18;
  --surface2: #24241f;
  --line: #36352f;
  --line-strong: #5a584e;
  --text: #f4f1e8;
  --muted: #aeaa9c;          /* 7.9:1 on --bg, 7.2:1 on --surface */
  --signal: #f7d716;         /* 13:1 on --bg; --signal-ink on it is 13:1 */
  --signal-ink: #111110;
  --good: #7fe0a0;
  --bad: #ffb4a2;
  --display: "Arial Black", "Helvetica Neue", Helvetica, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
h2 { font-size: .8rem; font-family: var(--mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 .9em; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; padding: 8px 12px; background: var(--signal); color: var(--signal-ink); z-index: 10; }
.skip:focus { top: 8px; }

/* header, warning, footer */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.05rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand-mark { display: block; }
.brand-sub { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; background: var(--signal); color: var(--signal-ink); }
.head-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.who { color: var(--muted); font-size: .9rem; }
.who strong { color: var(--text); font-weight: 600; }
.head-nav .status:empty { display: none; }
.via { color: var(--muted); font-size: .82rem; }

.top-warning { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-warning .warning { margin: 0; padding: 7px 0 7px 12px; border-left: 4px solid var(--signal); font-size: .88rem; }
.warning { color: var(--text); font-size: .95rem; }
.warning-box { border-left: 4px solid var(--signal); background: var(--surface); padding: 10px 12px; margin-bottom: 16px; }

main.wrap { padding-top: 28px; padding-bottom: 64px; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; padding-bottom: 24px; }
.site-foot a { color: var(--muted); text-decoration-color: var(--line-strong); }

/* buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 16px; border: 2px solid var(--line-strong); background: transparent; color: var(--text);
  font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--signal-ink); }
.btn-small { min-height: 34px; padding: 4px 10px; font-size: .88rem; }
.btn:disabled { opacity: .55; cursor: default; }

input[type="text"], input[type="search"], textarea {
  width: 100%; padding: 11px 12px; border: 2px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--text);
  font: inherit; line-height: 1.45;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--signal); }
textarea { resize: vertical; min-height: 8em; }
label, legend { font-weight: 700; }
.stack { display: grid; gap: 16px; margin: 16px 0 32px; }
.field { display: grid; gap: 6px; margin: 0; }
fieldset.field { border: 0; padding: 0; }
.hint { color: var(--muted); font-size: .88rem; font-weight: 400; margin: 0; }
.status { min-height: 1.4em; margin: 0; color: var(--muted); font-size: .92rem; }
.status-bad { color: var(--bad); }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.inline-form input { flex: 1 1 200px; width: auto; }
.inline-form label { width: 100%; }

/* home and lists */
.intro { margin-bottom: 28px; }
.eyebrow { font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); margin-bottom: 8px; }
.lede { color: var(--muted); max-width: 58ch; font-size: 1.05rem; }
.search { display: flex; margin-top: 16px; max-width: 760px; }
.search input { flex: 1; min-width: 0; min-height: 56px; font-size: 1.05rem; border-right: 0; }
.search .btn { min-height: 56px; padding: 8px 22px; }

.block { margin-bottom: 36px; }
.block > h2, .topics > h2 { padding-bottom: 8px; margin-bottom: 0; border-bottom: 2px solid var(--text); }

/* topics: a ruled index with counts, not a row of chips */
.topics { margin-bottom: 40px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.topic { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topic:hover { color: var(--signal); }
.topic[aria-current="page"] { color: var(--signal); }
.topic-count { font-family: var(--mono); font-size: .85rem; font-weight: 400; color: var(--muted); }

.cols { display: grid; gap: 0 48px; }
.q-list, .guide-list, .answer-list { list-style: none; margin: 0; padding: 0; }

/* a question row: the answer count big on the left */
.q-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-count { font-family: var(--mono); line-height: 1.1; color: var(--muted); }
.q-count b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.55rem; color: var(--text); }
.q-count span { font-size: .66rem; letter-spacing: .03em; }
.q-solved b { color: var(--signal); }
.q-zero b { color: var(--line-strong); }
.q-title { display: block; font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.q-title:hover { color: var(--signal); }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.q-meta .count { display: none; }
.q-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; }
.q-tags:empty { display: none; }
.chip { font-family: var(--mono); font-size: .76rem; color: var(--muted); text-decoration: none; }
.chip::before { content: "/ "; color: var(--line-strong); }
.chip:hover { color: var(--signal); }
.badge { display: inline-block; padding: 1px 6px; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.badge-solved { background: var(--signal); color: var(--signal-ink); }
.badge-team { border: 1px solid var(--signal); color: var(--signal); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 10px 0; font-weight: 600; font-size: .95rem; text-decoration: none; }
.empty, .muted { color: var(--muted); }
.empty { padding: 14px 0; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 16px; font-family: var(--mono); }
.crumbs a { color: var(--muted); }
.crumbs a::before { content: "\2190\00a0"; }

/* question and answers: one thread down a rule */
.question { margin-bottom: 36px; }
.question h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); max-width: 22em; }
.meta { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.author { color: var(--text); font-weight: 700; }
.author-ai { color: var(--signal); }
.post-body { margin-top: 14px; max-width: 68ch; overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.ai-sources { margin: 12px 0 4px; color: var(--muted); font-size: .9rem; }
.ai-guides { margin: 0; padding-left: 20px; }
.ai-guides li { padding: 2px 0; }
.waiting { margin: 12px 0 0; padding: 8px 12px; border-left: 4px solid var(--signal); background: var(--surface); }
.answers > h2 { padding-bottom: 8px; border-bottom: 2px solid var(--text); margin-bottom: 20px; }
.answer { position: relative; padding: 2px 0 2px 18px; margin-bottom: 28px; border-left: 2px solid var(--line-strong); }
.answer-solved { border-left: 4px solid var(--signal); padding-left: 16px; }
.answer-removed { border-left-style: dashed; }
.answer-removed p { margin: 0; }
.answer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .88rem; color: var(--muted); }
.answer .post-body { margin-top: 8px; }
.answer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.answer-actions:empty { display: none; }
.votes { display: inline-flex; align-items: center; gap: 4px; }
.vote {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 2px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.vote:hover { color: var(--text); border-color: var(--text); }
.vote[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.score { min-width: 2.2ch; text-align: center; font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.score-static { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.icon { display: block; }
.report { margin-top: 8px; font-size: .85rem; }
.report summary { display: inline-block; color: var(--muted); cursor: pointer; padding: 4px 0; }
.report summary:hover { color: var(--text); text-decoration: underline; }
.report[open] summary { color: var(--text); }
.report-form { margin-top: 8px; padding: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.report-form fieldset { border: 0; margin: 0; padding: 0; }
.report-form legend { padding: 0; margin-bottom: 6px; }
.report-reasons { display: grid; gap: 4px; }
.report-reason { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.report-reason input { accent-color: var(--signal); margin: 0; }
.reply { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--text); }

/* ask */
.similar { padding: 12px; border-left: 4px solid var(--line-strong); background: var(--surface); }
.similar-h { margin-bottom: 8px; }
.similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.similar li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.similar .count { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 2px solid var(--line); font-weight: 500; font-size: .92rem; cursor: pointer; }
.tag-pick input { accent-color: var(--signal); margin: 0; }
.tag-pick:has(input:checked) { border-color: var(--signal); }
.tag-pick:has(input:disabled) { opacity: .55; cursor: default; }
.tag-pick:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.signin { padding: 16px 0 0; }
.signin-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.name-box { padding-top: 24px; border-top: 1px solid var(--line); }
.name-box h2 { margin-bottom: 12px; }

/* guide article */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .35em; }
.guide-media { display: block; max-width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--line-strong); }
.after-guide { margin-top: 32px; color: var(--muted); }
.message-page { padding: 32px 0; }

@media (min-width: 720px) {
  main.wrap { padding-top: 44px; }
  .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
  .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .q-item { grid-template-columns: 72px minmax(0, 1fr); }
  .q-count b { font-size: 2rem; }
  .q-title { font-size: 1.18rem; }
}
