:root { --bg:#faf8f3; --fg:#1b1b1b; --muted:#6b6b6b; --accent:#7a1f2b; --line:#e2ded3; --card:#fff; }
@media (prefers-color-scheme: dark) { :root { --bg:#141414; --fg:#eee; --muted:#9a9a9a; --accent:#e0838f; --line:#2c2c2c; --card:#1c1c1c; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.4 Georgia, "Times New Roman", serif; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--accent); }
.topbar { border-bottom:1px solid var(--line); font:13px system-ui, sans-serif; }
.topbar-in { max-width:900px; margin:0 auto; padding:6px 16px; display:flex; justify-content:flex-end; align-items:center; gap:16px; }
.topbar form { margin:0; }
.topbar .linkbtn { background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; }
.topbar .linkbtn:hover { color:var(--accent); }
.metarow { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.saveform { display:inline; margin:0; }
.saveform .linkbtn { background:none; border:0; padding:0; margin-top:2px; font:12px system-ui, sans-serif; color:var(--muted); cursor:pointer; }
.saveform .linkbtn:hover, .saveform .linkbtn.saved { color:var(--accent); }
.pagehead { font:700 22px system-ui, sans-serif; margin:16px 0 8px; }
.topbar .signup { background:var(--accent); color:var(--bg); padding:3px 10px; border-radius:12px; }
.topbar .signup:hover { color:var(--bg); opacity:.9; }
.masthead { max-width:900px; margin:0 auto; padding:20px 16px 8px; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.brand { font:800 28px/1 system-ui, sans-serif; letter-spacing:.04em; }
.brand span { color:var(--accent); }
.tagline { color:var(--muted); font-style:italic; }
.cats { max-width:900px; margin:0 auto; padding:8px 16px; display:flex; gap:6px; flex-wrap:wrap; border-bottom:2px solid var(--fg); font:14px system-ui, sans-serif; }
.cats a { padding:4px 10px; border-radius:14px; border:1px solid var(--line); }
.cats a.on { background:var(--fg); color:var(--bg); border-color:var(--fg); }
.front { max-width:900px; margin:0 auto; padding:12px 16px; }
.top { padding:12px 0 16px; border-bottom:1px solid var(--line); margin-bottom:8px; }
.topstory { display:block; font-size:28px; font-weight:700; line-height:1.15; margin-top:10px; }
.headlines { list-style:none; margin:0; padding:0; }
.headlines li { padding:9px 0; border-bottom:1px solid var(--line); }
.headlines li > a { font-size:18px; font-weight:600; }
.meta { display:block; font:12px system-ui, sans-serif; color:var(--muted); margin-top:2px; }
.catlink:hover { text-decoration:underline; }
.empty { color:var(--muted); padding:24px 0; }
.foot { max-width:900px; margin:24px auto; padding:0 16px; color:var(--muted); font:12px system-ui, sans-serif; }
/* admin */
.adminnav { display:flex; gap:16px; align-items:center; padding:10px 16px; background:var(--fg); color:var(--bg); font:14px system-ui, sans-serif; }
.adminnav a:hover { color:var(--bg); text-decoration:underline; }
.adminnav form { margin-left:auto; }
.adminnav .stat { margin-left:auto; opacity:.85; }
.adminnav .stat + form { margin-left:0; }
.admin { max-width:1000px; margin:0 auto; padding:16px; font-family:system-ui, sans-serif; }
.admin h1 small { font-size:14px; color:var(--muted); font-weight:400; }
.tabs { display:flex; gap:6px; margin-bottom:12px; }
.tabs .on { background:var(--accent); color:#fff; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px; margin-bottom:10px; }
.card .title { font:600 17px Georgia, serif; }
.snip { color:var(--muted); font-size:14px; margin:6px 0; }
.actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:8px; }
button, select, input { font:inherit; font-size:14px; padding:5px 10px; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--fg); }
button { cursor:pointer; }
button.ok { background:#2e7d32; color:#fff; border-color:#2e7d32; }
button.no { background:#b3261e; color:#fff; border-color:#b3261e; }
button:disabled { opacity:.5; }
table { width:100%; border-collapse:collapse; margin:12px 0; font-size:14px; }
th, td { text-align:left; padding:6px; border-bottom:1px solid var(--line); vertical-align:top; }
.url { word-break:break-all; color:var(--muted); }
.err { color:#b3261e; font-size:12px; }
.msg { background:var(--card); border:1px solid var(--line); padding:8px; border-radius:6px; }
.login { max-width:320px; margin:80px auto; padding:0 16px; font-family:system-ui, sans-serif; }
.login form { display:flex; gap:6px; }
#blazor-error-ui { background:#fff3cd; color:#000; bottom:0; display:none; left:0; padding:.6rem 1.25rem; position:fixed; width:100%; z-index:1000; }
#blazor-error-ui .dismiss { cursor:pointer; position:absolute; right:.75rem; top:.5rem; }
.review { font-size:13px; margin:6px 0; }
.score { display:inline-block; min-width:2em; text-align:center; padding:1px 6px; border-radius:10px; color:#fff; font-weight:700; background:#b3261e; }
.score.s1 { background:#b8860b; } .score.s2, .score.s3 { background:#2e7d32; }
.taglink { color:var(--accent); } .taglink:hover { text-decoration:underline; }
.tagbar { font:14px system-ui, sans-serif; color:var(--muted); }
.taginput { min-width:220px; }
.pinpanel { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:4px 12px 8px; margin-bottom:14px; }
.pinpanel h2 { font-size:16px; } .pinpanel h2 small { color:var(--muted); font-weight:400; }
.pinpanel li { margin:6px 0; } .pinpanel li span { margin-right:8px; }
.auto { font-size:12px; color:#b8860b; margin:4px 0; }
.searchform { margin-left:auto; } .searchform input { width:160px; }
.front .searchform { margin:0 0 12px; } .front .searchform input { width:min(420px,70%); }
.subform { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-bottom:10px; }
.foot .msg { background:var(--card); border:1px solid var(--line); padding:8px; border-radius:6px; }
.topcat { background:var(--card); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:6px; padding:4px 14px 10px; margin:12px 0; }
.topcat h2 { font:700 13px system-ui, sans-serif; text-transform:uppercase; letter-spacing:.06em; color:var(--accent); }
.toprow { margin:8px 0; } .toprow > a { font-size:20px; font-weight:700; line-height:1.2; }
.sponsorbar { text-align:center; font:13px system-ui, sans-serif; padding:6px; background:var(--card); border-bottom:1px solid var(--line); color:var(--muted); }
.login form { margin:8px 0; }
.prefs { border:1px solid var(--line); border-radius:8px; padding:4px 14px 12px; margin:12px 0; background:var(--card); }
.prefrow { display:block; margin:6px 0; font:14px system-ui, sans-serif; }
.tradition { margin:22px 0 0; font-size:15px; text-transform:uppercase; letter-spacing:.05em; color:var(--accent); }
tr.off td { opacity:.5; }
.about { max-width:680px; } .about h1 { font-size:30px; margin:12px 0; } .about h2 { font-size:20px; margin:28px 0 6px; }
.about p { line-height:1.6; } .about a { color:var(--accent); text-decoration:underline; }
.admin table { table-layout:fixed; }
.admin th:nth-child(1) { width:26%; } .admin th:nth-child(2) { width:36%; } .admin th:nth-child(3) { width:8%; }
.admin th:nth-child(4) { width:10%; } .admin th:nth-child(5) { width:20%; }
.admin td { overflow-wrap:anywhere; }
/* account page: the preferences form is a column, not the sign-in form's row; wider container */
.login:has(.prefs) { max-width:520px; }
.login form.prefs { display:block; }
.prefs h2 { font-size:17px; margin:12px 0 4px; }
.prefs button { margin-top:8px; }
h1:focus { outline:none; }
/* phones: one scrollable row of category chips instead of a tall wrapped block */
@media (max-width:700px) {
  .cats { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
  .cats a { white-space:nowrap; flex:none; }
  .masthead { padding-bottom:4px; } .searchform { margin-left:0; width:100%; } .searchform input { width:100%; }
}
/* ads: always labeled, fixed height so the page doesn't jump */
.adbar { display:flex; gap:10px; align-items:center; justify-content:center; flex-wrap:wrap; min-height:44px; padding:6px 16px; background:var(--card); border-bottom:1px solid var(--line); font:13px system-ui, sans-serif; color:var(--muted); }
.adbar a:not(.goadfree) { color:var(--fg); display:inline-flex; gap:8px; align-items:center; } .adbar img { height:32px; width:auto; border-radius:3px; }
.adbar .goadfree { color:var(--muted); text-decoration:underline; font-size:12px; }
.adlabel { font:600 10px system-ui, sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:3px; padding:1px 5px; }
.headlines li.adrow { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:10px 12px; margin:8px 0; min-height:64px; }
.headlines li.adrow > a { display:block; margin-top:4px; }
.adstats h2, .admin h2 { font-size:17px; margin:22px 0 8px; }
.statrow { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:6px 0; }
.statrow > div { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:10px 12px; }
.statrow b { display:block; font-size:22px; } .statrow span { font-size:12px; color:var(--muted); }
.pricing th:nth-child(n+2), .pricing td:nth-child(n+2) { text-align:right; }
.adform { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px 14px; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px; }
.adform label { display:grid; gap:4px; font-size:13px; color:var(--muted); } .adform input, .adform select { color:var(--fg); }
.adform .check { display:flex; align-items:center; gap:6px; } .adform .actions { grid-column:1/-1; }
.tablewrap { overflow-x:auto; } .adtable { table-layout:auto; min-width:760px; } .adtable td.actions { display:flex; gap:6px; flex-wrap:wrap; }
.admin .adtable th:nth-child(n) { width:auto; }
.quotebox { grid-column:1/-1; background:var(--bg); border:1px dashed var(--line); border-radius:8px; padding:10px 12px; color:var(--fg); }
.advertise .adform { margin:10px 0; } .advertise h2 { margin-top:26px; } .advertise .tablewrap { overflow-x:auto; }
.advertise .adform input, .advertise .adform select { color:var(--fg); }
