/* Loosely modelled on the Vanilla 1 default theme: left panel, tabs, flat list. */
:root {
  --ink: #222; --muted: #777; --line: #e3e3e3; --link: #1e5aa8; --link-visited: #5a3e8a;
  --tab: #e8eef7; --tab-on: #fff; --header: #2d4f80; --alt: #f7f9fc; --new: #fff6d6;
  --flag: #888; --sticky: #fffbe8;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 "Trebuchet MS", Verdana, system-ui, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-weight: normal; }
button, .button {
  font: inherit; padding: 4px 12px; border: 1px solid #b9c7dc; background: var(--tab);
  border-radius: 3px; cursor: pointer; color: var(--ink); display: inline-block;
}
button:hover, .button:hover { background: #dbe5f3; text-decoration: none; }
button.linklike { border: 0; background: none; padding: 0; color: var(--link); }
button.linklike:hover { text-decoration: underline; background: none; }
form.inline { display: inline; }

#Session { text-align: right; font-size: 12px; color: var(--muted); padding: 6px 16px; }
#Header { background: var(--header); padding: 14px 16px 0; }
#Header h1 { margin: 0 0 12px; font-size: 26px; letter-spacing: .5px; }
#Header h1 a { color: #fff; }
#Header .tabs { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
#Header .tabs li a { display: block; padding: 6px 14px; background: var(--tab); border-radius: 4px 4px 0 0; color: var(--ink); }
#Header .tabs li.TabOn a { background: var(--tab-on); font-weight: bold; }

#Body { display: flex; gap: 24px; padding: 16px; max-width: 1200px; }
#Panel { flex: 0 0 220px; font-size: 13px; }
#Panel h2 { font-size: 13px; text-transform: lowercase; color: var(--muted); border-bottom: 1px solid var(--line); margin: 16px 0 6px; padding-bottom: 2px; }
#Panel ul { list-style: none; margin: 0; padding: 0; }
#Panel .latest li { margin-bottom: 6px; }
#Panel .time { color: var(--muted); font-size: 11px; white-space: nowrap; }
#Panel .start { margin: 0; }
#Content { flex: 1; min-width: 0; }

.ContentInfo h1 { margin: 0 0 4px; font-size: 22px; }
.ContentInfo .crumbs, .ContentInfo .categories { margin: 0 0 8px; color: var(--muted); }
.categories a.on { font-weight: bold; }
.PageInfo { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; margin: 6px 0; }
.PageInfo p { margin: 0; }
.PageList { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.PageList li { padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; }
.PageList li.CurrentPage { background: var(--header); color: #fff; border-color: var(--header); }
.PageList li.gap { border: 0; }

#Discussions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.Discussion { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.Discussion.Alternate { background: var(--alt); }
.Discussion.Sticky { background: var(--sticky); }
.Discussion.Hidden { opacity: .55; }
.DiscussionTopic { font-size: 15px; }
.DiscussionTopic a:visited { color: var(--link-visited); }
.Discussion .meta { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.Discussion .modlink { margin-left: auto; }
.Discussion .modlink button { font-size: 12px; }
.Discussion .new { font-size: 11px; background: var(--new); border: 1px solid #ecd98a; padding: 0 5px; border-radius: 8px; margin-left: 6px; color: #7a5b00; }
.flag { font-size: 10px; text-transform: uppercase; color: #fff; background: var(--flag); padding: 1px 5px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }

#Comments, .results { list-style: none; margin: 0; padding: 0; }
.Comment { border: 1px solid var(--line); border-radius: 3px; margin: 10px 0; }
.Comment.Hidden { opacity: .55; border-style: dashed; }
.CommentHeader { background: var(--alt); padding: 5px 10px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.CommentHeader .author { font-weight: bold; font-size: 13px; }
.CommentHeader .permalink { color: var(--muted); }
.CommentHeader .actions { margin-left: auto; display: flex; gap: 10px; }
.CommentBody { padding: 8px 12px; overflow-wrap: anywhere; }
.CommentBody p:first-child { margin-top: 0; }
.CommentBody p:last-child { margin-bottom: 0; }
.CommentBody img { max-width: 100%; height: auto; }
.CommentBody blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid #c9d6ea; background: #f5f8fc; color: #444; }
.CommentBody pre { background: #f4f4f4; padding: 8px; overflow-x: auto; }
.excerpt { color: #444; }
.CommentBody .quote-author { font-weight: bold; font-size: 12px; color: #555; margin-bottom: 2px; }
.CommentBody ul, .CommentBody ol { margin: 4px 0; padding-left: 24px; }

.editor .toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 4px; }
.editor .toolbar button { font-size: 12px; padding: 2px 8px; }
.editor .upload-status { font-size: 12px; color: var(--muted); }

.post-form { margin-top: 18px; max-width: 760px; }
.post-form.narrow { max-width: 420px; }
.post-form label { display: block; font-weight: bold; margin-bottom: 2px; }
.post-form input[type=text], .post-form input[type=email], .post-form input[type=password],
.post-form input:not([type]), .post-form textarea, .post-form select {
  width: 100%; font: inherit; padding: 6px; border: 1px solid #c8c8c8; border-radius: 3px;
}
.post-form .helptext, .help { color: var(--muted); font-size: 12px; display: block; }
.errorlist { color: #b00020; padding-left: 16px; }
.notice { background: var(--alt); padding: 10px; border: 1px solid var(--line); }
.messages { list-style: none; padding: 0; }
.messages li { padding: 8px 10px; background: #eef7ee; border: 1px solid #cfe5cf; margin-bottom: 6px; }
.messages li.error { background: #fbeeee; border-color: #edcccc; }
.modbar { margin: 6px 0; display: flex; gap: 6px; }
.search-form { display: flex; gap: 6px; max-width: 520px; margin: 8px 0; }
.search-form input { flex: 1; font: inherit; padding: 5px; }
table.members { border-collapse: collapse; width: 100%; max-width: 640px; }
table.members th, table.members td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.plain { padding-left: 18px; }
.empty { color: var(--muted); padding: 10px; }

@media (max-width: 760px) {
  #Body { flex-direction: column-reverse; padding: 10px; }
  #Panel { flex: none; }
  .CommentHeader .actions { margin-left: 0; }
}
