/* tellasoul: a 2000s chat/community site. Centered fixed-width page, blue
   gradient banner, nav bar, scrolling welcome line, sidebar boxes with a hit
   counter, plus imageboard bits (green names, greentext, >>quotes, tan replies). */
:root {
  --bg: #d6e4f5;
  --page: #ffffff;
  --border: #6c8fc7;
  --navy: #0b2f6b;
  --blue: #1d4f9c;
  --boxhead1: #4a7fd0;
  --boxhead2: #1d4f9c;
  --tint: #eef3fb;
  --text: #1b1b1b;
  --reply: #f3f0e2;
  --reply-line: #cfc8a8;
  --hl: #fff0a8;
  --name: #157a15;
  --green: #5f8f00;
  --link: #0033cc;
  --red: #c00000;
  --muted: #666;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 12px 8px 30px; color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(29, 79, 156, .10) 1px, transparent 1px);
  background-size: 6px 6px;
  font: 12px/1.45 Verdana, Tahoma, Geneva, sans-serif;
}
a { color: var(--link); }
a:visited { color: #551a8b; }
a:hover { color: var(--red); }

#page { max-width: 900px; margin: 0 auto; background: var(--page); border: 1px solid var(--border); }

/* ---- banner + nav ---- */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; color: #fff;
  background: linear-gradient(180deg, #5b93e6 0%, #2a62c4 55%, #163f8c 100%);
  border-bottom: 3px solid #ffb400;
}
.logo a {
  color: #fff; text-decoration: none;
  font: bold italic 34px "Trebuchet MS", Arial, sans-serif; letter-spacing: -1px;
  text-shadow: 2px 2px 0 #0b2f6b;
}
.logo span { color: #ffd24a; margin: 0 2px; }
.slogan { text-align: right; font: bold 13px "Trebuchet MS", Arial, sans-serif; text-shadow: 1px 1px 0 #0b2f6b; }
.slogan small { font-weight: normal; font-size: 11px; color: #dbe8ff; }
.navbar {
  padding: 4px 10px; background: linear-gradient(180deg, #f6f9ff, #dfe9f8);
  border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted);
}
.navbar a, .navbar .link { font-weight: bold; color: var(--navy); margin: 0 4px; }

/* scrolling welcome line */
.ticker {
  overflow: hidden; white-space: nowrap; background: #fffbe0; color: var(--red);
  font: bold 11px Verdana, sans-serif; padding: 2px 0; border-bottom: 1px solid #e6d98a;
}
.ticker span { display: inline-block; padding-left: 100%; animation: tick 30s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker span { animation: none; padding-left: 8px; }
}

/* ---- two columns ---- */
.cols { display: flex; gap: 14px; padding: 12px; align-items: flex-start; }
.board { flex: 1; min-width: 0; }
.side { width: 210px; flex: none; }

h1 {
  margin: 0 0 2px; font: bold 18px "Trebuchet MS", Arial, sans-serif; color: var(--navy);
  border-bottom: 2px solid var(--boxhead1); padding-bottom: 2px;
}
.tagline { margin: 2px 0 10px; font-size: 11px; color: var(--muted); }

/* ---- sidebar boxes ---- */
.box { border: 1px solid var(--border); margin-bottom: 12px; background: var(--tint); }
.boxhead {
  background: linear-gradient(180deg, var(--boxhead1), var(--boxhead2)); color: #fff;
  font: bold 11px Verdana, sans-serif; padding: 3px 6px; text-transform: lowercase;
}
.boxbody { padding: 6px 8px; font-size: 11px; }
.boxbody ol, .boxbody ul { margin: 0; padding-left: 16px; }
.boxbody li { margin-bottom: 3px; }
.counter {
  display: inline-block; margin: 4px 0; padding: 2px 4px; background: #000; color: #3cff3c;
  font: bold 18px "Courier New", monospace; letter-spacing: 3px; border: 2px inset #999;
}

/* ---- buttons ---- */
button {
  font: 12px Tahoma, Verdana, sans-serif; cursor: pointer; color: #000;
  padding: 2px 12px; border: 1px solid #7a7a7a; border-radius: 2px;
  background: linear-gradient(180deg, #ffffff, #dcdcdc);
}
button:hover { border-color: var(--blue); }
button:active { background: linear-gradient(180deg, #d0d0d0, #f0f0f0); }
button:disabled { opacity: .5; cursor: default; }
button.big { font: bold 13px Verdana, sans-serif; padding: 4px 18px; }
.link {
  background: none; border: 0; padding: 0; border-radius: 0;
  color: var(--link); font: inherit; cursor: pointer; text-decoration: underline;
}
.link:hover { color: var(--red); background: none; }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* ---- post form ---- */
.postform { margin: 0 0 14px; }
.postform table { width: 100%; border: 1px solid var(--border); border-spacing: 0; background: var(--tint); }
.formhead {
  background: linear-gradient(180deg, var(--boxhead1), var(--boxhead2)); color: #fff;
  font: bold 11px Verdana, sans-serif; padding: 3px 6px;
}
.postform th {
  font: bold 11px Verdana, sans-serif; text-align: right; width: 96px;
  padding: 6px 6px 0; vertical-align: top; color: var(--navy);
}
.postform td { padding: 4px 6px; }
.postform input[type=text], .postform textarea, .reply-form textarea {
  width: 100%; font: 13px Verdana, sans-serif; padding: 3px 4px; color: var(--text);
  background: #fff; border: 1px solid #7f9db9;
}
.postform textarea { min-height: 110px; resize: vertical; }
.formrow, .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.row-right { display: inline-flex; gap: 10px; align-items: center; }
.status { min-height: 1.2em; margin: 4px 0 0; font-size: 11px; color: var(--name); font-weight: bold; }
.status.err { color: var(--red); }
.as-owner { font-size: 11px; color: var(--red); font-weight: bold; display: inline-flex; gap: 4px; align-items: center; }
.owner-bar {
  text-align: center; font-size: 11px; color: #7a4a00; background: #ffffe1;
  border: 1px solid #c9a400; margin: 0 0 10px; padding: 3px 6px;
}
.owner-bar p { margin: 2px 0; }

/* ---- threads ---- */
.thread { overflow: hidden; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px dotted var(--border); }
.thread > hr { display: none; }
.op { margin: 4px 0 2px; }
.postinfo { margin-bottom: 2px; font-size: 11px; }
.postinfo > * { margin-right: 5px; }
.name { color: var(--name); font-weight: bold; font-size: 12px; }
.name.owner, .capcode { color: var(--red); font-weight: bold; }
.capcode { font-size: 11px; }
.dateTime, .postno { color: var(--muted); }
.postno .link { color: var(--muted); text-decoration: none; }
.postno .link:hover { color: var(--red); }
.votes .link { text-decoration: none; }
.votes .link.on { font-weight: bold; color: var(--red); }
.tools, .tools .link { color: var(--muted); font-size: 10px; }
blockquote {
  margin: 6px 24px 8px 16px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 13px/1.45 Verdana, sans-serif;
}
.quote { color: var(--green); }
.ql { color: var(--link); text-decoration: underline; cursor: pointer; }
.ql:hover { color: var(--red); }
.omitted { color: var(--muted); margin: 2px 0 4px 16px; font-size: 11px; font-style: italic; }

.replyrow { display: flex; margin: 3px 0; }
.sideArrows { color: #a9b8d4; padding: 0 3px 0 6px; user-select: none; font-size: 11px; }
.reply {
  background: var(--reply); border: 1px solid var(--reply-line);
  padding: 3px 7px 0 5px; display: inline-block; max-width: 100%;
}
.reply blockquote { margin: 4px 14px 7px 8px; }
.reply.hl, .op.hl { background: var(--hl); }
.post.by-owner .name { color: var(--red); }
.post.new { outline: 1px dotted var(--name); }

.reply-form { margin: 4px 0 6px 24px; max-width: 480px; }
.reply-form textarea { min-height: 60px; resize: vertical; }
.reply-form .status { margin: 0; }

/* hover preview of >>123, styled like an old tooltip */
.preview {
  position: fixed; z-index: 10; max-width: 480px; pointer-events: none;
  background: #ffffe1; border: 1px solid #000; box-shadow: 2px 2px 3px rgba(0,0,0,.3);
}

.muted { color: var(--muted); }
.center { text-align: center; }
.foot {
  text-align: center; font-size: 10px; color: var(--muted); padding: 6px;
  border-top: 1px solid var(--border); background: var(--tint);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 680px) {
  body { padding: 0; font-size: 13px; }
  #page { border: 0; }
  .banner { flex-direction: column; align-items: flex-start; padding: 10px 12px; gap: 2px; }
  .slogan { text-align: left; }
  .logo a { font-size: 28px; }
  .cols { flex-direction: column; padding: 8px; }
  .side { width: 100%; }
  blockquote { margin: 5px 4px 7px 6px; font-size: 14px; }
  .reply blockquote { margin: 4px 4px 7px 4px; }
  .postform th { width: auto; }
  .sideArrows { padding: 0 2px; }
  .reply-form { margin-left: 6px; }
}
.boxbody small { display: block; }
.tools, .votes, .postinfo > span > span { white-space: nowrap; }
.postform td small { display: block; font-size: 10px; margin-top: 2px; }
.namerow { margin-bottom: 3px; font-size: 11px; color: var(--navy); font-weight: bold; }
.namerow input { width: 160px; font: 12px Verdana, sans-serif; padding: 1px 4px; border: 1px solid #7f9db9; }
.ql.dead { text-decoration: line-through; color: var(--muted); cursor: default; }

/* owner-only reported list */
.reported { border: 1px solid var(--border); margin: 0 0 14px; }
.reported-list { background: #fff8f0; padding: 4px 8px; }
.rep-item { border-bottom: 1px dotted var(--reply-line); padding: 6px 0; }
.rep-item:last-child { border-bottom: 0; }
.rep-item.done { opacity: .55; }
.rep-meta { font-size: 11px; color: var(--muted); }
.rep-meta .flag { color: var(--red); font-weight: bold; }
.rep-item blockquote { margin: 4px 10px 4px 10px; }
.rep-actions { font-size: 11px; }
.rep-actions > span { margin-right: 6px; }
.owner-bar .link { font-weight: bold; color: #7a4a00; }

/* text styles in posts */
blockquote b { font-weight: bold; }
blockquote code, .boxbody code {
  font: 12px "Courier New", monospace; background: #eef0f3; border: 1px solid #c8ccd4; padding: 0 3px;
}
.spoiler { background: #000; color: #000; cursor: pointer; }
.spoiler:hover, .spoiler.shown { color: #fff; }
.spoiler .quote, .spoiler .ql { color: inherit; }
.spoiler:hover .ql, .spoiler.shown .ql { color: #9cf; }
.fmtbar { display: flex; gap: 2px; margin-bottom: 2px; flex-wrap: wrap; }
.fmt { padding: 0 6px; font: 11px Tahoma, Verdana, sans-serif; min-width: 22px; }
.fmt-b { font-weight: bold; }
.fmt-i { font-style: italic; }
.fmt-u { text-decoration: underline; }
.fmt-s { text-decoration: line-through; }
.fmt-spoiler { background: #222; color: #fff; }
.fmt-code { font-family: "Courier New", monospace; }
.fmt-gt { color: var(--green); font-weight: bold; }

/* boards */
.boardlist { margin-right: 8px; color: var(--navy); }
.boardlist a.current { color: var(--red); text-decoration: none; }
