/* SlopScore — old.reddit density, one accent (slop orange). Phase 2 does the real design pass. */
:root {
  --bg: #fafaf7; --fg: #1a1a1a; --muted: #6b6b6b; --line: #e3e1da; --panel: #f1efe8;
  --accent: #e8731a; --accent-2: #b85a12; --up: #e8731a; --down: #6a7cf0; --link: #2b4fb3; --visited: #6b4fb3;
  --chip: #eeeae0; --chip-fg: #4a4a4a; --warn: #fff3d6; --bad: #f8d7d7; --ok: #dff3e2;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f; --fg: #ece9df; --muted: #9a978d; --line: #2b2a24; --panel: #1d1c17;
    --accent: #f08a35; --accent-2: #f5a55f; --up: #f08a35; --down: #8b9bff; --link: #8fb0ff; --visited: #c3a7ff;
    --chip: #2a2921; --chip-fg: #cfcbbe; --warn: #3a2e12; --bad: #3a1919; --ok: #16301c;
  }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 13px/1.45 verdana, arial, helvetica, sans-serif; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; } a:visited { color: var(--visited); }
code, pre { font-family: var(--mono); font-size: 12px; }
pre { background: var(--panel); border: 1px solid var(--line); padding: 8px; overflow-x: auto; border-radius: 3px; }
img { max-width: 100%; }
.muted { color: var(--muted); } .inline { display: inline; }
button.link { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.wrap.narrow { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
@media (max-width: 860px) { .wrap { grid-template-columns: minmax(0, 1fr); } .rail { order: 2; } }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 4px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.wordmark { font-weight: bold; font-size: 16px; color: var(--fg) !important; } .wordmark sup { font-size: 8px; color: var(--muted); } .mark { font-size: 18px; }
.tabs a { text-transform: lowercase; padding: 2px 6px; color: var(--muted); } .tabs a.on { color: var(--accent); font-weight: bold; border-bottom: 2px solid var(--accent); }
.search { display: flex; gap: 4px; flex: 1; min-width: 220px; } .search input { flex: 1; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--fg); font: inherit; }
.search button, .btn, form.owner button, .commentform button { padding: 3px 10px; border: 1px solid var(--accent-2); background: var(--accent); color: #fff; border-radius: 3px; cursor: pointer; font: inherit; }
.btn.secondary, form.owner button.secondary { background: var(--panel); color: var(--fg); border-color: var(--line); }
.btn[disabled], form.owner button[disabled] { opacity: .5; cursor: not-allowed; }
.who { display: flex; gap: 10px; align-items: center; margin-left: auto; } .avatar { width: 18px; height: 18px; border-radius: 3px; vertical-align: middle; }
.who .mod { color: var(--accent); font-weight: bold; }

/* hero + strip */
.hero { display: flex; gap: 16px; align-items: center; padding: 12px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hero h1 { margin: 0; font-size: 22px; } .hero p { margin: 4px 0 0; color: var(--muted); }
.manifesto { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 8px 12px; margin: 8px 0; }
.strip { display: flex; gap: 12px; align-items: center; background: var(--warn); border: 1px solid var(--line); padding: 8px 12px; margin: 8px 0; }
.strip .stamp { font-weight: bold; color: var(--accent-2); text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }

/* feed rows */
.feed { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 28px 44px 70px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row .rank { color: var(--muted); text-align: right; padding-top: 6px; font-size: 14px; }
.votebox { display: flex; flex-direction: column; align-items: center; gap: 0; }
.votebox button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 14px; padding: 0 4px; line-height: 1; }
.votebox button.on.up, .votebox button.up:hover { color: var(--up); } .votebox button.on.down, .votebox button.down:hover { color: var(--down); }
.votebox .score { font-weight: bold; font-size: 12px; } .votebox.off button { opacity: .35; cursor: not-allowed; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); display: block; }
.thumb.blank { display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.row .title { font-size: 14px; } .row .title a { color: var(--fg); } .row .title a:visited { color: var(--visited); }
.row .domain { color: var(--muted); font-size: 11px; } .row .tagline { margin: 2px 0; }
.row .meta { color: var(--muted); font-size: 11px; } .row .meta a { color: var(--muted); }
.langdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 3px; vertical-align: middle; }
.chips { display: inline; } .chip { display: inline-block; background: var(--chip); color: var(--chip-fg); border-radius: 3px; padding: 0 5px; font-size: 10px; margin: 1px 2px 1px 0; }
.chip.warn { background: var(--warn); } .chip.bad { background: var(--bad); } .chip.ok { background: var(--ok); } .chip.unrec { border: 1px dashed var(--muted); }
.chip.tier { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.report { color: var(--muted); opacity: .6; } .report:hover { opacity: 1; }
details.reportform { display: inline; } details.reportform summary { display: inline; cursor: pointer; list-style: none; } details.reportform form { display: inline-flex; gap: 4px; margin-left: 6px; }
.pager { padding: 10px 0; display: flex; gap: 12px; }
.empty { padding: 30px; text-align: center; color: var(--muted); font-style: italic; }

/* rail */
.rail { font-size: 12px; } .rail .box { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; margin-bottom: 12px; }
.rail h3 { margin: 0 0 6px; font-size: 13px; } .rail ol, .rail ul { padding-left: 18px; margin: 4px 0; } .rail pre { margin: 6px 0; font-size: 11px; }
.rail .mascot { text-align: center; font-size: 64px; line-height: 1; margin-bottom: 4px; }
.stats td { padding: 1px 8px 1px 0; } .stats td:last-child { text-align: right; font-weight: bold; }

/* repo page */
.repo { } .repo h1 { margin: 6px 0 2px; font-size: 20px; } .repo .sub { color: var(--muted); margin-bottom: 8px; }
.repo .status { padding: 8px 12px; border-radius: 4px; margin: 8px 0; } .status.rejected { background: var(--bad); } .status.listed { background: var(--ok); } .status.queued { background: var(--warn); } .status.delisted { background: var(--panel); }
.about { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: 12px; margin: 8px 0; }
.about dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 0; } .about dt { color: var(--muted); } .about dd { margin: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0; } .gallery img { height: 160px; border-radius: 3px; border: 1px solid var(--line); }
.body { border-top: 1px solid var(--line); padding-top: 8px; } .readme { max-height: 60vh; overflow: hidden; position: relative; }
.readme.open { max-height: none; } .readme::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--bg)); } .readme.open::after { display: none; }
.scanreport { font-size: 12px; } .scanreport li { margin: 2px 0; } .gate-ok { color: #2e8b57; } .gate-bad { color: #c0392b; }
.disclosures { margin: 6px 0; }
.owner { border: 1px solid var(--accent); border-radius: 4px; padding: 8px 12px; margin: 8px 0; background: var(--panel); }
.owner h3 { margin: 0 0 4px; } .owner form { display: inline; margin-right: 6px; }

/* comments */
.comments { margin-top: 12px; } .comment { padding: 6px 0 6px 10px; border-left: 2px solid var(--line); margin: 6px 0; }
.comment .meta { color: var(--muted); font-size: 11px; } .comment .maker { color: var(--accent); font-weight: bold; } .comment.pinned { border-left-color: var(--accent); background: var(--panel); }
.comment .cbody p { margin: 4px 0; } .commentform textarea { width: 100%; min-height: 70px; font: inherit; padding: 6px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--fg); }
.replies { margin-left: 16px; }

/* tables */
table.list { border-collapse: collapse; width: 100%; font-size: 12px; } table.list th, table.list td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); } table.list th { color: var(--muted); font-weight: normal; }

/* footer */
.foot { text-align: center; color: var(--muted); font-size: 11px; padding: 20px 12px; border-top: 1px solid var(--line); margin-top: 20px; }
.foot p { margin: 4px 0; }
.notice { background: var(--warn); border: 1px solid var(--line); padding: 6px 10px; border-radius: 3px; margin: 6px 0; }
